| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569 |
- //Federal City Roleplay
- //by Emmet and Josh Einstein
- // ---------------------------------------
- #include <a_samp>
- #include <a_http>
- #include <a_mysql>
- #include <foreach>
- #include <sscanf2>
- #include <streamer>
- #include <zcmd>
- // ---------------------------------------
- #define MYSQL_HOSTNAME "127.0.0.1"
- #define MYSQL_DATABASE "fcrp"
- #define MYSQL_USERNAME "fcrp"
- #define MYSQL_PASSWORD "aixeiteen1Gee1oa"
- // ---------------------------------------
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_FAM 0xFF523ADE
- #define COLOR_SHERIFF 0xF5B76FBC
- #define COLOR_YELLOW 0xFFD200FF
- #define COLOR_YELLOW2 0xF5DEB3FF
- #define COLOR_LIGHTORANGE 0xF7A763FF
- #define COLOR_AQUA 0x33CCFFFF
- #define COLOR_GREEN 0x32CD32FF
- #define COLOR_GREY 0xAFAFAFFF
- #define COLOR_GREY1 0xE6E6E6FF
- #define COLOR_GREY2 0xC8C8C8FF
- #define COLOR_GREY3 0xAAAAAAFF
- #define COLOR_GREY4 0x8C8C8CFF
- #define COLOR_GREY5 0x6E6E6EFF
- #define COLOR_LIGHTRED 0xFF6347FF
- #define COLOR_ORANGE 0xFF9900FF
- #define COLOR_RED 0xAA3333FF
- #define COLOR_PURPLE 0xC2A2DAFF
- #define COLOR_NEWBIE 0x7DAEFFFF
- #define COLOR_BLUE 0x233EFAFF
- #define COLOR_ROYALBLUE 0x9999FFFF
- #define COLOR_DOCTOR 0xFF8282FF
- #define COLOR_DARKGREEN 0x00AA00FF
- #define COLOR_VIP 0xA028ADFF
- #define COLOR_WALKIETALKIE 0xB2EBE0FF
- #define COLOR_LIMITLESSBLUE 0x089DCEFF
- #define COLOR_LIGHTGREEN 0x9ACD32FF
- #define COLOR_GLOBAL 0xFFA500FF // 0x4DBD33FF
- #define COLOR_ADMINCHAT 0xFFD200FF// 0xFF4500FF
- #define COLOR_FACTIONCHAT 0xBDF38BFF
- // ---------------------------------------
- #define MAX_LISTED_NUMBERS 50
- #define MAX_LISTED_OBJECTS 50
- #define MAX_LISTED_STATIONS 50
- #define MAX_SPLIT_LENGTH 70
- // ---------------------------------------
- #define MAX_REPORTS 50
- #define MAX_HOUSES 1000
- #define MAX_GARAGES 1000
- #define MAX_BUSINESSES 500
- #define MAX_ENTRANCES 500
- #define MAX_PLAYER_CLOTHING 10
- #define MAX_SPAWNED_VEHICLES 3
- #define MAX_ANTICHEAT_WARNINGS 5
- #define MAX_FACTIONS 10
- #define MAX_FACTION_RANKS 20
- #define MAX_FACTION_SKINS 10
- #define MAX_FACTION_DIVISIONS 5
- #define MAX_DEPLOYABLES 50
- #define MAX_FIRES 100
- #define MAX_LANDS 50
- #define MAX_GANGS 10
- #define MAX_GANG_SKINS 10
- #define MAX_POINTS 10
- #define MAX_TURFS 150
- #define MAX_BANK_ROBBERS 5
- // ---------------------------------------
- #define THREAD_LOOKUP_BANS 1
- #define THREAD_LOOKUP_ACCOUNT 2
- #define THREAD_ACCOUNT_REGISTER 3
- #define THREAD_PROCESS_LOGIN 4
- #define THREAD_COUNT_FLAGS 5
- #define THREAD_TRACE_IP 6
- #define THREAD_LOGIN_UPDATE 7
- #define THREAD_LIST_CHANGES 8
- #define THREAD_LIST_HELPERS 9
- #define THREAD_LOAD_HOUSES 10
- #define THREAD_LIST_TENANTS 11
- #define THREAD_LOAD_FURNITURE 12
- #define THREAD_LOAD_GARAGES 13
- #define THREAD_LOAD_BUSINESSES 14
- #define THREAD_LOAD_ENTRANCES 15
- #define THREAD_LOAD_CLOTHING 16
- #define THREAD_LOAD_FACTIONS 17
- #define THREAD_LOAD_FACTIONRANKS 18
- #define THREAD_LOAD_FACTIONSKINS 19
- #define THREAD_LOAD_FACTIONPAY 20
- #define THREAD_LOAD_DIVISIONS 21
- #define THREAD_LOAD_LANDS 22
- #define THREAD_LOAD_LANDOBJECTS 23
- #define THREAD_LOAD_GANGS 24
- #define THREAD_LOAD_GANGRANKS 25
- #define THREAD_LOAD_GANGSKINS 26
- #define THREAD_LOAD_POINTS 27
- #define THREAD_LOAD_TURFS 28
- #define THREAD_HOUSE_INFORMATION 29
- #define THREAD_COUNT_FURNITURE 30
- #define THREAD_SELL_FURNITURE 31
- #define THREAD_CLEAR_FURNITURE 32
- #define THREAD_COUNT_TEXTS 33
- #define THREAD_VIEW_TEXTS 34
- //#define THREAD_LIST_VEHICLES 35
- #define THREAD_CAR_STORAGE 35
- #define THREAD_FACTION_ROSTER 36
- #define THREAD_GANG_ROSTER 37
- #define THREAD_VIEW_PHONEBOOK 38
- #define THREAD_COUNT_LANDOBJECTS 39
- #define THREAD_SELL_LANDOBJECT 40
- #define THREAD_DUPLICATE_LANDOBJECT 41
- #define THREAD_DUPLICATED_OBJECT 42
- #define THREAD_CLEAR_LANDOBJECTS 43
- #define THREAD_LIST_LANDOBJECTS 44
- #define THREAD_LAND_INFORMATION 45
- #define THREAD_LOAD_VEHICLES 46
- #define THREAD_GANG_INFORMATION 47
- #define THREAD_OFFLINE_IP 48
- #define THREAD_CHECK_REFERRAL 49
- #define THREAD_REWARD_REFERRER 50
- #define THREAD_LIST_FLAGGED 51
- // ---------------------------------------
- #define RED_TEAM 0
- #define BLUE_TEAM 1
- // ---------------------------------------
- #define strcpy(%0,%1) strcat(((%0[0] = 0), %0), %1)
- #define percent(%0,%1) floatround((float((%0)) / 100) * (%1))
- #define Random(%0,%1) (random((%1) - (%0)) + (%0))
- // ---------------------------------------
- #define SERVER_REVISION "v1.5.2" // Change this every commit.
- #define SERVER_ANTICHEAT "Edward_Collins"
- //#define SERVER_INTRO // Comment this line to disable the intro for unregistered users.
- #define SERVER_MUSIC_URL "music.limitlessrp.com"
- #define SERVER_FETCH_URL "music.limitlessrp.com"
- //---------------tunning-----------------
- #define DIALOG_TYPE_MAIN 144
- //#define DIALOG_TYPE_PAINTJOBS 145
- //#define DIALOG_TYPE_COLORS 146
- #define DIALOG_TYPE_EXHAUSTS 147
- #define DIALOG_TYPE_FBUMPS 148
- #define DIALOG_TYPE_RBUMPS 149
- #define DIALOG_TYPE_ROOFS 150
- #define DIALOG_TYPE_SPOILERS 151
- #define DIALOG_TYPE_SIDESKIRTS 152
- #define DIALOG_TYPE_BULLBARS 153
- #define DIALOG_TYPE_WHEELS 154
- #define DIALOG_TYPE_CSTEREO 155
- #define DIALOG_TYPE_HYDRAULICS 156
- #define DIALOG_TYPE_NITRO 157
- #define DIALOG_TYPE_LIGHTS 158
- #define DIALOG_TYPE_HOODS 159
- #define DIALOG_TYPE_VENTS 160
- //----------ELM------//
- #define flashtime 115
- // ---------------------------------------
- #undef SSCANF_Join
- #undef SSCANF_Leave
- // ---------------------------------------
- enum
- {
- DIALOG_REGISTER = 1,
- DIALOG_CONFIRMPASS,
- DIALOG_LOGIN,
- DIALOG_GENDER,
- DIALOG_AGE,
- DIALOG_REFERRAL,
- DIALOG_INTERIORS,
- DIALOG_BUYFURNITURE1,
- DIALOG_BUYFURNITURE2,
- DIALOG_BUY,
- DIALOG_BUYCLOTHES,
- DIALOG_PICKLOAD,
- DIALOG_UNREADTEXTS,
- DIALOG_ATM,
- DIALOG_CHANGEPASS,
- DIALOG_BUYCLOTHING,
- DIALOG_CLOTHING,
- DIALOG_CLOTHINGMENU,
- DIALOG_CLOTHINGEDIT,
- DIALOG_CLOTHINGBONE,
- DIALOG_BUYVEHICLE,
- DIALOG_BUYVEHICLE2,
- /*DIALOG_SPAWNCAR,
- DIALOG_DESPAWNCAR,*/
- DIALOG_CARSTORAGE,
- DIALOG_FINDCAR,
- DIALOG_BIZINTERIOR,
- DIALOG_FACTIONLOCKER,
- DIALOG_FACTIONEQUIPMENT,
- DIALOG_FACTIONSKINS,
- DIALOG_HITMANCLOTHES,
- DIALOG_MDC,
- DIALOG_MDCWANTED,
- DIALOG_MDCPLAYER1,
- DIALOG_MDCPLAYER2,
- DIALOG_MDCCHARGES,
- DIALOG_PLAYERLOOKUP,
- DIALOG_VEHICLELOOKUP1,
- DIALOG_VEHICLELOOKUP2,
- DIALOG_FACTIONPAY1,
- DIALOG_FACTIONPAY2,
- DIALOG_PHONEBOOK,
- DIALOG_CREATEZONE,
- DIALOG_CONFIRMZONE,
- DIALOG_LANDBUILD1,
- DIALOG_LANDBUILD2,
- DIALOG_LANDMENU,
- DIALOG_LANDEDITOBJECT,
- DIALOG_LANDOBJECTMENU,
- DIALOG_LANDOBJECTS,
- DIALOG_LANDSELLALL,
- DIALOG_LANDPERMS,
- DIALOG_MP3PLAYER,
- DIALOG_MP3MUSIC,
- DIALOG_MP3RADIO,
- DIALOG_MP3URL,
- DIALOG_MP3RADIOGENRES,
- DIALOG_MP3RADIOSUBGENRES,
- DIALOG_MP3RADIORESULTS,
- DIALOG_MP3RADIOSEARCH,
- DIALOG_USECOOKIES,
- DIALOG_COOKIESHOUTOUT,
- DIALOG_COOKIEWEATHER,
- DIALOG_COOKIENUMBER,
- DIALOG_COOKIEJOB,
- DIALOG_GANGSTASH,
- DIALOG_GANGSTASHWEAPONS1,
- DIALOG_GANGSTASHWEAPONS2,
- DIALOG_GANGSTASHDRUGS1,
- DIALOG_GANGSTASHDRUGS2,
- DIALOG_GANGSTASHAMMO1,
- DIALOG_GANGSTASHAMMO2,
- DIALOG_GANGSTASHCRAFT,
- DIALOG_GANGSTASHMATS,
- DIALOG_GANGSTASHCASH,
- DIALOG_GANGDEPOSIT,
- DIALOG_GANGWITHDRAW,
- DIALOG_GANGSKINS,
- DIALOG_GANGFINDCAR,
- DIALOG_GANGPOINTSHOP,
- DIALOG_GANGARMSDEALER,
- DIALOG_GANGARMSWEAPONS,
- DIALOG_GANGARMSAMMO,
- DIALOG_GANGAMMOBUY,
- DIALOG_GANGARMSEDIT,
- DIALOG_GANGARMSPRICES,
- DIALOG_GANGARMSPRICE,
- DIALOG_GANGARMSDEPOSITMATS,
- DIALOG_GANGARMSWITHDRAWMATS,
- DIALOG_GANGAMMODEPOSITS,
- DIALOG_GANGAMMODEPOSIT,
- DIALOG_GANGAMMOWITHDRAWS,
- DIALOG_GANGAMMOWITHDRAW,
- DIALOG_GANGDRUGDEALER,
- DIALOG_GANGDRUGSHOP,
- DIALOG_GANGDRUGEDIT,
- DIALOG_GANGDRUGPRICES,
- DIALOG_GANGDRUGPRICE,
- DIALOG_GANGDRUGBUY,
- DIALOG_GANGDRUGDEPOSITS,
- DIALOG_GANGDRUGDEPOSIT,
- DIALOG_GANGDRUGWITHDRAWS,
- DIALOG_GANGDRUGWITHDRAW,
- DIALOG_FREENAMECHANGE
- }
- enum
- {
- VEHICLE_ENGINE,
- VEHICLE_LIGHTS,
- VEHICLE_ALARM,
- VEHICLE_DOORS,
- VEHICLE_BONNET,
- VEHICLE_BOOT,
- VEHICLE_OBJECTIVE
- };
- enum
- {
- STASH_CAPACITY_CASH,
- STASH_CAPACITY_MATERIALS,
- STASH_CAPACITY_WEED,
- STASH_CAPACITY_COCAINE,
- STASH_CAPACITY_METH,
- STASH_CAPACITY_PAINKILLERS,
- STASH_CAPACITY_HPAMMO,
- STASH_CAPACITY_POISONAMMO,
- STASH_CAPACITY_FMJAMMO,
- STASH_CAPACITY_WEAPONS
- };
- enum
- {
- E_OBJECT_TYPE,
- E_OBJECT_INDEX_ID,
- E_OBJECT_EXTRA_ID,
- E_OBJECT_3DTEXT_ID,
- E_OBJECT_OPENED,
- E_OBJECT_WEAPONID,
- E_OBJECT_AMMO,
- E_OBJECT_FACTION,
- E_OBJECT_X,
- E_OBJECT_Y,
- E_OBJECT_Z
- };
- enum
- {
- E_OBJECT_FURNITURE,
- E_OBJECT_WEAPON,
- E_OBJECT_LAND
- };
- enum
- {
- EDIT_FURNITURE_PREVIEW = 1,
- EDIT_FURNITURE,
- EDIT_CLOTHING_PREVIEW,
- EDIT_CLOTHING,
- EDIT_LAND_OBJECT_PREVIEW,
- EDIT_LAND_OBJECT,
- EDIT_LAND_GATE_MOVE
- };
- enum
- {
- DEPLOY_SPIKESTRIP,
- DEPLOY_CONE,
- DEPLOY_ROADBLOCK,
- DEPLOY_BARREL,
- DEPLOY_FLARE
- };
- enum
- {
- BUSINESS_STORE,
- BUSINESS_GUNSHOP,
- BUSINESS_CLOTHES,
- BUSINESS_GYM,
- BUSINESS_RESTAURANT,
- BUSINESS_AGENCY,
- BUSINESS_BARCLUB
- };
- enum
- {
- FACTION_NONE,
- FACTION_POLICE,
- FACTION_MEDIC,
- FACTION_NEWS,
- FACTION_GOVERNMENT,
- FACTION_HITMAN,
- FACTION_FEDERAL
- };
- enum
- {
- JOB_NONE = -1,
- JOB_PIZZAMAN,
- JOB_COURIER,
- JOB_FISHERMAN,
- JOB_BODYGUARD,
- JOB_WEAPONDEALER,
- JOB_MECHANIC,
- JOB_MINER,
- JOB_SWEEPER,
- JOB_TAXIDRIVER,
- JOB_DRUGDEALER,
- JOB_LAWYER,
- JOB_DETECTIVE
- };
- enum
- {
- CHECKPOINT_NONE = 0,
- CHECKPOINT_PIZZA,
- CHECKPOINT_TEST,
- CHECKPOINT_MINING,
- CHECKPOINT_MATS,
- CHECKPOINT_DRUGS,
- CHECKPOINT_HOUSE,
- CHECKPOINT_ROBBERY,
- CHECKPOINT_MISC
- };
- enum
- {
- HANGUP_DROPPED,
- HANGUP_USER
- };
- enum
- {
- MUSIC_NONE,
- MUSIC_MP3PLAYER,
- MUSIC_BOOMBOX,
- MUSIC_VEHICLE
- };
- enum
- {
- ITEM_WEAPON,
- ITEM_SELLGUN,
- ITEM_MATERIALS,
- ITEM_WEED,
- ITEM_COCAINE,
- ITEM_METH,
- ITEM_PAINKILLERS,
- ITEM_SEEDS,
- ITEM_EPHEDRINE,
- ITEM_CASH,
- ITEM_HPAMMO,
- ITEM_POISONAMMO,
- ITEM_FMJAMMO
- };
- enum
- {
- CAPACITY_MATERIALS,
- CAPACITY_WEED,
- CAPACITY_COCAINE,
- CAPACITY_METH,
- CAPACITY_PAINKILLERS,
- CAPACITY_SEEDS,
- CAPACITY_EPHEDRINE,
- CAPACITY_HPAMMO,
- CAPACITY_POISONAMMO,
- CAPACITY_FMJAMMO
- };
- enum
- {
- LIMIT_HOUSES,
- LIMIT_BUSINESSES,
- LIMIT_GARAGES,
- LIMIT_VEHICLES
- };
- enum
- {
- POINT_DRUGFACTORY = 1,
- POINT_DRUGDEN,
- POINT_CRACKHOUSE,
- POINT_AUTOEXPORT,
- POINT_FUEL,
- POINT_MATPICKUP1,
- POINT_MATPICKUP2,
- POINT_MATFACTORY1,
- POINT_MATFACTORY2
- };
- enum
- {
- GANGWEAPON_9MM,
- GANGWEAPON_SDPISTOL,
- GANGWEAPON_DEAGLE,
- GANGWEAPON_SHOTGUN,
- GANGWEAPON_SPAS12,
- GANGWEAPON_SAWNOFF,
- GANGWEAPON_TEC9,
- GANGWEAPON_UZI,
- GANGWEAPON_MP5,
- GANGWEAPON_AK47,
- GANGWEAPON_M4,
- GANGWEAPON_RIFLE,
- GANGWEAPON_SNIPER,
- GANGWEAPON_MOLOTOV
- };
- enum
- {
- TAG_NONE,
- TAG_ADMIN,
- TAG_HELPER,
- TAG_VIP
- };
- enum
- {
- AMMO_HP,
- AMMO_POISON,
- AMMO_FMJ
- };
- enum
- {
- AMMOTYPE_NORMAL,
- AMMOTYPE_HP,
- AMMOTYPE_POISON,
- AMMOTYPE_FMJ
- };
- enum
- {
- ZONETYPE_LAND = 1,
- ZONETYPE_TURF
- };
- enum pEnum
- {
- PlayerText:pText[6],
- pPassword[129],
- pUsername[MAX_PLAYER_NAME],
- pID,
- pLogged,
- pKicked,
- pLoginTries,
- pSetup,
- pGender,
- pAge,
- pSkin,
- Float:pCameraX,
- Float:pCameraY,
- Float:pCameraZ,
- Float:pPosX,
- Float:pPosY,
- Float:pPosZ,
- Float:pPosA,
- pInterior,
- pWorld,
- pCash,
- pBank,
- pPaycheck,
- pLevel,
- pEXP,
- pMinutes,
- pHours,
- pAdmin,
- pAdminName[MAX_PLAYER_NAME],
- pHelper,
- Float:pHealth,
- Float:pArmor,
- pUpgradePoints,
- pWarnings,
- pInjured,
- pHospital,
- Float:pSpawnHealth,
- Float:pSpawnArmor,
- pJailType,
- pJailTime,
- pNewbieMuted,
- pHelpMuted,
- pAdMuted,
- pLiveMuted,
- pGlobalMuted,
- pReportMuted,
- pReportWarns,
- pFightStyle,
- pAccent[16],
- pCookies,
- pPhone,
- pJob,
- pSecondJob,
- pCrimes,
- pArrested,
- pWantedLevel,
- pMaterials,
- pWeed,
- pCocaine,
- pMeth,
- pPainkillers,
- pSeeds,
- pEphedrine,
- pMuriaticAcid,
- pBakingSoda,
- pCigars,
- pWalkieTalkie,
- pChannel,
- pRentingHouse,
- pSpraycans,
- pBoombox,
- pMP3Player,
- pPhonebook,
- pFishingRod,
- pFishingBait,
- pFishWeight,
- pComponents,
- pCourierSkill,
- pFishingSkill,
- pGuardSkill,
- pWeaponSkill,
- pMechanicSkill,
- pLawyerSkill,
- pSmugglerSkill,
- pDetectiveSkill,
- pToggleTextdraws,
- pToggleOOC,
- pTogglePhone,
- pToggleAdmin,
- pToggleHelper,
- pToggleNewbie,
- pToggleWT,
- pToggleRadio,
- pToggleVIP,
- pToggleMusic,
- pToggleFaction,
- pToggleGang,
- pToggleNews,
- pToggleGlobal,
- pToggleCam,
- pToggleHUD,
- pCarLicense,
- pVIPPackage,
- pVIPTime,
- pVIPCooldown,
- pWeapons[13],
- pTempWeapons[13],
- pAmmo[13],
- pFaction,
- pFactionRank,
- pGang,
- pGangRank,
- pDivision,
- pContracted,
- pContractBy[MAX_PLAYER_NAME],
- pBombs,
- pCompletedHits,
- pFailedHits,
- pReports,
- pHelpRequests,
- pSpeedometer, // (1) KM/H (2) MPH
- pFactionMod,
- pGangMod,
- pBanAppealer,
- pWeedPlanted,
- pWeedTime,
- pWeedGrams,
- Float:pWeedX,
- Float:pWeedY,
- Float:pWeedZ,
- Float:pWeedA,
- pInventoryUpgrade,
- pAddictUpgrade,
- pTraderUpgrade,
- pAssetUpgrade,
- pHPAmmo,
- pPoisonAmmo,
- pFMJAmmo,
- pAmmoType,
- pAmmoWeapon,
- pDMWarnings,
- pWeaponRestricted,
- pReferralUID,
- pWatch,
- pGPS,
- pPrisonedBy[MAX_PLAYER_NAME],
- pPrisonReason[128],
- pClothes,
- pShowLands,
- pShowTurfs,
- pWatchOn,
- pGPSOn,
- pDoubleXP,
- pCourierCooldown,
- pPizzaCooldown,
- pDetectiveCooldown,
- pGasCan,
- //pMask,
- //Maskon[2],
- pLastReport,
- pLastNewbie,
- pLastRequest,
- pLastPay,
- pLastRepair,
- pLastRefuel,
- pLastDrug,
- pLastDefend,
- pLastSell,
- pLastEnter,
- pLastPress,
- pLastDeath,
- pLastDesync,
- pLastGlobal,
- pLastPizza,
- pLastStuck,
- pLastUpdate,
- pLastLoad,
- pLastBet,
- pFPS,
- pDrunkLevel,
- pSpectating,
- pAdminDuty,
- pActiveReport,
- pHospitalTime,
- pListen,
- pJoinedEvent,
- pPaintball,
- pDueling,
- pEventTeam,
- pAwaitingClothing,
- pTutorial,
- pTutorialTimer,
- pFreezeTimer,
- pHelpRequest[128],
- pAcceptedHelp,
- pHouseOffer,
- pHouseOffered,
- pHousePrice,
- pGarageOffer,
- pGarageOffered,
- pGaragePrice,
- pBizOffer,
- pBizOffered,
- pBizPrice,
- pVestOffer,
- pVestPrice,
- pCarOffer,
- pCarOffered,
- pCarPrice,
- pFactionOffer,
- pFactionOffered,
- pGangOffer,
- pGangOffered,
- pFriskOffer,
- pTicketOffer,
- pTicketPrice,
- pLiveOffer,
- pLiveBroadcast,
- pShakeOffer,
- pShakeType,
- pLandOffer,
- pLandOffered,
- pLandPrice,
- pSellOffer,
- pSellType,
- pSellExtra,
- pSellPrice,
- pDefendOffer,
- pDefendPrice,
- pDiceOffer,
- pDiceBet,
- pInviteOffer,
- pInviteHouse,
- pRobberyOffer,
- pFurnitureIndex,
- pFurnitureHouse,
- pObjectLand,
- pClothingIndex,
- pEditType,
- pEditObject,
- pCategory,
- pSelected,
- pFactionEdit,
- pPrice,
- pFurniturePerms,
- pLandPerms,
- pPizzas,
- pPizzaTime,
- Float:pDistance,
- pCP,
- pShipment,
- pFishTime,
- pUsedBait,
- pSmuggleMats,
- pSmuggleDrugs,
- pRefuel,
- pRefuelAmount,
- pCallLine,
- pCallStage,
- Float:pAFKPos[6],
- pAFK,
- pAFKTime,
- pLoopAnim,
- pDrivingTest,
- pTestVehicle,
- pTestCP,
- pMiningTime,
- pMiningRock,
- pSweeping,
- pSweepTime,
- pSweepEarnings,
- Text3D:pSpecialTag,
- pTagType,
- pVIPColor,
- pTaxiFare,
- pTaxiPassenger,
- pTaxiBill,
- pTaxiTime,
- pSkinSelected,
- pDuty,
- pBackup,
- pTazer,
- pTazedTime,
- pCuffed,
- pDraggedBy,
- pFirstAid,
- pDelivered,
- pPlantedBomb,
- Float:pBombX,
- Float:pBombY,
- Float:pBombZ,
- pBombObject,
- pContractTaken,
- pPage,
- pSpamTime,
- pMuted,
- Text3D:pBoomboxText,
- pBoomboxPlaced, // BOOMBOX
- pBoomboxObject,
- pBoomboxListen,
- pBoomboxURL[128],
- Float:pMinX, // LAND CREATION
- Float:pMinY,
- Float:pMaxX,
- Float:pMaxY,
- pZoneType,
- pZonePickups[4],
- pZoneID,
- pZoneCreation, //
- pLandCost,
- pTurfType,
- pTurfName[32],
- pGenre[32],
- pSubgenre[32],
- pSearch,
- pMusicType,
- pStreamType,
- pNameChange[MAX_PLAYER_NAME],
- pFreeNamechange,
- pPassportLevel,
- pPassportSkin,
- pVehicleKeys,
- pCurrentWeapon,
- pCurrentAmmo,
- pCurrentVehicle,
- pVehicleCount,
- pACWarns,
- pACTime,
- pACFired,
- pACAmmo,
- pArmorTime,
- pWeedObject,
- pPickPlant,
- pPickTime,
- pCookMeth,
- pCookTime,
- pCookGrams,
- pDrugsUsed,
- pDrugsTime,
- pBandana,
- pGangCar,
- pCapturingPoint,
- pCaptureTime,
- Float:pPointX,
- Float:pPointY,
- Float:pPointZ,
- pWatchingIntro, // server intro
- pLoginCamera,
- pSmuggleTime,
- pDealerGang,
- pPoisonTime,
- pJetpack,
- pTextFrom,
- pWhisperFrom,
- pMechanicCall,
- pTaxiCall,
- pEmergencyCall,
- pEmergencyType,
- pEmergency[128],
- pClip,
- pReloading,
- pFindTime,
- pFindPlayer,
- pRobCash,
- pLootTime
- };
- enum rEnum
- {
- rExists,
- rReporter,
- rAccepted,
- rHandledBy,
- rText[128],
- rTime
- };
- enum eventEnum
- {
- eReady,
- eStarted,
- eLocked,
- eType, // (1) DM (2) TDM (3) Race
- eJoinText[128],
- Float:eHealth,
- Float:eArmor,
- Float:ePosX[2],
- Float:ePosY[2],
- Float:ePosZ[2],
- Float:ePosA[2],
- eInterior,
- eWorld,
- eWeapons[5],
- eSkin[2],
- eCS,
- eQS,
- eHeal,
- eNext
- };
- enum robberyEnum
- {
- rTime,
- rPlanning,
- rStarted,
- rStolen,
- rRobbers[MAX_BANK_ROBBERS],
- rObjects[2],
- Text3D:rText[5]
- };
- enum mEnum
- {
- Float:mPosX,
- Float:mPosY,
- Float:mPosZ,
- Float:mPosA,
- mInterior,
- mWorld
- };
- enum hEnum
- {
- hExists,
- hID,
- hOwnerID,
- hOwner[MAX_PLAYER_NAME],
- hType,
- hPrice,
- hRentPrice,
- hLevel,
- hLocked,
- hTimestamp,
- Float:hPosX,
- Float:hPosY,
- Float:hPosZ,
- Float:hPosA,
- Float:hIntX,
- Float:hIntY,
- Float:hIntZ,
- Float:hIntA,
- hInterior,
- hWorld,
- hOutsideInt,
- hOutsideVW,
- hCash,
- hMaterials,
- hWeed,
- hCocaine,
- hMeth,
- hPainkillers,
- hWeapons[10],
- hHPAmmo,
- hPoisonAmmo,
- hFMJAmmo,
- hLabels,
- hPickup,
- Text3D:hText
- };
- enum gEnum
- {
- gExists,
- gID,
- gOwnerID,
- gOwner[MAX_PLAYER_NAME],
- gType,
- gPrice,
- gLocked,
- gTimestamp,
- Float:gPosX,
- Float:gPosY,
- Float:gPosZ,
- Float:gPosA,
- Float:gExitX,
- Float:gExitY,
- Float:gExitZ,
- Float:gExitA,
- gWorld,
- gPickup,
- Text3D:gText
- };
- enum bEnum
- {
- bExists,
- bID,
- bOwnerID,
- bOwner[MAX_PLAYER_NAME],
- bType,
- bPrice,
- bEntryFee,
- bLocked,
- bTimestamp,
- Float:bPosX,
- Float:bPosY,
- Float:bPosZ,
- Float:bPosA,
- Float:bIntX,
- Float:bIntY,
- Float:bIntZ,
- Float:bIntA,
- bInterior,
- bWorld,
- bOutsideInt,
- bOutsideVW,
- bCash,
- bProducts,
- bPickup,
- bMapIcon,
- Text3D:bText
- };
- enum eEnum
- {
- eExists,
- eID,
- eOwnerID,
- eOwner[MAX_PLAYER_NAME],
- eName[40],
- eIcon,
- eLocked,
- Float:eRadius,
- Float:ePosX,
- Float:ePosY,
- Float:ePosZ,
- Float:ePosA,
- Float:eIntX,
- Float:eIntY,
- Float:eIntZ,
- Float:eIntA,
- eInterior,
- eWorld,
- eOutsideInt,
- eOutsideVW,
- eAdminLevel,
- eFactionType,
- eVIP,
- eVehicles,
- eFreeze,
- ePassword[64],
- eLabel,
- ePickup,
- Text3D:eText
- };
- enum cEnum
- {
- cExists,
- cID,
- cName[32],
- cModel,
- cBone,
- cAttached,
- Float:cPosX,
- Float:cPosY,
- Float:cPosZ,
- Float:cRotX,
- Float:cRotY,
- Float:cRotZ,
- Float:cScaleX,
- Float:cScaleY,
- Float:cScaleZ,
- cAttachedIndex
- };
- enum vEnum
- {
- vID,
- vOwnerID,
- vOwner[MAX_PLAYER_NAME],
- vModel,
- vPrice,
- vTickets,
- vLocked,
- vPlate[32],
- Float:vHealth,
- Float:vPosX,
- Float:vPosY,
- Float:vPosZ,
- Float:vPosA,
- vColor1,
- vColor2,
- vPaintjob,
- vInterior,
- vWorld,
- vNeon,
- vNeonEnabled,
- vTrunk,
- vMods[14],
- vCash,
- vMaterials,
- vWeed,
- vCocaine,
- vMeth,
- vPainkillers,
- vWeapons[3],
- vHPAmmo,
- vPoisonAmmo,
- vFMJAmmo,
- vGang,
- vFactionType,
- vJob,
- vRespawnDelay,
- vObjects[2],
- bool:vForSale,
- vForSalePrice,
- Text3D:vForSaleLabel,
- vTimer
- };
- enum fEnum
- {
- fName[48],
- fLeader[MAX_PLAYER_NAME],
- fType,
- fColor,
- fRankCount,
- Float:fLockerX,
- Float:fLockerY,
- Float:fLockerZ,
- fLockerInterior,
- fLockerWorld,
- fSkins[MAX_FACTION_SKINS],
- fPaycheck[MAX_FACTION_RANKS],
- fTurfTokens,
- Text3D:fText,
- fPickup
- };
- enum dEnum
- {
- dExists,
- dType,
- Float:dPosX,
- Float:dPosY,
- Float:dPosZ,
- Float:dPosA,
- dObject
- };
- enum lEnum
- {
- lExists,
- lID,
- lOwnerID,
- lOwner[MAX_PLAYER_NAME],
- lPrice,
- Float:lMinX,
- Float:lMinY,
- Float:lMaxX,
- Float:lMaxY,
- Float:lHeight,
- lGangZone,
- lArea,
- lLabels
- };
- enum gaEnum
- {
- gSetup,
- gName[32],
- gMOTD[128],
- gLeader[MAX_PLAYER_NAME],
- gColor,
- gStrikes,
- gLevel,
- gPoints,
- gTurfTokens,
- Float:gStashX,
- Float:gStashY,
- Float:gStashZ,
- gStashInterior,
- gStashWorld,
- gCash,
- gMaterials,
- gWeed,
- gCocaine,
- gMeth,
- gPainkillers,
- gHPAmmo,
- gPoisonAmmo,
- gFMJAmmo,
- gSkins[MAX_GANG_SKINS],
- gWeapons[14],
- gArmsDealer,
- gDrugDealer,
- Float:gArmsX,
- Float:gArmsY,
- Float:gArmsZ,
- Float:gArmsA,
- Float:gDrugX,
- Float:gDrugY,
- Float:gDrugZ,
- Float:gDrugA,
- gArmsWorld,
- gDrugWorld,
- gDrugWeed,
- gDrugCocaine,
- gDrugMeth,
- gArmsMaterials,
- gArmsPrices[12],
- gDrugPrices[3],
- gArmsHPAmmo,
- gArmsPoisonAmmo,
- gArmsFMJAmmo,
- Text3D:gText[3],
- gPickup,
- gActors[2]
- };
- enum ptEnum
- {
- pExists,
- pName[32],
- pCapturedBy[MAX_PLAYER_NAME],
- pCapturedGang,
- pType,
- pProfits,
- pTime,
- Float:pPointX,
- Float:pPointY,
- Float:pPointZ,
- pPointInterior,
- pPointWorld,
- pCaptureTime,
- pCapturer,
- Text3D:pText,
- pPickup
- };
- enum tEnum
- {
- tExists,
- tName[32],
- tCapturedBy[MAX_PLAYER_NAME],
- tCapturedGang,
- tType,
- tTime,
- Float:tMinX,
- Float:tMinY,
- Float:tMaxX,
- Float:tMaxY,
- Float:tHeight,
- tGangZone,
- tArea,
- tCaptureTime,
- tCapturer
- };
- // ---------------------------------------
- #if defined SERVER_INTRO
- new Text:introTextdraws[26];
- #endif
- new connectionID;
- new radioConnectionID;
- new queryBuffer[1024];
- new Text:WebsiteTD;
- new Text:AnimationTD;
- new Text:TimeTD;
- new Text:LoginScreen[4];
- new enabledOOC;
- new enabledNewbie = 1;
- new enabledGlobal = 1;
- new enabledReports = 1;
- new pizzaVehicles[6];
- new courierVehicles[7];
- new sweeperVehicles[4];
- new taxiVehicles[4];
- new testVehicles[5];
- new gHour, gWorldTime, gWeather = 2;
- new gCharity, gCharityHealth, gCharityArmor;
- new gPlayerRecord, gRecordDate[24], gServerMOTD[128], gTax, gVault, gAnticheatBans;
- new gConnections, gTotalRegistered, gTotalKills, gTotalDeaths, gTotalHours;
- new gDoubleXP;
- new gLastAd;
- new gGMX;
- new gAnticheat = 1;
- new gVIPHealth, gVIPArmor;
- new gParachutes[2];
- new gSeedsStock = 200, gCocaineStock = 100, gEphedrineStock = 50;
- new Text3D:gSeedsStockText, Text3D:gCocaineText, Text3D:gEphedrineStockText;
- new gPrisonCells[24], gPDDoors[3], gPDGates[2], gFBIGates[2];
- new gFires, gFireObjects[MAX_FIRES] = {INVALID_OBJECT_ID, ...}, Float:gFireHealth[MAX_FIRES];
- new EventInfo[eventEnum];
- new RobberyInfo[robberyEnum];
- new MarkedPositions[MAX_PLAYERS][3][mEnum];
- new PlayerInfo[MAX_PLAYERS+1][pEnum];
- new ReportInfo[MAX_REPORTS][rEnum];
- new HouseInfo[MAX_HOUSES][hEnum];
- new GarageInfo[MAX_GARAGES][gEnum];
- new BusinessInfo[MAX_BUSINESSES][bEnum];
- new EntranceInfo[MAX_ENTRANCES][eEnum];
- new ClothingInfo[MAX_PLAYERS][MAX_PLAYER_CLOTHING][cEnum];
- new VehicleInfo[MAX_VEHICLES][vEnum];
- new FactionInfo[MAX_FACTIONS][fEnum];
- new FactionRanks[MAX_FACTIONS][MAX_FACTION_RANKS][32];
- new FactionDivisions[MAX_FACTIONS][MAX_FACTION_DIVISIONS][32];
- new DeployInfo[MAX_DEPLOYABLES][dEnum];
- new LandInfo[MAX_LANDS][lEnum];
- new GangInfo[MAX_GANGS][gaEnum];
- new GangRanks[MAX_FACTIONS][7][32];
- new PointInfo[MAX_POINTS][ptEnum];
- new TurfInfo[MAX_TURFS][tEnum];
- new adminVehicle[MAX_VEHICLES char];
- new vehicleFuel[MAX_VEHICLES] = {100, ...};
- new vehicleSiren[MAX_VEHICLES] = {INVALID_OBJECT_ID, ...};
- new vehicleStream[MAX_VEHICLES][128];
- new vehicleColors[MAX_VEHICLES][2];
- new bool:chattingWith[MAX_PLAYERS][MAX_PLAYERS char];
- new Text3D:DonatorCallSign[MAX_VEHICLES] = {Text3D:INVALID_3DTEXT_ID, ...};
- new Text3D:vehicleCallsign[MAX_VEHICLES] = {Text3D:INVALID_3DTEXT_ID, ...};
- // ---------------------------------------
- new const vehicleNames[212][] = {
- "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", "Article Trailer", "Previon", "Coach",
- "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo", "Seasparrow",
- "Pizzaboy", "Tram", "Article Trailer 2", "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", "Stuntplane", "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", "Petrol Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Article Trailer 3", "Andromada", "Dodo", "RC Cam", "Launch", "LSPD Car", "SFPD Car", "LVPD Car",
- "Police Rancher", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs",
- "Boxville", "Tiller", "Utility Trailer"
- };
- new const weaponSlotIDs[] = {
- 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 8, 8, 8, 0,
- 0, 0, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 4, 6, 6, 7, 7, 7, 7, 8, 12,
- 9, 9, 9, 11, 11, 11
- };
- new const weaponModelIDs[] = {
- 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
- };
- enum houseInt
- {
- intClass[16],
- intPrice,
- intID,
- Float:intX,
- Float:intY,
- Float:intZ,
- Float:intA
- };
- new const houseInteriors[][houseInt] =
- {
- {"Apartment", 50000, 1, 244.1997, 305.0676, 999.1484, 270.2194},
- {"Apartment", 75000, 2, 1434.0806, -1832.7854, 1313.5573, 270.0000},
- {"Apartment", 10000, 10, 2259.7649, -1135.8751, 1050.6328, 270.0000},
- {"Apartment", 10000, 8, 2008.8319, -1698.8461, 1165.7001, 90.0000},
- {"Apartment", 125000, 5, 2233.6501, -1114.7767, 1050.8828, 0.0000},
- {"Apartment", 125000, 1, 2217.9814, -1076.2471, 1050.4844, 90.0000},
- {"Low Class", 150000, 9, 1178.3398, -419.0833, 1234.7045, 180.0000},
- {"Low Class", 150000, 3, 828.6323, -1014.0038, 799.9664, 270.0000},
- {"Low Class", 175000, 5, 1320.1091, -167.6174, 1088.0741, 90.0000},
- {"Medium Class", 175000, 3, 1363.7614, -2145.6965, 1050.5886, 0.0000},
- {"Medium Class", 200000, 5, 2654.4524, -1023.7827, 929.9266, 180.0000},
- {"Medium Class", 200000, 11, 2184.1011, -1130.3905, 1128.7655, 270.0000},
- {"Upper Class", 250000, 10, 2269.9143, -1210.5028, 1047.5625, 90.0000},
- {"Upper Class", 250000, 6, 1749.6356, -1822.4457, 1000.3405, 0.0000},
- {"Upper Class", 300000, 12, 2324.3862, -1148.8784, 1050.7101, 0.0000},
- {"Upper Class", 400000, 4, 1282.0646, -1140.2067, 980.0524, 0.0000},
- {"Mansion", 500000, 1, 1834.2408, -1278.7684, 832.1602, 180.0000},
- {"Mansion", 1000000, 7, 925.0102, -496.8101, 843.8953, 90.0000},
- {"Mansion", 2000000, 5, 1298.8682, -796.2053, 1084.0078, 0.0000}
- };
- enum garageInt
- {
- intName[16],
- intPrice,
- intID,
- Float:intPX,
- Float:intPY,
- Float:intPZ,
- Float:intPA,
- Float:intVX,
- Float:intVY,
- Float:intVZ,
- Float:intVA
- };
- new const garageInteriors[][garageInt] =
- {
- {"Small", 100000, 1, 1521.2797, -1639.7163, 1124.5045, 180.0000, 1516.8326, -1643.9105, 1124.3364, 180.0000},
- {"Medium", 125000, 2, 1520.6278, -1639.7173, 1374.5045, 180.0000, 1514.9481, -1644.1083, 1374.3365, 180.0000},
- {"Large", 250000, 3, 1672.8816, -2363.5818, 1535.4829, 90.0000, 1660.5437, -2362.9001, 1535.2944, 0.0000}
- };
- enum bizInt
- {
- intType[24],
- intPrice,
- intID,
- Float:intX,
- Float:intY,
- Float:intZ,
- Float:intA
- };
- new const bizInteriors[][bizInt] =
- {
- {"Supermarket", 600000, 6, -27.4377, -57.6114, 1003.5469, 0.0000},
- {"Gun Shop", 800000, 6, 316.2873, -169.6470, 999.6010, 0.0000},
- {"Clothes Shop", 750000, 14, 204.3860, -168.4586, 1000.5234, 0.0000},
- {"Gym", 600000, 7, 773.7802, -78.2581, 1000.6619, 0.0000},
- {"Restaurant", 500000, 10, 363.3276, -74.6505, 1001.5078, 315.0000},
- {"Advertisement Agency", 675000, 3, 834.1517, 7.4096, 1004.1870, 90.0000},
- {"Club/Bar", 475000, 11, 501.8694, -68.0046, 998.7578, 179.6117}
- };
- enum furnitureEnum
- {
- fCategory[24],
- fName[32],
- fModel,
- fPrice
- };
- new const furnitureCategories[][] =
- {
- {"Appliances"},
- {"Bathroom"},
- {"Bedroom"},
- {"Carpets"},
- {"Kitchen"},
- {"Tables"},
- {"Chairs"},
- {"Posters/Frames"},
- {"Storage"},
- {"Plants"},
- {"Trash"},
- {"Doors & gates"},
- {"Walls"},
- {"Decor"}
- };
- new const furnitureArray[][furnitureEnum] =
- {
- {"Appliances", "Blender", 19830, 500},
- {"Appliances", "Coffee machine", 11743, 500},
- {"Appliances", "Grill", 19831, 500},
- {"Appliances", "Electrical outlet", 19813, 50},
- {"Appliances", "Light switch", 19829, 50},
- {"Appliances", "Keyboard", 19808, 50},
- {"Appliances", "White telephone", 19807, 50},
- {"Appliances", "Black telephone", 11705, 50},
- {"Appliances", "Large LCD television", 19786, 1000},
- {"Appliances", "Small LCD television", 19787, 750},
- {"Appliances", "Round gold TV", 2224, 1500},
- {"Appliances", "TV on wheels", 14532, 250},
- {"Appliances", "Flat screen TV", 1792, 400},
- {"Appliances", "Wide screen TV", 1786, 400},
- {"Appliances", "Surveillance TV", 1749, 400},
- {"Appliances", "Regular TV", 1518, 250},
- {"Appliances", "Grey sided TV", 2322, 200},
- {"Appliances", "Wood sided TV", 1429, 200},
- {"Appliances", "Microwave", 2149, 100},
- {"Appliances", "Pizza rack", 2453, 50},
- {"Appliances", "Wide sprunk fridge", 2452, 100},
- {"Appliances", "Small sprunk fridge", 2533, 50},
- {"Appliances", "Duality game", 2779, 500},
- {"Appliances", "Bee Bee Gone game", 2778, 500},
- {"Appliances", "Space Monkeys game", 2681, 500},
- {"Appliances", "Sprunk machine", 1775, 1000},
- {"Appliances", "Candy machine", 1776, 1000},
- {"Appliances", "Water machine", 1808, 100},
- {"Appliances", "Radiator", 1738, 50},
- {"Appliances", "Metal fridge", 1780, 100},
- {"Appliances", "Pizza cooker", 2426, 50},
- {"Appliances", "Deep fryer", 2415, 100},
- {"Appliances", "Soda dispenser", 2427, 100},
- {"Appliances", "Aluminum stove", 2417, 100},
- {"Appliances", "Lamp", 2105, 50},
- {"Appliances", "Diagnostic machine", 19903, 4000},
- {"Appliances", "VHS player", 1785, 200},
- {"Appliances", "Playstation console", 2028, 500},
- {"Appliances", "Retro gaming console", 1718, 500},
- {"Appliances", "Hi-Fi speaker", 1839, 250},
- {"Appliances", "Black subwoofer", 2232, 250},
- {"Appliances", "Subwoofer", 1840, 250},
- {"Appliances", "Small black speaker", 2229, 250},
- {"Appliances", "Speaker on a stand", 2233, 100},
- {"Appliances", "Speaker & stereo system", 2099, 500},
- {"Appliances", "Surveillance camera", 1886, 50},
- {"Appliances", "Security camera", 1622, 50},
- {"Appliances", "Exercise bike", 2630, 500},
- {"Appliances", "Treadmill", 2627, 500},
- {"Appliances", "Lift bench", 2629, 250},
- {"Appliances", "Pull up machine", 2628, 500},
- {"Appliances", "White turntable", 1954, 500},
- {"Bathroom", "Toilet", 2514, 250},
- {"Bathroom", "Bathtub", 2519, 500},
- {"Bathroom", "Toilet paper", 19873, 50},
- {"Bathroom", "Towel rack", 11707, 100},
- {"Bathroom", "Toilet with rug", 2528, 500},
- {"Bathroom", "Toilet with rolls", 2525, 500},
- {"Bathroom", "Sink top", 2515, 100},
- {"Bathroom", "Dual sink top", 2150, 200},
- {"Bathroom", "Wood sided bathtub", 2526, 500},
- {"Bathroom", "Sprunk bathtub", 2097, 1000},
- {"Bathroom", "Shower curtains", 14481, 100},
- {"Bathroom", "Metal shower cabin", 2520, 500},
- {"Bathroom", "Glass shower cabin", 2517, 500},
- {"Bathroom", "Shower with curtains", 2527, 500},
- {"Bathroom", "Wall sink", 2518, 250},
- {"Bathroom", "Plain sink", 2739, 250},
- {"Bathroom", "Sink with extra soap", 2524, 250},
- {"Bathroom", "Sink with rug", 2523, 250},
- {"Bathroom", "Industrial sink", 11709, 500},
- {"Bedroom", "Prison bed", 1800, 100},
- {"Bedroom", "Folding bed", 1812, 100},
- {"Bedroom", "Red double bed", 11720, 500},
- {"Bedroom", "Wood double bed", 14866, 500},
- {"Bedroom", "Double plaid bed", 1794, 500},
- {"Bedroom", "Brown bed", 2229, 500},
- {"Bedroom", "Blue striped bed", 2302, 500},
- {"Bedroom", "Dark blue striped bed", 2298, 500},
- {"Bedroom", "White striped bed", 2090, 500},
- {"Bedroom", "Bed with cabinet", 2300, 500},
- {"Bedroom", "Pink & blue striped bed", 2301, 500},
- {"Bedroom", "Zebra print bed", 14446, 500},
- {"Bedroom", "Low striped bed", 1795, 500},
- {"Bedroom", "Low dark striped bed", 1798, 500},
- {"Bedroom", "Single plaid bed", 1796, 500},
- {"Bedroom", "Plain striped mattress", 1793, 500},
- {"Bedroom", "Silk sheeted bed", 1701, 500},
- {"Bedroom", "Framed striped bed", 1801, 500},
- {"Bedroom", "Framed brown bed", 1802, 500},
- {"Bedroom", "Wooden cabinet", 2330, 250},
- {"Bedroom", "Cabinet with TV", 2296, 500},
- {"Bedroom", "Dresser", 1416, 250},
- {"Bedroom", "Small dresser", 2095, 250},
- {"Bedroom", "Medium dresser", 1743, 250},
- {"Bedroom", "Wide dresser", 2087, 250},
- {"Bedroom", "Small wardrobe", 2307, 250},
- {"Bedroom", "Huge open wardrobe", 14556, 500},
- {"Bedroom", "Busted cabinet", 913, 500},
- {"Bedroom", "Busted dresser", 911, 250},
- {"Bedroom", "Dresser with no drawers", 912, 100},
- {"Carpets", "Rockstar carpet", 11737, 250},
- {"Carpets", "Plain red carpet", 2631, 250},
- {"Carpets", "Plain green carpet", 2632, 250},
- {"Carpets", "Patterned carpet", 2842, 250},
- {"Carpets", "Zig-zag patterned carpet", 2836, 250},
- {"Carpets", "Brown red striped carpet", 2847, 250},
- {"Carpets", "Old timer's carpet", 2833, 250},
- {"Carpets", "Red checkered carpet", 2818, 250},
- {"Carpets", "Green circled carpet", 2817, 250},
- {"Carpets", "Plain polkadot carpet", 2834, 250},
- {"Carpets", "Tiger rug", 1828, 1000},
- {"Carpets", "Plain round rug", 2835, 250},
- {"Carpets", "Round green rug", 2841, 250},
- {"Kitchen", "CJ's kitchen", 14384, 3000},
- {"Kitchen", "Whole kitchen", 14720, 3000},
- {"Kitchen", "White kitchen sink", 2132, 500},
- {"Kitchen", "White kitchen counter", 2134, 500},
- {"Kitchen", "White kitchen fridge", 2131, 500},
- {"Kitchen", "White kitchen drawers", 2133, 500},
- {"Kitchen", "White kitchen corner", 2341, 500},
- {"Kitchen", "White kitchen cupboard", 2141, 500},
- {"Kitchen", "Green kitchen sink", 2336, 500},
- {"Kitchen", "Green kitchen counter", 2334, 500},
- {"Kitchen", "Green kitchen fridge", 2147, 500},
- {"Kitchen", "Green kitchen corner", 2338, 500},
- {"Kitchen", "Green kitchen washer", 2337, 500},
- {"Kitchen", "Green kitchen cupboard", 2158, 500},
- {"Kitchen", "Green kitchen stove", 2170, 500},
- {"Kitchen", "Red kitchen sink", 2130, 500},
- {"Kitchen", "Red kitchen fridge", 2127, 500},
- {"Kitchen", "Red kitchen cupboard", 2128, 500},
- {"Kitchen", "Red kitchen corner", 2304, 500},
- {"Kitchen", "Red kitchen counter", 2129, 500},
- {"Kitchen", "Wood kitchen sink", 2136, 500},
- {"Kitchen", "Wood kitchen counter", 2139, 500},
- {"Kitchen", "Wood kitchen cupboard", 2140, 500},
- {"Kitchen", "Wood kitchen washer", 2303, 500},
- {"Kitchen", "Wood kitchen unit", 2138, 500},
- {"Kitchen", "Wood kitchen corner", 2305, 500},
- {"Kitchen", "Wood kitchen stove", 2135, 500},
- {"Kitchen", "Modern stove", 19923, 1000},
- {"Kitchen", "Old timer's stove", 19915, 1000},
- {"Kitchen", "Fork", 11715, 50},
- {"Kitchen", "Butter knife", 11716, 50},
- {"Kitchen", "Steak knife", 19583, 50},
- {"Kitchen", "Spatula", 19586, 50},
- {"Kitchen", "Double handled pan", 19585, 100},
- {"Kitchen", "Single handled pan", 19584, 100},
- {"Kitchen", "Frying pan", 19581, 100},
- {"Kitchen", "Tall striped saucepan", 11719, 100},
- {"Kitchen", "Striped saucepan", 11718, 100},
- {"Kitchen", "Cooked steak", 19982, 50},
- {"Kitchen", "Raw steak", 19582, 50},
- {"Kitchen", "Green apple", 19576, 50},
- {"Kitchen", "Red apple", 19575, 50},
- {"Kitchen", "Orange", 19574, 50},
- {"Kitchen", "Banana", 19578, 50},
- {"Kitchen", "Tomato", 19577, 50},
- {"Tables", "Lab table", 3383, 2000},
- {"Tables", "Pool table", 2964, 2000},
- {"Tables", "Blackjack table", 2188, 2000},
- {"Tables", "Betting table", 1824, 2000},
- {"Tables", "Roulette table", 1896, 2000},
- {"Tables", "Poker table", 19474, 1000},
- {"Tables", "Burger shot table", 2644, 500},
- {"Tables", "Cluckin' bell table", 2763, 500},
- {"Tables", "Wide cluckin' bell table", 2762, 500},
- {"Tables", "Square coffee table", 2370, 500},
- {"Tables", "Donut shop table", 2747, 500},
- {"Tables", "Pizza table", 2764, 500},
- {"Tables", "Wide coffee table", 2319, 500},
- {"Tables", "Rectangular green table", 11691, 500},
- {"Tables", "Squared green table", 11690, 500},
- {"Tables", "Round glass table", 1827, 500},
- {"Tables", "Round wooden table", 2111, 500},
- {"Tables", "Wide dining table", 2357, 500},
- {"Tables", "Plain wooden table", 2115, 500},
- {"Tables", "Plain brown wooden table", 1516, 500},
- {"Tables", "White polkadot table", 1770, 500},
- {"Tables", "Brown dining table", 1737, 500},
- {"Tables", "Round stone table", 2030, 500},
- {"Tables", "Wooden table with rim", 2699, 500},
- {"Tables", "Low coffee table", 1814, 500},
- {"Tables", "Low brown wooden table", 1433, 500},
- {"Tables", "Bedroom table", 2333, 500},
- {"Tables", "Round table with chairs", 1432, 500},
- {"Tables", "Table with benches", 1281, 500},
- {"Tables", "Checkered table & chairs", 1594, 500},
- {"Tables", "Wooden workshop table", 19922, 500},
- {"Tables", "Hexagon shaped table", 2725, 500},
- {"Tables", "Table with VCR", 2313, 500},
- {"Tables", "Low wooden TV stand", 2314, 500},
- {"Tables", "Low brown TV stand", 2315, 500},
- {"Tables", "Plain brown office desk", 2206, 500},
- {"Tables", "Office desk with computer", 2181, 1000},
- {"Tables", "Plain wooden office desk", 2185, 1000},
- {"Tables", "Computer desk", 2008, 1000},
- {"Chairs", "Blue swivel chair", 2356, 250},
- {"Chairs", "Brown dining chair", 1811, 250},
- {"Chairs", "Red folding chair", 2121, 250},
- {"Chairs", "Upholstered chair", 2748, 1000},
- {"Chairs", "Folding office chair", 1721, 250},
- {"Chairs", "Round black chair", 2776, 250},
- {"Chairs", "Black stool", 1716, 250},
- {"Chairs", "Brown stool", 2350, 250},
- {"Chairs", "Red stool", 2125, 250},
- {"Chairs", "Tall wooden dining chair", 2124, 250},
- {"Chairs", "Tall brown dining chair", 1739, 250},
- {"Chairs", "Checkered dining chair", 2807, 250},
- {"Chairs", "Plain office chair", 1671, 250},
- {"Chairs", "Brown folding chair", 19996, 250},
- {"Chairs", "Light brown chair", 19994, 250},
- {"Chairs", "Black lounge chair", 1704, 500},
- {"Chairs", "Beige lounge chair", 1705, 500},
- {"Chairs", "Dark blue reclining chair", 1708, 500},
- {"Chairs", "Brown corner chair", 11682, 500},
- {"Chairs", "Old timer's lounge chair", 1711, 500},
- {"Chairs", "Old timer's rocking chair", 1735, 500},
- {"Chairs", "Two chairs and a table", 2571, 500},
- {"Chairs", "Dark brown foot stool", 2293, 500},
- {"Chairs", "Rocking chair", 11734, 250},
- {"Chairs", "Plaid sofa", 1764, 750},
- {"Chairs", "Long black sofa", 1723, 750},
- {"Chairs", "Beige sofa", 1702, 750},
- {"Chairs", "Brown couch", 1757, 750},
- {"Chairs", "Old timer's sofa", 1728, 750},
- {"Chairs", "Brown corner couch piece", 2292, 500},
- {"Chairs", "White & grey couch", 1761, 750},
- {"Chairs", "Patterned couch", 1760, 750},
- {"Chairs", "Plaid couch", 1764, 750},
- {"Chairs", "Dark blue couch", 1768, 750},
- {"Chairs", "Wide brown couch", 2290, 750},
- {"Chairs", "Green couch", 1766, 750},
- {"Chairs", "Patterned armrest couch", 1763, 750},
- {"Chairs", "Red couch", 11717, 750},
- {"Chairs", "Very wide beige couch", 1710, 1500},
- {"Chairs", "Ultra wide beige couch", 1709, 2000},
- {"Chairs", "Red and white couch", 1707, 750},
- {"Posters/Frames", "Burger shot poster", 2641, 50},
- {"Posters/Frames", "Cluckin' bell poster", 2766, 50},
- {"Posters/Frames", "Wash wands poster", 2685, 50},
- {"Posters/Frames", "For lease poster", 11289, 50},
- {"Posters/Frames", "Monkey juice poster", 19328, 50},
- {"Posters/Frames", "Ring donuts poster", 2715, 50},
- {"Posters/Frames", "Battered ring posterr", 2716, 50},
- {"Posters/Frames", "Pizza poster", 2668, 50},
- {"Posters/Frames", "T-Shirt poster", 2729, 50},
- {"Posters/Frames", "Suburban poster", 2658, 50},
- {"Posters/Frames", "Zip poster", 2736, 50},
- {"Posters/Frames", "Binco poster", 2722, 50},
- {"Posters/Frames", "99c binco poster", 2719, 50},
- {"Posters/Frames", "Binco sale poster", 2721, 50},
- {"Posters/Frames", "Heat poster", 2661, 50},
- {"Posters/Frames", "Eris poster", 2655, 50},
- {"Posters/Frames", "Bobo poster", 2662, 50},
- {"Posters/Frames", "Base 5 poster", 2691, 50},
- {"Posters/Frames", "Base 5 cutout #1", 2693, 50},
- {"Posters/Frames", "Base 5 cutout #2", 2692, 50},
- {"Posters/Frames", "Long base 5 poster #1", 2695, 50},
- {"Posters/Frames", "Long base 5 poster #2", 2696, 50},
- {"Posters/Frames", "White prolaps poster", 2697, 50},
- {"Posters/Frames", "Black prolaps poster", 2656, 50},
- {"Posters/Frames", "San Fierro frame", 19175, 100},
- {"Posters/Frames", "Flint County frame", 19174, 100},
- {"Posters/Frames", "Gant Bridge frame", 19173, 100},
- {"Posters/Frames", "Los Santos frame", 19172, 100},
- {"Posters/Frames", "City View frame", 2289, 100},
- {"Posters/Frames", "Los Angeles frame", 2258, 100},
- {"Posters/Frames", "Wooden frame", 2288, 100},
- {"Posters/Frames", "Sail Boat frame", 2287, 100},
- {"Posters/Frames", "Ship frame", 2286, 100},
- {"Posters/Frames", "Water frame", 2285, 100},
- {"Posters/Frames", "Church frame", 2284, 100},
- {"Posters/Frames", "Rural frame", 2282, 100},
- {"Posters/Frames", "Sunset frame", 2281, 100},
- {"Posters/Frames", "Coast frame", 2280, 100},
- {"Posters/Frames", "Mount chiliad frame", 2279, 100},
- {"Posters/Frames", "Cargo ship frame", 2278, 100},
- {"Posters/Frames", "Cat frame", 2277, 100},
- {"Posters/Frames", "Bridge frame", 2276, 100},
- {"Posters/Frames", "Fruit Bowl frame", 2275, 100},
- {"Posters/Frames", "Flower frame", 2274, 100},
- {"Posters/Frames", "Bouquet frame", 2273, 100},
- {"Posters/Frames", "Landscape frame", 2272, 100},
- {"Posters/Frames", "Paper frame", 2271, 100},
- {"Posters/Frames", "Leaves frame", 2270, 100},
- {"Posters/Frames", "Lake frame", 2269, 100},
- {"Posters/Frames", "Black cat frame", 2268, 100},
- {"Posters/Frames", "Cruise ship frame", 2267, 100},
- {"Posters/Frames", "Night downtown frame", 2266, 100},
- {"Posters/Frames", "Dseert rocks frame", 2265, 100},
- {"Posters/Frames", "Beach frame", 2264, 100},
- {"Posters/Frames", "Dock frame", 2263, 100},
- {"Posters/Frames", "Downtown frame", 2262, 100},
- {"Posters/Frames", "Golden gate frame", 2261, 100},
- {"Posters/Frames", "Old Boat frame", 2260, 100},
- {"Posters/Frames", "Bowling frame", 2259, 100},
- {"Posters/Frames", "Pattern frame", 2283, 100},
- {"Posters/Frames", "Squares frame", 2257, 100},
- {"Posters/Frames", "Palm trees frame", 2256, 100},
- {"Posters/Frames", "Erotic frame", 2255, 100},
- {"Posters/Frames", "Yellow car frame", 2254, 10},
- {"Storage", "Book shelf", 1742, 500},
- {"Storage", "Wardrobe", 2307, 400},
- {"Storage", "Wooden crate", 1217, 150},
- {"Storage", "Metal crate", 964, 150},
- {"Storage", "Wide office cabinet", 2200, 150},
- {"Storage", "Yellow cabinet", 1730, 150},
- {"Storage", "Open gym locker", 11730, 250},
- {"Storage", "Closed gym locker", 11729, 250},
- {"Storage", "Toolbox", 19921, 500},
- {"Storage", "Chest", 19918, 100},
- {"Storage", "Dresser", 2094, 250},
- {"Storage", "Warehouse rack", 3761, 150},
- {"Storage", "Barrel rack", 925, 250},
- {"Storage", "Sex toy rack", 2581, 250},
- {"Storage", "Sex magazine rack #1", 2578, 250},
- {"Storage", "Sex magazine rack #2", 2579, 250},
- {"Storage", "Rack with no shelves", 2509, 250},
- {"Storage", "Rack with 3 shelves", 2482, 250},
- {"Storage", "Rack with 4 shelves", 2475, 250},
- {"Storage", "Small rack", 2463, 250},
- {"Storage", "Wide rack", 2462, 250},
- {"Storage", "Dresser with drawers", 1743, 250},
- {"Storage", "Wide dresser", 2087, 250},
- {"Storage", "Tall dresser", 2088, 250},
- {"Storage", "Brown dresser", 2089, 250},
- {"Storage", "Single dresser", 2095, 250},
- {"Storage", "White filing cabinet", 2197, 250},
- {"Storage", "Green filing cabinet", 2610, 250},
- {"Storage", "Dual filing cabinets", 2007, 250},
- {"Storage", "Black shelf", 2078, 250},
- {"Storage", "Brown shelf", 2204, 250},
- {"Storage", "Tool shelf", 19899, 250},
- {"Storage", "Tool cabinet", 19900, 250},
- {"Storage", "Wall mounted shelf", 19940, 250},
- {"Storage", "Clothes shelf", 2708, 250},
- {"Storage", "Gun rack", 2046, 250},
- {"Storage", "Shop shelf", 19640, 250},
- {"Storage", "Blue office shelf", 2191, 250},
- {"Storage", "Wooden office shelf", 2199, 250},
- {"Storage", "Office book shelf", 2161, 250},
- {"Storage", "Tall office cabinet", 2167, 100},
- {"Storage", "Wide office cabinet", 2163, 100},
- {"Plants", "Palm plant #1", 625, 100},
- {"Plants", "Palm plant #2", 626, 100},
- {"Plants", "Palm plant #3", 627, 100},
- {"Plants", "Palm plant #4", 628, 100},
- {"Plants", "Palm plant #5", 630, 100},
- {"Plants", "Palm plant #6", 631, 100},
- {"Plants", "Palm plant #7", 632, 100},
- {"Plants", "Palm plant #8", 633, 100},
- {"Plants", "Palm plant #9", 646, 100},
- {"Plants", "Palm plant #10", 644, 100},
- {"Plants", "Palm plant #11", 2001, 100},
- {"Plants", "Palm plant #12", 2010, 100},
- {"Plants", "Palm plant #13", 2011, 150},
- {"Plants", "Potted plant #1", 948, 150},
- {"Plants", "Potted plant #2", 949, 150},
- {"Plants", "Potted plant #3", 950, 150},
- {"Plants", "Potted plant #4", 2194, 150},
- {"Plants", "Potted plant #5", 2195, 150},
- {"Plants", "Potted plant #6", 2203, 150},
- {"Plants", "Potted plant #7", 2240, 150},
- {"Plants", "Potted plant #8", 2241, 150},
- {"Plants", "Potted plant #9", 2242, 150},
- {"Plants", "Potted plant #10", 2244, 150},
- {"Plants", "Potted plant #11", 2245, 150},
- {"Plants", "Potted plant #12", 2246, 150},
- {"Plants", "Potted plant #13", 2248, 150},
- {"Plants", "Potted plant #14", 2252, 150},
- {"Plants", "Potted plant #15", 2253, 150},
- {"Plants", "Potted plant #16", 2811, 150},
- {"Plants", "Wide plant", 638, 250},
- {"Plants", "Single bush plant", 1361, 250},
- {"Plants", "Wide bush plant", 1360, 250},
- {"Plants", "Bush plant and bench", 1364, 500},
- {"Plants", "Window plant #1", 3802, 200},
- {"Plants", "Window plant #2", 3810, 200},
- {"Trash", "Wastebin", 11706, 50},
- {"Trash", "Blue trashcan on wheels", 1339, 50},
- {"Trash", "Blue trashcan", 1430, 50},
- {"Trash", "Trashcan with holes", 1359, 50},
- {"Trash", "Cluckin' bell trashcan", 2770, 50},
- {"Trash", "Burger shot trashcan", 2420, 50},
- {"Trash", "Round bagged trashcan", 1330, 50},
- {"Trash", "Round white trashcan", 1329, 50},
- {"Trash", "Metal trashcan", 1328, 50},
- {"Trash", "Full dumpster", 1415, 50},
- {"Trash", "Closed dumpster", 1227, 50},
- {"Trash", "Bottle disposal unit", 1336, 50},
- {"Trash", "Blue dumpster", 1334, 50},
- {"Trash", "Red dumpster", 1333, 50},
- {"Trash", "Hippo trashcan", 1371, 50},
- {"Trash", "Poor trashcan", 1347, 50},
- {"Trash", "Cement trashcan", 1300, 50},
- {"Trash", "Trashcan filled with wood", 1442, 50},
- {"Trash", "Two pallets & trash", 1450, 50},
- {"Trash", "Single pallet", 1448, 50},
- {"Trash", "Garbage bag", 1265, 50},
- {"Trash", "Burger shot bag", 2663, 50},
- {"Trash", "Pile of boxes", 1440, 50},
- {"Trash", "Cardboard box", 1221, 50},
- {"Trash", "Open pizza box", 2860, 50},
- {"Trash", "Takeaway trash", 2866, 50},
- {"Trash", "Burger shot trash", 2840, 50},
- {"Trash", "Dirty dishes #1", 2812, 50},
- {"Trash", "Dirty dishes #2", 2822, 50},
- {"Trash", "Dirty dishes #3", 2829, 50},
- {"Trash", "Dirty dishes #4", 2830, 50},
- {"Trash", "Dirty dishes #5", 2831, 50},
- {"Trash", "Dirty dishes #6", 2832, 50},
- {"Trash", "Clean dishes #1", 2862, 50},
- {"Trash", "Clean dishes #2", 2863, 50},
- {"Trash", "Clean dishes #3", 2864, 50},
- {"Trash", "Clean dishes #4", 2865, 50},
- {"Trash", "Assorted trash #1", 2672, 50},
- {"Trash", "Assorted trash #2", 2677, 50},
- {"Trash", "Assorted trash #3", 2675, 50},
- {"Trash", "Assorted trash #4", 2676, 50},
- {"Trash", "Assorted trash #5", 2674, 50},
- {"Trash", "Assorted trash #6", 2673, 50},
- {"Trash", "Assorted trash #7", 2670, 50},
- {"Doors & gates", "Door with bars", 2930, 100},
- {"Doors & gates", "Petrol door", 2911, 100},
- {"Doors & gates", "Flat door", 3061, 100},
- {"Doors & gates", "Wardrobe door", 1567, 100},
- {"Doors & gates", "Green push door", 1492, 100},
- {"Doors & gates", "Red windowed door", 1493, 100},
- {"Doors & gates", "Black wooden door", 1494, 100},
- {"Doors & gates", "Brown windowed door", 3089, 100},
- {"Doors & gates", "Wooden farm door", 1497, 100},
- {"Doors & gates", "White wooden door", 1498, 100},
- {"Doors & gates", "Warehouse door", 1499, 100},
- {"Doors & gates", "Red door", 1504, 100},
- {"Doors & gates", "Blue door", 1505, 100},
- {"Doors & gates", "White door", 1506, 100},
- {"Doors & gates", "Yellow door", 1507, 100},
- {"Doors & gates", "Kitchen door", 1523, 100},
- {"Doors & gates", "Motel door", 1535, 100},
- {"Doors & gates", "Blue motel door", 2970, 100},
- {"Doors & gates", "24/7 door", 1560, 100},
- {"Doors & gates", "Barred door", 3061, 100},
- {"Doors & gates", "Red motel door", 3029, 100},
- {"Doors & gates", "Security door", 2949, 100},
- {"Doors & gates", "Tall white door", 2948, 100},
- {"Doors & gates", "Bank door", 2946, 100},
- {"Doors & gates", "Ship door", 2944, 100},
- {"Doors & gates", "Tower door", 977, 100},
- {"Doors & gates", "Maintenance doors", 11714, 100},
- {"Doors & gates", "Dual dffice door", 19176, 100},
- {"Doors & gates", "Screen door #1", 1495, 100},
- {"Doors & gates", "Screen door #2", 1500, 100},
- {"Doors & gates", "Screen door #3", 1501, 100},
- {"Doors & gates", "Shop door #1", 1532, 100},
- {"Doors & gates", "Shop door #2", 1496, 100},
- {"Doors & gates", "Shop door #3", 1533, 100},
- {"Doors & gates", "Shop door #4", 1537, 100},
- {"Doors & gates", "Shop door #5", 1538, 100},
- {"Doors & gates", "Office door #1", 1566, 100},
- {"Doors & gates", "Office door #2", 1569, 100},
- {"Doors & gates", "Office door #3", 1536, 100},
- {"Doors & gates", "Office door #4", 1557, 100},
- {"Doors & gates", "Office door #5", 1556, 100},
- {"Doors & gates", "Wooden push door #1", 1491, 100},
- {"Doors & gates", "Wooden push door #2", 1502, 100},
- {"Doors & gates", "Garage door #1", 8957, 100},
- {"Doors & gates", "Garage door #2", 7891, 100},
- {"Doors & gates", "Garage door #3", 3037, 100},
- {"Doors & gates", "Garage door #4", 19861, 100},
- {"Doors & gates", "Garage door #5", 19864, 100},
- {"Doors & gates", "Plain metal bar gate", 19912, 1000},
- {"Doors & gates", "Tall metal bar gate", 971, 1000},
- {"Doors & gates", "Long metal bar gate", 975, 1000},
- {"Doors & gates", "Los Santos Airport gate", 980, 1000},
- {"Doors & gates", "Fenced gate", 985, 1000},
- {"Doors & gates", "No parking gate", 19870, 1000},
- {"Doors & gates", "Fenced gate on wheels", 988, 1000},
- {"Walls", "wall001", 19353, 100},
- {"Walls", "wall002", 19354, 100},
- {"Walls", "wall003", 19355, 100},
- {"Walls", "wall004", 19356, 100},
- {"Walls", "wall005", 19357, 100},
- {"Walls", "wall006", 19358, 100},
- {"Walls", "wall007", 19359, 100},
- {"Walls", "wall008", 19360, 100},
- {"Walls", "wall009", 19361, 100},
- {"Walls", "wall010", 19362, 100},
- {"Walls", "wall011", 19363, 100},
- {"Walls", "wall012", 19364, 100},
- {"Walls", "wall013", 19365, 100},
- {"Walls", "wall014", 19366, 100},
- {"Walls", "wall015", 19367, 100},
- {"Walls", "wall016", 19368, 100},
- {"Walls", "wall017", 19369, 100},
- {"Walls", "wall018", 19370, 100},
- {"Walls", "wall019", 19371, 100},
- {"Walls", "wall020", 19372, 100},
- {"Walls", "wall021", 19373, 100},
- {"Walls", "wall022", 19374, 100},
- {"Walls", "wall023", 19375, 100},
- {"Walls", "wall024", 19376, 100},
- {"Walls", "wall025", 19377, 100},
- {"Walls", "wall026", 19378, 100},
- {"Walls", "wall027", 19379, 100},
- {"Walls", "wall028", 19380, 100},
- {"Walls", "wall029", 19381, 100},
- {"Walls", "wall030", 19382, 100},
- {"Walls", "wall031", 19383, 100},
- {"Walls", "wall032", 19384, 100},
- {"Walls", "wall033", 19385, 100},
- {"Walls", "wall034", 19386, 100},
- {"Walls", "wall035", 19387, 100},
- {"Walls", "wall036", 19388, 100},
- {"Walls", "wall037", 19389, 100},
- {"Walls", "wall038", 19390, 100},
- {"Walls", "wall039", 19391, 100},
- {"Walls", "wall040", 19392, 100},
- {"Walls", "wall041", 19393, 100},
- {"Walls", "wall042", 19394, 100},
- {"Walls", "wall043", 19395, 100},
- {"Walls", "wall044", 19396, 100},
- {"Walls", "wall045", 19397, 100},
- {"Walls", "wall046", 19398, 100},
- {"Walls", "wall047", 19399, 100},
- {"Walls", "wall048", 19400, 100},
- {"Walls", "wall049", 19401, 100},
- {"Walls", "wall050", 19402, 100},
- {"Walls", "wall051", 19403, 100},
- {"Walls", "wall052", 19404, 100},
- {"Walls", "wall053", 19405, 100},
- {"Walls", "wall054", 19406, 100},
- {"Walls", "wall055", 19407, 100},
- {"Walls", "wall056", 19408, 100},
- {"Walls", "wall057", 19409, 100},
- {"Walls", "wall058", 19410, 100},
- {"Walls", "wall059", 19411, 100},
- {"Walls", "wall060", 19412, 100},
- {"Walls", "wall061", 19413, 100},
- {"Walls", "wall062", 19414, 100},
- {"Walls", "wall063", 19415, 100},
- {"Walls", "wall064", 19416, 100},
- {"Walls", "wall065", 19417, 100},
- {"Walls", "wall066", 19426, 100},
- {"Walls", "wall067", 19427, 100},
- {"Walls", "wall068", 19428, 100},
- {"Walls", "wall069", 19429, 100},
- {"Walls", "wall070", 19430, 100},
- {"Walls", "wall071", 19431, 100},
- {"Walls", "wall072", 19432, 100},
- {"Walls", "wall073", 19433, 100},
- {"Walls", "wall074", 19434, 100},
- {"Walls", "wall075", 19435, 100},
- {"Walls", "wall076", 19436, 100},
- {"Walls", "wall077", 19437, 100},
- {"Walls", "wall078", 19438, 100},
- {"Walls", "wall079", 19439, 100},
- {"Walls", "wall080", 19440, 100},
- {"Walls", "wall081", 19441, 100},
- {"Walls", "wall082", 19442, 100},
- {"Walls", "wall083", 19443, 100},
- {"Walls", "wall084", 19444, 100},
- {"Walls", "wall085", 19445, 100},
- {"Walls", "wall086", 19446, 100},
- {"Walls", "wall087", 19447, 100},
- {"Walls", "wall088", 19448, 100},
- {"Walls", "wall089", 19449, 100},
- {"Walls", "wall090", 19450, 100},
- {"Walls", "wall091", 19451, 100},
- {"Walls", "wall092", 19452, 100},
- {"Walls", "wall093", 19453, 100},
- {"Walls", "wall094", 19454, 100},
- {"Walls", "wall095", 19455, 100},
- {"Walls", "wall096", 19456, 100},
- {"Walls", "wall097", 19457, 100},
- {"Walls", "wall098", 19458, 100},
- {"Walls", "wall099", 19459, 100},
- {"Walls", "wall100", 19460, 100},
- {"Walls", "wall101", 19461, 100},
- {"Walls", "wall102", 19462, 100},
- {"Walls", "wall103", 19463, 100},
- {"Walls", "wall104", 19464, 100},
- {"Walls", "wall105", 19465, 100},
- {"Decor", "Guard tower", 3279, 5000},
- {"Decor", "Tool board", 19815, 50},
- {"Decor", "Mailbox", 19867, 50},
- {"Decor", "Single key", 11746, 50},
- {"Decor", "Oxygen cylinder", 19816, 50},
- {"Decor", "Cauldron", 19527, 50},
- {"Decor", "Valve", 2983, 50},
- {"Decor", "Writing board", 19805, 50},
- {"Decor", "Punching bag", 1985, 50},
- {"Decor", "Desk fan", 2192, 50},
- {"Decor", "Satellite dish", 3031, 50},
- {"Decor", "Shopping cart", 1349, 50},
- {"Decor", "Fireplace logs", 19632, 50},
- {"Decor", "Telescope", 2600, 50},
- {"Decor", "Ladder", 1428, 50},
- {"Decor", "Plank", 2937, 50},
- {"Decor", "Blue curtains", 2558, 50},
- {"Decor", "Old curtains", 14443, 50},
- {"Decor", "Blinds", 18084, 50},
- {"Decor", "United states flag", 11245, 50},
- {"Decor", "Double US flag", 2614, 50},
- {"Decor", "Confederate flag", 2048, 50},
- {"Decor", "Basketball court", 946, 50},
- {"Decor", "Basketball", 2114, 50},
- {"Decor", "Fire exit sign", 11710, 50},
- {"Decor", "Fire extinguisher", 2690, 50},
- {"Decor", "Fire extinguisher panel", 11713, 50},
- {"Decor", "Fire alarm", 11713, 50},
- {"Decor", "Fire hydrant", 1211, 50},
- {"Decor", "Cocaine packet", 2891, 50},
- {"Decor", "Drug bundle", 1279, 50},
- {"Decor", "White package", 1575, 50},
- {"Decor", "Orange package", 1576, 50},
- {"Decor", "Yellow package", 1577, 50},
- {"Decor", "Green package", 1578, 50},
- {"Decor", "Blue package", 1579, 50},
- {"Decor", "Red package", 1580, 50},
- {"Decor", "Marijuana bundle", 2901, 50},
- {"Decor", "Marijuana plant", 3409, 50},
- {"Decor", "Ashtray", 1510, 50},
- {"Decor", "Ashtray with cigar", 1665, 50},
- {"Decor", "Pumpkin", 19320, 50},
- {"Decor", "Christmas tree", 19076, 50},
- {"Decor", "Stage", 19608, 250},
- {"Decor", "Gold record", 19617, 100},
- {"Decor", "Moose head", 1736, 300},
- {"Decor", "Cow", 19833, 500},
- {"Decor", "Rocking horse", 11733, 50},
- {"Decor", "Deer", 19315, 50},
- {"Decor", "Boot", 11735, 50},
- {"Decor", "Old radiator", 1738, 50},
- {"Decor", "Radiator", 11721, 50},
- {"Decor", "Round light", 11727, 50},
- {"Decor", "Mop & pail", 1778, 50},
- {"Decor", "Chambermaid", 1789, 50},
- {"Decor", "Bucket", 2713, 50},
- {"Decor", "Trolley", 2994, 50},
- {"Decor", "Body bags", 16444, 50},
- {"Decor", "Beach ball", 1598, 50},
- {"Decor", "Blackboard", 3077, 50},
- {"Decor", "Dumbell", 3072, 50},
- {"Decor", "Sports bag", 11745, 50},
- {"Decor", "Portable toilet", 2984, 50},
- {"Decor", "Round burger shot sign", 2643, 50},
- {"Decor", "Stretcher", 1997, 50},
- {"Decor", "Hospital bed", 2146, 50},
- {"Decor", "Work lamp", 2196, 50},
- {"Decor", "Fire bell", 1613, 50},
- {"Decor", "Sword", 19590, 50},
- {"Decor", "Wooden bat", 19914, 50},
- {"Decor", "Hand fan", 19591, 50},
- {"Decor", "Shop basket", 19592, 50},
- {"Decor", "Safe door", 19619, 50},
- {"Decor", "Safe enclosure", 19618, 50},
- {"Decor", "Bag of money", 1550, 50},
- {"Decor", "Oil can", 19621, 50},
- {"Decor", "Wrench", 19627, 50},
- {"Decor", "Engine", 19917, 50},
- {"Decor", "Broom", 19622, 50},
- {"Decor", "Briefcase", 19624, 50},
- {"Decor", "Cigarette", 19625, 50},
- {"Decor", "Fire wood", 19632, 50},
- {"Decor", "Compacted trash", 19772, 50},
- {"Decor", "Medic kit", 11738, 50},
- {"Decor", "Clip", 19995, 50},
- {"Decor", "Dippo lighter", 19998, 50},
- {"Decor", "Briquettes", 19573, 50},
- {"Decor", "Meat Sack", 2805, 50},
- {"Decor", "Small meat sack", 2803, 50},
- {"Decor", "Stack of magazines", 2855, 50},
- {"Decor", "Scattered magazines", 2852, 50},
- {"Decor", "Scattered books", 2854, 50},
- {"Decor", "Wooden stairs", 3361, 50},
- {"Decor", "Long concrete stairs", 14410, 50},
- {"Decor", "Short concrete stairs", 14416, 50},
- {"Decor", "Short stairs", 14877, 50},
- {"Decor", "Big window", 19325, 100},
- {"Decor", "Small window", 19466, 50},
- {"Decor", "Breakable window", 1649, 75},
- {"Decor", "Target #1", 2056, 50},
- {"Decor", "Target #2", 2055, 50},
- {"Decor", "Target #3", 2051, 50},
- {"Decor", "Target #4", 2050, 50},
- {"Decor", "Target #5", 2049, 50},
- {"Decor", "Clothes pile #1", 2819, 50},
- {"Decor", "Clothes pile #2", 2843, 50},
- {"Decor", "Clothes pile #3", 2844, 50},
- {"Decor", "Clothes pile #4", 2845, 50},
- {"Decor", "Clothes pile #5", 2846, 50}
- };
- enum entranceEnum
- {
- eName[32],
- eInterior,
- eWorld,
- eFreeze,
- Float:ePosX,
- Float:ePosY,
- Float:ePosZ,
- Float:ePosA,
- Float:eIntX,
- Float:eIntY,
- Float:eIntZ,
- Float:eIntA
- };
- new const staticEntrances[][entranceEnum] =
- {
- {"Country General", 1, 1, false, 2034.2003, -1402.1976, 17.2951, 180.0000, -45.3173, 157.9171, 999.0613, 180.0000},
- {"All Saints Hospital", 1, 2, false, 1172.5100, -1325.3057, 15.4045, 270.0000, -45.3173, 157.9171, 999.0613, 180.0000},
- {"Mulholland Savings", 5, 3, true, 1465.1348, -1010.5063, 26.8438, 180.0000, 1667.3536, -995.3700, 683.6913, 0.0000},
- //{"City Hall", 3, 4, false, 1482.6517, -1771.6108, 18.7958, 0.0000, 390.1344, 173.7334, 1008.3828, 90.0000},
- {"Police department", 2, 5, true, 1554.8918, -1675.6486, 16.1953, 90.0000, 1206.6467, -1314.2941, 796.7880, 270.0000},
- {"Licensing department", 3, 6, false, 1219.2590, -1812.1093, 16.5938, 180.0000, -2029.7135, -119.2240, 1035.1719, 0.0000},
- {"VIP lounge", 3, 7, false, 1015.6364, -1550.5270, 14.8594, 270.0000, -2634.8132, 1409.7212, 906.4647, 90.0000},
- {"Drug den", 5, 8, false, 2166.1746, -1671.4641, 15.0737, 225.0000, 318.6025, 1114.9443, 1083.8828, 0.0000},
- {"Crack house", 5, 9, false, 2351.9138, -1170.1725, 28.0507, 0.0000, 2352.3337, -1180.9257, 1027.9766, 90.0000},
- {"Heisenberg's trailer", 2, 10, false, -65.0972, -1574.3820, 2.6107, 180.0000, 1.6362, -3.0563, 999.4284, 90.0000},
- {"FBI headquarters", 1, 11, true, 330.6662, -1509.9915, 36.0391, 225.0000, -501.1844, 286.8678, 2001.0950, 0.0000},
- {"Los Santos Casino", 5, 12, true, 1022.5460, -1121.6831, 23.8720, 180.0000, 1095.5776, 33.3495, 1000.6797, 180.0000}
- };
- enum jobEnum
- {
- jobName[32],
- Float:jobX,
- Float:jobY,
- Float:jobZ
- };
- new const jobLocations[][jobEnum] =
- {
- {"Pizzaman", 2104.7771, -1805.1772, 13.5547},
- {"Courier", -77.3655, -1136.5300, 1.0781},
- {"Fisherman", 393.2632, -2070.5837, 7.8359},
- {"Bodyguard", 2227.4705, -1715.9694, 13.5302},
- {"Weapons Dealer", 1366.1694, -1274.5873, 13.5469},
- {"Mechanic", 2328.2659, -2314.9421, 13.5469},
- {"Miner", 1262.5063, -1265.6266, 13.3809},
- {"Street Sweeper", 2194.4561, -1973.1625, 13.5592},
- {"Taxi Driver", 1748.1373, -1863.0981, 13.5755},
- {"Drug Dealer", 2165.3611, -1673.0824, 15.0778},
- {"Lawyer", 1381.0668, -1086.6857, 27.3906},
- {"Detective", 1211.7496, -1319.7920, 796.7880}
- };
- enum atmEnum
- {
- Float:atmX,
- Float:atmY,
- Float:atmZ,
- Float:atmA
- };
- new const atmMachines[][atmEnum] =
- {
- {2228.394775, -1714.255126, 13.158315, 270.000000},
- {1928.599975, -1779.941650, 13.136871, 90.000000},
- //{1493.294677, -1772.306640, 18.385747, 180.000000},
- {1102.299438, -1438.380981, 15.396868, 90.000000},
- {563.902526, -1293.948730, 16.858232, 180.000000},
- {2233.269042, -1158.040527, 25.540679, 270.000000},
- {827.125183, -1345.751220, 13.182147, 270.000000},
- {827.125183, -1346.811157, 13.182147, 270.000000},
- {1093.036621, 29.262479, 1000.309509, 0.000000},
- {-14.377381, -180.600250, 1003.186889, 180.000000},
- {9.334012, -31.044189, 1003.159179, 270.000000},
- {-24.413511, -91.806381, 1003.126708, 180.000000},
- {-21.125793, -140.438766, 1003.166564, 180.000000},
- {-24.290849, -57.946674, 1003.176574, 180.000000}
- };
- enum fireEnum
- {
- fireIndex,
- Float:fireX,
- Float:fireY,
- Float:fireZ,
- Float:fireA,
- };
- new const randomFireSpawns[][fireEnum] =
- {
- {0, 1720.231079, -1740.936889, 11.432815, 180.922180},
- {0, 1723.581298, -1740.882934, 11.432815, 180.922180},
- {0, 1726.050537, -1740.842773, 11.432815, 180.922180},
- {0, 1716.479858, -1740.926757, 11.432815, 180.922180},
- {0, 1713.465332, -1740.676391, 11.432815, 180.922180},
- {0, 1723.581298, -1740.882934, 13.742803, 180.922180},
- {0, 1726.050537, -1740.842773, 14.072817, 180.922180},
- {0, 1720.231079, -1740.936889, 14.142808, 180.922180},
- {0, 1716.479858, -1740.926757, 14.642818, 180.922180},
- {0, 1713.465332, -1740.676391, 14.992820, 180.922180},
- {0, 1729.405151, -1742.339111, 11.432815, 180.922180},
- {0, 1729.405883, -1742.379028, 14.632813, 180.922180},
- {0, 1729.453002, -1745.278564, 11.432815, 180.922180},
- {0, 1729.452514, -1745.258789, 14.632813, 180.922180},
- {0, 1729.500610, -1748.218139, 11.432815, 180.922180},
- {0, 1729.497314, -1748.038085, 14.632813, 180.922180},
- {0, 1729.548095, -1751.127929, 11.432815, 180.922180},
- {0, 1729.547485, -1751.098022, 14.632813, 180.922180},
- {0, 1729.587524, -1753.567871, 11.432815, 180.922180},
- {0, 1729.587280, -1753.588500, 14.632813, 180.922180},
- {0, 1710.109741, -1740.329467, 11.432815, 180.922180},
- {0, 1707.230224, -1740.376220, 11.432815, 180.922180},
- {0, 1704.329956, -1740.422607, 11.432815, 180.922180},
- {0, 1710.109741, -1740.329467, 14.922813, 180.922180},
- {0, 1707.150390, -1740.377075, 14.922813, 180.922180},
- {0, 1704.710327, -1740.416137, 14.922813, 180.922180},
- {1, 1972.983886, -1923.633544, 11.286870, 358.727569},
- {1, 1975.173583, -1923.682617, 11.286870, 358.727569},
- {1, 1977.542724, -1923.735229, 11.286870, 358.727569},
- {1, 1979.951782, -1923.788696, 11.286870, 358.727569},
- {1, 1982.091552, -1923.836547, 11.286870, 358.727569},
- {1, 1984.420532, -1923.887817, 11.286870, 358.727569},
- {1, 1986.800292, -1923.941040, 11.286870, 358.727569},
- {1, 1989.079589, -1923.991821, 11.286870, 358.727569},
- {1, 1991.318847, -1924.041625, 11.286870, 358.727569},
- {1, 1993.569335, -1924.091918, 11.286870, 358.727569},
- {1, 1995.939086, -1924.143676, 11.286870, 358.727569},
- {1, 1998.008422, -1924.189697, 11.286870, 358.727569},
- {1, 1998.008422, -1924.189697, 14.286870, 358.727569},
- {1, 1995.939086, -1924.143676, 14.286870, 358.727569},
- {1, 1993.569335, -1924.091918, 14.286870, 358.727569},
- {1, 1991.318847, -1924.041625, 14.286870, 358.727569},
- {1, 1989.079589, -1923.991821, 14.286870, 358.727569},
- {1, 1986.800292, -1923.941040, 14.286870, 358.727569},
- {1, 1984.420532, -1923.887817, 14.286870, 358.727569},
- {1, 1982.091552, -1923.836547, 14.286870, 358.727569},
- {1, 1979.951782, -1923.788696, 14.286870, 358.727569},
- {1, 1977.542724, -1923.735229, 14.286870, 358.727569},
- {1, 1975.173583, -1923.682617, 14.286870, 358.727569},
- {1, 1972.983886, -1923.633544, 14.286870, 358.727569},
- {2, 2422.197753, -1963.760864, 11.329407, 270.000000},
- {2, 2422.197753, -1965.961059, 11.329407, 270.000000},
- {2, 2422.538085, -1968.141479, 11.329407, 270.000000},
- {2, 2422.437988, -1970.161865, 11.329407, 270.000000},
- {2, 2422.488037, -1972.322143, 11.329407, 270.000000},
- {2, 2422.488037, -1974.422363, 11.329407, 270.000000},
- {2, 2422.488037, -1976.602905, 11.329407, 270.000000},
- {2, 2422.568115, -1978.533569, 11.329407, 270.000000},
- {2, 2422.678222, -1980.704101, 11.329407, 270.000000},
- {2, 2422.197753, -1963.760864, 13.829407, 270.000000},
- {2, 2422.197753, -1965.961059, 13.829407, 270.000000},
- {2, 2422.538085, -1968.141479, 13.829407, 270.000000},
- {2, 2422.437988, -1970.161865, 13.829407, 270.000000},
- {2, 2422.488037, -1972.322143, 13.829407, 270.000000},
- {2, 2422.488037, -1974.422363, 13.829407, 270.000000},
- {2, 2422.488037, -1976.602905, 13.829407, 270.000000},
- {2, 2422.568115, -1978.533569, 13.829407, 270.000000},
- {2, 2422.678222, -1980.704101, 13.829407, 270.000000},
- {3, 855.264770, -1038.802124, 23.446907, 215.000000},
- {3, 853.698852, -1040.191894, 23.446907, 215.000000},
- {3, 851.837646, -1041.666137, 23.446907, 215.000000},
- {3, 850.262207, -1042.989501, 23.446907, 215.000000},
- {3, 848.620910, -1044.236816, 23.446907, 215.000000},
- {3, 846.878112, -1045.530883, 23.446907, 215.000000},
- {3, 844.986694, -1046.648193, 23.446907, 215.000000},
- {3, 843.184570, -1048.032226, 23.446907, 215.000000},
- {3, 841.548889, -1049.287597, 23.446907, 215.000000},
- {3, 839.740478, -1050.627563, 23.446907, 215.000000},
- {4, 512.298522, -1522.487792, 12.252450, 90.000000},
- {4, 512.298522, -1520.456787, 12.252450, 90.000000},
- {4, 512.298522, -1518.425903, 12.252450, 90.000000},
- {4, 512.298522, -1516.165405, 12.252450, 90.000000},
- {4, 512.298522, -1514.245239, 12.252450, 90.000000},
- {4, 512.068359, -1511.944091, 12.252450, 90.000000},
- {4, 512.068359, -1509.814208, 12.252450, 90.000000},
- {4, 512.298522, -1507.425292, 12.252450, 90.000000},
- {4, 512.298522, -1505.304931, 12.252450, 90.000000},
- {4, 512.298522, -1503.384521, 12.252450, 90.000000},
- {4, 512.298522, -1501.624389, 12.252450, 90.000000},
- {4, 512.298522, -1499.298339, 12.252450, 90.000000},
- {4, 512.298522, -1522.487792, 13.752450, 90.000000},
- {4, 512.298522, -1520.456787, 13.752450, 90.000000},
- {4, 512.298522, -1518.425903, 13.752450, 90.000000},
- {4, 512.298522, -1516.165405, 13.752450, 90.000000},
- {4, 512.298522, -1514.245239, 13.752450, 90.000000},
- {4, 512.068359, -1511.944091, 13.752450, 90.000000},
- {4, 512.068359, -1509.814208, 13.752450, 90.000000},
- {4, 512.298522, -1507.425292, 13.752450, 90.000000},
- {4, 512.298522, -1505.304931, 13.752450, 90.000000},
- {4, 512.298522, -1503.384521, 13.752450, 90.000000},
- {4, 512.298522, -1501.624389, 13.752450, 90.000000},
- {4, 512.298522, -1499.298339, 13.752450, 90.000000},
- {5, 2012.939208, -1282.796264, 21.760301, 179.226959},
- {5, 2010.718627, -1282.766845, 21.760301, 179.226959},
- {5, 2008.219238, -1282.732910, 21.760301, 179.226959},
- {5, 2005.989379, -1282.702880, 21.760301, 179.226959},
- {5, 2003.889770, -1282.674316, 21.760301, 179.226959},
- {5, 2001.719848, -1282.645507, 21.760301, 179.226959},
- {5, 1999.509765, -1282.615966, 21.760301, 179.226959},
- {5, 1997.539794, -1282.589599, 21.760301, 179.226959},
- {5, 1995.449462, -1282.561889, 21.760301, 179.226959},
- {5, 1993.546508, -1282.786621, 21.760301, 179.226959},
- {5, 1991.387695, -1282.647827, 21.760301, 179.226959},
- {5, 1989.187133, -1282.638427, 21.760301, 179.226959},
- {5, 1987.196044, -1282.701660, 21.760301, 179.226959},
- {5, 1985.255126, -1282.785278, 21.760301, 179.226959},
- {5, 1983.203491, -1282.928100, 21.760301, 179.226959},
- {5, 1981.183105, -1282.901489, 21.760301, 179.226959},
- {5, 1979.322875, -1282.876708, 21.760301, 179.226959},
- {5, 1977.321655, -1282.920288, 21.760301, 179.226959},
- {5, 1975.070434, -1282.950805, 21.760301, 179.226959},
- {5, 1973.359741, -1282.997802, 21.760301, 179.226959},
- {6, 2520.653076, -1268.459106, 32.786579, 268.202911},
- {6, 2520.595947, -1270.278076, 32.786579, 268.202911},
- {6, 2520.631347, -1272.040527, 32.786579, 268.202911},
- {6, 2520.779785, -1273.676757, 32.786579, 268.202911},
- {6, 2520.882080, -1275.182128, 32.786579, 268.202911},
- {6, 2520.826904, -1276.951538, 32.786579, 268.202911},
- {6, 2520.767822, -1278.821655, 32.786579, 268.202911},
- {6, 2520.811035, -1280.303833, 32.786579, 268.202911},
- {6, 2520.782958, -1281.844604, 32.786579, 268.202911},
- {6, 2520.734863, -1283.715209, 32.786579, 268.202911},
- {6, 2521.593261, -1265.743408, 32.543724, 178.275573},
- {6, 2520.653076, -1268.459106, 34.286579, 268.202911},
- {6, 2520.595947, -1270.278076, 34.286579, 268.202911},
- {6, 2520.631347, -1272.040527, 34.286579, 268.202911},
- {6, 2520.779785, -1273.676757, 34.286579, 268.202911},
- {6, 2520.882080, -1275.182128, 34.286579, 268.202911},
- {6, 2520.826904, -1276.951538, 34.286579, 268.202911},
- {6, 2520.767822, -1278.821655, 34.286579, 268.202911},
- {6, 2520.811035, -1280.303833, 34.286579, 268.202911},
- {6, 2520.782958, -1281.844604, 34.286579, 268.202911},
- {6, 2520.734863, -1283.715209, 34.286579, 268.202911},
- {6, 2521.593261, -1265.743408, 34.043724, 178.275573},
- {7, 2420.582031, -1510.028320, 22.002197, 87.980613},
- {7, 2420.656494, -1507.899536, 22.002197, 87.980613},
- {7, 2420.729248, -1505.820434, 22.002197, 87.980613},
- {7, 2420.797607, -1503.861328, 22.002197, 87.980613},
- {7, 2420.706298, -1501.856079, 22.002197, 87.980613},
- {7, 2420.772460, -1499.967163, 22.002197, 87.980613},
- {7, 2420.558349, -1498.327880, 22.002197, 87.980613},
- {7, 2420.629638, -1496.288818, 22.002197, 87.980613},
- {7, 2420.637451, -1494.617797, 22.002197, 87.980613},
- {7, 2418.689453, -1511.844482, 21.619995, 0.000000},
- {7, 2416.989501, -1511.844482, 21.619995, 0.000000},
- {7, 2415.138427, -1511.844482, 21.619995, 0.000000},
- {7, 2413.137939, -1511.844482, 21.619995, 0.000000},
- {7, 2411.336914, -1511.844482, 21.619995, 0.000000},
- {7, 2409.695800, -1511.844482, 21.619995, 0.000000},
- {7, 2408.024169, -1511.844482, 21.619995, 0.000000},
- {7, 2406.803466, -1511.844482, 21.619995, 0.000000},
- {7, 2405.712890, -1511.844482, 21.619995, 0.000000},
- {8, 1769.756469, -1721.183105, 11.426870, 0.000000},
- {8, 1771.825805, -1721.219238, 11.426870, 0.000000},
- {8, 1774.065917, -1721.219238, 11.426870, 0.000000},
- {8, 1776.336303, -1721.219238, 11.426870, 0.000000},
- {8, 1778.396972, -1721.219238, 11.426870, 0.000000},
- {8, 1780.507202, -1721.219238, 11.426870, 0.000000},
- {8, 1782.597290, -1721.219238, 11.426870, 0.000000},
- {8, 1784.728027, -1721.219238, 11.426870, 0.000000},
- {8, 1786.797851, -1721.219238, 11.426870, 0.000000},
- {8, 1788.677001, -1721.219238, 11.426870, 0.000000},
- {8, 1790.987304, -1721.219238, 11.426870, 0.000000},
- {8, 1792.916625, -1721.219238, 11.426870, 0.000000},
- {8, 1794.967285, -1721.219238, 11.426870, 0.000000},
- {8, 1796.447021, -1721.219238, 11.426870, 0.000000},
- {8, 1798.347534, -1721.219238, 11.426870, 0.000000},
- {9, 2723.256591, -2020.687255, 11.477196, 0.000000},
- {9, 2723.196289, -2022.766357, 11.477196, 0.000000},
- {9, 2723.316894, -2024.821044, 11.477196, 0.000000},
- {9, 2723.316894, -2026.461547, 11.477196, 0.000000},
- {9, 2723.316894, -2028.431030, 11.477196, 0.000000},
- {9, 2723.316894, -2030.141479, 11.477196, 0.000000},
- {9, 2723.316894, -2031.961547, 11.477196, 0.000000},
- {9, 2723.316894, -2033.631713, 11.477196, 0.000000},
- {9, 2723.316894, -2035.612060, 11.477196, 0.000000},
- {9, 2723.316894, -2037.552978, 11.477196, 0.000000},
- {9, 2723.316894, -2038.973632, 11.477196, 0.000000}
- };
- new const Float:minerPositions[][] =
- {
- {1276.6024, -1252.0608, 13.8471},
- {1264.3618, -1240.3776, 16.0091},
- {1255.6558, -1242.5010, 17.6045},
- {1255.5265, -1251.3208, 13.8461}
- };
- new const Float:paintballSpawns[][] =
- {
- {1291.2968, -0.1334, 1001.0228, 180.0000},
- {1304.6259, -28.7442, 1001.0326, 90.0000},
- {1260.6687, -0.6802, 1001.0234, 180.0000},
- {1251.9862, -26.3548, 1001.0340, 270.0000},
- {1278.8584, -44.1545, 1001.0236, 0.0000},
- {1256.5944, -61.9047, 1002.4999, 0.0000},
- {1297.3204, -61.4144, 1002.4980, 0.0000}
- };
- new const Float:drivingTestCPs[][] =
- {
- {1257.5657, -1849.3583, 13.0332},
- {1128.2242, -1849.8821, 13.0332},
- {1063.3004, -1839.3625, 13.0332},
- {987.0623, -1784.1073, 14.0711},
- {920.1835, -1758.3966, 13.3804},
- {919.8111, -1656.9091, 13.3828},
- {919.9860, -1560.1482, 13.3828},
- {930.4203, -1492.2578, 13.3754},
- {980.7775, -1492.2339, 13.3828},
- {1054.2943, -1491.7645, 13.3828},
- {1065.0643, -1416.5730, 13.3828},
- {1115.0032, -1408.2512, 13.3828},
- {1178.4860, -1408.3331, 13.3828},
- {1268.5947, -1408.8792, 13.3828},
- {1339.5221, -1416.9095, 13.3828},
- {1320.8999, -1494.4954, 13.3828},
- {1295.2820, -1573.4578, 13.3828},
- {1294.6698, -1666.3483, 13.3828},
- {1284.0913, -1709.6714, 13.3828},
- {1212.7543, -1709.5531, 13.3828},
- {1172.5828, -1724.7937, 13.6049},
- {1172.4504, -1783.9113, 13.3984},
- {1179.8055, -1855.1219, 13.3984},
- {1213.0060, -1842.1384, 13.3984}
- };
- new const Float:cellPositions[][] =
- {
- {1205.69995117, -1328.09997559, 797.00000000, 1205.699951, -1326.500000, 797.000000},
- {1205.69995117, -1331.30004883, 797.00000000, 1205.699951, -1329.700073, 797.000000},
- {1205.69995117, -1331.30004883, 800.50000000, 1205.699951, -1329.700073, 800.500000},
- {1205.69995117, -1328.09997559, 800.50000000, 1205.699951, -1326.500000, 800.500000},
- {1215.30004883, -1328.09997559, 797.00000000, 1215.300048, -1326.500000, 797.000000},
- {1215.30004883, -1331.30004883, 797.00000000, 1215.300048, -1329.700073, 797.000000},
- {1215.30004883, -1331.30004883, 800.50000000, 1215.300048, -1329.700073, 800.500000},
- {1215.30004883, -1328.09997559, 800.50000000, 1215.300048, -1326.500000, 800.500000},
- {1215.30004883, -1334.50000000, 797.00000000, 1215.300048, -1332.900024, 797.000000},
- {1215.29980469, -1337.69921875, 797.00000000, 1215.299804, -1336.099243, 797.000000},
- {1215.30004883, -1340.90002441, 797.00000000, 1215.300048, -1339.300048, 797.000000},
- {1215.30004883, -1340.90002441, 800.50000000, 1215.300048, -1339.300048, 800.500000},
- {1215.30004883, -1337.69995117, 800.50000000, 1215.300048, -1336.099975, 800.500000},
- {1215.30004883, -1334.50000000, 800.50000000, 1215.300048, -1332.900024, 800.500000},
- {1205.69995117, -1334.50000000, 800.50000000, 1205.699951, -1332.900024, 800.500000},
- {1205.69995117, -1337.69995117, 800.50000000, 1205.699951, -1336.099975, 800.500000},
- {1205.69995117, -1340.90002441, 800.50000000, 1205.699951, -1339.300048, 800.500000},
- {1205.69995117, -1334.50000000, 797.00000000, 1205.699951, -1332.900024, 797.000000},
- {1205.69995117, -1337.69995117, 797.00000000, 1205.699951, -1336.099975, 797.000000},
- {1205.69995117, -1340.90002441, 797.00000000, 1205.699951, -1339.300048, 797.000000},
- {1215.30004883, -1344.09997559, 800.50000000, 1215.300048, -1342.500000, 800.500000},
- {1215.30004883, -1344.09997559, 797.00000000, 1215.300048, -1342.500000, 797.000000},
- {1205.69995117, -1344.09997559, 800.50000000, 1205.699951, -1342.500000, 800.500000},
- {1205.69995117, -1344.09997559, 797.00000000, 1205.699951, -1342.500000, 797.000000}
- };
- new const Float:cellSpawns[][] =
- {
- {1203.1132, -1327.7273, 796.7505, 270.0000},
- {1203.1155, -1327.7273, 800.2859, 270.0000},
- {1203.3879, -1330.7003, 796.7505, 270.0000},
- {1203.6357, -1330.7050, 800.2859, 270.0000},
- {1203.2362, -1333.9489, 796.7505, 270.0000},
- {1203.4561, -1333.9528, 800.2859, 270.0000},
- {1203.6705, -1337.3608, 796.7505, 270.0000},
- {1203.8181, -1337.3634, 800.2859, 270.0000},
- {1203.5663, -1340.5317, 796.7505, 270.0000},
- {1203.6039, -1340.5325, 800.2859, 270.0000},
- {1203.6083, -1343.6737, 796.7505, 270.0000},
- {1204.0961, -1343.5482, 800.2859, 270.0000},
- {1217.6519, -1344.3740, 796.7456, 90.0000},
- {1217.5179, -1344.3721, 800.2859, 90.0000},
- {1217.6549, -1341.3425, 796.7456, 90.0000},
- {1217.5161, -1341.4125, 800.2859, 90.0000},
- {1217.5902, -1338.0251, 796.7456, 90.0000},
- {1217.5662, -1338.0247, 800.2859, 90.0000},
- {1217.5626, -1334.7852, 796.7456, 90.0000},
- {1217.5070, -1334.7842, 800.2859, 90.0000},
- {1217.6984, -1331.5767, 796.7456, 90.0000},
- {1217.4537, -1331.5715, 800.2859, 90.0000},
- {1217.5966, -1328.5653, 796.7456, 90.0000},
- {1217.4222, -1328.5616, 800.2859, 90.0000}
- };
- new const Float:arrestPoints[][] =
- {
- {1229.3544, -1311.8627, 796.7859}, // PD interior
- {1528.5728, -1677.8324, 5.8906}, // PD garage
- {1564.6931, -1662.1338, 28.3956}, // PD roof
- {310.3752, -1515.3691, 24.9219}, // FBI garage
- {324.7642, 305.1107, 999.1484} // Sheriff Arrest
-
- };
- new const factionTypes[][] =
- {
- {"Civilian"},
- {"Law enforcement"},
- {"Medical & fire"},
- {"News agency"},
- {"Government"},
- {"Hitman agency"},
- {"Federal police"}
- };
- new const deployableItems[][] =
- {
- {"Spikestrip"},
- {"Traffic cone"},
- {"Roadblock"},
- {"Barrel"},
- {"Smoke flare"}
- };
- new const clothingTypes[][] =
- {
- {"Glasses"},
- {"Bandanas & masks"},
- {"Hats & caps"},
- {"Misc clothing"}
- };
- enum clothingEnum
- {
- clothingType[20],
- clothingName[32],
- clothingModel,
- clothingBone,
- clothingPrice
- };
- new const clothingArray[][clothingEnum] =
- {
- {"Glasses", "Red tinted shades", 19006, 2, 500},
- {"Glasses", "Brown tinted shades", 19007, 2, 500},
- {"Glasses", "Green tinted shades", 19008, 2, 500},
- {"Glasses", "Blue tinted shades", 19009, 2, 500},
- {"Glasses", "Pink tinted shades", 19010, 2, 500},
- {"Glasses", "Spiralled shades", 19011, 2, 500},
- {"Glasses", "Black tinted shades", 19012, 2, 500},
- {"Glasses", "Gag glasses", 19013, 2, 500},
- {"Glasses", "Checkered shades", 19014, 2, 500},
- {"Glasses", "Reading glasses", 19015, 2, 500},
- {"Glasses", "X-Ray glasses", 19016, 2, 500},
- {"Glasses", "Plastic black shades", 19017, 2, 500},
- {"Glasses", "Plastic orange shades", 19018, 2, 500},
- {"Glasses", "Plastic red shades", 19019, 2, 500},
- {"Glasses", "Plastic blue shades", 19020, 2, 500},
- {"Glasses", "Plastic green shades", 19021, 2, 500},
- {"Glasses", "Clear sunglasses", 19022, 2, 500},
- {"Glasses", "Blue sunglasses", 19023, 2, 500},
- {"Glasses", "Purple sunglasses", 19024, 2, 500},
- {"Glasses", "Pink sunglasses", 19025, 2, 500},
- {"Glasses", "Red sunglasses", 19026, 2, 500},
- {"Glasses", "Brown sunglasses", 19027, 2, 500},
- {"Glasses", "Yellow sunglasses", 19028, 2, 500},
- {"Glasses", "Green sunglasses", 19029, 2, 500},
- {"Glasses", "Plain brown shades", 19030, 2, 500},
- {"Glasses", "Plain yellow shades", 19031, 2, 500},
- {"Glasses", "Plain red shades", 19032, 2, 500},
- {"Glasses", "Plain black shades", 19033, 2, 500},
- {"Glasses", "Checkered glasses", 19034, 2, 500},
- {"Glasses", "Wavy glasses", 19035, 2, 500},
- {"Bandanas & masks", "Balaclava", 19801, 2, 375},
- {"Bandanas & masks", "Dark blue bandana", 18891, 2, 375},
- {"Bandanas & masks", "Red bandana", 18892, 2, 375},
- {"Bandanas & masks", "Red & white bandana", 18893, 2, 375},
- {"Bandanas & masks", "Orange star bandana", 18894, 2, 375},
- {"Bandanas & masks", "Skull bandana", 18895, 2, 375},
- {"Bandanas & masks", "Black bandana", 18896, 2, 375},
- {"Bandanas & masks", "Blue bandana", 18897, 2, 375},
- {"Bandanas & masks", "Green bandana", 18898, 2, 375},
- {"Bandanas & masks", "Pink bandana", 18899, 2, 375},
- {"Bandanas & masks", "Hippie bandana", 18900, 2, 375},
- {"Bandanas & masks", "Tiger bandana", 18901, 2, 375},
- {"Bandanas & masks", "Yellow bandana", 18902, 2, 375},
- {"Bandanas & masks", "Purple bandana", 18903, 2, 375},
- {"Bandanas & masks", "Cool blue bandana", 18904, 2, 375},
- {"Bandanas & masks", "Brown bandana", 18905, 2, 375},
- {"Bandanas & masks", "Skull bandana mask", 18911, 2, 375},
- {"Bandanas & masks", "Black bandana mask", 18912, 2, 375},
- {"Bandanas & masks", "Grove bandana mask", 18913, 2, 375},
- {"Bandanas & masks", "Camo bandana mask", 18914, 2, 375},
- {"Bandanas & masks", "Hippie bandana mask", 18915, 2, 375},
- {"Bandanas & masks", "Yellow bandana mask", 18916, 2, 375},
- {"Bandanas & masks", "Blue bandana mask", 18917, 2, 375},
- {"Bandanas & masks", "Green bandana mask", 18918, 2, 375},
- {"Bandanas & masks", "White bandana mask", 18919, 2, 375},
- {"Bandanas & masks", "Flower bandana mask", 18920, 2, 375},
- {"Bandanas & masks", "White hockey mask", 19036, 2, 375},
- {"Bandanas & masks", "Red hockey mask", 19037, 2, 375},
- {"Bandanas & masks", "Green hockey mask", 19038, 2, 375},
- {"Bandanas & masks", "Sexy mask", 19557, 2, 375},
- {"Bandanas & masks", "Devil mask", 11704, 2, 375},
- {"Bandanas & masks", "Gas mask", 19472, 2, 375},
- {"Bandanas & masks", "Zorro mask", 18974, 2, 375},
- {"Bandanas & masks", "Gimp mask", 19163, 2, 375},
- {"Hats & caps", "Santa hat", 19064, 2, 240},
- {"Hats & caps", "Dude hat", 19160, 2, 240},
- {"Hats & caps", "Top hat", 19352, 2, 240},
- {"Hats & caps", "Witch hat", 19528, 2, 240},
- {"Hats & caps", "Yellow fire hat", 19330, 2, 240},
- {"Hats & caps", "Black fire hat", 19331, 2, 240},
- {"Hats & caps", "Black beret", 18921, 2, 240},
- {"Hats & caps", "Brown beret", 18922, 2, 240},
- {"Hats & caps", "Blue beret", 18923, 2, 240},
- {"Hats & caps", "Camo beret", 18924, 2, 240},
- {"Hats & caps", "Red beret", 18925, 2, 240},
- {"Hats & caps", "Camo cap", 18926, 2, 240},
- {"Hats & caps", "Wave cap", 18927, 2, 240},
- {"Hats & caps", "Hippy cap", 18928, 2, 240},
- {"Hats & caps", "Green cap", 18929, 2, 240},
- {"Hats & caps", "Red cap", 18930, 2, 240},
- {"Hats & caps", "Blue cap", 18931, 2, 240},
- {"Hats & caps", "Orange cap", 18932, 2, 240},
- {"Hats & caps", "White cap", 18933, 2, 240},
- {"Hats & caps", "Plain pink cap", 18934, 2, 240},
- {"Hats & caps", "Plain yellow cap", 18935, 2, 240},
- {"Hats & caps", "Blue back cap", 18939, 2, 240},
- {"Hats & caps", "Wave back cap", 18940, 2, 240},
- {"Hats & caps", "Black back cap", 18941, 2, 240},
- {"Hats & caps", "White back cap", 18942, 2, 240},
- {"Hats & caps", "Green back cap", 18943, 2, 240},
- {"Hats & caps", "Red boater hat", 18944, 2, 240},
- {"Hats & caps", "Green boater hat", 18945, 2, 240},
- {"Hats & caps", "Striped boater hat", 18946, 2, 240},
- {"Hats & caps", "Black bowler hat", 18947, 2, 240},
- {"Hats & caps", "White bowler hat", 19488, 2, 240},
- {"Hats & caps", "Blue bowler hat", 18948, 2, 240},
- {"Hats & caps", "Green bowler hat", 18949, 2, 240},
- {"Hats & caps", "Red bowler hat", 18950, 2, 240},
- {"Hats & caps", "Yellow bowler hat", 18951, 2, 240},
- {"Hats & caps", "Black knit cap", 18953, 2, 240},
- {"Hats & caps", "White knit cap", 18954, 2, 240},
- {"Hats & caps", "Hippie hat", 18960, 2, 240},
- {"Hats & caps", "Born 2 truck hat", 18961, 2, 240},
- {"Hats & caps", "Brown cowboy hat", 19098, 2, 240},
- {"Hats & caps", "Black cowboy hat", 19096, 2, 240},
- {"Hats & caps", "Skully cap", 18964, 2, 240},
- {"Hats & caps", "Black bucket hat", 18967, 2, 240},
- {"Hats & caps", "Plaid bucket hat", 18968, 2, 240},
- {"Hats & caps", "Zig-Zag bucket hat", 18969, 2, 240},
- {"Hats & caps", "Camo bucket hat", 19106, 2, 240},
- {"Hats & caps", "Hippy hat", 19113, 2, 240},
- {"Hats & caps", "Don't shoot me hat", 19114, 2, 240},
- {"Hats & caps", "Skull hat", 19115, 2, 240},
- {"Hats & caps", "Tiger hat", 18970, 2, 240},
- {"Hats & caps", "Hard hat", 18638, 2, 240},
- {"Hats & caps", "Straw hat", 19553, 2, 240},
- {"Hats & caps", "Pizza hat", 19558, 2, 240},
- {"Hats & caps", "Beanie hat", 19554, 2, 240},
- {"Hats & caps", "Checkered fedora", 18971, 2, 240},
- {"Hats & caps", "Orange fedora", 18972, 2, 240},
- {"Hats & caps", "Yellow fedora", 18973, 2, 240},
- {"Hats & caps", "Camoflauge helmet", 19101, 2, 240},
- {"Hats & caps", "Black helmet", 19116, 2, 240},
- {"Hats & caps", "Red helmet", 19117, 2, 240},
- {"Hats & caps", "Green helmet", 19118, 2, 240},
- {"Hats & caps", "Blue helmet", 19119, 2, 240},
- {"Hats & caps", "Yellow helmet", 19120, 2, 240},
- {"Hats & caps", "Boxing helmet", 18952, 2, 240},
- {"Hats & caps", "Motorcycle helmet", 18645, 2, 240},
- {"Misc clothing", "Gold watch", 19039, 6, 500},
- {"Misc clothing", "Silver watch", 19040, 6, 500},
- {"Misc clothing", "Bronze watch", 19041, 6, 500},
- {"Misc clothing", "Yellow watch", 19042, 6, 500},
- {"Misc clothing", "White watch", 19043, 6, 500},
- {"Misc clothing", "Purple watch", 19044, 6, 500},
- {"Misc clothing", "Pink watch", 19045, 6, 500},
- {"Misc clothing", "Green watch", 19046, 6, 500},
- {"Misc clothing", "Blue watch", 19047, 6, 500},
- {"Misc clothing", "Camo watch", 19053, 6, 500},
- {"Misc clothing", "White headphones", 19421, 2, 500},
- {"Misc clothing", "Black headphones", 19422, 2, 500},
- {"Misc clothing", "Orange headphones", 19423, 2, 500},
- {"Misc clothing", "Blue headphones", 19424, 2, 500},
- {"Misc clothing", "Red clown hair", 19274, 2, 500},
- {"Misc clothing", "Grey clown hair", 19518, 2, 500},
- {"Misc clothing", "Black hair", 19077, 2, 500},
- {"Misc clothing", "Grey hair", 19517, 2, 500},
- {"Misc clothing", "Bass guitar", 19317, 1, 500},
- {"Misc clothing", "White guitar", 19318, 1, 500},
- {"Misc clothing", "Black guitar", 19319, 1, 500},
- {"Misc clothing", "Pilot hat", 19520, 2, 500},
- {"Misc clothing", "Bag of money", 1550, 1, 500},
- {"Misc clothing", "Shop basket", 19592, 6, 500},
- {"Misc clothing", "Oil can", 19621, 6, 500},
- {"Misc clothing", "Broom", 19622, 1, 500},
- {"Misc clothing", "Camera", 19623, 6, 500},
- {"Misc clothing", "Briefcase", 19624, 6, 500},
- {"Misc clothing", "Cigarette", 19625, 2, 500},
- {"Misc clothing", "Spade", 19626, 1, 500},
- {"Misc clothing", "Left boxing glove", 19555, 5, 500},
- {"Misc clothing", "Right boxing glove", 19556, 6, 500},
- {"Misc clothing", "Scarf", 19469, 2, 500},
- {"Misc clothing", "Eye patch", 19085, 2, 500},
- {"Misc clothing", "Hiker backpack", 19559, 1, 500},
- {"Misc clothing", "Construction vest", 19904, 1, 500},
- {"Misc clothing", "Police radio", 19942, 1, 500},
- {"Misc clothing", "Bodybag", 19944, 1, 500},
- {"Misc clothing", "Sports bag", 11745, 1, 500},
- {"Misc clothing", "Holster", 19773, 8, 500},
- {"Misc clothing", "Fedora", 18639, 2, 500},
- {"Misc clothing", "Afro", 18640, 2, 500},
- {"Misc clothing", "Flashlight", 18641, 6, 500},
- {"Misc clothing", "Hammer", 18635, 6, 500},
- {"Misc clothing", "Wrench", 18633, 2, 500}
- };
- enum carEnum
- {
- carCategory[16],
- carModel,
- carPrice
- };
- new const vehicleArray[][carEnum] =
- {
- {"Bikes", 481, 5000},
- {"Bikes", 509, 5000},
- {"Bikes", 510, 10000},
- {"Bikes", 462, 15000},
- {"Bikes", 471, 17500},
- {"Bikes", 448, 20000},
- {"Bikes", 468, 30000},
- {"Bikes", 586, 37500},
- {"Bikes", 463, 50000},
- {"Bikes", 521, 75000},
- {"Bikes", 461, 80000},
- {"Saloons", 549, 23000},
- {"Saloons", 542, 24500},
- {"Saloons", 546, 27500},
- {"Saloons", 517, 29000},
- {"Saloons", 419, 30000},
- {"Saloons", 466, 32500},
- {"Saloons", 467, 33000},
- {"Saloons", 475, 34500},
- {"Saloons", 492, 37500},
- {"Saloons", 445, 42500},
- {"Saloons", 529, 45000},
- {"Saloons", 540, 47500},
- {"Saloons", 550, 52500},
- {"Saloons", 421, 55000},
- {"Saloons", 551, 65000},
- {"Saloons", 547, 70000},
- {"Saloons", 426, 87500},
- {"Saloons", 409, 90000},
- {"Saloons", 580, 125000},
- {"Off-Road", 500, 57500},
- {"Off-Road", 400, 65000},
- {"Off-Road", 489, 67500},
- {"Off-Road", 495, 75000},
- {"Off-Road", 579, 80000},
- {"Station wagons", 418, 27500},
- {"Station wagons", 404, 35000},
- {"Station wagons", 479, 37500},
- {"Station wagons", 458, 40000},
- {"Station wagons", 561, 55000},
- {"Sports cars", 496, 40000},
- {"Sports cars", 402, 80000},
- {"Sports cars", 477, 50000},
- {"Sports cars", 565, 55000},
- {"Sports cars", 589, 60000},
- {"Sports cars", 558, 65000},
- {"Sports cars", 559, 70000},
- {"Sports cars", 587, 72500},
- {"Sports cars", 562, 75000},
- {"Sports cars", 603, 80000},
- {"Sports cars", 494, 85000},
- {"Sports cars", 560, 100000},
- {"Sports cars", 429, 125000},
- {"Sports cars", 541, 225000},
- {"Sports cars", 415, 275000},
- {"Sports cars", 451, 375000},
- {"Sports cars", 411, 400000},
- {"Lowriders", 412, 35000},
- {"Lowriders", 576, 40000},
- {"Lowriders", 534, 47500},
- {"Lowriders", 566, 50000},
- {"Lowriders", 535, 52500},
- {"Lowriders", 536, 57500},
- {"Lowriders", 567, 60000},
- {"Lowriders", 575, 75000},
- {"Industrial", 478, 20000},
- {"Industrial", 543, 27500},
- {"Industrial", 600, 30000},
- {"Industrial", 422, 35000},
- {"Industrial", 413, 40000},
- {"Industrial", 440, 45000},
- {"Industrial", 525, 57500},
- {"Industrial", 554, 62500},
- {"Industrial", 482, 65000},
- {"Industrial", 552, 70000},
- {"Industrial", 414, 75000},
- {"Industrial", 498, 80000},
- {"Industrial", 578, 105000},
- {"Public service", 420, 30000},
- {"Public service", 438, 32500},
- {"Public service", 437, 75000},
- {"Public service", 431, 75000}
- };
- enum bizInts
- {
- intName[32],
- intID,
- Float:intX,
- Float:intY,
- Float:intZ,
- Float:intA
- };
- new const bizInteriorArray[][bizInts] =
- {
- {"24/7 (version 1)", 17, -25.9733, -187.8952, 1003.5468, 0.0000},
- {"24/7 (version 2)", 10, 6.0159, -31.0345, 1003.5493, 0.0000},
- {"24/7 (version 3)", 18, -30.9967, -91.4492, 1003.5468, 0.0000},
- {"24/7 (version 4)", 16, -25.9416, -140.6656, 1003.5468, 0.0000},
- {"24/7 (version 5)", 4, -27.3069, -30.8341, 1003.5573, 0.0000},
- {"24/7 (version 6)", 6, -27.4368, -57.4361, 1003.5468, 0.0000},
- {"Ammunation (version 1)", 7, 315.7398, -143.1958, 999.6016, 0.0000},
- {"Ammunation (version 2)", 1, 285.3190, -41.1576, 1001.5156, 0.0000},
- {"Ammunation (version 3)", 4, 285.7825, -85.9860, 1001.5228, 0.0000},
- {"Ammunation (version 4)", 6, 296.7723, -111.6399, 1001.5156, 0.0000},
- {"Ammunation (version 5)", 6, 316.2890, -169.7619, 999.6010, 0.0000},
- {"Binco", 15, 207.6329, -110.7673, 1005.1328, 0.0000},
- {"Pro-Laps", 3, 206.9459, -139.5319, 1003.5078, 0.0000},
- {"Didier Sachs", 14, 204.2969, -168.3488, 1000.5233, 0.0000},
- {"Victim", 5, 226.7738, -8.2257, 1002.2108, 90.0000},
- {"Zip", 18, 161.3670, -96.4953, 1001.8046, 0.0000},
- {"SubUrban", 1, 203.7149, -50.2200, 1001.8046, 0.0000},
- {"Betting (version 1)", 3, 834.1848, 7.3453, 1004.1870, 90.0000},
- {"Betting (version 2)", 1, -2170.3428, 640.7771, 1052.3817, 0.0000},
- {"Donut Shop", 17, 377.0733, -193.0574, 1000.6400, 0.0000},
- {"Burger Shot", 10, 363.1346, -74.8441, 1001.5078, 315.0000},
- {"Pizza Stack", 5, 372.3019, -133.1221, 1001.4921, 0.0000},
- {"Cluckin' Bell", 9, 364.8536, -11.1400, 1001.8516, 0.0000},
- {"Marco's Bistro", 1, -795.0334, 489.8574, 1376.1953, 0.0000},
- {"Cafeteria", 4, 459.7685, -88.6637, 999.5547, 90.0000},
- {"Barber Shop", 3, 418.5545, -83.9392, 1001.8046, 0.0000},
- {"Tattoo Shop", 3, -204.4362, -43.8119, 1002.2733, 0.0000},
- {"Ganton Gym", 5, 772.2800, -4.7154, 1000.7288, 0.0000},
- {"Las Venturas Gym", 7, 773.8508, -78.3952, 1000.6621, 0.0000},
- {"San Fierro Gym", 6, 774.1206, -49.9538, 1000.5858, 0.0000},
- {"Sex Shop", 3, -100.3628, -24.4456, 1000.7188, 0.0000},
- {"RC Shop", 6, -2240.3610, 128.2816, 1035.4210, 270.0000},
- {"Four Dragons Casino", 10, 2018.2132, 1017.7788, 996.8750, 90.0000},
- {"Caligulas Casino", 1, 2234.0485, 1714.1568, 1012.3596, 180.0000},
- {"Red Sands Casino", 12, 1133.1075, -15.3114, 1000.6796, 0.0000},
- {"Alhambra", 17, 493.3728, -23.9953, 1000.6796, 0.0000},
- {"Pig Pen", 2, 1204.7922, -13.2587, 1000.9218, 0.0000},
- {"Big Spread Ranch", 3, 1212.1400, -26.3005, 1000.9531, 180.0000},
- {"Ten Green Bottles", 11, 501.9559, -67.9867, 998.7578, 180.0000},
- {"Lil' Probe Inn", 18, -228.7570, 1401.2421, 27.7656, 270.0000},
- {"Warehouse", 18, 1307.0178, 4.1193, 1001.0289, 90.0000}
- };
- enum intEnum
- {
- intName[32],
- intID,
- Float:intX,
- Float:intY,
- Float:intZ,
- Float:intA
- }
- new const interiorArray[][intEnum] =
- {
- {"24/7 (version 1)", 17, -25.7220, -187.8215, 1003.5468, 5.0760},
- {"24/7 (version 2)", 10, 6.0854, -28.8966, 1003.5493, 5.0363},
- {"24/7 (version 3)", 18, -30.9874, -89.6806, 1003.5468, 359.8399},
- {"24/7 (version 4)", 16, -26.1856, -140.9163, 1003.5468, 2.9086},
- {"24/7 (version 5)", 4, -27.8439, -26.6737, 1003.5573, 184.3117},
- {"24/7 (version 6)", 6, -26.8339, -55.5844, 1003.5468, 3.9528},
- {"8-Track Stadium", 7, -1403.0114, -250.4526, 1043.5340, 355.8576},
- {"Abandoned AC Tower", 10, 419.8934, 2537.1154, 10.0000, 67.6537},
- {"Ammunation (version 1)", 7, 315.2438, -140.8858, 999.6016, 7.4225},
- {"Ammunation (version 2)", 1, 285.8359, -39.0166, 1001.5156, 0.7529},
- {"Ammunation (version 3)", 4, 291.7626, -80.1305, 1001.5156, 290.2195},
- {"Ammunation (version 4)", 6, 297.1440, -109.8702, 1001.5156, 20.2254},
- {"Ammunation (version 5)", 6, 316.5025, -167.6271, 999.5938, 10.3030},
- {"Andromada", 9, 315.4544, 976.5972, 1960.8509, 359.6368},
- {"Angel Pine Trailer", 2, 1.1851, -3.2386, 999.4284, 87.5718},
- {"Area 69", 0, 215.1515, 1874.0577, 13.1406, 177.5538},
- {"Atrium", 18, 1727.2851, -1642.9449, 20.2254, 172.4192},
- {"B Dup's Apartment", 3, 1527.0467, -12.0235, 1002.0971, 350.0013},
- {"B Dup's Crack Palace", 2, 1523.5096, -47.8209, 1002.2697, 262.7037},
- {"Bar", 11, 501.9577, -70.5646, 998.7578, 171.5706},
- {"Barbara's Love nest", 5, 322.5014, 303.6906, 999.1483, 8.1745},
- {"Barber Shop (version 1)", 3, 418.4666, -80.4595, 1001.8046, 343.2358},
- {"Barber Shop (version 2)", 12, 411.9707, -51.9216, 1001.8983, 173.3448},
- {"Barber Shop (version 3)", 2, 414.2987, -18.8043, 1001.8046, 41.4263},
- {"Big Smoke's Crack Palace", 2, 2536.5322, -1294.8425, 1044.1250, 254.9548},
- {"Bike School (version 1)", 3, 1494.8587, 1306.4798, 1093.2951, 196.0650},
- {"Bike School (version 2)", 0, 1168.5118, 1360.1145, 10.9293, 196.5933},
- {"Binco", 15, 207.5218, -109.7446, 1005.1328, 358.6199},
- {"Blastin' Fools Records", 3, 1037.8276, 0.3970, 1001.2844, 353.9335},
- {"Blood Bowl Stadium", 15, -1417.8927, 932.4481, 1041.5312, 0.7013},
- {"Blueberry Liquor Store", 0, 255.2082, -59.6753, 1.5701, 1.4644},
- {"Brothel 1", 3, 974.0177, -9.5937, 1001.1483, 22.6044},
- {"Brothel 2", 3, 961.9307, -51.9071, 1001.1171, 95.5381},
- {"Budget Inn Motel Room", 12, 446.3247, 509.9660, 1001.4193, 330.5671},
- {"Burger Shot", 10, 366.0248, -73.3478, 1001.5078, 292.0083},
- {"Burglary House 1", 15, 295.1390, 1473.3719, 1080.2578, 352.9526},
- {"Burglary House 2", 3, 234.6087, 1187.8194, 1080.2578, 349.4844},
- {"Burglary House 3", 5, 227.7559, 1114.3842, 1080.9920, 266.2622},
- {"Burglary House 4", 4, 261.1163, 1287.2197, 1080.2578, 178.9149},
- {"Burglary House 5", 4, 221.6766, 1142.4962, 1082.6092, 184.9618},
- {"Burglary House 6", 10, 24.3768, 1341.1827, 1084.3750, 8.3304},
- {"Burglary House 7", 4, -262.1759, 1456.6158, 1084.3670, 82.4589},
- {"Burglary House 8", 5, 22.8610, 1404.9165, 1084.4295, 349.6158},
- {"Burglary House 9", 5, 140.3679, 1367.8835, 1083.8620, 349.2372},
- {"Burglary House 10", 6, 234.2825, 1065.2290, 1084.2099, 4.3864},
- {"Burglary House 11", 6, -68.5145, 1353.8485, 1080.2109, 3.5741},
- {"Burglary House 12", 2, 225.5706, 1240.0643, 1082.1406, 96.2852},
- {"Burglary House 13", 15, -285.2510, 1471.1970, 1084.3750, 85.6547},
- {"Burglary House 14", 8, -42.5265, 1408.2298, 1084.4295, 172.0679},
- {"Burglary House 15", 9, 84.9244, 1324.2983, 1083.8592, 159.5581},
- {"Burglary House 16", 9, 260.7420, 1238.2259, 1084.2578, 84.3084},
- {"Burglary House 17", 1, 224.2879, 1289.1905, 1082.1406, 359.8680},
- {"Burglary House 18", 5, 239.2819, 1114.1989, 1080.9920, 270.2654},
- {"Burglary House 19", 2, 446.6260, 1397.7380, 1084.3045, 343.9645},
- {"Burning Desire Building", 5, 2350.1596, -1181.0656, 1027.9764, 99.1864},
- {"Caligula's Casino", 1, 2233.9362, 1711.8038, 1011.6312, 184.3890},
- {"Caligula's Roof", 1, 2268.5156, 1647.7680, 1084.2342, 99.7331},
- {"Casino (Redsands West)", 12, 1133.3498, -7.8460, 1000.6796, 165.8482},
- {"Cemetary", 0, 818.7714, -1102.8687, 25.7940, 91.1437},
- {"Club", 17, 493.1441, -24.2607, 1000.6796, 356.9862},
- {"Cluckin' Bell", 9, 366.0002, -9.4336, 1001.8516, 160.5278},
- {"Cobra Gym", 6, 773.8886, -47.7696, 1000.5858, 10.7159},
- {"Colonel Furhberger's", 8, 2807.3603, -1171.7048, 1025.5703, 193.7117},
- {"Crack Den", 5, 227.3921, 1114.6572, 1080.9985, 267.4590},
- {"Denise's Bedroom", 1, 245.2306, 304.7632, 999.1483, 273.4364},
- {"Didier Sachs", 14, 204.1658, -165.7678, 1000.5233, 181.7583},
- {"Dillimore Gas Station", 0, 663.0587, -573.6273, 16.3358, 264.9829},
- {"Diner 1", 5, 454.9851, -107.2546, 999.4376, 309.0195},
- {"Dirtbike Stadium", 4, -1421.5616, -663.8261, 1059.5567, 170.9340},
- {"Driving School", 3, -2031.1196, -115.8285, 1035.1717, 190.1876},
- {"Fanny Batter's Whore House", 6, 748.4622, 1438.2376, 1102.9531, 0.6068},
- {"Four Dragons", 10, 2016.1156, 1017.1541, 996.8750, 88.0055},
- {"Francis International Airport", 14, -1813.2130, -58.0120, 1058.9641, 335.3197},
- {"Ganton Gym", 5, 770.8032, -0.7031, 1000.7266, 22.8598},
- {"Helena's Barn", 3, 290.6228, 309.0621, 999.1483, 89.9162},
- {"Inside Track Betting", 3, 830.6016, 5.9404, 1004.1796, 125.8149},
- {"Jay's Diner", 4, 449.0172, -88.9894, 999.5546, 89.6606},
- {"Jefferson Motel", 15, 2217.2810, -1150.5349, 1025.7967, 273.7326},
- {"Jet Interior", 1, 1.5491, 23.3183, 1199.5937, 359.9053},
- {"K.A.C.C. Military Fuels Depot", 0, 2548.4807, 2823.7429, 10.8203, 270.6003},
- {"Katie's Lovenest", 2, 269.6405, 305.9512, 999.1483, 215.6625},
- {"Kickstart Stadium", 14, -1420.4277, 1616.9221, 1052.5312, 159.1255},
- {"Las Venturas Gym", 7, 773.7318, -74.6957, 1000.6541, 5.2304},
- {"Las Venturas Police Department", 3, 288.4721, 170.0646, 1007.1793, 22.0477},
- {"Las Venturas Tattoo parlor", 3, -201.2236, -43.2463, 1002.2733, 45.8613},
- {"Liberty City", 1, -741.8494, 493.0036, 1371.9764, 71.7780},
- {"Lil' Probe Inn", 18, -227.5702, 1401.5544, 27.7656, 269.2976},
- {"Loco Low Co", 2, 611.3535, -77.5574, 997.9995, 320.9263},
- {"Los Santos Airport", 14, -1864.9433, 55.7323, 1055.5274, 85.8541},
- {"Los Santos Police Department", 6, 246.6694, 65.8039, 1003.6406, 7.9562},
- {"Los Santos Tattoo Parlor", 16, -202.8419, -24.0324, 1002.2733, 252.8153},
- {"Lost San Fierro Tattoo parlor", 17, -202.9380, -6.7006, 1002.2733, 204.2693},
- {"Madd Dogg's Mansion", 5, 1267.8405, -776.9586, 1091.9062, 231.3417},
- {"Michelle's Love Nest", 4, 306.1965, 307.8190, 1003.3046, 203.1354},
- {"Millie's Bedroom", 6, 344.9984, 307.1824, 999.1557, 193.6430},
- {"OG Loc's House", 3, 512.9290, -11.6927, 1001.5653, 198.7669},
- {"Old Venturas Strip Casino", 2, 2236.6997, -1078.9477, 1049.0234, 2.5706},
- {"Otto's Autos", 0, -1658.1656, 1215.0002, 7.2500, 103.9074},
- {"Oval Stadium", 1, -1402.6612, 106.3897, 1032.2734, 105.1354},
- {"Palamino Bank", 0, 2306.3825, -15.2363, 26.7495, 274.4898},
- {"Palamino Diner", 0, 2331.8984, 6.7814, 26.5032, 100.2357},
- {"Pizza Stack", 5, 372.5563, -131.3607, 1001.4921, 354.2283},
- {"Planning Department", 3, 386.5259, 173.6381, 1008.3828, 63.7397},
- {"Pro-Laps", 3, 206.4627, -137.7075, 1003.0938, 10.9347},
- {"RC Battlefield", 10, -1129.8907, 1057.5423, 1346.4139, 274.5267},
- {"Rosenberg's Office", 2, 2182.2016, 1628.5848, 1043.8723, 224.8601},
- {"Rusty Brown's Donuts", 17, 378.0260, -190.5155, 1000.6328, 141.0245},
- {"Ryder's House", 2, 2447.8703, -1704.4509, 1013.5078, 314.5252},
- {"Safe House (version 1)", 5, 2233.6918, -1112.8105, 1050.8828, 8.6483},
- {"Safe House (version 2)", 9, 2319.1271, -1023.9561, 1050.2109, 167.3959},
- {"Safe House (version 3)", 10, 2261.0976, -1137.8833, 1050.6328, 266.8800},
- {"San Fierro Garage", 1, -2041.2332, 178.3968, 28.8465, 156.2153},
- {"San Fierro Police Department", 10, 246.0688, 108.9701, 1003.2188, 0.2921},
- {"Secret Valley Diner", 6, 442.1293, -52.4780, 999.7166, 177.9394},
- {"Sex Shop", 3, -100.2674, -22.9375, 1000.7188, 17.2849},
- {"Sherman Dam", 17, -944.2401, 1886.1534, 5.0050, 179.8547},
- {"Sindacco Abatoir", 1, 963.0584, 2159.7563, 1011.0302, 175.3130},
- {"SubUrban", 1, 204.1174, -46.8045, 1001.8046, 357.5776},
- {"Sweet's House", 1, 2527.0175, -1679.2076, 1015.4984, 260.9707},
- {"The Big Spread Ranch", 3, 1212.1489, -28.5387, 1000.9531, 170.5691},
- {"The Camel's Toe Safehouse", 1, 2216.1281, -1076.3050, 1050.4842, 86.4280},
- {"The Johnson House", 3, 2496.0549, -1695.1749, 1014.7421, 179.2174},
- {"The Pig Pen (strip club 2)", 2, 1204.6689, -13.5429, 1000.9218, 350.0202},
- {"The Pleasure Domes", 3, -2638.8232, 1407.3393, 906.4608, 94.6792},
- {"The Welcome Pump", 1, 681.6215, -451.8933, -25.6172, 166.1660},
- {"Torreno's Ranch", 0, -688.1494, 942.0825, 13.6328, 177.6573},
- {"Transfenders", 1, 621.4528, -23.7289, 1000.9218, 15.6787},
- {"Unused Safe House", 12, 2323.7062, -1147.6507, 1050.7099, 206.5352},
- {"Verdant Bluffs Safehouse", 8, 2365.1088, -1133.0793, 1050.8750, 177.3946},
- {"Vice Stadium", 16, -1401.0670, 1265.3706, 1039.8670, 178.6483},
- {"Victim", 5, 225.0305, -9.1836, 1002.2180, 85.5322},
- {"Wang Cars", 0, -1961.6280, 295.2377, 35.4687, 264.4891},
- {"Wardrobe/Changing room", 14, 256.9046, -41.6537, 1002.0233, 85.8774},
- {"Warehouse 1", 18, 1290.4106, 1.9512, 1001.0200, 179.9418},
- {"Warehouse 2", 1, 1412.1472, -2.2836, 1000.9240, 114.6610},
- {"Warehouse 3", 0, 2135.2004, -2276.2814, 20.6718, 318.5899},
- {"Wheel Arch Angels", 3, 612.2191, -123.9028, 997.9921, 266.5704},
- {"Willowfield Safehouse", 11, 2283.3117, 1139.3070, 1050.8984, 19.7031},
- {"World of Coq", 1, 445.6003, -6.9822, 1000.7343, 172.2104},
- {"Wu-Zi Mu's", 1, -2158.6730, 642.0900, 1052.3750, 86.5401},
- {"Zero's RC Shop", 6, -2240.1027, 136.9730, 1035.4139, 269.0953},
- {"Zip", 18, 161.4048, -94.2416, 1001.8046, 0.7936},
- {"Zombotech", 0, -1916.1268, 714.8615, 46.5625, 152.2839}
- };
- enum radioEnum
- {
- rGenre[32],
- rSubgenre[32]
- };
- new const radioGenreList[][radioEnum] =
- {
- {"Alternative", "Alternative"},
- {"Alternative", "Adult Alternative"},
- {"Alternative", "Britpop"},
- {"Alternative", "Classic Alternative"},
- {"Alternative", "College"},
- {"Alternative", "Dancepunk"},
- {"Alternative", "Dream Pop"},
- {"Alternative", "Emo"},
- {"Alternative", "Goth"},
- {"Alternative", "Grunge"},
- {"Alternative", "Hardcore"},
- {"Alternative", "Indie Pop"},
- {"Alternative", "Indie Rock"},
- {"Alternative", "Industrial"},
- {"Alternative", "LoFi"},
- {"Alternative", "Modern Rock"},
- {"Alternative", "New Wave"},
- {"Alternative", "Noise Pop"},
- {"Alternative", "Post Punk"},
- {"Alternative", "Power Pop"},
- {"Alternative", "Punk"},
- {"Alternative", "Ska"},
- {"Alternative", "Xtreme"},
- {"Blues", "Blues"},
- {"Blues", "Acoustic Blues"},
- {"Blues", "Cajun and Zydeco"},
- {"Blues", "Chicago Blues"},
- {"Blues", "Contemporary Blues"},
- {"Blues", "Country Blues"},
- {"Blues", "Delta Blues"},
- {"Blues", "Electric Blues"},
- {"Classical", "Classical"},
- {"Classical", "Baroque"},
- {"Classical", "Chamber"},
- {"Classical", "Choral"},
- {"Classical", "Classical Period"},
- {"Classical", "Early Classical"},
- {"Classical", "Impressionist"},
- {"Classical", "Modern"},
- {"Classical", "Opera"},
- {"Classical", "Piano"},
- {"Classical", "Romantic"},
- {"Classical", "Symphony"},
- {"Country", "Country"},
- {"Country", "Alt Country"},
- {"Country", "Americana"},
- {"Country", "Bluegrass"},
- {"Country", "Classic Country"},
- {"Country", "Contemporary Country"},
- {"Country", "Honky Tonk"},
- {"Country", "Hot Country Hits"},
- {"Country", "Western"},
- {"Decades", "Decades"},
- {"Decades", "00s"},
- {"Decades", "30s"},
- {"Decades", "40s"},
- {"Decades", "50s"},
- {"Decades", "60s"},
- {"Decades", "70s"},
- {"Decades", "80s"},
- {"Decades", "90s"},
- {"Easy Listening", "Easy Listening"},
- {"Easy Listening", "Exotica"},
- {"Easy Listening", "Light Rock"},
- {"Easy Listening", "Lounge"},
- {"Easy Listening", "Orchestral Pop"},
- {"Easy Listening", "Polka"},
- {"Easy Listening", "Space Age Pop"},
- {"Electronic", "Electronic"},
- {"Electronic", "Acid House"},
- {"Electronic", "Ambient"},
- {"Electronic", "Big Beat"},
- {"Electronic", "Breakbeat"},
- {"Electronic", "Dance"},
- {"Electronic", "Demo"},
- {"Electronic", "Disco"},
- {"Electronic", "Downtempo"},
- {"Electronic", "Drum and Bass"},
- {"Electronic", "Dubstep"},
- {"Electronic", "Electro"},
- {"Electronic", "Garage"},
- {"Electronic", "Hard House"},
- {"Electronic", "House"},
- {"Electronic", "IDM"},
- {"Electronic", "Jungle"},
- {"Electronic", "Progressive"},
- {"Electronic", "Techno"},
- {"Electronic", "Trance"},
- {"Electronic", "Tribal"},
- {"Electronic", "Trip Hop"},
- {"Folk", "Folk"},
- {"Folk", "Alternative Folk"},
- {"Folk", "Contemporary Folk"},
- {"Folk", "Folk Rock"},
- {"Folk", "New Acoustic"},
- {"Folk", "Old Time"},
- {"Folk", "Traditional Folk"},
- {"Folk", "World Folk"},
- {"Inspirational", "Inspirational"},
- {"Inspirational", "Christian"},
- {"Inspirational", "Christian Metal"},
- {"Inspirational", "Christian Rap"},
- {"Inspirational", "Christian Rock"},
- {"Inspirational", "Classic Christian"},
- {"Inspirational", "Contemporary Gospel"},
- {"Inspirational", "Gospel"},
- {"Inspirational", "Praise and Worship"},
- {"Inspirational", "Sermon and Services"},
- {"Inspirational", "Southern Gospel"},
- {"Inspirational", "Traditional Gospel"},
- {"International", "International"},
- {"International", "African"},
- {"International", "Afrikaans"},
- {"International", "Arabic"},
- {"International", "Asian"},
- {"International", "Bollywood"},
- {"International", "Brazilian"},
- {"International", "Caribbean"},
- {"International", "Celtic"},
- {"International", "Chinese"},
- {"International", "Creole"},
- {"International", "European"},
- {"International", "Filipino"},
- {"International", "French"},
- {"International", "German"},
- {"International", "Greek"},
- {"International", "Hawaiian & Pacific"},
- {"International", "Hebrew"},
- {"International", "Hindi"},
- {"International", "Indian"},
- {"International", "Islamic"},
- {"International", "Japanese"},
- {"International", "Korean"},
- {"International", "Mediterranean"},
- {"International", "Middle Eastern"},
- {"International", "North American"},
- {"International", "Russian"},
- {"International", "Soca"},
- {"International", "South American"},
- {"International", "Tamil"},
- {"International", "Turkish"},
- {"International", "Worldbeat"},
- {"International", "Zouk"},
- {"Jazz", "Jazz"},
- {"Jazz", "Acid Jazz"},
- {"Jazz", "Avant Garde"},
- {"Jazz", "Big Band"},
- {"Jazz", "Bop"},
- {"Jazz", "Classic Jazz"},
- {"Jazz", "Cool Jazz"},
- {"Jazz", "Fusion"},
- {"Jazz", "Hard Bop"},
- {"Jazz", "Latin Jazz"},
- {"Jazz", "Smooth Jazz"},
- {"Jazz", "Swing"},
- {"Jazz", "Vocal Jazz"},
- {"Jazz", "World Fusion"},
- {"Latin", "Latin"},
- {"Latin", "Bachata"},
- {"Latin", "Banda"},
- {"Latin", "Bossa Nova"},
- {"Latin", "Cumbia"},
- {"Latin", "Flamenco"},
- {"Latin", "Latin Dance"},
- {"Latin", "Latin Pop"},
- {"Latin", "Latin Rap"},
- {"Latin", "Latin Rock"},
- {"Latin", "Mariachi"},
- {"Latin", "Merengue"},
- {"Latin", "Ranchera"},
- {"Latin", "Reggaeton"},
- {"Latin", "Regional Mexican"},
- {"Latin", "Salsa"},
- {"Latin", "Samba"},
- {"Latin", "Tango"},
- {"Latin", "Tejano"},
- {"Latin", "Tropicalia"},
- {"Metal", "Metal"},
- {"Metal", "Black Metal"},
- {"Metal", "Classic Metal"},
- {"Metal", "Death Metal"},
- {"Metal", "Extreme Metal"},
- {"Metal", "Grindcore"},
- {"Metal", "Hair Metal"},
- {"Metal", "Heavy Metal"},
- {"Metal", "Metalcore"},
- {"Metal", "Power Metal"},
- {"Metal", "Progressive Metal"},
- {"Metal", "Thrash Metal"},
- {"Misc", "Misc"},
- {"New Age", "New Age"},
- {"New Age", "Environmental"},
- {"New Age", "Ethnic Fusion"},
- {"New Age", "Healing"},
- {"New Age", "Meditation"},
- {"New Age", "Spiritual"},
- {"Pop", "Pop"},
- {"Pop", "Adult Contemporary"},
- {"Pop", "Barbershop"},
- {"Pop", "Bubblegum Pop"},
- {"Pop", "Dance Pop"},
- {"Pop", "Idols"},
- {"Pop", "JPOP"},
- {"Pop", "KPOP"},
- {"Pop", "Oldies"},
- {"Pop", "Soft Rock"},
- {"Pop", "Teen Pop"},
- {"Pop", "Top 40"},
- {"Pop", "World Pop"},
- {"Public Radio", "Public Radio"},
- {"Public Radio", "College"},
- {"Public Radio", "News"},
- {"Public Radio", "Sports"},
- {"Public Radio", "Talk"},
- {"Public Radio", "Weather"},
- {"R&B and Urban", "R&B and Urban"},
- {"R&B and Urban", "Classic R&B"},
- {"R&B and Urban", "Contemporary R&B"},
- {"R&B and Urban", "Funk"},
- {"R&B and Urban", "Motown"},
- {"R&B and Urban", "Neo Soul"},
- {"R&B and Urban", "Quiet Storm"},
- {"R&B and Urban", "Soul"},
- {"R&B and Urban", "Urban Contemporary"},
- {"Rap", "Rap"},
- {"Rap", "Alternative Rap"},
- {"Rap", "Dirty South"},
- {"Rap", "East Coast Rap"},
- {"Rap", "Freestyle"},
- {"Rap", "Gangsta Rap"},
- {"Rap", "Hip Hop"},
- {"Rap", "Mixtapes"},
- {"Rap", "Old School"},
- {"Rap", "Turntablism"},
- {"Rap", "Underground Hip Hop"},
- {"Rap", "West Coast Rap"},
- {"Reggae", "Reggae"},
- {"Reggae", "Contemporary Reggae"},
- {"Reggae", "Dancehall"},
- {"Reggae", "Dub"},
- {"Reggae", "Pop Reggae"},
- {"Reggae", "Ragga"},
- {"Reggae", "Reggae Roots"},
- {"Reggae", "Rock Steady"},
- {"Rock", "Rock"},
- {"Rock", "Adult Alternative"},
- {"Rock", "Celtic Rock"},
- {"Rock", "Classic Rock"},
- {"Rock", "Garage Rock"},
- {"Rock", "Glam"},
- {"Rock", "Hard Rock"},
- {"Rock", "Jam Bands"},
- {"Rock", "JROCK"},
- {"Rock", "Progressive Rock"},
- {"Rock", "Psychedelic"},
- {"Rock", "Rock & Roll"},
- {"Rock", "Rockabilly"},
- {"Rock", "Singer & Songwriter"},
- {"Rock", "Surf"},
- {"Seasonal and Holiday", "Seasonal and Holiday"},
- {"Seasonal and Holiday", "Birthday"},
- {"Seasonal and Holiday", "Christmas"},
- {"Seasonal and Holiday", "Halloween"},
- {"Seasonal and Holiday", "Kwanzaa"},
- {"Seasonal and Holiday", "Valentine"},
- {"Seasonal and Holiday", "Winter"},
- {"Soundtracks", "Soundtracks"},
- {"Soundtracks", "Anime"},
- {"Soundtracks", "Kids"},
- {"Soundtracks", "Original Score"},
- {"Soundtracks", "Showtunes"},
- {"Soundtracks", "Video Game Music"},
- {"Talk", "Talk"},
- {"Talk", "BlogTalk"},
- {"Talk", "Comedy"},
- {"Talk", "Community"},
- {"Talk", "Educational"},
- {"Talk", "Government"},
- {"Talk", "News"},
- {"Talk", "Old Time Radio"},
- {"Talk", "Other Talk"},
- {"Talk", "Political"},
- {"Talk", "Scanner"},
- {"Talk", "Spoken Word"},
- {"Talk", "Sports"},
- {"Talk", "Technology"},
- {"Themes", "Themes"},
- {"Themes", "Adult"},
- {"Themes", "Best Of"},
- {"Themes", "Chill"},
- {"Themes", "Eclectic"},
- {"Themes", "Experimental"},
- {"Themes", "Female"},
- {"Themes", "Heartache"},
- {"Themes", "Instrumental"},
- {"Themes", "LGBT"},
- {"Themes", "Love and Romance"},
- {"Themes", "Party Mix"},
- {"Themes", "Patriotic"},
- {"Themes", "Rainy Day Mix"},
- {"Themes", "Reality"},
- {"Themes", "Sexy"},
- {"Themes", "Shuffle"},
- {"Themes", "Travel Mix"},
- {"Themes", "Trippy"},
- {"Themes", "Work Mix"}
- };
- enum zoneEnum
- {
- zoneName[32],
- Float:zoneMinX,
- Float:zoneMinY,
- Float:zoneMinZ,
- Float:zoneMaxX,
- Float:zoneMaxY,
- Float:zoneMaxZ
- };
- new const zoneArray[][zoneEnum] =
- {
- {"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},
- {"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}
- };
- // ---------------------------------------
- native WP_Hash(buffer[], len, const str[]);
- native IsValidVehicle(vehicleid);
- // ---------------------------------------
- main(){}
- GetDate()
- {
- new date[5], string[24];
- getdate(date[0], date[1], date[2]);
- gettime(date[3], date[4]);
- format(string, sizeof(string), "%i-%02d-%02d %02d:%02d", date[0], date[1], date[2], date[3], date[4]);
- return string;
- }
- GetAdminRank(playerid)
- {
- new string[24];
- switch(PlayerInfo[playerid][pAdmin])
- {
- case 0: string = "None";
- case 1: string = "Moderator";
- case 2: string = "Junior Admin";
- case 3: string = "General Admin";
- case 4: string = "Senior Admin";
- case 5: string = "Head Admin";
- case 6: string = "Assistant Manager";
- case 7: string = "Management";
- }
- return string;
- }
- GetHelperRank(playerid)
- {
- new string[24];
- switch(PlayerInfo[playerid][pHelper])
- {
- case 0: string = "None";
- case 1: string = "Junior Helper";
- case 2: string = "Senior Helper";
- case 3: string = "Asst. Head Helper";
- case 4: string = "Head Helper";
- case 5: string = "Helper Management";
- }
- return string;
- }
- GetPlayerIP(playerid)
- {
- new
- ip[16];
- GetPlayerIp(playerid, ip, sizeof(ip));
- return ip;
- }
- GetPlayerIPRange(playerid, ch = '*')
- {
- new string[16], part[2];
- if(!sscanf(GetPlayerIP(playerid), "p<.>ii{ii}", part[0], part[1]))
- {
- format(string, sizeof(string), "%i.%i.%c.%c", part[0], part[1], ch, ch);
- }
- return string;
- }
- /*GetBoneName(boneid)
- {
- new
- string[16];
- switch(boneid)
- {
- case 1: string = "Spine";
- case 2: string = "Head";
- case 3: string = "Left upper arm";
- case 4: string = "Right upper arm";
- case 5: string = "Left hand";
- case 6: string = "Right hand";
- case 7: string = "Left thigh";
- case 8: string = "Right thigh";
- case 9: string = "Left foot";
- case 10: string = "Right foot";
- case 11: string = "Right calf";
- case 12: string = "Left calf";
- case 13: string = "Left forearm";
- case 14: string = "Right forearm";
- case 15: string = "Left shoulder";
- case 16: string = "Right shoulder";
- case 17: string = "Neck";
- case 18: string = "Jaw";
- }
- return string;
- }*/
- GetDeathReason(reason)
- {
- new
- string[24];
- switch(reason)
- {
- case 0: string = "Fists";
- case 18: string = "Molotov Cocktail";
- case 44: string = "Nightvision Goggles";
- case 45: string = "Infrared Goggles";
- case 49: string = "Vehicle";
- case 50: string = "Helicopter Blades";
- case 51: string = "Explosion";
- case 53: string = "Drowned";
- case 54: string = "Splat";
- default: GetWeaponName(reason, string, sizeof(string));
- }
- return string;
- }
- GetWeaponNameEx(weaponid)
- {
- new
- weapon[24];
- GetWeaponName(weaponid, weapon, sizeof(weapon));
- switch(weaponid)
- {
- case 0: weapon = "None";
- case 18: weapon = "Molotov Cocktail";
- case 44: weapon = "Nightvision Goggles";
- case 45: weapon = "Infrared Goggles";
- }
- return weapon;
- }
- GetVIPRank(level)
- {
- new string[16];
- switch(level)
- {
- case 0: string = "None";
- case 1: string = "Limited";
- case 2: string = "Limitless";
- case 3: string = "Legendary";
- }
- return string;
- }
- GetJobName(jobid)
- {
- new
- name[32];
- if(jobid == JOB_NONE)
- name = "None";
- else
- strcat(name, jobLocations[jobid][jobName]);
- return name;
- }
- IncreaseJobSkill(playerid, jobid)
- {
- if((gDoubleXP) || PlayerInfo[playerid][pDoubleXP] > 0)
- {
- GiveJobSkill(playerid, jobid);
- }
-
- GiveJobSkill(playerid, jobid);
- }
- GiveJobSkill(playerid, jobid)
- {
- new level = GetJobLevel(playerid, jobid);
- switch(jobid)
- {
- case JOB_COURIER:
- {
- PlayerInfo[playerid][pCourierSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET courierskill = courierskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your courier skill level is now %i/5. You will deliver more products and earn more money now.", level + 1);
- }
- }
- case JOB_FISHERMAN:
- {
- PlayerInfo[playerid][pFishingSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishingskill = fishingskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your fishing skill level is now %i/5. You will catch bigger fish and your cooldowns are reduced.", level + 1);
- }
- }
- case JOB_BODYGUARD:
- {
- PlayerInfo[playerid][pGuardSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET guardskill = guardskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your bodyguard skill level is now %i/5. Vests that you sell will now contain extra armor.", level + 1);
- }
- }
- case JOB_WEAPONDEALER:
- {
- PlayerInfo[playerid][pWeaponSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weaponskill = weaponskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your weapons dealer skill level is now %i/5. You have unlocked more weapons.", level + 1);
- }
- }
- case JOB_MECHANIC:
- {
- PlayerInfo[playerid][pMechanicSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET mechanicskill = mechanicskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your mechanic skill level is now %i/5. You will now pay less for components.", level + 1);
- }
- }
- case JOB_DRUGDEALER:
- {
- PlayerInfo[playerid][pSmugglerSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET smugglerskill = smugglerskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your drug smuggler skill level is now %i/5. You will now earn more cash for smuggling.", level + 1);
- }
- }
- case JOB_LAWYER:
- {
- PlayerInfo[playerid][pLawyerSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET lawyerskill = lawyerskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your lawyer skill level is now %i/5. Your cooldown times are reduced and you can free people for more time.", level + 1);
- }
- }
- case JOB_DETECTIVE:
- {
- PlayerInfo[playerid][pDetectiveSkill]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET detectiveskill = detectiveskill + 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(GetJobLevel(playerid, jobid) != level)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your detective skill level is now %i/5. Your cooldown times are now reduced.", level + 1);
- }
- }
- }
- }
- GetJobLevel(playerid, jobid)
- {
- if(jobid == JOB_COURIER)
- {
- if(0 <= PlayerInfo[playerid][pCourierSkill] <= 49) {
- return 1;
- } else if(50 <= PlayerInfo[playerid][pCourierSkill] <= 99) {
- return 2;
- } else if(100 <= PlayerInfo[playerid][pCourierSkill] <= 199) {
- return 3;
- } else if(200 <= PlayerInfo[playerid][pCourierSkill] <= 349) {
- return 4;
- } else if(PlayerInfo[playerid][pCourierSkill] >= 350) {
- return 5;
- }
- }
- else if(jobid == JOB_FISHERMAN)
- {
- if(0 <= PlayerInfo[playerid][pFishingSkill] <= 49) {
- return 1;
- } else if(50 <= PlayerInfo[playerid][pFishingSkill] <= 99) {
- return 2;
- } else if(100 <= PlayerInfo[playerid][pFishingSkill] <= 199) {
- return 3;
- } else if(200 <= PlayerInfo[playerid][pFishingSkill] <= 349) {
- return 4;
- } else if(PlayerInfo[playerid][pFishingSkill] >= 350) {
- return 5;
- }
- }
- else if(jobid == JOB_BODYGUARD)
- {
- if(0 <= PlayerInfo[playerid][pGuardSkill] <= 24) {
- return 1;
- } else if(25 <= PlayerInfo[playerid][pGuardSkill] <= 49) {
- return 2;
- } else if(50 <= PlayerInfo[playerid][pGuardSkill] <= 99) {
- return 3;
- } else if(100 <= PlayerInfo[playerid][pGuardSkill] <= 199) {
- return 4;
- } else if(PlayerInfo[playerid][pGuardSkill] >= 200) {
- return 5;
- }
- }
- else if(jobid == JOB_WEAPONDEALER)
- {
- if(0 <= PlayerInfo[playerid][pWeaponSkill] <= 49) {
- return 1;
- } else if(50 <= PlayerInfo[playerid][pWeaponSkill] <= 99) {
- return 2;
- } else if(100 <= PlayerInfo[playerid][pWeaponSkill] <= 199) {
- return 3;
- } else if(200 <= PlayerInfo[playerid][pWeaponSkill] <= 499) {
- return 4;
- } else if(PlayerInfo[playerid][pWeaponSkill] >= 500) {
- return 5;
- }
- }
- else if(jobid == JOB_MECHANIC)
- {
- if(0 <= PlayerInfo[playerid][pMechanicSkill] <= 24) {
- return 1;
- } else if(25 <= PlayerInfo[playerid][pMechanicSkill] <= 49) {
- return 2;
- } else if(50 <= PlayerInfo[playerid][pMechanicSkill] <= 99) {
- return 3;
- } else if(100 <= PlayerInfo[playerid][pMechanicSkill] <= 199) {
- return 4;
- } else if(PlayerInfo[playerid][pMechanicSkill] >= 200) {
- return 5;
- }
- }
- else if(jobid == JOB_DRUGDEALER)
- {
- if(0 <= PlayerInfo[playerid][pSmugglerSkill] <= 24) {
- return 1;
- } else if(25 <= PlayerInfo[playerid][pSmugglerSkill] <= 49) {
- return 2;
- } else if(50 <= PlayerInfo[playerid][pSmugglerSkill] <= 74) {
- return 3;
- } else if(75 <= PlayerInfo[playerid][pSmugglerSkill] <= 99) {
- return 4;
- } else if(PlayerInfo[playerid][pSmugglerSkill] >= 100) {
- return 5;
- }
- }
- else if(jobid == JOB_LAWYER)
- {
- if(0 <= PlayerInfo[playerid][pLawyerSkill] <= 24) {
- return 1;
- } else if(25 <= PlayerInfo[playerid][pLawyerSkill] <= 49) {
- return 2;
- } else if(50 <= PlayerInfo[playerid][pLawyerSkill] <= 99) {
- return 3;
- } else if(100 <= PlayerInfo[playerid][pLawyerSkill] <= 199) {
- return 4;
- } else if(PlayerInfo[playerid][pLawyerSkill] >= 200) {
- return 5;
- }
- }
- else if(jobid == JOB_DETECTIVE)
- {
- if(0 <= PlayerInfo[playerid][pDetectiveSkill] <= 49) {
- return 1;
- } else if(50 <= PlayerInfo[playerid][pDetectiveSkill] <= 99) {
- return 2;
- } else if(100 <= PlayerInfo[playerid][pDetectiveSkill] <= 199) {
- return 3;
- } else if(200 <= PlayerInfo[playerid][pDetectiveSkill] <= 399) {
- return 4;
- } else if(PlayerInfo[playerid][pDetectiveSkill] >= 400) {
- return 5;
- }
- }
- return 0;
- }
- GetPlayerCapacity(playerid, item)
- {
- switch(item)
- {
- case CAPACITY_MATERIALS:
- {
- return 50000 + (PlayerInfo[playerid][pInventoryUpgrade] * 10000);
- }
- case CAPACITY_WEED:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 50;
- case 1: return 75;
- case 2: return 100;
- case 3: return 125;
- case 4: return 150;
- case 5: return 200;
- }
- }
- case CAPACITY_COCAINE:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 25;
- case 1: return 50;
- case 2: return 75;
- case 3: return 100;
- case 4: return 125;
- case 5: return 150;
- }
- }
- case CAPACITY_METH:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 20;
- case 1: return 40;
- case 2: return 60;
- case 3: return 80;
- case 4: return 100;
- case 5: return 150;
- }
- }
- case CAPACITY_PAINKILLERS:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 5;
- case 1: return 10;
- case 2: return 15;
- case 3: return 20;
- case 4: return 25;
- case 5: return 30;
- }
- }
- case CAPACITY_SEEDS:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 10;
- case 1: return 20;
- case 2: return 30;
- case 3: return 40;
- case 4: return 50;
- case 5: return 60;
- }
- }
- case CAPACITY_EPHEDRINE:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 10;
- case 1: return 15;
- case 2: return 20;
- case 3: return 25;
- case 4: return 30;
- case 5: return 40;
- }
- }
- case CAPACITY_HPAMMO:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 50;
- case 1: return 75;
- case 2: return 100;
- case 3: return 125;
- case 4: return 150;
- case 5: return 175;
- }
- }
- case CAPACITY_POISONAMMO:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 40;
- case 1: return 55;
- case 2: return 70;
- case 3: return 85;
- case 4: return 100;
- case 5: return 120;
- }
- }
- case CAPACITY_FMJAMMO:
- {
- switch(PlayerInfo[playerid][pInventoryUpgrade])
- {
- case 0: return 30;
- case 1: return 35;
- case 2: return 40;
- case 3: return 45;
- case 4: return 50;
- case 5: return 60;
- }
- }
- }
- return 0;
- }
- GetPlayerAssetCount(playerid, type)
- {
- new count;
- switch(type)
- {
- case LIMIT_HOUSES:
- {
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && IsHouseOwner(playerid, i))
- {
- count++;
- }
- }
- }
- case LIMIT_BUSINESSES:
- {
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && IsBusinessOwner(playerid, i))
- {
- count++;
- }
- }
- }
- case LIMIT_GARAGES:
- {
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && IsGarageOwner(playerid, i))
- {
- count++;
- }
- }
- }
- }
- return count;
- }
- GetPlayerAssetLimit(playerid, type)
- {
- switch(type)
- {
- case LIMIT_HOUSES:
- {
- switch(PlayerInfo[playerid][pVIPPackage])
- {
- case 2: return 4;
- case 3: return 6;
- }
- switch(PlayerInfo[playerid][pAssetUpgrade])
- {
- case 0, 1: return 1;
- case 2, 3: return 2;
- case 4: return 3;
- }
- }
- case LIMIT_BUSINESSES:
- {
- switch(PlayerInfo[playerid][pAssetUpgrade])
- {
- case 0, 1: return 1;
- case 2, 3: return 2;
- case 4: return 3;
- }
- }
- case LIMIT_GARAGES:
- {
- switch(PlayerInfo[playerid][pAssetUpgrade])
- {
- case 0, 1: return 1;
- case 2, 3: return 2;
- case 4: return 3;
- }
- }
- case LIMIT_VEHICLES:
- {
- switch(PlayerInfo[playerid][pVIPPackage])
- {
- case 1: return 10;
- case 2: return 15;
- case 3: return 20;
- }
- switch(PlayerInfo[playerid][pAssetUpgrade])
- {
- case 0: return 3;
- case 1: return 4;
- case 2: return 5;
- case 3: return 7;
- case 4: return 10;
- }
- }
- }
- return 0;
- }
- DeployObject(type, Float:x, Float:y, Float:z, Float:angle)
- {
- for(new i = 0; i < MAX_DEPLOYABLES; i ++)
- {
- if(!DeployInfo[i][dExists])
- {
- DeployInfo[i][dExists] = 1;
- DeployInfo[i][dType] = type;
- DeployInfo[i][dPosX] = x;
- DeployInfo[i][dPosY] = y;
- DeployInfo[i][dPosZ] = z;
- DeployInfo[i][dPosA] = angle;
- if(type == DEPLOY_SPIKESTRIP) {
- DeployInfo[i][dObject] = CreateDynamicObject(2899, x + 1.0 * floatsin(-angle, degrees), y + 1.0 * floatcos(-angle, degrees), z - 0.9, 0.0, 0.0, angle + 90.0);
- } else if(type == DEPLOY_CONE) {
- DeployInfo[i][dObject] = CreateDynamicObject(1238, x + 1.0 * floatsin(-angle, degrees), y + 1.0 * floatcos(-angle, degrees), z - 0.7, 0.0, 0.0, angle);
- } else if(type == DEPLOY_ROADBLOCK) {
- DeployInfo[i][dObject] = CreateDynamicObject(981, x + 3.0 * floatsin(-angle, degrees), y + 3.0 * floatcos(-angle, degrees), z, 0.0, 0.0, angle);
- } else if(type == DEPLOY_BARREL) {
- DeployInfo[i][dObject] = CreateDynamicObject(1237, x + 1.0 * floatsin(-angle, degrees), y + 1.0 * floatcos(-angle, degrees), z - 1.0, 0.0, 0.0, angle);
- } else if(type == DEPLOY_FLARE) {
- DeployInfo[i][dObject] = CreateDynamicObject(18728, x, y, z - 1.4, 0.0, 0.0, angle);
- }
- return i;
- }
- }
- return -1;
- }
- IsFireActive()
- {
- for(new i = 0; i < MAX_FIRES; i ++)
- {
- if(IsValidDynamicObject(gFireObjects[i]))
- {
- return 1;
- }
- }
- return 0;
- }
- HandleContract(playerid, killerid)
- {
- if(GetFactionType(killerid) == FACTION_HITMAN && PlayerInfo[killerid][pContractTaken] == playerid)
- {
- new price = PlayerInfo[playerid][pContracted];
- SendClientMessageEx(killerid, COLOR_YELLOW, "You have completed your contract on %s and received $%i.", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_YELLOW, "You have been killed by a hitman and lost $%i.", price);
- GivePlayerCash(playerid, -price);
- GivePlayerCash(killerid, price);
- PlayerInfo[killerid][pContractTaken] = INVALID_PLAYER_ID;
- PlayerInfo[killerid][pCompletedHits]++;
- PlayerInfo[playerid][pContracted] = 0;
- PlayerInfo[playerid][pContractBy] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'Nobody' WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET completedhits = %i WHERE uid = %i", PlayerInfo[killerid][pCompletedHits], PlayerInfo[killerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pContractTaken] == playerid)
- {
- PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;
- }
- }
- Log_Write("log_contracts", "%s (uid: %i) successfully completed their hit on %s (uid: %i) for $%i.", GetPlayerRPName(killerid), PlayerInfo[killerid][pID], GetPlayerRPName(playerid), PlayerInfo[playerid][pID], price);
- }
- else if(PlayerInfo[playerid][pContractTaken] == killerid)
- {
- new price = PlayerInfo[killerid][pContracted];
- SendClientMessageEx(playerid, COLOR_YELLOW, "You have failed your contract on %s and lost $%i.", GetPlayerRPName(playerid), price);
- SendClientMessageEx(killerid, COLOR_YELLOW, "You have killed a hitman chasing after you and received $%i. The contract on your head has been removed.", price);
- GivePlayerCash(playerid, -price);
- GivePlayerCash(killerid, price);
- PlayerInfo[playerid][pContractTaken] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pFailedHits]++;
- PlayerInfo[killerid][pContracted] = 0;
- PlayerInfo[killerid][pContractBy] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'Nobody' WHERE uid = %i", PlayerInfo[killerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET failedhits = %i WHERE uid = %i", PlayerInfo[playerid][pFailedHits], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pContractTaken] == killerid)
- {
- PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;
- }
- }
- Log_Write("log_contracts", "%s (uid: %i) failed their hit on %s (uid: %i) and lost $%i.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], GetPlayerRPName(killerid), PlayerInfo[killerid][pID], price);
- }
- }
- GetPlayerNameEx(playerid)
- {
- new
- name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- GetPlayerRPName(playerid)
- {
- new
- name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- for(new i = 0, l = strlen(name); i < l; i ++)
- {
- if(name[i] == '_')
- {
- name[i] = ' ';
- }
- }
- return name;
- }
- GetPlayerZoneName(playerid)
- {
- new zone[32], Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(GetInsideHouse(playerid) >= 0)
- zone = "House";
- else if(GetInsideBusiness(playerid) >= 0)
- zone = "Business";
- else if(GetInsideGarage(playerid) >= 0)
- zone = "Garage";
- else if(GetPlayerInterior(playerid))
- zone = "Interior";
- else
- strcpy(zone, GetZoneName(x, y, z));
- return zone;
- }
- GetPlayerPosEx(playerid, &Float:x, &Float:y, &Float:z)
- {
- new id;
- if((id = GetInsideHouse(playerid)) >= 0)
- {
- x = HouseInfo[id][hPosX];
- y = HouseInfo[id][hPosY];
- z = HouseInfo[id][hPosZ];
- return 1;
- }
- else if((id = GetInsideBusiness(playerid)) >= 0)
- {
- x = BusinessInfo[id][bPosX];
- y = BusinessInfo[id][bPosY];
- z = BusinessInfo[id][bPosZ];
- return 1;
- }
- else if((id = GetInsideGarage(playerid)) >= 0)
- {
- x = GarageInfo[id][gPosX];
- y = GarageInfo[id][gPosY];
- z = GarageInfo[id][gPosZ];
- return 1;
- }
- else if((id = GetInsideEntrance(playerid)) >= 0)
- {
- x = EntranceInfo[id][ePosX];
- y = EntranceInfo[id][ePosY];
- z = EntranceInfo[id][ePosZ];
- return 1;
- }
- else if(GetPlayerInterior(playerid))
- {
- for(new i = 0; i < sizeof(staticEntrances); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 100.0, staticEntrances[i][eIntX], staticEntrances[i][eIntY], staticEntrances[i][eIntZ]))
- {
- x = staticEntrances[i][ePosX];
- y = staticEntrances[i][ePosY];
- z = staticEntrances[i][ePosZ];
- return 1;
- }
- }
- }
- else
- {
- GetPlayerPos(playerid, x, y, z);
- return 1;
- }
- return 0;
- }
- GetVehicleLinkedID(id)
- {
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(VehicleInfo[i][vID] == id)
- {
- return i;
- }
- }
- return INVALID_VEHICLE_ID;
- }
- GetVehicleZoneName(vehicleid)
- {
- new zone[32], Float:x, Float:y, Float:z;
- GetVehiclePos(vehicleid, x, y, z);
- if(GetVehicleVirtualWorld(vehicleid))
- zone = "Garage";
- else
- strcpy(zone, GetZoneName(x, y, z));
- return zone;
- }
- GetZoneName(Float:x, Float:y, Float:z)
- {
- new zone[32];
- for(new i = 0; i < sizeof(zoneArray); i ++)
- {
- if((zoneArray[i][zoneMinX] <= x <= zoneArray[i][zoneMaxX]) && (zoneArray[i][zoneMinY] <= y <= zoneArray[i][zoneMaxY]) && (zoneArray[i][zoneMinZ] <= z <= zoneArray[i][zoneMaxZ]))
- {
- strcpy(zone, zoneArray[i][zoneName]);
- return zone;
- }
- }
- return zone;
- }
- ClearChat(playerid)
- {
- for(new i = 0; i < 250; i ++)
- {
- SendClientMessage(playerid, -1, " ");
- }
- }
- Float:Streamer_GetExtraFloat(objectid, type)
- {
- new
- string[24];
- getproperty(.id = objectid, .value = type, .string = string);
- strunpack(string, string);
- return floatstr(string);
- }
- Streamer_SetExtraFloat(objectid, type, Float:value)
- {
- new
- string[24];
- format(string, sizeof(string), "%f", value);
- setproperty(.id = objectid, .value = type, .string = string);
- return 1;
- }
- Streamer_GetExtraInt(objectid, type)
- {
- new extra[11];
- if(Streamer_GetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_EXTRA_ID, extra, sizeof(extra)))
- {
- return extra[type];
- }
- return 0;
- }
- Streamer_SetExtraInt(objectid, type, value)
- {
- new extra[11];
- if(Streamer_GetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_EXTRA_ID, extra, sizeof(extra)))
- {
- extra[type] = value;
- return Streamer_SetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_EXTRA_ID, extra, sizeof(extra));
- }
- return 0;
- }
- SetDoubleXP(enable)
- {
- new hostname[128];
- GetServerVarAsString("hostname", hostname, sizeof(hostname));
- if(enable)
- {
- if(strfind(hostname, "Double XP") == -1)
- {
- format(hostname, sizeof(hostname), "hostname %s (Double XP)", hostname);
- SendRconCommand(hostname);
- }
- }
- else
- {
- new pos = strfind(hostname, " (Double XP)");
- if(pos != -1)
- {
- hostname[pos] = 0;
- format(hostname, sizeof(hostname), "hostname %s", hostname);
- SendRconCommand(hostname);
- }
- }
- gDoubleXP = enable;
- }
- stock Float:DistanceCameraTargetToLocation(Float:cx, Float:cy, Float:cz, Float:ox, Float:oy, Float:oz, Float:vx, Float:vy, Float:vz)
- {
- new Float:x, Float:y, Float:z, Float:distance;
- distance = floatround(floatsqroot(((cx - ox) * (cx - ox)) + ((cy - oy) * (cy - oy)) + ((cz - oz) * (cz - oz))));
- x = vx * distance + cx;
- y = vy * distance + cy;
- z = vz * distance + cz;
- return floatsqroot((x - ox) * (x - ox) + (y - oy) * (y - oy) + (z - oz) * (z - oz));
- }
- GateCheck(playerid)
- {
- new id;
- if(IsPlayerInRangeOfPoint(playerid, 8.0, 1544.639892, -1631.008666, 13.252797)) // PD barrier
- {
- if(GetFactionType(playerid) != FACTION_POLICE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to open this gate.");
- }
- if(!Streamer_GetExtraInt(gPDGates[0], E_OBJECT_OPENED))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to open the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gPDGates[0], 1544.689941, -1630.818481, 13.116797, 0.2, 0.000000, 0.000000, 90.000000);
- Streamer_SetExtraInt(gPDGates[0], E_OBJECT_OPENED, 1);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to close the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gPDGates[0], 1544.639892, -1631.008666, 13.252797, 0.2, 0.000000, 90.000000, 90.000000);
- Streamer_SetExtraInt(gPDGates[0], E_OBJECT_OPENED, 0);
- }
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 8.0, 1588.042602, -1638.079956, 14.602818)) // PD garage gate
- {
- if(GetFactionType(playerid) != FACTION_POLICE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to open this gate.");
- }
- if(!Streamer_GetExtraInt(gPDGates[1], E_OBJECT_OPENED))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to open the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gPDGates[1], 1597.332763, -1638.079956, 14.602818, 3.0);
- Streamer_SetExtraInt(gPDGates[1], E_OBJECT_OPENED, 1);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to close the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gPDGates[1], 1588.042602, -1638.079956, 14.602818, 3.0);
- Streamer_SetExtraInt(gPDGates[1], E_OBJECT_OPENED, 0);
- }
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 8.0, 321.255279, -1488.601318, 25.281988)) // FBI garage gate
- {
- if(GetFactionType(playerid) != FACTION_FEDERAL)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to open this gate.");
- }
- if(!Streamer_GetExtraInt(gFBIGates[0], E_OBJECT_OPENED))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to open the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gFBIGates[0], 327.033508, -1492.691650, 25.281988, 3.0);
- Streamer_SetExtraInt(gFBIGates[0], E_OBJECT_OPENED, 1);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to close the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gFBIGates[0], 321.255279, -1488.601318, 25.281988, 3.0);
- Streamer_SetExtraInt(gFBIGates[0], E_OBJECT_OPENED, 0);
- }
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 8.0, 283.590423, -1542.835083, 25.281988)) // FBI garage gate
- {
- if(GetFactionType(playerid) != FACTION_FEDERAL)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to open this gate.");
- }
- if(!Streamer_GetExtraInt(gFBIGates[1], E_OBJECT_OPENED))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to open the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gFBIGates[1], 289.593841, -1547.023071, 25.281988, 3.0);
- Streamer_SetExtraInt(gFBIGates[1], E_OBJECT_OPENED, 1);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to close the gate.", GetPlayerRPName(playerid));
- MoveDynamicObject(gFBIGates[1], 283.590423, -1542.835083, 25.281988, 3.0);
- Streamer_SetExtraInt(gFBIGates[1], E_OBJECT_OPENED, 0);
- }
- return 1;
- }
-
- if((id = GetNearbyLand(playerid)) >= 0 && (IsLandOwner(playerid, id) || PlayerInfo[playerid][pLandPerms] == id))
- {
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && IsGateObject(i) && IsPlayerInRangeOfPoint(playerid, 8.0, Streamer_GetExtraFloat(i, E_OBJECT_X), Streamer_GetExtraFloat(i, E_OBJECT_Y), Streamer_GetExtraFloat(i, E_OBJECT_Z)) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == LandInfo[id][lID])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM landobjects WHERE id = %i", Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnPlayerUseLandGate", "ii", playerid, i);
- return 1;
- }
- }
- }
- return 0;
- }
- DoorCheck(playerid)
- {
- new Float:angle, id;
- for(new i = 0; i < sizeof(gPDDoors); i ++)
- {
- if(IsPlayerInRangeOfDynamicObject(playerid, gPDDoors[i], 3.0))
- {
- if(GetFactionType(playerid) != FACTION_POLICE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to open this door.");
- }
- Streamer_GetFloatData(STREAMER_TYPE_OBJECT, gPDDoors[i], E_STREAMER_R_Z, angle);
- if(!Streamer_GetExtraInt(gPDDoors[i], E_OBJECT_OPENED))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their card to open the door.", GetPlayerRPName(playerid));
- SetDynamicObjectRot(gPDDoors[i], 0.0000, 0.0000, angle + 90.0);
- Streamer_SetExtraInt(gPDDoors[i], E_OBJECT_OPENED, 1);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their card to close the door.", GetPlayerRPName(playerid));
- SetDynamicObjectRot(gPDDoors[i], 0.0000, 0.0000, angle - 90.0);
- Streamer_SetExtraInt(gPDDoors[i], E_OBJECT_OPENED, 0);
- }
- return 1;
- }
- }
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && IsPlayerInRangeOfDynamicObject(playerid, i, 2.5) && IsDoorObject(i))
- {
- if((id = GetInsideHouse(playerid)) >= 0 && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_FURNITURE && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == HouseInfo[id][hID])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT door_opened, door_locked FROM furniture WHERE id = %i", Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnPlayerUseFurnitureDoor", "iii", playerid, i, Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- return 1;
- }
- else if((id = GetNearbyLand(playerid)) >= 0 && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == LandInfo[id][lID])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT door_opened, door_locked FROM landobjects WHERE id = %i", Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnPlayerUseLandDoor", "iii", playerid, i, Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- return 1;
- }
- }
- }
- return 0;
- }
- EnterCheck(playerid)
- {
- new id, string[40];
- if((gettime() - PlayerInfo[playerid][pLastEnter]) < 3 && PlayerInfo[playerid][pAdminDuty] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to wait before using this command again.");
- }
- if((id = GetNearbyHouse(playerid)) >= 0)
- {
- if(HouseInfo[id][hLocked])
- {
- GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
- return 0;
- }
- if(IsHouseOwner(playerid, id))
- {
- HouseInfo[id][hTimestamp] = gettime();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET timestamp = %i WHERE id = %i", gettime(), HouseInfo[id][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered their house.", GetPlayerRPName(playerid));
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the house.", GetPlayerRPName(playerid));
- }
- PlayerInfo[playerid][pLastEnter] = gettime();
- SetPlayerPos(playerid, HouseInfo[id][hIntX], HouseInfo[id][hIntY], HouseInfo[id][hIntZ]);
- SetPlayerFacingAngle(playerid, HouseInfo[id][hIntA]);
- SetPlayerInterior(playerid, HouseInfo[id][hInterior]);
- SetPlayerVirtualWorld(playerid, HouseInfo[id][hWorld]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else if((id = GetNearbyGarage(playerid)) >= 0)
- {
- if(GarageInfo[id][gLocked])
- {
- GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
- return 0;
- }
- if(IsGarageOwner(playerid, id))
- {
- GarageInfo[id][gTimestamp] = gettime();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET timestamp = %i WHERE id = %i", gettime(), GarageInfo[id][gID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered their garage.", GetPlayerRPName(playerid));
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the garage.", GetPlayerRPName(playerid));
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- TeleportToCoords(playerid, garageInteriors[GarageInfo[id][gType]][intVX], garageInteriors[GarageInfo[id][gType]][intVY], garageInteriors[GarageInfo[id][gType]][intVZ], garageInteriors[GarageInfo[id][gType]][intVA], garageInteriors[GarageInfo[id][gType]][intID], GarageInfo[id][gWorld]);
- }
- else
- {
- PlayerInfo[playerid][pLastEnter] = gettime();
- SetPlayerPos(playerid, garageInteriors[GarageInfo[id][gType]][intPX], garageInteriors[GarageInfo[id][gType]][intPY], garageInteriors[GarageInfo[id][gType]][intPZ]);
- SetPlayerFacingAngle(playerid, garageInteriors[GarageInfo[id][gType]][intPA]);
- SetPlayerInterior(playerid, garageInteriors[GarageInfo[id][gType]][intID]);
- SetPlayerVirtualWorld(playerid, GarageInfo[id][gWorld]);
- SetCameraBehindPlayer(playerid);
- }
- return 1;
- }
- else if((id = GetNearbyBusiness(playerid)) >= 0)
- {
- if(BusinessInfo[id][bLocked])
- {
- GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
- return 0;
- }
- if(IsBusinessOwner(playerid, id))
- {
- BusinessInfo[id][bTimestamp] = gettime();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET timestamp = %i WHERE id = %i", gettime(), BusinessInfo[id][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered their business.", GetPlayerRPName(playerid));
- }
- else
- {
- if(BusinessInfo[id][bEntryFee] > 0)
- {
- if(PlayerInfo[playerid][pCash] < BusinessInfo[id][bEntryFee])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to pay the entry fee. You may not enter.");
- }
- format(string, sizeof(string), "~r~-$%i", BusinessInfo[id][bEntryFee]);
- GameTextForPlayer(playerid, string, 5000, 1);
- BusinessInfo[id][bCash] += BusinessInfo[id][bEntryFee];
- GivePlayerCash(playerid, -BusinessInfo[id][bEntryFee]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[id][bCash], BusinessInfo[id][bID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the business.", GetPlayerRPName(playerid));
-
- switch(BusinessInfo[id][bType])
- {
- case BUSINESS_STORE, BUSINESS_GUNSHOP, BUSINESS_CLOTHES, BUSINESS_RESTAURANT, BUSINESS_BARCLUB:
- SendClientMessageEx(playerid, COLOR_GREEN, "Welcome to %s's %s [%i products]. /buy to purchase from this business.", BusinessInfo[id][bOwner], bizInteriors[BusinessInfo[id][bType]][intType], BusinessInfo[id][bProducts]);
- case BUSINESS_GYM:
- SendClientMessageEx(playerid, COLOR_GREEN, "Welcome to %s's %s. /buy to purchase a fighting style.", BusinessInfo[id][bOwner], bizInteriors[BusinessInfo[id][bType]][intType]);
- case BUSINESS_AGENCY:
- SendClientMessageEx(playerid, COLOR_GREEN, "Welcome to %s's %s. /(ad)vertise to make an advertisement.", BusinessInfo[id][bOwner], bizInteriors[BusinessInfo[id][bType]][intType]);
- }
- }
- PlayerInfo[playerid][pLastEnter] = gettime();
- SetPlayerPos(playerid, BusinessInfo[id][bIntX], BusinessInfo[id][bIntY], BusinessInfo[id][bIntZ]);
- SetPlayerFacingAngle(playerid, BusinessInfo[id][bIntA]);
- SetPlayerInterior(playerid, BusinessInfo[id][bInterior]);
- SetPlayerVirtualWorld(playerid, BusinessInfo[id][bWorld]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else if((id = GetNearbyEntrance(playerid)) >= 0)
- {
- if(EntranceInfo[id][eLocked])
- {
- GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
- return 0;
- }
- if(EntranceInfo[id][eIntX] == 0.0 && EntranceInfo[id][eIntY] == 0.0 && EntranceInfo[id][eIntZ] == 0.0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This entrance has no interior and therefore cannot be entered.");
- return 0;
- }
- if(!PlayerInfo[playerid][pAdminDuty])
- {
- if(EntranceInfo[id][eAdminLevel] && PlayerInfo[playerid][pAdmin] < EntranceInfo[id][eAdminLevel])
- {
- SendClientMessage(playerid, COLOR_GREY, "Your administrator level is too low. You may not enter.");
- return 0;
- }
- if(EntranceInfo[id][eFactionType] > 0 && GetFactionType(playerid) != EntranceInfo[id][eFactionType])
- {
- SendClientMessage(playerid, COLOR_GREY, "This entrance is only accesible to a specific faction type. You may not enter.");
- return 0;
- }
- if(EntranceInfo[id][eVIP] && PlayerInfo[playerid][pVIPPackage] < EntranceInfo[id][eVIP])
- {
- SendClientMessage(playerid, COLOR_GREY, "Your VIP rank is too low. You may not enter.");
- return 0;
- }
- }
- PlayerInfo[playerid][pLastEnter] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the building.", GetPlayerRPName(playerid));
- if(EntranceInfo[id][eVehicles] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(EntranceInfo[id][eFreeze])
- {
- TeleportToCoords(playerid, EntranceInfo[id][eIntX], EntranceInfo[id][eIntY], EntranceInfo[id][eIntZ], EntranceInfo[id][eIntA], EntranceInfo[id][eInterior], EntranceInfo[id][eWorld], true);
- }
- else
- {
- TeleportToCoords(playerid, EntranceInfo[id][eIntX], EntranceInfo[id][eIntY], EntranceInfo[id][eIntZ], EntranceInfo[id][eIntA], EntranceInfo[id][eInterior], EntranceInfo[id][eWorld]);
- }
- }
- else
- {
- if(EntranceInfo[id][eFreeze])
- {
- SetFreezePos(playerid, EntranceInfo[id][eIntX], EntranceInfo[id][eIntY], EntranceInfo[id][eIntZ]);
- }
- else
- {
- SetPlayerPos(playerid, EntranceInfo[id][eIntX], EntranceInfo[id][eIntY], EntranceInfo[id][eIntZ]);
- }
- SetPlayerFacingAngle(playerid, EntranceInfo[id][eIntA]);
- SetPlayerInterior(playerid, EntranceInfo[id][eInterior]);
- SetPlayerVirtualWorld(playerid, EntranceInfo[id][eWorld]);
- SetCameraBehindPlayer(playerid);
- }
- if(!EntranceInfo[id][eFreeze])
- {
- format(string, sizeof(string), "~w~%s", EntranceInfo[id][eName]);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- return 1;
- }
- else
- {
- for(new i = 0; i < sizeof(staticEntrances); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, staticEntrances[i][ePosX], staticEntrances[i][ePosY], staticEntrances[i][ePosZ]))
- {
- if(!strcmp(staticEntrances[i][eName], "VIP lounge") && PlayerInfo[playerid][pVIPPackage] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This lounge is only available to those with a VIP subscription.");
- return 0;
- }
- if(staticEntrances[i][eFreeze])
- {
- SetFreezePos(playerid, staticEntrances[i][eIntX], staticEntrances[i][eIntY], staticEntrances[i][eIntZ]);
- }
- else
- {
- SetPlayerPos(playerid, staticEntrances[i][eIntX], staticEntrances[i][eIntY], staticEntrances[i][eIntZ]);
- format(string, sizeof(string), "~w~%s", staticEntrances[i][eName]);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- PlayerInfo[playerid][pLastEnter] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the building.", GetPlayerRPName(playerid));
- SetPlayerFacingAngle(playerid, staticEntrances[i][eIntA]);
- SetPlayerInterior(playerid, staticEntrances[i][eInterior]);
- SetPlayerVirtualWorld(playerid, staticEntrances[i][eWorld]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- }
- }
- return 0;
- }
- ExitCheck(playerid)
- {
- new id;
- if((gettime() - PlayerInfo[playerid][pLastEnter]) < 3 && PlayerInfo[playerid][pAdminDuty] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to wait before using this command again.");
- }
- if((id = GetInsideHouse(playerid)) >= 0 && IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[id][hIntX], HouseInfo[id][hIntY], HouseInfo[id][hIntZ]))
- {
- PlayerInfo[playerid][pLastEnter] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has exited the house.", GetPlayerRPName(playerid));
- SetPlayerPos(playerid, HouseInfo[id][hPosX], HouseInfo[id][hPosY], HouseInfo[id][hPosZ]);
- SetPlayerFacingAngle(playerid, HouseInfo[id][hPosA]);
- SetPlayerInterior(playerid, HouseInfo[id][hOutsideInt]);
- SetPlayerVirtualWorld(playerid, HouseInfo[id][hOutsideVW]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else if((id = GetInsideGarage(playerid)) >= 0)
- {
- if(
- (GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsPlayerInRangeOfPoint(playerid, 6.0, garageInteriors[GarageInfo[id][gType]][intVX], garageInteriors[GarageInfo[id][gType]][intVY], garageInteriors[GarageInfo[id][gType]][intVZ])) ||
- ((GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) && (IsPlayerInRangeOfPoint(playerid, 2.0, garageInteriors[GarageInfo[id][gType]][intPX], garageInteriors[GarageInfo[id][gType]][intPY], garageInteriors[GarageInfo[id][gType]][intPZ]) || IsPlayerInRangeOfPoint(playerid, 4.0, garageInteriors[GarageInfo[id][gType]][intVX], garageInteriors[GarageInfo[id][gType]][intVY], garageInteriors[GarageInfo[id][gType]][intVZ]))))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has exited the garage.", GetPlayerRPName(playerid));
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- TeleportToCoords(playerid, GarageInfo[id][gExitX], GarageInfo[id][gExitY], GarageInfo[id][gExitZ], GarageInfo[id][gExitA], 0, 0);
- }
- else
- {
- SetPlayerPos(playerid, GarageInfo[id][gPosX], GarageInfo[id][gPosY], GarageInfo[id][gPosZ]);
- SetPlayerFacingAngle(playerid, GarageInfo[id][gPosA]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- }
- PlayerInfo[playerid][pLastEnter] = gettime();
- return 1;
- }
- else if((id = GetInsideBusiness(playerid)) >= 0 && IsPlayerInRangeOfPoint(playerid, 3.0, BusinessInfo[id][bIntX], BusinessInfo[id][bIntY], BusinessInfo[id][bIntZ]))
- {
- PlayerInfo[playerid][pLastEnter] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has exited the business.", GetPlayerRPName(playerid));
- SetPlayerPos(playerid, BusinessInfo[id][bPosX], BusinessInfo[id][bPosY], BusinessInfo[id][bPosZ]);
- SetPlayerFacingAngle(playerid, BusinessInfo[id][bPosA]);
- SetPlayerInterior(playerid, BusinessInfo[id][bOutsideInt]);
- SetPlayerVirtualWorld(playerid, BusinessInfo[id][bOutsideVW]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else if((id = GetInsideEntrance(playerid)) >= 0 && IsPlayerInRangeOfPoint(playerid, (IsPlayerInAnyVehicle(playerid)) ? (7.0) : (3.0), EntranceInfo[id][eIntX], EntranceInfo[id][eIntY], EntranceInfo[id][eIntZ]))
- {
- PlayerInfo[playerid][pLastEnter] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has exited the building.", GetPlayerRPName(playerid));
- if(EntranceInfo[id][eVehicles] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(EntranceInfo[id][eFreeze])
- {
- TeleportToCoords(playerid, EntranceInfo[id][ePosX], EntranceInfo[id][ePosY], EntranceInfo[id][ePosZ], EntranceInfo[id][ePosA], EntranceInfo[id][eOutsideInt], EntranceInfo[id][eOutsideVW], true);
- }
- else
- {
- TeleportToCoords(playerid, EntranceInfo[id][ePosX], EntranceInfo[id][ePosY], EntranceInfo[id][ePosZ], EntranceInfo[id][ePosA], EntranceInfo[id][eOutsideInt], EntranceInfo[id][eOutsideVW]);
- }
- }
- else
- {
- if(EntranceInfo[id][eFreeze])
- {
- SetFreezePos(playerid, EntranceInfo[id][ePosX], EntranceInfo[id][ePosY], EntranceInfo[id][ePosZ]);
- }
- else
- {
- SetPlayerPos(playerid, EntranceInfo[id][ePosX], EntranceInfo[id][ePosY], EntranceInfo[id][ePosZ]);
- }
- SetPlayerFacingAngle(playerid, EntranceInfo[id][ePosA]);
- SetPlayerInterior(playerid, EntranceInfo[id][eOutsideInt]);
- SetPlayerVirtualWorld(playerid, EntranceInfo[id][eOutsideVW]);
- SetCameraBehindPlayer(playerid);
- }
- return 1;
- }
- else
- {
- for(new i = 0; i < sizeof(staticEntrances); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, staticEntrances[i][eIntX], staticEntrances[i][eIntY], staticEntrances[i][eIntZ]) && GetPlayerVirtualWorld(playerid) == staticEntrances[i][eWorld])
- {
- if(staticEntrances[i][eFreeze])
- {
- SetFreezePos(playerid, staticEntrances[i][ePosX], staticEntrances[i][ePosY], staticEntrances[i][ePosZ]);
- }
- else
- {
- SetPlayerPos(playerid, staticEntrances[i][ePosX], staticEntrances[i][ePosY], staticEntrances[i][ePosZ]);
- }
- PlayerInfo[playerid][pLastEnter] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has exited the building.", GetPlayerRPName(playerid));
- SetPlayerFacingAngle(playerid, staticEntrances[i][ePosA]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- }
- }
- return 0;
- }
- AddReportToQueue(playerid, text[])
- {
- for(new i = 0; i < MAX_REPORTS; i ++)
- {
- if(!ReportInfo[i][rExists])
- {
- strcpy(ReportInfo[i][rText], text, 128);
- ReportInfo[i][rExists] = 1;
- ReportInfo[i][rAccepted] = 0;
- ReportInfo[i][rReporter] = playerid;
- ReportInfo[i][rHandledBy] = INVALID_PLAYER_ID;
- ReportInfo[i][rTime] = 5;
- PlayerInfo[playerid][pLastReport] = gettime();
- SendAdminMessage(COLOR_YELLOW2, "Report from [%i]%s (RID: %i): %s", playerid, GetPlayerRPName(playerid), i, text);
- return 1;
- }
- }
- return 0;
- }
- AddBan(username[], ip[], from[], reason[], permanent = 0)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id FROM bans WHERE username = '%s' OR ip = '%s'", username, ip);
- mysql_tquery(connectionID, queryBuffer, "OnBanAttempt", "ssssi", username, ip, from, reason, permanent);
- }
- BanPlayer(playerid, from[], reason[], permanent = 0)
- {
- if(!strcmp(from, SERVER_ANTICHEAT))
- {
- gAnticheatBans++;
- SaveServerInfo();
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO log_bans VALUES(null, %i, NOW(), '%s (IP: %s) was banned by %s, reason: %e')", PlayerInfo[playerid][pID], GetPlayerNameEx(playerid), GetPlayerIP(playerid), from, reason);
- mysql_tquery(connectionID, queryBuffer);
- AddBan(GetPlayerNameEx(playerid), GetPlayerIP(playerid), from, reason, permanent);
- KickIP(GetPlayerIP(playerid));
- }
- Rangeban(playerid, from[], reason[])
- {
- AddBan(GetPlayerNameEx(playerid), GetPlayerIPRange(playerid), from, reason);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO log_bans VALUES(null, %i, NOW(), '%s (IP: %s) was rangebanned by %s, reason: %e')", PlayerInfo[playerid][pID], GetPlayerNameEx(playerid), GetPlayerIP(playerid), from, reason);
- mysql_tquery(connectionID, queryBuffer);
-
- KickIP(GetPlayerIP(playerid));
- }
- KickIP(ip[])
- {
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerIP(i), ip))
- {
- KickPlayer(i);
- }
- }
- }
- GetPlayerHealthEx(playerid)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- return floatround(health);
- }
- GetPlayerArmourEx(playerid)
- {
- new Float:armor;
- GetPlayerArmour(playerid, armor);
- return floatround(armor);
- }
- GivePlayerHealth(playerid, Float:amount)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, (health + amount > 100.0) ? (100.0) : (health + amount));
- }
- GivePlayerArmour(playerid, Float:amount)
- {
- new Float:armor;
- GetPlayerArmour(playerid, armor);
- SetScriptArmour(playerid, (armor + amount > 100.0) ? (100.0) : (armor + amount));
- }
- AddToPaycheck(playerid, amount)
- {
- if(PlayerInfo[playerid][pLogged])
- {
- PlayerInfo[playerid][pPaycheck] = PlayerInfo[playerid][pPaycheck] + amount;
- if(!PlayerInfo[playerid][pAdminDuty])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET paycheck = paycheck + %i WHERE uid = %i", amount, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- GivePlayerCash(playerid, amount)
- {
- if(PlayerInfo[playerid][pLogged])
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + amount;
- if(!PlayerInfo[playerid][pAdminDuty])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cash = cash + %i WHERE uid = %i", amount, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- FriskPlayer(playerid, targetid)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "|____ %s's Items ____|", GetPlayerRPName(targetid));
- if(PlayerInfo[targetid][pCash] < 5000)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Cash: $%i", PlayerInfo[targetid][pCash]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY2, "Cash: $5000+");
- }
- if(PlayerInfo[targetid][pPhone])
- {
- SendClientMessage(playerid, COLOR_GREY2, "Mobile phone");
- }
- if(PlayerInfo[targetid][pWalkieTalkie])
- {
- SendClientMessage(playerid, COLOR_GREY2, "Walkie talkie");
- }
- if(PlayerInfo[targetid][pSpraycans])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Spraycans (%i)", PlayerInfo[targetid][pSpraycans]);
- }
- if(PlayerInfo[targetid][pBoombox])
- {
- SendClientMessage(playerid, COLOR_GREY2, "Boombox");
- }
- if(PlayerInfo[targetid][pMP3Player])
- {
- SendClientMessage(playerid, COLOR_GREY2, "MP3 player");
- }
- if(PlayerInfo[targetid][pPhonebook])
- {
- SendClientMessage(playerid, COLOR_GREY2, "Phonebook");
- }
- if(PlayerInfo[targetid][pMaterials] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Materials (%i)", PlayerInfo[targetid][pMaterials]);
- }
- if(PlayerInfo[targetid][pWeed])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Weed (%ig)", PlayerInfo[targetid][pWeed]);
- }
- if(PlayerInfo[targetid][pCocaine])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Cocaine (%ig)", PlayerInfo[targetid][pCocaine]);
- }
- if(PlayerInfo[targetid][pMeth])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Meth (%ig)", PlayerInfo[targetid][pMeth]);
- }
- if(PlayerInfo[targetid][pPainkillers])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Painkillers (%i)", PlayerInfo[targetid][pPainkillers]);
- }
- if(PlayerInfo[targetid][pSeeds])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Marijuana seeds (%i)", PlayerInfo[targetid][pSeeds]);
- }
- if(PlayerInfo[targetid][pEphedrine])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Raw ephedrine (%i)", PlayerInfo[targetid][pEphedrine]);
- }
- if(PlayerInfo[targetid][pHPAmmo])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Hollow point ammo (%i)", PlayerInfo[targetid][pHPAmmo]);
- }
- if(PlayerInfo[targetid][pPoisonAmmo])
- {
- SendClientMessageEx(playerid, COLOR_RED, "Poison tip ammo (%i)", PlayerInfo[targetid][pPoisonAmmo]);
- }
- if(PlayerInfo[targetid][pFMJAmmo])
- {
- SendClientMessageEx(playerid, COLOR_RED, "FMJ ammo (%i)", PlayerInfo[targetid][pFMJAmmo]);
- }
- switch(PlayerInfo[targetid][pSmuggleDrugs])
- {
- case 1: SendClientMessageEx(playerid, COLOR_RED, "Seeds package");
- case 2: SendClientMessageEx(playerid, COLOR_RED, "Cocaine package");
- case 3: SendClientMessageEx(playerid, COLOR_RED, "Raw ephedrine package");
- }
- for(new i = 0; i < 13; i ++)
- {
- if(PlayerInfo[targetid][pWeapons][i] > 0)
- {
- SendClientMessageEx(playerid, COLOR_RED, "%s", GetWeaponNameEx(PlayerInfo[targetid][pWeapons][i]));
- }
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s searches for illegal items on %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- DisplayInventory(playerid, targetid = INVALID_PLAYER_ID)
- {
- if(targetid == INVALID_PLAYER_ID) targetid = playerid;
- new package[12];
-
- switch(PlayerInfo[playerid][pSmuggleDrugs])
- {
- case 0: package = "None";
- case 1: package = "Seeds";
- case 2: package = "Cocaine";
- case 3: package = "Ephedrine";
- }
- //SendClientMessage(targetid, COLOR_GREEN, "______________________________________________________________________");
- SendClientMessageEx(targetid, COLOR_GREEN, "|____ %s's inventory & capacities [Inventory Skill: %i/5] ____|", GetPlayerRPName(playerid), PlayerInfo[playerid][pInventoryUpgrade]);
- SendClientMessageEx(targetid, COLOR_LIGHTORANGE, "Weed: %i/%ig - Cocaine: %i/%ig - Meth: %i/%ig - Painkillers: %i/%i - Seeds: %i/%i", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED),
- PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE), PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH), PlayerInfo[playerid][pPainkillers], GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS), PlayerInfo[playerid][pSeeds], GetPlayerCapacity(playerid, CAPACITY_SEEDS));
- SendClientMessageEx(targetid, COLOR_LIGHTORANGE, "Materials: %i/%i - Ephedrine: %i/%ig - Muriatic acid: %i/10 - Baking soda: %i/3", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS),
- PlayerInfo[playerid][pEphedrine], GetPlayerCapacity(playerid, CAPACITY_EPHEDRINE), PlayerInfo[playerid][pMuriaticAcid], PlayerInfo[playerid][pBakingSoda]);
- SendClientMessageEx(targetid, COLOR_YELLOW2, "Fishing rod: %s - Fish bait: %i/20 - Boombox: %s - MP3 player: %s - Phonebook: %s", (PlayerInfo[playerid][pFishingRod]) ? ("Yes") : ("No"), PlayerInfo[playerid][pFishingBait], (PlayerInfo[playerid][pBoombox]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pMP3Player]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pPhonebook]) ? ("Yes") : ("No"));
- SendClientMessageEx(targetid, COLOR_YELLOW2, "Drivers license: %s - Components: %i - Cigars: %i - Spraycans: %i/20 - Bombs: %i/3", (PlayerInfo[playerid][pCarLicense]) ? ("Yes") : ("No"), PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pSpraycans], PlayerInfo[playerid][pBombs]);
- SendClientMessageEx(targetid, COLOR_LIMITLESSBLUE, "Gasoline: %i/20L - Walkie talkie: %s - Mobile phone: %s - Drug package: %s", PlayerInfo[playerid][pGasCan], (PlayerInfo[playerid][pWalkieTalkie]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pPhone]) ? ("Yes") : ("No"), package);
- SendClientMessageEx(targetid, COLOR_LIMITLESSBLUE, "Watch: %s - GPS: %s - Hollow point: %i/%i - Poison tip: %i/%i - FMJ ammo: %i/%i", (PlayerInfo[playerid][pWatch]) ? ("Yes") : ("No"), (PlayerInfo[playerid][pGPS]) ? ("Yes") : ("No"), PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO), PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO), PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
- //SendClientMessage(targetid, COLOR_GREEN, "______________________________________________________________________");
- }
- DisplayStats(playerid, targetid = INVALID_PLAYER_ID)
- {
- if(targetid == INVALID_PLAYER_ID) targetid = playerid;
- new name[24], gender[8], faction[48], facrank[32], gang[32], gangrank[32], division[32], Float:health, Float:armor, Float:maxarmor;
- if(playerid == MAX_PLAYERS)
- {
- strcpy(name, PlayerInfo[playerid][pUsername]);
- }
- else
- {
- strcat(name, GetPlayerRPName(playerid));
- }
- if(PlayerInfo[playerid][pGender] == 1) gender = "Male";
- else if(PlayerInfo[playerid][pGender] == 2) gender = "Female";
- if(PlayerInfo[playerid][pFaction] >= 0)
- {
- strcpy(faction, FactionInfo[PlayerInfo[playerid][pFaction]][fName]);
- strcpy(facrank, FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]]);
- if(PlayerInfo[playerid][pDivision] >= 0)
- {
- strcpy(division, FactionDivisions[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pDivision]]);
- }
- else
- {
- division = "None";
- }
- }
- else
- {
- faction = "None";
- facrank = "N/A";
- division = "None";
- }
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- strcpy(gang, GangInfo[PlayerInfo[playerid][pGang]][gName]);
- strcpy(gangrank, GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]]);
- }
- else
- {
- gang = "None";
- gangrank = "N/A";
- }
- switch(PlayerInfo[playerid][pVIPPackage])
- {
- case 0:
- maxarmor = 100.0;
- case 1, 2:
- maxarmor = 125.0;
- case 3:
- maxarmor = 150.0;
- }
-
- if(playerid == MAX_PLAYERS)
- {
- health = PlayerInfo[playerid][pHealth];
- armor = PlayerInfo[playerid][pArmor];
- }
- else
- {
- GetPlayerHealth(playerid, health);
- GetPlayerArmour(playerid, armor);
- }
- SendClientMessageEx(targetid, COLOR_GREEN, "|____ %s's statistics on Federal City Roleplay [%s] ____|", name, GetDate());
- SendClientMessageEx(targetid, COLOR_ORANGE, "Level: %i - Gender: %s - Age: %i - Cash: $%i - Bank: $%i - Hours: %i - Ph: %i", PlayerInfo[playerid][pLevel], gender, PlayerInfo[playerid][pAge], PlayerInfo[playerid][pCash], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pHours], PlayerInfo[playerid][pPhone]);
- SendClientMessageEx(targetid, COLOR_ORANGE, "Total Wealth: $%i - Experience: %i/%i - Next Level: $%i - Upgrade Points: %i", PlayerInfo[playerid][pCash] + PlayerInfo[playerid][pBank], PlayerInfo[playerid][pEXP], (PlayerInfo[playerid][pLevel] * 4), (PlayerInfo[playerid][pLevel] + 1) * 5000, PlayerInfo[playerid][pUpgradePoints]);
- SendClientMessageEx(targetid, COLOR_YELLOW2, "Inventory Upgrade: %i/5 - Addict Upgrade: %i/3 - Trader Upgrade: %i/3 - Asset Upgrade: %i/4", PlayerInfo[playerid][pInventoryUpgrade], PlayerInfo[playerid][pAddictUpgrade], PlayerInfo[playerid][pTraderUpgrade], PlayerInfo[playerid][pAssetUpgrade]);
- SendClientMessageEx(targetid, COLOR_YELLOW2, "Job: %s - Job Level: %i - Crimes Commited: %i - Arrested: %i - Wanted Level: %i", GetJobName(PlayerInfo[playerid][pJob]), GetJobLevel(playerid, PlayerInfo[playerid][pJob]), PlayerInfo[playerid][pCrimes], PlayerInfo[playerid][pArrested], PlayerInfo[playerid][pWantedLevel]);
- SendClientMessageEx(targetid, COLOR_LIGHTORANGE, "Warnings: %i - Spawn Health: %.1f/100.0 - Spawn Armor: %.1f/%.1f - Jail Time: %i seconds", PlayerInfo[playerid][pWarnings], PlayerInfo[playerid][pSpawnHealth], PlayerInfo[playerid][pSpawnArmor], maxarmor, PlayerInfo[playerid][pJailTime]);
- SendClientMessageEx(targetid, COLOR_LIGHTORANGE, "Faction: %s - Rank: %s (%i) - Division: %s - Gang: %s - Rank: %s (%i)", faction, facrank, PlayerInfo[playerid][pFactionRank], division, gang, gangrank, PlayerInfo[playerid][pGangRank]);
- SendClientMessageEx(targetid, COLOR_LIMITLESSBLUE, "Paycheck: $%i - Channel: %i - Cookies: %i - Helper: %s - VIP Package: %s", PlayerInfo[playerid][pPaycheck], PlayerInfo[playerid][pChannel], PlayerInfo[playerid][pCookies], GetHelperRank(playerid), GetVIPRank(PlayerInfo[playerid][pVIPPackage]));
- SendClientMessageEx(targetid, COLOR_LIMITLESSBLUE, "Second Job: %s - DM Warnings: %i/5 - Report Warnings: %i/3 - Weapon Restriction: %i hours", GetJobName(PlayerInfo[playerid][pSecondJob]), PlayerInfo[playerid][pDMWarnings], PlayerInfo[playerid][pReportWarns], PlayerInfo[playerid][pWeaponRestricted]);
- if(PlayerInfo[targetid][pAdmin] > 0)
- {
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "Interior: %i - Virtual: %i - FPS: %i - AFK: %s - Reports: %i - Help Requests: %i", (playerid == MAX_PLAYERS) ? (PlayerInfo[playerid][pInterior]) : (GetPlayerInterior(playerid)), (playerid == MAX_PLAYERS) ? (PlayerInfo[playerid][pWorld]) : (GetPlayerVirtualWorld(playerid)), (playerid == MAX_PLAYERS) ? (0) : (PlayerInfo[playerid][pFPS]), (playerid == MAX_PLAYERS) ? ("No") : ((PlayerInfo[playerid][pAFK]) ? ("Yes") : ("No")),
- PlayerInfo[playerid][pReports], PlayerInfo[playerid][pHelpRequests]);
- }
- if(playerid == targetid) {
- SendClientMessage(targetid, COLOR_LIGHTORANGE, "** For a list of items and their capacities in your inventory, use /(inv)entory.");
- } else if(playerid != MAX_PLAYERS) {
- SendClientMessageEx(targetid, COLOR_LIGHTORANGE, "** For a list of items and their capacities in their inventory, use /checkinv %i.", playerid);
- }
- }
- ShowDialogToPlayer(playerid, dialogid)
- {
- new string[2048];
- switch(dialogid)
- {
- case DIALOG_REGISTER:
- {
- format(string, sizeof(string), "{F7A763}Welcome to Federal City Roleplay, %s.\n{FF6347}Please enter your password of choice below in order to register:", GetPlayerNameEx(playerid));
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "{089DCE}Federal City Roleplay | Register", string, "Register", "Quit");
- }
- case DIALOG_LOGIN:
- {
- format(string, sizeof(string), "{F7A763}Welcome back to Federal City Roleplay, %s.\n{33CC33}Please enter your password below in order to authenticate:", GetPlayerNameEx(playerid));
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{089DCE}Federal City Roleplay | Login", string, "Login", "Quit");
- }
- case DIALOG_GENDER:
- {
- ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_LIST, "Please choose your gender.", "Male\nFemale", "Select", "");
- }
- case DIALOG_AGE:
- {
- ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Please enter your age.", "Please input the age of your character below (13-99):", "Submit", "Back");
- }
- case DIALOG_REFERRAL:
- {
- ShowPlayerDialog(playerid, DIALOG_REFERRAL, DIALOG_STYLE_INPUT, "Have you been referred by anyone?", "Please enter the name the player who referred you here:\n(Click on 'Skip' if you haven't been referred by anyone.)", "Submit", "Skip");
- }
- case DIALOG_BUYFURNITURE1:
- {
- for(new i = 0; i < sizeof(furnitureCategories); i ++)
- {
- format(string, sizeof(string), "%s\n%s", string, furnitureCategories[i]);
- }
- ShowPlayerDialog(playerid, DIALOG_BUYFURNITURE1, DIALOG_STYLE_LIST, "Choose a category to browse.", string, "Select", "Cancel");
- }
- case DIALOG_BUYFURNITURE2:
- {
- new index = -1;
- for(new i = 0; i < sizeof(furnitureArray); i ++)
- {
- if(!strcmp(furnitureArray[i][fCategory], furnitureCategories[PlayerInfo[playerid][pCategory]]))
- {
- if(index == -1)
- {
- index = i;
- }
- format(string, sizeof(string), "%s\n%s ($%i)", string, furnitureArray[i][fName], furnitureArray[i][fPrice]);
- }
- }
- PlayerInfo[playerid][pFurnitureIndex] = index;
- ShowPlayerDialog(playerid, DIALOG_BUYFURNITURE2, DIALOG_STYLE_LIST, "Choose an item in order to preview it.", string, "Select", "Back");
- }
- case DIALOG_ATM:
- {
- format(string, sizeof(string), "How much would you like to withdraw? (Your account balance is $%i.)", PlayerInfo[playerid][pBank]);
- ShowPlayerDialog(playerid, DIALOG_ATM, DIALOG_STYLE_INPUT, "Cash withdrawal", string, "Submit", "Cancel");
- }
- case DIALOG_BUYCLOTHING:
- {
- new index = -1;
- for(new i = 0; i < sizeof(clothingArray); i ++)
- {
- if(!strcmp(clothingArray[i][clothingType], clothingTypes[PlayerInfo[playerid][pCategory]]))
- {
- if(index == -1)
- {
- index = i;
- }
- format(string, sizeof(string), "%s\n%s", string, clothingArray[i][clothingName]);
- }
- }
- PlayerInfo[playerid][pClothingIndex] = index;
- ShowPlayerDialog(playerid, DIALOG_BUYCLOTHING, DIALOG_STYLE_LIST, "Choose an item in order to preview it.", string, "Select", "Cancel");
- }
- case DIALOG_BUYCLOTHES:
- {
- new businessid = GetInsideBusiness(playerid);
- if(businessid >= 0 && BusinessInfo[businessid][bType] == BUSINESS_CLOTHES)
- {
- format(string, sizeof(string), "%s's %s [%i products]", BusinessInfo[businessid][bOwner], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bProducts]);
- if(PlayerInfo[playerid][pVIPPackage] > 0) {
- ShowPlayerDialog(playerid, DIALOG_BUYCLOTHES, DIALOG_STYLE_INPUT, string, "NOTE: New clothes are free for VIP members.\n\nPlease input the ID of the skin you wish to purchase.\n(( List of skins: http://wiki.sa-mp.com/wiki/Skins:All ))", "Submit", "Cancel");
- } else {
- ShowPlayerDialog(playerid, DIALOG_BUYCLOTHES, DIALOG_STYLE_INPUT, string, "NOTE: New clothes costs $2,000.\n\nPlease input the ID of the skin you wish to purchase.\n(( List of skins: http://wiki.sa-mp.com/wiki/Skins:All ))", "Submit", "Cancel");
- }
- }
- }
- case DIALOG_FACTIONPAY1:
- {
- string = "#\tRank\tPaycheck";
- for(new i = 0; i < FactionInfo[PlayerInfo[playerid][pFactionEdit]][fRankCount]; i ++)
- {
- format(string, sizeof(string), "%s\n%i\t%s\t{00AA00}$%i{FFFFFF}", string, i, FactionRanks[PlayerInfo[playerid][pFactionEdit]][i], FactionInfo[PlayerInfo[playerid][pFactionEdit]][fPaycheck][i]);
- }
- ShowPlayerDialog(playerid, DIALOG_FACTIONPAY1, DIALOG_STYLE_TABLIST_HEADERS, FactionInfo[PlayerInfo[playerid][pFactionEdit]][fName], string, "Change", "Cancel");
- }
- case DIALOG_PHONEBOOK:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM phonebook ORDER BY name ASC LIMIT %i, %i", (PlayerInfo[playerid][pPage] - 1) * MAX_LISTED_NUMBERS, MAX_LISTED_NUMBERS);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_VIEW_PHONEBOOK, playerid);
- }
- case DIALOG_LANDBUILD1:
- {
- for(new i = 0; i < sizeof(furnitureCategories); i ++)
- {
- format(string, sizeof(string), "%s\n%s", string, furnitureCategories[i]);
- }
- ShowPlayerDialog(playerid, DIALOG_LANDBUILD1, DIALOG_STYLE_LIST, "Choose a category to browse.", string, "Select", "Back");
- }
- case DIALOG_LANDBUILD2:
- {
- new index = -1;
- for(new i = 0; i < sizeof(furnitureArray); i ++)
- {
- if(!strcmp(furnitureArray[i][fCategory], furnitureCategories[PlayerInfo[playerid][pCategory]]))
- {
- if(index == -1)
- {
- index = i;
- }
- format(string, sizeof(string), "%s\n%s ($%i)", string, furnitureArray[i][fName], furnitureArray[i][fPrice]);
- }
- }
- PlayerInfo[playerid][pFurnitureIndex] = index;
- ShowPlayerDialog(playerid, DIALOG_LANDBUILD2, DIALOG_STYLE_LIST, "Choose an item in order to preview it.", string, "Select", "Back");
- }
- case DIALOG_LANDMENU:
- {
- ShowPlayerDialog(playerid, DIALOG_LANDMENU, DIALOG_STYLE_LIST, "Land menu", "Build object\nEdit object\nToggle labels\nList all objects\nSell all objects\nPermissions", "Select", "Cancel");
- }
- case DIALOG_LANDOBJECTMENU:
- {
- if(IsGateObject(PlayerInfo[playerid][pSelected]))
- {
- ShowPlayerDialog(playerid, DIALOG_LANDOBJECTMENU, DIALOG_STYLE_LIST, "Object menu", "Edit object\nEdit gate destination\nDuplicate object\nSell object", "Select", "Cancel");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_LANDOBJECTMENU, DIALOG_STYLE_LIST, "Object menu", "Edit object\nDuplicate object\nSell object", "Select", "Cancel");
- }
- }
- case DIALOG_LANDOBJECTS:
- {
- new landid = GetNearbyLand(playerid);
- if(landid >= 0 && HasLandPerms(playerid, landid))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM landobjects WHERE landid = %i ORDER BY id DESC LIMIT %i, %i", LandInfo[landid][lID], (PlayerInfo[playerid][pPage] - 1) * MAX_LISTED_OBJECTS, MAX_LISTED_OBJECTS);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LIST_LANDOBJECTS, playerid);
- }
- }
- case DIALOG_MP3PLAYER:
- {
- ShowPlayerDialog(playerid, DIALOG_MP3PLAYER, DIALOG_STYLE_LIST, "MP3 player", "Custom URL\nUploaded Music\nRadio Stations\nStop Music", "Select", "Cancel");
- }
- case DIALOG_MP3RADIO:
- {
- ShowPlayerDialog(playerid, DIALOG_MP3RADIO, DIALOG_STYLE_LIST, "Radio Stations", "Browse Genres\nSearch by Name", "Select", "Back");
- }
- case DIALOG_MP3RADIOGENRES:
- {
- new genre[32] = "n/a";
- for(new i = 0; i < sizeof(radioGenreList); i ++)
- {
- if(strcmp(radioGenreList[i][rGenre], genre) != 0)
- {
- strcpy(genre, radioGenreList[i][rGenre]);
- strcat(string, genre);
- strcat(string, "\n");
- }
- }
- ShowPlayerDialog(playerid, DIALOG_MP3RADIOGENRES, DIALOG_STYLE_LIST, "Choose a genre to browse stations in.", string, "Select", "Back");
- }
- case DIALOG_MP3RADIOSUBGENRES:
- {
- for(new i = 0; i < sizeof(radioGenreList); i ++)
- {
- if(!strcmp(radioGenreList[i][rGenre], PlayerInfo[playerid][pGenre]))
- {
- format(string, sizeof(string), "%s\n%s", string, radioGenreList[i][rSubgenre]);
- }
- }
- ShowPlayerDialog(playerid, DIALOG_MP3RADIOSUBGENRES, DIALOG_STYLE_LIST, "Choose a subgenre to browse stations in.", string, "Select", "Back");
- }
- case DIALOG_MP3RADIORESULTS:
- {
- if(PlayerInfo[playerid][pSearch])
- {
- mysql_format(radioConnectionID, queryBuffer, sizeof(queryBuffer), "SELECT name FROM radiostations WHERE name LIKE '%%%e%%' OR subgenre LIKE '%%%e%%' ORDER BY name LIMIT %i, %i", PlayerInfo[playerid][pGenre], PlayerInfo[playerid][pGenre], (PlayerInfo[playerid][pPage] - 1) * MAX_LISTED_STATIONS, MAX_LISTED_STATIONS);
- mysql_tquery(radioConnectionID, queryBuffer, "Radio_ListStations", "i", playerid);
- }
- else
- {
- mysql_format(radioConnectionID, queryBuffer, sizeof(queryBuffer), "SELECT name FROM radiostations WHERE genre = '%e' AND subgenre = '%e' ORDER BY name LIMIT %i, %i", PlayerInfo[playerid][pGenre], PlayerInfo[playerid][pSubgenre], (PlayerInfo[playerid][pPage] - 1) * MAX_LISTED_STATIONS, MAX_LISTED_STATIONS);
- mysql_tquery(radioConnectionID, queryBuffer, "Radio_ListStations", "i", playerid);
- }
- }
- case DIALOG_MP3RADIOSEARCH:
- {
- ShowPlayerDialog(playerid, DIALOG_MP3RADIOSEARCH, DIALOG_STYLE_INPUT, "Search by Name", "Enter the full or partial name of the radio station:", "Submit", "Back");
- }
- case DIALOG_GANGSTASH:
- {
- format(string, sizeof(string), "Gang stash ($%i/$%i) (Materials: %i/%i)", GangInfo[PlayerInfo[playerid][pGang]][gCash], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_CASH), GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_MATERIALS));
- ShowPlayerDialog(playerid, DIALOG_GANGSTASH, DIALOG_STYLE_LIST, string, "Weapons\nAmmo\nKevlar Vest\nDrugs\nCrafting\nMaterials\nCash", "Select", "Cancel");
- }
- case DIALOG_GANGSTASHWEAPONS1:
- {
- format(string, sizeof(string), "[%i] 9mm (R1+)\n[%i] Sdpistol (R1+)\n[%i] Deagle (R2+)\n[%i] Shotgun (R1+)\n[%i] SPAS-12 (R4+)\n[%i] Sawn-off (R4+)\n[%i] Tec-9 (R1+)\n[%i] Micro Uzi (R1+)\n[%i] MP5 (R2+)\n[%i] AK-47 (R3+)\n[%i] M4 (R4+)\n[%i] Rifle (R2+)\n[%i] Sniper (R5+)\n[%i] Molotov (R5+)",
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_9MM], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SDPISTOL], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_DEAGLE], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SHOTGUN], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SPAS12], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SAWNOFF], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_TEC9],
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_UZI], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MP5], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_AK47], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_M4], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_RIFLE], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SNIPER], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MOLOTOV]);
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHWEAPONS1, DIALOG_STYLE_LIST, "Gang stash | Weapons", string, "Select", "Back");
- }
- case DIALOG_GANGSTASHDRUGS1:
- {
- format(string, sizeof(string), "Weed (%i/%ig)\nCocaine (%i/%ig)\nMeth (%i/%ig)\nPainkillers (%i/%i)",
- GangInfo[PlayerInfo[playerid][pGang]][gWeed], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_WEED), GangInfo[PlayerInfo[playerid][pGang]][gCocaine], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_COCAINE), GangInfo[PlayerInfo[playerid][pGang]][gMeth], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_METH), GangInfo[PlayerInfo[playerid][pGang]][gPainkillers], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_PAINKILLERS));
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHDRUGS1, DIALOG_STYLE_LIST, "Gang stash | Drugs", string, "Select", "Back");
- }
- case DIALOG_GANGSTASHDRUGS2:
- {
- if(PlayerInfo[playerid][pSelected] == ITEM_WEED) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHDRUGS2, DIALOG_STYLE_LIST, "Gang stash | Weed", "Withdraw\nDeposit", "Select", "Back");
- } else if(PlayerInfo[playerid][pSelected] == ITEM_COCAINE) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHDRUGS2, DIALOG_STYLE_LIST, "Gang stash | Cocaine", "Withdraw\nDeposit", "Select", "Back");
- } else if(PlayerInfo[playerid][pSelected] == ITEM_METH) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHDRUGS2, DIALOG_STYLE_LIST, "Gang stash | Meth", "Withdraw\nDeposit", "Select", "Back");
- } else if(PlayerInfo[playerid][pSelected] == ITEM_PAINKILLERS) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHDRUGS2, DIALOG_STYLE_LIST, "Gang stash | Painkillers", "Withdraw\nDeposit", "Select", "Back");
- }
- }
- case DIALOG_GANGSTASHAMMO1:
- {
- format(string, sizeof(string), "HP ammo (%i/%i)\nPoison ammo (%i/%i)\nFMJ ammo (%i/%i)", GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_HPAMMO), GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_POISONAMMO), GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_FMJAMMO));
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHAMMO1, DIALOG_STYLE_LIST, "Gang stash | Ammo", string, "Select", "Back");
- }
- case DIALOG_GANGSTASHAMMO2:
- {
- if(PlayerInfo[playerid][pSelected] == ITEM_HPAMMO) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHAMMO2, DIALOG_STYLE_LIST, "Gang stash | HP ammo", "Withdraw\nDeposit", "Select", "Back");
- } else if(PlayerInfo[playerid][pSelected] == ITEM_POISONAMMO) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHAMMO2, DIALOG_STYLE_LIST, "Gang stash | Poison ammo", "Withdraw\nDeposit", "Select", "Back");
- } else if(PlayerInfo[playerid][pSelected] == ITEM_FMJAMMO) {
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHAMMO2, DIALOG_STYLE_LIST, "Gang stash | FMJ ammo", "Withdraw\nDeposit", "Select", "Back");
- }
- }
- case DIALOG_GANGSTASHCRAFT:
- {
- format(string, sizeof(string), "Gang stash | Crafting (Your safe has %i materials.)", GangInfo[PlayerInfo[playerid][pGang]][gMaterials]);
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHCRAFT, DIALOG_STYLE_TABLIST_HEADERS, string, "#\tWeapon\tCost\n1\t9mm\t150 materials\n2\tSdpistol\t200 materials\n3\tShotgun\t500 materials\n4\tMicro SMG\t500 materials\n5\tTec-9\t500 materials\n6\tMP5\t1000 materials\n7\tRifle\t1000 materials\n8\tDesert Eagle\t2000 materials\n9\tMolotov\t5000 materials\n10\tAK-47\t3000 materials\n11\tSawed-off Shotgun\t3000 materials", "Craft", "Back");
- }
- case DIALOG_GANGSTASHMATS:
- {
- format(string, sizeof(string), "Withdraw (%i/%i)\nDeposit", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_MATERIALS));
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHMATS, DIALOG_STYLE_LIST, "Gang stash | Materials", string, "Select", "Back");
- }
- case DIALOG_GANGSTASHCASH:
- {
- format(string, sizeof(string), "Withdraw ($%i/$%i)\nDeposit", GangInfo[PlayerInfo[playerid][pGang]][gCash], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_CASH));
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHCASH, DIALOG_STYLE_LIST, "Gang stash | Cash", string, "Select", "Back");
- }
- case DIALOG_GANGWITHDRAW:
- {
- if(PlayerInfo[playerid][pSelected] == ITEM_WEED) {
- format(string, sizeof(string), "How much weed would you like to withdraw? (The safe contains %i/%i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gWeed], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_WEED));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_COCAINE) {
- format(string, sizeof(string), "How much cocaine would you like to withdraw? (The safe contains %i/%i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gCocaine], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_COCAINE));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_METH) {
- format(string, sizeof(string), "How much meth would you like to withdraw? (The safe contains %i/%i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gMeth], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_METH));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_PAINKILLERS) {
- format(string, sizeof(string), "How much painkillers would you like to withdraw? (The safe contains %i/%i.)", GangInfo[PlayerInfo[playerid][pGang]][gPainkillers], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_PAINKILLERS));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_MATERIALS) {
- format(string, sizeof(string), "How much materials would you like to withdraw? (The safe contains %i/%i.)", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_MATERIALS));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_CASH) {
- format(string, sizeof(string), "How much cash would you like to withdraw? (The safe contains $%i/$%i.)", GangInfo[PlayerInfo[playerid][pGang]][gCash], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_CASH));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_HPAMMO) {
- format(string, sizeof(string), "How much HP ammo would you like to withdraw? (The safe contains %i/%i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_HPAMMO));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_POISONAMMO) {
- format(string, sizeof(string), "How much poison ammo would you like to withdraw? (The safe contains %i/%i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_POISONAMMO));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_FMJAMMO) {
- format(string, sizeof(string), "How much FMJ ammo would you like to withdraw? (The safe contains %i/%i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_FMJAMMO));
- }
- ShowPlayerDialog(playerid, DIALOG_GANGWITHDRAW, DIALOG_STYLE_INPUT, "Gang stash | Withdraw", string, "Submit", "Back");
- }
- case DIALOG_GANGDEPOSIT:
- {
- if(PlayerInfo[playerid][pSelected] == ITEM_WEED) {
- format(string, sizeof(string), "How much weed would you like to deposit? (The safe contains %i/%i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gWeed], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_WEED));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_COCAINE) {
- format(string, sizeof(string), "How much cocaine would you like to deposit? (The safe contains %i/%i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gCocaine], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_COCAINE));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_METH) {
- format(string, sizeof(string), "How much meth would you like to deposit? (The safe contains %i/%i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gMeth], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_METH));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_PAINKILLERS) {
- format(string, sizeof(string), "How much painkillers would you like to deposit? (The safe contains %i/%i.)", GangInfo[PlayerInfo[playerid][pGang]][gPainkillers], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_PAINKILLERS));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_MATERIALS) {
- format(string, sizeof(string), "How much materials would you like to deposit? (The safe contains %i/%i.)", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_MATERIALS));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_CASH) {
- format(string, sizeof(string), "How much cash would you like to deposit? (The safe contains $%i/$%i.)", GangInfo[PlayerInfo[playerid][pGang]][gCash], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_CASH));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_HPAMMO) {
- format(string, sizeof(string), "How much HP ammo would you like to deposit? (The safe contains %i/%i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_HPAMMO));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_POISONAMMO) {
- format(string, sizeof(string), "How much poison ammo would you like to deposit? (The safe contains %i/%i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_POISONAMMO));
- } else if(PlayerInfo[playerid][pSelected] == ITEM_FMJAMMO) {
- format(string, sizeof(string), "How much FMJ ammo would you like to deposit? (The safe contains %i/%i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo], GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_FMJAMMO));
- }
- ShowPlayerDialog(playerid, DIALOG_GANGDEPOSIT, DIALOG_STYLE_INPUT, "Gang stash | Deposit", string, "Submit", "Back");
- }
- case DIALOG_GANGARMSPRICES:
- {
- format(string, sizeof(string), "#\tWeapon\tPrice\tCost\n1\tMicro Uzi\t$%i\t500 materials\n2\tTec-9\t$%i\t500 materials\n3\tMP5\t$%i\t1000 materials\n4\tDesert Eagle\t$%i\t2000 materials\n5\tMolotov\t$%i\t5000 materials\n6\tAK-47\t$%i\t3000 materials\n7\tM4\t$%i\t4000 materials\n8\tSniper\t$%i\t6500 materials\n9\tSawnoff Shotgun\t$%i\t3000 materials\n10\tHollow Point Ammo\t$%i\t%i rounds\n11\tPoison Tip Ammo\t$%i\t%i rounds\n12\tFMJ Ammo\t$%i\t%i rounds",
- GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][0], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][1], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][2], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][3], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][4], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][5], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][6], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][7], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][8],
- GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][9], GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][10], GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo], GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][11], GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo]);
- ShowPlayerDialog(playerid, DIALOG_GANGARMSPRICES, DIALOG_STYLE_TABLIST_HEADERS, "Choose a weapon price to edit.", string, "Change", "Back");
- }
- case DIALOG_GANGARMSDEALER:
- {
- ShowPlayerDialog(playerid, DIALOG_GANGARMSDEALER, DIALOG_STYLE_LIST, "Arms dealer", "Buy Guns\nBuy Ammo\nEdit", "Select", "Cancel");
- }
- case DIALOG_GANGARMSWEAPONS:
- {
- new
- title[48];
- format(title, sizeof(title), "Gang arms dealer (Materials available: %i.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials]);
- format(string, sizeof(string), "#\tWeapon\tPrice\tCost\n1\tMicro Uzi\t$%i\t500 materials\n2\tTec-9\t$%i\t500 materials\n3\tMP5\t$%i\t1000 materials\n4\tDesert Eagle\t$%i\t2000 materials\n5\tMolotov\t$%i\t5000 materials\n6\tAK-47\t$%i\t3000 materials\n7\tM4\t$%i\t4000 materials\n8\tSniper\t$%i\t6500 materials\n9\tSawnoff Shotgun\t$%i\t3000 materials",
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][0], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][1], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][2], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][3], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][4], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][5], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][6], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][7],
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][8]);
- ShowPlayerDialog(playerid, DIALOG_GANGARMSWEAPONS, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Buy", "Back");
- }
- case DIALOG_GANGARMSAMMO:
- {
- format(string, sizeof(string), "#\tType\tCost\tStock\n1\tHollow Point Ammo\t$%i\t%i rounds\n2\tPoison Tip Ammo\t$%i\t%i rounds\n3\tFMJ Ammo\t$%i\t%i rounds",
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][9], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsHPAmmo], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][10], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPoisonAmmo], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][11], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsFMJAmmo]);
- ShowPlayerDialog(playerid, DIALOG_GANGARMSAMMO, DIALOG_STYLE_TABLIST_HEADERS, "Arms dealer | Ammo", string, "Buy", "Back");
- }
- case DIALOG_GANGAMMOBUY:
- {
- if(PlayerInfo[playerid][pSelected] == 0) {
- format(string, sizeof(string), "How much hollow point ammo would you like to buy? ($%i per round. %i rounds available.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][9], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsHPAmmo]);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- format(string, sizeof(string), "How much poison tip ammo would you like to buy? ($%i per round. %i rounds available.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][10], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPoisonAmmo]);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- format(string, sizeof(string), "How much FMJ ammo would you like to buy? ($%i per round. %i rounds available.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][11], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsFMJAmmo]);
- }
- ShowPlayerDialog(playerid, DIALOG_GANGAMMOBUY, DIALOG_STYLE_INPUT, "Arms dealer | Buy ammo", string, "Submit", "Back");
- }
- case DIALOG_GANGARMSEDIT:
- {
- format(string, sizeof(string), "Arms dealer (Materials available: %i.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials]);
- ShowPlayerDialog(playerid, DIALOG_GANGARMSEDIT, DIALOG_STYLE_LIST, string, "Edit prices\nDeposit mats\nWithdraw mats\nDeposit ammo\nWithdraw ammo", "Select", "Back");
- }
- case DIALOG_GANGARMSDEPOSITMATS:
- {
- format(string, sizeof(string), "How much materials would you like to deposit? (This arms dealer contains %i materials.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials]);
- ShowPlayerDialog(playerid, DIALOG_GANGARMSDEPOSITMATS, DIALOG_STYLE_INPUT, "Arms dealer | Deposit", string, "Submit", "Back");
- }
- case DIALOG_GANGARMSWITHDRAWMATS:
- {
- format(string, sizeof(string), "How much materials would you like to withdraw? (This arms dealer contains %i materials.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials]);
- ShowPlayerDialog(playerid, DIALOG_GANGARMSWITHDRAWMATS, DIALOG_STYLE_INPUT, "Arms dealer | Withdraw", string, "Submit", "Back");
- }
- case DIALOG_GANGAMMODEPOSITS:
- {
- format(string, sizeof(string), "Hollow point (%i)\nPoison tip (%i)\nFMJ ammo (%i)", GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo], GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo], GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo]);
- ShowPlayerDialog(playerid, DIALOG_GANGAMMODEPOSITS, DIALOG_STYLE_LIST, "Arms dealer | Deposit ammo", string, "Select", "Back");
- }
- case DIALOG_GANGAMMODEPOSIT:
- {
- if(PlayerInfo[playerid][pSelected] == 0) {
- format(string, sizeof(string), "How much hollow point ammo would you like to deposit? (This arms dealer contains %i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo]);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- format(string, sizeof(string), "How much poison tip ammo would you like to deposit? (This arms dealer contains %i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo]);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- format(string, sizeof(string), "How much FMJ ammo would you like to deposit? (This arms dealer contains %i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo]);
- }
- ShowPlayerDialog(playerid, DIALOG_GANGAMMODEPOSIT, DIALOG_STYLE_INPUT, "Arms dealer | Deposit ammo", string, "Submit", "Back");
- }
- case DIALOG_GANGAMMOWITHDRAWS:
- {
- format(string, sizeof(string), "Hollow point (%i)\nPoison tip (%i)\nFMJ ammo (%i)", GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo], GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo], GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo]);
- ShowPlayerDialog(playerid, DIALOG_GANGAMMOWITHDRAWS, DIALOG_STYLE_LIST, "Arms dealer | Withdraw ammo", string, "Select", "Back");
- }
- case DIALOG_GANGAMMOWITHDRAW:
- {
- if(PlayerInfo[playerid][pSelected] == 0) {
- format(string, sizeof(string), "How much hollow point ammo would you like to withdraw? (This arms dealer contains %i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo]);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- format(string, sizeof(string), "How much poison tip ammo would you like to withdraw? (This arms dealer contains %i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo]);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- format(string, sizeof(string), "How much FMJ ammo would you like to withdraw? (This arms dealer contains %i rounds.)", GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo]);
- }
- ShowPlayerDialog(playerid, DIALOG_GANGAMMOWITHDRAW, DIALOG_STYLE_INPUT, "Arms dealer | Withdraw", string, "Submit", "Back");
- }
- case DIALOG_GANGDRUGDEALER:
- {
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGDEALER, DIALOG_STYLE_LIST, "Drug dealer", "Buy Drugs\nEdit", "Select", "Cancel");
- }
- case DIALOG_GANGDRUGSHOP:
- {
- format(string, sizeof(string), "Drug\tPrice\tStock\nWeed\t$%i\t%i grams\nCocaine\t$%i\t%i grams\nMeth\t$%i\t%i grams", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][0], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugWeed], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][1], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugCocaine], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][2], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugMeth]);
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGSHOP, DIALOG_STYLE_TABLIST_HEADERS, "Drug dealer", string, "Buy", "Back");
- }
- case DIALOG_GANGDRUGBUY:
- {
- if(PlayerInfo[playerid][pSelected] == 0) {
- format(string, sizeof(string), "How much weed would you like to buy? ($%i per gram. %i grams available.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][0], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugWeed]);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- format(string, sizeof(string), "How much cocaine would you like to buy? ($%i per gram. %i grams available.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][1], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugCocaine]);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- format(string, sizeof(string), "How much meth would you like to buy? ($%i per gram. %i grams available.)", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][2], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugMeth]);
- }
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGBUY, DIALOG_STYLE_INPUT, "Drug dealer | Buy", string, "Submit", "Back");
- }
- case DIALOG_GANGDRUGEDIT:
- {
- format(string, sizeof(string), "Drug dealer (Weed: %i) (Cocaine: %i) (Meth: %i)", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed], GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine], GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth]);
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGEDIT, DIALOG_STYLE_LIST, string, "Edit prices\nDeposit drugs\nWithdraw drugs", "Select", "Back");
- }
- case DIALOG_GANGDRUGPRICES:
- {
- format(string, sizeof(string), "Drug\tPrice\tStock\nWeed\t$%i\t%i grams\nCocaine\t$%i\t%i grams\nMeth\t$%i\t%i grams", GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][0], GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed], GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][1], GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine], GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][2], GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth]);
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGPRICES, DIALOG_STYLE_TABLIST_HEADERS, "Choose a drug price to edit.", string, "Change", "Back");
- }
- case DIALOG_GANGDRUGDEPOSITS:
- {
- format(string, sizeof(string), "Weed (%ig)\nCocaine (%ig)\nMeth (%ig)", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed], GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine], GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth]);
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGDEPOSITS, DIALOG_STYLE_LIST, "Drug dealer | Deposit", string, "Select", "Back");
- }
- case DIALOG_GANGDRUGDEPOSIT:
- {
- if(PlayerInfo[playerid][pSelected] == 0) {
- format(string, sizeof(string), "How much weed would you like to deposit? (This drug dealer contains %i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed]);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- format(string, sizeof(string), "How much cocaine would you like to deposit? (This drug dealer contains %i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine]);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- format(string, sizeof(string), "How much meth would you like to deposit? (This drug dealer contains %i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth]);
- }
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGDEPOSIT, DIALOG_STYLE_INPUT, "Drug dealer | Deposit", string, "Submit", "Back");
- }
- case DIALOG_GANGDRUGWITHDRAWS:
- {
- format(string, sizeof(string), "Weed (%ig)\nCocaine (%ig)\nMeth (%ig)", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed], GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine], GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth]);
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGWITHDRAWS, DIALOG_STYLE_LIST, "Drug dealer | Withdraw", string, "Select", "Back");
- }
- case DIALOG_GANGDRUGWITHDRAW:
- {
- if(PlayerInfo[playerid][pSelected] == 0) {
- format(string, sizeof(string), "How much weed would you like to withdraw? (This drug dealer contains %i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed]);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- format(string, sizeof(string), "How much cocaine would you like to withdraw? (This drug dealer contains %i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine]);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- format(string, sizeof(string), "How much meth would you like to withdraw? (This drug dealer contains %i grams.)", GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth]);
- }
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGWITHDRAW, DIALOG_STYLE_INPUT, "Drug dealer | Withdraw", string, "Submit", "Back");
- }
- }
- return 1;
- }
- SetPlayerToSpawn(playerid)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
- {
- SetSpawnInfo(playerid, NO_TEAM, PlayerInfo[playerid][pSkin], 820.5590, -1342.6283, 13.5216, 90.0000, 0, 0, 0, 0, 0, 0);
- TogglePlayerSpectating(playerid, 0);
- }
- else
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 5.0);
- }
- SpawnPlayer(playerid);
- }
- PlayerInfo[playerid][pACTime] = gettime() + 2;
- }
- SetPlayerToFacePlayer(playerid, targetid)
- {
- new
- Float:px,
- Float:py,
- Float:pz,
- Float:tx,
- Float:ty,
- Float:tz;
- GetPlayerPos(targetid, tx, ty, tz);
- GetPlayerPos(playerid, px, py, pz);
- SetPlayerFacingAngle(playerid, 180.0 - atan2(px - tx, py - ty));
- }
- SavePlayerVariables(playerid)
- {
- if(PlayerInfo[playerid][pLogged] && !PlayerInfo[playerid][pAdminDuty])
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING && !IsPlayerInRangeOfPoint(playerid, 2.0, 0.0, 0.0, 0.0) /*&& !PlayerInfo[playerid][pJoinedEvent] */&& !PlayerInfo[playerid][pPaintball] && !PlayerInfo[playerid][pAcceptedHelp] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID)
- {
- SavePlayerWeapons(playerid);
- GetPlayerCameraPos(playerid, PlayerInfo[playerid][pCameraX], PlayerInfo[playerid][pCameraY], PlayerInfo[playerid][pCameraZ]);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPosA]);
- GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- GetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
- PlayerInfo[playerid][pInterior] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pWorld] = GetPlayerVirtualWorld(playerid);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET camera_x = '%f', camera_y = '%f', camera_z = '%f', pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', interior = %i, world = %i, health = '%f', armor = '%f', minutes = %i, warnings = %i, injured = %i, hospital = %i, upgradepoints = %i, spawnhealth = '%f', spawnarmor = '%f', jailtype = %i, jailtime = %i WHERE uid = %i", PlayerInfo[playerid][pCameraX], PlayerInfo[playerid][pCameraY],
- PlayerInfo[playerid][pCameraZ], PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], PlayerInfo[playerid][pPosA], PlayerInfo[playerid][pInterior], PlayerInfo[playerid][pWorld], PlayerInfo[playerid][pHealth], PlayerInfo[playerid][pArmor], PlayerInfo[playerid][pMinutes], PlayerInfo[playerid][pWarnings], PlayerInfo[playerid][pInjured], PlayerInfo[playerid][pHospital], PlayerInfo[playerid][pUpgradePoints], PlayerInfo[playerid][pSpawnHealth],
- PlayerInfo[playerid][pSpawnArmor], PlayerInfo[playerid][pJailType], PlayerInfo[playerid][pJailTime], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET newbiemuted = %i, helpmuted = %i, admuted = %i, livemuted = %i, globalmuted = %i, reportmuted = %i, reportwarns = %i, fightstyle = %i, cookies = %i, toggletextdraws = %i, toggleooc = %i, togglephone = %i, toggleadmin = %i, togglehelper = %i, togglenewbie = %i, togglewt = %i, togglevip = %i WHERE uid = %i", PlayerInfo[playerid][pNewbieMuted], PlayerInfo[playerid][pHelpMuted], PlayerInfo[playerid][pAdMuted],
- PlayerInfo[playerid][pLiveMuted], PlayerInfo[playerid][pGlobalMuted], PlayerInfo[playerid][pReportMuted], PlayerInfo[playerid][pReportWarns], PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pToggleTextdraws], PlayerInfo[playerid][pToggleOOC], PlayerInfo[playerid][pTogglePhone], PlayerInfo[playerid][pToggleAdmin], PlayerInfo[playerid][pToggleHelper], PlayerInfo[playerid][pToggleNewbie], PlayerInfo[playerid][pToggleWT],
- PlayerInfo[playerid][pToggleVIP], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET toggleradio = %i, togglemusic = %i, togglefaction = %i, togglenews = %i, toggleglobal = %i, togglecam = %i, togglehud = %i, weedtime = %i, weedgrams = %i, showturfs = %i, showlands = %i, watchon = %i, gpson = %i, couriercooldown = %i, pizzacooldown = %i, detectivecooldown = %i, duty = %i, bandana = %i WHERE uid = %i", PlayerInfo[playerid][pToggleRadio], PlayerInfo[playerid][pToggleMusic],
- PlayerInfo[playerid][pToggleFaction], PlayerInfo[playerid][pToggleNews], PlayerInfo[playerid][pToggleGlobal], PlayerInfo[playerid][pToggleCam], PlayerInfo[playerid][pToggleHUD], PlayerInfo[playerid][pWeedTime], PlayerInfo[playerid][pWeedGrams], PlayerInfo[playerid][pShowTurfs], PlayerInfo[playerid][pShowLands], PlayerInfo[playerid][pWatchOn], PlayerInfo[playerid][pGPSOn], PlayerInfo[playerid][pCourierCooldown], PlayerInfo[playerid][pPizzaCooldown],
- PlayerInfo[playerid][pDetectiveCooldown], PlayerInfo[playerid][pDuty], PlayerInfo[playerid][pBandana], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- SavePlayerWeapons(playerid)
- {
- if(PlayerInfo[playerid][pLogged] && !PlayerInfo[playerid][pJoinedEvent] && !PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID)
- {
- // Saving weapons.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weapon_0 = %i, weapon_1 = %i, weapon_2 = %i, weapon_3 = %i, weapon_4 = %i, weapon_5 = %i, weapon_6 = %i, weapon_7 = %i, weapon_8 = %i, weapon_9 = %i, weapon_10 = %i, weapon_11 = %i, weapon_12 = %i WHERE uid = %i",
- PlayerInfo[playerid][pWeapons][0], PlayerInfo[playerid][pWeapons][1], PlayerInfo[playerid][pWeapons][2], PlayerInfo[playerid][pWeapons][3], PlayerInfo[playerid][pWeapons][4], PlayerInfo[playerid][pWeapons][5], PlayerInfo[playerid][pWeapons][6], PlayerInfo[playerid][pWeapons][7], PlayerInfo[playerid][pWeapons][8], PlayerInfo[playerid][pWeapons][9], PlayerInfo[playerid][pWeapons][10], PlayerInfo[playerid][pWeapons][11], PlayerInfo[playerid][pWeapons][12], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- // And finally the ammo.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET hpammo = %i, poisonammo = %i, fmjammo = %i, ammotype = %i, ammoweapon = %i WHERE uid = %i",
- PlayerInfo[playerid][pHPAmmo], PlayerInfo[playerid][pPoisonAmmo], PlayerInfo[playerid][pFMJAmmo], PlayerInfo[playerid][pAmmoType], PlayerInfo[playerid][pAmmoWeapon], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- SendPaycheck(playerid)
- {
- // Paycheck amounts are temporary until a job system is put in place.
- if(PlayerInfo[playerid][pPaycheck] <= 0)
- {
- PlayerInfo[playerid][pPaycheck] = min(PlayerInfo[playerid][pLevel], 21) * 1200;
- }
- new paycheck = PlayerInfo[playerid][pPaycheck];
- new interest, rate;
- new tax = (paycheck / 100) * gTax; // 10% tax
- new rent = 0, renting = -1; // temp
- new total = paycheck - tax;
- switch(PlayerInfo[playerid][pVIPPackage])
- {
- case 0: rate = 1;
- case 1: rate = 3;
- case 2: rate = 5;
- case 3: rate = 8;
- }
- interest = (PlayerInfo[playerid][pBank] / 1000) * rate;
- total += interest;
- if(PlayerInfo[playerid][pRentingHouse])
- {
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && HouseInfo[i][hID] == PlayerInfo[playerid][pRentingHouse] && HouseInfo[i][hRentPrice] > 0)
- {
- rent = HouseInfo[i][hRentPrice];
- renting = i;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "|____ Paycheck ____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "Paycheck: {33CC33}+$%i", paycheck);
- if(PlayerInfo[playerid][pFaction] >= 0 && FactionInfo[PlayerInfo[playerid][pFaction]][fPaycheck][PlayerInfo[playerid][pFactionRank]] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Faction Pay: {33CC33}+$%i", FactionInfo[PlayerInfo[playerid][pFaction]][fPaycheck][PlayerInfo[playerid][pFactionRank]]);
- total += FactionInfo[PlayerInfo[playerid][pFaction]][fPaycheck][PlayerInfo[playerid][pFactionRank]];
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "Interest: {33CC33}+$%i {C8C8C8}(rate: %.1f)", interest, floatdiv(float(rate), 10));
- SendClientMessageEx(playerid, COLOR_GREY2, "Income Tax: {FF6347}-$%i {C8C8C8}(%i percent)", tax, gTax);
- if(renting != -1)
- {
- if(total >= rent || PlayerInfo[playerid][pBank] >= rent)
- {
- if(total >= rent)
- {
- total -= rent;
- }
- else
- {
- PlayerInfo[playerid][pBank] -= rent;
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "Rent Paid: {FF6347}-$%i", rent);
- HouseInfo[renting][hCash] += rent;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET cash = %i WHERE id = %i", HouseInfo[renting][hCash], HouseInfo[renting][hID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- rent = -1;
- }
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "Old Balance: $%i", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_GREEN, "|-----------------------------|");
- SendClientMessageEx(playerid, COLOR_GREY2, "New Balance: $%i", PlayerInfo[playerid][pBank] + total);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have played %i/25 minutes this hour and earned your paycheck.", PlayerInfo[playerid][pMinutes]);
- GameTextForPlayer(playerid, "~g~Paycheck~n~~w~Added to bank account", 5000, 1);
- if(rent == -1)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET rentinghouse = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pRentingHouse] = 0;
- SendClientMessage(playerid, COLOR_RED, "You couldn't afford to pay rent and were evicted as a result.");
- }
- AddToTaxVault(tax);
- if((gDoubleXP) || PlayerInfo[playerid][pDoubleXP] > 0)
- PlayerInfo[playerid][pEXP] += 2;
- else
- PlayerInfo[playerid][pEXP]++;
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- GiveGangPoints(PlayerInfo[playerid][pGang], 1);
- }
- PlayerInfo[playerid][pHours]++;
- PlayerInfo[playerid][pBank] += total;
- PlayerInfo[playerid][pMinutes] = 0;
- PlayerInfo[playerid][pPaycheck] = 0;
- if(PlayerInfo[playerid][pWeaponRestricted] > 0)
- {
- PlayerInfo[playerid][pWeaponRestricted]--;
- }
- if((!gDoubleXP) && PlayerInfo[playerid][pDoubleXP] > 0)
- {
- PlayerInfo[playerid][pDoubleXP]--;
-
- if(PlayerInfo[playerid][pDoubleXP] > 0)
- SendClientMessageEx(playerid, COLOR_YELLOW, "Your double XP token expires in %i more hours.", PlayerInfo[playerid][pDoubleXP]);
- else
- SendClientMessage(playerid, COLOR_YELLOW, "Your double XP token has expired.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET minutes = 0, hours = hours + 1, exp = %i, bank = %i, paycheck = 0, weaponrestricted = %i, doublexp = %i WHERE uid = %i", PlayerInfo[playerid][pEXP], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pWeaponRestricted], PlayerInfo[playerid][pDoubleXP], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- gTotalHours++;
- SaveServerInfo();
- }
- HangupCall(playerid, reason)
- {
- new callerid = PlayerInfo[playerid][pCallLine];
- if(reason == HANGUP_DROPPED)
- {
- SendClientMessage(playerid, COLOR_WHITE, "** The call has been dropped...");
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s presses a button and hangs up their mobile phone.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, "** You hung up your phone and ended the call.");
- if(callerid != playerid)
- {
- SendClientMessage(callerid, COLOR_WHITE, "** They hung up their phone and ended the call.");
- }
- }
- if(callerid != playerid)
- {
- if(GetPlayerSpecialAction(callerid) == SPECIAL_ACTION_USECELLPHONE)
- {
- SetPlayerSpecialAction(callerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- }
- PlayerInfo[callerid][pCallStage] = 0;
- PlayerInfo[callerid][pCallLine] = INVALID_PLAYER_ID;
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USECELLPHONE)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- }
- PlayerInfo[playerid][pCallStage] = 0;
- PlayerInfo[playerid][pCallLine] = INVALID_PLAYER_ID;
- }
- AddToTaxVault(amount)
- {
- gVault += amount;
- SaveServerInfo();
- }
- SaveServerInfo()
- {
- new File:file = fopen("server_info.ini", io_write);
- if(file)
- {
- new
- string[255];
- format(string, sizeof(string), "%i|%i|%i|%s|%s|%i|%i|%i|%i|%i|%i", gTax, gVault, gPlayerRecord, gRecordDate, gServerMOTD, gConnections, gTotalRegistered, gTotalKills, gTotalDeaths, gTotalHours, gAnticheatBans);
- fwrite(file, string);
- fclose(file);
- }
- }
- LoadServerInfo()
- {
- new File:file = fopen("server_info.ini", io_read);
- if(file)
- {
- new string[255];
- fread(file, string);
- sscanf(string, "p<|>iiis[24]s[128]iiiiii", gTax, gVault, gPlayerRecord, gRecordDate, gServerMOTD, gConnections, gTotalRegistered, gTotalKills, gTotalDeaths, gTotalHours, gAnticheatBans);
- fclose(file);
- }
- if(gTax == 0)
- {
- gTax = 10;
- }
- }
- RefreshLoginScreen()
- {
- new
- string[80];
- mysql_tquery(connectionID, "SELECT * FROM changes ORDER BY slot", "OnQueryFinished", "ii", THREAD_LOGIN_UPDATE, 1);
- mysql_tquery(connectionID, "SELECT username, hours FROM users WHERE hours > 0 ORDER BY hours DESC LIMIT 10", "OnQueryFinished", "ii", THREAD_LOGIN_UPDATE, 2);
- if(gPlayerRecord)
- {
- format(string, sizeof(string), "The player record count is ~y~%i~w~, achieved on %s.", gPlayerRecord, gRecordDate);
- TextDrawSetString(LoginScreen[1], string);
- }
- else
- {
- TextDrawSetString(LoginScreen[1], "There is no record player count that has been recorded yet.");
- }
- }
- RefreshTime()
- {
- new hour, minute, string[12];
-
- gettime(hour, minute);
- format(string, sizeof(string), "%02d:%02d", hour, minute);
- TextDrawSetString(TimeTD, string);
- }
- GetBankRobbers()
- {
- new count;
- for(new i = 0; i < MAX_BANK_ROBBERS; i ++)
- {
- if(RobberyInfo[rRobbers][i] != INVALID_PLAYER_ID)
- {
- count++;
- }
- }
-
- return count;
- }
- AddToBankRobbery(playerid)
- {
- for(new i = 0; i < MAX_BANK_ROBBERS; i ++)
- {
- if(RobberyInfo[rRobbers][i] == INVALID_PLAYER_ID)
- {
- RobberyInfo[rRobbers][i] = playerid;
- PlayerInfo[playerid][pRobCash] = 0;
- break;
- }
- }
- }
- RemoveFromBankRobbery(playerid)
- {
- for(new i = 0; i < MAX_BANK_ROBBERS; i ++)
- {
- if(RobberyInfo[rRobbers][i] == playerid)
- {
- RobberyInfo[rRobbers][i] = INVALID_PLAYER_ID;
- }
- }
-
- if(!GetBankRobbers())
- {
- ResetRobbery();
- }
- else if(RobberyInfo[rPlanning] && RobberyInfo[rRobbers][0] == INVALID_PLAYER_ID)
- {
- for(new i = 1; i < MAX_BANK_ROBBERS; i ++)
- {
- if(RobberyInfo[rRobbers][i] != INVALID_PLAYER_ID)
- {
- RobberyInfo[rRobbers][0] = RobberyInfo[rRobbers][i];
- RobberyInfo[rRobbers][i] = INVALID_PLAYER_ID;
- SendClientMessageEx(RobberyInfo[rRobbers][0], COLOR_AQUA, "You are now the leader of this bank heist!");
- break;
- }
- }
- }
-
- PlayerInfo[playerid][pRobCash] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
-
- RemovePlayerAttachedObject(playerid, 8);
- RemovePlayerAttachedObject(playerid, 9);
- PlayerPlaySound(playerid, 3402, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- return 0;
- }
- IsPlayerInBankRobbery(playerid)
- {
- if(RobberyInfo[rPlanning] || RobberyInfo[rStarted])
- {
- for(new i = 0; i < MAX_BANK_ROBBERS; i ++)
- {
- if(RobberyInfo[rRobbers][i] == playerid)
- {
- return 1;
- }
- }
- }
-
- return 0;
- }
- ResetRobbery()
- {
- if(RobberyInfo[rStarted])
- {
- SendClientMessageToAllEx(COLOR_AQUA, "Breaking News: The bank robbery is now finished. $%i was stolen from the bank.", RobberyInfo[rStolen]);
- }
- if(IsValidDynamicObject(RobberyInfo[rObjects][0]))
- {
- DestroyDynamicObject(RobberyInfo[rObjects][0]);
- }
- if(IsValidDynamicObject(RobberyInfo[rObjects][1]))
- {
- DestroyDynamicObject(RobberyInfo[rObjects][1]);
- }
- for(new i = 0; i < 5; i ++)
- {
- DestroyDynamic3DTextLabel(RobberyInfo[rText][i]);
- RobberyInfo[rText][i] = Text3D:INVALID_3DTEXT_ID;
- }
- for(new i = 0; i < MAX_BANK_ROBBERS; i ++)
- {
- RobberyInfo[rRobbers][i] = INVALID_PLAYER_ID;
- }
- RobberyInfo[rTime] = 12;
- RobberyInfo[rPlanning] = 0;
- RobberyInfo[rStarted] = 0;
- RobberyInfo[rStolen] = 0;
- RobberyInfo[rObjects][0] = CreateDynamicObject(19799, 1678.248901, -988.194702, 671.695007, 0.000000, 0.000000, 0.000000);
- RobberyInfo[rObjects][1] = INVALID_OBJECT_ID;
- }
- ResetEvent()
- {
- if(EventInfo[eStarted])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- {
- PlayerInfo[i][pJoinedEvent] = 0;
- SetPlayerToSpawn(i);
- }
- }
- }
-
- for(new i = 0; i < 5; i ++)
- {
- EventInfo[eWeapons][i] = 0;
- }
- EventInfo[eReady] = 0;
- EventInfo[eStarted] = 0;
- EventInfo[eLocked] = 0;
- EventInfo[eType] = 0;
- EventInfo[eJoinText] = 0;
- EventInfo[eHealth] = 100.0;
- EventInfo[eArmor] = 0.0;
- EventInfo[eInterior] = 0;
- EventInfo[eWorld] = 0;
- EventInfo[eNext] = 0;
- EventInfo[eCS] = 0;
- EventInfo[eQS] = 0;
- EventInfo[eHeal] = 0;
- for(new i = 0; i < 2; i ++)
- {
- EventInfo[ePosX][i] = 0.0;
- EventInfo[ePosY][i] = 0.0;
- EventInfo[ePosZ][i] = 0.0;
- EventInfo[ePosA][i] = 0.0;
- EventInfo[eSkin][i] = 0;
- }
- }
- PreloadPlayerAnims(playerid)
- {
- static const animLibraries[][] =
- {
- !"AIRPORT", !"ATTRACTORS", !"BAR", !"BASEBALL",
- !"BD_FIRE", !"BEACH", !"BENCHPRESS", !"BF_INJECTION",
- !"BIKED", !"BIKEH", !"BIKELEAP", !"BIKES",
- !"BIKEV", !"BIKE_DBZ", !"BMX", !"BOMBER",
- !"BOX", !"BSKTBALL", !"BUDDY", !"BUS",
- !"CAMERA", !"CAR", !"CARRY", !"CAR_CHAT",
- !"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", !"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", !"RUSTLER",
- !"RYDER", !"SCRATCHING", !"SHAMAL", !"SHOP",
- !"SHOTGUN", !"SILENCED", !"SKATE", !"SMOKING",
- !"SNIPER", !"SPRAYCAN", !"STRIP", !"SUNBATHE",
- !"SWAT", !"SWEET", !"SWIM", !"SWORD",
- !"TANK", !"TATTOOS", !"TEC", !"TRAIN",
- !"TRUCK", !"UZI", !"VAN", !"VENDING",
- !"VORTEX", !"WAYFARER", !"WEAPONS", !"WUZI",
- !"WOP", !"GFUNK", !"RUNNINGMAN", !"BLOWJOBZ",
- !"SAMP"
- };
- for(new i = 0; i < sizeof(animLibraries); i ++)
- {
- ApplyAnimation(playerid, animLibraries[i], "null", 0.0, 0, 0, 0, 0, 0, 1);
- }
- }
- ApplyAnimationEx(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time)
- {
- ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, 1);
- if(loop > 0 || freeze > 0)
- {
- PlayerInfo[playerid][pLoopAnim] = 1;
- if(!PlayerInfo[playerid][pToggleTextdraws])
- {
- TextDrawShowForPlayer(playerid, AnimationTD);
- }
- }
- }
- PlayerUseAnims(playerid)
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT || GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pMiningTime] > 0 || PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pCuffed] > 0)
- {
- return 0;
- }
- return 1;
- }
- GetAvailableAttachedSlot(playerid)
- {
- for(new i = 0; i < 5; i ++)
- {
- if(!IsPlayerAttachedObjectSlotUsed(playerid, i))
- {
- return i;
- }
- }
- return -1;
- }
- CancelTaxiRide(playerid) // playerid is the driver of the taxi.
- {
- new
- passengerid = PlayerInfo[playerid][pTaxiPassenger],
- bill = PlayerInfo[playerid][pTaxiBill],
- string[20];
- SendClientMessageEx(passengerid, COLOR_AQUA, "This ride costed you {FF6347}$%i{33CCFF}.", bill);
- SendClientMessageEx(playerid, COLOR_AQUA, "You earned {00AA00}$%i{33CCFF} on your paycheck for this ride.", bill);
- format(string, sizeof(string), "~r~-$%i", bill);
- GameTextForPlayer(passengerid, string, 5000, 1);
- format(string, sizeof(string), "~g~+$%i", bill);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(passengerid, -bill);
- AddToPaycheck(playerid, bill);
- PlayerInfo[playerid][pTaxiPassenger] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pTaxiBill] = 0;
- PlayerInfo[playerid][pTaxiTime] = 0;
- }
- SetFreezePos(playerid, Float:x, Float:y, Float:z)
- {
- if(PlayerInfo[playerid][pFreezeTimer] >= 0)
- {
- KillTimer(PlayerInfo[playerid][pFreezeTimer]);
- }
- PlayerInfo[playerid][pFreezeTimer] = SetTimerEx("UnfreezePlayer", 3000, false, "ifff", playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z);
- TogglePlayerControllable(playerid, false);
- GameTextForPlayer(playerid, "~w~Loading objects...", 3000, 3);
- }
- IsPlayerChatActive(playerid)
- {
- foreach(new i : Player)
- {
- if(chattingWith[playerid]{i})
- {
- return 1;
- }
- }
-
- return 0;
- }
- PlayerHasJob(playerid, job)
- {
- return (PlayerInfo[playerid][pJob] == job || PlayerInfo[playerid][pSecondJob] == job);
- }
- SetScriptArmour(playerid, Float:amount)
- {
- PlayerInfo[playerid][pACTime] = gettime() + 5;
- PlayerInfo[playerid][pArmorTime] = gettime() + 5;
- PlayerInfo[playerid][pArmor] = amount;
- return SetPlayerArmour(playerid, amount);
- }
- GetWeaponClipSize(weaponid)
- {
- switch(weaponid)
- {
- case 22, 23:
- return 17;
- case 26:
- return 2;
- case 24, 27:
- return 7;
- case 28, 31, 32:
- return 50;
- case 29, 30:
- return 30;
- }
-
- return 0;
- }
- ResetPlayerWeaponsEx(playerid)
- {
- ResetPlayerWeapons(playerid);
- SetPlayerArmedWeapon(playerid, 0);
- for(new i = 0; i < 13; i ++)
- {
- PlayerInfo[playerid][pWeapons][i] = 0;
- PlayerInfo[playerid][pTempWeapons][i] = 0;
- }
- PlayerInfo[playerid][pACTime] = gettime() + 2;
- }
- RemovePlayerWeapon(playerid, weaponid)
- {
- // Reset the player's weapons.
- ResetPlayerWeapons(playerid);
- // Set the armed slot to zero.
- SetPlayerArmedWeapon(playerid, 0);
- // Set the weapon in the slot to zero.
- PlayerInfo[playerid][pACTime] = gettime() + 2;
- PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] = 0;
- PlayerInfo[playerid][pTempWeapons][weaponSlotIDs[weaponid]] = 0;
- // Set the player's weapons.
- SetPlayerWeapons(playerid);
- // Save them to prevent rollbacks.
- SavePlayerWeapons(playerid);
- }
- SetWeaponAmmo(playerid, type, amount)
- {
- if(type == AMMO_HP) {
- PlayerInfo[playerid][pHPAmmo] = amount;
- } else if(type == AMMO_POISON) {
- PlayerInfo[playerid][pPoisonAmmo] = amount;
- } else if(type == AMMO_FMJ) {
- PlayerInfo[playerid][pFMJAmmo] = amount;
- }
- SetPlayerWeapons(playerid);
- }
- GivePlayerWeaponEx(playerid, weaponid, bool:temp = false)
- {
- if(1 <= weaponid <= 46)
- {
- if(temp)
- {
- PlayerInfo[playerid][pTempWeapons][weaponSlotIDs[weaponid]] = weaponid;
- GivePlayerWeapon(playerid, weaponid, 19999);
- }
- else
- {
- PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] = weaponid;
- SetPlayerWeapons(playerid);
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SetPlayerArmedWeapon(playerid, 0);
- }
- else if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- switch(weaponid)
- {
- case 22, 23, 25, 28..34:
- {
- SetPlayerArmedWeapon(playerid, weaponid);
- }
- default:
- {
- SetPlayerArmedWeapon(playerid, 0);
- }
- }
- }
- else
- {
- SetPlayerArmedWeapon(playerid, weaponid);
- }
-
- SavePlayerWeapons(playerid);
- PlayerInfo[playerid][pACTime] = gettime() + 2;
- }
- }
- GetScriptWeapon(playerid)
- {
- new weaponid = GetPlayerWeapon(playerid);
- if(PlayerHasWeapon(playerid, weaponid))
- {
- return weaponid;
- }
- return 0;
- }
- PlayerHasWeapon(playerid, weaponid)
- {
- switch(weaponid)
- {
- case 0, 2, 40, 46:
- {
- return 1;
- }
- }
- if(weaponid == 23 && (PlayerInfo[playerid][pTazer] || (IsLawEnforcement(playerid) || GetFactionType(playerid) == FACTION_GOVERNMENT)))
- {
- return 1;
- }
- return PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] == weaponid || PlayerInfo[playerid][pTempWeapons][weaponSlotIDs[weaponid]] == weaponid;
- }
- SetPlayerWeapons(playerid)
- {
- if(!PlayerInfo[playerid][pJoinedEvent] && !PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID && !PlayerInfo[playerid][pJailType] && !PlayerInfo[playerid][pWeaponRestricted])
- {
- new weaponid = GetPlayerWeapon(playerid);
- ResetPlayerWeapons(playerid);
- for(new i = 0; i < 13; i ++)
- {
- /*if(PlayerInfo[playerid][pTempWeapons][i] > 0)
- {
- PlayerInfo[playerid][pTempWeapons][i] = 0;
- }*/
-
- if(PlayerInfo[playerid][pWeapons][i] > 0)
- {
- if(i == 2 && PlayerInfo[playerid][pTazer])
- {
- GivePlayerWeaponEx(playerid, 23, true);
- continue;
- }
- if(PlayerInfo[playerid][pAmmoType] != AMMOTYPE_NORMAL && PlayerInfo[playerid][pAmmoWeapon] == PlayerInfo[playerid][pWeapons][i])
- {
- if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_HP && PlayerInfo[playerid][pHPAmmo] > 0) {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapons][i], PlayerInfo[playerid][pHPAmmo]);
- } else if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_POISON && PlayerInfo[playerid][pPoisonAmmo] > 0) {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapons][i], PlayerInfo[playerid][pPoisonAmmo]);
- } else if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_FMJ && PlayerInfo[playerid][pFMJAmmo] > 0) {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapons][i], PlayerInfo[playerid][pFMJAmmo]);
- } else {
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapons][i], 19999);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Your %s is now using normal ammunition again as you ran out of special ammo.", GetWeaponNameEx(PlayerInfo[playerid][pWeapons][i]));
- PlayerInfo[playerid][pAmmoType] = AMMOTYPE_NORMAL;
- PlayerInfo[playerid][pAmmoWeapon] = 0;
- }
- }
- else
- {
- if(16 <= PlayerInfo[playerid][pWeapons][i] <= 18)
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapons][i], 1);
- else
- GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapons][i], 19999);
- }
- }
- }
- switch(GetPlayerState(playerid))
- {
- case PLAYER_STATE_DRIVER:
- {
- SetPlayerArmedWeapon(playerid, 0);
- }
- case PLAYER_STATE_PASSENGER:
- {
- switch(weaponid)
- {
- case 22, 23, 25, 28..34:
- {
- SetPlayerArmedWeapon(playerid, weaponid);
- }
- default:
- {
- SetPlayerArmedWeapon(playerid, 0);
- }
- }
- }
- default:
- {
- SetPlayerArmedWeapon(playerid, weaponid);
- }
- }
- }
- }
- SetPlayerClothing(playerid)
- {
- // Reset any clothing that the player has on them.
- for(new i = 0; i < MAX_PLAYER_CLOTHING; i ++)
- {
- if(ClothingInfo[playerid][i][cExists] && ClothingInfo[playerid][i][cAttached])
- {
- RemovePlayerAttachedObject(playerid, ClothingInfo[playerid][i][cAttachedIndex]);
- }
- }
- // Now, we reapply the clothing to the player.
- for(new i = 0; i < MAX_PLAYER_CLOTHING; i ++)
- {
- if(ClothingInfo[playerid][i][cExists] && ClothingInfo[playerid][i][cAttached])
- {
- if(ClothingInfo[playerid][i][cAttachedIndex] == -1)
- {
- ClothingInfo[playerid][i][cAttachedIndex] = GetAvailableAttachedSlot(playerid);
- }
- if(ClothingInfo[playerid][i][cAttachedIndex] >= 0)
- {
- SetPlayerAttachedObject(playerid, ClothingInfo[playerid][i][cAttachedIndex], ClothingInfo[playerid][i][cModel], ClothingInfo[playerid][i][cBone], ClothingInfo[playerid][i][cPosX], ClothingInfo[playerid][i][cPosY], ClothingInfo[playerid][i][cPosZ], ClothingInfo[playerid][i][cRotX], ClothingInfo[playerid][i][cRotY], ClothingInfo[playerid][i][cRotZ], ClothingInfo[playerid][i][cScaleX], ClothingInfo[playerid][i][cScaleY], ClothingInfo[playerid][i][cScaleZ]);
- }
- else
- {
- // Clothing wasn't attached... slots are probably all full.
- ClothingInfo[playerid][i][cAttached] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE clothing SET attached = 0 WHERE id = %i", ClothingInfo[playerid][i][cID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- PlayerInfo[playerid][pAwaitingClothing] = 0;
- }
- SetPlayerInPaintball(playerid)
- {
- new rand = random(sizeof(paintballSpawns));
- if(!PlayerInfo[playerid][pPaintball])
- {
- SavePlayerVariables(playerid);
- ResetPlayerWeapons(playerid);
- }
- SetPlayerPos(playerid, paintballSpawns[rand][0], paintballSpawns[rand][1], paintballSpawns[rand][2]);
- SetPlayerFacingAngle(playerid, paintballSpawns[rand][3]);
- SetPlayerInterior(playerid, 18);
- SetPlayerVirtualWorld(playerid, 1000);
- SetCameraBehindPlayer(playerid);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 100.0);
- GivePlayerWeaponEx(playerid, 24, true);
- GivePlayerWeaponEx(playerid, 27, true);
- GivePlayerWeaponEx(playerid, 29, true);
- GivePlayerWeaponEx(playerid, 31, true);
- GivePlayerWeaponEx(playerid, 34, true);
- PlayerInfo[playerid][pPaintball] = 1;
- }
- /*SetPlayerInEvent(playerid)
- {
- SavePlayerVariables(playerid);
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pJoinedEvent] = 1;
- if(EventInfo[eType] == 2)
- {
- PlayerInfo[playerid][pEventTeam] = EventInfo[eNext];
- if(EventInfo[eNext] == RED_TEAM) {
- EventInfo[eNext] = BLUE_TEAM;
- } else {
- EventInfo[eNext] = RED_TEAM;
- }
- if(PlayerInfo[playerid][pEventTeam] == RED_TEAM) {
- GameTextForPlayer(playerid, "~w~You are on~n~~r~Red Team", 3000, 4);
- } else if(PlayerInfo[playerid][pEventTeam] == BLUE_TEAM) {
- GameTextForPlayer(playerid, "~w~You are on~n~~b~Blue Team", 3000, 6);
- }
- }
- else
- {
- PlayerInfo[playerid][pEventTeam] = 0;
- }
- for(new x = 0; x < 5; x ++)
- {
- if(EventInfo[eWeapons][x])
- {
- GivePlayerWeaponEx(playerid, EventInfo[eWeapons][x], true);
- }
- }
- SetPlayerPos(playerid, EventInfo[ePosX][PlayerInfo[playerid][pEventTeam]], EventInfo[ePosY][PlayerInfo[playerid][pEventTeam]], EventInfo[ePosZ][PlayerInfo[playerid][pEventTeam]]);
- SetPlayerFacingAngle(playerid, EventInfo[ePosA][PlayerInfo[playerid][pEventTeam]]);
- SetPlayerInterior(playerid, EventInfo[eInterior]);
- SetPlayerVirtualWorld(playerid, EventInfo[eWorld]);
- SetPlayerHealth(playerid, EventInfo[eHealth]);
- SetPlayerArmour(playerid, EventInfo[eArmor]);
- SetCameraBehindPlayer(playerid);
- if(EventInfo[eSkin][PlayerInfo[playerid][pEventTeam]])
- {
- SetPlayerSkin(playerid, EventInfo[eSkin][PlayerInfo[playerid][pEventTeam]]);
- }
- if(!isnull(EventInfo[eJoinText]))
- {
- GameTextForPlayer(playerid, EventInfo[eJoinText], 6000, 3);
- }
- if(EventInfo[eType] == 1 || EventInfo[eType] == 2)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "** Event rules: Crackshooting is %s, Quickswapping is %s, Healing is %s.", (EventInfo[eCS]) ? ("{FFD700}Allowed{FFFFFF}") : ("{FF6347}Not allowed{FFFFFF}"), (EventInfo[eQS]) ? ("{FFD700}Allowed{FFFFFF}") : ("{FF6347}Not allowed{FFFFFF}"), (EventInfo[eHeal]) ? ("{FFD700}Allowed{FFFFFF}") : ("{FF6347}Not allowed{FFFFFF}"));
- }
- return 1;
- }*/
- SetPlayerInHospital(playerid, time = 15)
- {
- PlayerInfo[playerid][pHospitalTime] = time;
- PlayerInfo[playerid][pHospital] = 1;
- TogglePlayerControllable(playerid, 0);
- SetPlayerDrunkLevel(playerid, 50000);
- GameTextForPlayer(playerid, "~w~Recovering...", 1500, 3);
- SetPlayerPos(playerid, -10.4534, 149.3639, 999.0613);
- SetPlayerCameraPos(playerid, -833.5241, -1358.8575, 86.9054);
- SetPlayerCameraLookAt(playerid, -830.8118, -1360.3612, 87.0289);
- //SetPlayerCameraLookAt(playerid, -830.8118, -1360.3612, 87.0289);
- SetPlayerInterior(playerid, 0);
- }
- SetPlayerInJail(playerid)
- {
- if(PlayerInfo[playerid][pCallLine] != INVALID_PLAYER_ID)
- {
- HangupCall(PlayerInfo[playerid][pCallLine], HANGUP_DROPPED);
- }
- if(PlayerInfo[playerid][pJailType] == 1) // OOC jail
- {
- switch(random(4))
- {
- case 0:
- {
- SetPlayerPos(playerid, -1131.7946,855.8640,3.0703);
- }
- case 1:
- {
- SetPlayerPos(playerid, -1131.7946,855.8640,3.0703);
- }
- case 2:
- {
- SetPlayerPos(playerid, -1131.7946,855.8640,3.0703);
- }
- case 3:
- {
- SetPlayerPos(playerid, -1131.7946,855.8640,3.0703);
- }
- }
- SetPlayerFacingAngle(playerid, 35.4069);
- GameTextForPlayer(playerid, "~w~Welcome to~n~~r~admin jail", 5000, 3);
- SetPlayerVirtualWorld(playerid, 99999);
- SetCameraBehindPlayer(playerid);
- }
- else if(PlayerInfo[playerid][pJailType] == 2) // OOC prison
- {
- SetPlayerPos(playerid, -1131.7946,855.8640,3.0703);
- SetPlayerFacingAngle(playerid, 36.0000);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 99999);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~w~Welcome to~n~~r~admin jail", 5000, 3);
- }
- else if(PlayerInfo[playerid][pJailType] == 3) // IC prison
- {
- new index = random(sizeof(cellSpawns));
- SetFreezePos(playerid, cellSpawns[index][0], cellSpawns[index][1], cellSpawns[index][2]);
- SetPlayerFacingAngle(playerid, cellSpawns[index][3]);
- SetPlayerInterior(playerid, 2);
- SetPlayerVirtualWorld(playerid, 5);
- SetCameraBehindPlayer(playerid);
- }
- }
- AFKCheck(playerid)
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:cx,
- Float:cy,
- Float:cz;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerCameraPos(playerid, cx, cy, cz);
- if(PlayerInfo[playerid][pAFKPos][0] == x && PlayerInfo[playerid][pAFKPos][1] == y && PlayerInfo[playerid][pAFKPos][2] == z && PlayerInfo[playerid][pAFKPos][3] == cx && PlayerInfo[playerid][pAFKPos][4] == cy && PlayerInfo[playerid][pAFKPos][5] == cz)
- {
- PlayerInfo[playerid][pAFKTime]++;
- if(!PlayerInfo[playerid][pAFK] && PlayerInfo[playerid][pAFKTime] >= 60)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** You are now marked as {00AA00}Away from keyboard{F7A763} as you haven't moved in one minute.");
- PlayerInfo[playerid][pAFK] = 1;
- }
- }
- else
- {
- if(PlayerInfo[playerid][pAFK])
- {
- if(PlayerInfo[playerid][pAFKTime] < 120) {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** You are no longer marked as Away from Keyboard after %i seconds.", PlayerInfo[playerid][pAFKTime]);
- } else {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** You are no longer marked as Away from Keyboard after %i minutes.", PlayerInfo[playerid][pAFKTime] / 60);
- }
- PlayerInfo[playerid][pAFK] = 0;
- }
- PlayerInfo[playerid][pAFKTime] = 0;
- }
- PlayerInfo[playerid][pAFKPos][0] = x;
- PlayerInfo[playerid][pAFKPos][1] = y;
- PlayerInfo[playerid][pAFKPos][2] = z;
- PlayerInfo[playerid][pAFKPos][3] = cx;
- PlayerInfo[playerid][pAFKPos][4] = cy;
- PlayerInfo[playerid][pAFKPos][5] = cz;
- }
- TeleportToVehicle(playerid, vehicleid)
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:a,
- interior,
- garageid;
- GetVehiclePos(vehicleid, x, y, z);
- GetVehicleZAngle(vehicleid, a);
- if((garageid = GetVehicleGarage(vehicleid)) >= 0)
- {
- interior = garageInteriors[GarageInfo[garageid][gType]][intID];
- }
- TeleportToCoords(playerid, x + 1, y + 1, z + 1, a, interior, GetVehicleVirtualWorld(vehicleid));
- }
- TeleportToPlayer(playerid, targetid, bool:vehicle = true)
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:a;
- GetPlayerPos(targetid, x, y, z);
- GetPlayerFacingAngle(targetid, a);
- TeleportToCoords(playerid, x + 1, y + 1, z, a, GetPlayerInterior(targetid), GetPlayerVirtualWorld(targetid), .vehicle = vehicle);
- }
- TeleportToCoords(playerid, Float:x, Float:y, Float:z, Float:angle, interiorid, worldid, bool:freeze = false, bool:vehicle = true)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if((vehicle) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, vehicleid))
- {
- SetPlayerInterior(i, interiorid);
- SetPlayerVirtualWorld(i, worldid);
- }
- }
- SetVehiclePos(vehicleid, x, y, z);
- SetVehicleZAngle(vehicleid, angle);
- SetVehicleVirtualWorld(vehicleid, worldid);
- LinkVehicleToInterior(vehicleid, interiorid);
- }
- else
- {
- SetPlayerPos(playerid, x, y, z);
- SetPlayerFacingAngle(playerid, angle);
- SetPlayerInterior(playerid, interiorid);
- SetPlayerVirtualWorld(playerid, worldid);
- SetCameraBehindPlayer(playerid);
- }
- if((freeze) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SetTimerEx("VehicleUnfreeze", 3000, false, "iifffii", playerid, GetPlayerVehicleID(playerid), x, y, z, interiorid, worldid);
- GameTextForPlayer(playerid, "~w~Loading objects...", 3000, 3);
- TogglePlayerControllable(playerid, 0);
- }
- }
- ShowLandsOnMap(playerid, enable)
- {
- for(new i = 0; i < MAX_LANDS; i ++)
- {
- if(LandInfo[i][lExists])
- {
- if(enable) {
- GangZoneShowForPlayer(playerid, LandInfo[i][lGangZone], (LandInfo[i][lOwnerID] > 0) ? (0xFF6347AA) : (0x33CC33AA));
- } else {
- GangZoneHideForPlayer(playerid, LandInfo[i][lGangZone]);
- }
- }
- }
- PlayerInfo[playerid][pShowLands] = enable;
- }
- ShowTurfsOnMap(playerid, enable)
- {
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists])
- {
- if(enable)
- {
- GangZoneShowForPlayer(playerid, TurfInfo[i][tGangZone], GetTurfColor(i));
- if(TurfInfo[i][tCapturer] == INVALID_PLAYER_ID)
- {
- GangZoneStopFlashForPlayer(playerid, TurfInfo[i][tGangZone]);
- }
- else
- {
- if(PlayerInfo[TurfInfo[i][tCapturer]][pGang] == -1 && GetFactionType(TurfInfo[i][tCapturer]) == FACTION_POLICE)
- GangZoneFlashForPlayer(playerid, TurfInfo[i][tGangZone], 0x000000AA);
- else if(PlayerInfo[TurfInfo[i][tCapturer]][pGang] >= 0)
- GangZoneFlashForPlayer(playerid, TurfInfo[i][tGangZone], (GangInfo[PlayerInfo[TurfInfo[i][tCapturer]][pGang]][gColor] & ~0xff) + 0xAA);
- }
- }
- else
- {
- GangZoneHideForPlayer(playerid, TurfInfo[i][tGangZone]);
- }
- }
- }
- PlayerInfo[playerid][pShowTurfs] = enable;
- }
- CancelZoneCreation(playerid)
- {
- for(new i = 0; i < 4; i ++)
- {
- DestroyDynamicPickup(PlayerInfo[playerid][pZonePickups][i]);
- PlayerInfo[playerid][pZonePickups][i] = -1;
- }
- GangZoneDestroy(PlayerInfo[playerid][pZoneID]);
- PlayerInfo[playerid][pZoneID] = -1;
- PlayerInfo[playerid][pZoneCreation] = 0;
- PlayerInfo[playerid][pMinX] = 0.0;
- PlayerInfo[playerid][pMinY] = 0.0;
- PlayerInfo[playerid][pMaxX] = 0.0;
- PlayerInfo[playerid][pMaxY] = 0.0;
- }
- ResetCooking(playerid)
- {
- PlayerInfo[playerid][pCookMeth] = 0;
- PlayerInfo[playerid][pCookGrams] = 0;
- PlayerInfo[playerid][pCookTime] = 0;
- }
- ResetPlayer(playerid)
- {
- if(PlayerInfo[playerid][pJoinedEvent])
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pJoinedEvent] = 0;
- }
- if(PlayerInfo[playerid][pPaintball])
- {
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pPaintball] = 0;
- }
- if(PlayerInfo[playerid][pHospital])
- {
- GameTextForPlayer(playerid, " ", 100, 3);
- PlayerInfo[playerid][pHospital] = 0;
- PlayerInfo[playerid][pHospitalTime] = 0;
- }
- if(PlayerInfo[playerid][pMiningTime] > 0)
- {
- ClearAnimations(playerid, 1);
- }
- if(PlayerInfo[playerid][pTazedTime] > 0)
- {
- ClearAnimations(playerid, 1);
- TogglePlayerControllable(playerid, 1);
- }
- if(PlayerInfo[playerid][pCuffed])
- {
- TogglePlayerControllable(playerid, 1);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- if(PlayerInfo[playerid][pLiveBroadcast] != INVALID_PLAYER_ID)
- {
- PlayerInfo[PlayerInfo[playerid][pLiveBroadcast]][pLiveBroadcast] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pLiveBroadcast] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[playerid][pPlantedBomb])
- {
- DestroyDynamicObject(PlayerInfo[playerid][pBombObject]);
- PlayerInfo[playerid][pBombObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pPlantedBomb] = 0;
- }
- if(PlayerInfo[playerid][pFreezeTimer] >= 0)
- {
- KillTimer(PlayerInfo[playerid][pFreezeTimer]);
- TogglePlayerControllable(playerid, 1);
- PlayerInfo[playerid][pFreezeTimer] = -1;
- }
- if(PlayerInfo[playerid][pDueling] != INVALID_PLAYER_ID)
- {
- PlayerInfo[PlayerInfo[playerid][pDueling]][pDueling] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pDueling] = INVALID_PLAYER_ID;
- }
- if(RobberyInfo[rPlanning] || RobberyInfo[rStarted])
- {
- RemoveFromBankRobbery(playerid);
- }
- PlayerInfo[playerid][pInjured] = 0;
- PlayerInfo[playerid][pAcceptedHelp] = 0;
- PlayerInfo[playerid][pMiningTime] = 0;
- PlayerInfo[playerid][pMiningRock] = 0;
- PlayerInfo[playerid][pSweeping] = 0;
- PlayerInfo[playerid][pSweepTime] = 0;
- PlayerInfo[playerid][pSweepEarnings] = 0;
- PlayerInfo[playerid][pTazer] = 0;
- PlayerInfo[playerid][pTazedTime] = 0;
- PlayerInfo[playerid][pCuffed] = 0;
- PlayerInfo[playerid][pDraggedBy] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pDelivered] = 0;
- PlayerInfo[playerid][pContractTaken] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pPoisonTime] = 0;
- PlayerInfo[playerid][pCapturingPoint] = -1;
- PlayerInfo[playerid][pCaptureTime] = 0;
- CancelActiveCheckpoint(playerid);
- RemovePlayerAttachedObject(playerid, 9);
- }
- CancelActiveCheckpoint(playerid)
- {
- if(PlayerInfo[playerid][pDrivingTest])
- {
- SetVehicleToRespawn(PlayerInfo[playerid][pTestVehicle]);
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- RemovePlayerAttachedObject(playerid, 9);
- }
- DisablePlayerCheckpoint(playerid);
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- PlayerInfo[playerid][pPizzas] = 0;
- PlayerInfo[playerid][pSmuggleMats] = 0;
- PlayerInfo[playerid][pSmuggleDrugs] = 0;
- PlayerInfo[playerid][pDrivingTest] = 0;
- PlayerInfo[playerid][pTestVehicle] = INVALID_VEHICLE_ID;
- PlayerInfo[playerid][pTestCP] = 0;
- PlayerInfo[playerid][pMiningRock] = 0;
- PlayerInfo[playerid][pShipment] = -1;
- }
- ReferralCheck(playerid)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, ip FROM users WHERE uid = %i", PlayerInfo[playerid][pReferralUID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_REWARD_REFERRER, playerid);
- }
- SetPlayerSpecialTag(playerid, type)
- {
- new
- string[128];
- if(IsValidDynamic3DTextLabel(PlayerInfo[playerid][pSpecialTag]))
- {
- DestroyDynamic3DTextLabel(PlayerInfo[playerid][pSpecialTag]);
- PlayerInfo[playerid][pSpecialTag] = Text3D:INVALID_3DTEXT_ID;
- }
- foreach(new i : Player)
- {
- if(type == TAG_NONE)
- ShowPlayerNameTagForPlayer(i, playerid, 1);
- else
- ShowPlayerNameTagForPlayer(i, playerid, 0);
- }
-
- switch(type)
- {
- case TAG_ADMIN:
- {
- if(!strcmp(PlayerInfo[playerid][pAdminName], "None", true))
- format(string, sizeof(string), "%s\n{089DCE}FC:RP Administrator\n{FF6347}%s", GetPlayerNameEx(playerid), GetAdminRank(playerid));
- else
- format(string, sizeof(string), "%s\n{089DCE}FC:RP Administrator\n{FF6347}%s", PlayerInfo[playerid][pAdminName], GetAdminRank(playerid));
- PlayerInfo[playerid][pSpecialTag] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0.0, 0.0, 0.2, 20.0, .attachedplayer = playerid, .testlos = 1);
- }
- case TAG_HELPER:
- {
- format(string, sizeof(string), "%s\n{089DCE}Helper Assisting\n{00FF00}%s", GetPlayerRPName(playerid), GetHelperRank(playerid));
- PlayerInfo[playerid][pSpecialTag] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0.0, 0.0, 0.2, 20.0, .attachedplayer = playerid, .testlos = 1);
- }
- case TAG_VIP:
- {
- format(string, sizeof(string), "%s\n{A028AD}Very Important Player\n{33CC33}%s VIP", GetPlayerRPName(playerid), GetVIPRank(PlayerInfo[playerid][pVIPPackage]));
- PlayerInfo[playerid][pSpecialTag] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0.0, 0.0, 0.2, 20.0, .attachedplayer = playerid, .testlos = 1);
- }
- }
- PlayerInfo[playerid][pTagType] = type;
- }
- SendNewbieChatMessage(playerid, text[])
- {
- new string[64];
-
- if(PlayerInfo[playerid][pAdmin] > 1) {
- format(string, sizeof(string), "%s %s", GetAdminRank(playerid), GetPlayerRPName(playerid));
- } else if(PlayerInfo[playerid][pHelper] > 0) {
- format(string, sizeof(string), "%s %s", GetHelperRank(playerid), GetPlayerRPName(playerid));
- } else if(PlayerInfo[playerid][pVIPPackage] > 0) {
- format(string, sizeof(string), "{A028AD}%s VIP{7DAEFF} %s", GetVIPRank(PlayerInfo[playerid][pVIPPackage]), GetPlayerRPName(playerid));
- } else if(PlayerInfo[playerid][pLevel] > 1) {
- format(string, sizeof(string), "Player %s", GetPlayerRPName(playerid));
- } else {
- format(string, sizeof(string), "Newbie %s", GetPlayerRPName(playerid));
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleNewbie])
- {
- if(strlen(text) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_NEWBIE, "** %s: %.*s...", string, MAX_SPLIT_LENGTH, text);
- SendClientMessageEx(i, COLOR_NEWBIE, "** %s: ...%s", string, text[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_NEWBIE, "** %s: %s", string, text);
- }
- }
- }
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] == 0)
- {
- PlayerInfo[playerid][pLastNewbie] = gettime();
- }
- }
- #if defined SERVER_INTRO
- ShowServerIntro(playerid)
- {
- if(!PlayerInfo[playerid][pWatchingIntro])
- {
- TogglePlayerSpectating(playerid, 1);
- TogglePlayerControllable(playerid, 0);
- PlayAudioStreamForPlayer(playerid, "http://www.coming-soon.com/music/gtav.mp3");
- SetPlayerVirtualWorld(playerid, playerid);
- SetPlayerPos(playerid, 155.3337, -1776.4384, 14.8978+5.0);
- SetPlayerCameraPos(playerid, 155.3337, -1776.4384, 14.8978);
- SetPlayerCameraLookAt(playerid, 156.2734, -1776.0850, 14.2128);
- InterpolateCameraLookAt(playerid, 156.2734, -1776.0850, 14.2128, 156.2713, -1776.0797, 14.7078, 5000, CAMERA_MOVE);
- TextDrawShowForPlayer(playerid, introTextdraws[0]);
- TextDrawShowForPlayer(playerid, introTextdraws[1]);
- TextDrawShowForPlayer(playerid, introTextdraws[2]);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 0);
- SetTimerEx("ShowLoginScreenTextdraw", 2400, false, "ii", playerid, 1);
- PlayerInfo[playerid][pWatchingIntro] = 1;
- }
- }
- #endif
- SellWeapon(playerid, targetid, weaponid, price = 0)
- {
- new cost;
- switch(weaponid)
- {
- case 2, 5..8, 10, 14, 15: cost = 50;
- case 22: cost = 100;
- case 23: cost = 150;
- case 24: cost = 2000;
- case 25: cost = 200;
- case 28, 32: cost = 500;
- case 30: cost = 3500;
- case 31: cost = 4500;
- case 33: cost = 1000;
- }
- if(PlayerInfo[playerid][pMaterials] >= cost)
- {
- PlayerInfo[playerid][pMaterials] -= cost;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(targetid == playerid)
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have crafted yourself a {FF6347}%s{33CCFF}.", GetWeaponNameEx(weaponid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s puts together some materials and crafts themselves a %s.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s puts together some materials and crafts a %s for %s.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid), GetPlayerRPName(targetid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have sold %s a {FF6347}%s{33CCFF} for {00AA00}$%i{33CCFF}.", GetPlayerRPName(targetid), GetWeaponNameEx(weaponid), price);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has sold you a {FF6347}%s{33CCFF} for {00AA00}$%i{33CCFF}.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid), price);
- GivePlayerCash(playerid, price);
- GivePlayerCash(targetid, -price);
- }
- if(weaponid >= 22)
- {
- IncreaseJobSkill(playerid, JOB_WEAPONDEALER);
- }
- GivePlayerWeaponEx(targetid, weaponid);
- return 1;
- }
- else
- {
- SendClientMessage(targetid, COLOR_GREY, "That player has ran out of materials.");
- }
- return 0;
- }
- Namechange(playerid, oldname[], newname[])
- {
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && !strcmp(HouseInfo[i][hOwner], oldname, false))
- {
- strcpy(HouseInfo[i][hOwner], newname, MAX_PLAYER_NAME);
- ReloadHouse(i);
- }
- }
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && !strcmp(GarageInfo[i][gOwner], oldname, false))
- {
- strcpy(GarageInfo[i][gOwner], newname, MAX_PLAYER_NAME);
- ReloadGarage(i);
- }
- }
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && !strcmp(BusinessInfo[i][bOwner], oldname, false))
- {
- strcpy(BusinessInfo[i][bOwner], newname, MAX_PLAYER_NAME);
- ReloadBusiness(i);
- }
- }
- for(new i = 0; i < MAX_LANDS; i ++)
- {
- if(LandInfo[i][lExists] && !strcmp(LandInfo[i][lOwner], oldname, false))
- {
- strcpy(LandInfo[i][lOwner], newname, MAX_PLAYER_NAME);
- ReloadLand(i);
- }
- }
- for(new i = 0; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] && !strcmp(VehicleInfo[i][vOwner], oldname, false))
- {
- strcpy(VehicleInfo[i][vOwner], newname, MAX_PLAYER_NAME);
- }
- }
- // Updating queries.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET owner = '%s' WHERE owner = '%s'", newname, oldname);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET owner = '%s' WHERE owner = '%s'", newname, oldname);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET owner = '%s' WHERE owner = '%s'", newname, oldname);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET owner = '%s' WHERE owner = '%s'", newname, oldname);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE lands SET owner = '%s' WHERE owner = '%s'", newname, oldname);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET username = '%s' WHERE uid = %i", newname, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- strcpy(PlayerInfo[playerid][pUsername], newname, MAX_PLAYER_NAME);
- SetPlayerName(playerid, newname);
- SavePlayerVariables(playerid);
- }
- IsABoat(vehicleid)
- {
- switch(GetVehicleModel(vehicleid))
- {
- case 430, 446, 452..454, 472, 473, 484, 493, 595: return 1;
- }
- return 0;
- }
- IsLawEnforcement(playerid)
- {
- return GetFactionType(playerid) == FACTION_POLICE || GetFactionType(playerid) == FACTION_FEDERAL;
- }
- IsPlayerBeingFound(playerid)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFindPlayer] == playerid && PlayerInfo[i][pFindTime] > 0)
- {
- return 1;
- }
- }
- return 0;
- }
- IsGateModel(modelid)
- {
- switch(modelid)
- {
- case 8957, 7891, 3037, 19861, 19864, 19912, 971, 975, 980, 985, 19870, 988:
- {
- return 1;
- }
- }
- return 0;
- }
- IsGateObject(objectid)
- {
- new
- modelid = Streamer_GetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_MODEL_ID);
- if((modelid) && IsGateModel(modelid))
- {
- return 1;
- }
- return 0;
- }
- IsDoorObject(objectid)
- {
- new
- modelid = Streamer_GetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_MODEL_ID);
- if((modelid) && !IsGateObject(objectid))
- {
- for(new i = 0; i < sizeof(furnitureArray); i ++)
- {
- if(!strcmp(furnitureArray[i][fCategory], "Doors & gates") && furnitureArray[i][fModel] == modelid)
- {
- return 1;
- }
- }
- }
- return 0;
- }
- RemoveFaction(factionid)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == factionid)
- {
- //ResetPlayerWeaponsEx(i);
- SendClientMessageEx(i, COLOR_LIGHTRED, "The faction you were apart of has been deleted by an administrator.");
- //SetPlayerSkin(i, 230);
- PlayerInfo[i][pFaction] = -1;
- PlayerInfo[i][pFactionRank] = 0;
- PlayerInfo[i][pDivision] = -1;
- PlayerInfo[i][pDuty] = 0;
- }
- }
- DestroyDynamic3DTextLabel(FactionInfo[factionid][fText]);
- DestroyDynamicPickup(FactionInfo[factionid][fPickup]);
- FactionInfo[factionid][fName] = 0;
- FactionInfo[factionid][fLeader] = 0;
- FactionInfo[factionid][fType] = FACTION_NONE;
- FactionInfo[factionid][fColor] = 0;
- FactionInfo[factionid][fRankCount] = 0;
- FactionInfo[factionid][fLockerX] = 0.0;
- FactionInfo[factionid][fLockerY] = 0.0;
- FactionInfo[factionid][fLockerZ] = 0.0;
- FactionInfo[factionid][fLockerInterior] = 0;
- FactionInfo[factionid][fLockerWorld] = 0;
- FactionInfo[factionid][fTurfTokens] = 0;
- FactionInfo[factionid][fText] = Text3D:INVALID_3DTEXT_ID;
- FactionInfo[factionid][fPickup] = -1;
- for(new i = 0; i < MAX_FACTION_RANKS; i ++)
- {
- strcpy(FactionRanks[factionid][i], "Unspecified", 32);
- FactionInfo[factionid][fPaycheck][i] = 0;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM factions WHERE id = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM factionranks WHERE id = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM factionskins WHERE id = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM factionpay WHERE id = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM divisions WHERE id = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE faction = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- }
- GetFactionSkinCount(factionid)
- {
- new count;
- for(new i = 0; i < MAX_FACTION_SKINS; i ++)
- {
- if(FactionInfo[factionid][fSkins][i] != 0)
- {
- count++;
- }
- }
- return count;
- }
- GetFactionType(playerid)
- {
- if(PlayerInfo[playerid][pFaction] >= 0)
- {
- return FactionInfo[PlayerInfo[playerid][pFaction]][fType];
- }
- return FACTION_NONE;
- }
- ReloadFaction(factionid)
- {
- if(FactionInfo[factionid][fType] != FACTION_NONE)
- {
- new string[128];
- DestroyDynamic3DTextLabel(FactionInfo[factionid][fText]);
- DestroyDynamicPickup(FactionInfo[factionid][fPickup]);
- if(FactionInfo[factionid][fLockerX] != 0.0 && FactionInfo[factionid][fLockerY] != 0.0 && FactionInfo[factionid][fLockerZ] != 0.0)
- {
- format(string, sizeof(string), "%s\nLocker access\n/locker to access locker.", FactionInfo[factionid][fName]);
- FactionInfo[factionid][fText] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, FactionInfo[factionid][fLockerX], FactionInfo[factionid][fLockerY], FactionInfo[factionid][fLockerZ], 10.0, .worldid = FactionInfo[factionid][fLockerWorld], .interiorid = FactionInfo[factionid][fLockerInterior]);
- FactionInfo[factionid][fPickup] = CreateDynamicPickup(1239, 1, FactionInfo[factionid][fLockerX], FactionInfo[factionid][fLockerY], FactionInfo[factionid][fLockerZ], .worldid = FactionInfo[factionid][fLockerWorld], .interiorid = FactionInfo[factionid][fLockerInterior]);
- }
- }
- }
- SetupFaction(factionid, name[], type)
- {
- strcpy(FactionInfo[factionid][fName], name, 48);
- strcpy(FactionInfo[factionid][fLeader], "No-one", MAX_PLAYER_NAME);
- FactionInfo[factionid][fType] = type;
- FactionInfo[factionid][fColor] = 0xFFFFFF00;
- FactionInfo[factionid][fRankCount] = 6;
- FactionInfo[factionid][fLockerX] = 0.0;
- FactionInfo[factionid][fLockerY] = 0.0;
- FactionInfo[factionid][fLockerZ] = 0.0;
- FactionInfo[factionid][fLockerInterior] = 0;
- FactionInfo[factionid][fLockerWorld] = 0;
- FactionInfo[factionid][fTurfTokens] = 0;
- FactionInfo[factionid][fText] = Text3D:INVALID_3DTEXT_ID;
- FactionInfo[factionid][fPickup] = -1;
- for(new i = 0; i < MAX_FACTION_RANKS; i ++)
- {
- strcpy(FactionRanks[factionid][i], "Unspecified", 32);
- FactionInfo[factionid][fPaycheck][i] = 0;
- }
- for(new i = 0; i < MAX_FACTION_SKINS; i ++)
- {
- FactionInfo[factionid][fSkins][i] = 0;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO factions (id, name, type) VALUES(%i, '%e', %i)", factionid, name, type);
- mysql_tquery(connectionID, queryBuffer);
- }
- SetupGang(gangid, name[])
- {
- strcpy(GangInfo[gangid][gName], name, 32);
- strcpy(GangInfo[gangid][gMOTD], "None", 128);
- strcpy(GangInfo[gangid][gLeader], "No-one", MAX_PLAYER_NAME);
- GangInfo[gangid][gSetup] = 1;
- GangInfo[gangid][gColor] = 0xFFFFFF00;
- GangInfo[gangid][gStrikes] = 0;
- GangInfo[gangid][gLevel] = 1;
- GangInfo[gangid][gPoints] = 0;
- GangInfo[gangid][gTurfTokens] = 0;
- GangInfo[gangid][gStashX] = 0.0;
- GangInfo[gangid][gStashY] = 0.0;
- GangInfo[gangid][gStashZ] = 0.0;
- GangInfo[gangid][gStashInterior] = 0;
- GangInfo[gangid][gStashWorld] = 0;
- GangInfo[gangid][gCash] = 0;
- GangInfo[gangid][gMaterials] = 0;
- GangInfo[gangid][gWeed] = 0;
- GangInfo[gangid][gCocaine] = 0;
- GangInfo[gangid][gMeth] = 0;
- GangInfo[gangid][gPainkillers] = 0;
- GangInfo[gangid][gHPAmmo] = 0;
- GangInfo[gangid][gPoisonAmmo] = 0;
- GangInfo[gangid][gFMJAmmo] = 0;
- GangInfo[gangid][gArmsDealer] = 0;
- GangInfo[gangid][gDrugDealer] = 0;
- GangInfo[gangid][gArmsX] = 0.0;
- GangInfo[gangid][gArmsY] = 0.0;
- GangInfo[gangid][gArmsZ] = 0.0;
- GangInfo[gangid][gDrugX] = 0.0;
- GangInfo[gangid][gDrugY] = 0.0;
- GangInfo[gangid][gDrugZ] = 0.0;
- GangInfo[gangid][gArmsWorld] = 0;
- GangInfo[gangid][gDrugWorld] = 0;
- GangInfo[gangid][gDrugWeed] = 0;
- GangInfo[gangid][gDrugCocaine] = 0;
- GangInfo[gangid][gDrugMeth] = 0;
- GangInfo[gangid][gArmsMaterials] = 0;
- GangInfo[gangid][gArmsHPAmmo] = 0;
- GangInfo[gangid][gArmsPoisonAmmo] = 0;
- GangInfo[gangid][gArmsFMJAmmo] = 0;
- GangInfo[gangid][gPickup] = -1;
- GangInfo[gangid][gActors][0] = INVALID_ACTOR_ID;
- GangInfo[gangid][gActors][1] = INVALID_ACTOR_ID;
- GangInfo[gangid][gText][0] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gText][1] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gText][2] = Text3D:INVALID_3DTEXT_ID;
- for(new i = 0; i < 7; i ++)
- {
- strcpy(GangRanks[gangid][i], "Unspecified", 32);
- }
- for(new i = 0; i < 12; i ++)
- {
- if(i < 3)
- {
- GangInfo[gangid][gDrugPrices][i] = 0;
- }
- GangInfo[gangid][gArmsPrices][i] = 0;
- }
- for(new i = 0; i < MAX_GANG_SKINS; i ++)
- {
- GangInfo[gangid][gSkins][i] = 0;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO gangs (id, name) VALUES(%i, '%e')", gangid, name);
- mysql_tquery(connectionID, queryBuffer);
- }
- AddPointMoney(type, amount)
- {
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists] && PointInfo[i][pType] == type)
- {
- if(PointInfo[i][pCapturedGang] >= 0)
- {
- amount /= 2;
- GangInfo[PointInfo[i][pCapturedGang]][gCash] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cash = %i WHERE id = %i", GangInfo[PointInfo[i][pCapturedGang]][gCash], PointInfo[i][pCapturedGang]);
- mysql_tquery(connectionID, queryBuffer);
- }
- PointInfo[i][pProfits] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET profits = %i WHERE id = %i", PointInfo[i][pProfits], i);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- ReloadPoint(pointid)
- {
- if(PointInfo[pointid][pExists])
- {
- new string[128], name[32] = "None";
- DestroyDynamic3DTextLabel(PointInfo[pointid][pText]);
- DestroyDynamicPickup(PointInfo[pointid][pPickup]);
- if(PointInfo[pointid][pCapturedGang] >= 0)
- {
- strcpy(name, GangInfo[PointInfo[pointid][pCapturedGang]][gName]);
- }
- if(PointInfo[pointid][pTime] > 0)
- format(string, sizeof(string), "%s\nOwned by: %s\nAvailable in %i hours.", PointInfo[pointid][pName], name, PointInfo[pointid][pTime]);
- else
- format(string, sizeof(string), "%s\nOwned by: %s\nAvailable to capture!", PointInfo[pointid][pName], name);
- PointInfo[pointid][pText] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, PointInfo[pointid][pPointX], PointInfo[pointid][pPointY], PointInfo[pointid][pPointZ], 10.0, .worldid = PointInfo[pointid][pPointWorld], .interiorid = PointInfo[pointid][pPointInterior]);
- PointInfo[pointid][pPickup] = CreateDynamicPickup(1239, 1, PointInfo[pointid][pPointX], PointInfo[pointid][pPointY], PointInfo[pointid][pPointZ], .worldid = PointInfo[pointid][pPointWorld], .interiorid = PointInfo[pointid][pPointInterior]);
- }
- }
- ReloadGang(gangid)
- {
- if(GangInfo[gangid][gSetup])
- {
- new string[128];
- DestroyDynamic3DTextLabel(GangInfo[gangid][gText][0]);
- DestroyDynamic3DTextLabel(GangInfo[gangid][gText][1]);
- DestroyDynamic3DTextLabel(GangInfo[gangid][gText][2]);
- DestroyDynamicPickup(GangInfo[gangid][gPickup]);
- DestroyActor(GangInfo[gangid][gActors][0]);
- DestroyActor(GangInfo[gangid][gActors][1]);
- if(GangInfo[gangid][gStashX] != 0.0 && GangInfo[gangid][gStashY] != 0.0 && GangInfo[gangid][gStashZ] != 0.0)
- {
- format(string, sizeof(string), "Level %i Gang Stash\n%s", GangInfo[gangid][gLevel], GangInfo[gangid][gName]);
- GangInfo[gangid][gText][0] = CreateDynamic3DTextLabel(string, COLOR_ORANGE, GangInfo[gangid][gStashX], GangInfo[gangid][gStashY], GangInfo[gangid][gStashZ], 10.0, .worldid = GangInfo[gangid][gStashWorld], .interiorid = GangInfo[gangid][gStashInterior]);
- GangInfo[gangid][gPickup] = CreateDynamicPickup(1239, 1, GangInfo[gangid][gStashX], GangInfo[gangid][gStashY], GangInfo[gangid][gStashZ], .worldid = GangInfo[gangid][gStashWorld], .interiorid = GangInfo[gangid][gStashInterior]);
- }
- if(GangInfo[gangid][gArmsDealer] && GangInfo[gangid][gArmsX] != 0.0 && GangInfo[gangid][gArmsY] != 0.0 && GangInfo[gangid][gArmsZ] != 0.0)
- {
- format(string, sizeof(string), "%s\nArms Dealer\n/armsdealer for more info.", GangInfo[gangid][gName]);
- GangInfo[gangid][gActors][0] = CreateActor(179, GangInfo[gangid][gArmsX], GangInfo[gangid][gArmsY], GangInfo[gangid][gArmsZ], GangInfo[gangid][gArmsA]);
- GangInfo[gangid][gText][1] = CreateDynamic3DTextLabel(string, COLOR_ORANGE, GangInfo[gangid][gArmsX], GangInfo[gangid][gArmsY], GangInfo[gangid][gArmsZ] + 0.3, 10.0, .worldid = GangInfo[gangid][gArmsWorld]);
- SetActorVirtualWorld(GangInfo[gangid][gActors][0], GangInfo[gangid][gArmsWorld]);
- }
- if(GangInfo[gangid][gDrugDealer] && GangInfo[gangid][gDrugX] != 0.0 && GangInfo[gangid][gDrugY] != 0.0 && GangInfo[gangid][gDrugZ] != 0.0)
- {
- format(string, sizeof(string), "%s\nDrug Dealer\n/drugdealer for more info.", GangInfo[gangid][gName]);
- GangInfo[gangid][gActors][1] = CreateActor(28, GangInfo[gangid][gDrugX], GangInfo[gangid][gDrugY], GangInfo[gangid][gDrugZ], GangInfo[gangid][gDrugA]);
- GangInfo[gangid][gText][2] = CreateDynamic3DTextLabel(string, COLOR_ORANGE, GangInfo[gangid][gDrugX], GangInfo[gangid][gDrugY], GangInfo[gangid][gDrugZ] + 0.3, 10.0, .worldid = GangInfo[gangid][gDrugWorld]);
- SetActorVirtualWorld(GangInfo[gangid][gActors][1], GangInfo[gangid][gDrugWorld]);
- }
- }
- }
- GiveGangPoints(gangid, amount)
- {
- if(GangInfo[gangid][gSetup])
- {
- GangInfo[gangid][gPoints] = GangInfo[gangid][gPoints] + amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET points = %i WHERE id = %i", GangInfo[gangid][gPoints], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- RemoveGang(gangid)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pGang] == gangid)
- {
- SendClientMessageEx(i, COLOR_LIGHTRED, "The gang you were apart of has been deleted by an administrator.");
- PlayerInfo[i][pGang] = -1;
- PlayerInfo[i][pGangRank] = 0;
- }
- }
- DestroyDynamic3DTextLabel(GangInfo[gangid][gText][0]);
- DestroyDynamic3DTextLabel(GangInfo[gangid][gText][1]);
- DestroyDynamic3DTextLabel(GangInfo[gangid][gText][2]);
- DestroyDynamicPickup(GangInfo[gangid][gPickup]);
- DestroyActor(GangInfo[gangid][gActors][0]);
- DestroyActor(GangInfo[gangid][gActors][1]);
- GangInfo[gangid][gSetup] = 0;
- GangInfo[gangid][gName] = 0;
- GangInfo[gangid][gMOTD] = 0;
- GangInfo[gangid][gLeader] = 0;
- GangInfo[gangid][gColor] = 0;
- GangInfo[gangid][gStrikes] = 0;
- GangInfo[gangid][gLevel] = 0;
- GangInfo[gangid][gPoints] = 0;
- GangInfo[gangid][gTurfTokens] = 0;
- GangInfo[gangid][gStashX] = 0.0;
- GangInfo[gangid][gStashY] = 0.0;
- GangInfo[gangid][gStashZ] = 0.0;
- GangInfo[gangid][gStashInterior] = 0;
- GangInfo[gangid][gStashWorld] = 0;
- GangInfo[gangid][gCash] = 0;
- GangInfo[gangid][gMaterials] = 0;
- GangInfo[gangid][gWeed] = 0;
- GangInfo[gangid][gCocaine] = 0;
- GangInfo[gangid][gMeth] = 0;
- GangInfo[gangid][gPainkillers] = 0;
- GangInfo[gangid][gArmsDealer] = 0;
- GangInfo[gangid][gDrugDealer] = 0;
- GangInfo[gangid][gArmsX] = 0.0;
- GangInfo[gangid][gArmsY] = 0.0;
- GangInfo[gangid][gArmsZ] = 0.0;
- GangInfo[gangid][gDrugX] = 0.0;
- GangInfo[gangid][gDrugY] = 0.0;
- GangInfo[gangid][gDrugZ] = 0.0;
- GangInfo[gangid][gArmsWorld] = 0;
- GangInfo[gangid][gDrugWorld] = 0;
- GangInfo[gangid][gDrugWeed] = 0;
- GangInfo[gangid][gDrugCocaine] = 0;
- GangInfo[gangid][gDrugMeth] = 0;
- GangInfo[gangid][gArmsMaterials] = 0;
- GangInfo[gangid][gArmsHPAmmo] = 0;
- GangInfo[gangid][gArmsPoisonAmmo] = 0;
- GangInfo[gangid][gArmsFMJAmmo] = 0;
- GangInfo[gangid][gPickup] = -1;
- GangInfo[gangid][gActors][0] = INVALID_ACTOR_ID;
- GangInfo[gangid][gActors][1] = INVALID_ACTOR_ID;
- GangInfo[gangid][gText][0] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gText][1] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gText][2] = Text3D:INVALID_3DTEXT_ID;
- for(new i = 0; i < 7; i ++)
- {
- strcpy(GangRanks[gangid][i], "Unspecified", 32);
- }
- for(new i = 0; i < 14; i ++)
- {
- GangInfo[gangid][gWeapons][i] = 0;
- }
- for(new i = 0; i < MAX_GANG_SKINS; i ++)
- {
- GangInfo[gangid][gSkins][i] = 0;
- }
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists] && PointInfo[i][pCapturedGang] == gangid)
- {
- PointInfo[i][pCapturedGang] = -1;
- }
- }
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists] && TurfInfo[i][tCapturedGang] == gangid)
- {
- TurfInfo[i][tCapturedGang] = -1;
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM gangs WHERE id = %i", gangid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM gangranks WHERE id = %i", gangid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM gangskins WHERE id = %i", gangid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET capturedgang = -1 WHERE capturedgang = %i", gangid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET capturedgang = -1 WHERE capturedgang = %i", gangid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = -1, gangrank = 0 WHERE gang = %i", gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- GetGangVehicles(gangid)
- {
- new count;
- for(new i = 0; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && VehicleInfo[i][vGang] == gangid)
- {
- count++;
- }
- }
- return count;
- }
- GetGangVehicleLimit(gangid)
- {
- switch(GangInfo[gangid][gLevel])
- {
- case 1: return 6;
- case 2: return 8;
- case 3: return 12;
- }
- return 0;
- }
- GetGangMemberLimit(gangid)
- {
- switch(GangInfo[gangid][gLevel])
- {
- case 1: return 30;
- case 2: return 60;
- case 3: return 80;
- }
- return 0;
- }
- GetGangSkinCount(gangid)
- {
- new count;
- for(new i = 0; i < MAX_GANG_SKINS; i ++)
- {
- if(GangInfo[gangid][gSkins][i] != 0)
- {
- count++;
- }
- }
- return count;
- }
- GetSpawnedVehicles(playerid)
- {
- new count;
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && IsVehicleOwner(playerid, i))
- {
- count++;
- }
- }
- return count;
- }
- GetVehicleGarage(vehicleid)
- {
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && GarageInfo[i][gWorld] == GetVehicleVirtualWorld(vehicleid))
- {
- return i;
- }
- }
- return -1;
- }
- GetNearbyVehicle(playerid)
- {
- new Float:x, Float:y, Float:z;
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && IsVehicleStreamedIn(i, playerid))
- {
- GetVehiclePos(i, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 3.5, x, y, z))
- {
- return i;
- }
- }
- }
- return INVALID_VEHICLE_ID;
- }
- IsVehicleOwner(playerid, vehicleid)
- {
- return (VehicleInfo[vehicleid][vOwnerID] == PlayerInfo[playerid][pID]) || (VehicleInfo[vehicleid][vOwnerID] > 0 && PlayerInfo[playerid][pAdminDuty]);
- }
- SetVehicleNeon(vehicleid, modelid)
- {
- if(18647 <= modelid <= 18652)
- {
- if(VehicleInfo[vehicleid][vNeonEnabled])
- {
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][0]);
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][1]);
- }
- VehicleInfo[vehicleid][vNeon] = modelid;
- VehicleInfo[vehicleid][vNeonEnabled] = (modelid > 0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET neon = %i, neonenabled = 1 WHERE id = %i", VehicleInfo[vehicleid][vNeon], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadVehicleNeon(vehicleid);
- }
- }
- ReloadVehicleNeon(vehicleid)
- {
- if(VehicleInfo[vehicleid][vID] > 0)
- {
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][0]);
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][1]);
- if(VehicleInfo[vehicleid][vNeon] && VehicleInfo[vehicleid][vNeonEnabled])
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetVehicleModelInfo(VehicleInfo[vehicleid][vModel], VEHICLE_MODEL_INFO_SIZE, x, y, z);
- VehicleInfo[vehicleid][vObjects][0] = CreateDynamicObject(VehicleInfo[vehicleid][vNeon], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- VehicleInfo[vehicleid][vObjects][1] = CreateDynamicObject(VehicleInfo[vehicleid][vNeon], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachDynamicObjectToVehicle(VehicleInfo[vehicleid][vObjects][0], vehicleid, -x / 2.8, 0.0, -0.6, 0.0, 0.0, 0.0);
- AttachDynamicObjectToVehicle(VehicleInfo[vehicleid][vObjects][1], vehicleid, x / 2.8, 0.0, -0.6, 0.0, 0.0, 0.0);
- }
- }
- }
- ResyncVehicle(vehicleid)
- {
- new
- worldid = GetVehicleVirtualWorld(vehicleid);
- SetVehicleVirtualWorld(vehicleid, cellmax);
- SetVehicleVirtualWorld(vehicleid, worldid);
- }
- SaveVehicleModifications(vehicleid)
- {
- for(new i = 0; i < 14; i ++)
- {
- VehicleInfo[vehicleid][vMods][i] = GetVehicleComponentInSlot(vehicleid, i);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET mod_%i = %i WHERE id = %i", i + 1, VehicleInfo[vehicleid][vMods][i], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- ReloadVehicle(vehicleid)
- {
- if(VehicleInfo[vehicleid][vPaintjob] >= 0)
- {
- ChangeVehiclePaintjob(vehicleid, VehicleInfo[vehicleid][vPaintjob]);
- }
- if(VehicleInfo[vehicleid][vNeon] && VehicleInfo[vehicleid][vNeonEnabled])
- {
- ReloadVehicleNeon(vehicleid);
- }
- for(new i = 0; i < 14; i ++)
- {
- if(VehicleInfo[vehicleid][vMods][i] >= 1000)
- {
- AddVehicleComponent(vehicleid, VehicleInfo[vehicleid][vMods][i]);
- }
- }
- if(strcmp(VehicleInfo[vehicleid][vPlate], "None") != 0)
- {
- SetVehicleNumberPlate(vehicleid, VehicleInfo[vehicleid][vPlate]);
- ResyncVehicle(vehicleid);
- }
- LinkVehicleToInterior(vehicleid, VehicleInfo[vehicleid][vInterior]);
- SetVehicleVirtualWorld(vehicleid, VehicleInfo[vehicleid][vWorld]);
- SetVehicleHealth(vehicleid, VehicleInfo[vehicleid][vHealth]);
- SetVehicleParams(vehicleid, VEHICLE_DOORS, VehicleInfo[vehicleid][vLocked]);
- }
- DespawnVehicle(vehicleid, bool:save = true)
- {
- if(VehicleInfo[vehicleid][vID] > 0)
- {
- if(VehicleInfo[vehicleid][vNeonEnabled])
- {
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][0]);
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][1]);
- }
- if(save) {
- new
- Float:health;
- GetVehicleHealth(vehicleid, health);
- SaveVehicleModifications(vehicleid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET fuel = %i, health = '%f' WHERE id = %i", vehicleFuel[vehicleid], health, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- DestroyVehicle(vehicleid);
- ResetVehicle(vehicleid);
- }
- }
- ResetVehicle(vehicleid)
- {
- strcpy(VehicleInfo[vehicleid][vPlate], "None", 32);
-
- if(VehicleInfo[vehicleid][vTimer] >= 0)
- {
- KillTimer(VehicleInfo[vehicleid][vTimer]);
- }
- VehicleInfo[vehicleid][vID] = 0;
- VehicleInfo[vehicleid][vOwnerID] = 0;
- VehicleInfo[vehicleid][vOwner] = 0;
- VehicleInfo[vehicleid][vModel] = 0;
- VehicleInfo[vehicleid][vPrice] = 0;
- VehicleInfo[vehicleid][vTickets] = 0;
- VehicleInfo[vehicleid][vLocked] = 0;
- VehicleInfo[vehicleid][vHealth] = 1000.0;
- VehicleInfo[vehicleid][vPosX] = 0.0;
- VehicleInfo[vehicleid][vPosY] = 0.0;
- VehicleInfo[vehicleid][vPosZ] = 0.0;
- VehicleInfo[vehicleid][vPosA] = 0.0;
- VehicleInfo[vehicleid][vColor1] = 0;
- VehicleInfo[vehicleid][vColor2] = 0;
- VehicleInfo[vehicleid][vPaintjob] = -1;
- VehicleInfo[vehicleid][vInterior] = 0;
- VehicleInfo[vehicleid][vWorld] = 0;
- VehicleInfo[vehicleid][vCash] = 0;
- VehicleInfo[vehicleid][vMaterials] = 0;
- VehicleInfo[vehicleid][vWeed] = 0;
- VehicleInfo[vehicleid][vCocaine] = 0;
- VehicleInfo[vehicleid][vMeth] = 0;
- VehicleInfo[vehicleid][vPainkillers] = 0;
- VehicleInfo[vehicleid][vWeapons][0] = 0;
- VehicleInfo[vehicleid][vWeapons][1] = 0;
- VehicleInfo[vehicleid][vWeapons][2] = 0;
- VehicleInfo[vehicleid][vHPAmmo] = 0;
- VehicleInfo[vehicleid][vPoisonAmmo] = 0;
- VehicleInfo[vehicleid][vFMJAmmo] = 0;
- VehicleInfo[vehicleid][vGang] = -1;
- VehicleInfo[vehicleid][vFactionType] = FACTION_NONE;
- VehicleInfo[vehicleid][vJob] = JOB_NONE;
- VehicleInfo[vehicleid][vObjects][0] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vObjects][1] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vTimer] = -1;
- VehicleInfo[vehicleid][vForSale] = false;
- VehicleInfo[vehicleid][vForSalePrice] = 0;
- if(VehicleInfo[vehicleid][vForSaleLabel] != Text3D:INVALID_3DTEXT_ID) DestroyDynamic3DTextLabel(VehicleInfo[vehicleid][vForSaleLabel]);
- VehicleInfo[vehicleid][vForSaleLabel] = Text3D:INVALID_3DTEXT_ID;
- for(new i = 0; i < 14; i ++)
- {
- VehicleInfo[vehicleid][vMods][i] = 0;
- }
- }
- IsPointInLand(landid, Float:x, Float:y)
- {
- if((LandInfo[landid][lMinX] <= x <= LandInfo[landid][lMaxX]) && (LandInfo[landid][lMinY] <= y <= LandInfo[landid][lMaxY]))
- {
- return 1;
- }
- return 0;
- }
- GangZoneCreateEx(Float:minx, Float:miny, Float:maxx, Float:maxy)
- {
- return GangZoneCreate((minx > maxx) ? (maxx) : (minx), (miny > maxy) ? (maxy) : (miny), (minx > maxx) ? (minx) : (maxx), (miny > maxy) ? (miny) : (maxy));
- }
- HasLandPerms(playerid, landid)
- {
- return IsLandOwner(playerid, landid) || PlayerInfo[playerid][pLandPerms] == landid;
- }
- IsLandOwner(playerid, landid)
- {
- return (LandInfo[landid][lOwnerID] == PlayerInfo[playerid][pID]) || (LandInfo[landid][lOwnerID] > 0 && PlayerInfo[playerid][pAdminDuty]);
- }
- SetLandOwner(landid, playerid)
- {
- if(playerid == INVALID_PLAYER_ID)
- {
- strcpy(LandInfo[landid][lOwner], "Nobody", MAX_PLAYER_NAME);
- LandInfo[landid][lOwnerID] = 0;
- }
- else
- {
- GetPlayerName(playerid, LandInfo[landid][lOwner], MAX_PLAYER_NAME);
- LandInfo[landid][lOwnerID] = PlayerInfo[playerid][pID];
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE lands SET ownerid = %i, owner = '%s' WHERE id = %i", LandInfo[landid][lOwnerID], LandInfo[landid][lOwner], LandInfo[landid][lID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadLand(landid);
- }
- GetLandObjectID(sql_id)
- {
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID) == sql_id)
- {
- return i;
- }
- }
- return INVALID_OBJECT_ID;
- }
- GetLandObjectCapacity(playerid)
- {
- return (PlayerInfo[playerid][pVIPPackage] * 50) + 250;
- }
- RemoveLandObject(objectid)
- {
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_LAND)
- {
- new
- id = Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID);
- DeleteLandObject(objectid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM landobjects WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- DeleteLandObject(objectid)
- {
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_LAND)
- {
- new Text3D:textid = Text3D:Streamer_GetExtraInt(objectid, E_OBJECT_3DTEXT_ID);
- if(IsValidDynamic3DTextLabel(textid))
- {
- DestroyDynamic3DTextLabel(textid);
- }
- DestroyDynamicObject(objectid);
- }
- }
- RemoveAllLandObjects(landid)
- {
- if(LandInfo[landid][lExists])
- {
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == LandInfo[landid][lID])
- {
- DeleteLandObject(i);
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM landobjects WHERE landid = %i", LandInfo[landid][lID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- ReloadLandObject(objectid, labels)
- {
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_LAND)
- {
- new
- id = Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID);
- DeleteLandObject(objectid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM landobjects WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_LANDOBJECTS, labels);
- }
- }
- ReloadAllLandObjects(landid)
- {
- if(LandInfo[landid][lExists])
- {
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == LandInfo[landid][lID])
- {
- DeleteLandObject(i);
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM landobjects WHERE landid = %i", LandInfo[landid][lID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_LANDOBJECTS, LandInfo[landid][lLabels]);
- }
- }
- ReloadLand(landid)
- {
- if(LandInfo[landid][lExists])
- {
- DestroyDynamicArea(LandInfo[landid][lArea]);
- GangZoneDestroy(LandInfo[landid][lGangZone]);
- LandInfo[landid][lArea] = CreateDynamicRectangle(LandInfo[landid][lMinX], LandInfo[landid][lMinY], LandInfo[landid][lMaxX], LandInfo[landid][lMaxY]);
- LandInfo[landid][lGangZone] = GangZoneCreateEx(LandInfo[landid][lMinX], LandInfo[landid][lMinY], LandInfo[landid][lMaxX], LandInfo[landid][lMaxY]);
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pShowLands])
- {
- GangZoneShowForPlayer(i, LandInfo[landid][lGangZone], (LandInfo[landid][lOwnerID] > 0) ? (0xFF6347AA) : (0x33CC33AA));
- }
- }
- }
- }
- GetNearbyLand(playerid)
- {
- for(new i = 0; i < MAX_LANDS; i ++)
- {
- if(LandInfo[i][lExists] && IsPlayerInDynamicArea(playerid, LandInfo[i][lArea]))
- {
- return i;
- }
- }
- return -1;
- }
- TurfTaxCheck(playerid, amount)
- {
- new turfid = GetNearbyTurf(playerid);
- if(turfid >= 0 && TurfInfo[turfid][tType] == 7 && TurfInfo[turfid][tCapturedGang] >= 0)
- {
- amount = percent(amount, 10);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have been taxed a 10 percent fee of {FF6347}$%i{33CCFF} for selling in %s's turf.", amount, GangInfo[TurfInfo[turfid][tCapturedGang]][gName]);
- GivePlayerCash(playerid, -amount);
- GangInfo[TurfInfo[turfid][tCapturedGang]][gCash] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cash = %i WHERE id = %i", GangInfo[TurfInfo[turfid][tCapturedGang]][gCash], TurfInfo[turfid][tCapturedGang]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- GetNearbyTurf(playerid)
- {
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists] && IsPlayerInDynamicArea(playerid, TurfInfo[i][tArea]))
- {
- return i;
- }
- }
- return -1;
- }
- GetTurfColor(turfid)
- {
- if(TurfInfo[turfid][tCapturedGang] >= 0)
- {
- return (GangInfo[TurfInfo[turfid][tCapturedGang]][gColor] & ~0xff) + 0xAA;
- }
- return 0x000000AA;
- }
- ReloadTurf(turfid)
- {
- if(TurfInfo[turfid][tExists])
- {
- DestroyDynamicArea(TurfInfo[turfid][tArea]);
- GangZoneDestroy(TurfInfo[turfid][tGangZone]);
- TurfInfo[turfid][tArea] = CreateDynamicRectangle(TurfInfo[turfid][tMinX], TurfInfo[turfid][tMinY], TurfInfo[turfid][tMaxX], TurfInfo[turfid][tMaxY]);
- TurfInfo[turfid][tGangZone] = GangZoneCreateEx(TurfInfo[turfid][tMinX], TurfInfo[turfid][tMinY], TurfInfo[turfid][tMaxX], TurfInfo[turfid][tMaxY]);
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pShowTurfs])
- {
- ShowTurfsOnMap(i, true);
- }
- }
- }
- }
- GetNearbyEntranceEx(playerid)
- {
- return GetNearbyEntrance(playerid) == -1 ? GetInsideEntrance(playerid) : GetNearbyEntrance(playerid);
- }
- GetNearbyEntrance(playerid)
- {
- for(new i = 0; i < MAX_ENTRANCES; i ++)
- {
- if(EntranceInfo[i][eExists] && IsPlayerInRangeOfPoint(playerid, EntranceInfo[i][eRadius], EntranceInfo[i][ePosX], EntranceInfo[i][ePosY], EntranceInfo[i][ePosZ]) && GetPlayerInterior(playerid) == EntranceInfo[i][eOutsideInt] && GetPlayerVirtualWorld(playerid) == EntranceInfo[i][eOutsideVW])
- {
- return i;
- }
- }
- return -1;
- }
- GetInsideEntrance(playerid)
- {
- for(new i = 0; i < MAX_ENTRANCES; i ++)
- {
- if(EntranceInfo[i][eExists] && IsPlayerInRangeOfPoint(playerid, 100.0, EntranceInfo[i][eIntX], EntranceInfo[i][eIntY], EntranceInfo[i][eIntZ]) && GetPlayerInterior(playerid) == EntranceInfo[i][eInterior] && GetPlayerVirtualWorld(playerid) == EntranceInfo[i][eWorld])
- {
- return i;
- }
- }
- return -1;
- }
- SetEntranceOwner(entranceid, playerid)
- {
- if(playerid == INVALID_PLAYER_ID)
- {
- strcpy(EntranceInfo[entranceid][eOwner], "Nobody", MAX_PLAYER_NAME);
- EntranceInfo[entranceid][eOwnerID] = 0;
- }
- else
- {
- GetPlayerName(playerid, EntranceInfo[entranceid][eOwner], MAX_PLAYER_NAME);
- EntranceInfo[entranceid][eOwnerID] = PlayerInfo[playerid][pID];
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET ownerid = %i, owner = '%s' WHERE id = %i", EntranceInfo[entranceid][eOwnerID], EntranceInfo[entranceid][eOwner], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- }
- ReloadEntrance(entranceid)
- {
- if(EntranceInfo[entranceid][eExists])
- {
- new
- string[128];
- DestroyDynamic3DTextLabel(EntranceInfo[entranceid][eText]);
- DestroyDynamicPickup(EntranceInfo[entranceid][ePickup]);
- if(EntranceInfo[entranceid][eLabel])
- {
- if(EntranceInfo[entranceid][eOwnerID])
- {
- format(string, sizeof(string), "%s\nOwner: %s\n/enter to go inside.", EntranceInfo[entranceid][eName], EntranceInfo[entranceid][eOwner]);
- }
- else
- {
- format(string, sizeof(string), "%s\n/enter to go inside.", EntranceInfo[entranceid][eName]);
- }
- EntranceInfo[entranceid][eText] = CreateDynamic3DTextLabel(string, COLOR_GREY1, EntranceInfo[entranceid][ePosX], EntranceInfo[entranceid][ePosY], (EntranceInfo[entranceid][eIcon] == 19902) ? (EntranceInfo[entranceid][ePosZ] + 0.1) : (EntranceInfo[entranceid][ePosZ]), 10.0, .worldid = EntranceInfo[entranceid][eOutsideVW], .interiorid = EntranceInfo[entranceid][eOutsideInt]);
- }
- EntranceInfo[entranceid][ePickup] = CreateDynamicPickup(EntranceInfo[entranceid][eIcon], 1, EntranceInfo[entranceid][ePosX], EntranceInfo[entranceid][ePosY], (EntranceInfo[entranceid][eIcon] == 19902) ? (EntranceInfo[entranceid][ePosZ] - 1.0) : (EntranceInfo[entranceid][ePosZ]), .worldid = EntranceInfo[entranceid][eOutsideVW], .interiorid = EntranceInfo[entranceid][eOutsideInt]);
- }
- }
- IsEntranceOwner(playerid, entranceid)
- {
- return (EntranceInfo[entranceid][eOwnerID] == PlayerInfo[playerid][pID]) || (EntranceInfo[entranceid][eOwnerID] > 0 && PlayerInfo[playerid][pAdminDuty]);
- }
- GetClosestBusiness(playerid, type)
- {
- new
- Float:distance[2] = {99999.0, 0.0},
- index = -1;
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if((BusinessInfo[i][bExists] && BusinessInfo[i][bType] == type) && (BusinessInfo[i][bOutsideInt] == 0 && BusinessInfo[i][bOutsideVW] == 0))
- {
- distance[1] = GetPlayerDistanceFromPoint(playerid, BusinessInfo[i][bPosX], BusinessInfo[i][bPosY], BusinessInfo[i][bPosZ]);
- if(distance[0] > distance[1])
- {
- distance[0] = distance[1];
- index = i;
- }
- }
- }
- return index;
- }
- GetNearbyBusinessEx(playerid)
- {
- return GetNearbyBusiness(playerid) == -1 ? GetInsideBusiness(playerid) : GetNearbyBusiness(playerid);
- }
- GetNearbyBusiness(playerid, Float:radius = 2.0)
- {
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && IsPlayerInRangeOfPoint(playerid, radius, BusinessInfo[i][bPosX], BusinessInfo[i][bPosY], BusinessInfo[i][bPosZ]) && GetPlayerInterior(playerid) == BusinessInfo[i][bOutsideInt] && GetPlayerVirtualWorld(playerid) == BusinessInfo[i][bOutsideVW])
- {
- return i;
- }
- }
- return -1;
- }
- GetInsideBusiness(playerid)
- {
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && IsPlayerInRangeOfPoint(playerid, 100.0, BusinessInfo[i][bIntX], BusinessInfo[i][bIntY], BusinessInfo[i][bIntZ]) && GetPlayerInterior(playerid) == BusinessInfo[i][bInterior] && GetPlayerVirtualWorld(playerid) == BusinessInfo[i][bWorld])
- {
- return i;
- }
- }
- return -1;
- }
- SetBusinessOwner(businessid, playerid)
- {
- if(playerid == INVALID_PLAYER_ID)
- {
- strcpy(BusinessInfo[businessid][bOwner], "Nobody", MAX_PLAYER_NAME);
- BusinessInfo[businessid][bOwnerID] = 0;
- }
- else
- {
- GetPlayerName(playerid, BusinessInfo[businessid][bOwner], MAX_PLAYER_NAME);
- BusinessInfo[businessid][bOwnerID] = PlayerInfo[playerid][pID];
- }
- BusinessInfo[businessid][bTimestamp] = gettime();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET timestamp = %i, ownerid = %i, owner = '%s' WHERE id = %i", BusinessInfo[businessid][bTimestamp], BusinessInfo[businessid][bOwnerID], BusinessInfo[businessid][bOwner], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- }
- ReloadBusiness(businessid)
- {
- if(BusinessInfo[businessid][bExists])
- {
- new
- string[128];
- DestroyDynamic3DTextLabel(BusinessInfo[businessid][bText]);
- DestroyDynamicPickup(BusinessInfo[businessid][bPickup]);
- DestroyDynamicMapIcon(BusinessInfo[businessid][bMapIcon]);
- if(BusinessInfo[businessid][bOwnerID] == 0)
- {
- format(string, sizeof(string), "[Business]\nPrice: $%i\nType: %s\nEntry Fee: $%i\nStatus: %s", BusinessInfo[businessid][bPrice], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bEntryFee], (BusinessInfo[businessid][bLocked]) ? ("Closed") : ("Opened"));
- }
- else
- {
- format(string, sizeof(string), "[Business]\nOwner: %s\nType: %s\nEntry Fee: $%i\nStatus: %s", BusinessInfo[businessid][bOwner], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bEntryFee], (BusinessInfo[businessid][bLocked]) ? ("Closed") : ("Opened"));
- }
- BusinessInfo[businessid][bText] = CreateDynamic3DTextLabel(string, COLOR_GREY1, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ] + 0.1, 10.0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- BusinessInfo[businessid][bPickup] = CreateDynamicPickup(1272, 1, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- switch(BusinessInfo[businessid][bType])
- {
- case BUSINESS_STORE: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 17, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- case BUSINESS_GUNSHOP: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 6, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- case BUSINESS_CLOTHES: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 45, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- case BUSINESS_RESTAURANT: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 10, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- case BUSINESS_GYM: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 54, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- case BUSINESS_AGENCY: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 58, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- case BUSINESS_BARCLUB: BusinessInfo[businessid][bMapIcon] = CreateDynamicMapIcon(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 49, 0, .worldid = BusinessInfo[businessid][bOutsideVW], .interiorid = BusinessInfo[businessid][bOutsideInt]);
- }
- }
- }
- IsBusinessOwner(playerid, businessid)
- {
- return (BusinessInfo[businessid][bOwnerID] == PlayerInfo[playerid][pID]) || (BusinessInfo[businessid][bOwnerID] > 0 && PlayerInfo[playerid][pAdminDuty]);
- }
- IsGarageOwner(playerid, garageid)
- {
- return (GarageInfo[garageid][gOwnerID] == PlayerInfo[playerid][pID]) || (GarageInfo[garageid][gOwnerID] > 0 && PlayerInfo[playerid][pAdminDuty]);
- }
- GetNearbyGarageEx(playerid)
- {
- return GetNearbyGarage(playerid) == -1 ? GetInsideGarage(playerid) : GetNearbyGarage(playerid);
- }
- GetNearbyGarage(playerid)
- {
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && IsPlayerInRangeOfPoint(playerid, 4.0, GarageInfo[i][gPosX], GarageInfo[i][gPosY], GarageInfo[i][gPosZ]))
- {
- return i;
- }
- }
- return -1;
- }
- GetInsideGarage(playerid)
- {
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && IsPlayerInRangeOfPoint(playerid, 50.0, garageInteriors[GarageInfo[i][gType]][intVX], garageInteriors[GarageInfo[i][gType]][intVY], garageInteriors[GarageInfo[i][gType]][intVZ]) && GetPlayerInterior(playerid) == garageInteriors[GarageInfo[i][gType]][intID] && GetPlayerVirtualWorld(playerid) == GarageInfo[i][gWorld])
- {
- return i;
- }
- }
- return -1;
- }
- ReloadGarage(garageid)
- {
- if(GarageInfo[garageid][gExists])
- {
- new string[128];
- DestroyDynamic3DTextLabel(GarageInfo[garageid][gText]);
- DestroyDynamicPickup(GarageInfo[garageid][gPickup]);
- if(GarageInfo[garageid][gOwnerID] == 0)
- {
- format(string, sizeof(string), "[Garage]\nPrice: $%i\nSize: %s\nCapacity: %i cars", GarageInfo[garageid][gPrice], garageInteriors[GarageInfo[garageid][gType]][intName], GarageInfo[garageid][gType] + 1);
- }
- else
- {
- format(string, sizeof(string), "[Garage]\nOwner: %s\nSize: %s\nCapacity: %i cars", GarageInfo[garageid][gOwner], garageInteriors[GarageInfo[garageid][gType]][intName], GarageInfo[garageid][gType] + 1);
- }
- GarageInfo[garageid][gText] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ] + 0.1, 10.0);
- GarageInfo[garageid][gPickup] = CreateDynamicPickup(1080, 1, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ]);
- }
- }
- SetGarageOwner(garageid, playerid)
- {
- if(playerid == INVALID_PLAYER_ID)
- {
- strcpy(GarageInfo[garageid][gOwner], "Nobody", MAX_PLAYER_NAME);
- GarageInfo[garageid][gOwnerID] = 0;
- }
- else
- {
- GetPlayerName(playerid, GarageInfo[garageid][gOwner], MAX_PLAYER_NAME);
- GarageInfo[garageid][gOwnerID] = PlayerInfo[playerid][pID];
- }
- GarageInfo[garageid][gTimestamp] = gettime();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET timestamp = %i, ownerid = %i, owner = '%s' WHERE id = %i", GarageInfo[garageid][gTimestamp], GarageInfo[garageid][gOwnerID], GarageInfo[garageid][gOwner], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- }
- HasFurniturePerms(playerid, houseid)
- {
- return IsHouseOwner(playerid, houseid) || PlayerInfo[playerid][pFurniturePerms] == houseid;
- }
- IsHouseOwner(playerid, houseid)
- {
- return (HouseInfo[houseid][hOwnerID] == PlayerInfo[playerid][pID]) || (HouseInfo[houseid][hOwnerID] > 0 && PlayerInfo[playerid][pAdminDuty]);
- }
- GetVehicleStashCapacity(vehicleid, item)
- {
- static const stashCapacities[][] = {
- // Cash Mats W C M P HP PT FMJ W
- {25000, 5000, 25, 25, 10, 5, 80, 60, 50, 3}, // level 1
- {50000, 10000, 50, 50, 25, 10, 100, 80, 60, 4}, // level 2
- {100000, 25000, 100, 75, 50, 20, 125, 100, 70, 5} // level 3
- };
- if(VehicleInfo[vehicleid][vTrunk] > 0)
- {
- return stashCapacities[VehicleInfo[vehicleid][vTrunk] - 1][item];
- }
-
- return 0;
- }
- GetGangStashCapacity(gangid, item)
- {
- static const stashCapacities[][] = {
- {1000000, 100000, 500, 500, 250, 50, 1000, 500, 250},
- {2000000, 200000, 1000, 1000, 500, 100, 1500, 1000, 500},
- {3000000, 300000, 1500, 1500, 1000, 250, 2000, 1500, 1000}
- };
- return stashCapacities[GangInfo[gangid][gLevel] - 1][item];
- }
- GetHouseStashCapacity(houseid, item)
- {
- static const stashCapacities[][] = {
- // Cash Mats W C M P HP PT FMJ W
- {50000, 5000, 50, 25, 20, 10, 80, 60, 50, 2}, // level 1
- {100000, 10000, 100, 50, 40, 20, 100, 80, 60, 4}, // level 2
- {250000, 25000, 150, 75, 60, 30, 125, 100, 70, 6}, // level 3
- {500000, 50000, 200, 100, 80, 40, 150, 125, 80, 8}, // level 4
- {1000000, 100000, 300, 200, 100, 50, 200, 150, 100, 10} // level 5
- };
- return stashCapacities[HouseInfo[houseid][hLevel] - 1][item];
- }
- GetHouseTenantCapacity(houseid)
- {
- switch(HouseInfo[houseid][hLevel])
- {
- case 0: return 5;
- case 1: return 10;
- case 2: return 15;
- case 3: return 20;
- case 4: return 25;
- case 5: return 30;
- }
- return 0;
- }
- GetHouseFurnitureCapacity(houseid)
- {
- switch(HouseInfo[houseid][hLevel])
- {
- case 0: return 25;
- case 1: return 50;
- case 2: return 75;
- case 3: return 100;
- case 4: return 150;
- case 5: return 300;
- }
- return 0;
- }
- GetRandomHouse(playerid) // For pizzaboy job.
- {
- new index, houseIDs[MAX_HOUSES] = {-1, ...};
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && HouseInfo[i][hOutsideInt] == 0 && HouseInfo[i][hOutsideVW] == 0)
- {
- if(300.0 <= GetPlayerDistanceFromPoint(playerid, HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ]) <= 1200.0)
- {
- houseIDs[index++] = i;
- }
- }
- }
- if(index == 0)
- {
- return -1;
- }
- return houseIDs[random(index)];
- }
- GetNearbyHouseEx(playerid)
- {
- return GetNearbyHouse(playerid) == -1 ? GetInsideHouse(playerid) : GetNearbyHouse(playerid);
- }
- GetNearbyHouse(playerid)
- {
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ]) && GetPlayerInterior(playerid) == HouseInfo[i][hOutsideInt] && GetPlayerVirtualWorld(playerid) == HouseInfo[i][hOutsideVW])
- {
- return i;
- }
- }
- return -1;
- }
- GetInsideHouse(playerid)
- {
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && IsPlayerInRangeOfPoint(playerid, 100.0, HouseInfo[i][hIntX], HouseInfo[i][hIntY], HouseInfo[i][hIntZ]) && GetPlayerInterior(playerid) == HouseInfo[i][hInterior] && GetPlayerVirtualWorld(playerid) == HouseInfo[i][hWorld])
- {
- return i;
- }
- }
- return -1;
- }
- SetHouseOwner(houseid, playerid)
- {
- if(playerid == INVALID_PLAYER_ID)
- {
- strcpy(HouseInfo[houseid][hOwner], "Nobody", MAX_PLAYER_NAME);
- HouseInfo[houseid][hOwnerID] = 0;
- }
- else
- {
- GetPlayerName(playerid, HouseInfo[houseid][hOwner], MAX_PLAYER_NAME);
- HouseInfo[houseid][hOwnerID] = PlayerInfo[playerid][pID];
- }
- HouseInfo[houseid][hTimestamp] = gettime();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET timestamp = %i, ownerid = %i, owner = '%s' WHERE id = %i", HouseInfo[houseid][hTimestamp], HouseInfo[houseid][hOwnerID], HouseInfo[houseid][hOwner], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- }
- RemoveFurniture(objectid)
- {
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_FURNITURE)
- {
- new
- id = Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID);
- DeleteFurnitureObject(objectid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM furniture WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- DeleteFurnitureObject(objectid)
- {
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_FURNITURE)
- {
- new Text3D:textid = Text3D:Streamer_GetExtraInt(objectid, E_OBJECT_3DTEXT_ID);
- if(IsValidDynamic3DTextLabel(textid))
- {
- DestroyDynamic3DTextLabel(textid);
- }
- DestroyDynamicObject(objectid);
- }
- }
- RemoveAllFurniture(houseid)
- {
- if(HouseInfo[houseid][hExists])
- {
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_FURNITURE && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == HouseInfo[houseid][hID])
- {
- DeleteFurnitureObject(i);
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM furniture WHERE houseid = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- ReloadFurniture(objectid, labels)
- {
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_FURNITURE)
- {
- new
- id = Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID);
- DeleteFurnitureObject(objectid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM furniture WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_FURNITURE, labels);
- }
- }
- ReloadAllFurniture(houseid)
- {
- if(HouseInfo[houseid][hExists])
- {
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_FURNITURE && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == HouseInfo[houseid][hID])
- {
- DeleteFurnitureObject(i);
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM furniture WHERE houseid = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_FURNITURE, HouseInfo[houseid][hLabels]);
- }
- }
- ReloadHouse(houseid)
- {
- if(HouseInfo[houseid][hExists])
- {
- new
- string[128],
- type[16];
- DestroyDynamic3DTextLabel(HouseInfo[houseid][hText]);
- DestroyDynamicPickup(HouseInfo[houseid][hPickup]);
- if(HouseInfo[houseid][hType] == -1)
- {
- type = "Other";
- }
- else
- {
- strcpy(type, houseInteriors[HouseInfo[houseid][hType]][intClass]);
- }
- if(HouseInfo[houseid][hOwnerID] == 0)
- {
- format(string, sizeof(string), "[For Sale]\nPrice: $%i\nClass: %s\nHouse Level: %i", HouseInfo[houseid][hPrice], type, HouseInfo[houseid][hLevel]);
- }
- else
- {
- if(HouseInfo[houseid][hRentPrice] > 0)
- {
- format(string, sizeof(string), "[House]\nOwner: %s\nClass: %s\nRent: $%i\nHouse Level: %i", HouseInfo[houseid][hOwner], type, HouseInfo[houseid][hRentPrice], HouseInfo[houseid][hLevel]);
- }
- else
- {
- format(string, sizeof(string), "[House]\nOwner: %s\nClass: %s\nHouse Level: %i", HouseInfo[houseid][hOwner], type, HouseInfo[houseid][hLevel]);
- }
- }
- HouseInfo[houseid][hText] = CreateDynamic3DTextLabel(string, COLOR_GREEN, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ] + 0.1, 10.0, .worldid = HouseInfo[houseid][hOutsideVW], .interiorid = HouseInfo[houseid][hOutsideInt]);
- HouseInfo[houseid][hPickup] = CreateDynamicPickup(1273, 1, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ], .worldid = HouseInfo[houseid][hOutsideVW], .interiorid = HouseInfo[houseid][hOutsideInt]);
- }
- }
- IsNumeric(const string[])
- {
- new
- len = strlen(string),
- i;
- if(string[0] == '-') i = 1;
- while(i < len)
- {
- if(!('0' <= string[i++] <= '9'))
- return 0;
- }
- return 1;
- }
- GetVehicleParams(vehicleid, param)
- {
- new
- params[7];
- GetVehicleParamsEx(vehicleid, params[0], params[1], params[2], params[3], params[4], params[5], params[6]);
- return params[param] == VEHICLE_PARAMS_ON;
- }
- SetVehicleParams(vehicleid, param, status)
- {
- new
- params[7];
- GetVehicleParamsEx(vehicleid, params[0], params[1], params[2], params[3], params[4], params[5], params[6]);
- params[param] = status;
- return SetVehicleParamsEx(vehicleid, params[0], params[1], params[2], params[3], params[4], params[5], params[6]);
- }
- Float:GetVehicleSpeedMPH(vehicleid)
- {
- new
- Float:x,
- Float:y,
- Float:z;
- if(GetVehicleVelocity(vehicleid, x, y, z))
- {
- return floatsqroot((x * x) + (y * y) + (z * z)) * 100;
- }
- return 0.0;
- }
- Float:GetVehicleSpeed(vehicleid)
- {
- new
- Float:x,
- Float:y,
- Float:z;
- if(GetVehicleVelocity(vehicleid, x, y, z))
- {
- return floatsqroot((x * x) + (y * y) + (z * z)) * 181.5;
- }
- return 0.0;
- }
- VehicleHasWindows(vehicleid)
- {
- static const vehicleWindows[] = {
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0,
- 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0,
- 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1,
- 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0,
- 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1,
- 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0
- };
- new
- model = GetVehicleModel(vehicleid);
- if(400 <= model <= 611)
- {
- return vehicleWindows[model - 400];
- }
- return 0;
- }
- VehicleHasEngine(vehicleid)
- {
- static const vehicleEngines[] = {
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1,
- 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0
- };
- new
- modelid = GetVehicleModel(vehicleid);
- if(400 <= modelid <= 611)
- {
- return vehicleEngines[modelid - 400];
- }
- return 0;
- }
- GetVehicleSeatCount(vehicleid)
- {
- static const vehicleSeats[] =
- {
- 4, 2, 2, 2, 4, 4, 1, 2, 2, 4, 2, 2, 2, 4, 2, 2, 4, 2, 4, 2, 4, 4, 2, 2, 2, 1, 4, 4, 4, 2,
- 1, 7, 1, 2, 2, 0, 2, 7, 4, 2, 4, 1, 2, 2, 2, 4, 1, 2, 1, 0, 0, 2, 1, 1, 1, 2, 2, 2, 4,
- 4, 2, 2, 2, 2, 1, 1, 4, 4, 2, 2, 4, 2, 1, 1, 2, 2, 1, 2, 2, 4, 2, 1, 4, 3, 1, 1, 1, 4, 2,
- 2, 4, 2, 4, 1, 2, 2, 2, 4, 4, 2, 2, 1, 2, 2, 2, 2, 2, 4, 2, 1, 1, 2, 1, 1, 2, 2, 4, 2, 2,
- 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 4, 1, 1, 1, 2, 2, 2, 2, 7, 7, 1, 4, 2, 2, 2, 2, 2, 4, 4,
- 2, 2, 4, 4, 2, 1, 2, 2, 2, 2, 2, 2, 4, 4, 2, 2, 1, 2, 4, 4, 1, 0, 0, 1, 1, 2, 1, 2, 2, 1, 2,
- 4, 4, 2, 4, 1, 0, 4, 2, 2, 2, 2, 0, 0, 7, 2, 2, 1, 4, 4, 4, 2, 2, 2, 2, 2, 4, 2, 0, 0, 0,
- 4, 0, 0
- };
- new
- modelid = GetVehicleModel(vehicleid);
- if(400 <= modelid <= 611)
- {
- return vehicleSeats[modelid - 400];
- }
- return 0;
- }
- IsSeatOccupied(vehicleid, seatid)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerVehicleSeat(i) == seatid)
- {
- return 1;
- }
- }
- return 0;
- }
- GetVehicleName(vehicleid)
- {
- new
- modelid = GetVehicleModel(vehicleid),
- name[32];
- if(400 <= modelid <= 611)
- strcat(name, vehicleNames[modelid - 400]);
- else
- name = "Unknown";
- return name;
- }
- GetVehicleModelByName(const string[])
- {
- new
- modelid = strval(string);
- if(400 <= modelid <= 611)
- {
- return modelid;
- }
- for(new i = 0; i < sizeof(vehicleNames); i ++)
- {
- if(strfind(vehicleNames[i], string, true) != -1)
- {
- return i + 400;
- }
- }
- return 0;
- }
- GetVehicleDriver(vehicleid)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- return i;
- }
- }
- return INVALID_PLAYER_ID;
- }
- IsVehicleOccupied(vehicleid)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- return 1;
- }
- }
- return 0;
- }
- AnticheatCheck(playerid)
- {
- if(gettime() > PlayerInfo[playerid][pACTime] && !PlayerInfo[playerid][pKicked])
- {
- // Speedhacking
- if((gAnticheat) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 350 && PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is possibly speedhacking, speed: %.1f km/h.", GetPlayerRPName(playerid), playerid, GetVehicleSpeed(GetPlayerVehicleID(playerid)));
- Log_Write("log_cheat", "%s (uid: %i) possibly speedhacked, speed: %.1f km/h", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleSpeed(GetPlayerVehicleID(playerid)));
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Speed hacking", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Speed hacking");
- }
- }
- // Jetpack
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pJetpack])
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Jetpack", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Jetpack");
- }
- // Flying hacks
- if((gAnticheat) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- switch(GetPlayerAnimationIndex(playerid))
- {
- case 958, 1538, 1539, 1543:
- {
- new
- Float:z,
- Float:vx,
- Float:vy,
- Float:vz;
- GetPlayerPos(playerid, z, z, z);
- GetPlayerVelocity(playerid, vx, vy, vz);
- if((z > 20.0) && (0.9 <= floatsqroot((vx * vx) + (vy * vy) + (vz * vz)) <= 1.9) && PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Flying hacks", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Flying hacks");
- }
- }
- }
- }
-
- // Armor hacks
- if(!PlayerInfo[playerid][pJoinedEvent] && !PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID)
- {
- new
- Float:armor;
- GetPlayerArmour(playerid, armor);
-
- if(!(gettime() - PlayerInfo[playerid][pLastUpdate] > 5))
- {
- if(floatround(armor) > floatround(PlayerInfo[playerid][pArmor]) && gettime() > PlayerInfo[playerid][pACTime] && gettime() > PlayerInfo[playerid][pArmorTime] && PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pACWarns]++;
- PlayerInfo[playerid][pArmorTime] = gettime() + 10;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is possibly armor hacking. (old: %.2f, new: %.2f)", GetPlayerRPName(playerid), playerid, PlayerInfo[playerid][pArmor], armor);
- Log_Write("log_cheat", "%s (uid: %i) possibly hacked armor. (old: %.2f, new: %.2f)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], PlayerInfo[playerid][pArmor], armor);
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Armor hacking", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Armor hacking");
- }
- }
- }
- PlayerInfo[playerid][pArmor] = armor;
- }
- }
-
- // Ammo hacks
- if(!PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID && !(PlayerInfo[playerid][pTazer] && GetPlayerWeapon(playerid) == 23))
- {
- new
- weapon,
- ammo;
- GetPlayerWeaponData(playerid, 8, weapon, ammo);
-
- if((16 <= weapon <= 18) && ammo <= 0)
- {
- RemovePlayerWeapon(playerid, weapon);
- }
- }
- // Warping into vehicles while locked
- /*if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && GetVehicleParams(GetPlayerVehicleID(playerid), VEHICLE_DOORS) && (!IsVehicleOwner(playerid, GetPlayerVehicleID(playerid)) && PlayerInfo[playerid][pVehicleKeys] != GetPlayerVehicleID(playerid)))
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 1.0);
- GameTextForPlayer(playerid, "~r~This vehicle is locked!", 3000, 3);
- }*/
- }
- IsAnIP(ip[])
- {
- new part[4];
- if(!sscanf(ip, "p<.>iiii", part[0], part[1], part[2], part[3]))
- {
- return (0 <= part[0] <= 255) && (0 <= part[1] <= 255) && (0 <= part[2] <= 255) && (0 <= part[3] <= 255);
- }
- else if(!sscanf(ip, "p<.>iicc", part[0], part[1], part[2], part[3]))
- {
- return (0 <= part[0] <= 255) && (0 <= part[1] <= 255) && (part[2] == '*' && part[3] == '*');
- }
- return 0;
- }
- IsValidName(name[])
- {
- for(new i = 0, j = strlen(name); i < j; i ++)
- {
- if(!(3 <= j <= MAX_PLAYER_NAME))
- return 0;
- switch(name[i])
- {
- case 'A'..'Z', 'a'..'z', '0'..'9', '_', '.', '[', ']', '(', ')', '=', '@':
- {
- continue;
- }
- default:
- {
- return 0;
- }
- }
- }
- return 1;
- }
- IsValidModel(modelid)
- {
- static modeldat[] =
- {
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -128,
- -515899393, -134217729, -1, -1, 33554431, -1, -1, -1, -14337, -1, -33,
- 127, 0, 0, 0, 0, 0, -8388608, -1, -1, -1, -16385, -1, -1, -1, -1, -1,
- -1, -1, -33, -1, -771751937, -1, -9, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, 33554431, -25, -1, -1, -1, -1, -1, -1,
- -1073676289, -2147483648, 34079999, 2113536, -4825600, -5, -1, -3145729,
- -1, -16777217, -63, -1, -1, -1, -1, -201326593, -1, -1, -1, -1, -1,
- -257, -1, 1073741823, -133122, -1, -1, -65, -1, -1, -1, -1, -1, -1,
- -2146435073, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1073741823, -64, -1,
- -1, -1, -1, -2635777, 134086663, 0, -64, -1, -1, -1, -1, -1, -1, -1,
- -536870927, -131069, -1, -1, -1, -1, -1, -1, -1, -1, -16384, -1,
- -33554433, -1, -1, -1, -1, -1, -1610612737, 524285, -128, -1,
- 2080309247, -1, -1, -1114113, -1, -1, -1, 66977343, -524288, -1, -1, -1,
- -1, -2031617, -1, 114687, -256, -1, -4097, -1, -4097, -1, -1,
- 1010827263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -32768, -1, -1, -1, -1, -1,
- 2147483647, -33554434, -1, -1, -49153, -1148191169, 2147483647,
- -100781080, -262145, -57, 134217727, -8388608, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1048577, -1, -449, -1017, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1835009, -2049, -1, -1, -1, -1, -1, -1,
- -8193, -1, -536870913, -1, -1, -1, -1, -1, -87041, -1, -1, -1, -1, -1,
- -1, -209860, -1023, -8388609, -2096897, -1, -1048577, -1, -1, -1, -1,
- -1, -1, -897, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1610612737,
- -3073, -28673, -1, -1, -1, -1537, -1, -1, -13, -1, -1, -1, -1, -1985,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1056964609, -1, -1, -1,
- -1, -1, -1, -1, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -236716037, -1, -1, -1, -1, -1, -1, -1, -536870913, 3, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -2097153, -2109441, -1, 201326591, -4194304, -1, -1,
- -241, -1, -1, -1, -1, -1, -1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, -32768, -1, -1, -1, -2, -671096835, -1, -8388609, -66323585, -13,
- -1793, -32257, -247809, -1, -1, -513, 16252911, 0, 0, 0, -131072,
- 33554383, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8356095, 0, 0, 0, 0, 0,
- 0, -256, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -268435449, -1, -1, -2049, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 92274627, -65536, -2097153, -268435457, 591191935, 1, 0, -16777216, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 127
- };
- if((modelid >= 0) && ((modelid / 32) < sizeof (modeldat)) && (modeldat[modelid / 32] & (1 << (modelid % 32))))
- {
- return 1;
- }
- if((18632 <= modelid <= 19999) || (11682 <= modelid <= 11753))
- {
- return 1;
- }
- return 0;
- }
- IsPlayerOnline(const name[], &id = INVALID_PLAYER_ID)
- {
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerNameEx(i), name) && PlayerInfo[i][pLogged])
- {
- id = i;
- return 1;
- }
- }
-
- id = INVALID_PLAYER_ID;
- return 0;
- }
- IsPlayerSpawned(playerid)
- {
- switch(GetPlayerState(playerid))
- {
- case PLAYER_STATE_NONE, PLAYER_STATE_WASTED, PLAYER_STATE_SPECTATING:
- {
- return 0;
- }
- }
- return 1;
- }
- IsPlayerAiming(playerid)
- {
- new
- keys,
- ud,
- lr;
- GetPlayerKeys(playerid, keys, ud, lr);
- if((keys & KEY_HANDBRAKE) & KEY_HANDBRAKE && (22 <= GetPlayerWeapon(playerid) <= 38))
- {
- switch(GetPlayerAnimationIndex(playerid))
- {
- case 1160..1167, 360..363, 220, 640, 1189, 1331, 1365, 1453, 1449, 1643:
- {
- return 1;
- }
- }
- }
- return 0;
- }
- IsPointInRangeOfPoint(Float:x1, Float:y1, Float:z1, Float:radius, Float:x2, Float:y2, Float:z2)
- {
- x1 -= x2;
- y1 -= y2;
- z1 -= z2;
- return ((x1 * x1) + (y1 * y1) + (z1 * z1)) < (radius * radius);
- }
- IsVehicleInGarage(vehicleid, garageid)
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetVehiclePos(vehicleid, x, y, z);
- return IsPointInRangeOfPoint(x, y, z, 50.0, garageInteriors[GarageInfo[garageid][gType]][intVX], garageInteriors[GarageInfo[garageid][gType]][intVY], garageInteriors[GarageInfo[garageid][gType]][intVZ]) && GetVehicleVirtualWorld(vehicleid) == GarageInfo[garageid][gWorld];
- }
- IsPlayerInMiningArea(playerid)
- {
- for(new i = 0; i < sizeof(minerPositions); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, minerPositions[i][0], minerPositions[i][1], minerPositions[i][2]))
- {
- return 1;
- }
- }
- return 0;
- }
- FormatNumber(number, money = 1)
- {
- new length, value[32];
- format(value, sizeof(value), "%i", (number < 0) ? (-number) : (number));
- length = strlen(value);
- if(length > 3)
- {
- for(new l = 0, i = length; --i >= 0; l ++)
- {
- if((l % 3 == 0) && l > 0)
- {
- strins(value, ",", i + 1);
- }
- }
- }
- if(money)
- strins(value, "$", 0);
- if(number < 0)
- strins(value, "-", 0);
- return value;
- }
- IsPlayerAtFuelStation(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 12.0, 1004.0070, -939.3102, 42.1797) || IsPlayerInRangeOfPoint(playerid, 12.0, 1944.3260, -1772.9254, 13.3906) || IsPlayerInRangeOfPoint(playerid, 12.0, -90.5515, -1169.4578, 2.4079) || IsPlayerInRangeOfPoint(playerid, 12.0, -1609.7958, -2718.2048, 48.5391)) {
- return 1;
- } else if(IsPlayerInRangeOfPoint(playerid, 12.0, -2029.4968, 156.4366, 28.9498) || IsPlayerInRangeOfPoint(playerid, 12.0, -2408.7590, 976.0934, 45.4175) || IsPlayerInRangeOfPoint(playerid, 12.0, -2243.9629, -2560.6477, 31.8841) || IsPlayerInRangeOfPoint(playerid, 12.0, -1676.6323, 414.0262, 6.9484)) {
- return 1;
- } else if(IsPlayerInRangeOfPoint(playerid, 12.0, 2202.2349, 2474.3494, 10.5258) || IsPlayerInRangeOfPoint(playerid, 12.0, 614.9333, 1689.7418, 6.6968) || IsPlayerInRangeOfPoint(playerid, 12.0, -1328.8250, 2677.2173, 49.7665) || IsPlayerInRangeOfPoint(playerid, 12.0, 70.3882, 1218.6783, 18.5165)) {
- return 1;
- } else if(IsPlayerInRangeOfPoint(playerid, 12.0, 654.9641, -559.7485, 16.5015) || IsPlayerInRangeOfPoint(playerid, 12.0, 654.9617, -570.4176, 16.5015) || IsPlayerInRangeOfPoint(playerid, 12.0, 1382.9899, 461.9903, 20.1245) || IsPlayerInRangeOfPoint(playerid, 12.0, 1380.9395, 457.2494, 19.9260)) {
- return 1;
- } else if(IsPlayerInRangeOfPoint(playerid, 12.0, 1557.7230,-1610.9296,13.3828) || IsPlayerInRangeOfPoint(playerid, 12.0, 1114.8088,-1297.8805,13.5669)) {
- return 1;
- }
- return 0;
- }
- IsPlayerAtFishingPlace(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1.0, 403.8266, -2088.7598, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 398.7553, -2088.7490, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 396.2197, -2088.6692, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 391.1094, -2088.7976, 7.8359)) {
- return 1;
- } else if(IsPlayerInRangeOfPoint(playerid, 1.0, 383.4157, -2088.7849, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 374.9598, -2088.7979, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 369.8107, -2088.7927, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 367.3637, -2088.7925, 7.8359)) {
- return 1;
- } else if(IsPlayerInRangeOfPoint(playerid, 1.0, 362.2244, -2088.7981, 7.8359) || IsPlayerInRangeOfPoint(playerid, 1.0, 354.5382, -2088.7979, 7.8359)) {
- return 1;
- }
- return 0;
- }
- IsPlayerInRangeOfDynamicObject(playerid, objectid, Float:radius)
- {
- if(IsValidDynamicObject(objectid))
- {
- new
- interiorid = Streamer_GetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_INTERIOR_ID),
- worldid = Streamer_GetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID),
- Float:x,
- Float:y,
- Float:z;
- GetDynamicObjectPos(objectid, x, y, z);
- if(interiorid == -1) {
- interiorid = GetPlayerInterior(playerid);
- } if(worldid == -1) {
- worldid = GetPlayerVirtualWorld(playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) && GetPlayerInterior(playerid) == interiorid && GetPlayerVirtualWorld(playerid) == worldid)
- {
- return 1;
- }
- }
- return 0;
- }
- IsPlayerInRangeOfPlayer(playerid, targetid, Float:radius)
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(targetid, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) && GetPlayerInterior(playerid) == GetPlayerInterior(targetid) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(targetid))
- {
- return 1;
- }
- return 0;
- }
- SetMusicStream(type, extraid, url[])
- {
- switch(type)
- {
- case MUSIC_MP3PLAYER:
- {
- if(isnull(url) && PlayerInfo[extraid][pStreamType] == type)
- {
- StopAudioStreamForPlayer(extraid);
- PlayerInfo[extraid][pStreamType] = MUSIC_NONE;
- }
- else
- {
- PlayAudioStreamForPlayer(extraid, url);
- PlayerInfo[extraid][pStreamType] = type;
- }
- }
- case MUSIC_BOOMBOX:
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pBoomboxListen] == extraid)
- {
- if(isnull(url) && PlayerInfo[i][pStreamType] == type)
- {
- StopAudioStreamForPlayer(i);
- PlayerInfo[i][pStreamType] = MUSIC_NONE;
- }
- else if(PlayerInfo[i][pStreamType] == MUSIC_NONE || PlayerInfo[i][pStreamType] == MUSIC_BOOMBOX)
- {
- PlayAudioStreamForPlayer(i, url);
- PlayerInfo[i][pStreamType] = type;
- }
- }
- }
- strcpy(PlayerInfo[extraid][pBoomboxURL], url, 128);
- }
- case MUSIC_VEHICLE:
- {
- foreach(new i : Player)
- {
- if(IsPlayerInVehicle(i, extraid))
- {
- if(isnull(url) && PlayerInfo[i][pStreamType] == type)
- {
- StopAudioStreamForPlayer(i);
- PlayerInfo[i][pStreamType] = MUSIC_NONE;
- }
- else if(PlayerInfo[i][pStreamType] == MUSIC_NONE || PlayerInfo[i][pStreamType] == MUSIC_VEHICLE)
- {
- PlayAudioStreamForPlayer(i, url);
- PlayerInfo[i][pStreamType] = type;
- }
- }
- }
- strcpy(vehicleStream[extraid], url, 128);
- }
- }
- }
- DestroyWeedPlant(playerid)
- {
- if(PlayerInfo[playerid][pWeedPlanted])
- {
- DestroyDynamicObject(PlayerInfo[playerid][pWeedObject]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weedplanted = 0, weedtime = 0, weedgrams = 0, weed_x = 0.0, weed_y = 0.0, weed_z = 0.0, weed_a = 0.0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pWeedPlanted] = 0;
- PlayerInfo[playerid][pWeedTime] = 0;
- PlayerInfo[playerid][pWeedGrams] = 0;
- PlayerInfo[playerid][pWeedX] = 0.0;
- PlayerInfo[playerid][pWeedY] = 0.0;
- PlayerInfo[playerid][pWeedZ] = 0.0;
- PlayerInfo[playerid][pWeedA] = 0.0;
- }
- }
- DestroyBoombox(playerid)
- {
- if(PlayerInfo[playerid][pBoomboxPlaced])
- {
- DestroyDynamicObject(PlayerInfo[playerid][pBoomboxObject]);
- DestroyDynamic3DTextLabel(PlayerInfo[playerid][pBoomboxText]);
- PlayerInfo[playerid][pBoomboxObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pBoomboxText] = Text3D:INVALID_3DTEXT_ID;
- PlayerInfo[playerid][pBoomboxPlaced] = 0;
- PlayerInfo[playerid][pBoomboxURL] = 0;
- }
- }
- GetNearbyBoombox(playerid)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pBoomboxPlaced] && IsPlayerInRangeOfDynamicObject(playerid, PlayerInfo[i][pBoomboxObject], 30.0))
- {
- return i;
- }
- }
- return INVALID_PLAYER_ID;
- }
- SendClientMessageEx(playerid, color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 3)
- {
- SendClientMessage(playerid, color, text);
- }
- else
- {
- while(--args >= 3)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #emit PUSH.S 8
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- SendClientMessage(playerid, color, str);
- #emit RETN
- }
- return 1;
- }
- SendClientMessageToAllEx(color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 2)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged])
- {
- SendClientMessage(i, color, text);
- }
- }
- }
- else
- {
- while(--args >= 2)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #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(PlayerInfo[i][pLogged])
- {
- SendClientMessage(i, color, str);
- }
- }
- #emit RETN
- }
- return 1;
- }
- Log_Write(table[], const text[], {Float,_}:...)
- {
- static
- args,
- str[1024];
- if((args = numargs()) <= 2)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO %e VALUES(null, NOW(), '%e')", table, text);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- while(--args >= 2)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #emit LOAD.S.pri 8
- #emit ADD.C 4
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO %e VALUES(null, NOW(), '%e')", table, str);
- mysql_tquery(connectionID, queryBuffer);
- #emit RETN
- }
- return 1;
- }
- SendFactionMessage(factionid, color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 3)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pFaction] == factionid)
- {
- SendClientMessage(i, color, text);
- }
- }
- }
- else
- {
- while(--args >= 3)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #emit PUSH.S 8
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pFaction] == factionid)
- {
- SendClientMessage(i, color, str);
- }
- }
- #emit RETN
- }
- return 1;
- }
- SendGangMessage(gangid, color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 3)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pGang] == gangid)
- {
- SendClientMessage(i, color, text);
- }
- }
- }
- else
- {
- while(--args >= 3)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #emit PUSH.S 8
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pGang] == gangid)
- {
- SendClientMessage(i, color, str);
- }
- }
- #emit RETN
- }
- return 1;
- }
- SendAdminMessage(color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 2)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pAdmin] > 0)
- {
- SendClientMessage(i, color, text);
- }
- }
- print(text);
- }
- else
- {
- while(--args >= 2)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #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(PlayerInfo[i][pLogged] && PlayerInfo[i][pAdmin] > 0)
- {
- SendClientMessage(i, color, str);
- }
- }
- print(str);
- #emit RETN
- }
- return 1;
- }
- SendHelperMessage(color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 2)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pHelper] > 0)
- {
- SendClientMessage(i, color, text);
- }
- }
- print(text);
- }
- else
- {
- while(--args >= 2)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #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(PlayerInfo[i][pLogged] && PlayerInfo[i][pHelper] > 0)
- {
- SendClientMessage(i, color, str);
- }
- }
- print(str);
- #emit RETN
- }
- return 1;
- }
- SendTurfMessage(turfid, color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 3)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && GetNearbyTurf(i) == turfid)
- {
- SendClientMessage(i, color, text);
- }
- }
- }
- else
- {
- while(--args >= 3)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #emit PUSH.S 8
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && GetNearbyTurf(i) == turfid)
- {
- SendClientMessage(i, color, str);
- }
- }
- #emit RETN
- }
- return 1;
- }
- SendStaffMessage(color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 2)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && (PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pHelper] > 0))
- {
- SendClientMessage(i, color, text);
- }
- }
- print(text);
- }
- else
- {
- while(--args >= 2)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #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(PlayerInfo[i][pLogged] && (PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pHelper] > 0))
- {
- SendClientMessage(i, color, str);
- }
- }
- print(str);
- #emit RETN
- }
- return 1;
- }
- SetPlayerBubbleText(playerid, Float:drawdistance, color, text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 4)
- {
- SetPlayerChatBubble(playerid, text, color, drawdistance, 8000);
- }
- else
- {
- while(--args >= 4)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #emit LOAD.S.pri 8
- #emit CONST.alt 4
- #emit SUB
- #emit PUSH.pri
- #emit SYSREQ.C format
- #emit LCTRL 5
- #emit SCTRL 4
- SetPlayerChatBubble(playerid, str, color, drawdistance, 8000);
- #emit RETN
- }
- return 1;
- }
- SendProximityMessage(playerid, Float:radius, color, const text[], {Float,_}:...)
- {
- static
- args,
- str[192];
- if((args = numargs()) <= 4)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInRangeOfPlayer(i, playerid, radius) || PlayerInfo[i][pListen])
- {
- SendClientMessage(i, color, text);
- }
- }
- }
- else
- {
- while(--args >= 4)
- {
- #emit LCTRL 5
- #emit LOAD.alt args
- #emit SHL.C.alt 2
- #emit ADD.C 12
- #emit ADD
- #emit LOAD.I
- #emit PUSH.pri
- }
- #emit PUSH.S text
- #emit PUSH.C 192
- #emit PUSH.C str
- #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(IsPlayerInRangeOfPlayer(i, playerid, radius) || PlayerInfo[i][pListen])
- {
- SendClientMessage(i, color, str);
- }
- }
- #emit RETN
- }
- return 1;
- }
- SendProximityFadeMessage(playerid, Float:radius, const text[], color1, color2, color3, color4, color5)
- {
- foreach(new i : Player)
- {
- if(IsPlayerInRangeOfPlayer(i, playerid, radius / 16))
- {
- SendClientMessage(i, color1, text);
- }
- else if(IsPlayerInRangeOfPlayer(i, playerid, radius / 8))
- {
- SendClientMessage(i, color2, text);
- }
- else if(IsPlayerInRangeOfPlayer(i, playerid, radius / 4))
- {
- SendClientMessage(i, color3, text);
- }
- else if(IsPlayerInRangeOfPlayer(i, playerid, radius / 2))
- {
- SendClientMessage(i, color4, text);
- }
- else if(IsPlayerInRangeOfPlayer(i, playerid, radius))
- {
- SendClientMessage(i, color5, text);
- }
- else if(PlayerInfo[i][pListen])
- {
- SendClientMessage(i, color5, text);
- }
- }
- }
- // ---------------------------------------
- forward TutorialTimer(playerid, stage);
- public TutorialTimer(playerid, stage)
- {
- if(PlayerInfo[playerid][pLogged] && PlayerInfo[playerid][pTutorial])
- {
- switch(stage)
- {
- case 1:
- {
- PlayerInfo[playerid][pTutorial] = 0;
- PlayerInfo[playerid][pSetup] = 0;
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerPos(playerid, 1562.1936,-1804.8473,13.5622);
- SetPlayerFacingAngle(playerid, 89.9286);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET setup = 0, gender = %i, age = %i, skin = %i WHERE uid = %i", PlayerInfo[playerid][pGender], PlayerInfo[playerid][pAge], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "Welcome to Federal City Roleplay. Make sure to visit our discord for news and updates.");
- SendClientMessage(playerid, COLOR_AQUA, "Use the /locate command to point to locations of jobs, businesses, and common places.");
- SendClientMessage(playerid, COLOR_YELLOW, "[Taxi Driver] : Welcome to Los Angeles, I hope you luck dude!");
-
- //SendClientMessage(playerid, COLOR_AQUA, "The DMV has been marked on your map. Navigate to the marker to begin your drivers test.");
- //PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- //SetPlayerCheckpoint(playerid, 1219.2590, -1812.1093, 16.5938, 3.0);
- }
- }
- }
- }
- /*forward Countdown(playerid, count);
- public Countdown(playerid, count)
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- {
- switch(count)
- {
- case 3:
- {
- GameTextForPlayer(i, "~g~3", 1500, 3);
- PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
- }
- case 2:
- {
- GameTextForPlayer(i, "~g~2", 1500, 3);
- PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
- }
- case 1:
- {
- GameTextForPlayer(i, "~g~1", 1500, 3);
- PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
- }
- case 0:
- {
- GameTextForPlayer(i, "~g~Go! Go! Go!", 2000, 3);
- PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
- }
- }
- }
- }
- count--;
- if(count >= 0)
- {
- SetTimerEx("Countdown", 1000, false, "ii", playerid, count);
- }
- }*/
- #if defined SERVER_INTRO
- forward ShowLoginScreenTextdraw(playerid, type);
- public ShowLoginScreenTextdraw(playerid, type)
- {
- if(type == 1) {
- TextDrawShowForPlayer(playerid, introTextdraws[3]);
- } else if(type == 2) {
- TextDrawShowForPlayer(playerid, introTextdraws[5]);
- } else if(type == 3) {
- TextDrawShowForPlayer(playerid, introTextdraws[19]);
- } else if(type == 4) {
- TextDrawShowForPlayer(playerid, introTextdraws[21]);
- } else if(type == 5) {
- TextDrawShowForPlayer(playerid, introTextdraws[24]);
- } else if(type == 6) {
- TextDrawShowForPlayer(playerid, introTextdraws[25]);
- }
- }
- forward StreamNextStep(playerid, type);
- public StreamNextStep(playerid, type)
- {
- if(!PlayerInfo[playerid][pWatchingIntro])
- {
- return 0;
- }
- switch(type)
- {
- case 0:
- {
- InterpolateCameraPos(playerid, 187.600982, -1791.727050, 119.087432, 193.731567, -1789.235473, 118.845245, 5000);
- InterpolateCameraLookAt(playerid, 189.006942, -1790.279785, 114.512641, 195.057144, -1788.512817, 114.078620, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 1);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[2]);
- TextDrawHideForPlayer(playerid, introTextdraws[3]);
- TextDrawShowForPlayer(playerid, introTextdraws[4]);
- SetTimerEx("ShowLoginScreenTextdraw", 2000, false, "ii", playerid, 2);
- }
- case 1:
- {
- InterpolateCameraPos(playerid, 300.803771, -1753.841796, 59.482250, 332.887237, -1753.466674, 60.534908, 4000);
- InterpolateCameraLookAt(playerid, 302.467315, -1749.504394, 57.633026, 334.005126, -1748.907470, 58.813385, 4000);
- SetTimerEx("StreamNextStep", 4000-600, false, "ii", playerid, 2);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[4]);
- TextDrawHideForPlayer(playerid, introTextdraws[5]);
- TextDrawShowForPlayer(playerid, introTextdraws[6]);
- TextDrawShowForPlayer(playerid, introTextdraws[7]);
- }
- case 2:
- {
- InterpolateCameraPos(playerid, 350.840972, -1794.716308, 13.146982, 346.193756, -1800.415649, 10.697548, 8000);
- InterpolateCameraLookAt(playerid, 348.053558, -1790.653564, 12.295993, 342.141357, -1797.657592, 9.712170, 8000);
- SetTimerEx("StreamNextStep", 8000-600, false, "ii", playerid, 3);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[6]);
- TextDrawHideForPlayer(playerid, introTextdraws[7]);
- TextDrawShowForPlayer(playerid, introTextdraws[8]);
- TextDrawShowForPlayer(playerid, introTextdraws[9]);
- TextDrawShowForPlayer(playerid, introTextdraws[10]);
- TextDrawShowForPlayer(playerid, introTextdraws[11]);
- }
- case 3:
- {
- InterpolateCameraPos(playerid, 169.602859, -1775.647705, 6.933395, 169.617141, -1776.156250, 12.790164, 5000);
- InterpolateCameraLookAt(playerid, 169.547332, -1770.651367, 7.117267, 169.588928, -1771.159301, 12.618641, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 4);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[8]);
- TextDrawHideForPlayer(playerid, introTextdraws[9]);
- TextDrawHideForPlayer(playerid, introTextdraws[10]);
- TextDrawHideForPlayer(playerid, introTextdraws[11]);
- TextDrawShowForPlayer(playerid, introTextdraws[12]);
- TextDrawShowForPlayer(playerid, introTextdraws[13]);
- }
- case 4:
- {
- InterpolateCameraPos(playerid, 386.273284, -2030.129516, 59.993469, 395.822113, -2044.595703, 59.993469, 5000);
- InterpolateCameraLookAt(playerid, 386.591949, -2029.832275, 55.012496, 396.252319, -2044.526245, 55.012496, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 5);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[12]);
- TextDrawHideForPlayer(playerid, introTextdraws[13]);
- TextDrawShowForPlayer(playerid, introTextdraws[14]);
- TextDrawShowForPlayer(playerid, introTextdraws[15]);
- }
- case 5:
- {
- InterpolateCameraPos(playerid, 341.018402, -2095.904052, 6.937077, 342.805603, -2096.498535, 6.648118, 5000);
- InterpolateCameraLookAt(playerid, 345.258972, -2093.501220, 5.821543, 347.304443, -2094.563964, 5.639461, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 6);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[14]);
- TextDrawHideForPlayer(playerid, introTextdraws[15]);
- TextDrawShowForPlayer(playerid, introTextdraws[16]);
- TextDrawShowForPlayer(playerid, introTextdraws[17]);
- }
- case 6:
- {
- InterpolateCameraPos(playerid, 481.641052, -1804.006835, 6.803627, 484.250549, -1802.375244, 6.660738, 5000);
- InterpolateCameraLookAt(playerid, 485.734344, -1801.318481, 5.794973, 488.679290, -1800.236572, 5.759444, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 7);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[16]);
- TextDrawHideForPlayer(playerid, introTextdraws[17]);
- TextDrawShowForPlayer(playerid, introTextdraws[18]);
- SetTimerEx("ShowLoginScreenTextdraw", 2000, false, "ii", playerid, 3);
- //TextDrawShowForPlayer(playerid, introTextdraws[19]);
- }
- case 7:
- {
- InterpolateCameraPos(playerid, 662.689147, -1868.981201, 6.513285, 665.048583, -1870.174438, 6.864079, 5000);
- InterpolateCameraLookAt(playerid, 658.142028, -1867.027709, 5.800874, 661.006286, -1867.294311, 6.260089, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 8);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[18]);
- TextDrawHideForPlayer(playerid, introTextdraws[19]);
- TextDrawShowForPlayer(playerid, introTextdraws[20]);
- SetTimerEx("ShowLoginScreenTextdraw", 2000, false, "ii", playerid, 4);
- //TextDrawShowForPlayer(playerid, introTextdraws[21]);
- }
- case 8:
- {
- InterpolateCameraPos(playerid, 542.343933, -1901.457519, 2.008791, 544.523376, -1901.883666, 2.085470, 5000);
- InterpolateCameraLookAt(playerid, 544.995666, -1897.256958, 2.577868, 546.892395, -1897.521118, 2.681705, 5000);
- SetTimerEx("StreamNextStep", 4500, false, "ii", playerid, 9);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[20]);
- TextDrawHideForPlayer(playerid, introTextdraws[21]);
- TextDrawShowForPlayer(playerid, introTextdraws[22]);
- }
- case 9:
- {
- InterpolateCameraPos(playerid, 542.945800, -1863.699707, 4.435829, 539.996215, -1863.695556, 4.304386, 7000);
- InterpolateCameraLookAt(playerid, 537.950744, -1863.694213, 4.213245, 535.009887, -1863.990478, 4.081802, 7000);
- SetTimerEx("StreamNextStep", 6500, false, "ii", playerid, 10);
- ClearChat(playerid);
- TextDrawHideForPlayer(playerid, introTextdraws[22]);
- TextDrawShowForPlayer(playerid, introTextdraws[23]);
- SetTimerEx("ShowLoginScreenTextdraw", 1000, false, "ii", playerid, 5);
- SetTimerEx("ShowLoginScreenTextdraw", 3000, false, "ii", playerid, 6);
- }
- case 10:
- {
- for(new i = 0; i < 26; i ++)
- {
- TextDrawHideForPlayer(playerid, introTextdraws[i]);
- }
- SetPlayerVirtualWorld(playerid, 0);
- ShowMainMenuCamera(playerid, 0);
- ShowDialogToPlayer(playerid, DIALOG_REGISTER);
- }
- }
- return 1;
- }
- #endif
- forward GrandTheftAutoV(playerid, step, Float:x, Float:y, Float:z, Float:angle, Float:cx, Float:cy, Float:cz);
- public GrandTheftAutoV(playerid, step, Float:x, Float:y, Float:z, Float:angle, Float:cx, Float:cy, Float:cz)
- {
- if(PlayerInfo[playerid][pLogged])
- {
- SetPlayerCameraLookAt(playerid, x, y, z);
- switch(step)
- {
- case 1:
- {
- SetPlayerCameraPos(playerid, x, y, z + 100.0);
- PlayerPlaySound(playerid, 16200, 0.0, 0.0, 0.0);
- SetTimerEx("GrandTheftAutoV", 1000, false, "iifffffff", playerid, 2, x, y, z, angle, cx, cy, cz);
- }
- case 2:
- {
- SetPlayerCameraPos(playerid, x, y, z + 50.0);
- PlayerPlaySound(playerid, 16200, 0.0, 0.0, 0.0);
- SetTimerEx("GrandTheftAutoV", 1000, false, "iifffffff", playerid, 3, x, y, z, angle, cx, cy, cz);
- }
- case 3:
- {
- SetPlayerCameraPos(playerid, x, y, z + 25.0);
- PlayerPlaySound(playerid, 16200, 0.0, 0.0, 0.0);
- SetTimerEx("GrandTheftAutoV", 1000, false, "iifffffff", playerid, 4, x, y, z, angle, cx, cy, cz);
- }
- case 4:
- {
- InterpolateCameraPos(playerid, cx, cy, cz + 25.0, cx, cy, cz, 1000);
- InterpolateCameraLookAt(playerid, x + 4.0 * floatsin(-angle, degrees), y + 4.0 * floatcos(-angle, degrees), z, x, y, z + 0.6, 1000);
- SetTimerEx("GrandTheftAutoV", 1500, false, "iifffffff", playerid, 5, x, y, z, angle, cx, cy, cz);
- }
- case 5:
- {
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- PlayerInfo[playerid][pLoginCamera] = 0;
- }
- }
- }
- }
- forward SpectateUpdate(playerid, targetid);
- public SpectateUpdate(playerid, targetid)
- {
- if(PlayerInfo[playerid][pSpectating] == targetid)
- {
- SetPlayerInterior(playerid, GetPlayerInterior(targetid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(targetid));
- if(IsPlayerInAnyVehicle(targetid))
- {
- PlayerSpectateVehicle(playerid, GetPlayerVehicleID(targetid));
- }
- else
- {
- PlayerSpectatePlayer(playerid, targetid);
- }
- }
- }
- forward OnPlayerUseCarStorage(playerid);
- public OnPlayerUseCarStorage(playerid)
- {
- new vehicleid = GetVehicleLinkedID(cache_get_field_content_int(0, "id"));
- if(vehicleid != INVALID_VEHICLE_ID)
- {
- if(IsVehicleOccupied(vehicleid) && GetVehicleDriver(vehicleid) != playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle is occupied.");
- }
- else
- {
- new
- Float:health;
- GetVehicleHealth(vehicleid, health);
- if(health < 600.0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle is too damaged to be despawned.");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "Your {FF6347}%s{33CCFF} which is located in %s has been despawned.", GetVehicleName(vehicleid), GetVehicleZoneName(vehicleid));
- DespawnVehicle(vehicleid);
- }
- }
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM vehicles WHERE id = %i AND ownerid = %i", cache_get_field_content_int(0, "id"), PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerSpawnVehicle", "ii", playerid, false);
- }
- }
- forward UnfreezeNewbie(playerid);
- public UnfreezeNewbie(playerid)
- {
- TogglePlayerControllable(playerid, 1);
- }
- forward VehicleUnfreeze(playerid, vehicleid, Float:x, Float:y, Float:z, interior, world);
- public VehicleUnfreeze(playerid, vehicleid, Float:x, Float:y, Float:z, interior, world)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsPlayerInRangeOfPoint(playerid, 100.0, x, y, z) && GetPlayerInterior(playerid) == interior && GetPlayerVirtualWorld(playerid) == world)
- {
- SetVehiclePos(vehicleid, x, y, z);
- }
- TogglePlayerControllable(playerid, 1);
- }
- forward UnfreezePlayer(playerid, Float:x, Float:y, Float:z);
- public UnfreezePlayer(playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
- {
- SetPlayerPos(playerid, x, y, z);
- TogglePlayerControllable(playerid, 1);
- }
- }
- forward DestroyWater(objectid);
- public DestroyWater(objectid)
- {
- DestroyDynamicObject(objectid);
- }
- forward SecondTimer();
- public SecondTimer()
- {
- new hour, minute, boomboxid, string[128];
- gettime(hour, minute);
- if((gGMX) && mysql_unprocessed_queries(connectionID) == 0)
- {
- SendRconCommand("gmx");
- }
- foreach(new i : Player)
- {
- //SetPlayerTime(i, hour, minute);
- if(PlayerInfo[i][pLogged] && !PlayerInfo[i][pKicked])
- {
- AFKCheck(i);
- /*if(!PlayerInfo[i][pJoinedEvent] &&(!PlayerInfo[i][pPaintball] && !PlayerInfo[i][pAwaitingGuns])
- if(!PlayerInfo[i][pPaintball])
- {
- for(new x = 0; x < 13; x ++)
- {
- new weapon, ammo;
- if(PlayerInfo[i][pWeapons][x] > 0)
- {
- GetPlayerWeaponData(i, x, weapon, ammo);
- if(ammo <= 0)
- {
- PlayerInfo[i][pWeapons][x] = 0;
- PlayerInfo[i][
- ;
- }
- }
- }
- }*/
- if(PlayerInfo[i][pLoopAnim] && !PlayerInfo[i][pToggleTextdraws]) {
- TextDrawShowForPlayer(i, AnimationTD);
- } else {
- TextDrawHideForPlayer(i, AnimationTD);
- }
-
- if(PlayerInfo[i][pShipment] >= 0)
- {
- if((GetPlayerState(i) == PLAYER_STATE_DRIVER) && (GetVehicleModel(GetPlayerVehicleID(i)) != 414 && GetVehicleModel(GetPlayerVehicleID(i)) != 498))
- {
- PlayerInfo[i][pShipment] = -1;
- SendClientMessage(i, COLOR_GREY, "Shipment cancelled. You went into another vehicle.");
- }
- }
-
- if(PlayerInfo[i][pPizzas] > 0 && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- if(GetVehicleModel(GetPlayerVehicleID(i)) == 448)
- {
- if(PlayerInfo[i][pPizzaTime] < 90)
- {
- PlayerInfo[i][pPizzaTime]++;
- }
- }
- else
- {
- PlayerInfo[i][pPizzas] = 0;
- PlayerInfo[i][pCP] = 0;
-
- DisablePlayerCheckpoint(i);
- SendClientMessage(i, COLOR_GREY, "Pizza delivery cancelled. You went into another vehicle.");
- }
- }
-
- if(!PlayerInfo[i][pToggleTextdraws])
- {
- if(PlayerInfo[i][pGPSOn])
- {
- if(GetPlayerState(i) == PLAYER_STATE_SPECTATING)
- PlayerTextDrawHide(i, PlayerInfo[i][pText][0]);
- else
- PlayerTextDrawSetString(i, PlayerInfo[i][pText][0], GetPlayerZoneName(i));
- }
- if(PlayerInfo[i][pWatchOn])
- {
- if(GetPlayerState(i) == PLAYER_STATE_SPECTATING)
- TextDrawHideForPlayer(i, TimeTD);
- else
- TextDrawShowForPlayer(i, TimeTD);
- }
- if(!PlayerInfo[i][pToggleHUD])
- {
- if(GetPlayerState(i) == PLAYER_STATE_SPECTATING)
- {
- PlayerTextDrawHide(i, PlayerInfo[i][pText][3]);
- PlayerTextDrawHide(i, PlayerInfo[i][pText][4]);
- }
- else
- {
- PlayerTextDrawShow(i, PlayerInfo[i][pText][3]);
- PlayerTextDrawShow(i, PlayerInfo[i][pText][4]);
- }
- }
- }
-
- /*if(NetStats_PacketLossPercent(i) > 20.0 && gettime() - PlayerInfo[i][pLastDesync] > 120)
- {
- GameTextForPlayer(i, "You are desynced. Please relog once you see this message.", 10000, 6);
- PlayerInfo[i][pLastDesync] = gettime();
- }*/
-
- if(PlayerInfo[i][pSpectating] != INVALID_PLAYER_ID)
- {
- if(GetPlayerInterior(i) != GetPlayerInterior(PlayerInfo[i][pSpectating])) SetPlayerInterior(i, GetPlayerInterior(PlayerInfo[i][pSpectating]));
- if(GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(PlayerInfo[i][pSpectating])) SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(PlayerInfo[i][pSpectating]));
- }
- if(PlayerInfo[i][pTutorial])
- {
- TogglePlayerControllable(i, 0);
- }
- if(PlayerInfo[i][pAwaitingClothing])
- {
- SetPlayerClothing(i);
- }
- if(PlayerInfo[i][pDraggedBy] != INVALID_PLAYER_ID)
- {
- TeleportToPlayer(i, PlayerInfo[i][pDraggedBy]);
- }
- if(PlayerInfo[i][pVIPPackage] > 0 && gettime() > PlayerInfo[i][pVIPTime])
- {
- PlayerInfo[i][pVIPPackage] = 0;
- PlayerInfo[i][pVIPTime] = 0;
- PlayerInfo[i][pSecondJob] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET vippackage = 0, viptime = 0, secondjob = -1 WHERE uid = %i", PlayerInfo[i][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(i, COLOR_LIGHTRED, "Your VIP subscription has expired. You are no longer a VIP.");
- }
- if(PlayerInfo[i][pVIPPackage] < 2 && PlayerInfo[i][pSecondJob] != JOB_NONE)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET secondjob = -1 WHERE uid = %i", PlayerInfo[i][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- PlayerInfo[i][pSecondJob] = JOB_NONE;
- SendClientMessage(i, COLOR_LIGHTRED, "Your second job has been removed as you aren't a Limitless+ VIP.");
- }
- if(PlayerInfo[i][pFirstAid])
- {
- new
- Float:health;
- GetPlayerHealth(i, health);
- if((health + 1.0) > 100.0)
- {
- SetPlayerHealth(i, 100.0);
- PlayerInfo[i][pFirstAid] = 0;
- }
- else
- {
- SetPlayerHealth(i, health + 1.0);
- }
- }
- if(PlayerInfo[i][pTazedTime] > 0)
- {
- PlayerInfo[i][pTazedTime]--;
- if(!PlayerInfo[i][pTazedTime])
- {
- ClearAnimations(i, 1);
- TogglePlayerControllable(i, 1);
- }
- }
- if(PlayerInfo[i][pFishTime] > 0)
- {
- PlayerInfo[i][pFishTime]--;
- if(!IsPlayerAtFishingPlace(i))
- {
- ClearAnimations(i, 1);
- RemovePlayerAttachedObject(i, 9);
- PlayerInfo[i][pFishTime] = 0;
- }
- else if(PlayerInfo[i][pFishTime] <= 0 && IsPlayerAtFishingPlace(i))
- {
- new rand = Random(1, 100);
- if(1 <= rand <= 20)
- {
- SendClientMessage(i, COLOR_GREY, "You reeled in your line and caught nothing...");
- }
- else if(21 <= rand <= 30)
- {
- new amount = 50 + random(100);
- SendClientMessageEx(i, COLOR_AQUA, "You reeled in your line and caught a used wallet with {00AA00}$%i{33CCFF} inside.", amount);
- GivePlayerCash(i, amount);
- }
- else if(98 <= rand <= 99)
- {
- new amount = random(2000) + 1000;
- SendClientMessageEx(i, COLOR_AQUA, "You reeled in your line and caught a rare 18th century coin valued at {00AA00}$%i{33CCFF}!", amount);
- GivePlayerCash(i, amount);
- }
- else
- {
- new weight, level = GetJobLevel(i, JOB_FISHERMAN);
- if(PlayerInfo[i][pUsedBait]) {
- weight = random(40) + (level * 10);
- } else {
- weight = random(15) + (level * 10);
- }
- SendClientMessageEx(i, COLOR_AQUA, "You reeled in your line and caught a fish weighing %i kg!", weight);
- PlayerInfo[i][pFishWeight] += weight;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishweight = %i WHERE uid = %i", PlayerInfo[i][pFishWeight], PlayerInfo[i][pID]);
- mysql_tquery(connectionID, queryBuffer);
- IncreaseJobSkill(i, JOB_FISHERMAN);
- if(PlayerInfo[i][pFishWeight] >= 1000)
- {
- SendClientMessage(i, COLOR_YELLOW, "You have too much fish. You can continue fishing once you sell your load.");
- }
- }
- ClearAnimations(i, 1);
- RemovePlayerAttachedObject(i, 9);
- }
- }
- if(PlayerInfo[i][pJailType] > 0)
- {
- PlayerInfo[i][pJailTime]--;
- if(PlayerInfo[i][pJailTime] <= 0)
- {
- ResetPlayerWeaponsEx(i);
- SendClientMessage(i, COLOR_GREY2, "Your jail sentence has expired.");
- SetPlayerPos(i, 1544.4407, -1675.5522, 13.5584);
- SetPlayerFacingAngle(i, 90.0000);
- SetPlayerInterior(i, 0);
- SetPlayerVirtualWorld(i, 0);
- SetCameraBehindPlayer(i);
- PlayerInfo[i][pJailType] = 0;
- PlayerInfo[i][pJailTime] = 0;
- }
- }
- if(PlayerInfo[i][pEditType] > 0 && IsValidDynamicObject(PlayerInfo[i][pEditObject]) && !IsPlayerInRangeOfDynamicObject(i, PlayerInfo[i][pEditObject], 50.0))
- {
- if(PlayerInfo[i][pEditType] == EDIT_FURNITURE_PREVIEW)
- {
- SendClientMessage(i, COLOR_GREY2, "You left the editing area. Furniture previewing cancelled.");
- DestroyDynamicObject(PlayerInfo[i][pEditObject]);
- }
- else if(PlayerInfo[i][pEditType] == EDIT_FURNITURE)
- {
- ReloadFurniture(PlayerInfo[i][pEditObject], HouseInfo[PlayerInfo[i][pFurnitureHouse]][hLabels]);
- SendClientMessage(i, COLOR_GREY2, "You left the editing area. Editing mode has been disabled.");
- }
- else if(PlayerInfo[i][pEditType] == EDIT_LAND_OBJECT)
- {
- ReloadLandObject(PlayerInfo[i][pEditObject], LandInfo[PlayerInfo[i][pObjectLand]][lLabels]);
- SendClientMessage(i, COLOR_GREY2, "You left the editing area. Editing mode has been disabled.");
- }
- CancelEdit(i);
- PlayerInfo[i][pEditType] = 0;
- PlayerInfo[i][pEditObject] = INVALID_OBJECT_ID;
- }
- if(PlayerInfo[i][pHospital] && PlayerInfo[i][pHospitalTime])
- {
- PlayerInfo[i][pHospitalTime]--;
- if(PlayerInfo[i][pHospitalTime] == 0)
- {
- SetPlayerPos(i, -10.4534, 149.3639, 999.0613);
- SetPlayerFacingAngle(i, 180.0000);
- SetPlayerInterior(i, 1);
- SetPlayerVirtualWorld(i, random(2) + 1);
- SetCameraBehindPlayer(i);
- GivePlayerCash(i, -250);
- GameTextForPlayer(i, "~w~Discharged~n~~r~-$250", 5000, 1);
- TogglePlayerControllable(i, 1);
- SetPlayerDrunkLevel(i, 0);
- if(PlayerInfo[i][pDelivered])
- {
- SendClientMessage(i, COLOR_DOCTOR, "You have been billed $1000 for your stay. You also keep all of your weapons!");
- PlayerInfo[i][pDelivered] = 0;
- }
- else
- {
- SendClientMessage(i, COLOR_DOCTOR, "You have been billed $1000 for your stay. Your weapons have been confiscated by staff.");
- SendClientMessage(i, COLOR_LIGHTRED, "(( You have lost 30 minutes of your memory. ))");
- }
- SetPlayerHealth(i, PlayerInfo[i][pSpawnHealth]);
- SetScriptArmour(i, PlayerInfo[i][pSpawnArmor]);
- PlayerInfo[i][pHospital] = 0;
- PlayerInfo[i][pHospitalTime] = 0;
- }
- else
- {
- GameTextForPlayer(i, "~w~Recovering...", 1500, 3);
- SetPlayerDrunkLevel(i, 50000);
- }
- }
- if(PlayerInfo[i][pRefuel] != INVALID_VEHICLE_ID)
- {
- PlayerInfo[i][pRefuelAmount] += 2;
- vehicleFuel[PlayerInfo[i][pRefuel]]++;
- if(vehicleFuel[PlayerInfo[i][pRefuel]] >= 100 || PlayerInfo[i][pCash] < PlayerInfo[i][pRefuelAmount] || GetVehicleParams(PlayerInfo[i][pRefuel], VEHICLE_ENGINE))
- {
- AddPointMoney(POINT_FUEL, PlayerInfo[i][pRefuelAmount]);
- GivePlayerCash(i, -PlayerInfo[i][pRefuelAmount]);
- SendClientMessageEx(i, COLOR_AQUA, "You've refilled your vehicle's gas tank for {FF6347}$%i{33CCFF}.", PlayerInfo[i][pRefuelAmount]);
- PlayerInfo[i][pRefuel] = INVALID_VEHICLE_ID;
- PlayerInfo[i][pRefuelAmount] = 0;
- }
- }
- if(PlayerInfo[i][pMiningTime] > 0)
- {
- PlayerInfo[i][pMiningTime]--;
- if(PlayerInfo[i][pMiningTime] <= 0)
- {
- if(IsPlayerInMiningArea(i) && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
- {
- new number = random(10) + 1;
- PlayerInfo[i][pCP] = CHECKPOINT_MINING;
- SetPlayerAttachedObject(i, 9, 3929, 1, 0.242999, 0.324000, 0.012000, -17.200078, 20.699993, 9.800034, 0.579999, 0.617999, 0.676999);
- SetPlayerSpecialAction(i, SPECIAL_ACTION_CARRY);
- ApplyAnimation(i, "CARRY", "liftup", 4.1, 0, 0, 0, 0, 0, 1);
- SetPlayerCheckpoint(i, 1278.0778, -1267.9661, 12.5413, 2.0);
- if(1 <= number <= 7)
- {
- PlayerInfo[i][pMiningRock] = 1;
- SendClientMessage(i, COLOR_AQUA, "You have dug up an ordinary stone. Drop it off at the marker.");
- }
- else
- {
- PlayerInfo[i][pMiningRock] = 2;
- SendClientMessage(i, COLOR_AQUA, "You have dug up a quality stone. Drop it off at the marker.");
- }
- }
- else
- {
- RemovePlayerAttachedObject(i, 9);
- ClearAnimations(i, 1);
- }
- }
- }
- if(PlayerInfo[i][pSweeping] && GetVehicleModel(GetPlayerVehicleID(i)) == 574 && GetVehicleSpeed(GetPlayerVehicleID(i)) > 35.0)
- {
- PlayerInfo[i][pSweepTime]--;
- if(PlayerInfo[i][pSweepTime] <= 0)
- {
- new cost = 200 + random(50);
- AddToPaycheck(i, cost);
- format(string, sizeof(string), "~g~+$%i", cost);
- GameTextForPlayer(i, string, 5000, 1);
- PlayerInfo[i][pSweepEarnings] += cost;
- PlayerInfo[i][pSweepTime] = 30;
- }
- }
- if(PlayerInfo[i][pTaxiPassenger] != INVALID_PLAYER_ID)
- {
- if((GetVehicleModel(GetPlayerVehicleID(i)) != 420 && GetVehicleModel(GetPlayerVehicleID(i)) != 438) || !IsPlayerInVehicle(PlayerInfo[i][pTaxiPassenger], GetPlayerVehicleID(i)) || PlayerInfo[i][pTaxiFare] == 0 || PlayerInfo[PlayerInfo[i][pTaxiPassenger]][pCash] < PlayerInfo[i][pTaxiBill])
- {
- CancelTaxiRide(i);
- }
- else
- {
- PlayerInfo[i][pTaxiTime]++;
- if(PlayerInfo[i][pTaxiTime] >= 15)
- {
- PlayerInfo[i][pTaxiTime] = 0;
- PlayerInfo[i][pTaxiBill] += PlayerInfo[i][pTaxiFare];
- }
- format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~g~Taxi Meter:~w~ $%i", PlayerInfo[i][pTaxiBill]);
- GameTextForPlayer(i, string, 3000, 3);
- }
- }
- if(PlayerInfo[i][pMuted] > 0)
- {
- PlayerInfo[i][pMuted]--;
- if(PlayerInfo[i][pMuted] <= 0)
- {
- SendClientMessage(i, COLOR_GREY, "You are no longer muted.");
- }
- }
- if(PlayerInfo[i][pSpamTime] > 0)
- {
- PlayerInfo[i][pSpamTime]--;
- }
- if(PlayerInfo[i][pVehicleCount] > 0)
- {
- PlayerInfo[i][pVehicleCount]--;
- }
- if(PlayerInfo[i][pMechanicCall] > 0)
- {
- PlayerInfo[i][pMechanicCall]--;
- }
- if(PlayerInfo[i][pTaxiCall] > 0)
- {
- PlayerInfo[i][pTaxiCall]--;
- }
- if(PlayerInfo[i][pEmergencyCall] > 0)
- {
- PlayerInfo[i][pEmergencyCall]--;
- }
- if(PlayerInfo[i][pCourierCooldown] > 0)
- {
- PlayerInfo[i][pCourierCooldown]--;
- }
- if(PlayerInfo[i][pPizzaCooldown] > 0)
- {
- PlayerInfo[i][pPizzaCooldown]--;
- }
- if(PlayerInfo[i][pDetectiveCooldown] > 0)
- {
- PlayerInfo[i][pDetectiveCooldown]--;
- }
- if(PlayerInfo[i][pLootTime] > 0)
- {
- PlayerInfo[i][pLootTime]--;
-
- if(IsPlayerInBankRobbery(i) && PlayerInfo[i][pLootTime] <= 0)
- {
- new amount = random(500) + 500;
-
- ClearAnimations(i, 1);
-
- PlayerInfo[i][pRobCash] += amount;
- PlayerInfo[i][pCP] = CHECKPOINT_ROBBERY;
- PlayerInfo[i][pLastLoad] = gettime();
- format(string, sizeof(string), "~g~+$%i", amount);
- GameTextForPlayer(i, string, 5000, 1);
- SendClientMessageEx(i, COLOR_AQUA, "You have looted {00AA00}$%i{33CCFF} and now have $%i. You can keep looting or deliver the cash to the {FF6347}marker{33CCFF}.", amount, PlayerInfo[i][pRobCash]);
- SetPlayerCheckpoint(i, 1429.9939, 1066.9581, 9.8938, 3.0);
- }
- }
- if(PlayerInfo[i][pFindTime] > 0)
- {
- PlayerInfo[i][pFindTime]--;
-
- if(PlayerInfo[i][pFindTime] == 0)
- {
- SetPlayerMarkerForPlayer(i, PlayerInfo[i][pFindPlayer], GetPlayerColor(PlayerInfo[i][pFindPlayer]));
- PlayerInfo[i][pFindPlayer] = INVALID_PLAYER_ID;
- }
- }
- if((PlayerInfo[i][pToggleMusic]) || (PlayerInfo[i][pBoomboxListen] != INVALID_PLAYER_ID && GetNearbyBoombox(i) != PlayerInfo[i][pBoomboxListen]))
- {
- PlayerInfo[i][pBoomboxListen] = INVALID_PLAYER_ID;
- if(PlayerInfo[i][pStreamType] == MUSIC_BOOMBOX)
- {
- StopAudioStreamForPlayer(i);
- PlayerInfo[i][pStreamType] = MUSIC_NONE;
- }
- }
- if((!PlayerInfo[i][pToggleMusic]) && ((boomboxid = GetNearbyBoombox(i)) != INVALID_PLAYER_ID && PlayerInfo[i][pBoomboxListen] != boomboxid))
- {
- PlayerInfo[i][pBoomboxListen] = boomboxid;
- if(PlayerInfo[i][pStreamType] == MUSIC_NONE)
- {
- PlayAudioStreamForPlayer(i, PlayerInfo[boomboxid][pBoomboxURL]);
- PlayerInfo[i][pStreamType] = MUSIC_BOOMBOX;
- }
- }
- if(PlayerInfo[i][pPickPlant] != INVALID_PLAYER_ID)
- {
- PlayerInfo[i][pPickTime]--;
- if(PlayerInfo[i][pPickTime] <= 0)
- {
- new planterid = PlayerInfo[i][pPickPlant];
- if(!IsPlayerConnected(planterid) || !PlayerInfo[planterid][pLogged] || !PlayerInfo[planterid][pWeedPlanted])
- {
- SendClientMessage(i, COLOR_GREY, "This plant is no longer available to pick.");
- }
- else if(!IsPlayerInRangeOfPoint(i, 3.0, PlayerInfo[planterid][pWeedX], PlayerInfo[planterid][pWeedY], PlayerInfo[planterid][pWeedZ]))
- {
- SendClientMessage(i, COLOR_GREY, "Picking failed. You left the area of the plant.");
- }
- else if(GetPlayerSpecialAction(i) != SPECIAL_ACTION_DUCK)
- {
- SendClientMessage(i, COLOR_GREY, "Picking failed. You must stay crouched when picking a plant.");
- }
- else
- {
- PlayerInfo[i][pWeed] += PlayerInfo[planterid][pWeedGrams];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[i][pWeed], PlayerInfo[i][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(i, COLOR_AQUA, "You have harvested %i grams of weed from this plant.", PlayerInfo[planterid][pWeedGrams]);
- DestroyWeedPlant(planterid);
- }
- PlayerInfo[i][pPickPlant] = INVALID_PLAYER_ID;
- PlayerInfo[i][pPickTime] = 0;
- }
- }
- if(PlayerInfo[i][pCookMeth] > 0)
- {
- PlayerInfo[i][pCookTime]--;
- if(PlayerInfo[i][pCookTime] <= 0)
- {
- if(!IsPlayerInRangeOfPoint(i, 5.0, 1.2179, 2.8095, 999.4284))
- {
- SendClientMessage(i, COLOR_GREY, "Cooking failed. You have left the cooking spot.");
- ResetCooking(i);
- }
- else if(PlayerInfo[i][pEphedrine] <= 0)
- {
- SendClientMessage(i, COLOR_GREY, "Cooking failed. You have ran out of ephedrine.");
- ResetCooking(i);
- }
- else if(PlayerInfo[i][pMeth] + 2 > GetPlayerCapacity(i, CAPACITY_METH))
- {
- SendClientMessage(i, COLOR_GREY, "Cooking failed. You have ran out of inventory space for meth.");
- ResetCooking(i);
- }
- else
- {
- GameTextForPlayer(i, "~g~+2~w~ grams of meth", 3000, 3);
- PlayerInfo[i][pEphedrine] -= 1;
- PlayerInfo[i][pMeth] += 2;
- PlayerInfo[i][pCookGrams] += 2;
- if((PlayerInfo[i][pCookGrams] % 4) == 0)
- {
- PlayerInfo[i][pMuriaticAcid]--;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i, meth = %i, muriaticacid = %i WHERE uid = %i", PlayerInfo[i][pEphedrine], PlayerInfo[i][pMeth], PlayerInfo[i][pMuriaticAcid], PlayerInfo[i][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(!PlayerInfo[i][pEphedrine])
- {
- SendClientMessageEx(i, COLOR_LIGHTRED, "You ran out of ephedrine therefore ending your cookoff. You made %i grams of meth from %i grams of ephedrine.", PlayerInfo[i][pCookGrams], PlayerInfo[i][pCookGrams] / 2);
- ResetCooking(i);
- }
- else if(!PlayerInfo[i][pMuriaticAcid])
- {
- SendClientMessageEx(i, COLOR_LIGHTRED, "You ran out of muriatic acid therefore ending your cookoff. You made %i grams of meth from %i grams of ephedrine.", PlayerInfo[i][pCookGrams], PlayerInfo[i][pCookGrams] / 2);
- ResetCooking(i);
- }
- else if(PlayerInfo[i][pMeth] >= GetPlayerCapacity(i, CAPACITY_METH))
- {
- SendClientMessageEx(i, COLOR_LIGHTRED, "You ran out of inventory space for meth therefore ending your cookoff. You made %i grams of meth from %i grams of ephedrine.", PlayerInfo[i][pCookGrams], PlayerInfo[i][pCookGrams] / 2);
- ResetCooking(i);
- }
- else
- {
- PlayerInfo[i][pCookTime] = 15;
- }
- }
- }
- }
- if(PlayerInfo[i][pDrugsUsed] >= 4)
- {
- PlayerInfo[i][pDrugsTime]--;
- if(PlayerInfo[i][pDrugsTime] <= 0)
- {
- SendClientMessage(i, COLOR_GREY, "You are no longer stoned.");
- SetPlayerWeather(i, gWeather);
- SetPlayerTime(i, gWorldTime, 0);
- SetPlayerDrunkLevel(i, 500);
- PlayerInfo[i][pDrugsUsed] = 0;
- PlayerInfo[i][pDrugsTime] = 0;
- }
- else
- {
- SetPlayerWeather(i, -66);
- SetPlayerTime(i, 12, 0);
- SetPlayerDrunkLevel(i, 40000);
- }
- }
- if(PlayerInfo[i][pCapturingPoint] >= 0)
- {
- PlayerInfo[i][pCaptureTime]--;
- if(PlayerInfo[i][pCaptureTime] <= 0)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(i, x, y, z);
- if(PointInfo[PlayerInfo[i][pCapturingPoint]][pTime] == 0 && PlayerInfo[i][pPointX] == x && PlayerInfo[i][pPointY] == y && PlayerInfo[i][pPointZ] == z)
- {
- SendClientMessageToAllEx(COLOR_YELLOW, "Point wars: %s attempted to capture %s for %s. It will be theirs in 15 minutes.", GetPlayerRPName(i), PointInfo[PlayerInfo[i][pCapturingPoint]][pName], GangInfo[PlayerInfo[i][pGang]][gName]);
- PointInfo[PlayerInfo[i][pCapturingPoint]][pCaptureTime] = 15;
- PointInfo[PlayerInfo[i][pCapturingPoint]][pCapturer] = i;
- }
- else
- {
- SendClientMessage(i, COLOR_GREY, "You moved from your position and therefore failed to capture.");
- }
- PlayerInfo[i][pCapturingPoint] = -1;
- PlayerInfo[i][pCaptureTime] = 0;
- }
- }
- if(PlayerInfo[i][pPoisonTime] > 0)
- {
- new
- Float:health;
- GetPlayerHealth(i, health);
- SetPlayerHealth(i, health - 3.0 < 1.0 ? 1.0 : health - 3.0);
- PlayerInfo[i][pPoisonTime]--;
- }
- AnticheatCheck(i);
- //GetPlayerHealth(i, PlayerInfo[i][pHealth]);
- if(!PlayerInfo[i][pBackup] && !IsPlayerBeingFound(i))
- {
- // Yeah, this is indeed a mess. But it works. Cleaning this section is on my list.
- /*if(PlayerInfo[i][pJoinedEvent] && EventInfo[eType] == 2) {
- SetPlayerColor(i, (PlayerInfo[i][pEventTeam] == RED_TEAM) ? (0xFF000000) : (0x0000FF00));
- } else*/if(PlayerInfo[i][pJailType] == 2) {
- SetPlayerColor(i, 0xF4A41900);
- } else if(PlayerInfo[i][pFaction] >= 0 && PlayerInfo[i][pDuty] && FactionInfo[PlayerInfo[i][pFaction]][fType] != FACTION_HITMAN) {
- SetPlayerColor(i, FactionInfo[PlayerInfo[i][pFaction]][fColor] & ~0xff);
- //} else if(PlayerInfo[i][pFaction] >= 0 && PlayerInfo[i][pDuty] == 0 && FactionInfo[PlayerInfo[i][pFaction]][fType] != FACTION_HITMAN && FactionInfo[PlayerInfo[i][pFaction]][fType] != FACTION_POLICE && FactionInfo[PlayerInfo[i][pFaction]][fType] != FACTION_MEDIC) {
- //SetPlayerColor(i, FactionInfo[PlayerInfo[i][pFaction]][fColor] & ~0xff);
- } else if(PlayerInfo[i][pGang] >= 0 && PlayerInfo[i][pBandana]) {
- SetPlayerColor(i, GangInfo[PlayerInfo[i][pGang]][gColor] & ~0xff);
- } else if(PlayerHasJob(i, JOB_TAXIDRIVER) && PlayerInfo[i][pTaxiFare] > 0) {
- SetPlayerColor(i, 0xFFD70000);
- } else if(PlayerInfo[i][pVIPPackage] > 0 && PlayerInfo[i][pVIPColor]) {
- SetPlayerColor(i, 0xA028AD00);
- //} else if(PlayerInfo[i][pAdmin] > 0 && PlayerInfo[i][pAdminDuty]) {
- //SetPlayerColor(i, 0xAA333300); // 0xFFD70000
- } else {
- SetPlayerColor(i, 0xFFFFFF00);
- }
- }
- }
- }
- for(new i = 0; i < MAX_ACTORS; i ++)
- {
- if(IsValidActor(i))
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetActorPos(i, x, y, z);
- SetActorPos(i, x, y, z);
- }
- }
- format(string, sizeof(string), "Raw ephedrine\nStock: %i\nPrice: $2000/gram\n/buydrug ephedrine [amount]", gEphedrineStock);
- UpdateDynamic3DTextLabelText(gEphedrineStockText, COLOR_YELLOW, string);
- format(string, sizeof(string), "Marijuana seeds\nStock: %i\nPrice: $750/seed\n/buydrug seeds [amount]", gSeedsStock);
- UpdateDynamic3DTextLabelText(gSeedsStockText, COLOR_YELLOW, string);
- format(string, sizeof(string), "Cocaine\nStock: %i\nPrice: $1000/gram\n/buydrug cocaine [amount]", gCocaineStock);
- UpdateDynamic3DTextLabelText(gCocaineText, COLOR_YELLOW, string);
- if(Iter_Count(Player) > gPlayerRecord)
- {
- gPlayerRecord = Iter_Count(Player);
- gRecordDate = GetDate();
- SaveServerInfo();
- }
- }
- forward MinuteTimer();
- public MinuteTimer()
- {
- new hour;
- gettime(.hour = hour);
- RefreshTime();
- if(gHour != hour)
- {
- SendClientMessageToAllEx(COLOR_WHITE, "Federal City Roleplay: The time is now {AFAFAF}%02d:00{FFFFFF}.", hour);
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && !PlayerInfo[i][pKicked])
- {
- if(PlayerInfo[i][pAFK] && PlayerInfo[i][pAFKTime] > 900)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "You didn't receive a paycheck this hour as you were AFK for more than 15 minutes.");
- }
- else if(PlayerInfo[i][pMinutes] < 25)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "You are ineligible for a paycheck as you played less than 25 minutes this hour.");
- }
- else
- {
- SendPaycheck(i);
- }
- if(PlayerInfo[i][pReportMuted])
- {
- PlayerInfo[i][pReportMuted]--;
- if(PlayerInfo[i][pReportMuted] <= 0)
- {
- PlayerInfo[i][pReportMuted] = 0;
- PlayerInfo[i][pReportWarns] = 0;
- SendClientMessage(i, COLOR_YELLOW, "Your report mute has automatically been lifted.");
- }
- }
- }
- }
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists])
- {
- if(PointInfo[i][pTime] > 0)
- {
- PointInfo[i][pTime]--;
- ReloadPoint(i);
- }
- if(!PointInfo[i][pTime])
- {
- SendClientMessageToAllEx(COLOR_YELLOW, "Point wars: %s is now available to capture.", PointInfo[i][pName]);
- PointInfo[i][pCapturedGang] = -1;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET time = %i, capturedgang = %i WHERE id = %i", PointInfo[i][pTime], PointInfo[i][pCapturedGang], i);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists])
- {
- if(TurfInfo[i][tTime] > 0)
- {
- TurfInfo[i][tTime]--;
- ReloadTurf(i);
- }
- if(!TurfInfo[i][tTime] && TurfInfo[i][tType] != 8)
- {
- SendTurfMessage(i, COLOR_YELLOW, "Turf wars: %s is now available to capture.", TurfInfo[i][tName]);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET time = %i WHERE id = %i", TurfInfo[i][tTime], i);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- switch(hour)
- {
- case 0, 6, 12, 18:
- {
- for(new i = 0; i < MAX_GANGS; i ++)
- {
- if(GangInfo[i][gSetup] && GangInfo[i][gTurfTokens] < 10)
- {
- GangInfo[i][gTurfTokens]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET turftokens = turftokens + 1 WHERE id = %i", i);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
-
- for(new i = 0; i < MAX_FACTIONS; i ++)
- {
- if(FactionInfo[i][fType] == FACTION_POLICE && FactionInfo[i][fTurfTokens] < 3)
- {
- FactionInfo[i][fTurfTokens]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET turftokens = turftokens + 1 WHERE id = %i", i);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- }
- if(RobberyInfo[rTime] > 0)
- {
- RobberyInfo[rTime]--;
- }
- SetWorldTime(hour);
- gWorldTime = hour;
- gHour = hour;
- gCharityHealth = 0;
- gCharityArmor = 0;
- }
- else
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWeedPlanted] && PlayerInfo[i][pWeedTime] > 0)
- {
- PlayerInfo[i][pWeedTime]--;
- if((PlayerInfo[i][pWeedTime] % 2) == 0)
- {
- PlayerInfo[i][pWeedGrams]++;
- }
- }
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pAFKTime] < 900)
- {
- //new amount = 35 * min(PlayerInfo[i][pLevel], 21);
- //AddToPaycheck(i, amount);
- PlayerInfo[i][pMinutes]++;
- }
- }
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists] && PointInfo[i][pCapturer] != INVALID_PLAYER_ID && PointInfo[i][pCaptureTime] > 0)
- {
- if(PlayerInfo[PointInfo[i][pCapturer]][pGang] == -1)// || PlayerInfo[PointInfo[i][pCapturer]][pGangRank] < 5)
- {
- PointInfo[i][pCapturer] = INVALID_PLAYER_ID;
- PointInfo[i][pCaptureTime] = 0;
- }
- else
- {
- PointInfo[i][pCaptureTime]--;
- if(PointInfo[i][pCaptureTime] <= 0)
- {
- GiveGangPoints(PlayerInfo[PointInfo[i][pCapturer]][pGang], 10);
- GetPlayerName(PointInfo[i][pCapturer], PointInfo[i][pCapturedBy], MAX_PLAYER_NAME);
- PointInfo[i][pCapturedGang] = PlayerInfo[PointInfo[i][pCapturer]][pGang];
- GangInfo[PointInfo[i][pCapturedGang]][gCash] += PointInfo[i][pProfits];
- SendClientMessageToAllEx(COLOR_YELLOW, "Point wars: %s has successfully captured %s for %s.", GetPlayerRPName(PointInfo[i][pCapturer]), PointInfo[i][pName], GangInfo[PointInfo[i][pCapturedGang]][gName]);
- SendGangMessage(PointInfo[i][pCapturedGang], COLOR_YELLOW, "Your gang has earned $%i and 10 GP for successfully capturing this point.", PointInfo[i][pProfits]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cash = %i WHERE id = %i", GangInfo[PointInfo[i][pCapturedGang]][gCash], PointInfo[i][pCapturedGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET capturedby = '%s', capturedgang = %i, profits = 0, time = 20 WHERE id = %i", PointInfo[i][pCapturedBy], PointInfo[i][pCapturedGang], i);
- mysql_tquery(connectionID, queryBuffer);
- PointInfo[i][pCapturer] = INVALID_PLAYER_ID;
- PointInfo[i][pCaptureTime] = 0;
- PointInfo[i][pProfits] = 0;
- PointInfo[i][pTime] = 20;
- ReloadPoint(i);
- }
- }
- }
- }
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists] && TurfInfo[i][tCapturer] != INVALID_PLAYER_ID && TurfInfo[i][tCaptureTime] > 0)
- {
- if((GetFactionType(TurfInfo[i][tCapturer]) != FACTION_POLICE) && (PlayerInfo[TurfInfo[i][tCapturer]][pGang] == -1))// || PlayerInfo[TurfInfo[i][tCapturer]][pGangRank] < 5))
- {
- TurfInfo[i][tCapturer] = INVALID_PLAYER_ID;
- TurfInfo[i][tCaptureTime] = 0;
- ReloadTurf(i);
- }
- else
- {
- TurfInfo[i][tCaptureTime]--;
- if(TurfInfo[i][tCaptureTime] <= 0)
- {
- GetPlayerName(TurfInfo[i][tCapturer], TurfInfo[i][tCapturedBy], MAX_PLAYER_NAME);
- if(GetFactionType(TurfInfo[i][tCapturer]) == FACTION_POLICE)
- {
- TurfInfo[i][tCapturedGang] = -1;
- SendTurfMessage(i, COLOR_YELLOW, "Turf wars: %s has been successfully claimed back as a civilian turf by Officer %s.", TurfInfo[i][tName], GetPlayerRPName(TurfInfo[i][tCapturer]));
- }
- else
- {
- new gangid = PlayerInfo[TurfInfo[i][tCapturer]][pGang];
- TurfInfo[i][tCapturedGang] = gangid;
- GiveGangPoints(gangid, 10);
- SendTurfMessage(i, COLOR_YELLOW, "Turf wars: %s has been successfully claimed by %s for %s.", TurfInfo[i][tName], GetPlayerRPName(TurfInfo[i][tCapturer]), GangInfo[gangid][gName]);
- switch(TurfInfo[i][tType])
- {
- case 1:
- {
- GangInfo[gangid][gHPAmmo] = GangInfo[gangid][gHPAmmo] + 80 > GetGangStashCapacity(gangid, STASH_CAPACITY_HPAMMO) ? GetGangStashCapacity(gangid, STASH_CAPACITY_HPAMMO) : GangInfo[gangid][gHPAmmo] + 80;
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang earned 80 rounds of hollow point ammo in its stash for capturing this turf!");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET hpammo = %i WHERE id = %i", GangInfo[gangid][gHPAmmo], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 2:
- {
- GangInfo[gangid][gPoisonAmmo] = GangInfo[gangid][gPoisonAmmo] + 60 > GetGangStashCapacity(gangid, STASH_CAPACITY_POISONAMMO) ? GetGangStashCapacity(gangid, STASH_CAPACITY_POISONAMMO) : GangInfo[gangid][gPoisonAmmo] + 60;
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang earned 60 rounds of poison tip ammo in its stash for capturing this turf!");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET poisonammo = %i WHERE id = %i", GangInfo[gangid][gPoisonAmmo], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 3:
- {
- GangInfo[gangid][gFMJAmmo] = GangInfo[gangid][gFMJAmmo] + 30 > GetGangStashCapacity(gangid, STASH_CAPACITY_FMJAMMO) ? GetGangStashCapacity(gangid, STASH_CAPACITY_FMJAMMO) : GangInfo[gangid][gFMJAmmo] + 30;
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang earned 30 rounds of full metal jacket ammo in its stash for capturing this turf!");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET fmjammo = %i WHERE id = %i", GangInfo[gangid][gFMJAmmo], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 4:
- {
- GangInfo[gangid][gWeapons][GANGWEAPON_M4] += 10;
- GangInfo[gangid][gWeapons][GANGWEAPON_SNIPER] += 10;
- GangInfo[gangid][gWeapons][GANGWEAPON_SPAS12] += 10;
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang earned +10 of M4/Sniper/SPAS12 each in its stash for capturing this turf!");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_m4 = %i, weapon_sniper = %i, weapon_spas12 = %i WHERE id = %i", GangInfo[gangid][gWeapons][GANGWEAPON_M4], GangInfo[gangid][gWeapons][GANGWEAPON_SNIPER], GangInfo[gangid][gWeapons][GANGWEAPON_SPAS12], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 5:
- {
- GangInfo[gangid][gWeed] = GangInfo[gangid][gWeed] + 100 > GetGangStashCapacity(gangid, STASH_CAPACITY_WEED) ? GetGangStashCapacity(gangid, STASH_CAPACITY_WEED) : GangInfo[gangid][gWeed] + 100;
- GangInfo[gangid][gMeth] = GangInfo[gangid][gMeth] + 50 > GetGangStashCapacity(gangid, STASH_CAPACITY_METH) ? GetGangStashCapacity(gangid, STASH_CAPACITY_METH) : GangInfo[gangid][gMeth] + 50;
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang earned 100 grams of weed & 50 grams of meth in the stash for capturing this turf!");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weed = %i, meth = %i WHERE id = %i", GangInfo[gangid][gWeed], GangInfo[gangid][gMeth], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 6:
- {
- GangInfo[gangid][gCocaine] = GangInfo[gangid][gCocaine] + 100 > GetGangStashCapacity(gangid, STASH_CAPACITY_COCAINE) ? GetGangStashCapacity(gangid, STASH_CAPACITY_COCAINE) : GangInfo[gangid][gCocaine] + 100;
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang earned 100 grams of cocaine in the stash for capturing this turf!");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cocaine = %i WHERE id = %i", GangInfo[gangid][gCocaine], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 7:
- {
- SendGangMessage(gangid, COLOR_YELLOW, "Your gang will now receive 10 percents of all sales in this turf.");
- }
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET capturedby = '%s', capturedgang = %i, time = 12 WHERE id = %i", TurfInfo[i][tCapturedBy], TurfInfo[i][tCapturedGang], i);
- mysql_tquery(connectionID, queryBuffer);
- TurfInfo[i][tCapturer] = INVALID_PLAYER_ID;
- TurfInfo[i][tCaptureTime] = 0;
- TurfInfo[i][tTime] = 12;
- ReloadTurf(i);
- }
- }
- }
- }
-
- for(new i = 0; i < MAX_REPORTS; i ++)
- {
- if(ReportInfo[i][rExists] && ReportInfo[i][rTime] > 0)
- {
- ReportInfo[i][rTime]--;
-
- if(ReportInfo[i][rTime] <= 0)
- {
- SendClientMessage(ReportInfo[i][rReporter], COLOR_GREY, "Your report has expired. You can make an admin request on www.coming-soon.com if you still need help.");
- ReportInfo[i][rExists] = 0;
- }
- }
- }
- }
- RefreshLoginScreen();
- }
- forward FuelTimer();
- public FuelTimer()
- {
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(VehicleHasEngine(i) && GetVehicleParams(i, VEHICLE_ENGINE))
- {
- if(vehicleFuel[i] > 0)
- {
- vehicleFuel[i]--;
- switch(vehicleFuel[i])
- {
- case 15, 10, 5:
- {
- SendClientMessage(GetVehicleDriver(i), COLOR_LIGHTRED, "** This vehicle is running low on fuel. Visit the nearest gas station to fill up. (/refuel)");
- }
- }
- }
- if(vehicleFuel[i] <= 0)
- {
- SetVehicleParams(i, VEHICLE_ENGINE, 0);
- }
-
- //DestroyVehicle(i);
- }
- }
- }
- forward InjuredTimer();
- public InjuredTimer()
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pInjured] && GetVehicleModel(GetPlayerVehicleID(i)) != 416)
- {
- new
- Float:health;
- GetPlayerHealth(i, health);
- SetPlayerHealth(i, health - 1.0);
- }
- }
- }
- forward RandomFire(check);
- public RandomFire(check)
- {
- new count, index, announced, rand = random(10);
- if(!IsFireActive())
- {
- if(check)
- {
- foreach(new i : Player)
- {
- if(GetFactionType(i) == FACTION_MEDIC)
- {
- count++;
- }
- }
- }
- else
- {
- count = 3;
- }
- if(count >= 3)
- {
- for(new i = 0; i < sizeof(randomFireSpawns); i ++)
- {
- if(randomFireSpawns[i][fireIndex] == rand)
- {
- if(!announced)
- {
- foreach(new x : Player)
- {
- if(IsPlayerInRangeOfPoint(x, 30.0, randomFireSpawns[i][fireX], randomFireSpawns[i][fireY], randomFireSpawns[i][fireZ]))
- {
- SendClientMessage(x, COLOR_PURPLE, "** An explosion can be heard. Smoke is rising from a building nearby.");
- }
- if(GetFactionType(x) == FACTION_MEDIC)
- {
- PlayerInfo[x][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(x, randomFireSpawns[i][fireX], randomFireSpawns[i][fireY], randomFireSpawns[i][fireZ], 3.0);
- SendClientMessageEx(x, COLOR_DOCTOR, "** All units, a fire has been reported in %s. Please head to the beacon on your map. **", GetZoneName(randomFireSpawns[i][fireX], randomFireSpawns[i][fireY], randomFireSpawns[i][fireZ]));
- }
- }
- announced = 1;
- }
- gFireObjects[index] = CreateDynamicObject(18691, randomFireSpawns[i][fireX], randomFireSpawns[i][fireY], randomFireSpawns[i][fireZ], 0.0, 0.0, randomFireSpawns[i][fireA], .streamdistance = 50.0);
- gFireHealth[index++] = 50.0;
- }
- }
- gFires = index;
- }
- }
- }
- forward KickPlayer(playerid);
- public KickPlayer(playerid)
- {
- if(!PlayerInfo[playerid][pKicked])
- {
- PlayerInfo[playerid][pKicked] = 1;
- SetTimerEx("KickPlayer", 200, false, "i", playerid);
- }
- else
- {
- PlayerInfo[playerid][pKicked] = 0;
- Kick(playerid);
- }
- }
- #if defined SERVER_INTRO
- forward ShowMainMenuCamera(playerid, query);
- public ShowMainMenuCamera(playerid, query)
- {
- if(!query)
- {
- for(new i = 0; i < 4; i ++)
- {
- TextDrawShowForPlayer(playerid, LoginScreen[i]);
- }
- //InterpolateCameraPos(playerid, 2090.500732, -1730.270385, 122.216575, 873.889953, -1519.312011, 123.752815, 60000);
- //InterpolateCameraLookAt(playerid, 2090.014404, -1730.264892, 122.177040, 873.899353, -1518.828613, 123.698936, 60000);
-
- InterpolateCameraPos(playerid, 2169.808105, -1659.838256, 103.374832, 2167.935058, -1136.155029, 106.361320, 30000);
- InterpolateCameraLookAt(playerid, 2169.811035, -1659.351928, 103.347076, 2167.435058, -1136.148559, 106.344200, 30000);
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM bans WHERE username = '%s' OR ip = '%s' OR ip LIKE '%s'", GetPlayerNameEx(playerid), GetPlayerIP(playerid), GetPlayerIPRange(playerid));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOOKUP_BANS, playerid);
- }
- }
- #else
- forward ShowMainMenuCamera(playerid);
- public ShowMainMenuCamera(playerid)
- {
- for(new i = 0; i < 4; i ++)
- {
- TextDrawShowForPlayer(playerid, LoginScreen[i]);
- }
- PlayAudioStreamForPlayer(playerid, "http://ultimaterp.net/RideOut.mp3"); // josh
- //InterpolateCameraPos(playerid, 2090.500732, -1730.270385, 122.216575, 873.889953, -1519.312011, 123.752815, 60000);
- //InterpolateCameraLookAt(playerid, 2090.014404, -1730.264892, 122.177040, 873.899353, -1518.828613, 123.698936, 60000);
-
- InterpolateCameraPos(playerid, 2169.808105, -1659.838256, 103.374832, 2167.935058, -1136.155029, 106.361320, 30000);
- InterpolateCameraLookAt(playerid, 2169.811035, -1659.351928, 103.347076, 2167.435058, -1136.148559, 106.344200, 30000);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM bans WHERE username = '%s' OR ip = '%s' OR ip LIKE '%s'", GetPlayerNameEx(playerid), GetPlayerIP(playerid), GetPlayerIPRange(playerid));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOOKUP_BANS, playerid);
- }
- #endif
- forward DespawnTimer(vehicleid);
- public DespawnTimer(vehicleid)
- {
- if(VehicleInfo[vehicleid][vOwnerID] > 0 && !IsVehicleOccupied(vehicleid))
- {
- DespawnVehicle(vehicleid);
- }
- else
- {
- // ANOTHER TEN MINUTES!
- VehicleInfo[vehicleid][vTimer] = SetTimerEx("DespawnTimer", 600000, false, "i", vehicleid);
- }
- }
- forward HTTP_OnMusicFetchResponse(index, response_code, data[]);
- public HTTP_OnMusicFetchResponse(index, response_code, data[])
- {
- if(response_code == 200)
- {
- new
- buffer[2048],
- string[288],
- count,
- start,
- pos;
- strcpy(buffer, data);
- while((pos = strfind(buffer, "<br/>")) != -1)
- {
- strdel(buffer, pos, pos + 5);
- if(++count == 8)
- {
- strmid(string, buffer, start, pos);
- SendClientMessage(index, COLOR_YELLOW, string);
- start = pos;
- count = 0;
- }
- else
- {
- if((strlen(buffer) - pos) < 6)
- {
- strmid(string, buffer, start, pos);
- SendClientMessage(index, COLOR_YELLOW, string);
- break;
- }
- strins(buffer, ", ", pos);
- }
- }
- }
- else
- {
- SendClientMessageEx(index, COLOR_RED, "The music database is currently not available. (error %i)", response_code);
- }
- }
- forward Radio_PlayStation(playerid);
- public Radio_PlayStation(playerid)
- {
- if(cache_get_row_count(radioConnectionID))
- {
- new name[128], url[128];
- cache_get_field_content(0, "name", name);
- cache_get_field_content(0, "url", url);
- switch(PlayerInfo[playerid][pMusicType])
- {
- case MUSIC_MP3PLAYER:
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the radio station on their MP3 player.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You are now tuned in to {00AA00}%s{33CCFF}.", name);
- SetMusicStream(MUSIC_MP3PLAYER, playerid, url);
- }
- case MUSIC_BOOMBOX:
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the radio station on their boombox.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "Your boombox is now tuned in to {00AA00}%s{33CCFF}.", name);
- SetMusicStream(MUSIC_BOOMBOX, playerid, url);
- }
- case MUSIC_VEHICLE:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the radio station in their vehicle.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "Your radio is now tuned in to {00AA00}%s{33CCFF}.", name);
- SetMusicStream(MUSIC_VEHICLE, GetPlayerVehicleID(playerid), url);
- }
- }
- }
- }
- }
- forward Radio_ListStations(playerid);
- public Radio_ListStations(playerid)
- {
- new rows = cache_get_row_count(radioConnectionID);
- if((!rows) && PlayerInfo[playerid][pSearch] && PlayerInfo[playerid][pPage] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "No results found.");
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOSEARCH);
- }
- else if(rows)
- {
- static string[MAX_LISTED_STATIONS * 64], name[128];
- string[0] = 0;
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", name);
- format(string, sizeof(string), "%s\n%s", string, name);
- }
- if(PlayerInfo[playerid][pPage] > 1)
- {
- strcat(string, "\n{FF6347}<< Go back{FFFFFF}");
- }
- if(rows == MAX_LISTED_STATIONS)
- {
- strcat(string, "\n{00AA00}>> Next page{FFFFFF}");
- }
- ShowPlayerDialog(playerid, DIALOG_MP3RADIORESULTS, DIALOG_STYLE_LIST, "Results", string, "Play", "Back");
- }
- }
- forward MDC_ListCharges(playerid);
- public MDC_ListCharges(playerid)
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "This player has no active charges on them.");
- }
- else
- {
- new chargedby[MAX_PLAYER_NAME], date[24], reason[128], string[512];
- string = "Charged by\tDate\tReason";
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "chargedby", chargedby);
- cache_get_field_content(i, "date", date);
- cache_get_field_content(i, "reason", reason);
- format(string, sizeof(string), "%s\n%s\t%s\t%s", string, chargedby, date, reason);
- }
- ShowPlayerDialog(playerid, DIALOG_MDCCHARGES, DIALOG_STYLE_TABLIST_HEADERS, "Active charges:", string, "<<", "");
- }
- return 1;
- }
- forward MDC_ClearCharges(playerid);
- public MDC_ClearCharges(playerid)
- {
- if(cache_get_row_count(connectionID))
- {
- new username[MAX_PLAYER_NAME], id = PlayerInfo[playerid][pSelected];
- cache_get_field_content(0, "username", username);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM charges WHERE uid = %i", id);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = 0 WHERE uid = %i", id);
- mysql_tquery(connectionID, queryBuffer);
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerNameEx(i), username))
- {
- SendClientMessageEx(i, COLOR_WHITE, "** Your crimes were cleared by %s.", GetPlayerRPName(playerid));
- PlayerInfo[i][pWantedLevel] = 0;
- }
- }
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s has cleared %s's charges and wanted level.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), username);
- }
- }
- forward MDC_PlayerLookup(playerid, username[]);
- public MDC_PlayerLookup(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "That player doesn't exist and therefore has no information to view.");
- ShowPlayerDialog(playerid, DIALOG_PLAYERLOOKUP, DIALOG_STYLE_INPUT, "Player lookup", "Enter the full name of the player to lookup:", "Submit", "Cancel");
- }
- else
- {
- new string[512];
- PlayerInfo[playerid][pSelected] = cache_get_field_content_int(0, "uid");
- format(string, sizeof(string), "Name: %s\nGender: %s\nAge: %i years old\nCrimes commited: %i\nTimes arrested: %i\nWanted level: %i/6\nDrivers license: %s", username, (cache_get_field_content_int(0, "gender") == 2) ? ("Female") : ("Male"), cache_get_field_content_int(0, "age"), cache_get_field_content_int(0, "crimes"), cache_get_field_content_int(0, "arrested"), cache_get_field_content_int(0, "wantedlevel"), cache_get_field_content_int(0, "carlicense") ? ("Yes") : ("No"));
- ShowPlayerDialog(playerid, DIALOG_MDCPLAYER1, DIALOG_STYLE_MSGBOX, "Player lookup", string, "Options", "Cancel");
- }
- }
- forward OnPlayerAttemptResetUpgrades(playerid);
- public OnPlayerAttemptResetUpgrades(playerid)
- {
- if(PlayerInfo[playerid][pVIPPackage] == 0 && cache_get_row_int(0, 0) > 3)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You own %i/%i vehicle at the moment. Please sell %i of them before using this command.", cache_get_row_int(0, 0), GetPlayerAssetLimit(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_VEHICLES) - cache_get_row_int(0, 0));
- }
- else
- {
- PlayerInfo[playerid][pUpgradePoints] = (PlayerInfo[playerid][pLevel] - 1) * 2;
- PlayerInfo[playerid][pInventoryUpgrade] = 0;
- PlayerInfo[playerid][pAddictUpgrade] = 0;
- PlayerInfo[playerid][pTraderUpgrade] = 0;
- PlayerInfo[playerid][pAssetUpgrade] = 0;
- PlayerInfo[playerid][pSpawnHealth] = 50.0;
- PlayerInfo[playerid][pSpawnArmor] = 0.0;
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET upgradepoints = %i, inventoryupgrade = 0, addictupgrade = 0, traderupgrade = 0, assetupgrade = 0, spawnhealth = '50.0', spawnarmor = '0.0' WHERE uid = %i", PlayerInfo[playerid][pUpgradePoints], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- SendClientMessageEx(playerid, COLOR_GREEN, "You have reset your upgrade points. You now have %i upgrade points available.", PlayerInfo[playerid][pUpgradePoints]);
- }
- }
- forward OnBanAttempt(username[], ip[], from[], reason[], permanent);
- public OnBanAttempt(username[], ip[], from[], reason[], permanent)
- {
- if(cache_get_row_count(connectionID))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE bans SET reason = '%e' WHERE id = %i", reason, cache_get_row_int(0, 0));
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO bans VALUES(null, '%s', '%s', '%s', NOW(), '%e', %i)", username, ip, from, reason, permanent);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- forward OnPlayerAttemptInviteGang(playerid, targetid);
- public OnPlayerAttemptInviteGang(playerid, targetid)
- {
- if(cache_get_row_int(0, 0) >= GetGangMemberLimit(PlayerInfo[playerid][pGang]))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "Your gang can't have more than %i members at its level.", GetGangMemberLimit(PlayerInfo[playerid][pGang]));
- }
- else
- {
- PlayerInfo[targetid][pGangOffer] = playerid;
- PlayerInfo[targetid][pGangOffered] = PlayerInfo[playerid][pGang];
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has invited you to join {00AA00}%s{33CCFF} (/accept gang).", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pGang]][gName]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have invited %s to join your gang.", GetPlayerRPName(targetid));
- }
- }
- forward OnPlayerAttemptBuyVehicleEx(playerid, offeredby, vehicleid, price);
- public OnPlayerAttemptBuyVehicleEx(playerid, offeredby, vehicleid, price)
- {
- new count = cache_get_row_int(0, 0);
- if(count >= GetPlayerAssetLimit(playerid, LIMIT_VEHICLES))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i vehicles. You can't own anymore unless you upgrade your asset perk.", count, GetPlayerAssetLimit(playerid, LIMIT_VEHICLES));
- }
- else
- {
- GetPlayerName(playerid, VehicleInfo[vehicleid][vOwner], MAX_PLAYER_NAME);
- VehicleInfo[vehicleid][vOwnerID] = PlayerInfo[playerid][pID];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET ownerid = %i, owner = '%s' WHERE id = %i", VehicleInfo[vehicleid][vOwnerID], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- if(VehicleInfo[vehicleid][vForSale])
- {
- VehicleInfo[vehicleid][vForSale] = false;
- VehicleInfo[vehicleid][vForSalePrice] = 0;
- DestroyDynamic3DTextLabel(VehicleInfo[vehicleid][vForSaleLabel]);
- VehicleInfo[vehicleid][vForSaleLabel] = Text3D:INVALID_3DTEXT_ID;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET forsale = 0, forsaleprice = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "* You have accepted %s's vehicle offer and paid %s for their %s.", GetPlayerRPName(offeredby), FormatNumber(price), GetVehicleName(vehicleid));
- SendClientMessageEx(offeredby, COLOR_AQUA, "* %s accepted your vehicle offer and paid %s for your %s.", GetPlayerRPName(playerid), FormatNumber(price), GetVehicleName(vehicleid));
- Log_Write("log_property", "%s (uid: %i) (IP: %s) sold their %s (id: %i) for $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerIP(offeredby), GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID], price, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid));
- }
- }
- forward OnPlayerAttemptBuyVehicle(playerid, index);
- public OnPlayerAttemptBuyVehicle(playerid, index)
- {
- new count = cache_get_row_int(0, 0);
- if(count >= GetPlayerAssetLimit(playerid, LIMIT_VEHICLES))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i vehicles. You can't own anymore unless you upgrade your asset perk.", count, GetPlayerAssetLimit(playerid, LIMIT_VEHICLES));
- }
- else
- {
- new string[20];
- if(PlayerInfo[playerid][pCash] < vehicleArray[index][carPrice])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this vehicle.");
- }
- else if(GetSpawnedVehicles(playerid) >= MAX_SPAWNED_VEHICLES)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You can't have more than %i vehicles spawned at a time.", MAX_SPAWNED_VEHICLES);
- }
- else
- {
- switch(random(3))
- {
- case 0:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (ownerid, owner, modelid, price, pos_x, pos_y, pos_z, pos_a) VALUES(%i, '%s', %i, %i, '562.3970', '-1283.8485', '17.0007', '0.0000')", PlayerInfo[playerid][pID], GetPlayerNameEx(playerid), vehicleArray[index][carModel], vehicleArray[index][carPrice]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 1:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (ownerid, owner, modelid, price, pos_x, pos_y, pos_z, pos_a) VALUES(%i, '%s', %i, %i, '557.8670', '-1283.9822', '17.0007', '0.0000')", PlayerInfo[playerid][pID], GetPlayerNameEx(playerid), vehicleArray[index][carModel], vehicleArray[index][carPrice]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case 2:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (ownerid, owner, modelid, price, pos_x, pos_y, pos_z, pos_a) VALUES(%i, '%s', %i, %i, '552.8177', '-1284.1307', '17.0007', '0.0000')", PlayerInfo[playerid][pID], GetPlayerNameEx(playerid), vehicleArray[index][carModel], vehicleArray[index][carPrice]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- AddPointMoney(POINT_AUTOEXPORT, percent(vehicleArray[index][carPrice], 3));
- GivePlayerCash(playerid, -vehicleArray[index][carPrice]);
- format(string, sizeof(string), "~r~-$%i", vehicleArray[index][carPrice]);
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessageEx(playerid, COLOR_GREEN, "%s purchased for $%i. /vst to spawn this vehicle.", vehicleNames[vehicleArray[index][carModel] - 400], vehicleArray[index][carPrice]);
- Log_Write("log_property", "%s (uid: %i) purchased a %s for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], vehicleNames[vehicleArray[index][carModel] - 400], vehicleArray[index][carPrice]);
- }
- }
- }
- forward OnPlayerChangeNumber(playerid, number);
- public OnPlayerChangeNumber(playerid, number)
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "That phone number is already taken.");
- ShowPlayerDialog(playerid, DIALOG_COOKIENUMBER, DIALOG_STYLE_INPUT, "Number change", "Enter your phone number of choice:", "Submit", "Cancel");
- }
- else
- {
- PlayerInfo[playerid][pCookies] -= 5;
- PlayerInfo[playerid][pPhone] = number;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, phone = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have redeemed 5 cookies for a {00AA00}number change{33CCFF} to %i.", number);
- }
- }
- forward OnHitmanPassport(playerid, name[], level, skinid);
- public OnHitmanPassport(playerid, name[], level, skinid)
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "That name is already taken, please choose another.");
- }
- else
- {
- strcpy(PlayerInfo[playerid][pNameChange], name, MAX_PLAYER_NAME);
- PlayerInfo[playerid][pFreeNamechange] = 2;
- PlayerInfo[playerid][pPassportLevel] = level;
- PlayerInfo[playerid][pPassportSkin] = skinid;
- SendClientMessageEx(playerid, COLOR_AQUA, "You have requested a namechange to {00AA00}%s{33CCFF} for free, please wait for admin approval.", name);
- SendClientMessageEx(playerid, COLOR_AQUA, "Once the namechange has been approved, you will receive your chosen name, level and skin.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is requesting a namechange to %s. (/acceptname %i or /denyname %i)", GetPlayerRPName(playerid), playerid, name, playerid, playerid);
- }
- }
- forward OnPlayerAttemptNameChange(playerid, name[]);
- public OnPlayerAttemptNameChange(playerid, name[])
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "That name is already taken, please choose another.");
- if(PlayerInfo[playerid][pFreeNamechange])
- {
- ShowPlayerDialog(playerid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- }
- }
- else
- {
- strcpy(PlayerInfo[playerid][pNameChange], name, MAX_PLAYER_NAME);
- if(PlayerInfo[playerid][pFreeNamechange]) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have requested a namechange to {00AA00}%s{33CCFF} for free, please wait for admin approval.", name);
- } else {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have requested a namechange to {00AA00}%s{33CCFF} for $%i, please wait for admin approval.", name, PlayerInfo[playerid][pLevel] * 7500);
- }
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is requesting a namechange to %s. (/acceptname %i or /denyname %i)", GetPlayerRPName(playerid), playerid, name, playerid, playerid);
- }
- }
- forward OnPlayerLockFurnitureDoor(playerid, id);
- public OnPlayerLockFurnitureDoor(playerid, id)
- {
- new status = !cache_get_field_content_int(0, "door_locked");
- if(status) {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks the door.", GetPlayerRPName(playerid));
- } else {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks the door.", GetPlayerRPName(playerid));
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE furniture SET door_locked = %i WHERE id = %i", status, id);
- mysql_tquery(connectionID, queryBuffer);
- }
- forward OnPlayerUseFurnitureDoor(playerid, objectid, id);
- public OnPlayerUseFurnitureDoor(playerid, objectid, id)
- {
- if(cache_get_row_int(0, 1))
- {
- SendClientMessage(playerid, COLOR_GREY, "This door is locked.");
- }
- else
- {
- new
- status = !cache_get_row_int(0, 0),
- Float:rx,
- Float:ry,
- Float:rz;
- GetDynamicObjectRot(objectid, rx, ry, rz);
- if(status) {
- rz -= 90.0;
- } else {
- rz += 90.0;
- }
- SetDynamicObjectRot(objectid, rx, ry, rz);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE furniture SET rot_z = '%f', door_opened = %i WHERE id = %i", rz, status, id);
- mysql_tquery(connectionID, queryBuffer);
- if(status)
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s opens the door.", GetPlayerRPName(playerid));
- else
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s closes the door.", GetPlayerRPName(playerid));
- }
- }
- forward OnPlayerLockLandDoor(playerid, id);
- public OnPlayerLockLandDoor(playerid, id)
- {
- new status = !cache_get_field_content_int(0, "door_locked");
- if(status) {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks the door.", GetPlayerRPName(playerid));
- } else {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks the door.", GetPlayerRPName(playerid));
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE landobjects SET door_locked = %i WHERE id = %i", status, id);
- mysql_tquery(connectionID, queryBuffer);
- }
- forward OnPlayerUseLandGate(playerid, objectid, id);
- public OnPlayerUseLandGate(playerid, objectid, id)
- {
- if(!Streamer_GetExtraInt(objectid, E_OBJECT_OPENED))
- {
- MoveDynamicObject(objectid, cache_get_field_content_float(0, "move_x"), cache_get_field_content_float(0, "move_y"), cache_get_field_content_float(0, "move_z"), 3.0, cache_get_field_content_float(0, "move_rx"), cache_get_field_content_float(0, "move_ry"), cache_get_field_content_float(0, "move_rz"));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to open the gate.", GetPlayerRPName(playerid));
- Streamer_SetExtraInt(objectid, E_OBJECT_OPENED, 1);
- }
- else
- {
- MoveDynamicObject(objectid, cache_get_field_content_float(0, "pos_x"), cache_get_field_content_float(0, "pos_y"), cache_get_field_content_float(0, "pos_z"), 3.0, cache_get_field_content_float(0, "rot_x"), cache_get_field_content_float(0, "rot_y"), cache_get_field_content_float(0, "rot_z"));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their remote to close the gate.", GetPlayerRPName(playerid));
- Streamer_SetExtraInt(objectid, E_OBJECT_OPENED, 0);
- }
- }
- forward OnPlayerUseLandDoor(playerid, objectid, id);
- public OnPlayerUseLandDoor(playerid, objectid, id)
- {
- if(cache_get_row_int(0, 1))
- {
- SendClientMessage(playerid, COLOR_GREY, "This door is locked.");
- }
- else
- {
- new
- status = !cache_get_row_int(0, 0),
- Float:rx,
- Float:ry,
- Float:rz;
- GetDynamicObjectRot(objectid, rx, ry, rz);
- if(status) {
- rz -= 90.0;
- } else {
- rz += 90.0;
- }
- SetDynamicObjectRot(objectid, rx, ry, rz);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE landobjects SET rot_z = '%f', door_opened = %i WHERE id = %i", rz, status, id);
- mysql_tquery(connectionID, queryBuffer);
- if(status)
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s opens the door.", GetPlayerRPName(playerid));
- else
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s closes the door.", GetPlayerRPName(playerid));
- }
- }
- forward OnPlayerAddToPhonebook(playerid, number, name[]);
- public OnPlayerAddToPhonebook(playerid, number, name[])
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "That number is already in the phonebook.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO phonebook VALUES('%e', %i)", name, number);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have added %s with number %i to the phonebook directory.", name, number);
- Log_Write("log_faction", "%s (uid: %i) added %s with number %i to the phonebook.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], name, number);
- }
- return 1;
- }
- forward OnPlayerRemoveFromPhonebook(playerid, number);
- public OnPlayerRemoveFromPhonebook(playerid, number)
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "That number is not in the phonebook.");
- }
- else
- {
- new name[MAX_PLAYER_NAME];
- cache_get_row(0, 0, name);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM phonebook WHERE number = %i", number);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have removed %s with number %i from the phonebook directory.", name, number);
- Log_Write("log_faction", "%s (uid: %i) removed %s with number %i from the phonebook.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], name, number);
- }
- return 1;
- }
- forward OnPlayerListInjuries(playerid, targetid);
- public OnPlayerListInjuries(playerid, targetid)
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player doesn't have any injuries.");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "|_____ %s's Injuries _____|", GetPlayerRPName(targetid));
- for(new i = 0; i < rows; i ++)
- {
- SendClientMessageEx(playerid, COLOR_YELLOW, "[%i seconds ago] %s was shot with a %s", gettime() - cache_get_row_int(i, 1), GetPlayerRPName(targetid), GetWeaponNameEx(cache_get_row_int(i, 0)));
- }
- }
- }
- forward OnPlayerOfflineKickFaction(playerid, username[]);
- public OnPlayerOfflineKickFaction(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else if(cache_get_row_int(0, 1) != PlayerInfo[playerid][pFaction])
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your faction.");
- }
- else if(cache_get_row_int(0, 2) > PlayerInfo[playerid][pFactionRank])
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has a higher rank than you.");
- }
- else
- {
- new uid = cache_get_row_int(0, 0), factionid = cache_get_row_int(0, 1), rankid = cache_get_row_int(0, 2);
- Log_Write("log_faction", "%s (uid: %i) offline kicked %s (uid: %i) from %s (id: %i) as rank %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, uid, FactionInfo[factionid][fName], factionid, FactionRanks[factionid][rankid], rankid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE uid = %i", uid);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have offline kicked %s from your faction.", username);
- }
- }
- forward OnPlayerOfflineKickGang(playerid, username[]);
- public OnPlayerOfflineKickGang(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else if(cache_get_row_int(0, 1) != PlayerInfo[playerid][pGang])
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your gang.");
- }
- else if(cache_get_row_int(0, 2) > PlayerInfo[playerid][pGangRank])
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has a higher rank than you.");
- }
- else
- {
- new uid = cache_get_row_int(0, 0), gangid = cache_get_row_int(0, 1), rankid = cache_get_row_int(0, 2);
- Log_Write("log_gang", "%s (uid: %i) offline kicked %s (uid: %i) from %s (id: %i) as rank %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, uid, GangInfo[gangid][gName], gangid, GangRanks[gangid][rankid], rankid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = -1, gangrank = 0 WHERE uid = %i", uid);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have offline kicked %s from your gang.", username);
- }
- }
- forward OnPlayerListGangs(playerid, gangid);
- public OnPlayerListGangs(playerid, gangid)
- {
- new color, members = cache_get_row_int(0, 0);
- if(GangInfo[gangid][gColor] == -1 || GangInfo[gangid][gColor] == -256)
- {
- color = 0xC8C8C8FF;
- }
- else
- {
- color = GangInfo[gangid][gColor];
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "ID: %i | Name: {%06x}%s{C8C8C8} | Leader: %s | Members: %i/%i | Strikes: %i/3", gangid, color >>> 8, GangInfo[gangid][gName], GangInfo[gangid][gLeader], members, GetGangMemberLimit(gangid), GangInfo[gangid][gStrikes]);
- }
- forward OnPlayerListFactions(playerid, factionid);
- public OnPlayerListFactions(playerid, factionid)
- {
- new color, members = cache_get_row_int(0, 0);
- if(FactionInfo[factionid][fColor] == -1 || FactionInfo[factionid][fColor] == -256)
- {
- color = 0xC8C8C8FF;
- }
- else
- {
- color = FactionInfo[factionid][fColor];
- }
- if(FactionInfo[factionid][fType] == FACTION_HITMAN && PlayerInfo[playerid][pAdmin] < 7)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "ID: %i | Name: {%06x}%s{C8C8C8} | Leader: Classified | Members: 0", factionid, color >>> 8, FactionInfo[factionid][fName]);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "ID: %i | Name: {%06x}%s{C8C8C8} | Leader: %s | Members: %i", factionid, color >>> 8, FactionInfo[factionid][fName], FactionInfo[factionid][fLeader], members);
- }
- }
- forward OnPlayerBuyPhoneNumber(playerid, number);
- public OnPlayerBuyPhoneNumber(playerid, number)
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The specified phone number is already taken.");
- }
- else
- {
- PlayerInfo[playerid][pPhone] = number;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET phone = %i WHERE uid = %i", number, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, -10000);
- GameTextForPlayer(playerid, "~r~-$10000", 5000, 1);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You paid $10000 to change your phone number to %i.", number);
- Log_Write("log_vip", "%s VIP %s (uid: %i) has purchased phone number: %i for $20000.", GetVIPRank(PlayerInfo[playerid][pVIPPackage]), GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], number);
- }
- }
- forward OnPlayerSpawnVehicle(playerid, parked);
- public OnPlayerSpawnVehicle(playerid, parked)
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The slot specified contains no valid vehicle which you can spawn.");
- }
- else
- {
- for(new i = 0; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] == cache_get_field_content_int(0, "id"))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle is spawned already. /findcar to track it.");
- }
- }
- if(GetSpawnedVehicles(playerid) >= MAX_SPAWNED_VEHICLES)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can't have more than %i vehicles spawned at a time.", MAX_SPAWNED_VEHICLES);
- }
- new
- modelid = cache_get_field_content_int(0, "modelid"),
- Float:x = cache_get_field_content_float(0, "pos_x"),
- Float:y = cache_get_field_content_float(0, "pos_y"),
- Float:z = cache_get_field_content_float(0, "pos_z"),
- Float:a = cache_get_field_content_float(0, "pos_a"),
- color1 = cache_get_field_content_int(0, "color1"),
- color2 = cache_get_field_content_int(0, "color2"),
- vehicleid;
- vehicleid = CreateVehicle(modelid, x, y, z, a, color1, color2, -1);
- if(vehicleid != INVALID_VEHICLE_ID)
- {
- ResetVehicle(vehicleid);
- cache_get_field_content(0, "owner", VehicleInfo[vehicleid][vOwner], connectionID, MAX_PLAYER_NAME);
- cache_get_field_content(0, "plate", VehicleInfo[vehicleid][vPlate], connectionID, 32);
- VehicleInfo[vehicleid][vID] = cache_get_field_content_int(0, "id");
- VehicleInfo[vehicleid][vOwnerID] = cache_get_field_content_int(0, "ownerid");
- VehicleInfo[vehicleid][vPrice] = cache_get_field_content_int(0, "price");
- VehicleInfo[vehicleid][vTickets] = cache_get_field_content_int(0, "tickets");
- VehicleInfo[vehicleid][vLocked] = cache_get_field_content_int(0, "locked");
- VehicleInfo[vehicleid][vHealth] = cache_get_field_content_float(0, "health");
- VehicleInfo[vehicleid][vPaintjob] = cache_get_field_content_int(0, "paintjob");
- VehicleInfo[vehicleid][vInterior] = cache_get_field_content_int(0, "interior");
- VehicleInfo[vehicleid][vWorld] = cache_get_field_content_int(0, "world");
- VehicleInfo[vehicleid][vNeon] = cache_get_field_content_int(0, "neon");
- VehicleInfo[vehicleid][vNeonEnabled] = cache_get_field_content_int(0, "neonenabled");
- VehicleInfo[vehicleid][vTrunk] = cache_get_field_content_int(0, "trunk");
- VehicleInfo[vehicleid][vMods][0] = cache_get_field_content_int(0, "mod_1");
- VehicleInfo[vehicleid][vMods][1] = cache_get_field_content_int(0, "mod_2");
- VehicleInfo[vehicleid][vMods][2] = cache_get_field_content_int(0, "mod_3");
- VehicleInfo[vehicleid][vMods][3] = cache_get_field_content_int(0, "mod_4");
- VehicleInfo[vehicleid][vMods][4] = cache_get_field_content_int(0, "mod_5");
- VehicleInfo[vehicleid][vMods][5] = cache_get_field_content_int(0, "mod_6");
- VehicleInfo[vehicleid][vMods][6] = cache_get_field_content_int(0, "mod_7");
- VehicleInfo[vehicleid][vMods][7] = cache_get_field_content_int(0, "mod_8");
- VehicleInfo[vehicleid][vMods][8] = cache_get_field_content_int(0, "mod_9");
- VehicleInfo[vehicleid][vMods][9] = cache_get_field_content_int(0, "mod_10");
- VehicleInfo[vehicleid][vMods][10] = cache_get_field_content_int(0, "mod_11");
- VehicleInfo[vehicleid][vMods][11] = cache_get_field_content_int(0, "mod_12");
- VehicleInfo[vehicleid][vMods][12] = cache_get_field_content_int(0, "mod_13");
- VehicleInfo[vehicleid][vMods][13] = cache_get_field_content_int(0, "mod_14");
- VehicleInfo[vehicleid][vCash] = cache_get_field_content_int(0, "cash");
- VehicleInfo[vehicleid][vMaterials] = cache_get_field_content_int(0, "materials");
- VehicleInfo[vehicleid][vWeed] = cache_get_field_content_int(0, "weed");
- VehicleInfo[vehicleid][vCocaine] = cache_get_field_content_int(0, "cocaine");
- VehicleInfo[vehicleid][vMeth] = cache_get_field_content_int(0, "meth");
- VehicleInfo[vehicleid][vPainkillers] = cache_get_field_content_int(0, "painkillers");
- VehicleInfo[vehicleid][vWeapons][0] = cache_get_field_content_int(0, "weapon_1");
- VehicleInfo[vehicleid][vWeapons][1] = cache_get_field_content_int(0, "weapon_2");
- VehicleInfo[vehicleid][vWeapons][2] = cache_get_field_content_int(0, "weapon_3");
- VehicleInfo[vehicleid][vHPAmmo] = cache_get_field_content_int(0, "hpammo");
- VehicleInfo[vehicleid][vPoisonAmmo] = cache_get_field_content_int(0, "poisonammo");
- VehicleInfo[vehicleid][vFMJAmmo] = cache_get_field_content_int(0, "fmjammo");
- VehicleInfo[vehicleid][vGang] = -1;
- VehicleInfo[vehicleid][vFactionType] = FACTION_NONE;
- VehicleInfo[vehicleid][vJob] = JOB_NONE;
- VehicleInfo[vehicleid][vRespawnDelay] = -1;
- VehicleInfo[vehicleid][vModel] = modelid;
- VehicleInfo[vehicleid][vPosX] = x;
- VehicleInfo[vehicleid][vPosY] = y;
- VehicleInfo[vehicleid][vPosZ] = z;
- VehicleInfo[vehicleid][vPosA] = a;
- VehicleInfo[vehicleid][vColor1] = color1;
- VehicleInfo[vehicleid][vColor2] = color2;
- VehicleInfo[vehicleid][vObjects][0] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vObjects][1] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vTimer] = -1;
- vehicleFuel[vehicleid] = cache_get_field_content_int(0, "fuel");
- adminVehicle{vehicleid} = false;
- VehicleInfo[vehicleid][vForSale] = bool:cache_get_field_content_int(0, "forsale");
- VehicleInfo[vehicleid][vForSalePrice] = cache_get_field_content_int(0, "forsaleprice");
- if(VehicleInfo[vehicleid][vForSale])
- {
- new forsale[264];
- format(forsale, sizeof(forsale), "FOR SALE\n%s - %s\nPh: %i.", GetVehicleName(vehicleid), FormatNumber(VehicleInfo[vehicleid][vForSalePrice]), PlayerInfo[playerid][pPhone]);
- VehicleInfo[vehicleid][vForSaleLabel] = CreateDynamic3DTextLabel(forsale, COLOR_GREY2, 0.0, 0.0, 0.0, 10.0, INVALID_PLAYER_ID, vehicleid, 1, -1, 0, -1, 30.0);
- }
- SetVehicleToRespawn(vehicleid);
- ReloadVehicle(vehicleid);
- if(!parked)
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have spawned your {FF6347}%s{33CCFF} which is located in {F7A763}%s{33CCFF}. /findcar to track it.", GetVehicleName(vehicleid), GetVehicleZoneName(vehicleid));
- }
- }
- }
- return 1;
- }
- forward OnPlayerBuyClothingItem(playerid, name[], price, businessid, clothingid);
- public OnPlayerBuyClothingItem(playerid, name[], price, businessid, clothingid)
- {
- new string[16];
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- strcpy(ClothingInfo[playerid][clothingid][cName], name, 32);
- ClothingInfo[playerid][clothingid][cID] = cache_insert_id(connectionID);
- ClothingInfo[playerid][clothingid][cExists] = 1;
- ClothingInfo[playerid][clothingid][cAttached] = 0;
- ClothingInfo[playerid][clothingid][cAttachedIndex] = -1;
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "%s purchased for {00AA00}$%i{33CCFF}. /toys to find your new item.", name, price);
- format(string, sizeof(string), "~r~-$%i", price);
- GameTextForPlayer(playerid, string, 5000, 1);
- }
- forward OnPlayerSendTextMessage(playerid, number, msg[]);
- public OnPlayerSendTextMessage(playerid, number, msg[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The number you're trying to reach does not belong to any particular person.");
- }
- else if(cache_get_row_int(0, 1))
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is currently imprisoned and cannot use their phone.");
- }
- else if(cache_get_row_int(0, 2))
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has their mobile phone switched off.");
- }
- else
- {
- new
- username[MAX_PLAYER_NAME];
- cache_get_row(0, 0, username);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO texts VALUES(null, %i, %i, '%s', NOW(), '%e')", PlayerInfo[playerid][pPhone], number, GetPlayerNameEx(playerid), msg);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes out a cellphone and sends a message.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_YELLOW, "** SMS to %s (%i): %s **", username, number, msg);
- SendClientMessage(playerid, COLOR_WHITE, "** The player who owns the number is offline, but will receive your text when they log in.");
- GivePlayerCash(playerid, -1);
- GameTextForPlayer(playerid, "~w~Text sent!~n~~r~-$1", 5000, 1);
- }
- }
- forward OnPlayerRentHouse(playerid, houseid);
- public OnPlayerRentHouse(playerid, houseid)
- {
- if(cache_get_row_int(0, 0) >= GetHouseTenantCapacity(houseid))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "This house has reached its limit of %i tenants.", GetHouseTenantCapacity(houseid));
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET rentinghouse = %i WHERE uid = %i", HouseInfo[houseid][hID], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pRentingHouse] = HouseInfo[houseid][hID];
- SendClientMessageEx(playerid, COLOR_GREEN, "You are now renting at %s's house. You will pay $%i every paycheck.", HouseInfo[houseid][hOwner], HouseInfo[houseid][hRentPrice]);
- }
- }
- forward OnPlayerEvict(playerid, username[]);
- public OnPlayerEvict(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player doesn't exist, or is not renting at your home.");
- }
- else
- {
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerNameEx(i), username) && PlayerInfo[i][pLogged])
- {
- PlayerInfo[i][pRentingHouse] = 0;
- SendClientMessage(i, COLOR_RED, "You have been evicted from your home by the owner.");
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET rentinghouse = 0 WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have evicted %s from your property.", username);
- }
- return 1;
- }
- forward OnListPlayerFlags(playerid, targetid);
- public OnListPlayerFlags(playerid, targetid)
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "This player has no flags listed under their account.");
- }
- else
- {
- new flaggedby[24], date[24], desc[128];
- SendClientMessageEx(playerid, COLOR_GREEN, "|________ %s's Flags ________|", GetPlayerRPName(targetid));
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "flaggedby", flaggedby);
- cache_get_field_content(i, "date", date);
- cache_get_field_content(i, "description", desc);
- SendClientMessageEx(playerid, COLOR_GREY2, "[%i][%s] %s (from: %s)", i + 1, date, desc, flaggedby);
- }
- }
- }
- forward OnVerifyRemoveFlag(playerid, targetid, slot);
- public OnVerifyRemoveFlag(playerid, targetid, slot)
- {
- if(cache_get_row_count(connectionID))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM flags WHERE id = %i", cache_get_row_int(0, 0));
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** %s's flag in slot %i was removed.", GetPlayerRPName(targetid), slot);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has no outstanding flag in that slot.");
- }
- }
- forward OnAdminOfflineCheck(playerid, username[]);
- public OnAdminOfflineCheck(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else
- {
- // At first I didn't know how I was going to do this. But then I came up with a plan.
- // Load everything into an unused player slot, use DisplayStats as normal, then destroy the data.
- // This ensures that whenever I add a new thing to /stats for instance, I don't have to maintain
- // two stats functions, I can just call DisplayStats and let the work do itself.
- PlayerInfo[MAX_PLAYERS][pID] = cache_get_field_content_int(0, "uid");
- PlayerInfo[MAX_PLAYERS][pSetup] = cache_get_field_content_int(0, "setup");
- PlayerInfo[MAX_PLAYERS][pGender] = cache_get_field_content_int(0, "gender");
- PlayerInfo[MAX_PLAYERS][pAge] = cache_get_field_content_int(0, "age");
- PlayerInfo[MAX_PLAYERS][pSkin] = cache_get_field_content_int(0, "skin");
- PlayerInfo[MAX_PLAYERS][pCameraX] = cache_get_field_content_float(0, "camera_x");
- PlayerInfo[MAX_PLAYERS][pCameraY] = cache_get_field_content_float(0, "camera_y");
- PlayerInfo[MAX_PLAYERS][pCameraZ] = cache_get_field_content_float(0, "camera_z");
- PlayerInfo[MAX_PLAYERS][pPosX] = cache_get_field_content_float(0, "pos_x");
- PlayerInfo[MAX_PLAYERS][pPosY] = cache_get_field_content_float(0, "pos_y");
- PlayerInfo[MAX_PLAYERS][pPosZ] = cache_get_field_content_float(0, "pos_z");
- PlayerInfo[MAX_PLAYERS][pPosA] = cache_get_field_content_float(0, "pos_a");
- PlayerInfo[MAX_PLAYERS][pInterior] = cache_get_field_content_int(0, "interior");
- PlayerInfo[MAX_PLAYERS][pWorld] = cache_get_field_content_int(0, "world");
- PlayerInfo[MAX_PLAYERS][pCash] = cache_get_field_content_int(0, "cash");
- PlayerInfo[MAX_PLAYERS][pBank] = cache_get_field_content_int(0, "bank");
- PlayerInfo[MAX_PLAYERS][pPaycheck] = cache_get_field_content_int(0, "paycheck");
- PlayerInfo[MAX_PLAYERS][pLevel] = cache_get_field_content_int(0, "level");
- PlayerInfo[MAX_PLAYERS][pEXP] = cache_get_field_content_int(0, "exp");
- PlayerInfo[MAX_PLAYERS][pMinutes] = cache_get_field_content_int(0, "minutes");
- PlayerInfo[MAX_PLAYERS][pHours] = cache_get_field_content_int(0, "hours");
- PlayerInfo[MAX_PLAYERS][pAdmin] = cache_get_field_content_int(0, "adminlevel");
- PlayerInfo[MAX_PLAYERS][pHelper] = cache_get_field_content_int(0, "helperlevel");
- PlayerInfo[MAX_PLAYERS][pHealth] = cache_get_field_content_float(0, "health");
- PlayerInfo[MAX_PLAYERS][pArmor] = cache_get_field_content_float(0, "armor");
- PlayerInfo[MAX_PLAYERS][pUpgradePoints] = cache_get_field_content_int(0, "upgradepoints");
- PlayerInfo[MAX_PLAYERS][pWarnings] = cache_get_field_content_int(0, "warnings");
- PlayerInfo[MAX_PLAYERS][pInjured] = cache_get_field_content_int(0, "injured");
- PlayerInfo[MAX_PLAYERS][pHospital] = cache_get_field_content_int(0, "hospital");
- PlayerInfo[MAX_PLAYERS][pSpawnHealth] = cache_get_field_content_float(0, "spawnhealth");
- PlayerInfo[MAX_PLAYERS][pSpawnArmor] = cache_get_field_content_float(0, "spawnarmor");
- PlayerInfo[MAX_PLAYERS][pJailType] = cache_get_field_content_int(0, "jailtype");
- PlayerInfo[MAX_PLAYERS][pJailTime] = cache_get_field_content_int(0, "jailtime");
- PlayerInfo[MAX_PLAYERS][pNewbieMuted] = cache_get_field_content_int(0, "newbiemuted");
- PlayerInfo[MAX_PLAYERS][pHelpMuted] = cache_get_field_content_int(0, "helpmuted");
- PlayerInfo[MAX_PLAYERS][pAdMuted] = cache_get_field_content_int(0, "admuted");
- PlayerInfo[MAX_PLAYERS][pLiveMuted] = cache_get_field_content_int(0, "livemuted");
- PlayerInfo[MAX_PLAYERS][pGlobalMuted] = cache_get_field_content_int(0, "globalmuted");
- PlayerInfo[MAX_PLAYERS][pReportMuted] = cache_get_field_content_int(0, "reportmuted");
- PlayerInfo[MAX_PLAYERS][pReportWarns] = cache_get_field_content_int(0, "reportwarns");
- PlayerInfo[MAX_PLAYERS][pFightStyle] = cache_get_field_content_int(0, "fightstyle");
- PlayerInfo[MAX_PLAYERS][pCookies] = cache_get_field_content_int(0, "cookies");
- PlayerInfo[MAX_PLAYERS][pPhone] = cache_get_field_content_int(0, "phone");
- PlayerInfo[MAX_PLAYERS][pJob] = cache_get_field_content_int(0, "job");
- PlayerInfo[MAX_PLAYERS][pSecondJob] = cache_get_field_content_int(0, "secondjob");
- PlayerInfo[MAX_PLAYERS][pCrimes] = cache_get_field_content_int(0, "crimes");
- PlayerInfo[MAX_PLAYERS][pArrested] = cache_get_field_content_int(0, "arrested");
- PlayerInfo[MAX_PLAYERS][pWantedLevel] = cache_get_field_content_int(0, "wantedlevel");
- PlayerInfo[MAX_PLAYERS][pMaterials] = cache_get_field_content_int(0, "materials");
- PlayerInfo[MAX_PLAYERS][pWeed] = cache_get_field_content_int(0, "weed");
- PlayerInfo[MAX_PLAYERS][pCocaine] = cache_get_field_content_int(0, "cocaine");
- PlayerInfo[MAX_PLAYERS][pMeth] = cache_get_field_content_int(0, "meth");
- PlayerInfo[MAX_PLAYERS][pPainkillers] = cache_get_field_content_int(0, "painkillers");
- PlayerInfo[MAX_PLAYERS][pSeeds] = cache_get_field_content_int(0, "seeds");
- PlayerInfo[MAX_PLAYERS][pEphedrine] = cache_get_field_content_int(0, "ephedrine");
- PlayerInfo[MAX_PLAYERS][pMuriaticAcid] = cache_get_field_content_int(0, "muriaticacid");
- PlayerInfo[MAX_PLAYERS][pBakingSoda] = cache_get_field_content_int(0, "bakingsoda");
- PlayerInfo[MAX_PLAYERS][pCigars] = cache_get_field_content_int(0, "cigars");
- PlayerInfo[MAX_PLAYERS][pWalkieTalkie] = cache_get_field_content_int(0, "walkietalkie");
- PlayerInfo[MAX_PLAYERS][pChannel] = cache_get_field_content_int(0, "channel");
- PlayerInfo[MAX_PLAYERS][pRentingHouse] = cache_get_field_content_int(0, "rentinghouse");
- PlayerInfo[MAX_PLAYERS][pSpraycans] = cache_get_field_content_int(0, "spraycans");
- PlayerInfo[MAX_PLAYERS][pBoombox] = cache_get_field_content_int(0, "boombox");
- PlayerInfo[MAX_PLAYERS][pMP3Player] = cache_get_field_content_int(0, "mp3player");
- PlayerInfo[MAX_PLAYERS][pPhonebook] = cache_get_field_content_int(0, "phonebook");
- PlayerInfo[MAX_PLAYERS][pFishingRod] = cache_get_field_content_int(0, "fishingrod");
- PlayerInfo[MAX_PLAYERS][pFishingBait] = cache_get_field_content_int(0, "fishingbait");
- PlayerInfo[MAX_PLAYERS][pFishWeight] = cache_get_field_content_int(0, "fishweight");
- PlayerInfo[MAX_PLAYERS][pComponents] = cache_get_field_content_int(0, "components");
- PlayerInfo[MAX_PLAYERS][pCourierSkill] = cache_get_field_content_int(0, "courierskill");
- PlayerInfo[MAX_PLAYERS][pFishingSkill] = cache_get_field_content_int(0, "fishingskill");
- PlayerInfo[MAX_PLAYERS][pGuardSkill] = cache_get_field_content_int(0, "guardskill");
- PlayerInfo[MAX_PLAYERS][pWeaponSkill] = cache_get_field_content_int(0, "weaponskill");
- PlayerInfo[MAX_PLAYERS][pMechanicSkill] = cache_get_field_content_int(0, "mechanicskill");
- PlayerInfo[MAX_PLAYERS][pLawyerSkill] = cache_get_field_content_int(0, "lawyerskill");
- PlayerInfo[MAX_PLAYERS][pSmugglerSkill] = cache_get_field_content_int(0, "smugglerskill");
- PlayerInfo[MAX_PLAYERS][pToggleTextdraws] = cache_get_field_content_int(0, "toggletextdraws");
- PlayerInfo[MAX_PLAYERS][pToggleOOC] = cache_get_field_content_int(0, "toggleooc");
- PlayerInfo[MAX_PLAYERS][pTogglePhone] = cache_get_field_content_int(0, "togglephone");
- PlayerInfo[MAX_PLAYERS][pToggleAdmin] = cache_get_field_content_int(0, "toggleadmin");
- PlayerInfo[MAX_PLAYERS][pToggleHelper] = cache_get_field_content_int(0, "togglehelper");
- PlayerInfo[MAX_PLAYERS][pToggleNewbie] = cache_get_field_content_int(0, "togglenewbie");
- PlayerInfo[MAX_PLAYERS][pToggleWT] = cache_get_field_content_int(0, "togglewt");
- PlayerInfo[MAX_PLAYERS][pToggleRadio] = cache_get_field_content_int(0, "toggleradio");
- PlayerInfo[MAX_PLAYERS][pToggleVIP] = cache_get_field_content_int(0, "togglevip");
- PlayerInfo[MAX_PLAYERS][pToggleMusic] = cache_get_field_content_int(0, "togglemusic");
- PlayerInfo[MAX_PLAYERS][pToggleFaction] = cache_get_field_content_int(0, "togglefaction");
- PlayerInfo[MAX_PLAYERS][pToggleNews] = cache_get_field_content_int(0, "togglenews");
- PlayerInfo[MAX_PLAYERS][pToggleGlobal] = cache_get_field_content_int(0, "toggleglobal");
- PlayerInfo[MAX_PLAYERS][pToggleCam] = cache_get_field_content_int(0, "togglecam");
- PlayerInfo[MAX_PLAYERS][pToggleHUD] = cache_get_field_content_int(0, "togglehud");
- PlayerInfo[MAX_PLAYERS][pCarLicense] = cache_get_field_content_int(0, "carlicense");
- PlayerInfo[MAX_PLAYERS][pVIPPackage] = cache_get_field_content_int(0, "vippackage");
- PlayerInfo[MAX_PLAYERS][pVIPTime] = cache_get_field_content_int(0, "viptime");
- PlayerInfo[MAX_PLAYERS][pVIPCooldown] = cache_get_field_content_int(0, "vipcooldown");
- PlayerInfo[MAX_PLAYERS][pWeapons][0] = cache_get_field_content_int(0, "weapon_0");
- PlayerInfo[MAX_PLAYERS][pWeapons][1] = cache_get_field_content_int(0, "weapon_1");
- PlayerInfo[MAX_PLAYERS][pWeapons][2] = cache_get_field_content_int(0, "weapon_2");
- PlayerInfo[MAX_PLAYERS][pWeapons][3] = cache_get_field_content_int(0, "weapon_3");
- PlayerInfo[MAX_PLAYERS][pWeapons][4] = cache_get_field_content_int(0, "weapon_4");
- PlayerInfo[MAX_PLAYERS][pWeapons][5] = cache_get_field_content_int(0, "weapon_5");
- PlayerInfo[MAX_PLAYERS][pWeapons][6] = cache_get_field_content_int(0, "weapon_6");
- PlayerInfo[MAX_PLAYERS][pWeapons][7] = cache_get_field_content_int(0, "weapon_7");
- PlayerInfo[MAX_PLAYERS][pWeapons][8] = cache_get_field_content_int(0, "weapon_8");
- PlayerInfo[MAX_PLAYERS][pWeapons][9] = cache_get_field_content_int(0, "weapon_9");
- PlayerInfo[MAX_PLAYERS][pWeapons][10] = cache_get_field_content_int(0, "weapon_10");
- PlayerInfo[MAX_PLAYERS][pWeapons][11] = cache_get_field_content_int(0, "weapon_11");
- PlayerInfo[MAX_PLAYERS][pWeapons][12] = cache_get_field_content_int(0, "weapon_12");
- PlayerInfo[MAX_PLAYERS][pFaction] = cache_get_field_content_int(0, "faction");
- PlayerInfo[MAX_PLAYERS][pFactionRank] = cache_get_field_content_int(0, "factionrank");
- PlayerInfo[MAX_PLAYERS][pGang] = cache_get_field_content_int(0, "gang");
- PlayerInfo[MAX_PLAYERS][pGangRank] = cache_get_field_content_int(0, "gangrank");
- PlayerInfo[MAX_PLAYERS][pDivision] = cache_get_field_content_int(0, "division");
- PlayerInfo[MAX_PLAYERS][pContracted] = cache_get_field_content_int(0, "contracted");
- PlayerInfo[MAX_PLAYERS][pBombs] = cache_get_field_content_int(0, "bombs");
- PlayerInfo[MAX_PLAYERS][pCompletedHits] = cache_get_field_content_int(0, "completedhits");
- PlayerInfo[MAX_PLAYERS][pFailedHits] = cache_get_field_content_int(0, "failedhits");
- PlayerInfo[MAX_PLAYERS][pReports] = cache_get_field_content_int(0, "reports");
- PlayerInfo[MAX_PLAYERS][pHelpRequests] = cache_get_field_content_int(0, "helprequests");
- PlayerInfo[MAX_PLAYERS][pSpeedometer] = cache_get_field_content_int(0, "speedometer");
- PlayerInfo[MAX_PLAYERS][pFactionMod] = cache_get_field_content_int(0, "factionmod");
- PlayerInfo[MAX_PLAYERS][pGangMod] = cache_get_field_content_int(0, "gangmod");
- PlayerInfo[MAX_PLAYERS][pBanAppealer] = cache_get_field_content_int(0, "banappealer");
- PlayerInfo[MAX_PLAYERS][pWeedPlanted] = cache_get_field_content_int(0, "weedplanted");
- PlayerInfo[MAX_PLAYERS][pWeedTime] = cache_get_field_content_int(0, "weedtime");
- PlayerInfo[MAX_PLAYERS][pWeedGrams] = cache_get_field_content_int(0, "weedgrams");
- PlayerInfo[MAX_PLAYERS][pWeedX] = cache_get_field_content_float(0, "weed_x");
- PlayerInfo[MAX_PLAYERS][pWeedY] = cache_get_field_content_float(0, "weed_y");
- PlayerInfo[MAX_PLAYERS][pWeedZ] = cache_get_field_content_float(0, "weed_z");
- PlayerInfo[MAX_PLAYERS][pWeedA] = cache_get_field_content_float(0, "weed_a");
- PlayerInfo[MAX_PLAYERS][pInventoryUpgrade] = cache_get_field_content_int(0, "inventoryupgrade");
- PlayerInfo[MAX_PLAYERS][pAddictUpgrade] = cache_get_field_content_int(0, "addictupgrade");
- PlayerInfo[MAX_PLAYERS][pTraderUpgrade] = cache_get_field_content_int(0, "traderupgrade");
- PlayerInfo[MAX_PLAYERS][pAssetUpgrade] = cache_get_field_content_int(0, "assetupgrade");
- PlayerInfo[MAX_PLAYERS][pHPAmmo] = cache_get_field_content_int(0, "hpammo");
- PlayerInfo[MAX_PLAYERS][pPoisonAmmo] = cache_get_field_content_int(0, "poisonammo");
- PlayerInfo[MAX_PLAYERS][pFMJAmmo] = cache_get_field_content_int(0, "fmjammo");
- PlayerInfo[MAX_PLAYERS][pAmmoType] = cache_get_field_content_int(0, "ammotype");
- PlayerInfo[MAX_PLAYERS][pAmmoWeapon] = cache_get_field_content_int(0, "ammoweapon");
- PlayerInfo[MAX_PLAYERS][pDMWarnings] = cache_get_field_content_int(0, "dmwarnings");
- PlayerInfo[MAX_PLAYERS][pWeaponRestricted] = cache_get_field_content_int(0, "weaponrestricted");
- PlayerInfo[MAX_PLAYERS][pReferralUID] = cache_get_field_content_int(0, "referral_uid");
- PlayerInfo[MAX_PLAYERS][pWatch] = cache_get_field_content_int(0, "watch");
- PlayerInfo[MAX_PLAYERS][pGPS] = cache_get_field_content_int(0, "gps");
-
- strcpy(PlayerInfo[MAX_PLAYERS][pUsername], username, MAX_PLAYER_NAME);
- DisplayStats(MAX_PLAYERS, playerid);
- }
- }
- forward OnAdminOfflineFlag(playerid, username[], desc[]);
- public OnAdminOfflineFlag(playerid, username[], desc[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, '%s', NOW(), '%e')", cache_get_field_content_int(0, "uid"), GetPlayerNameEx(playerid), desc);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s offline flagged %s's account for '%s'.", GetPlayerRPName(playerid), username, desc);
- }
- }
- forward OnAdminCheckBanHistory(playerid, username[]);
- public OnAdminCheckBanHistory(playerid, username[])
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "This player has no ban history recorded.");
- }
- else
- {
- new date[24], description[255];
- for(new i = 0; i < rows; i ++)
- {
- cache_get_row(i, 0, date);
- cache_get_row(i, 1, description);
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "[%s] %s", date, description);
- }
- }
- }
- forward OnAdminCheckLastActive(playerid, username[]);
- public OnAdminCheckLastActive(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else
- {
- new
- date[40];
- cache_get_row(0, 0, date);
- SendClientMessageEx(playerid, COLOR_GREEN, "%s last logged in on the %s (server time).", username, date);
- }
- }
- forward OnAdminSetHelperLevel(playerid, username[], level);
- public OnAdminSetHelperLevel(playerid, username[], level)
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else if((PlayerInfo[playerid][pAdmin] < 6) && cache_get_row_int(0, 0) > PlayerInfo[playerid][pHelper] && level < cache_get_row_int(0, 0))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher helper level than you. They cannot be demoted.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET helperlevel = %i WHERE username = '%e'", level, username);
- mysql_tquery(connectionID, queryBuffer);
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s has offline set %s's helper level to %i.", GetPlayerRPName(playerid), username, level);
- Log_Write("log_admin", "%s (uid: %i) has offline set %s's helper level to %i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, level);
- }
- }
- forward OnAdminSetAdminLevel(playerid, username[], level);
- public OnAdminSetAdminLevel(playerid, username[], level)
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else if(cache_get_row_int(0, 0) > PlayerInfo[playerid][pAdmin] && level < cache_get_row_int(0, 0))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be demoted.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET adminlevel = %i WHERE username = '%e'", level, username);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has offline set %s's admin level to %i.", GetPlayerRPName(playerid), username, level);
- Log_Write("log_admin", "%s (uid: %i) has offline set %s's admin level to %i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, level);
- }
- }
- forward OnAdminCreateTurf(playerid, turfid, name[], type, Float:minx, Float:miny, Float:maxx, Float:maxy, Float:height);
- public OnAdminCreateTurf(playerid, turfid, name[], type, Float:minx, Float:miny, Float:maxx, Float:maxy, Float:height)
- {
- strcpy(TurfInfo[turfid][tName], name, 32);
- strcpy(TurfInfo[turfid][tCapturedBy], "No-one", MAX_PLAYER_NAME);
- TurfInfo[turfid][tExists] = 1;
- TurfInfo[turfid][tCapturedGang] = -1;
- TurfInfo[turfid][tTime] = 12;
- TurfInfo[turfid][tType] = type;
- TurfInfo[turfid][tMinX] = minx;
- TurfInfo[turfid][tMinY] = miny;
- TurfInfo[turfid][tMaxX] = maxx;
- TurfInfo[turfid][tMaxY] = maxy;
- TurfInfo[turfid][tHeight] = height;
- TurfInfo[turfid][tGangZone] = -1;
- TurfInfo[turfid][tArea] = -1;
- TurfInfo[turfid][tCaptureTime] = 0;
- TurfInfo[turfid][tCapturer] = INVALID_PLAYER_ID;
- ReloadTurf(turfid);
- SendClientMessageEx(playerid, COLOR_GREEN, "** Turf %i created successfully.", turfid);
- }
- forward OnAdminCreateLand(playerid, landid, price, Float:minx, Float:miny, Float:maxx, Float:maxy, Float:height);
- public OnAdminCreateLand(playerid, landid, price, Float:minx, Float:miny, Float:maxx, Float:maxy, Float:height)
- {
- strcpy(LandInfo[landid][lOwner], "Nobody", MAX_PLAYER_NAME);
- LandInfo[landid][lExists] = 1;
- LandInfo[landid][lID] = cache_insert_id(connectionID);
- LandInfo[landid][lOwnerID] = 0;
- LandInfo[landid][lPrice] = price;
- LandInfo[landid][lMinX] = minx;
- LandInfo[landid][lMinY] = miny;
- LandInfo[landid][lMaxX] = maxx;
- LandInfo[landid][lMaxY] = maxy;
- LandInfo[landid][lHeight] = height;
- LandInfo[landid][lGangZone] = -1;
- LandInfo[landid][lArea] = -1;
- ReloadLand(landid);
- SendClientMessageEx(playerid, COLOR_GREEN, "** Land %i created successfully.", landid);
- }
- forward OnAdminCreateEntrance(playerid, entranceid, name[], Float:x, Float:y, Float:z, Float:angle);
- public OnAdminCreateEntrance(playerid, entranceid, name[], Float:x, Float:y, Float:z, Float:angle)
- {
- strcpy(EntranceInfo[entranceid][eOwner], "Nobody", MAX_PLAYER_NAME);
- strcpy(EntranceInfo[entranceid][eName], name, 40);
- strcpy(EntranceInfo[entranceid][ePassword], "None", 64);
- EntranceInfo[entranceid][eExists] = 1;
- EntranceInfo[entranceid][eID] = cache_insert_id(connectionID);
- EntranceInfo[entranceid][eOwnerID] = 0;
- EntranceInfo[entranceid][eIcon] = 1239;
- EntranceInfo[entranceid][eLocked] = 0;
- EntranceInfo[entranceid][eRadius] = 3.0;
- EntranceInfo[entranceid][ePosX] = x;
- EntranceInfo[entranceid][ePosY] = y;
- EntranceInfo[entranceid][ePosZ] = z;
- EntranceInfo[entranceid][ePosA] = angle;
- EntranceInfo[entranceid][eIntX] = 0.0;
- EntranceInfo[entranceid][eIntY] = 0.0;
- EntranceInfo[entranceid][eIntZ] = 0.0;
- EntranceInfo[entranceid][eIntA] = 0.0;
- EntranceInfo[entranceid][eInterior] = 0;
- EntranceInfo[entranceid][eWorld] = EntranceInfo[entranceid][eID] + 4000000;
- EntranceInfo[entranceid][eOutsideInt] = GetPlayerInterior(playerid);
- EntranceInfo[entranceid][eOutsideVW] = GetPlayerVirtualWorld(playerid);
- EntranceInfo[entranceid][eAdminLevel] = 0;
- EntranceInfo[entranceid][eFactionType] = FACTION_NONE;
- EntranceInfo[entranceid][eVIP] = 0;
- EntranceInfo[entranceid][eVehicles] = 0;
- EntranceInfo[entranceid][eFreeze] = 0;
- EntranceInfo[entranceid][eLabel] = 1;
- EntranceInfo[entranceid][eText] = Text3D:INVALID_3DTEXT_ID;
- EntranceInfo[entranceid][ePickup] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET world = %i WHERE id = %i", EntranceInfo[entranceid][eWorld], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_GREEN, "** Entrance %i created successfully.", entranceid);
- }
- forward OnAdminCreateBusiness(playerid, businessid, type, Float:x, Float:y, Float:z, Float:angle);
- public OnAdminCreateBusiness(playerid, businessid, type, Float:x, Float:y, Float:z, Float:angle)
- {
- strcpy(BusinessInfo[businessid][bOwner], "Nobody", MAX_PLAYER_NAME);
- BusinessInfo[businessid][bExists] = 1;
- BusinessInfo[businessid][bID] = cache_insert_id(connectionID);
- BusinessInfo[businessid][bOwnerID] = 0;
- BusinessInfo[businessid][bType] = type;
- BusinessInfo[businessid][bPrice] = bizInteriors[type][intPrice];
- BusinessInfo[businessid][bEntryFee] = 0;
- BusinessInfo[businessid][bLocked] = 0;
- BusinessInfo[businessid][bPosX] = x;
- BusinessInfo[businessid][bPosY] = y;
- BusinessInfo[businessid][bPosZ] = z;
- BusinessInfo[businessid][bPosA] = angle;
- BusinessInfo[businessid][bIntX] = bizInteriors[type][intX];
- BusinessInfo[businessid][bIntY] = bizInteriors[type][intY];
- BusinessInfo[businessid][bIntZ] = bizInteriors[type][intZ];
- BusinessInfo[businessid][bIntA] = bizInteriors[type][intA];
- BusinessInfo[businessid][bInterior] = bizInteriors[type][intID];
- BusinessInfo[businessid][bWorld] = BusinessInfo[businessid][bID] + 3000000;
- BusinessInfo[businessid][bOutsideInt] = GetPlayerInterior(playerid);
- BusinessInfo[businessid][bOutsideVW] = GetPlayerVirtualWorld(playerid);
- BusinessInfo[businessid][bCash] = 0;
- BusinessInfo[businessid][bProducts] = 500;
- BusinessInfo[businessid][bText] = Text3D:INVALID_3DTEXT_ID;
- BusinessInfo[businessid][bPickup] = -1;
- BusinessInfo[businessid][bMapIcon] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET world = %i WHERE id = %i", BusinessInfo[businessid][bWorld], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_GREEN, "** Business %i created successfully.", businessid);
- }
- forward OnAdminCreateGarage(playerid, garageid, type, Float:x, Float:y, Float:z, Float:angle);
- public OnAdminCreateGarage(playerid, garageid, type, Float:x, Float:y, Float:z, Float:angle)
- {
- strcpy(GarageInfo[garageid][gOwner], "Nobody", MAX_PLAYER_NAME);
- GarageInfo[garageid][gExists] = 1;
- GarageInfo[garageid][gID] = cache_insert_id(connectionID);
- GarageInfo[garageid][gOwnerID] = 0;
- GarageInfo[garageid][gType] = type;
- GarageInfo[garageid][gPrice] = garageInteriors[type][intPrice];
- GarageInfo[garageid][gLocked] = 0;
- GarageInfo[garageid][gPosX] = x;
- GarageInfo[garageid][gPosY] = y;
- GarageInfo[garageid][gPosZ] = z;
- GarageInfo[garageid][gPosA] = angle;
- GarageInfo[garageid][gExitX] = x - 3.0 * floatsin(-angle, degrees);
- GarageInfo[garageid][gExitY] = y - 3.0 * floatsin(-angle, degrees);
- GarageInfo[garageid][gExitZ] = z;
- GarageInfo[garageid][gExitA] = angle - 180.0;
- GarageInfo[garageid][gWorld] = GarageInfo[garageid][gID] + 2000000;
- GarageInfo[garageid][gText] = Text3D:INVALID_3DTEXT_ID;
- GarageInfo[garageid][gPickup] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET world = %i WHERE id = %i", GarageInfo[garageid][gWorld], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- SendClientMessageEx(playerid, COLOR_GREEN, "** Garage %i created successfully.", garageid);
- }
- forward OnAdminCreateHouse(playerid, houseid, type, Float:x, Float:y, Float:z, Float:angle);
- public OnAdminCreateHouse(playerid, houseid, type, Float:x, Float:y, Float:z, Float:angle)
- {
- strcpy(HouseInfo[houseid][hOwner], "Nobody", MAX_PLAYER_NAME);
- HouseInfo[houseid][hExists] = 1;
- HouseInfo[houseid][hID] = cache_insert_id(connectionID);
- HouseInfo[houseid][hOwnerID] = 0;
- HouseInfo[houseid][hType] = type;
- HouseInfo[houseid][hPrice] = houseInteriors[type][intPrice];
- HouseInfo[houseid][hRentPrice] = 0;
- HouseInfo[houseid][hLevel] = 1;
- HouseInfo[houseid][hLocked] = 0;
- HouseInfo[houseid][hPosX] = x;
- HouseInfo[houseid][hPosY] = y;
- HouseInfo[houseid][hPosZ] = z;
- HouseInfo[houseid][hPosA] = angle;
- HouseInfo[houseid][hIntX] = houseInteriors[type][intX];
- HouseInfo[houseid][hIntY] = houseInteriors[type][intY];
- HouseInfo[houseid][hIntZ] = houseInteriors[type][intZ];
- HouseInfo[houseid][hIntA] = houseInteriors[type][intA];
- HouseInfo[houseid][hInterior] = houseInteriors[type][intID];
- HouseInfo[houseid][hWorld] = HouseInfo[houseid][hID] + 1000000;
- HouseInfo[houseid][hOutsideInt] = GetPlayerInterior(playerid);
- HouseInfo[houseid][hOutsideVW] = GetPlayerVirtualWorld(playerid);
- HouseInfo[houseid][hCash] = 0;
- HouseInfo[houseid][hMaterials] = 0;
- HouseInfo[houseid][hWeed] = 0;
- HouseInfo[houseid][hCocaine] = 0;
- HouseInfo[houseid][hMeth] = 0;
- HouseInfo[houseid][hPainkillers] = 0;
- HouseInfo[houseid][hHPAmmo] = 0;
- HouseInfo[houseid][hPoisonAmmo] = 0;
- HouseInfo[houseid][hFMJAmmo] = 0;
- HouseInfo[houseid][hLabels] = 0;
- HouseInfo[houseid][hText] = Text3D:INVALID_3DTEXT_ID;
- HouseInfo[houseid][hPickup] = -1;
- for(new i = 0; i < 10; i ++)
- {
- HouseInfo[houseid][hWeapons][i] = 0;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET world = %i WHERE id = %i", HouseInfo[houseid][hWorld], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_GREEN, "** House %i created successfully.", houseid);
- }
- forward OnAdminDeleteAccount(playerid, username[]);
- public OnAdminDeleteAccount(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else if(cache_get_row_int(0, 0) > PlayerInfo[playerid][pAdmin])
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. You cannot delete them.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has deleted %s's account.", GetPlayerNameEx(playerid), username);
- }
- }
- forward OnAdminListKills(playerid, targetid);
- public OnAdminListKills(playerid, targetid)
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player hasn't killed, or has been killed, by anyone since they registered.");
- }
- else
- {
- new date[24], killer[24], target[24], reason[24];
- SendClientMessage(playerid, COLOR_GREEN, "|_______ Kills & Deaths _______|");
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "date", date);
- cache_get_field_content(i, "killer", killer);
- cache_get_field_content(i, "target", target);
- cache_get_field_content(i, "reason", reason);
- if(cache_get_field_content_int(i, "killer_uid") == PlayerInfo[targetid][pID])
- {
- SendClientMessageEx(playerid, COLOR_YELLOW, "[%s] %s killed %s (%s)", date, killer, target, reason);
- }
- else if(cache_get_field_content_int(i, "target_uid") == PlayerInfo[targetid][pID])
- {
- SendClientMessageEx(playerid, COLOR_YELLOW, "[%s] %s was killed by %s (%s)", date, target, killer, reason);
- }
- }
- }
- }
- forward OnAdminListDamages(playerid, targetid);
- public OnAdminListDamages(playerid, targetid)
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player hasn't been damaged by anyone since they connected.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "|__________ Damage Received __________|");
- for(new i = 0; i < rows; i ++)
- {
- SendClientMessageEx(playerid, COLOR_YELLOW, "[%i seconds ago] %s was shot by %s with a %s", gettime() - cache_get_row_int(i, 2), GetPlayerRPName(targetid), GetPlayerRPName(cache_get_row_int(1, 1)), GetWeaponNameEx(cache_get_row_int(i, 0)));
- //SendClientMessageEx(playerid, COLOR_GREY2, "(Weapon: %s) - (From: %s) - (Time: %i seconds ago)", GetWeaponNameEx(cache_get_row_int(i, 0)), GetPlayerRPName(cache_get_row_int(i, 1)), gettime() - cache_get_row_int(i, 2));
- }
- }
- }
- forward OnAdminListShots(playerid, targetid);
- public OnAdminListShots(playerid, targetid)
- {
- new rows = cache_get_row_count(connectionID);
- if(!rows)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player hasn't registered any shots since they connected.");
- }
- else
- {
- new weaponid, hittype, timestamp, hit[48];
- SendClientMessageEx(playerid, COLOR_GREEN, "|__________ %i Last Shots __________|", rows);
- for(new i = 0; i < rows; i ++)
- {
- weaponid = cache_get_field_content_int(i, "weaponid");
- hittype = cache_get_field_content_int(i, "hittype");
- timestamp = cache_get_field_content_int(i, "timestamp");
- switch(hittype)
- {
- case BULLET_HIT_TYPE_PLAYER:
- cache_get_field_content(i, "hitplayer", hit);
- case BULLET_HIT_TYPE_VEHICLE:
- format(hit, sizeof(hit), "Vehicle (ID %i)", cache_get_field_content_int(i, "hitid"));
- default:
- hit = "Missed";
- }
- SendClientMessageEx(playerid, COLOR_YELLOW, "[%i seconds ago] %s shot a %s and hit: %s", gettime() - timestamp, GetPlayerRPName(targetid), GetWeaponNameEx(weaponid), hit);
- }
- }
- }
- forward OnAdminBanIP(playerid, ip[], reason[]);
- public OnAdminBanIP(playerid, ip[], reason[])
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "This IP address is already banned.");
- }
- else
- {
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerIP(i), ip))
- {
- SendClientMessageEx(i, COLOR_YELLOW, "** Your IP address has been banned by %s, reason: %s", GetPlayerRPName(playerid), reason);
- KickPlayer(i);
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO bans VALUES(null, 'n/a', '%s', '%s', NOW(), '%s', 0)", ip, GetPlayerNameEx(playerid), reason);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has banned IP '%s', reason: %s", GetPlayerRPName(playerid), ip, reason);
- Log_Write("log_punishments", "%s (uid: %i) has banned IP: %s, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], ip, reason);
- }
- }
- forward OnAdminCheckBan(playerid, string[]);
- public OnAdminCheckBan(playerid, string[])
- {
- new bannedby[MAX_PLAYER_NAME], username[MAX_PLAYER_NAME], ip[16], date[24], reason[128];
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "There are no bans that match your criteria.");
- }
- else
- {
- cache_get_field_content(0, "bannedby", bannedby);
- cache_get_field_content(0, "username", username);
- cache_get_field_content(0, "ip", ip);
- cache_get_field_content(0, "date", date);
- cache_get_field_content(0, "reason", reason);
- if(!strcmp(username, "n/a", true)) {
- if(strfind(ip, "*", true) != -1) {
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "[%s] IP address '%s' was rangebanned by %s, reason: %s", date, ip, bannedby, reason);
- } else {
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "[%s] IP address '%s' was banned by %s, reason: %s", date, ip, bannedby, reason);
- }
- }
- else {
- if(strfind(ip, "*", true) != -1) {
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "[%s] %s (IP: %s) was rangebanned by %s, reason: %s", date, username, ip, bannedby, reason);
- } else if(cache_get_field_content_int(0, "permanent")) {
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "[%s] %s (IP: %s) was permanently banned by %s, reason: %s", date, username, ip, bannedby, reason);
- } else {
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "[%s] %s (IP: %s) was banned by %s, reason: %s", date, username, ip, bannedby, reason);
- }
- }
- }
- }
- forward OnAdminUnbanUser(playerid, username[]);
- public OnAdminUnbanUser(playerid, username[])
- {
- if(cache_get_row_count(connectionID))
- {
- if(cache_get_row_int(0, 1) && PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player is permanently banned. Permabans may only be lifted by management.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM bans WHERE id = %i", cache_get_row_int(0, 0));
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has unbanned %s.", GetPlayerRPName(playerid), username);
- Log_Write("log_punishments", "%s (uid: %i) has unbanned %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "There is no banned player known by that name.");
- }
- return 1;
- }
- forward OnAdminLockAccount(playerid, username[]);
- public OnAdminLockAccount(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist.");
- }
- else if(cache_get_row_int(0, 0))
- {
- SendClientMessage(playerid, COLOR_GREY, "This player's account is already locked. /unlockaccount to unlock it.");
- }
- else if(cache_get_row_int(0, 1) > PlayerInfo[playerid][pAdmin])
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be locked.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET locked = 1 WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has locked %s's account.", GetPlayerRPName(playerid), username);
- Log_Write("log_admin", "%s (uid: %i) locked %s's account.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username);
- }
- }
- forward OnAdminUnlockAccount(playerid, username[]);
- public OnAdminUnlockAccount(playerid, username[])
- {
- if(!cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified doesn't exist, or their account is not locked.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET locked = 0 WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has unlocked %s's account.", GetPlayerRPName(playerid), username);
- Log_Write("log_admin", "%s (uid: %i) unlocked %s's account.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username);
- }
- }
- forward OnAdminChangeName(playerid, targetid, name[]);
- public OnAdminChangeName(playerid, targetid, name[])
- {
- if(cache_get_row_count(connectionID))
- {
- SendClientMessage(playerid, COLOR_GREY, "The name specified is taken already.");
- }
- else
- {
- Log_Write("log_admin", "%s (uid: %i) changed %s's (uid: %i) name to %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], name);
- Log_Write("log_namechanges", "%s (uid: %i) changed %s's (uid: %i) name to %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], name);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has changed %s's name to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), name);
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s changed your name from %s to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), name);
- Namechange(targetid, GetPlayerNameEx(targetid), name);
- }
- }
- forward OnAdminOfflineBan(playerid, username[], reason[]);
- public OnAdminOfflineBan(playerid, username[], reason[])
- {
- if(cache_get_row_count(connectionID))
- {
- if(cache_get_row_int(0, 0) > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be banned.");
- }
- new
- ip[16];
- cache_get_row(0, 1, ip);
- AddBan(username, ip, GetPlayerNameEx(playerid), reason);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO log_bans VALUES(null, %i, NOW(), '%s (IP: %s) was banned by %s, reason: %e')", cache_get_field_content_int(0, "uid"), username, ip, GetPlayerNameEx(playerid), reason);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was offline banned by %s, reason: %s", username, GetPlayerNameEx(playerid), reason);
- Log_Write("log_punishments", "%s (uid: %i) offline banned %s, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, reason);
- }
- return 1;
- }
- forward OnAdminOfflinePrison(playerid, username[], minutes, reason[]);
- public OnAdminOfflinePrison(playerid, username[], minutes, reason[])
- {
- if(cache_get_row_count(connectionID))
- {
- if(cache_get_row_int(0, 0) > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be prisoned.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET jailtype = 2, jailtime = %i, prisonedby = '%e', prisonreason = '%e' WHERE username = '%e'", minutes * 60, GetPlayerNameEx(playerid), reason, username);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was offline prisoned for %i minutes by %s, reason: %s", username, minutes, GetPlayerRPName(playerid), reason);
- Log_Write("log_punishments", "%s (uid: %i) offline prisoned %s for %i minutes, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, minutes, reason);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not registered.");
- }
- return 1;
- }
- forward OnAdminOfflineFine(playerid, username[], amount, reason[]);
- public OnAdminOfflineFine(playerid, username[], amount, reason[])
- {
- if(cache_get_row_count(connectionID))
- {
- if(cache_get_row_int(0, 0) > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be fined.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cash = cash - %i WHERE username = '%e'", amount, username);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was offline fined for $%i by %s, reason: %s", username, amount, GetPlayerRPName(playerid), reason);
- Log_Write("log_admin", "%s (uid: %i) offline fined %s for $%i, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], username, amount, reason);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not registered.");
- }
- return 1;
- }
- public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
- {
- new
- File:file = fopen("mysql_error.txt", io_append);
- if(file)
- {
- new
- string[2048];
- format(string, sizeof(string), "[%s]\r\nError ID: %i\r\nCallback: %s\r\nQuery: %s\r\nError: %s\r\n\r\n", GetDate(), errorid, callback, query, error);
- fwrite(file, string);
- fclose(file);
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: A MySQL error occurred (error %i). Details written to mysql_error.txt.", errorid);
- return 1;
- }
- forward OnQueryFinished(threadid, extraid);
- public OnQueryFinished(threadid, extraid)
- {
- new rows = cache_get_row_count(connectionID);
- switch(threadid)
- {
- case THREAD_LOOKUP_BANS:
- {
- if(rows)
- {
- new bannedby[24], date[24], reason[128];
- cache_get_field_content(0, "bannedby", bannedby);
- cache_get_field_content(0, "date", date);
- cache_get_field_content(0, "reason", reason);
- GameTextForPlayer(extraid, "~r~You are banned!", 999999, 3);
- if(cache_get_field_content_int(0, "permanent"))
- SendClientMessageEx(extraid, COLOR_YELLOW, "You are permanently banned from this server.");
- else
- SendClientMessageEx(extraid, COLOR_YELLOW, "You are banned from this server. You can appeal your ban at www.www.coming-soon.com.");
- SendClientMessageEx(extraid, COLOR_LIGHTRED, "Admin: %s", bannedby);
- SendClientMessageEx(extraid, COLOR_LIGHTRED, "Date: %s", date);
- SendClientMessageEx(extraid, COLOR_LIGHTRED, "Reason: %s", reason);
- KickPlayer(extraid);
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%s'", GetPlayerNameEx(extraid));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOOKUP_ACCOUNT, extraid);
- }
- }
- case THREAD_LOOKUP_ACCOUNT:
- {
- if(rows)
- {
- #if defined SERVER_INTRO
- PlayAudioStreamForPlayer(extraid, "http://www.coming-soon.com/music/blow.mp3"); // josh
- SetTimerEx("ShowMainMenuCamera", 400, false, "ii", extraid, 0);
- #endif
- ShowDialogToPlayer(extraid, DIALOG_LOGIN);
- }
- else
- {
- if(strfind(GetPlayerNameEx(extraid), "_") == -1)
- {
- SendClientMessage(extraid, COLOR_LIGHTRED, "Please reconnect with a proper roleplay name in the Firstname_Lastname format.");
- KickPlayer(extraid);
- }
- else
- {
- #if defined SERVER_INTRO
- ShowServerIntro(extraid);
- #else
- ShowDialogToPlayer(extraid, DIALOG_REGISTER);
- #endif
- }
- }
- }
- case THREAD_ACCOUNT_REGISTER:
- {
- new
- id = cache_insert_id(connectionID);
- if(id)
- {
- /*mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM users WHERE uid = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_PROCESS_LOGIN, extraid);*/
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM users WHERE uid = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_PROCESS_LOGIN, extraid);
- }
- }
- case THREAD_PROCESS_LOGIN:
- {
- if(!rows)
- {
- PlayerInfo[extraid][pLoginTries]++;
- if(PlayerInfo[extraid][pLoginTries] < 3)
- {
- ShowDialogToPlayer(extraid, DIALOG_LOGIN);
- SendClientMessageEx(extraid, COLOR_LIGHTRED, "Incorrect password. You have %i more attempts before you are kicked.", 3 - PlayerInfo[extraid][pLoginTries]);
- }
- else
- {
- Kick(extraid);
- }
- }
- else if(cache_get_field_content_int(0, "locked"))
- {
- SendClientMessage(extraid, COLOR_LIGHTRED, "** This account is currently locked. Contact an administrator to unlock your account.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s tried to login with a locked account.", GetPlayerRPName(extraid));
- KickPlayer(extraid);
- }
- else
- {
- new date[64], string[64];
- cache_get_field_content(0, "login_date", date);
- cache_get_field_content(0, "accent", PlayerInfo[extraid][pAccent], connectionID, 16);
- cache_get_field_content(0, "adminname", PlayerInfo[extraid][pAdminName], connectionID, MAX_PLAYER_NAME);
- cache_get_field_content(0, "contractby", PlayerInfo[extraid][pContractBy], connectionID, MAX_PLAYER_NAME);
- cache_get_field_content(0, "prisonedby", PlayerInfo[extraid][pPrisonedBy], connectionID, MAX_PLAYER_NAME);
- cache_get_field_content(0, "prisonreason", PlayerInfo[extraid][pPrisonReason], connectionID, 128);
- PlayerInfo[extraid][pID] = cache_get_field_content_int(0, "uid");
- PlayerInfo[extraid][pSetup] = cache_get_field_content_int(0, "setup");
- PlayerInfo[extraid][pGender] = cache_get_field_content_int(0, "gender");
- PlayerInfo[extraid][pAge] = cache_get_field_content_int(0, "age");
- PlayerInfo[extraid][pSkin] = cache_get_field_content_int(0, "skin");
- PlayerInfo[extraid][pCameraX] = cache_get_field_content_float(0, "camera_x");
- PlayerInfo[extraid][pCameraY] = cache_get_field_content_float(0, "camera_y");
- PlayerInfo[extraid][pCameraZ] = cache_get_field_content_float(0, "camera_z");
- PlayerInfo[extraid][pPosX] = cache_get_field_content_float(0, "pos_x");
- PlayerInfo[extraid][pPosY] = cache_get_field_content_float(0, "pos_y");
- PlayerInfo[extraid][pPosZ] = cache_get_field_content_float(0, "pos_z");
- PlayerInfo[extraid][pPosA] = cache_get_field_content_float(0, "pos_a");
- PlayerInfo[extraid][pInterior] = cache_get_field_content_int(0, "interior");
- PlayerInfo[extraid][pWorld] = cache_get_field_content_int(0, "world");
- PlayerInfo[extraid][pCash] = cache_get_field_content_int(0, "cash");
- PlayerInfo[extraid][pBank] = cache_get_field_content_int(0, "bank");
- PlayerInfo[extraid][pPaycheck] = cache_get_field_content_int(0, "paycheck");
- PlayerInfo[extraid][pLevel] = cache_get_field_content_int(0, "level");
- PlayerInfo[extraid][pEXP] = cache_get_field_content_int(0, "exp");
- PlayerInfo[extraid][pMinutes] = cache_get_field_content_int(0, "minutes");
- PlayerInfo[extraid][pHours] = cache_get_field_content_int(0, "hours");
- PlayerInfo[extraid][pAdmin] = cache_get_field_content_int(0, "adminlevel");
- PlayerInfo[extraid][pHelper] = cache_get_field_content_int(0, "helperlevel");
- PlayerInfo[extraid][pHealth] = cache_get_field_content_float(0, "health");
- PlayerInfo[extraid][pArmor] = cache_get_field_content_float(0, "armor");
- PlayerInfo[extraid][pUpgradePoints] = cache_get_field_content_int(0, "upgradepoints");
- PlayerInfo[extraid][pWarnings] = cache_get_field_content_int(0, "warnings");
- PlayerInfo[extraid][pInjured] = cache_get_field_content_int(0, "injured");
- PlayerInfo[extraid][pHospital] = cache_get_field_content_int(0, "hospital");
- PlayerInfo[extraid][pSpawnHealth] = cache_get_field_content_float(0, "spawnhealth");
- PlayerInfo[extraid][pSpawnArmor] = cache_get_field_content_float(0, "spawnarmor");
- PlayerInfo[extraid][pJailType] = cache_get_field_content_int(0, "jailtype");
- PlayerInfo[extraid][pJailTime] = cache_get_field_content_int(0, "jailtime");
- PlayerInfo[extraid][pNewbieMuted] = cache_get_field_content_int(0, "newbiemuted");
- PlayerInfo[extraid][pHelpMuted] = cache_get_field_content_int(0, "helpmuted");
- PlayerInfo[extraid][pAdMuted] = cache_get_field_content_int(0, "admuted");
- PlayerInfo[extraid][pLiveMuted] = cache_get_field_content_int(0, "livemuted");
- PlayerInfo[extraid][pGlobalMuted] = cache_get_field_content_int(0, "globalmuted");
- PlayerInfo[extraid][pReportMuted] = cache_get_field_content_int(0, "reportmuted");
- PlayerInfo[extraid][pReportWarns] = cache_get_field_content_int(0, "reportwarns");
- PlayerInfo[extraid][pFightStyle] = cache_get_field_content_int(0, "fightstyle");
- PlayerInfo[extraid][pCookies] = cache_get_field_content_int(0, "cookies");
- PlayerInfo[extraid][pPhone] = cache_get_field_content_int(0, "phone");
- PlayerInfo[extraid][pJob] = cache_get_field_content_int(0, "job");
- PlayerInfo[extraid][pSecondJob] = cache_get_field_content_int(0, "secondjob");
- PlayerInfo[extraid][pCrimes] = cache_get_field_content_int(0, "crimes");
- PlayerInfo[extraid][pArrested] = cache_get_field_content_int(0, "arrested");
- PlayerInfo[extraid][pWantedLevel] = cache_get_field_content_int(0, "wantedlevel");
- PlayerInfo[extraid][pMaterials] = cache_get_field_content_int(0, "materials");
- PlayerInfo[extraid][pWeed] = cache_get_field_content_int(0, "weed");
- PlayerInfo[extraid][pCocaine] = cache_get_field_content_int(0, "cocaine");
- PlayerInfo[extraid][pMeth] = cache_get_field_content_int(0, "meth");
- PlayerInfo[extraid][pPainkillers] = cache_get_field_content_int(0, "painkillers");
- PlayerInfo[extraid][pSeeds] = cache_get_field_content_int(0, "seeds");
- PlayerInfo[extraid][pEphedrine] = cache_get_field_content_int(0, "ephedrine");
- PlayerInfo[extraid][pMuriaticAcid] = cache_get_field_content_int(0, "muriaticacid");
- PlayerInfo[extraid][pBakingSoda] = cache_get_field_content_int(0, "bakingsoda");
- PlayerInfo[extraid][pCigars] = cache_get_field_content_int(0, "cigars");
- PlayerInfo[extraid][pWalkieTalkie] = cache_get_field_content_int(0, "walkietalkie");
- PlayerInfo[extraid][pChannel] = cache_get_field_content_int(0, "channel");
- PlayerInfo[extraid][pRentingHouse] = cache_get_field_content_int(0, "rentinghouse");
- PlayerInfo[extraid][pSpraycans] = cache_get_field_content_int(0, "spraycans");
- PlayerInfo[extraid][pBoombox] = cache_get_field_content_int(0, "boombox");
- PlayerInfo[extraid][pMP3Player] = cache_get_field_content_int(0, "mp3player");
- PlayerInfo[extraid][pPhonebook] = cache_get_field_content_int(0, "phonebook");
- PlayerInfo[extraid][pFishingRod] = cache_get_field_content_int(0, "fishingrod");
- PlayerInfo[extraid][pFishingBait] = cache_get_field_content_int(0, "fishingbait");
- PlayerInfo[extraid][pFishWeight] = cache_get_field_content_int(0, "fishweight");
- PlayerInfo[extraid][pComponents] = cache_get_field_content_int(0, "components");
- PlayerInfo[extraid][pCourierSkill] = cache_get_field_content_int(0, "courierskill");
- PlayerInfo[extraid][pFishingSkill] = cache_get_field_content_int(0, "fishingskill");
- PlayerInfo[extraid][pGuardSkill] = cache_get_field_content_int(0, "guardskill");
- PlayerInfo[extraid][pWeaponSkill] = cache_get_field_content_int(0, "weaponskill");
- PlayerInfo[extraid][pMechanicSkill] = cache_get_field_content_int(0, "mechanicskill");
- PlayerInfo[extraid][pLawyerSkill] = cache_get_field_content_int(0, "lawyerskill");
- PlayerInfo[extraid][pSmugglerSkill] = cache_get_field_content_int(0, "smugglerskill");
- PlayerInfo[extraid][pDetectiveSkill] = cache_get_field_content_int(0, "detectiveskill");
- PlayerInfo[extraid][pToggleTextdraws] = cache_get_field_content_int(0, "toggletextdraws");
- PlayerInfo[extraid][pToggleOOC] = cache_get_field_content_int(0, "toggleooc");
- PlayerInfo[extraid][pTogglePhone] = cache_get_field_content_int(0, "togglephone");
- PlayerInfo[extraid][pToggleAdmin] = cache_get_field_content_int(0, "toggleadmin");
- PlayerInfo[extraid][pToggleHelper] = cache_get_field_content_int(0, "togglehelper");
- PlayerInfo[extraid][pToggleNewbie] = cache_get_field_content_int(0, "togglenewbie");
- PlayerInfo[extraid][pToggleWT] = cache_get_field_content_int(0, "togglewt");
- PlayerInfo[extraid][pToggleRadio] = cache_get_field_content_int(0, "toggleradio");
- PlayerInfo[extraid][pToggleVIP] = cache_get_field_content_int(0, "togglevip");
- PlayerInfo[extraid][pToggleMusic] = cache_get_field_content_int(0, "togglemusic");
- PlayerInfo[extraid][pToggleFaction] = cache_get_field_content_int(0, "togglefaction");
- PlayerInfo[extraid][pToggleNews] = cache_get_field_content_int(0, "togglenews");
- PlayerInfo[extraid][pToggleGlobal] = cache_get_field_content_int(0, "toggleglobal");
- PlayerInfo[extraid][pToggleCam] = cache_get_field_content_int(0, "togglecam");
- PlayerInfo[extraid][pToggleHUD] = cache_get_field_content_int(0, "togglehud");
- PlayerInfo[extraid][pCarLicense] = cache_get_field_content_int(0, "carlicense");
- PlayerInfo[extraid][pVIPPackage] = cache_get_field_content_int(0, "vippackage");
- PlayerInfo[extraid][pVIPTime] = cache_get_field_content_int(0, "viptime");
- PlayerInfo[extraid][pVIPCooldown] = cache_get_field_content_int(0, "vipcooldown");
- PlayerInfo[extraid][pWeapons][0] = cache_get_field_content_int(0, "weapon_0");
- PlayerInfo[extraid][pWeapons][1] = cache_get_field_content_int(0, "weapon_1");
- PlayerInfo[extraid][pWeapons][2] = cache_get_field_content_int(0, "weapon_2");
- PlayerInfo[extraid][pWeapons][3] = cache_get_field_content_int(0, "weapon_3");
- PlayerInfo[extraid][pWeapons][4] = cache_get_field_content_int(0, "weapon_4");
- PlayerInfo[extraid][pWeapons][5] = cache_get_field_content_int(0, "weapon_5");
- PlayerInfo[extraid][pWeapons][6] = cache_get_field_content_int(0, "weapon_6");
- PlayerInfo[extraid][pWeapons][7] = cache_get_field_content_int(0, "weapon_7");
- PlayerInfo[extraid][pWeapons][8] = cache_get_field_content_int(0, "weapon_8");
- PlayerInfo[extraid][pWeapons][9] = cache_get_field_content_int(0, "weapon_9");
- PlayerInfo[extraid][pWeapons][10] = cache_get_field_content_int(0, "weapon_10");
- PlayerInfo[extraid][pWeapons][11] = cache_get_field_content_int(0, "weapon_11");
- PlayerInfo[extraid][pWeapons][12] = cache_get_field_content_int(0, "weapon_12");
- PlayerInfo[extraid][pFaction] = cache_get_field_content_int(0, "faction");
- PlayerInfo[extraid][pFactionRank] = cache_get_field_content_int(0, "factionrank");
- PlayerInfo[extraid][pGang] = cache_get_field_content_int(0, "gang");
- PlayerInfo[extraid][pGangRank] = cache_get_field_content_int(0, "gangrank");
- PlayerInfo[extraid][pDivision] = cache_get_field_content_int(0, "division");
- PlayerInfo[extraid][pContracted] = cache_get_field_content_int(0, "contracted");
- PlayerInfo[extraid][pBombs] = cache_get_field_content_int(0, "bombs");
- PlayerInfo[extraid][pCompletedHits] = cache_get_field_content_int(0, "completedhits");
- PlayerInfo[extraid][pFailedHits] = cache_get_field_content_int(0, "failedhits");
- PlayerInfo[extraid][pReports] = cache_get_field_content_int(0, "reports");
- PlayerInfo[extraid][pHelpRequests] = cache_get_field_content_int(0, "helprequests");
- PlayerInfo[extraid][pSpeedometer] = cache_get_field_content_int(0, "speedometer");
- PlayerInfo[extraid][pFactionMod] = cache_get_field_content_int(0, "factionmod");
- PlayerInfo[extraid][pGangMod] = cache_get_field_content_int(0, "gangmod");
- PlayerInfo[extraid][pBanAppealer] = cache_get_field_content_int(0, "banappealer");
- PlayerInfo[extraid][pWeedPlanted] = cache_get_field_content_int(0, "weedplanted");
- PlayerInfo[extraid][pWeedTime] = cache_get_field_content_int(0, "weedtime");
- PlayerInfo[extraid][pWeedGrams] = cache_get_field_content_int(0, "weedgrams");
- PlayerInfo[extraid][pWeedX] = cache_get_field_content_float(0, "weed_x");
- PlayerInfo[extraid][pWeedY] = cache_get_field_content_float(0, "weed_y");
- PlayerInfo[extraid][pWeedZ] = cache_get_field_content_float(0, "weed_z");
- PlayerInfo[extraid][pWeedA] = cache_get_field_content_float(0, "weed_a");
- PlayerInfo[extraid][pInventoryUpgrade] = cache_get_field_content_int(0, "inventoryupgrade");
- PlayerInfo[extraid][pAddictUpgrade] = cache_get_field_content_int(0, "addictupgrade");
- PlayerInfo[extraid][pTraderUpgrade] = cache_get_field_content_int(0, "traderupgrade");
- PlayerInfo[extraid][pAssetUpgrade] = cache_get_field_content_int(0, "assetupgrade");
- PlayerInfo[extraid][pHPAmmo] = cache_get_field_content_int(0, "hpammo");
- PlayerInfo[extraid][pPoisonAmmo] = cache_get_field_content_int(0, "poisonammo");
- PlayerInfo[extraid][pFMJAmmo] = cache_get_field_content_int(0, "fmjammo");
- PlayerInfo[extraid][pAmmoType] = cache_get_field_content_int(0, "ammotype");
- PlayerInfo[extraid][pAmmoWeapon] = cache_get_field_content_int(0, "ammoweapon");
- PlayerInfo[extraid][pDMWarnings] = cache_get_field_content_int(0, "dmwarnings");
- PlayerInfo[extraid][pWeaponRestricted] = cache_get_field_content_int(0, "weaponrestricted");
- PlayerInfo[extraid][pReferralUID] = cache_get_field_content_int(0, "referral_uid");
- PlayerInfo[extraid][pWatch] = cache_get_field_content_int(0, "watch");
- PlayerInfo[extraid][pGPS] = cache_get_field_content_int(0, "gps");
- PlayerInfo[extraid][pClothes] = cache_get_field_content_int(0, "clothes");
- PlayerInfo[extraid][pShowLands] = cache_get_field_content_int(0, "showlands");
- PlayerInfo[extraid][pShowTurfs] = cache_get_field_content_int(0, "showturfs");
- PlayerInfo[extraid][pWatchOn] = cache_get_field_content_int(0, "watchon");
- PlayerInfo[extraid][pGPSOn] = cache_get_field_content_int(0, "gpson");
- PlayerInfo[extraid][pDoubleXP] = cache_get_field_content_int(0, "doublexp");
- PlayerInfo[extraid][pCourierCooldown] = cache_get_field_content_int(0, "couriercooldown");
- PlayerInfo[extraid][pPizzaCooldown] = cache_get_field_content_int(0, "pizzacooldown");
- PlayerInfo[extraid][pDetectiveCooldown] = cache_get_field_content_int(0, "detectivecooldown");
- PlayerInfo[extraid][pGasCan] = cache_get_field_content_int(0, "gascan");
- PlayerInfo[extraid][pDuty] = cache_get_field_content_int(0, "duty");
- PlayerInfo[extraid][pBandana] = cache_get_field_content_int(0, "bandana");
- PlayerInfo[extraid][pLogged] = 1;
- PlayerInfo[extraid][pACTime] = gettime() + 5;
- if(!PlayerInfo[extraid][pAdminDuty])
- {
- ClearChat(extraid);
- }
- for(new i = 0; i < 4; i ++)
- {
- TextDrawHideForPlayer(extraid, LoginScreen[i]);
- }
- if(!PlayerInfo[extraid][pToggleTextdraws])
- {
- TextDrawShowForPlayer(extraid, WebsiteTD);
- if(!PlayerInfo[extraid][pToggleHUD])
- {
- PlayerTextDrawShow(extraid, PlayerInfo[extraid][pText][3]);
- PlayerTextDrawShow(extraid, PlayerInfo[extraid][pText][4]);
- }
- if(PlayerInfo[extraid][pWatchOn])
- {
- TextDrawShowForPlayer(extraid, TimeTD);
- }
- if(PlayerInfo[extraid][pGPSOn])
- {
- PlayerTextDrawShow(extraid, PlayerInfo[extraid][pText][0]);
- }
- }
- if(!isnull(gServerMOTD))
- {
- SendClientMessageEx(extraid, COLOR_YELLOW, "** MOTD: %s", gServerMOTD);
- }
- if(PlayerInfo[extraid][pGang] >= 0 && strcmp(GangInfo[PlayerInfo[extraid][pGang]][gMOTD], "None", true) != 0)
- {
- SendClientMessageEx(extraid, COLOR_YELLOW, "** Gang MOTD: %s", GangInfo[PlayerInfo[extraid][pGang]][gMOTD]);
- }
-
- if(cache_get_field_content_int(extraid, "refercount") > 0)
- {
- new
- count = cache_get_field_content_int(0, "refercount");
-
- SendClientMessageEx(extraid, COLOR_GREEN, "%i players who you've referred reached level 3. Therefore you received %i cookies!", count, count * 3);
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET refercount = 0 WHERE uid = %i", PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- if(!PlayerInfo[extraid][pSetup])
- {
- if(!PlayerInfo[extraid][pAdminDuty] && !PlayerInfo[extraid][pToggleCam])
- {
- PlayerInfo[extraid][pLoginCamera] = 1;
- }
- if(PlayerInfo[extraid][pWeedPlanted] && PlayerInfo[extraid][pWeedObject] == INVALID_OBJECT_ID)
- {
- PlayerInfo[extraid][pWeedObject] = CreateDynamicObject(3409, PlayerInfo[extraid][pWeedX], PlayerInfo[extraid][pWeedY], PlayerInfo[extraid][pWeedZ] - 1.8, 0.0, 0.0, PlayerInfo[extraid][pWeedA]);
- }
- if(PlayerInfo[extraid][pShowTurfs])
- {
- ShowTurfsOnMap(extraid, true);
- }
- if(PlayerInfo[extraid][pShowLands])
- {
- ShowLandsOnMap(extraid, true);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET lastlogin = NOW(), ip = '%s' WHERE uid = %i", GetPlayerIP(extraid), PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id FROM flags WHERE uid = %i", PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_COUNT_FLAGS, extraid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM clothing WHERE uid = %i", PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_CLOTHING, extraid);
- if(!PlayerInfo[extraid][pTogglePhone])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM texts WHERE recipient_number = %i", PlayerInfo[extraid][pPhone]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_COUNT_TEXTS, extraid);
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && IsVehicleOwner(extraid, i) && VehicleInfo[i][vTimer] >= 0)
- {
- KillTimer(VehicleInfo[i][vTimer]);
- VehicleInfo[i][vTimer] = -1;
- }
- }
-
- // Just in case.
- SetPlayerSpecialTag(extraid, TAG_NONE);
- if(PlayerInfo[extraid][pAdminDuty])
- {
- PlayerInfo[extraid][pAdminDuty] = 0;
- SetPlayerName(extraid, PlayerInfo[extraid][pUsername]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s is no longer on admin duty.", GetPlayerRPName(extraid));
- SendClientMessage(extraid, COLOR_WHITE, "** You are no longer on admin duty. Your account's statistics have been preserved.");
- }
- else
- {
- if(PlayerInfo[extraid][pAdmin])
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s %s has logged in.", GetAdminRank(extraid), GetPlayerRPName(extraid));
- }
- if(PlayerInfo[extraid][pGang] >= 0)
- {
- SendGangMessage(PlayerInfo[extraid][pGang], COLOR_AQUA, "(( %s %s has logged in. ))", GangRanks[PlayerInfo[extraid][pGang]][PlayerInfo[extraid][pGangRank]], GetPlayerRPName(extraid));
- }
- if(PlayerInfo[extraid][pFaction] >= 0)
- {
- SendFactionMessage(PlayerInfo[extraid][pFaction], COLOR_FACTIONCHAT, "(( %s %s has logged in. ))", FactionRanks[PlayerInfo[extraid][pFaction]][PlayerInfo[extraid][pFactionRank]], GetPlayerRPName(extraid));
- }
- format(string, sizeof(string), "~w~Welcome ~n~~y~ %s", GetPlayerRPName(extraid));
- GameTextForPlayer(extraid, string, 5000, 1);
- if(PlayerInfo[extraid][pAdmin] > 0) {
- SendClientMessageEx(extraid, COLOR_WHITE, "Federal City Roleplay: You have logged in as a {FF6347}level %i %s{FFFFFF}.", PlayerInfo[extraid][pAdmin], GetAdminRank(extraid));
- } else if(PlayerInfo[extraid][pHelper] > 0) {
- SendClientMessageEx(extraid, COLOR_WHITE, "Federal City Roleplay: You have logged in as a {33CCFF}%s{FFFFFF}.", GetHelperRank(extraid));
- } else if(PlayerInfo[extraid][pVIPPackage] > 0) {
- SendClientMessageEx(extraid, COLOR_WHITE, "Federal City Roleplay: You have logged in as a {A028AD}%s VIP{FFFFFF}.", GetVIPRank(PlayerInfo[extraid][pVIPPackage]));
- } else if(PlayerInfo[extraid][pLevel] >= 2) {
- SendClientMessageEx(extraid, COLOR_WHITE, "Federal City Roleplay: You have logged in as a {AFAFAF}level %i player{FFFFFF}.", PlayerInfo[extraid][pLevel]);
- } else {
- SendClientMessage(extraid, COLOR_WHITE, "Federal City Roleplay: You have logged in as a {AFAFAF}level 1 newbie{FFFFFF}.");
- }
- SendClientMessageEx(extraid, COLOR_GREEN, "Your last login was on the %s (server time).", date);
- StopAudioStreamForPlayer(extraid);
- }
- if(PlayerInfo[extraid][pFaction] >= 0 && FactionInfo[PlayerInfo[extraid][pFaction]][fType] == FACTION_NONE)
- {
- //ResetPlayerWeaponsEx(extraid);
- SendClientMessageEx(extraid, COLOR_LIGHTRED, "You were either kicked from the faction while offline or it was deleted.");
- //SetPlayerSkin(extraid, 230);
- PlayerInfo[extraid][pFaction] = -1;
- PlayerInfo[extraid][pFactionRank] = 0;
- PlayerInfo[extraid][pDivision] = -1;
- PlayerInfo[extraid][pDuty] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE uid = %i", PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- if(PlayerInfo[extraid][pGang] >= 0 && !GangInfo[PlayerInfo[extraid][pGang]][gSetup])
- {
- SendClientMessage(extraid, COLOR_LIGHTRED, "You have either been kicked from the gang while offline or it was deleted.");
- PlayerInfo[extraid][pGang] = -1;
- PlayerInfo[extraid][pGangRank] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = -1, gangrank = 0 WHERE uid = %i", PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- SetPlayerToSpawn(extraid);
- }
- }
- case THREAD_COUNT_FLAGS:
- {
- if(rows)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has %i pending flags. (/listflags %i)", GetPlayerRPName(extraid), extraid, rows, extraid);
- }
- }
- case THREAD_TRACE_IP:
- {
- if(rows)
- {
- new username[24], date[24];
- SendClientMessageEx(extraid, COLOR_GREEN, "|__________ %i Results Found __________|", rows);
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "username", username);
- cache_get_field_content(i, "lastlogin", date);
- SendClientMessageEx(extraid, COLOR_GREY2, "Name: %s - Last Seen: %s", username, date);
- }
- }
- else
- {
- SendClientMessage(extraid, COLOR_GREY, "This IP address is not associated with any accounts.");
- }
- }
- case THREAD_LOGIN_UPDATE:
- {
- new string[1024];
- if(extraid == 1) // Changes
- {
- new text[128];
- string = "~y~Recent changes:~w~";
- if(!rows)
- {
- strcat(string, "~n~- n/a");
- }
- else
- {
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "text", text);
- format(string, sizeof(string), "%s~n~- %s", string, text);
- }
- }
- TextDrawSetString(LoginScreen[0], string);
- }
- else if(extraid == 2) // Top ten players
- {
- new username[MAX_PLAYER_NAME];
- string = "~y~Top ten players:~w~";
- if(!rows)
- {
- strcat(string, "~n~- n/a");
- }
- else
- {
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "username", username);
- format(string, sizeof(string), "%s~n~- %s (%i hrs)", string, username, cache_get_field_content_int(i, "hours"));
- }
- }
- TextDrawSetString(LoginScreen[2], string);
- }
- }
- case THREAD_LIST_CHANGES:
- {
- new text[128];
- SendClientMessage(extraid, COLOR_GREEN, "|_______ Changes List _______|");
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "text", text);
- SendClientMessageEx(extraid, COLOR_GREY1, "Slot %i -> %s", cache_get_field_content_int(i, "slot"), text);
- }
- }
- case THREAD_LIST_HELPERS:
- {
- new username[MAX_PLAYER_NAME], lastlogin[24];
- SendClientMessage(extraid, COLOR_GREEN, "|______ Helper Roster ______|");
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "username", username);
- cache_get_field_content(i, "lastlogin", lastlogin);
- switch(cache_get_field_content_int(i, "helperlevel"))
- {
- case 1: SendClientMessageEx(extraid, COLOR_GREY2, "Junior Helper %s - Last Seen: %s", username, lastlogin);
- case 2: SendClientMessageEx(extraid, COLOR_GREY2, "Senior Helper %s - Last Seen: %s", username, lastlogin);
- case 3: SendClientMessageEx(extraid, COLOR_GREY2, "Asst. Head Helper %s - Last Seen: %s", username, lastlogin);
- case 4: SendClientMessageEx(extraid, COLOR_GREY2, "Head Helper %s - Last Seen: %s", username, lastlogin);
- }
- }
- }
- case THREAD_LOAD_HOUSES:
- {
- for(new i = 0; i < rows && i < MAX_HOUSES; i ++)
- {
- cache_get_field_content(i, "owner", HouseInfo[i][hOwner], connectionID, MAX_PLAYER_NAME);
- HouseInfo[i][hID] = cache_get_field_content_int(i, "id");
- HouseInfo[i][hOwnerID] = cache_get_field_content_int(i, "ownerid");
- HouseInfo[i][hType] = cache_get_field_content_int(i, "type");
- HouseInfo[i][hPrice] = cache_get_field_content_int(i, "price");
- HouseInfo[i][hRentPrice] = cache_get_field_content_int(i, "rentprice");
- HouseInfo[i][hLevel] = cache_get_field_content_int(i, "level");
- HouseInfo[i][hLocked] = cache_get_field_content_int(i, "locked");
- HouseInfo[i][hTimestamp] = cache_get_field_content_int(i, "timestamp");
- HouseInfo[i][hPosX] = cache_get_field_content_float(i, "pos_x");
- HouseInfo[i][hPosY] = cache_get_field_content_float(i, "pos_y");
- HouseInfo[i][hPosZ] = cache_get_field_content_float(i, "pos_z");
- HouseInfo[i][hPosA] = cache_get_field_content_float(i, "pos_a");
- HouseInfo[i][hIntX] = cache_get_field_content_float(i, "int_x");
- HouseInfo[i][hIntY] = cache_get_field_content_float(i, "int_y");
- HouseInfo[i][hIntZ] = cache_get_field_content_float(i, "int_z");
- HouseInfo[i][hIntA] = cache_get_field_content_float(i, "int_a");
- HouseInfo[i][hInterior] = cache_get_field_content_int(i, "interior");
- HouseInfo[i][hWorld] = cache_get_field_content_int(i, "world");
- HouseInfo[i][hOutsideInt] = cache_get_field_content_int(i, "outsideint");
- HouseInfo[i][hOutsideVW] = cache_get_field_content_int(i, "outsidevw");
- HouseInfo[i][hCash] = cache_get_field_content_int(i, "cash");
- HouseInfo[i][hMaterials] = cache_get_field_content_int(i, "materials");
- HouseInfo[i][hWeed] = cache_get_field_content_int(i, "weed");
- HouseInfo[i][hCocaine] = cache_get_field_content_int(i, "cocaine");
- HouseInfo[i][hMeth] = cache_get_field_content_int(i, "meth");
- HouseInfo[i][hPainkillers] = cache_get_field_content_int(i, "painkillers");
- HouseInfo[i][hWeapons][0] = cache_get_field_content_int(i, "weapon_1");
- HouseInfo[i][hWeapons][1] = cache_get_field_content_int(i, "weapon_2");
- HouseInfo[i][hWeapons][2] = cache_get_field_content_int(i, "weapon_3");
- HouseInfo[i][hWeapons][3] = cache_get_field_content_int(i, "weapon_4");
- HouseInfo[i][hWeapons][4] = cache_get_field_content_int(i, "weapon_5");
- HouseInfo[i][hWeapons][5] = cache_get_field_content_int(i, "weapon_6");
- HouseInfo[i][hWeapons][6] = cache_get_field_content_int(i, "weapon_7");
- HouseInfo[i][hWeapons][7] = cache_get_field_content_int(i, "weapon_8");
- HouseInfo[i][hWeapons][8] = cache_get_field_content_int(i, "weapon_9");
- HouseInfo[i][hWeapons][9] = cache_get_field_content_int(i, "weapon_10");
- HouseInfo[i][hHPAmmo] = cache_get_field_content_int(i, "hpammo");
- HouseInfo[i][hPoisonAmmo] = cache_get_field_content_int(i, "poisonammo");
- HouseInfo[i][hFMJAmmo] = cache_get_field_content_int(i, "fmjammo");
- HouseInfo[i][hText] = Text3D:INVALID_3DTEXT_ID;
- HouseInfo[i][hPickup] = -1;
- HouseInfo[i][hLabels] = 0;
- HouseInfo[i][hExists] = 1;
- ReloadHouse(i);
- }
- printf("[Script] %i houses loaded.", rows);
- }
- case THREAD_LIST_TENANTS:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "There is nobody currently renting at your home.");
- }
- else
- {
- new username[MAX_PLAYER_NAME], date[24];
- SendClientMessage(extraid, COLOR_GREEN, "|______ List of Tenants ______|");
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "username", username);
- cache_get_field_content(i, "lastlogin", date);
- SendClientMessageEx(extraid, COLOR_GREY2, "Name: %s - Last Seen: %s", username, date);
- }
- }
- }
- case THREAD_LOAD_FURNITURE:
- {
- for(new i = 0; i < rows; i ++)
- {
- new objectid = CreateDynamicObject(cache_get_field_content_int(i, "modelid"), cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z"), cache_get_field_content_float(i, "rot_x"), cache_get_field_content_float(i, "rot_y"), cache_get_field_content_float(i, "rot_z"), cache_get_field_content_int(i, "world"), cache_get_field_content_int(i, "interior"));
- Streamer_SetExtraInt(objectid, E_OBJECT_TYPE, E_OBJECT_FURNITURE);
- Streamer_SetExtraInt(objectid, E_OBJECT_INDEX_ID, cache_get_field_content_int(i, "id"));
- Streamer_SetExtraInt(objectid, E_OBJECT_EXTRA_ID, cache_get_field_content_int(i, "houseid"));
- if(extraid)
- {
- new
- string[48];
- cache_get_field_content(i, "name", string);
- format(string, sizeof(string), "[%i] - %s", objectid, string);
- Streamer_SetExtraInt(objectid, E_OBJECT_3DTEXT_ID, _:CreateDynamic3DTextLabel(string, COLOR_GREY2, cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z"), 10.0, .worldid = cache_get_field_content_int(i, "world"), .interiorid = cache_get_field_content_int(i, "interior")));
- }
- }
- }
- case THREAD_LOAD_GARAGES:
- {
- for(new i = 0; i < rows && i < MAX_GARAGES; i ++)
- {
- cache_get_field_content(i, "owner", GarageInfo[i][gOwner], connectionID, MAX_PLAYER_NAME);
- GarageInfo[i][gID] = cache_get_field_content_int(i, "id");
- GarageInfo[i][gOwnerID] = cache_get_field_content_int(i, "ownerid");
- GarageInfo[i][gType] = cache_get_field_content_int(i, "type");
- GarageInfo[i][gPrice] = cache_get_field_content_int(i, "price");
- GarageInfo[i][gLocked] = cache_get_field_content_int(i, "locked");
- GarageInfo[i][gTimestamp] = cache_get_field_content_int(i, "timestamp");
- GarageInfo[i][gPosX] = cache_get_field_content_float(i, "pos_x");
- GarageInfo[i][gPosY] = cache_get_field_content_float(i, "pos_y");
- GarageInfo[i][gPosZ] = cache_get_field_content_float(i, "pos_z");
- GarageInfo[i][gPosA] = cache_get_field_content_float(i, "pos_a");
- GarageInfo[i][gExitX] = cache_get_field_content_float(i, "exit_x");
- GarageInfo[i][gExitY] = cache_get_field_content_float(i, "exit_y");
- GarageInfo[i][gExitZ] = cache_get_field_content_float(i, "exit_z");
- GarageInfo[i][gExitA] = cache_get_field_content_float(i, "exit_a");
- GarageInfo[i][gWorld] = cache_get_field_content_int(i, "world");
- GarageInfo[i][gText] = Text3D:INVALID_3DTEXT_ID;
- GarageInfo[i][gPickup] = -1;
- GarageInfo[i][gExists] = 1;
- ReloadGarage(i);
- }
- printf("[Script] %i garages loaded.", rows);
- }
- case THREAD_LOAD_BUSINESSES:
- {
- for(new i = 0; i < rows && i < MAX_BUSINESSES; i ++)
- {
- cache_get_field_content(i, "owner", BusinessInfo[i][bOwner], connectionID, MAX_PLAYER_NAME);
- BusinessInfo[i][bID] = cache_get_field_content_int(i, "id");
- BusinessInfo[i][bOwnerID] = cache_get_field_content_int(i, "ownerid");
- BusinessInfo[i][bType] = cache_get_field_content_int(i, "type");
- BusinessInfo[i][bPrice] = cache_get_field_content_int(i, "price");
- BusinessInfo[i][bEntryFee] = cache_get_field_content_int(i, "entryfee");
- BusinessInfo[i][bLocked] = cache_get_field_content_int(i, "locked");
- BusinessInfo[i][bTimestamp] = cache_get_field_content_int(i, "timestamp");
- BusinessInfo[i][bPosX] = cache_get_field_content_float(i, "pos_x");
- BusinessInfo[i][bPosY] = cache_get_field_content_float(i, "pos_y");
- BusinessInfo[i][bPosZ] = cache_get_field_content_float(i, "pos_z");
- BusinessInfo[i][bPosA] = cache_get_field_content_float(i, "pos_a");
- BusinessInfo[i][bIntX] = cache_get_field_content_float(i, "int_x");
- BusinessInfo[i][bIntY] = cache_get_field_content_float(i, "int_y");
- BusinessInfo[i][bIntZ] = cache_get_field_content_float(i, "int_z");
- BusinessInfo[i][bIntA] = cache_get_field_content_float(i, "int_a");
- BusinessInfo[i][bInterior] = cache_get_field_content_int(i, "interior");
- BusinessInfo[i][bWorld] = cache_get_field_content_int(i, "world");
- BusinessInfo[i][bOutsideInt] = cache_get_field_content_int(i, "outsideint");
- BusinessInfo[i][bOutsideVW] = cache_get_field_content_int(i, "outsidevw");
- BusinessInfo[i][bCash] = cache_get_field_content_int(i, "cash");
- BusinessInfo[i][bProducts] = cache_get_field_content_int(i, "products");
- BusinessInfo[i][bText] = Text3D:INVALID_3DTEXT_ID;
- BusinessInfo[i][bPickup] = -1;
- BusinessInfo[i][bMapIcon] = -1;
- BusinessInfo[i][bExists] = 1;
- ReloadBusiness(i);
- }
- printf("[Script] %i businesses loaded.", rows);
- }
- case THREAD_LOAD_ENTRANCES:
- {
- for(new i = 0; i < rows && i < MAX_ENTRANCES; i ++)
- {
- cache_get_field_content(i, "owner", EntranceInfo[i][eOwner], connectionID, MAX_PLAYER_NAME);
- cache_get_field_content(i, "name", EntranceInfo[i][eName], connectionID, 40);
- cache_get_field_content(i, "password", EntranceInfo[i][ePassword], connectionID, 64);
- EntranceInfo[i][eID] = cache_get_field_content_int(i, "id");
- EntranceInfo[i][eOwnerID] = cache_get_field_content_int(i, "ownerid");
- EntranceInfo[i][eIcon] = cache_get_field_content_int(i, "iconid");
- EntranceInfo[i][eLocked] = cache_get_field_content_int(i, "locked");
- EntranceInfo[i][eRadius] = cache_get_field_content_float(i, "radius");
- EntranceInfo[i][ePosX] = cache_get_field_content_float(i, "pos_x");
- EntranceInfo[i][ePosY] = cache_get_field_content_float(i, "pos_y");
- EntranceInfo[i][ePosZ] = cache_get_field_content_float(i, "pos_z");
- EntranceInfo[i][ePosA] = cache_get_field_content_float(i, "pos_a");
- EntranceInfo[i][eIntX] = cache_get_field_content_float(i, "int_x");
- EntranceInfo[i][eIntY] = cache_get_field_content_float(i, "int_y");
- EntranceInfo[i][eIntZ] = cache_get_field_content_float(i, "int_z");
- EntranceInfo[i][eIntA] = cache_get_field_content_float(i, "int_a");
- EntranceInfo[i][eInterior] = cache_get_field_content_int(i, "interior");
- EntranceInfo[i][eWorld] = cache_get_field_content_int(i, "world");
- EntranceInfo[i][eOutsideInt] = cache_get_field_content_int(i, "outsideint");
- EntranceInfo[i][eOutsideVW] = cache_get_field_content_int(i, "outsidevw");
- EntranceInfo[i][eAdminLevel] = cache_get_field_content_int(i, "adminlevel");
- EntranceInfo[i][eFactionType] = cache_get_field_content_int(i, "factiontype");
- EntranceInfo[i][eVIP] = cache_get_field_content_int(i, "vip");
- EntranceInfo[i][eVehicles] = cache_get_field_content_int(i, "vehicles");
- EntranceInfo[i][eFreeze] = cache_get_field_content_int(i, "freeze");
- EntranceInfo[i][eLabel] = cache_get_field_content_int(i, "label");
- EntranceInfo[i][eText] = Text3D:INVALID_3DTEXT_ID;
- EntranceInfo[i][ePickup] = -1;
- EntranceInfo[i][eExists] = 1;
- ReloadEntrance(i);
- }
- printf("[Script] %i entrances loaded.", rows);
- }
- case THREAD_LOAD_FACTIONS:
- {
- for(new i = 0; i < rows && i < MAX_FACTIONS; i ++)
- {
- new factionid = cache_get_field_content_int(i, "id");
- cache_get_field_content(i, "name", FactionInfo[factionid][fName], connectionID, 48);
- cache_get_field_content(i, "leader", FactionInfo[factionid][fLeader], connectionID, MAX_PLAYER_NAME);
- FactionInfo[factionid][fType] = cache_get_field_content_int(i, "type");
- FactionInfo[factionid][fColor] = cache_get_field_content_int(i, "color");
- FactionInfo[factionid][fRankCount] = cache_get_field_content_int(i, "rankcount");
- FactionInfo[factionid][fLockerX] = cache_get_field_content_float(i, "lockerx");
- FactionInfo[factionid][fLockerY] = cache_get_field_content_float(i, "lockery");
- FactionInfo[factionid][fLockerZ] = cache_get_field_content_float(i, "lockerz");
- FactionInfo[factionid][fLockerInterior] = cache_get_field_content_int(i, "lockerinterior");
- FactionInfo[factionid][fLockerWorld] = cache_get_field_content_int(i, "lockerworld");
- FactionInfo[factionid][fTurfTokens] = cache_get_field_content_int(i, "turftokens");
- FactionInfo[factionid][fText] = Text3D:INVALID_3DTEXT_ID;
- FactionInfo[factionid][fPickup] = -1;
- ReloadFaction(factionid);
- }
- printf("[Script] %i factions loaded.", rows);
- }
- case THREAD_LOAD_FACTIONRANKS:
- {
- for(new i = 0; i < MAX_FACTIONS; i ++)
- {
- for(new r = 0; r < MAX_FACTION_RANKS; r ++)
- {
- strcpy(FactionRanks[i][r], "Unspecified", 32);
- }
- }
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", FactionRanks[cache_get_field_content_int(i, "id")][cache_get_field_content_int(i, "rank")], connectionID, 32);
- }
- }
- case THREAD_LOAD_FACTIONSKINS:
- {
- for(new i = 0; i < rows; i ++)
- {
- FactionInfo[cache_get_field_content_int(i, "id")][fSkins][cache_get_field_content_int(i, "slot")] = cache_get_field_content_int(i, "skinid");
- }
- }
- case THREAD_LOAD_FACTIONPAY:
- {
- for(new i = 0; i < rows; i ++)
- {
- FactionInfo[cache_get_field_content_int(i, "id")][fPaycheck][cache_get_field_content_int(i, "rank")] = cache_get_field_content_int(i, "amount");
- }
- }
- case THREAD_LOAD_DIVISIONS:
- {
- for(new i = 0; i < MAX_FACTIONS; i ++)
- {
- for(new r = 0; r < MAX_FACTION_DIVISIONS; r ++)
- {
- FactionDivisions[i][r][0] = 0;
- }
- }
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", FactionDivisions[cache_get_field_content_int(i, "id")][cache_get_field_content_int(i, "divisionid")], connectionID, 32);
- }
- }
- case THREAD_LOAD_LANDS:
- {
- for(new i = 0; i < rows && i < MAX_LANDS; i ++)
- {
- cache_get_field_content(i, "owner", LandInfo[i][lOwner], connectionID, MAX_PLAYER_NAME);
- LandInfo[i][lID] = cache_get_field_content_int(i, "id");
- LandInfo[i][lOwnerID] = cache_get_field_content_int(i, "ownerid");
- LandInfo[i][lPrice] = cache_get_field_content_int(i, "price");
- LandInfo[i][lMinX] = cache_get_field_content_float(i, "min_x");
- LandInfo[i][lMinY] = cache_get_field_content_float(i, "min_y");
- LandInfo[i][lMaxX] = cache_get_field_content_float(i, "max_x");
- LandInfo[i][lMaxY] = cache_get_field_content_float(i, "max_y");
- LandInfo[i][lHeight] = cache_get_field_content_float(i, "height");
- LandInfo[i][lGangZone] = -1;
- LandInfo[i][lArea] = -1;
- LandInfo[i][lLabels] = 0;
- LandInfo[i][lExists] = 1;
- ReloadLand(i);
- }
- printf("[Script] %i lands loaded.", rows);
- }
- case THREAD_LOAD_LANDOBJECTS:
- {
- for(new i = 0; i < rows; i ++)
- {
- new objectid = CreateDynamicObject(cache_get_field_content_int(i, "modelid"), cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z"), cache_get_field_content_float(i, "rot_x"), cache_get_field_content_float(i, "rot_y"), cache_get_field_content_float(i, "rot_z"));
- Streamer_SetExtraInt(objectid, E_OBJECT_TYPE, E_OBJECT_LAND);
- Streamer_SetExtraInt(objectid, E_OBJECT_INDEX_ID, cache_get_field_content_int(i, "id"));
- Streamer_SetExtraInt(objectid, E_OBJECT_EXTRA_ID, cache_get_field_content_int(i, "landid"));
- Streamer_SetExtraFloat(objectid, E_OBJECT_X, cache_get_field_content_float(i, "pos_x"));
- Streamer_SetExtraFloat(objectid, E_OBJECT_Y, cache_get_field_content_float(i, "pos_y"));
- Streamer_SetExtraFloat(objectid, E_OBJECT_Z, cache_get_field_content_float(i, "pos_z"));
- if(extraid)
- {
- new
- string[48];
- cache_get_field_content(i, "name", string);
- format(string, sizeof(string), "[%i] - %s", objectid, string);
- Streamer_SetExtraInt(objectid, E_OBJECT_3DTEXT_ID, _:CreateDynamic3DTextLabel(string, COLOR_GREY2, cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z"), 10.0));
- }
- }
- }
- case THREAD_LOAD_GANGS:
- {
- for(new i = 0; i < rows && i < MAX_GANGS; i ++)
- {
- new gangid = cache_get_field_content_int(i, "id");
- cache_get_field_content(i, "name", GangInfo[gangid][gName], connectionID, 32);
- cache_get_field_content(i, "motd", GangInfo[gangid][gMOTD], connectionID, 128);
- cache_get_field_content(i, "leader", GangInfo[gangid][gLeader], connectionID, MAX_PLAYER_NAME);
- GangInfo[gangid][gColor] = cache_get_field_content_int(i, "color");
- GangInfo[gangid][gStrikes] = cache_get_field_content_int(i, "strikes");
- GangInfo[gangid][gLevel] = cache_get_field_content_int(i, "level");
- GangInfo[gangid][gPoints] = cache_get_field_content_int(i, "points");
- GangInfo[gangid][gTurfTokens] = cache_get_field_content_int(i, "turftokens");
- GangInfo[gangid][gStashX] = cache_get_field_content_float(i, "stash_x");
- GangInfo[gangid][gStashY] = cache_get_field_content_float(i, "stash_y");
- GangInfo[gangid][gStashZ] = cache_get_field_content_float(i, "stash_z");
- GangInfo[gangid][gStashInterior] = cache_get_field_content_int(i, "stashinterior");
- GangInfo[gangid][gStashWorld] = cache_get_field_content_int(i, "stashworld");
- GangInfo[gangid][gCash] = cache_get_field_content_int(i, "cash");
- GangInfo[gangid][gMaterials] = cache_get_field_content_int(i, "materials");
- GangInfo[gangid][gWeed] = cache_get_field_content_int(i, "weed");
- GangInfo[gangid][gCocaine] = cache_get_field_content_int(i, "cocaine");
- GangInfo[gangid][gMeth] = cache_get_field_content_int(i, "meth");
- GangInfo[gangid][gPainkillers] = cache_get_field_content_int(i, "painkillers");
- GangInfo[gangid][gHPAmmo] = cache_get_field_content_int(i, "hpammo");
- GangInfo[gangid][gPoisonAmmo] = cache_get_field_content_int(i, "poisonammo");
- GangInfo[gangid][gFMJAmmo] = cache_get_field_content_int(i, "fmjammo");
- // Gang stash weapons
- GangInfo[gangid][gWeapons][GANGWEAPON_9MM] = cache_get_field_content_int(i, "weapon_9mm");
- GangInfo[gangid][gWeapons][GANGWEAPON_SDPISTOL] = cache_get_field_content_int(i, "weapon_sdpistol");
- GangInfo[gangid][gWeapons][GANGWEAPON_DEAGLE] = cache_get_field_content_int(i, "weapon_deagle");
- GangInfo[gangid][gWeapons][GANGWEAPON_SHOTGUN] = cache_get_field_content_int(i, "weapon_shotgun");
- GangInfo[gangid][gWeapons][GANGWEAPON_SPAS12] = cache_get_field_content_int(i, "weapon_spas12");
- GangInfo[gangid][gWeapons][GANGWEAPON_SAWNOFF] = cache_get_field_content_int(i, "weapon_sawnoff");
- GangInfo[gangid][gWeapons][GANGWEAPON_TEC9] = cache_get_field_content_int(i, "weapon_tec9");
- GangInfo[gangid][gWeapons][GANGWEAPON_UZI] = cache_get_field_content_int(i, "weapon_uzi");
- GangInfo[gangid][gWeapons][GANGWEAPON_MP5] = cache_get_field_content_int(i, "weapon_mp5");
- GangInfo[gangid][gWeapons][GANGWEAPON_AK47] = cache_get_field_content_int(i, "weapon_ak47");
- GangInfo[gangid][gWeapons][GANGWEAPON_M4] = cache_get_field_content_int(i, "weapon_m4");
- GangInfo[gangid][gWeapons][GANGWEAPON_RIFLE] = cache_get_field_content_int(i, "weapon_rifle");
- GangInfo[gangid][gWeapons][GANGWEAPON_SNIPER] = cache_get_field_content_int(i, "weapon_sniper");
- GangInfo[gangid][gWeapons][GANGWEAPON_MOLOTOV] = cache_get_field_content_int(i, "weapon_molotov");
- // Gang arms & drug dealer
- GangInfo[gangid][gArmsDealer] = cache_get_field_content_int(i, "armsdealer");
- GangInfo[gangid][gDrugDealer] = cache_get_field_content_int(i, "drugdealer");
- GangInfo[gangid][gArmsX] = cache_get_field_content_float(i, "arms_x");
- GangInfo[gangid][gArmsY] = cache_get_field_content_float(i, "arms_y");
- GangInfo[gangid][gArmsZ] = cache_get_field_content_float(i, "arms_z");
- GangInfo[gangid][gArmsA] = cache_get_field_content_float(i, "arms_a");
- GangInfo[gangid][gDrugX] = cache_get_field_content_float(i, "drug_x");
- GangInfo[gangid][gDrugY] = cache_get_field_content_float(i, "drug_y");
- GangInfo[gangid][gDrugZ] = cache_get_field_content_float(i, "drug_z");
- GangInfo[gangid][gDrugA] = cache_get_field_content_float(i, "drug_a");
- GangInfo[gangid][gArmsWorld] = cache_get_field_content_int(i, "armsworld");
- GangInfo[gangid][gDrugWorld] = cache_get_field_content_int(i, "drugworld");
- GangInfo[gangid][gDrugWeed] = cache_get_field_content_int(i, "drugweed");
- GangInfo[gangid][gDrugCocaine] = cache_get_field_content_int(i, "drugcocaine");
- GangInfo[gangid][gDrugMeth] = cache_get_field_content_int(i, "drugmeth");
- GangInfo[gangid][gArmsMaterials] = cache_get_field_content_int(i, "armsmaterials");
- GangInfo[gangid][gArmsPrices][0] = cache_get_field_content_int(i, "armsprice_1");
- GangInfo[gangid][gArmsPrices][1] = cache_get_field_content_int(i, "armsprice_2");
- GangInfo[gangid][gArmsPrices][2] = cache_get_field_content_int(i, "armsprice_3");
- GangInfo[gangid][gArmsPrices][3] = cache_get_field_content_int(i, "armsprice_4");
- GangInfo[gangid][gArmsPrices][4] = cache_get_field_content_int(i, "armsprice_5");
- GangInfo[gangid][gArmsPrices][5] = cache_get_field_content_int(i, "armsprice_6");
- GangInfo[gangid][gArmsPrices][6] = cache_get_field_content_int(i, "armsprice_7");
- GangInfo[gangid][gArmsPrices][7] = cache_get_field_content_int(i, "armsprice_8");
- GangInfo[gangid][gArmsPrices][8] = cache_get_field_content_int(i, "armsprice_9");
- GangInfo[gangid][gArmsPrices][9] = cache_get_field_content_int(i, "armsprice_10");
- GangInfo[gangid][gArmsPrices][10] = cache_get_field_content_int(i, "armsprice_11");
- GangInfo[gangid][gArmsPrices][11] = cache_get_field_content_int(i, "armsprice_12");
- GangInfo[gangid][gDrugPrices][0] = cache_get_field_content_int(i, "weed_price");
- GangInfo[gangid][gDrugPrices][1] = cache_get_field_content_int(i, "cocaine_price");
- GangInfo[gangid][gDrugPrices][2] = cache_get_field_content_int(i, "meth_price");
- GangInfo[gangid][gArmsHPAmmo] = cache_get_field_content_int(i, "armshpammo");
- GangInfo[gangid][gArmsPoisonAmmo] = cache_get_field_content_int(i, "armspoisonammo");
- GangInfo[gangid][gArmsFMJAmmo] = cache_get_field_content_int(i, "armsfmjammo");
- GangInfo[gangid][gText][0] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gText][1] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gText][2] = Text3D:INVALID_3DTEXT_ID;
- GangInfo[gangid][gActors][0] = INVALID_ACTOR_ID;
- GangInfo[gangid][gActors][1] = INVALID_ACTOR_ID;
- GangInfo[gangid][gPickup] = -1;
- GangInfo[gangid][gSetup] = 1;
- ReloadGang(gangid);
- }
- printf("[Script] %i gangs loaded.", rows);
- }
- case THREAD_LOAD_GANGRANKS:
- {
- for(new i = 0; i < MAX_GANGS; i ++)
- {
- for(new r = 0; r < 7; r ++)
- {
- strcpy(GangRanks[i][r], "Unspecified", 32);
- }
- }
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", GangRanks[cache_get_field_content_int(i, "id")][cache_get_field_content_int(i, "rank")], connectionID, 32);
- }
- }
- case THREAD_LOAD_GANGSKINS:
- {
- for(new i = 0; i < rows; i ++)
- {
- GangInfo[cache_get_field_content_int(i, "id")][gSkins][cache_get_field_content_int(i, "slot")] = cache_get_field_content_int(i, "skinid");
- }
- }
- case THREAD_LOAD_POINTS:
- {
- for(new i = 0; i < rows && i < MAX_POINTS; i ++)
- {
- new pointid = cache_get_field_content_int(i, "id");
- cache_get_field_content(i, "name", PointInfo[pointid][pName], connectionID, 32);
- cache_get_field_content(i, "capturedby", PointInfo[pointid][pCapturedBy], connectionID, MAX_PLAYER_NAME);
- PointInfo[pointid][pCapturedGang] = cache_get_field_content_int(i, "capturedgang");
- PointInfo[pointid][pType] = cache_get_field_content_int(i, "type");
- PointInfo[pointid][pProfits] = cache_get_field_content_int(i, "profits");
- PointInfo[pointid][pTime] = cache_get_field_content_int(i, "time");
- PointInfo[pointid][pPointX] = cache_get_field_content_float(i, "point_x");
- PointInfo[pointid][pPointY] = cache_get_field_content_float(i, "point_y");
- PointInfo[pointid][pPointZ] = cache_get_field_content_float(i, "point_z");
- PointInfo[pointid][pPointInterior] = cache_get_field_content_int(i, "pointinterior");
- PointInfo[pointid][pPointWorld] = cache_get_field_content_int(i, "pointworld");
- PointInfo[pointid][pCaptureTime] = 0;
- PointInfo[pointid][pCapturer] = INVALID_PLAYER_ID;
- PointInfo[pointid][pText] = Text3D:INVALID_3DTEXT_ID;
- PointInfo[pointid][pPickup] = -1;
- PointInfo[pointid][pExists] = 1;
- if(PointInfo[pointid][pCapturedGang] >= 0 && !GangInfo[PointInfo[pointid][pCapturedGang]][gSetup])
- {
- PointInfo[pointid][pCapturedGang] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET capturedgang = -1 WHERE id = %i", pointid);
- mysql_tquery(connectionID, queryBuffer);
- }
- ReloadPoint(pointid);
- }
- printf("[Script] %i points loaded.", rows);
- }
- case THREAD_LOAD_TURFS:
- {
- for(new i = 0; i < rows && i < MAX_TURFS; i ++)
- {
- new turfid = cache_get_field_content_int(i, "id");
- cache_get_field_content(i, "name", TurfInfo[turfid][tName], connectionID, 32);
- cache_get_field_content(i, "capturedby", TurfInfo[turfid][tCapturedBy], connectionID, MAX_PLAYER_NAME);
- TurfInfo[turfid][tCapturedGang] = cache_get_field_content_int(i, "capturedgang");
- TurfInfo[turfid][tType] = cache_get_field_content_int(i, "type");
- TurfInfo[turfid][tTime] = cache_get_field_content_int(i, "time");
- TurfInfo[turfid][tMinX] = cache_get_field_content_float(i, "min_x");
- TurfInfo[turfid][tMinY] = cache_get_field_content_float(i, "min_y");
- TurfInfo[turfid][tMaxX] = cache_get_field_content_float(i, "max_x");
- TurfInfo[turfid][tMaxY] = cache_get_field_content_float(i, "max_y");
- TurfInfo[turfid][tHeight] = cache_get_field_content_float(i, "height");
- TurfInfo[turfid][tGangZone] = -1;
- TurfInfo[turfid][tArea] = -1;
- TurfInfo[turfid][tCaptureTime] = 0;
- TurfInfo[turfid][tCapturer] = INVALID_PLAYER_ID;
- TurfInfo[turfid][tExists] = 1;
- ReloadTurf(turfid);
- }
- printf("[Script] %i turfs loaded.", rows);
- }
- case THREAD_LOAD_CLOTHING:
- {
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", ClothingInfo[extraid][i][cName], connectionID, 32);
- ClothingInfo[extraid][i][cID] = cache_get_field_content_int(i, "id");
- ClothingInfo[extraid][i][cModel] = cache_get_field_content_int(i, "modelid");
- ClothingInfo[extraid][i][cBone] = cache_get_field_content_int(i, "boneid");
- ClothingInfo[extraid][i][cAttached] = cache_get_field_content_int(i, "attached");
- ClothingInfo[extraid][i][cPosX] = cache_get_field_content_float(i, "pos_x");
- ClothingInfo[extraid][i][cPosY] = cache_get_field_content_float(i, "pos_y");
- ClothingInfo[extraid][i][cPosZ] = cache_get_field_content_float(i, "pos_z");
- ClothingInfo[extraid][i][cRotX] = cache_get_field_content_float(i, "rot_x");
- ClothingInfo[extraid][i][cRotY] = cache_get_field_content_float(i, "rot_y");
- ClothingInfo[extraid][i][cRotZ] = cache_get_field_content_float(i, "rot_z");
- ClothingInfo[extraid][i][cScaleX] = cache_get_field_content_float(i, "scale_x");
- ClothingInfo[extraid][i][cScaleY] = cache_get_field_content_float(i, "scale_y");
- ClothingInfo[extraid][i][cScaleZ] = cache_get_field_content_float(i, "scale_z");
- ClothingInfo[extraid][i][cExists] = 1;
- ClothingInfo[extraid][i][cAttachedIndex] = -1;
- }
- PlayerInfo[extraid][pAwaitingClothing] = 1;
- }
- case THREAD_HOUSE_INFORMATION:
- {
- new type[16], houseid = GetNearbyHouseEx(extraid);
- if(HouseInfo[houseid][hType] == -1)
- {
- type = "Other";
- }
- else
- {
- strcpy(type, houseInteriors[HouseInfo[houseid][hType]][intClass]);
- }
- SendClientMessageEx(extraid, COLOR_GREEN, "|______ House ID %i ______|", houseid);
- SendClientMessageEx(extraid, COLOR_GREY2, "(Value: $%i) - (Rent Price: $%i) - (Level: %i/5) - (Active: %s) - (Locked: %s)", HouseInfo[houseid][hPrice], HouseInfo[houseid][hRentPrice], HouseInfo[houseid][hLevel], (gettime() - HouseInfo[houseid][hTimestamp] > 1209600) ? ("{FF6347}No{C8C8C8}") : ("Yes"), (HouseInfo[houseid][hLocked]) ? ("Yes") : ("No"));
- SendClientMessageEx(extraid, COLOR_GREY2, "(Class: %s) - (Location: %s) - (Furniture: %i/%i) - (Tenants: %i/%i)", type, GetZoneName(HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ]), cache_get_row_int(0, 0), GetHouseFurnitureCapacity(houseid), cache_get_row_int(0, 1), GetHouseTenantCapacity(houseid));
- }
- case THREAD_COUNT_FURNITURE:
- {
- new houseid = GetInsideHouse(extraid);
- if(cache_get_row_int(0, 0) >= GetHouseFurnitureCapacity(houseid))
- {
- SendClientMessageEx(extraid, COLOR_GREY, "Your house is only allowed up to %i furniture at its current level.", GetHouseFurnitureCapacity(houseid));
- }
- else
- {
- ShowDialogToPlayer(extraid, DIALOG_BUYFURNITURE1);
- }
- }
- case THREAD_SELL_FURNITURE:
- {
- if(cache_get_row_count(connectionID))
- {
- new name[32], price = percent(cache_get_field_content_int(0, "price"), 75);
- cache_get_field_content(0, "name", name);
- GivePlayerCash(extraid, price);
- SendClientMessageEx(extraid, COLOR_AQUA, "You have sold {FF6347}%s{33CCFF} and received a 75 percent refund of {00AA00}$%i{33CCFF}.", name, price);
- RemoveFurniture(PlayerInfo[extraid][pSelected]);
- }
- }
- case THREAD_CLEAR_FURNITURE:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "Your home contains no furniture which can be sold.");
- }
- else
- {
- new price, houseid = GetInsideHouse(extraid);
- for(new i = 0; i < rows; i ++)
- {
- price += percent(cache_get_field_content_int(i, "price"), 75);
- }
- RemoveAllFurniture(houseid);
- GivePlayerCash(extraid, price);
- SendClientMessageEx(extraid, COLOR_AQUA, "You have sold a total of %i items and received {00AA00}$%i{33CCFF} back.", rows, price);
- }
- }
- case THREAD_COUNT_TEXTS:
- {
- rows = cache_get_row_int(0, 0);
- if(rows)
- {
- SendClientMessageEx(extraid, COLOR_YELLOW, "** You have %i unread text messages. (/texts)", rows);
- }
- }
- case THREAD_VIEW_TEXTS:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "You have no more unread text messages to read.");
- }
- else
- {
- static listString[4096], sender[MAX_PLAYER_NAME], date[24], message[128];
- listString = "Texts sent to you while offline (recent first):\n";
- for(new i = 0; i < min(rows, 25); i ++)
- {
- cache_get_field_content(i, "sender", sender);
- cache_get_field_content(i, "date", date);
- cache_get_field_content(i, "message", message);
- format(listString, sizeof(listString), "%s\n[%s] SMS from %s (%i): %s", listString, date, sender, cache_get_field_content_int(i, "sender_number"), message);
- }
- if(rows > 25)
- {
- ShowPlayerDialog(extraid, DIALOG_UNREADTEXTS, DIALOG_STYLE_MSGBOX, "Unread Texts", listString, "Next", "OK");
- }
- else
- {
- ShowPlayerDialog(extraid, DIALOG_UNREADTEXTS, DIALOG_STYLE_MSGBOX, "Unread Texts", listString, "OK", "");
- }
- }
- }
- /*case THREAD_LIST_VEHICLES:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "You own no vehicles which you can spawn.");
- }
- else
- {
- new string[1024];
- string = "#\tModel\tLocation";
- for(new i = 0; i < rows; i ++)
- {
- format(string, sizeof(string), "%s\n%i\t%s\t%s", string, i + 1, vehicleNames[cache_get_field_content_int(i, "modelid") - 400], (cache_get_field_content_int(i, "world")) ? ("Garage") : (GetZoneName(cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z"))));
- }
- ShowPlayerDialog(extraid, DIALOG_SPAWNCAR, DIALOG_STYLE_TABLIST_HEADERS, "Choose a vehicle to spawn.", string, "Select", "Cancel");
- }
- }*/
- case THREAD_CAR_STORAGE:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "You own no vehicles which you can spawn.");
- }
- else
- {
- new string[1024], vehicleid;
- string = "#\tModel\tStatus\tLocation\tTickets";
- for(new i = 0; i < rows; i ++)
- {
- if((vehicleid = GetVehicleLinkedID(cache_get_field_content_int(i, "id"))) != INVALID_VEHICLE_ID)
- format(string, sizeof(string), "%s\n%i\t%s\t{00AA00}Spawned{FFFFFF}\t%s\t%s", string, i + 1, vehicleNames[GetVehicleModel(vehicleid) - 400]);
- else
- format(string, sizeof(string), "%s\n%i\t%s\t{FF6347}Despawned{FFFFFF}\t%s\t%s", string, i + 1, vehicleNames[cache_get_field_content_int(i, "modelid") - 400], (cache_get_field_content_int(i, "world")) ? ("Garage") : (GetZoneName(cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z"))));
- }
- ShowPlayerDialog(extraid, DIALOG_CARSTORAGE, DIALOG_STYLE_TABLIST_HEADERS, "Choose a vehicle to (de)spawn.", string, "Select", "Cancel");
- }
- }
- case THREAD_FACTION_ROSTER:
- {
- new username[MAX_PLAYER_NAME], date[24];
- SendClientMessage(extraid, COLOR_GREEN, "|____ Faction Roster ____|");
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "username", username);
- cache_get_field_content(i, "lastlogin", date);
- SendClientMessageEx(extraid, COLOR_GREY2, "%s %s - Last Seen: %s", FactionRanks[PlayerInfo[extraid][pFaction]][cache_get_field_content_int(i, "factionrank")], username, date);
- }
- }
- case THREAD_GANG_ROSTER:
- {
- new username[MAX_PLAYER_NAME], date[24];
- SendClientMessage(extraid, COLOR_GREEN, "|____ Gang Roster ____|");
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "username", username);
- cache_get_field_content(i, "lastlogin", date);
- SendClientMessageEx(extraid, COLOR_GREY2, "[%i] %s %s - Last Seen: %s", cache_get_field_content_int(i, "gangrank"), GangRanks[PlayerInfo[extraid][pGang]][cache_get_field_content_int(i, "gangrank")], username, date);
- }
- }
- case THREAD_VIEW_PHONEBOOK:
- {
- if((!rows) && PlayerInfo[extraid][pPage] == 1)
- {
- SendClientMessage(extraid, COLOR_GREY, "The phonebook directory is currently empty.");
- }
- else
- {
- static string[MAX_LISTED_NUMBERS * 32], name[MAX_PLAYER_NAME];
- string = "#\tName\tNumber";
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", name);
- format(string, sizeof(string), "%s\n%i\t%s\t%i", string, ((PlayerInfo[extraid][pPage] - 1) * MAX_LISTED_NUMBERS) + (i + 1), name, cache_get_field_content_int(i, "number"));
- }
- if(PlayerInfo[extraid][pPage] > 1)
- {
- strcat(string, "\n{FF6347}<< Go back{FFFFFF}");
- }
- if(rows == MAX_LISTED_NUMBERS)
- {
- strcat(string, "\n{00AA00}>> Next page{FFFFFF}");
- }
- ShowPlayerDialog(extraid, DIALOG_PHONEBOOK, DIALOG_STYLE_TABLIST_HEADERS, "Phonebook directory", string, "Select", "Close");
- }
- }
- case THREAD_COUNT_LANDOBJECTS:
- {
- if(cache_get_row_int(0, 0) >= GetLandObjectCapacity(extraid))
- {
- SendClientMessageEx(extraid, COLOR_GREY, "You are only only allowed up to %i objects for your land.", GetLandObjectCapacity(extraid));
- }
- else
- {
- ShowDialogToPlayer(extraid, DIALOG_LANDBUILD1);
- }
- }
- case THREAD_SELL_LANDOBJECT:
- {
- if(cache_get_row_count(connectionID))
- {
- new name[32], price = percent(cache_get_field_content_int(0, "price"), 75);
- cache_get_field_content(0, "name", name);
- GivePlayerCash(extraid, price);
- SendClientMessageEx(extraid, COLOR_AQUA, "You have sold {FF6347}%s{33CCFF} and received a 75 percent refund of {00AA00}$%i{33CCFF}.", name, price);
- RemoveLandObject(PlayerInfo[extraid][pSelected]);
- }
- }
- case THREAD_DUPLICATE_LANDOBJECT:
- {
- //name, modelid, price, pos_x, pos_y, pos_z, rot_x, rot_y, rot_z
- if(cache_get_row_count(connectionID))
- {
- new string[20], name[32], landid = GetNearbyLand(extraid);
- new modelid = cache_get_field_content_int(0, "modelid");
- new price = cache_get_field_content_int(0, "price");
- new Float:x = cache_get_field_content_float(0, "pos_x");
- new Float:y = cache_get_field_content_float(0, "pos_y");
- new Float:z = cache_get_field_content_float(0, "pos_z");
- new Float:rx = cache_get_field_content_float(0, "rot_x");
- new Float:ry = cache_get_field_content_float(0, "rot_y");
- new Float:rz = cache_get_field_content_float(0, "rot_z");
- if(PlayerInfo[extraid][pCash] < price)
- {
- SendClientMessage(extraid, COLOR_GREY, "You can't afford to duplicate this object.");
- }
- else
- {
- PlayerInfo[extraid][pObjectLand] = landid;
- cache_get_field_content(0, "name", name);
- GivePlayerCash(extraid, -price);
- SendClientMessageEx(extraid, COLOR_GREEN, "%s duplicated for $%i. You will now edit this object.", name, price);
- format(string, sizeof(string), "~r~-$%i", price);
- GameTextForPlayer(extraid, string, 5000, 1);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO landobjects VALUES(null, %i, %i, '%e', %i, '%f', '%f', '%f', '%f', '%f', '%f', 0, 0, '%f', '%f', '%f', '-1000.0', '-1000.0', '-1000.0')", LandInfo[landid][lID], modelid, name, price, x, y, z, rx, ry, rz, x, y, z - 10.0);
- mysql_tquery(connectionID, queryBuffer);
- mysql_tquery(connectionID, "SELECT * FROM landobjects WHERE id = LAST_INSERT_ID()", "OnQueryFinished", "ii", THREAD_LOAD_LANDOBJECTS, LandInfo[landid][lLabels]);
- mysql_tquery(connectionID, "SELECT LAST_INSERT_ID() FROM landobjects LIMIT 1", "OnQueryFinished", "ii", THREAD_DUPLICATED_OBJECT, extraid);
- }
- }
- }
- case THREAD_DUPLICATED_OBJECT:
- {
- if(cache_get_row_count(connectionID))
- {
- new id = cache_get_row_int(0, 0);
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID) == id)
- {
- PlayerInfo[extraid][pEditType] = EDIT_LAND_OBJECT;
- PlayerInfo[extraid][pEditObject] = i;
- EditDynamicObject(extraid, i);
- GameTextForPlayer(extraid, "~w~Editing Mode~n~~g~Click disk to save~n~~r~Press ESC to cancel", 5000, 1);
- //PlayerInfo[extraid][pSelected] = i;
- //ShowDialogToPlayer(extraid, DIALOG_LANDOBJECTMENU);
- break;
- }
- }
- }
- }
- case THREAD_CLEAR_LANDOBJECTS:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "Your land contains no furniture which can be sold.");
- }
- else
- {
- new price, landid = GetNearbyLand(extraid);
- for(new i = 0; i < rows; i ++)
- {
- price += percent(cache_get_field_content_int(i, "price"), 75);
- }
- RemoveAllLandObjects(landid);
- GivePlayerCash(extraid, price);
- SendClientMessageEx(extraid, COLOR_AQUA, "You have sold a total of %i items and received {00AA00}$%i{33CCFF} back.", rows, price);
- }
- }
- case THREAD_LIST_LANDOBJECTS:
- {
- if((!rows) && PlayerInfo[extraid][pPage] == 1)
- {
- SendClientMessage(extraid, COLOR_GREY, "Your land contains no objects which can be listed.");
- }
- else
- {
- static string[MAX_LISTED_OBJECTS * 48], name[32];
- string = "#\tName\tCost\tDistance";
- for(new i = 0; i < rows; i ++)
- {
- cache_get_field_content(i, "name", name);
- format(string, sizeof(string), "%s\n%i\t%s\t{00AA00}$%i{FFFFFF}\t%.1fm", string, GetLandObjectID(cache_get_field_content_int(i, "id")), name, cache_get_field_content_int(i, "price"), GetPlayerDistanceFromPoint(extraid, cache_get_field_content_float(i, "pos_x"), cache_get_field_content_float(i, "pos_y"), cache_get_field_content_float(i, "pos_z")));
- }
- if(PlayerInfo[extraid][pPage] > 1)
- {
- strcat(string, "\n{FF6347}<< Go back{FFFFFF}");
- }
- if(rows == MAX_LISTED_OBJECTS)
- {
- strcat(string, "\n{00AA00}>> Next page{FFFFFF}");
- }
- ShowPlayerDialog(extraid, DIALOG_LANDOBJECTS, DIALOG_STYLE_TABLIST_HEADERS, "List of objects", string, "Select", "Back");
- }
- }
- case THREAD_LAND_INFORMATION:
- {
- new landid = GetNearbyLand(extraid);
- SendClientMessage(extraid, COLOR_GREEN, "|______ My Land ______|");
- SendClientMessageEx(extraid, COLOR_GREY2, "(ID: %i) - (Value: $%i) - (Objects: %i/%i) - (Location: %s)", landid, LandInfo[landid][lPrice], cache_get_row_int(0, 0), GetLandObjectCapacity(landid), GetZoneName(LandInfo[landid][lMinX], LandInfo[landid][lMinY], LandInfo[landid][lHeight]));
- }
- case THREAD_LOAD_VEHICLES:
- {
- new modelid, Float:pos_x, Float:pos_y, Float:pos_z, Float:pos_a, color1, color2, respawndelay, vehicleid;
- for(new i = 0; i < rows; i ++)
- {
- modelid = cache_get_field_content_int(i, "modelid"),
- pos_x = cache_get_field_content_float(i, "pos_x"),
- pos_y = cache_get_field_content_float(i, "pos_y"),
- pos_z = cache_get_field_content_float(i, "pos_z"),
- pos_a = cache_get_field_content_float(i, "pos_a"),
- color1 = cache_get_field_content_int(i, "color1"),
- color2 = cache_get_field_content_int(i, "color2"),
- respawndelay = cache_get_field_content_int(i, "respawndelay");
- vehicleid = CreateVehicle(modelid, pos_x, pos_y, pos_z, pos_a, color1, color2, respawndelay);
- if(vehicleid != INVALID_VEHICLE_ID)
- {
- VehicleInfo[vehicleid][vID] = cache_get_field_content_int(i, "id");
- VehicleInfo[vehicleid][vGang] = cache_get_field_content_int(i, "gangid");
- VehicleInfo[vehicleid][vFactionType] = cache_get_field_content_int(i, "factiontype");
- VehicleInfo[vehicleid][vJob] = cache_get_field_content_int(i, "job");
- VehicleInfo[vehicleid][vHealth] = cache_get_field_content_int(i, "health");
- if(VehicleInfo[vehicleid][vGang] >= 0)
- {
- VehicleInfo[vehicleid][vPrice] = cache_get_field_content_int(i, "price");
- VehicleInfo[vehicleid][vLocked] = cache_get_field_content_int(i, "locked");
- VehicleInfo[vehicleid][vPaintjob] = cache_get_field_content_int(i, "paintjob");
- VehicleInfo[vehicleid][vInterior] = cache_get_field_content_int(i, "interior");
- VehicleInfo[vehicleid][vWorld] = cache_get_field_content_int(i, "world");
- VehicleInfo[vehicleid][vMods][0] = cache_get_field_content_int(i, "mod_1");
- VehicleInfo[vehicleid][vMods][1] = cache_get_field_content_int(i, "mod_2");
- VehicleInfo[vehicleid][vMods][2] = cache_get_field_content_int(i, "mod_3");
- VehicleInfo[vehicleid][vMods][3] = cache_get_field_content_int(i, "mod_4");
- VehicleInfo[vehicleid][vMods][4] = cache_get_field_content_int(i, "mod_5");
- VehicleInfo[vehicleid][vMods][5] = cache_get_field_content_int(i, "mod_6");
- VehicleInfo[vehicleid][vMods][6] = cache_get_field_content_int(i, "mod_7");
- VehicleInfo[vehicleid][vMods][7] = cache_get_field_content_int(i, "mod_8");
- VehicleInfo[vehicleid][vMods][8] = cache_get_field_content_int(i, "mod_9");
- VehicleInfo[vehicleid][vMods][9] = cache_get_field_content_int(i, "mod_10");
- VehicleInfo[vehicleid][vMods][10] = cache_get_field_content_int(i, "mod_11");
- VehicleInfo[vehicleid][vMods][11] = cache_get_field_content_int(i, "mod_12");
- VehicleInfo[vehicleid][vMods][12] = cache_get_field_content_int(i, "mod_13");
- VehicleInfo[vehicleid][vMods][13] = cache_get_field_content_int(i, "mod_14");
- ReloadVehicle(vehicleid);
- }
- VehicleInfo[vehicleid][vModel] = modelid;
- VehicleInfo[vehicleid][vPosX] = pos_x;
- VehicleInfo[vehicleid][vPosY] = pos_y;
- VehicleInfo[vehicleid][vPosZ] = pos_z;
- VehicleInfo[vehicleid][vPosA] = pos_a;
- VehicleInfo[vehicleid][vColor1] = color1;
- VehicleInfo[vehicleid][vColor2] = color2;
- VehicleInfo[vehicleid][vRespawnDelay] = respawndelay;
- VehicleInfo[vehicleid][vObjects][0] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vObjects][1] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vTimer] = -1;
- vehicleFuel[vehicleid] = 100;
- SetVehicleHealth(vehicleid, VehicleInfo[vehicleid][vHealth]);
- }
- }
- }
- case THREAD_GANG_INFORMATION:
- {
- if(rows)
- {
- new count, total;
-
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists])
- {
- if(TurfInfo[i][tCapturedGang] == PlayerInfo[extraid][pGang])
- count++;
- else if(TurfInfo[i][tType] != 8)
- total++;
- }
- }
-
- SendClientMessageEx(extraid, COLOR_GREEN, "|_____ %s _____|", GangInfo[PlayerInfo[extraid][pGang]][gName]);
- SendClientMessageEx(extraid, COLOR_GREY2, "Leader: %s - Level: %i/3 - Strikes: %i/3 - Members: %i/%i - Vehicles: %i/%i", GangInfo[PlayerInfo[extraid][pGang]][gLeader], GangInfo[PlayerInfo[extraid][pGang]][gLevel], GangInfo[PlayerInfo[extraid][pGang]][gStrikes], cache_get_row_int(0, 0), GetGangMemberLimit(PlayerInfo[extraid][pGang]), GetGangVehicles(PlayerInfo[extraid][pGang]), GetGangVehicleLimit(PlayerInfo[extraid][pGang]));
- SendClientMessageEx(extraid, COLOR_GREY2, "Gang Points: %i GP - Turf Tokens: %i - Cash: $%i/$%i - Materials: %i/%i", GangInfo[PlayerInfo[extraid][pGang]][gPoints], GangInfo[PlayerInfo[extraid][pGang]][gTurfTokens], GangInfo[PlayerInfo[extraid][pGang]][gCash], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_CASH), GangInfo[PlayerInfo[extraid][pGang]][gMaterials], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_MATERIALS));
- SendClientMessageEx(extraid, COLOR_GREY2, "Turfs: %i/%i - Weed: %i/%ig - Cocaine: %i/%ig - Meth: %i/%ig - Painkillers: %i/%i", count, total, GangInfo[PlayerInfo[extraid][pGang]][gWeed], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_WEED), GangInfo[PlayerInfo[extraid][pGang]][gCocaine], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_COCAINE), GangInfo[PlayerInfo[extraid][pGang]][gMeth], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_METH),
- GangInfo[PlayerInfo[extraid][pGang]][gPainkillers], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_PAINKILLERS));
- SendClientMessageEx(extraid, COLOR_GREY2, "Hollow point: %i/%i - Poison tip: %i/%i - Full metal jacket: %i/%i", GangInfo[PlayerInfo[extraid][pGang]][gHPAmmo], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_HPAMMO), GangInfo[PlayerInfo[extraid][pGang]][gPoisonAmmo], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_POISONAMMO), GangInfo[PlayerInfo[extraid][pGang]][gFMJAmmo], GetGangStashCapacity(PlayerInfo[extraid][pGang], STASH_CAPACITY_FMJAMMO));
- }
- }
- case THREAD_OFFLINE_IP:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "The username specified is not registered.");
- }
- else
- {
- new username[MAX_PLAYER_NAME], ip[16];
- cache_get_field_content(0, "username", username);
- cache_get_field_content(0, "ip", ip);
- SendClientMessageEx(extraid, COLOR_WHITE, "** %s's IP: %s **", username, ip);
- }
- }
- case THREAD_CHECK_REFERRAL:
- {
- if(!rows)
- {
- SendClientMessage(extraid, COLOR_GREY, "The player specified doesn't exist.");
- ShowDialogToPlayer(extraid, DIALOG_REFERRAL);
- }
- else
- {
- new username[MAX_PLAYER_NAME], ip[16];
-
- cache_get_field_content(0, "username", username);
- cache_get_field_content(0, "ip", ip);
-
- if(!strcmp(GetPlayerIP(extraid), ip))
- {
- SendClientMessage(extraid, COLOR_GREY, "This account is listed under your own IP address. You can't refer yourself.");
- ShowDialogToPlayer(extraid, DIALOG_REFERRAL);
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET referral_uid = %i WHERE uid = %i", cache_get_field_content_int(0, "uid"), PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- PlayerInfo[extraid][pTutorial] = 1;
- PlayerInfo[extraid][pTutorialTimer] = SetTimerEx("TutorialTimer", 3000, false, "ii", extraid, 1);
- PlayerInfo[extraid][pReferralUID] = cache_get_field_content_int(0, "uid");
-
- SendClientMessageEx(extraid, COLOR_GREEN, "** You have chosen %s as your referrer. They will be rewarded once you reach level 3.", username);
- //SendClientMessage(extraid, COLOR_GREEN, "** Good stuff! That's all we need right now. The tutorial will start in a moment.");
- }
- }
- }
- case THREAD_REWARD_REFERRER:
- {
- if(rows)
- {
- new username[MAX_PLAYER_NAME], ip[16], referralid = INVALID_PLAYER_ID;
- cache_get_field_content(0, "username", username);
- cache_get_field_content(0, "ip", ip);
- // Add a log entry for this referral.
- Log_Write("log_referrals", "%s (uid: %i) (IP: %s) has received 3 cookies for referring %s (uid: %i) (IP: %s).", username, PlayerInfo[extraid][pReferralUID], ip, GetPlayerNameEx(extraid), PlayerInfo[extraid][pID], GetPlayerIP(extraid));
- // Check to see if any of the players online match the player's referral UID.
- foreach(new i : Player)
- {
- if(i != extraid && PlayerInfo[i][pLogged] && PlayerInfo[i][pID] == PlayerInfo[extraid][pReferralUID])
- {
- referralid = i;
- break;
- }
- }
- // Referrer is online.
- if(referralid != INVALID_PLAYER_ID && strcmp(GetPlayerIP(referralid), GetPlayerIP(extraid)) != 0)
- {
- PlayerInfo[referralid][pCookies] += 3;
- SendClientMessage(referralid, COLOR_GREEN, "A player who you've referred reached level 3. Therefore you received 3 cookies!");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s (IP: %s) earned 3 cookies for referring %s (IP: %s).", GetPlayerRPName(referralid), GetPlayerIP(referralid), GetPlayerRPName(extraid), GetPlayerIP(extraid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = cookies + 3 WHERE uid = %i AND ip != '%s'", PlayerInfo[extraid][pReferralUID], GetPlayerIP(extraid));
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- // Referrer is offline. Let's give them their cookies and increment refercount which sends them an alert on login!
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = cookies + 3, refercount = refercount + 1 WHERE uid = %i AND ip != '%s'", PlayerInfo[extraid][pReferralUID], GetPlayerIP(extraid));
- mysql_tquery(connectionID, queryBuffer);
- }
- // Finally, remove the player's link to the referrer as the prize has been given.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET referral_uid = 0 WHERE uid = %i", PlayerInfo[extraid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- case THREAD_LIST_FLAGGED:
- {
- new
- flags[MAX_PLAYERS],
- username[MAX_PLAYER_NAME],
- targetid;
-
- SendClientMessage(extraid, COLOR_GREEN, "|____ Flagged Players ____|");
-
- for(new i = 0; i < rows; i ++)
- {
- cache_get_row(i, 0, username);
-
- if(IsPlayerOnline(username, targetid))
- {
- flags[targetid]++;
- }
- }
-
- foreach(new i : Player)
- {
- if(flags[i] > 0)
- {
- SendClientMessageEx(extraid, COLOR_GREY3, "** %s[%i] has %i active flags.", GetPlayerRPName(i), i, flags[i]);
- }
- }
- }
- }
- }
- // ---------------------------------------
- public OnGameModeInit()
- {
- new string[128];
- connectionID = mysql_connect(MYSQL_HOSTNAME, MYSQL_USERNAME, MYSQL_DATABASE, MYSQL_PASSWORD);
- if(mysql_errno(connectionID))
- {
- print("[ERROR] - Unable to establish a connection with the MySQL server...");
- SendRconCommand("exit");
- return 0;
- }
- radioConnectionID = mysql_connect(MYSQL_HOSTNAME, MYSQL_USERNAME, "shoutcast", MYSQL_PASSWORD);
- if(mysql_errno(radioConnectionID))
- {
- print("[WARNING] - Couldn't connect to radio station database... server will continue to operate normally.");
- radioConnectionID = 0;
- }
- for(new i = 0; i < MAX_VEHICLES; i ++)
- {
- ResetVehicle(i);
- }
- mysql_tquery(connectionID, "TRUNCATE TABLE shots");
- mysql_tquery(connectionID, "SELECT * FROM houses", "OnQueryFinished", "ii", THREAD_LOAD_HOUSES, 0);
- mysql_tquery(connectionID, "SELECT * FROM furniture", "OnQueryFinished", "ii", THREAD_LOAD_FURNITURE, 0);
- mysql_tquery(connectionID, "SELECT * FROM garages", "OnQueryFinished", "ii", THREAD_LOAD_GARAGES, 0);
- mysql_tquery(connectionID, "SELECT * FROM businesses", "OnQueryFinished", "ii", THREAD_LOAD_BUSINESSES, 0);
- mysql_tquery(connectionID, "SELECT * FROM entrances", "OnQueryFinished", "ii", THREAD_LOAD_ENTRANCES, 0);
- mysql_tquery(connectionID, "SELECT * FROM factions", "OnQueryFinished", "ii", THREAD_LOAD_FACTIONS, 0);
- mysql_tquery(connectionID, "SELECT * FROM factionranks", "OnQueryFinished", "ii", THREAD_LOAD_FACTIONRANKS, 0);
- mysql_tquery(connectionID, "SELECT * FROM factionskins", "OnQueryFinished", "ii", THREAD_LOAD_FACTIONSKINS, 0);
- mysql_tquery(connectionID, "SELECT * FROM factionpay", "OnQueryFinished", "ii", THREAD_LOAD_FACTIONPAY, 0);
- mysql_tquery(connectionID, "SELECT * FROM divisions", "OnQueryFinished", "ii", THREAD_LOAD_DIVISIONS, 0);
- mysql_tquery(connectionID, "SELECT * FROM lands", "OnQueryFinished", "ii", THREAD_LOAD_LANDS, 0);
- mysql_tquery(connectionID, "SELECT * FROM landobjects", "OnQueryFinished", "ii", THREAD_LOAD_LANDOBJECTS, 0);
- mysql_tquery(connectionID, "SELECT * FROM vehicles WHERE ownerid = 0", "OnQueryFinished", "ii", THREAD_LOAD_VEHICLES, 0);
- mysql_tquery(connectionID, "SELECT * FROM gangs", "OnQueryFinished", "ii", THREAD_LOAD_GANGS, 0);
- mysql_tquery(connectionID, "SELECT * FROM gangranks", "OnQueryFinished", "ii", THREAD_LOAD_GANGRANKS, 0);
- mysql_tquery(connectionID, "SELECT * FROM gangskins", "OnQueryFinished", "ii", THREAD_LOAD_GANGSKINS, 0);
- mysql_tquery(connectionID, "SELECT * FROM points", "OnQueryFinished", "ii", THREAD_LOAD_POINTS, 0);
- mysql_tquery(connectionID, "SELECT * FROM turfs", "OnQueryFinished", "ii", THREAD_LOAD_TURFS, 0);
- SetGameModeText("FC:RP "SERVER_REVISION);
- SetWeather(gWeather);
- SetNameTagDrawDistance(30.0);
- //ShowPlayerMarkers(0);
- EnableStuntBonusForAll(0);
- UsePlayerPedAnims();
- DisableInteriorEnterExits();
- ManualVehicleEngineAndLights();
- SetDoubleXP(0);
- Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 1000);
- Streamer_TickRate(20);
- // Materials pickup 1
- CreateDynamic3DTextLabel("Materials pickup 1\nCost: $150\n/getmats to begin.", COLOR_YELLOW, 1421.6913, -1318.4719, 13.5547, 10.0);
- CreateDynamicPickup(1318, 1, 1421.6913, -1318.4719, 13.5547);
- // Materials pickup 2
- CreateDynamic3DTextLabel("Materials pickup 2\nCost: $150\n/getmats to begin.", COLOR_YELLOW, 2393.4885, -2008.5726, 13.3467, 10.0);
- CreateDynamicPickup(1318, 1, 2393.4885, -2008.5726, 13.3467);
- // Hospital exit
- CreateDynamic3DTextLabel("(( /exit ))", COLOR_GREY2, -45.3173, 157.9171, 999.0613, 20.0);
- CreateDynamic3DTextLabel("Loading dock\n/load and pick a load\nto begin delivery.", COLOR_YELLOW, -63.4372, -1121.4932, 1.1103, 10.0);
- CreateDynamicPickup(1239, 1, -63.4372, -1121.4932, 1.1103);
- CreateDynamic3DTextLabel("Mechanic components\n/buycomps to purchase.", COLOR_YELLOW, 2330.0369, -2315.4553, 13.5469, 10.0);
- CreateDynamicPickup(1239, 1, 2330.0369, -2315.4553, 13.5469);
- CreateDynamic3DTextLabel("Drivers test\nCost: $500\n/taketest to begin.", COLOR_YELLOW, -2033.2953, -117.4508, 1035.1719, 10.0);
- CreateDynamicPickup(1239, 1, -2033.2953, -117.4508, 1035.1719);
- CreateDynamic3DTextLabel("Grotti dealership\n/buyvehicle to view catalog.\n/upgradevehicle for upgrades.", COLOR_YELLOW, 542.0433, -1293.5909, 17.2422, 10.0);
- CreateDynamicPickup(1274, 1, 542.0433, -1293.5909, 17.2422);
-
- CreateDynamic3DTextLabel("Boombox\n/getboombox to get one!", COLOR_VIP, -2653.1162,1410.2180,906.2734, 10.0);
- CreateDynamicPickup(19605, 1, -2653.1162,1410.2180,906.2734);
-
- CreateDynamic3DTextLabel("Paintball arena\n/enter to play paintball!", COLOR_YELLOW, 1311.4474,-1366.9341,13.5145, 10.0);
- CreateDynamicPickup(1254, 1, 1311.4474,-1366.9341,13.5145);
-
- CreateDynamic3DTextLabel("Recording Studio\n/news to begin the broadcast.", COLOR_LIGHTGREEN, 255.7870,1762.5150,701.0929, 10.0);
- CreateDynamicPickup(1239, 1, 255.7870,1762.5150,701.0929);
-
- CreateDynamic3DTextLabel("Tuning Garage\n/tune , /colorcar, /paintcar to mod your vehicle.", COLOR_VIP, 1041.3689,-1030.2717,32.0837, 10.0);
- CreateDynamicPickup(1239, 1, 1041.3689,-1030.2717,32.0837);
- CreateDynamic3DTextLabel("Name changes\nCost: $7500/level\n/changename to request one.", COLOR_YELLOW, 1477.1705,-1806.1858,2349.6851, 10.0);
- CreateDynamicPickup(1239, 1, 1477.1705,-1806.1858,2349.6851);
- CreateDynamic3DTextLabel("Drug smuggling\nCost: $500\n/smuggledrugs to begin smuggling.", COLOR_YELLOW, 52.0937, -292.2513, 1.7001, 10.0);
- CreateDynamicPickup(1279, 1, 52.0937, -292.2513, 1.7001);
- CreateDynamic3DTextLabel("Meth cookoff\nRequires ephedrine\n/cookmeth to begin cooking.", COLOR_YELLOW, 1.2179, 2.8095, 999.4284, 10.0, .interiorid = 2, .worldid = 10);
- CreateDynamicPickup(1577, 1, 1.2179, 2.8095, 999.4284, .interiorid = 2, .worldid = 10);
- CreateDynamic3DTextLabel("Banking commands\n/bankhelp for more help.", COLOR_YELLOW, 1667.4260, -972.6691, 683.6873, 10.0);
- CreateDynamicPickup(1239, 1, 1667.4260, -972.6691, 683.6873);
- gEphedrineStockText = CreateDynamic3DTextLabel("Raw ephedrine\nStock: 100\n/buydrug ephedrine [amount]", COLOR_YELLOW, 323.7289, 1117.4187, 1083.8828, 10.0);
- CreateDynamicPickup(1577, 1, 323.7289, 1117.1797, 1083.8828);
- gSeedsStockText = CreateDynamic3DTextLabel("Marijuana seeds\nStock: 100\n/buydrug seeds [amount]", COLOR_YELLOW, 321.8347, 1117.1797, 1083.8828, 10.0);
- CreateDynamicPickup(1578, 1, 321.8347, 1117.1797, 1083.8828);
- gCocaineText = CreateDynamic3DTextLabel("Cocaine\nStock: 100\n/buydrug cocaine [amount]", COLOR_YELLOW, 2342.7766, -1187.0839, 1027.9766, 10.0);
- CreateDynamicPickup(1575, 1, 2342.7766, -1187.0839, 1027.9766);
- gVIPHealth = CreateDynamicPickup(1240, 1, -2653.8220, 1407.3859, 906.2734, .worldid = 7, .interiorid = 3);
- gVIPArmor = CreateDynamicPickup(1242, 1, -2653.8613, 1413.2609, 906.2734, .worldid = 7, .interiorid = 3);
- gParachutes[0] = CreateDynamicPickup(371, 1, 1542.9038, -1353.0352, 329.4744); // Star tower
- gParachutes[1] = CreateDynamicPickup(371, 1, 315.9415, 1010.6052, 1953.0031); // Andromada interior
- for(new i = 0; i < sizeof(staticEntrances); i ++)
- {
- format(string, sizeof(string), "%s\n/enter to go inside.", staticEntrances[i][eName]);
- CreateDynamicPickup(1239, 1, staticEntrances[i][ePosX], staticEntrances[i][ePosY], staticEntrances[i][ePosZ]);
- CreateDynamic3DTextLabel(string, COLOR_GREY1, staticEntrances[i][ePosX], staticEntrances[i][ePosY], staticEntrances[i][ePosZ], 10.0);
- }
- for(new i = 0; i < sizeof(jobLocations); i ++)
- {
- format(string, sizeof(string), "%s\n{E6E6E6}/join to get job.", jobLocations[i][jobName]);
- CreateDynamicPickup(1239, 1, jobLocations[i][jobX], jobLocations[i][jobY], jobLocations[i][jobZ]);
- CreateDynamic3DTextLabel(string, COLOR_YELLOW, jobLocations[i][jobX], jobLocations[i][jobY], jobLocations[i][jobZ], 10.0);
- }
- for(new i = 0; i < sizeof(atmMachines); i ++)
- {
- CreateDynamicObject(19324, atmMachines[i][atmX], atmMachines[i][atmY], atmMachines[i][atmZ], 0.0, 0.0, atmMachines[i][atmA]);
- CreateDynamic3DTextLabel("ATM machine\n/atm to withdraw cash.", COLOR_YELLOW, atmMachines[i][atmX], atmMachines[i][atmY], atmMachines[i][atmZ] + 0.4, 10.0);
- }
- for(new i = 0; i < sizeof(minerPositions); i ++)
- {
- CreateDynamic3DTextLabel("/mine\nto begin mining.", COLOR_YELLOW, minerPositions[i][0], minerPositions[i][1], minerPositions[i][2], 25.0);
- }
- for(new i = 0; i < sizeof(arrestPoints); i ++)
- {
- CreateDynamic3DTextLabel("/arrest\nto arrest a suspect.", COLOR_YELLOW, arrestPoints[i][0], arrestPoints[i][1], arrestPoints[i][2], 7.0);
- CreateDynamicPickup(1247, 1, arrestPoints[i][0], arrestPoints[i][1], arrestPoints[i][2]);
- }
- // Login screen
- LoginScreen[0] = TextDrawCreate(19.000000, 191.000000, "~y~Recent updates:~n~~w~- n/a.");
- TextDrawBackgroundColor(LoginScreen[0], 255);
- TextDrawFont(LoginScreen[0], 1);
- TextDrawLetterSize(LoginScreen[0], 0.189999, 1.100000);
- TextDrawColor(LoginScreen[0], -1);
- TextDrawSetOutline(LoginScreen[0], 1);
- TextDrawSetProportional(LoginScreen[0], 1);
- LoginScreen[1] = TextDrawCreate(321.000000, 427.000000, "The player record count is ~y~0~w~, achieved on n/a.");
- TextDrawAlignment(LoginScreen[1], 2);
- TextDrawBackgroundColor(LoginScreen[1], 255);
- TextDrawFont(LoginScreen[1], 1);
- TextDrawLetterSize(LoginScreen[1], 0.210000, 1.000000);
- TextDrawColor(LoginScreen[1], -1);
- TextDrawSetOutline(LoginScreen[1], 1);
- TextDrawSetProportional(LoginScreen[1], 1);
- LoginScreen[2] = TextDrawCreate(527.000000, 191.000000, "~y~Top ten players:~n~~w~- n/a");
- TextDrawBackgroundColor(LoginScreen[2], 255);
- TextDrawFont(LoginScreen[2], 1);
- TextDrawLetterSize(LoginScreen[2], 0.189999, 1.100000);
- TextDrawColor(LoginScreen[2], -1);
- TextDrawSetOutline(LoginScreen[2], 1);
- TextDrawSetProportional(LoginScreen[2], 1);
- LoginScreen[3] = TextDrawCreate(314.000000, 9.000000, "Federal City Roleplay~n~~b~Revision "SERVER_REVISION);
- TextDrawAlignment(LoginScreen[3], 2);
- TextDrawBackgroundColor(LoginScreen[3], 255);
- TextDrawFont(LoginScreen[3], 0);
- TextDrawLetterSize(LoginScreen[3], 0.430000, 1.799999);
- TextDrawColor(LoginScreen[3], -1);
- TextDrawSetOutline(LoginScreen[3], 1);
- TextDrawSetProportional(LoginScreen[3], 1);
- // Website textdraw
- WebsiteTD = TextDrawCreate(501.000000, 6.000000, "Federal City Roleplay");
- TextDrawBackgroundColor(WebsiteTD, 255);
- TextDrawFont(WebsiteTD, 1);
- TextDrawLetterSize(WebsiteTD, 0.250000, 1.000000);
- TextDrawColor(WebsiteTD, -1);
- TextDrawSetOutline(WebsiteTD, 1);
- TextDrawSetProportional(WebsiteTD, 1);
-
- // Time textdraw
- TimeTD = TextDrawCreate(575.000000, 20.000000, "12:34");
- TextDrawAlignment(TimeTD, 2);
- TextDrawBackgroundColor(TimeTD, 255);
- TextDrawFont(TimeTD, 3);
- TextDrawLetterSize(TimeTD, 0.430000, 1.790000);
- TextDrawColor(TimeTD, -1);
- TextDrawSetOutline(TimeTD, 1);
- TextDrawSetProportional(TimeTD, 1);
- // Animation textdraw
- AnimationTD = TextDrawCreate(435.000000, 426.000000, "Press ~r~~k~~PED_SPRINT~~w~ to stop animation");
- TextDrawBackgroundColor(AnimationTD, 255);
- TextDrawFont(AnimationTD, 2);
- TextDrawLetterSize(AnimationTD, 0.260000, 1.299999);
- TextDrawColor(AnimationTD, -1);
- TextDrawSetOutline(AnimationTD, 1);
- TextDrawSetProportional(AnimationTD, 1);
- #if defined SERVER_INTRO
- // Server intro by Josh & Emmet
- introTextdraws[0] = TextDrawCreate(660.000000, -59.000000, "_");
- TextDrawBackgroundColor(introTextdraws[0], 255);
- TextDrawFont(introTextdraws[0], 1);
- TextDrawLetterSize(introTextdraws[0], 0.500000, 19.000000);
- TextDrawColor(introTextdraws[0], -1);
- TextDrawSetOutline(introTextdraws[0], 0);
- TextDrawSetProportional(introTextdraws[0], 1);
- TextDrawSetShadow(introTextdraws[0], 1);
- TextDrawUseBox(introTextdraws[0], 1);
- TextDrawBoxColor(introTextdraws[0], 255);
- TextDrawTextSize(introTextdraws[0], -50.000000, 0.000000);
- introTextdraws[1] = TextDrawCreate(651.000000, 338.000000, "_");
- TextDrawBackgroundColor(introTextdraws[1], 255);
- TextDrawFont(introTextdraws[1], 1);
- TextDrawLetterSize(introTextdraws[1], 0.500000, 19.000000);
- TextDrawColor(introTextdraws[1], -1);
- TextDrawSetOutline(introTextdraws[1], 0);
- TextDrawSetProportional(introTextdraws[1], 1);
- TextDrawSetShadow(introTextdraws[1], 1);
- TextDrawUseBox(introTextdraws[1], 1);
- TextDrawBoxColor(introTextdraws[1], 255);
- TextDrawTextSize(introTextdraws[1], -50.000000, 0.000000);
- introTextdraws[2] = TextDrawCreate(249.000000, 144.000000, "Federal City Roleplay");
- TextDrawBackgroundColor(introTextdraws[2], 255);
- TextDrawFont(introTextdraws[2], 2);
- TextDrawLetterSize(introTextdraws[2], 0.400000, 2.099999);
- TextDrawColor(introTextdraws[2], 144559871);
- TextDrawSetOutline(introTextdraws[2], 1);
- TextDrawSetProportional(introTextdraws[2], 1);
- introTextdraws[3] = TextDrawCreate(331.000000, 161.000000, "Presents...");
- TextDrawBackgroundColor(introTextdraws[3], 255);
- TextDrawFont(introTextdraws[3], 2);
- TextDrawLetterSize(introTextdraws[3], 0.300000, 1.799999);
- TextDrawColor(introTextdraws[3], -1);
- TextDrawSetOutline(introTextdraws[3], 1);
- TextDrawSetProportional(introTextdraws[3], 1);
- introTextdraws[4] = TextDrawCreate(288.000000, 156.000000, "Los ~n~ Angele~n~Auto");
- TextDrawBackgroundColor(introTextdraws[4], 255);
- TextDrawFont(introTextdraws[4], 3);
- TextDrawLetterSize(introTextdraws[4], 0.750000, 2.999999);
- TextDrawColor(introTextdraws[4], -1);
- TextDrawSetOutline(introTextdraws[4], 1);
- TextDrawSetProportional(introTextdraws[4], 1);
- introTextdraws[5] = TextDrawCreate(261.000000, 233.000000, "Federal City Roleplay");
- TextDrawBackgroundColor(introTextdraws[5], 255);
- TextDrawFont(introTextdraws[5], 0);
- TextDrawLetterSize(introTextdraws[5], 0.599999, 2.699999);
- TextDrawColor(introTextdraws[5], 144559871);
- TextDrawSetOutline(introTextdraws[5], 1);
- TextDrawSetProportional(introTextdraws[5], 1);
- introTextdraws[6] = TextDrawCreate(513.000000, 176.000000, "Management");
- TextDrawBackgroundColor(introTextdraws[6], 255);
- TextDrawFont(introTextdraws[6], 0);
- TextDrawLetterSize(introTextdraws[6], 0.579999, 2.399997);
- TextDrawColor(introTextdraws[6], 144559871);
- TextDrawSetOutline(introTextdraws[6], 1);
- TextDrawSetProportional(introTextdraws[6], 1);
- introTextdraws[7] = TextDrawCreate(555.000000, 201.000000, "JEinstein~n~Unlimited");
- TextDrawAlignment(introTextdraws[7], 2);
- TextDrawBackgroundColor(introTextdraws[7], 255);
- TextDrawFont(introTextdraws[7], 2);
- TextDrawLetterSize(introTextdraws[7], 0.189999, 1.399997);
- TextDrawColor(introTextdraws[7], -1);
- TextDrawSetOutline(introTextdraws[7], 1);
- TextDrawSetProportional(introTextdraws[7], 1);
- introTextdraws[8] = TextDrawCreate(26.000000, 153.000000, "Development");
- TextDrawBackgroundColor(introTextdraws[8], 255);
- TextDrawFont(introTextdraws[8], 0);
- TextDrawLetterSize(introTextdraws[8], 0.579999, 2.399997);
- TextDrawColor(introTextdraws[8], 144559871);
- TextDrawSetOutline(introTextdraws[8], 1);
- TextDrawSetProportional(introTextdraws[8], 1);
- introTextdraws[9] = TextDrawCreate(44.000000, 178.000000, "Unlimited~n~JEinstein");
- TextDrawBackgroundColor(introTextdraws[9], 255);
- TextDrawFont(introTextdraws[9], 2);
- TextDrawLetterSize(introTextdraws[9], 0.189999, 1.399997);
- TextDrawColor(introTextdraws[9], -1);
- TextDrawSetOutline(introTextdraws[9], 1);
- TextDrawSetProportional(introTextdraws[9], 1);
- introTextdraws[10] = TextDrawCreate(33.000000, 219.000000, "Mapping");
- TextDrawBackgroundColor(introTextdraws[10], 255);
- TextDrawFont(introTextdraws[10], 0);
- TextDrawLetterSize(introTextdraws[10], 0.579999, 2.399997);
- TextDrawColor(introTextdraws[10], 144559871);
- TextDrawSetOutline(introTextdraws[10], 1);
- TextDrawSetProportional(introTextdraws[10], 1);
- introTextdraws[11] = TextDrawCreate(65.000000, 246.000000, "Unlimited~n~Lance Lanvins");
- TextDrawAlignment(introTextdraws[11], 2);
- TextDrawBackgroundColor(introTextdraws[11], 255);
- TextDrawFont(introTextdraws[11], 2);
- TextDrawLetterSize(introTextdraws[11], 0.189999, 1.399997);
- TextDrawColor(introTextdraws[11], -1);
- TextDrawSetOutline(introTextdraws[11], 1);
- TextDrawSetProportional(introTextdraws[11], 1);
- introTextdraws[12] = TextDrawCreate(145.000000, 144.000000, "Beta Testing");
- TextDrawBackgroundColor(introTextdraws[12], 255);
- TextDrawFont(introTextdraws[12], 0);
- TextDrawLetterSize(introTextdraws[12], 0.579999, 2.399997);
- TextDrawColor(introTextdraws[12], 144559871);
- TextDrawSetOutline(introTextdraws[12], 1);
- TextDrawSetProportional(introTextdraws[12], 1);
- introTextdraws[13] = TextDrawCreate(192.000000, 168.000000, "Franklyn V Menace~n~Lui Drayton~n~Chris Shocker~n~Max Mabbitt~n~Lazlow V Rocks~n~Lance Lanvins");
- TextDrawAlignment(introTextdraws[13], 2);
- TextDrawBackgroundColor(introTextdraws[13], 255);
- TextDrawFont(introTextdraws[13], 2);
- TextDrawLetterSize(introTextdraws[13], 0.189999, 1.399997);
- TextDrawColor(introTextdraws[13], -1);
- TextDrawSetOutline(introTextdraws[13], 1);
- TextDrawSetProportional(introTextdraws[13], 1);
- introTextdraws[14] = TextDrawCreate(428.000000, 208.000000, "Suggestions");
- TextDrawBackgroundColor(introTextdraws[14], 255);
- TextDrawFont(introTextdraws[14], 0);
- TextDrawLetterSize(introTextdraws[14], 0.579999, 2.399997);
- TextDrawColor(introTextdraws[14], 144559871);
- TextDrawSetOutline(introTextdraws[14], 1);
- TextDrawSetProportional(introTextdraws[14], 1);
- introTextdraws[15] = TextDrawCreate(469.000000, 233.000000, "Lazlow_V_Rocks~n~Unlimited~n~JEinstein");
- TextDrawAlignment(introTextdraws[15], 2);
- TextDrawBackgroundColor(introTextdraws[15], 255);
- TextDrawFont(introTextdraws[15], 2);
- TextDrawLetterSize(introTextdraws[15], 0.189999, 1.399997);
- TextDrawColor(introTextdraws[15], -1);
- TextDrawSetOutline(introTextdraws[15], 1);
- TextDrawSetProportional(introTextdraws[15], 1);
- introTextdraws[16] = TextDrawCreate(293.000000, 140.000000, "Credits");
- TextDrawBackgroundColor(introTextdraws[16], 255);
- TextDrawFont(introTextdraws[16], 0);
- TextDrawLetterSize(introTextdraws[16], 0.639998, 2.599997);
- TextDrawColor(introTextdraws[16], 144559871);
- TextDrawSetOutline(introTextdraws[16], 1);
- TextDrawSetProportional(introTextdraws[16], 1);
- introTextdraws[17] = TextDrawCreate(321.000000, 165.000000, "Incognito~n~BlueG~n~Y_Less~n~Unlimited~n~JEinstein~n~Admin team~n~Helper team~n~Beta testers~n~Our players!");
- TextDrawAlignment(introTextdraws[17], 2);
- TextDrawBackgroundColor(introTextdraws[17], 255);
- TextDrawFont(introTextdraws[17], 2);
- TextDrawLetterSize(introTextdraws[17], 0.189999, 1.399997);
- TextDrawColor(introTextdraws[17], -1);
- TextDrawSetOutline(introTextdraws[17], 1);
- TextDrawSetProportional(introTextdraws[17], 1);
- introTextdraws[18] = TextDrawCreate(391.000000, 161.000000, "Several months of development...");
- TextDrawBackgroundColor(introTextdraws[18], 255);
- TextDrawFont(introTextdraws[18], 2);
- TextDrawLetterSize(introTextdraws[18], 0.240000, 1.599999);
- TextDrawColor(introTextdraws[18], 144559871);
- TextDrawSetOutline(introTextdraws[18], 1);
- TextDrawSetProportional(introTextdraws[18], 1);
- introTextdraws[19] = TextDrawCreate(421.000000, 175.000000, "To make this script possible");
- TextDrawBackgroundColor(introTextdraws[19], 255);
- TextDrawFont(introTextdraws[19], 2);
- TextDrawLetterSize(introTextdraws[19], 0.240000, 1.599999);
- TextDrawColor(introTextdraws[19], -1);
- TextDrawSetOutline(introTextdraws[19], 1);
- TextDrawSetProportional(introTextdraws[19], 1);
- introTextdraws[20] = TextDrawCreate(29.000000, 161.000000, "Providing you with limitless opportunities");
- TextDrawBackgroundColor(introTextdraws[20], 255);
- TextDrawFont(introTextdraws[20], 2);
- TextDrawLetterSize(introTextdraws[20], 0.240000, 1.599999);
- TextDrawColor(introTextdraws[20], 144559871);
- TextDrawSetOutline(introTextdraws[20], 1);
- TextDrawSetProportional(introTextdraws[20], 1);
- introTextdraws[21] = TextDrawCreate(29.000000, 175.000000, "One update at a time.");
- TextDrawBackgroundColor(introTextdraws[21], 255);
- TextDrawFont(introTextdraws[21], 2);
- TextDrawLetterSize(introTextdraws[21], 0.240000, 1.599999);
- TextDrawColor(introTextdraws[21], -1);
- TextDrawSetOutline(introTextdraws[21], 1);
- TextDrawSetProportional(introTextdraws[21], 1);
- introTextdraws[22] = TextDrawCreate(204.000000, 152.000000, "Where your options are truely limitless");
- TextDrawBackgroundColor(introTextdraws[22], 255);
- TextDrawFont(introTextdraws[22], 2);
- TextDrawLetterSize(introTextdraws[22], 0.240000, 1.599999);
- TextDrawColor(introTextdraws[22], 144559871);
- TextDrawSetOutline(introTextdraws[22], 1);
- TextDrawSetProportional(introTextdraws[22], 1);
- introTextdraws[23] = TextDrawCreate(281.000000, 125.000000, "~w~Welcome to..."); // 258.00
- TextDrawBackgroundColor(introTextdraws[23], 255);
- TextDrawFont(introTextdraws[23], 0);
- TextDrawLetterSize(introTextdraws[23], 0.649998, 2.699997);
- TextDrawColor(introTextdraws[23], 144559871);
- TextDrawSetOutline(introTextdraws[23], 1);
- TextDrawSetProportional(introTextdraws[23], 1);
- introTextdraws[24] = TextDrawCreate(258.000000, 146.000000, "Federal City Roleplay");
- TextDrawBackgroundColor(introTextdraws[24], 255);
- TextDrawFont(introTextdraws[24], 0);
- TextDrawLetterSize(introTextdraws[24], 0.649998, 2.699997);
- TextDrawColor(introTextdraws[24], 144559871);
- TextDrawSetOutline(introTextdraws[24], 1);
- TextDrawSetProportional(introTextdraws[24], 1);
- introTextdraws[25] = TextDrawCreate(202.000000, 342.000000, "Thank you for watching this quick introduction.~n~Let's wrap this up, then you can register.");
- TextDrawBackgroundColor(introTextdraws[25], 255);
- TextDrawFont(introTextdraws[25], 2);
- TextDrawLetterSize(introTextdraws[25], 0.240000, 1.599999);
- TextDrawColor(introTextdraws[25], -1);
- TextDrawSetOutline(introTextdraws[25], 1);
- TextDrawSetProportional(introTextdraws[25], 1);
- #endif
- //Chrismats
- CreateDynamicObject(19076, 1310.1173, -1378.4599, 12.5845, 0.0000, 0.0000, 0.0000); //XmasTree1
- CreateDynamicObject(1704, 1309.6292, -1382.0592, 12.7400, 0.0000, 0.0000, 0.0000); //kb_chair03
- CreateDynamicObject(19054, 1311.2885, -1381.9519, 13.2936, 0.0000, 0.0000, 0.0000); //XmasBox1
- CreateDynamicObject(19058, 1308.8927, -1381.9248, 13.3039, 0.0000, 0.0000, 0.0000); //XmasBox5
- CreateDynamicObject(19057, 1310.0550, -1379.6777, 13.3721, 0.0000, 0.0000, 0.0000); //XmasBox4
- CreateDynamicObject(19056, 1309.1733, -1378.3001, 13.2964, 0.0000, 0.0000, 0.0000); //XmasBox3
- CreateDynamicObject(19055, 1310.0877, -1377.0694, 13.3091, 0.0000, 0.0000, 0.0000); //XmasBox2
- CreateDynamicObject(19054, 1311.0332, -1378.4566, 13.2958, 0.0000, 0.0000, 0.0000); //XmasBox1
- CreateDynamicObject(18863, 1315.2963, -1332.8082, 21.5617, 0.0000, 0.0000, 84.0000); //SnowArc1
- CreateDynamicObject(19057, 1218.88843, -1421.87915, 12.93580, 0.00000, 0.00000, 12.00000);
- CreateDynamicObject(19056, 1220.47034, -1421.23364, 12.97230, 0.00000, 0.00000, -26.00000);
- CreateDynamicObject(19058, 1219.49243, -1419.98511, 12.92040, 0.00000, 0.00000, 19.00000);
- CreateDynamicObject(19076, 1220.73254, -1420.72217, 12.21270, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19061, 1221.93750, -1418.54907, 15.91301, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19063, 1222.26697, -1419.81921, 17.13000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19054, 1226.10132, -1420.29724, 12.79400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19054, 1224.88330, -1421.26318, 12.79400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19076, 1516.174438, -1659.545532, 12.549164, 0.000000, 0.000000, 88.621032);
- CreateDynamicObject(19054, 1515.487060, -1660.620117, 13.189172, 0.000000, 0.000000, 81.514411);
- CreateDynamicObject(19057, 1517.011108, -1660.514526, 13.159166, 0.000000, 0.000000, 105.449455);
- CreateDynamicObject(19056, 1517.115356, -1658.661743, 13.199166, 0.000000, 0.000000, 73.178741);
- CreateDynamicObject(19055, 1515.605957, -1658.291381, 13.179170, 0.000000, 0.000000, -167.021270);
- CreateDynamicObject(19058, 1514.269531, -1659.196166, 13.136867, 0.000000, 0.000000, -95.766990);
- CreateDynamicObject(2599, 1516.554565, -1656.150634, 13.009170, 0.000000, 0.000000, 92.047149);
- //Blocking modding garages and repair garages in LS
- CreateDynamicObject(971, 1042.43945, -1025.88000, 33.08270, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(971, 1026.27551, -1029.37598, 32.51470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(971, 2071.51929, -1831.61609, 15.30620, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(976, 2640.54395, -2039.29175, 10.16450, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(976, 2640.54395, -2039.29175, 13.28850, 0.00000, 0.00000, 0.00000);
- //City Hall interior
- //City Hall////////////////////////////////////////////////////////////////////////////////////////////////////////
- new tmpobjid;
- tmpobjid = CreateDynamicObject(18981,1468.778,-1801.201,2348.185,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(14455,1463.179,-1790.217,2350.296,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(14455,1464.070,-1789.466,2350.296,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1463.113,-1791.601,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1463.123,-1791.601,2353.890,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.794,-1789.440,2350.427,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1466.163,-1789.430,2347.834,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1466.163,-1789.430,2353.316,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2161,1466.355,-1789.077,2349.125,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1467.565,-1789.077,2349.125,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1467.565,-1789.077,2350.386,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1466.354,-1789.077,2350.386,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(3858,1473.004,-1811.214,2349.560,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(2161,1465.094,-1789.077,2349.125,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1465.093,-1789.077,2350.386,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1465.093,-1789.047,2351.077,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1466.354,-1789.047,2351.077,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1467.565,-1789.047,2351.077,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2161,1464.654,-1789.077,2349.125,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(2161,1467.997,-1789.077,2349.566,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(2161,1467.997,-1789.077,2350.366,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19459,1468.233,-1789.080,2350.427,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2608,1466.782,-1789.245,2350.477,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(2608,1465.571,-1789.245,2350.477,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19459,1472.982,-1795.901,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1461.004,-1796.442,2347.194,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1468.193,-1796.456,2347.195,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1468.213,-1796.446,2347.195,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1476.094,-1796.442,2347.194,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.971,-1795.902,2347.194,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19361,1468.558,-1802.093,2350.426,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19361,1467.038,-1803.633,2350.426,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19361,1467.038,-1805.362,2352.168,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19427,1467.593,-1803.635,2348.835,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "grey-40-percent", -1);
- tmpobjid = CreateDynamicObject(19427,1466.472,-1803.635,2348.835,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18646, "matcolours", "grey-40-percent", -1);
- tmpobjid = CreateDynamicObject(19427,1467.863,-1801.994,2348.775,0.000,90.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19427,1466.292,-1801.994,2348.775,0.000,90.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19459,1470.182,-1809.982,2350.427,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19361,1467.038,-1808.792,2352.168,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19459,1465.361,-1805.080,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2198,1467.556,-1805.635,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 18646, "matcolours", "grey-30-percent", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 18646, "matcolours", "grey-30-percent", 0);
- SetDynamicObjectMaterial(tmpobjid, 6, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19459,1472.982,-1811.074,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19361,1468.548,-1801.883,2350.426,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19361,1467.047,-1800.352,2350.426,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19477,1466.027,-1803.723,2351.187,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "G", 130, "Webdings", 130, 0, -1, 0, 1);
- tmpobjid = CreateDynamicObject(2165,1465.761,-1790.263,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 3, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2166,1466.562,-1790.249,2348.675,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1460.232,-1789.440,2350.427,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1460.992,-1796.441,2350.427,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1499,1465.846,-1796.431,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19427,1468.203,-1796.436,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19427,1472.093,-1796.436,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1472.715,-1791.582,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(3858,1475.878,-1796.439,2349.275,0.000,0.000,45.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(3858,1460.696,-1796.431,2354.178,0.000,0.000,45.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(18981,1475.628,-1784.021,2352.848,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1472.695,-1791.582,2353.889,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1467.925,-1789.461,2353.889,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1467.925,-1796.423,2353.889,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19477,1467.198,-1803.723,2351.017,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "City Hall", 130, "Ariel", 75, 1, -1, 0, 1);
- tmpobjid = CreateDynamicObject(19459,1472.705,-1792.932,2347.054,90.000,180.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19459,1472.695,-1791.582,2347.544,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1472.685,-1791.582,2347.194,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1476.095,-1796.411,2347.194,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19786,1472.647,-1792.919,2350.646,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2230,1473.078,-1794.693,2349.996,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2230,1473.078,-1791.774,2349.996,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1802.711,2350.856,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1801.260,2350.856,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1802.711,2349.475,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1801.259,2349.475,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1801.259,2352.158,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1802.711,2352.158,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1802.711,2351.988,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1801.260,2351.988,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(1532,1454.964,-1793.843,2642.285,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", -1);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19459,1453.472,-1793.741,2644.003,90.000,360.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1802.721,2350.688,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(1763,1469.374,-1793.562,2348.685,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19598, "sfbuilding1", "darkwood1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1763,1470.215,-1790.031,2348.685,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19598, "sfbuilding1", "darkwood1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1763,1471.465,-1795.841,2348.685,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19598, "sfbuilding1", "darkwood1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19427,1468.192,-1796.426,2347.184,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1468.212,-1796.416,2347.184,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1467.794,-1789.462,2347.194,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1463.123,-1791.562,2347.194,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1460.994,-1796.422,2347.194,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1801.260,2350.688,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1801.260,2349.657,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1468.439,-1802.701,2349.657,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1467.228,-1800.479,2349.475,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1466.277,-1800.479,2349.475,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(1532,1453.473,-1793.833,2642.285,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", -1);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19940,1467.228,-1800.479,2349.657,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1466.277,-1800.479,2349.657,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1467.229,-1800.479,2350.688,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1466.278,-1800.479,2350.688,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1467.228,-1800.479,2352.158,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1466.277,-1800.479,2352.158,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1467.239,-1800.479,2351.988,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1466.278,-1800.479,2351.988,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1467.229,-1800.479,2350.856,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1466.278,-1800.479,2350.856,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19427,1466.082,-1801.994,2348.775,0.000,90.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(1532,1471.043,-1809.853,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", -1);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(1532,1469.552,-1809.853,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", -1);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19459,1469.541,-1809.953,2346.813,90.000,90.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1470.181,-1809.954,2347.195,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.982,-1803.155,2350.437,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1465.370,-1808.472,2347.195,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.981,-1811.063,2347.195,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(1499,1472.972,-1800.781,2348.685,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(3858,1473.010,-1796.434,2354.128,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(19459,1472.991,-1795.902,2347.194,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1477.873,-1796.431,2350.427,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1472.991,-1811.063,2347.194,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1480.944,-1798.301,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1480.934,-1801.312,2347.185,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1480.934,-1810.932,2347.185,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1480.954,-1810.463,2350.427,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1477.863,-1809.813,2350.427,0.000,0.000,1170.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1477.863,-1809.783,2347.194,0.000,0.000,1170.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2198,1479.356,-1797.065,2348.685,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 6, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19408,1474.527,-1806.645,2350.416,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19408,1477.026,-1806.625,2350.416,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1483.545,-1801.652,2348.475,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2198,1480.347,-1801.018,2348.685,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 6, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2257,1470.812,-1789.576,2350.876,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(2257,1472.852,-1798.547,2350.836,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19373,1472.968,-1798.585,2350.436,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1483.535,-1801.662,2348.354,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1483.525,-1801.642,2348.354,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1483.515,-1801.692,2347.183,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1483.505,-1801.632,2347.183,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19373,1465.367,-1808.296,2351.157,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19444,1463.734,-1807.637,2349.686,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(2230,1465.057,-1809.273,2349.996,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19444,1463.734,-1808.958,2349.686,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19444,1463.734,-1808.958,2351.866,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19444,1463.734,-1807.637,2351.866,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19390,1479.548,-1806.630,2350.447,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", 0);
- tmpobjid = CreateDynamicObject(1499,1480.283,-1806.621,2348.685,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19459,1485.095,-1806.611,2347.185,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1485.095,-1806.631,2347.185,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2198,1479.286,-1802.320,2348.685,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 6, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19087,1476.035,-1806.658,2349.876,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1477.986,-1806.658,2349.876,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1477.986,-1806.658,2351.267,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1476.064,-1806.658,2351.267,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1476.154,-1806.658,2348.995,0.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1477.895,-1806.658,2348.995,0.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1473.644,-1806.658,2348.995,0.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1475.404,-1806.658,2348.995,0.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19408,1474.527,-1806.605,2347.195,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19408,1477.167,-1806.615,2347.195,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19408,1477.167,-1806.635,2347.195,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19408,1474.686,-1806.655,2347.195,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2608,1477.194,-1809.519,2350.875,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2608,1474.534,-1809.519,2350.875,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1721,1473.340,-1806.049,2348.685,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1721,1476.001,-1806.049,2348.685,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19427,1472.972,-1803.165,2347.196,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.992,-1803.165,2347.196,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.962,-1803.145,2347.196,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1473.002,-1803.145,2347.196,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1480.924,-1805.015,2353.689,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1480.924,-1795.395,2353.689,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1477.854,-1796.466,2353.689,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.994,-1795.915,2353.689,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.994,-1811.056,2353.689,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1477.883,-1806.603,2353.689,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1477.883,-1806.653,2353.689,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1477.883,-1809.803,2353.689,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(18981,1468.778,-1808.903,2352.666,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1468.162,-1809.955,2353.678,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.952,-1811.065,2353.678,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1465.361,-1805.095,2353.678,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1472.981,-1795.905,2353.678,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.962,-1803.156,2353.678,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.972,-1803.146,2353.678,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1473.002,-1803.146,2353.678,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.992,-1803.166,2353.678,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1472.091,-1796.456,2353.678,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1483.514,-1801.653,2353.347,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1483.474,-1801.693,2353.687,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1483.464,-1801.623,2353.687,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1483.504,-1801.643,2353.457,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1483.484,-1801.673,2353.457,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19087,1478.765,-1801.637,2349.957,0.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19087,1480.845,-1801.637,2349.957,0.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19373,1480.499,-1796.487,2352.659,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19373,1480.899,-1796.148,2352.659,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19373,1480.609,-1794.846,2351.228,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19373,1480.609,-1794.846,2351.888,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19373,1482.550,-1796.008,2351.888,0.000,90.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19373,1482.550,-1796.008,2351.228,0.000,90.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(2198,1473.565,-1797.065,2348.685,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 6, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19373,1476.999,-1796.437,2350.838,0.000,180.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2257,1476.912,-1796.547,2350.806,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19459,1480.951,-1804.613,2347.804,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2161,1481.315,-1803.547,2349.095,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19459,1480.951,-1804.613,2353.116,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2161,1481.315,-1803.547,2350.016,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(2161,1481.315,-1803.547,2350.877,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19940,1481.104,-1803.126,2350.486,90.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19940,1481.083,-1804.376,2350.486,90.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19459,1481.354,-1801.073,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2161,1481.315,-1804.838,2349.095,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(2161,1481.315,-1804.838,2350.016,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(2161,1481.315,-1804.838,2350.877,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19940,1481.083,-1805.657,2350.486,90.000,180.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(2608,1481.092,-1804.626,2350.527,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(2608,1481.092,-1804.626,2349.626,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19373,1473.010,-1799.008,2350.838,0.000,180.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19940,1473.094,-1799.626,2351.717,360.000,270.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(2257,1473.122,-1799.057,2350.286,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING20", 0);
- tmpobjid = CreateDynamicObject(19940,1473.094,-1798.395,2351.717,360.000,270.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19373,1476.999,-1796.997,2352.250,0.000,270.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19373,1476.979,-1798.507,2353.881,0.000,360.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19174,1468.709,-1802.023,2350.356,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1468.679,-1802.043,2350.386,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1468.679,-1802.003,2350.386,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1468.679,-1802.003,2350.316,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1468.679,-1802.043,2350.316,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(18757,1453.355,-1801.270,2644.221,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 4829, "airport_las", "liftdoorsac256", -1);
- tmpobjid = CreateDynamicObject(19427,1462.232,-1800.297,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2395,1464.886,-1800.230,2349.405,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2395,1464.886,-1800.230,2346.663,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19390,1460.678,-1800.309,2350.447,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19427,1459.082,-1800.297,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19427,1462.242,-1800.327,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19800, "lsacarpark1", "dt_officewall1", -1);
- tmpobjid = CreateDynamicObject(19427,1459.082,-1800.327,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19800, "lsacarpark1", "dt_officewall1", -1);
- tmpobjid = CreateDynamicObject(19459,1465.341,-1805.160,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19800, "lsacarpark1", "dt_officewall1", -1);
- tmpobjid = CreateDynamicObject(19459,1458.378,-1805.170,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19800, "lsacarpark1", "dt_officewall1", -1);
- tmpobjid = CreateDynamicObject(19459,1460.508,-1806.830,2350.427,360.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19800, "lsacarpark1", "dt_officewall1", -1);
- tmpobjid = CreateDynamicObject(19427,1460.642,-1800.317,2352.958,180.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19800, "lsacarpark1", "dt_officewall1", -1);
- tmpobjid = CreateDynamicObject(19378,1463.354,-1805.105,2352.247,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18996, "mattextures", "sampblack", -1);
- tmpobjid = CreateDynamicObject(1499,1459.905,-1800.322,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18003,1465.764,-1802.571,2349.265,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19608, "woodenstage1", "woodenstage1", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 19598, "sfbuilding1", "darkwood1", 0);
- SetDynamicObjectMaterial(tmpobjid, 5, 19598, "sfbuilding1", "darkwood1", -1);
- SetDynamicObjectMaterial(tmpobjid, 6, 1560, "7_11_door", "cj_sheetmetal2", 0);
- tmpobjid = CreateDynamicObject(19829,1459.444,-1800.418,2349.896,360.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(1209,1464.505,-1796.793,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 6, 9514, "711_sfw", "shingles2", 0);
- tmpobjid = CreateDynamicObject(2266,1463.744,-1805.650,2349.896,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 16640, "a51", "a51_monitors", 0);
- tmpobjid = CreateDynamicObject(2266,1463.126,-1805.562,2349.896,0.000,0.000,163.499,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 16640, "a51", "a51_monitors", 0);
- tmpobjid = CreateDynamicObject(2266,1464.260,-1805.516,2349.896,0.000,0.000,208.499,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 16640, "a51", "a51_monitors", 0);
- tmpobjid = CreateDynamicObject(2266,1462.823,-1806.516,2349.896,0.000,0.000,343.499,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2266,1462.811,-1806.554,2349.896,0.000,0.000,343.499,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2266,1463.744,-1806.651,2349.896,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 16640, "a51", "a51_monitors", 0);
- tmpobjid = CreateDynamicObject(2266,1463.744,-1806.691,2349.896,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2266,1464.719,-1806.404,2349.896,0.000,0.000,388.499,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 16640, "a51", "a51_monitors", 0);
- tmpobjid = CreateDynamicObject(2266,1464.738,-1806.440,2349.896,0.000,0.000,388.499,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2165,1458.920,-1806.255,2348.685,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 3, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(957,1478.454,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(14793,1462.180,-1805.495,2352.048,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(14793,1461.940,-1805.495,2352.048,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(14793,1461.690,-1805.495,2352.048,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(14793,1462.390,-1805.495,2352.048,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(14793,1461.489,-1805.495,2352.048,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19373,1463.679,-1796.445,2350.436,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19373,1462.748,-1796.455,2350.436,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2257,1462.613,-1796.566,2350.816,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19373,1463.928,-1806.097,2348.917,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", -1);
- tmpobjid = CreateDynamicObject(19459,1445.929,-1796.469,2347.174,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(18762,1459.756,-1794.091,2351.037,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1458.221,-1805.032,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1453.351,-1806.792,2350.427,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19477,1473.902,-1806.548,2351.627,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "G", 130, "GTAWEAPON3", 80, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObject(19477,1476.393,-1806.528,2351.627,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "G", 130, "GTAWEAPON3", 80, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObject(19477,1476.363,-1806.518,2351.627,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "1", 130, "Ariel", 80, 1, -1, 0, 1);
- tmpobjid = CreateDynamicObject(19477,1473.872,-1806.538,2351.627,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "2", 130, "Ariel", 80, 1, -1, 0, 1);
- tmpobjid = CreateDynamicObject(3858,1458.238,-1806.051,2350.836,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(1499,1458.225,-1798.712,2348.685,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19459,1458.231,-1792.321,2350.427,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1458.261,-1792.331,2347.194,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(18981,1445.729,-1801.201,2348.195,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(3858,1458.220,-1791.406,2354.109,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(19427,1468.193,-1796.456,2353.686,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1468.213,-1796.466,2353.686,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1461.013,-1796.462,2353.686,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1458.232,-1792.332,2353.686,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1462.242,-1800.277,2347.184,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1462.232,-1800.287,2347.184,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1459.092,-1800.287,2347.184,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1458.211,-1801.017,2347.184,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1458.211,-1796.348,2347.184,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1462.233,-1800.286,2353.687,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1460.643,-1800.286,2353.687,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1459.043,-1800.286,2353.687,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1457.332,-1800.687,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19427,1457.322,-1800.677,2347.176,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1458.212,-1796.337,2353.686,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1458.212,-1801.006,2353.686,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1457.342,-1800.676,2353.686,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1456.611,-1805.492,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18758,1453.289,-1805.098,2350.597,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 18031, "cj_exp", "mp_cloth_wall", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 18031, "cj_exp", "mp_cloth_wall", 0);
- tmpobjid = CreateDynamicObject(18757,1453.225,-1801.270,2350.657,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 4829, "airport_las", "liftdoorsac256", -1);
- tmpobjid = CreateDynamicObject(18755,1453.242,-1805.089,2350.617,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "liftdoorsac256", -1);
- tmpobjid = CreateDynamicObject(18757,1453.225,-1805.080,2350.617,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 4829, "airport_las", "liftdoorsac256", -1);
- tmpobjid = CreateDynamicObject(19459,1449.828,-1798.360,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1456.609,-1805.451,2347.174,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1446.315,-1803.109,2347.174,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19427,1455.833,-1803.117,2347.174,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1449.848,-1798.360,2347.175,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19390,1451.496,-1796.449,2350.447,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19459,1445.899,-1796.459,2350.427,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18762,1459.756,-1794.091,2349.826,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1458.408,-1791.719,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(18762,1459.826,-1794.071,2349.706,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18762,1459.686,-1794.071,2349.706,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18981,1445.793,-1797.999,2352.639,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18762,1459.686,-1794.071,2350.607,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18762,1459.826,-1794.071,2350.657,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18762,1459.826,-1794.071,2351.147,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18762,1459.686,-1794.071,2351.147,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19459,1456.589,-1805.401,2353.687,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1451.729,-1803.119,2353.687,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1449.839,-1801.188,2353.687,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19353,1454.602,-1796.438,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19353,1453.871,-1796.458,2350.437,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19353,1453.871,-1796.468,2347.163,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19353,1455.092,-1796.488,2350.406,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1453.322,-1796.477,2353.687,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19174,1455.099,-1796.622,2350.166,360.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1454.987,-1796.592,2349.545,0.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1454.987,-1796.592,2351.027,0.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1454.987,-1796.592,2351.257,0.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1455.217,-1796.592,2351.257,0.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1455.217,-1796.592,2349.856,0.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19174,1455.217,-1796.592,2349.545,0.000,180.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(19940,1454.753,-1796.649,2351.667,180.000,270.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19940,1455.434,-1796.649,2351.667,180.000,270.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19940,1455.434,-1796.649,2351.327,180.000,270.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19940,1454.753,-1796.649,2351.327,180.000,270.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19477,1454.217,-1796.671,2351.257,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "FLOOR 1", 130, "Ariel", 40, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObject(18981,1444.469,-1784.027,2348.205,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 11100, "bendytunnel_sfse", "Bow_sub_walltiles", -1);
- tmpobjid = CreateDynamicObject(19459,1457.060,-1796.423,2350.427,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(19459,1445.900,-1796.423,2350.427,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(19459,1449.852,-1791.570,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(19459,1456.003,-1791.570,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(19390,1451.496,-1790.678,2350.437,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", 0);
- tmpobjid = CreateDynamicObject(19459,1457.912,-1790.680,2350.437,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(19459,1453.219,-1785.798,2350.427,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(19459,1453.139,-1787.079,2350.427,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3741, "cehillhse14", "swimpoolbtm1_128", -1);
- tmpobjid = CreateDynamicObject(1582,1456.405,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1455.684,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1453.703,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1452.982,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1450.541,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1450.541,-1801.307,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1451.272,-1801.307,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(19373,1476.979,-1798.337,2353.881,0.000,360.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19373,1477.009,-1798.337,2353.881,0.000,360.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19373,1477.009,-1798.507,2353.881,0.000,360.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(957,1475.523,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1475.783,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1478.234,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1478.024,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1476.014,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1476.994,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1477.244,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(957,1476.744,-1798.425,2352.117,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(18762,1477.453,-1797.022,2354.660,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(18762,1476.433,-1797.022,2354.660,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(18762,1476.563,-1797.022,2354.660,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(18762,1476.483,-1796.932,2354.650,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18762,1477.404,-1796.932,2354.650,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18762,1477.454,-1796.121,2354.630,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(18762,1476.493,-1796.121,2354.630,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(18762,1476.433,-1796.121,2354.630,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19459,1468.574,-1808.533,2353.830,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18075,1476.794,-1812.510,2352.178,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1477.244,-1812.510,2352.178,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1476.614,-1812.510,2352.178,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.191,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1799.085,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1801.026,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1801.737,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1803.838,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1804.549,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1806.420,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1807.141,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1809.372,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.901,-1808.652,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1470.191,-1809.372,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1468.259,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1467.549,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1465.717,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1464.996,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1463.135,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1462.415,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1460.544,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1459.813,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(18981,1468.778,-1801.201,2352.589,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", -1);
- tmpobjid = CreateDynamicObject(1499,1452.270,-1790.668,2348.675,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(1499,1452.240,-1796.468,2348.685,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19476,1451.488,-1796.557,2351.395,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "WC", 120, "Ariel", 100, 1, -1, -16777216, 1);
- tmpobjid = CreateDynamicObject(2265,1455.427,-1795.614,2350.206,0.000,270.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(2265,1455.427,-1794.643,2350.206,0.000,270.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(2265,1455.427,-1793.352,2350.206,0.000,270.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(2265,1455.427,-1792.241,2350.206,0.000,270.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(18075,1457.449,-1790.198,2352.188,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1457.449,-1789.218,2352.188,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1457.449,-1788.237,2352.188,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1454.727,-1784.646,2352.188,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1453.717,-1784.646,2352.188,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19369,1449.833,-1799.893,2350.585,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2257,1449.972,-1799.898,2350.546,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19459,1456.050,-1793.701,2641.000,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(18757,1453.385,-1805.080,2644.221,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 4829, "airport_las", "liftdoorsac256", -1);
- tmpobjid = CreateDynamicObject(18755,1453.377,-1805.073,2644.231,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "liftdoorsac256", -1);
- tmpobjid = CreateDynamicObject(19456,1453.364,-1803.216,2644.021,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1456.100,-1793.711,2640.680,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1450.069,-1805.492,2644.003,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19476,1453.461,-1793.840,2645.151,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ASSEMBLY HALL", 120, "Ariel", 65, 1, -1, -16777216, 1);
- tmpobjid = CreateDynamicObject(19459,1437.902,-1796.877,2647.335,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1456.070,-1793.691,2644.003,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1445.219,-1800.762,2644.003,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.071,-1792.345,2647.335,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1446.560,-1803.163,2641.010,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1439.420,-1796.877,2647.746,90.000,270.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1460.100,-1793.669,2647.332,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1450.069,-1805.474,2641.010,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1445.179,-1800.741,2641.010,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1445.349,-1800.721,2640.690,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1446.430,-1803.143,2640.690,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(2257,1439.382,-1796.996,2644.415,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19459,1455.991,-1793.699,2647.336,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1450.077,-1805.622,2640.690,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18981,1445.446,-1808.228,3233.481,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1455.467,-1801.720,3239.064,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1455.468,-1811.343,3239.064,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19459,1446.479,-1793.683,2644.003,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1460.009,-1803.180,2641.003,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1453.409,-1815.553,3239.064,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1450.638,-1797.721,3239.064,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1441.067,-1797.739,3239.064,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(2264,1439.904,-1810.103,2643.731,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(2264,1438.970,-1810.102,2643.731,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1438.033,-1810.103,2643.731,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(1582,1442.049,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1441.258,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1444.300,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1445.060,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(19459,1456.866,-1798.549,2641.003,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(1582,1444.300,-1795.681,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1445.090,-1795.681,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1447.412,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1448.183,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1450.454,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1451.264,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(3858,1444.401,-1793.681,2641.977,0.000,0.000,45.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(1582,1453.495,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1454.266,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(19369,1450.118,-1795.229,2644.021,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18762,1452.540,-1794.653,2639.855,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(18762,1454.031,-1794.653,2639.855,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19459,1456.880,-1798.470,2644.003,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1459.966,-1803.169,2640.693,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1456.856,-1798.567,2640.693,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1582,1454.266,-1796.132,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1453.475,-1796.132,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(19369,1448.557,-1796.500,2644.021,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1442.651,-1792.140,2647.336,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1446.904,-1795.219,2644.021,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1456.860,-1798.961,2644.003,90.000,360.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2257,1456.741,-1798.916,2644.415,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19369,1442.632,-1795.339,2644.021,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1819,1455.671,-1797.573,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2264,1456.273,-1795.849,2643.731,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1456.273,-1794.989,2643.731,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING20", 0);
- tmpobjid = CreateDynamicObject(1819,1455.671,-1801.324,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2264,1446.123,-1794.279,2643.731,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1445.272,-1794.269,2643.731,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING20", 0);
- tmpobjid = CreateDynamicObject(2257,1444.060,-1800.645,2644.415,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1446.482,-1800.159,2643.731,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING6", 0);
- tmpobjid = CreateDynamicObject(2264,1447.433,-1800.159,2643.731,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING20", 0);
- tmpobjid = CreateDynamicObject(2264,1448.414,-1800.159,2643.731,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING6", 0);
- tmpobjid = CreateDynamicObject(2264,1449.404,-1800.159,2643.731,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING20", 0);
- tmpobjid = CreateDynamicObject(19369,1440.480,-1802.379,2644.681,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2257,1440.361,-1802.347,2644.415,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING6", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1803.993,2643.313,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1436.041,-1792.375,2644.003,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1797.132,2643.403,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1437.852,-1796.857,2644.003,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1797.132,2645.615,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1798.373,2645.825,270.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1800.594,2645.825,270.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1802.815,2645.825,270.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19431,1436.030,-1804.154,2644.041,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1806.106,2642.231,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1808.326,2642.231,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1808.326,2645.634,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1806.095,2645.634,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1582,1452.695,-1796.132,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1809.386,2643.392,1800.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1582,1452.725,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1455.894,-1801.307,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(18981,1445.446,-1806.101,2641.800,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(1582,1455.143,-1801.307,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1451.312,-1798.374,2352.166,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1798.364,2642.242,810.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1800.595,2642.242,810.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1809.386,2645.623,1800.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19369,1450.125,-1795.239,2640.999,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1450.105,-1795.249,2640.999,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1446.925,-1795.249,2640.999,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1446.875,-1795.239,2640.999,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1448.555,-1796.540,2640.999,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1449.696,-1793.689,2640.999,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1449.707,-1793.709,2640.679,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1448.587,-1796.560,2640.679,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1446.926,-1795.259,2640.679,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1450.096,-1795.259,2640.679,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1450.126,-1795.279,2640.679,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1446.857,-1795.279,2640.679,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1801.647,2643.373,1080.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1801.647,2645.595,1080.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1800.586,2644.744,1170.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1798.355,2644.744,1170.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1799.576,2643.713,1260.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1799.576,2645.965,1260.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(3858,1436.042,-1794.403,2642.900,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(1499,1436.050,-1803.281,2642.287,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1803.408,2643.373,1260.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1803.408,2645.594,1260.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1802.868,2644.743,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19431,1436.060,-1804.124,2647.291,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1806.106,2644.373,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.086,-1808.337,2644.373,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19431,1436.060,-1804.124,2640.786,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19431,1436.050,-1804.174,2640.786,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19431,1436.020,-1804.194,2644.041,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1440.481,-1802.449,2644.021,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1440.451,-1802.469,2641.009,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1440.441,-1802.238,2640.689,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1444.009,-1800.758,2644.681,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19431,1436.000,-1804.134,2644.041,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1445.359,-1800.752,2647.336,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1450.071,-1805.622,2647.336,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1456.872,-1798.560,2647.336,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1452.822,-1803.211,2647.336,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1446.491,-1793.700,2647.336,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19431,1436.040,-1804.164,2647.291,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(18981,1445.446,-1806.101,2646.264,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1446.882,-1792.010,2647.336,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(1582,1439.227,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1798.844,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1799.594,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1802.415,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1803.195,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1805.515,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(19369,1440.421,-1802.489,2640.689,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1440.461,-1802.459,2641.009,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1440.501,-1802.459,2641.009,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1440.531,-1802.479,2640.689,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1445.369,-1803.244,2644.003,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1445.369,-1803.254,2641.011,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1445.369,-1803.264,2640.690,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19431,1436.020,-1804.184,2647.291,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1803.993,2645.542,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1805.223,2645.833,270.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1807.454,2645.833,270.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1808.514,2644.682,360.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1808.514,2642.470,360.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1499,1440.510,-1804.123,2642.287,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1805.762,2644.662,540.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1805.762,2642.451,540.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1806.813,2642.231,810.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1809.043,2642.231,810.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1806.791,2643.462,810.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1808.992,2643.652,990.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1804.571,2644.923,990.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1809.975,2644.682,360.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1809.975,2642.431,360.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.497,-1809.754,2645.833,270.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1806.791,2644.733,810.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1440.507,-1808.992,2644.924,990.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(3858,1440.510,-1812.929,2641.929,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(3858,1440.495,-1811.047,2647.744,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(19459,1440.498,-1814.933,2644.043,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1445.139,-1809.869,2645.835,0.000,90.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(13649,1445.201,-1810.065,2646.340,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1450.051,-1808.145,2641.011,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1450.031,-1808.145,2640.690,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1819,1443.770,-1804.686,2642.300,0.000,0.000,50.600,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1440.538,-1814.925,2641.010,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1440.548,-1814.916,2640.680,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19477,1445.155,-1810.069,2645.712,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "l", 90, "Wingdings", 199, 0, -1, 0, 1);
- tmpobjid = CreateDynamicObject(19459,1445.340,-1817.813,2644.043,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1445.340,-1817.783,2641.011,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1445.340,-1817.773,2640.681,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1450.061,-1815.032,2644.043,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1450.051,-1817.754,2641.010,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1450.041,-1817.754,2640.690,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1450.051,-1808.102,2645.253,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1450.051,-1817.734,2645.253,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1445.241,-1817.804,2645.253,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1440.519,-1814.922,2645.253,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(2207,1446.145,-1807.442,2642.288,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2207,1444.295,-1812.405,2642.288,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2208,1444.294,-1811.291,2642.228,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2208,1446.195,-1811.281,2642.228,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1450.021,-1808.102,2647.355,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1450.021,-1817.705,2647.355,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1445.408,-1817.795,2647.355,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1440.547,-1814.913,2647.355,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1445.370,-1803.272,2645.253,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1445.370,-1803.292,2647.352,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1440.491,-1802.459,2645.252,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1440.501,-1802.469,2647.354,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1440.461,-1802.268,2647.354,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1440.471,-1802.479,2647.354,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19087,1440.569,-1801.574,2644.681,270.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19087,1440.569,-1801.574,2644.771,270.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19087,1440.569,-1801.574,2644.591,270.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.563,-1803.349,2644.592,270.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1442.685,-1803.349,2644.592,270.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1449.969,-1803.309,2644.592,270.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19445,1442.486,-1801.720,3239.064,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1442.476,-1811.321,3239.064,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19089,1447.948,-1817.726,2644.592,270.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.596,-1817.505,2644.592,270.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.558,-1803.349,2644.772,270.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.558,-1803.349,2644.682,270.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1442.650,-1803.349,2644.682,270.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1449.964,-1803.358,2644.682,270.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19445,1443.909,-1815.564,3239.064,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19089,1449.964,-1803.358,2644.772,270.000,0.000,1350.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1449.954,-1803.358,2644.772,270.000,0.000,1440.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19445,1448.889,-1815.526,3232.058,90.000,180.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19089,1447.942,-1817.724,2644.772,270.000,0.000,1710.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18981,1445.446,-1806.101,3241.288,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19089,1447.962,-1817.724,2644.682,270.000,0.000,1710.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.596,-1817.716,2644.592,270.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.596,-1817.716,2644.682,270.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.596,-1817.505,2644.682,270.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.596,-1817.726,2644.772,270.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19089,1440.596,-1817.515,2644.772,270.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1814.504,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1814.253,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1813.993,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1813.993,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1805.250,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1805.510,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19369,1445.143,-1805.780,2647.493,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(14455,1444.961,-1817.737,2643.941,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(14455,1450.002,-1816.977,2643.941,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(14455,1450.002,-1811.247,2643.941,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1444.305,-1810.121,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19813,1440.580,-1803.552,2642.980,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19813,1449.971,-1806.062,2642.980,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(2707,1446.045,-1810.121,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1444.375,-1809.761,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1445.966,-1809.761,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1445.966,-1810.451,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1444.365,-1810.451,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1444.516,-1809.481,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1445.806,-1809.481,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1445.806,-1810.741,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2707,1444.556,-1810.741,2645.721,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19306,1442.725,-1817.727,2644.161,0.000,0.000,110.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObject(19306,1442.399,-1817.707,2644.161,0.000,0.000,110.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObject(19306,1442.392,-1817.688,2643.668,360.000,-4.599,110.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19306,1442.556,-1817.713,2644.342,0.000,0.000,113.799,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObject(19306,1442.553,-1817.691,2643.764,360.000,-4.599,110.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19306,1442.725,-1817.695,2643.659,360.000,-4.599,110.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19813,1444.090,-1817.715,2642.980,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19369,1441.972,-1800.877,2641.009,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2181,1449.456,-1803.866,2642.300,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 5, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2356,1448.262,-1804.397,2642.300,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19787,1440.594,-1811.284,2644.071,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19477,1440.704,-1811.708,2644.021,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ü", 130, "Webdings", 90, 0, -1, 0, 1);
- tmpobjid = CreateDynamicObject(11683,1445.562,-1803.848,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(11684,1444.744,-1803.852,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(11682,1446.373,-1803.858,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2264,1441.132,-1815.482,2643.731,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 11631, "mp_ranchcut", "CJ_PAINTING20", 0);
- tmpobjid = CreateDynamicObject(11684,1441.213,-1815.371,2642.300,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(11683,1441.202,-1814.568,2642.300,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(11682,1441.212,-1813.778,2642.300,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(1819,1441.390,-1817.226,2642.300,0.000,0.000,50.600,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2855,1441.352,-1816.445,2642.790,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 15040, "cuntcuts", "csnewspaper02", 0);
- tmpobjid = CreateDynamicObject(19813,1443.020,-1803.351,2642.980,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19813,1442.720,-1803.351,2642.980,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1);
- tmpobjid = CreateDynamicObject(19431,1436.010,-1804.144,2647.291,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1805.075,2643.372,1620.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2264,1443.793,-1803.860,2643.731,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1442.923,-1803.860,2643.731,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(2264,1444.662,-1803.860,2643.731,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(2264,1447.382,-1803.860,2643.731,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19477,1440.704,-1811.037,2643.871,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "MAILEN NEWS", 130, "Ariel", 27, 1, -1, 0, 1);
- tmpobjid = CreateDynamicObject(19459,1435.640,-1810.688,2644.003,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.060,-1814.308,2644.003,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19174,1448.489,-1796.586,2643.971,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(19369,1446.910,-1795.237,2647.334,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1450.123,-1795.237,2647.334,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1448.601,-1796.518,2647.334,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1450.101,-1795.247,2647.334,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1448.557,-1796.510,2646.683,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19369,1448.557,-1796.510,2641.270,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1805.075,2645.594,1620.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1800.587,2644.394,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1799.576,2641.491,1260.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1800.637,2642.723,1350.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1798.326,2644.394,1530.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1798.387,2642.723,1350.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1807.144,2643.392,1800.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.066,-1807.144,2645.604,1800.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.056,-1806.086,2644.744,1170.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.076,-1808.367,2644.744,1170.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.076,-1806.099,2642.723,1350.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1897,1436.076,-1808.390,2642.723,1350.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(3858,1436.068,-1811.904,2641.929,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(3858,1436.041,-1809.048,2647.793,0.000,0.000,135.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- tmpobjid = CreateDynamicObject(1819,1439.953,-1807.568,2642.300,0.000,0.000,50.600,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(18981,1420.567,-1806.101,2641.810,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19459,1431.181,-1796.895,2644.003,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1426.322,-1801.755,2644.003,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1426.342,-1805.823,2644.003,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1431.223,-1810.606,2644.003,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1436.061,-1792.345,2644.003,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1431.223,-1810.566,2641.733,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.043,-1814.346,2641.733,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1426.353,-1805.724,2641.733,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1426.343,-1795.323,2641.733,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1431.136,-1796.914,2641.733,0.000,0.000,1170.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.016,-1792.374,2641.733,0.000,0.000,1260.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(18981,1423.547,-1806.101,2646.244,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19787,1426.467,-1806.632,2644.529,5.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19459,1436.033,-1814.316,2641.012,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1431.173,-1810.555,2641.012,0.000,0.000,1170.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1426.373,-1804.515,2641.012,0.000,0.000,1260.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1426.363,-1795.384,2641.012,0.000,0.000,1260.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1435.993,-1792.374,2641.012,0.000,0.000,1260.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1431.093,-1796.927,2641.012,0.000,0.000,1350.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1431.093,-1796.947,2640.722,0.000,0.000,1350.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1431.223,-1810.596,2647.145,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1436.024,-1814.307,2647.145,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1426.353,-1805.705,2647.145,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1426.343,-1796.073,2647.145,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1436.013,-1792.393,2647.145,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1431.123,-1796.904,2647.145,0.000,0.000,1170.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(14455,1426.423,-1808.335,2643.901,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(14455,1426.423,-1800.572,2643.901,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1435.974,-1792.347,2640.722,0.000,0.000,1440.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1426.385,-1800.655,2640.722,0.000,0.000,1440.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1426.385,-1810.196,2640.722,0.000,0.000,1440.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.025,-1814.326,2640.722,0.000,0.000,1440.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1431.156,-1810.545,2640.722,0.000,0.000,1530.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19431,1435.980,-1804.214,2641.731,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19431,1435.970,-1804.215,2641.001,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19431,1435.940,-1804.195,2641.001,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19431,1435.990,-1804.156,2647.162,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2207,1430.412,-1800.165,2642.310,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2208,1431.415,-1802.961,2642.218,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1431.291,-1798.658,2645.464,0.000,90.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19459,1432.973,-1798.638,2647.125,0.000,180.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1429.621,-1798.678,2647.135,0.000,180.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2126,1429.432,-1807.110,2642.310,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- tmpobjid = CreateDynamicObject(14455,1424.442,-1810.526,2643.901,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2191,1433.454,-1810.031,2642.270,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19459,1431.312,-1803.408,2650.198,90.000,180.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(2264,1432.041,-1810.003,2643.731,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1431.191,-1810.010,2643.731,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(19459,1437.921,-1796.887,2640.991,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19369,1431.310,-1801.878,2647.112,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.310,-1798.497,2647.112,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1432.830,-1798.497,2647.112,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1429.760,-1798.497,2647.112,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.311,-1797.056,2647.112,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.311,-1800.016,2647.112,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.311,-1798.596,2647.112,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.311,-1800.356,2647.112,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.311,-1803.396,2647.112,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1431.311,-1801.826,2647.112,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1429.761,-1801.876,2647.112,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19369,1432.831,-1801.877,2647.112,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(14793,1431.393,-1801.302,2645.650,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(14793,1431.393,-1812.041,2645.650,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1803.212,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19459,1442.652,-1791.986,2640.991,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(957,1431.309,-1803.402,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.309,-1803.212,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1801.830,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1801.650,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1802.011,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1800.350,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1800.019,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1798.609,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1797.078,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1803.402,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1797.268,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1798.409,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1431.299,-1798.799,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19459,1436.062,-1792.366,2640.991,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1442.973,-1793.707,2640.991,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(957,1429.748,-1800.020,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.748,-1798.599,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1797.078,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1797.268,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1798.389,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1798.789,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1801.820,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1801.650,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1802.001,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1803.391,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1429.758,-1803.211,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1801.830,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1802.020,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1801.650,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1800.369,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1800.019,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19459,1442.973,-1793.687,2640.681,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(957,1432.830,-1798.598,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1798.778,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1798.418,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1797.077,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(957,1432.830,-1797.267,2645.350,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(2264,1432.226,-1797.487,2643.731,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1426.914,-1798.718,2643.731,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(2264,1431.360,-1797.477,2643.731,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING26", 0);
- tmpobjid = CreateDynamicObject(2264,1426.914,-1797.847,2643.731,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 2254, "picture_frame_clip", "CJ_PAINTING24", 0);
- tmpobjid = CreateDynamicObject(19459,1436.020,-1796.877,2644.003,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", -1);
- tmpobjid = CreateDynamicObject(19459,1436.020,-1809.637,2644.003,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", -1);
- tmpobjid = CreateDynamicObject(19459,1440.561,-1810.468,2644.003,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", -1);
- tmpobjid = CreateDynamicObject(19459,1437.924,-1796.898,2640.681,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1442.657,-1792.007,2640.681,0.000,0.000,1080.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.081,-1792.356,2640.681,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1436.081,-1814.357,2644.003,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19459,1435.710,-1810.679,2641.011,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1436.111,-1814.379,2641.011,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1440.482,-1814.949,2641.011,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1440.482,-1814.932,2647.355,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1436.111,-1814.392,2647.355,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19459,1435.640,-1810.678,2647.356,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1806.296,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1808.217,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1438.426,-1809.047,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1453.495,-1801.275,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1452.705,-1801.275,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(1582,1454.275,-1801.275,2645.762,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10778, "airportcpark_sfse", "ws_fluorescent2", 0);
- tmpobjid = CreateDynamicObject(18981,1445.446,-1806.101,2646.173,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 19297, "matlights", "invisible", -1);
- tmpobjid = CreateDynamicObject(19459,1442.193,-1793.712,2640.670,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18031, "cj_exp", "mp_cloth_wall", -1);
- tmpobjid = CreateDynamicObject(19445,1442.476,-1811.321,3235.591,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1442.476,-1801.730,3235.591,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1447.337,-1797.721,3235.633,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1456.888,-1797.721,3235.633,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1455.467,-1801.720,3235.684,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1455.467,-1811.241,3235.684,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1453.409,-1815.553,3235.583,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(19445,1444.218,-1815.553,3235.583,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- tmpobjid = CreateDynamicObject(14387,1444.880,-1803.303,3233.641,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", 0);
- tmpobjid = CreateDynamicObject(1722,1443.678,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(14387,1449.591,-1803.303,3233.641,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", 0);
- tmpobjid = CreateDynamicObject(14387,1454.313,-1803.303,3233.641,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", 0);
- tmpobjid = CreateDynamicObject(18981,1445.446,-1789.438,3234.152,0.000,90.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1447.337,-1797.771,3233.501,90.000,180.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1450.770,-1797.771,3233.501,90.000,180.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1452.580,-1796.120,3233.501,90.000,180.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1445.548,-1796.120,3233.501,90.000,180.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1450.921,-1793.049,3238.394,360.000,450.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1447.209,-1793.049,3238.394,360.000,450.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1449.160,-1793.079,3238.394,360.000,450.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1447.219,-1793.079,3234.731,360.000,450.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1450.931,-1793.079,3234.731,360.000,450.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(19445,1449.042,-1793.069,3234.731,360.000,450.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14479, "skuzzy_motelmain", "mp_CJ_Laminate1", -1);
- tmpobjid = CreateDynamicObject(1722,1444.289,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1454.192,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1453.571,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1452.941,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1444.898,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1446.239,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1446.849,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1447.450,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1451.702,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1451.112,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1450.521,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1449.301,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1448.701,-1807.007,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19445,1455.407,-1811.241,3241.319,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1455.387,-1801.621,3241.326,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1442.515,-1801.611,3241.308,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1442.515,-1811.240,3241.308,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1447.385,-1815.491,3241.318,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1457.005,-1815.491,3241.317,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1451.676,-1797.810,3241.319,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1442.045,-1797.800,3241.319,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", -1);
- tmpobjid = CreateDynamicObject(19445,1442.495,-1797.308,3233.182,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1455.437,-1797.308,3233.182,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1455.457,-1805.238,3230.851,32.699,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1442.496,-1805.238,3230.851,32.699,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1447.195,-1797.748,3233.182,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1455.187,-1797.748,3233.182,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1442.485,-1807.627,3232.562,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1442.485,-1817.248,3232.562,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1447.344,-1815.537,3232.562,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1456.974,-1815.537,3232.562,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1455.453,-1810.717,3232.562,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(19445,1455.453,-1801.147,3232.562,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10101, "2notherbuildsfe", "ferry_build14", -1);
- tmpobjid = CreateDynamicObject(1722,1444.898,-1809.328,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1444.297,-1809.328,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1443.687,-1809.328,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1446.239,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1446.839,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1447.430,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1448.701,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1449.301,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1450.502,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1451.092,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1451.692,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1454.203,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1453.603,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(1722,1453.002,-1809.359,3233.981,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2664,1450.368,-1815.462,3235.132,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(2664,1448.917,-1815.462,3235.132,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", -1);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 2, 19297, "matlights", "invisible", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObject(19445,1447.248,-1815.522,3239.244,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1456.859,-1815.522,3239.244,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1442.497,-1810.812,3239.244,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1455.437,-1810.812,3239.244,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1455.437,-1801.212,3239.244,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1442.496,-1801.212,3239.244,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1447.316,-1797.753,3239.244,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19445,1456.907,-1797.753,3239.244,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "grn_window2_16", -1);
- tmpobjid = CreateDynamicObject(19306,1453.555,-1797.817,3236.073,0.000,0.000,-85.199,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObject(19306,1453.816,-1797.815,3236.233,0.000,0.000,-85.199,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObject(19306,1454.077,-1797.823,3236.013,0.000,0.000,-85.199,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObject(19306,1454.079,-1797.843,3235.554,0.000,-4.599,-85.199,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19306,1453.828,-1797.851,3235.694,0.000,-5.699,-85.199,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(19306,1453.554,-1797.815,3235.688,0.000,-2.999,-85.199,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 19297, "matlights", "invisible", 0);
- tmpobjid = CreateDynamicObject(2439,1448.950,-1799.982,3234.627,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2440,1449.927,-1799.980,3234.622,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2440,1447.946,-1799.950,3234.622,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 10101, "2notherbuildsfe", "ferry_build14", 0);
- tmpobjid = CreateDynamicObject(2614,1445.085,-1815.411,3236.252,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(2614,1452.817,-1815.411,3236.252,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14650, "ab_trukstpc", "mp_CJ_WOOD5", 0);
- tmpobjid = CreateDynamicObject(19445,1450.667,-1817.142,3240.397,180.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1441.157,-1817.142,3240.397,180.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1440.876,-1810.701,3240.397,180.000,90.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1440.876,-1801.111,3240.397,180.000,90.000,180.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1447.307,-1796.170,3240.397,180.000,90.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1456.847,-1796.170,3240.397,180.000,90.000,270.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1457.027,-1802.469,3240.397,180.000,90.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(19445,1457.027,-1812.069,3240.397,180.000,90.000,360.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", -1);
- tmpobjid = CreateDynamicObject(18075,1448.517,-1794.753,3240.826,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- tmpobjid = CreateDynamicObject(18075,1449.347,-1794.753,3240.826,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 10765, "airportgnd_sfse", "white", 0);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- tmpobjid = CreateDynamicObject(14687,1468.848,-1807.696,2350.706,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(14687,1468.848,-1808.307,2350.706,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(14687,1468.848,-1811.078,2350.706,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(14687,1468.848,-1812.628,2350.706,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1806.328,2349.746,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1466.914,-1804.083,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19808,1467.607,-1805.409,2349.486,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1469.367,-1789.761,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1459.007,-1804.226,2348.685,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1465.723,-1796.425,2349.756,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1465.723,-1796.425,2351.987,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1467.485,-1796.445,2349.756,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1467.485,-1796.445,2351.967,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1466.954,-1796.445,2351.136,90.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1466.954,-1796.445,2352.057,90.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1468.924,-1796.425,2349.756,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1468.924,-1796.425,2351.957,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1471.366,-1796.445,2349.756,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1470.175,-1796.445,2351.677,90.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1470.175,-1796.445,2348.604,90.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1471.366,-1796.445,2351.978,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1470.175,-1796.445,2352.067,90.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1470.175,-1796.445,2349.055,90.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2986,1468.805,-1789.573,2351.037,0.000,90.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1450.713,-1796.220,2642.300,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1465.356,-1800.317,2349.756,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1465.356,-1800.317,2351.978,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19786,1465.436,-1808.111,2350.826,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1472.308,-1806.946,2348.685,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1472.699,-1809.461,2348.685,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(11711,1469.568,-1809.882,2351.386,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1806.328,2351.978,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1804.086,2351.087,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1805.077,2348.615,90.000,360.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1805.077,2352.238,270.000,360.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1802.416,2349.766,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1802.416,2351.998,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.988,-1801.225,2351.137,90.000,360.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1804.086,2348.855,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.988,-1805.137,2349.856,90.000,360.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1473.008,-1800.655,2349.776,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1473.008,-1800.655,2352.008,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1472.978,-1801.195,2352.238,270.000,360.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1479.848,-1801.627,2350.166,90.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1479.859,-1801.647,2351.648,270.000,540.000,1350.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2165,1474.084,-1807.226,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2165,1476.553,-1807.236,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1474.724,-1808.393,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1477.234,-1808.393,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19325,1482.070,-1801.633,2349.706,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1480.025,-1803.852,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1480.025,-1798.750,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1479.484,-1799.470,2348.685,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1475.948,-1797.096,2348.685,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1474.225,-1798.750,2348.685,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(16779,1478.825,-1804.403,2352.648,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(16779,1474.846,-1804.234,2352.648,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1473.638,-1804.604,2348.685,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2986,1465.854,-1800.246,2350.917,0.000,90.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1466.352,-1791.549,2348.685,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(14532,1478.416,-1801.171,2349.666,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1472.308,-1797.553,2348.685,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1464.116,-1800.296,2348.625,90.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1462.965,-1800.286,2349.756,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1462.965,-1800.286,2351.957,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1464.116,-1800.296,2352.037,90.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1464.116,-1800.296,2349.285,90.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19325,1464.539,-1800.342,2348.885,90.000,180.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19807,1474.212,-1796.834,2349.536,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19611,1463.726,-1806.161,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19611,1462.975,-1806.051,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19611,1464.496,-1805.971,2348.685,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1458.678,-1801.621,2348.685,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1460.142,-1805.511,2348.685,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1461.588,-1797.153,2348.685,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.205,-1800.276,2349.756,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.205,-1800.276,2351.987,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1797.075,2349.756,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1797.075,2351.987,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1797.625,2352.048,90.000,360.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1799.836,2352.048,90.000,360.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.205,-1798.835,2351.076,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.205,-1798.835,2348.846,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1799.836,2348.625,90.000,360.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1799.836,2349.836,90.000,360.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1797.625,2351.137,90.000,360.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1897,1458.235,-1799.856,2351.137,90.000,360.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2986,1480.844,-1798.295,2350.917,0.000,90.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2528,1451.483,-1787.648,2348.705,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2518,1455.419,-1794.739,2348.935,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2518,1455.419,-1793.768,2348.935,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2518,1455.419,-1791.367,2348.935,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2518,1455.419,-1792.478,2348.935,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(16779,1464.953,-1791.343,2352.648,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1436.720,-1799.850,2642.300,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1436.543,-1810.416,2642.300,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1456.143,-1797.930,2642.300,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1456.204,-1794.200,2642.300,0.000,0.000,990.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2855,1456.209,-1797.248,2642.800,0.000,0.000,-79.599,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2855,1456.153,-1800.879,2642.800,0.000,0.000,-79.599,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1671,1447.781,-1808.973,2642.770,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1671,1447.781,-1811.254,2642.770,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1671,1447.781,-1809.753,2642.770,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1671,1442.770,-1809.753,2642.770,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1671,1442.791,-1808.952,2642.770,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1671,1442.760,-1811.092,2642.770,0.000,0.000,450.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19999,1445.273,-1814.008,2642.300,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19158,1452.799,-1805.238,3244.301,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1444.093,-1817.560,2644.662,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1443.843,-1817.560,2644.662,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1443.593,-1817.560,2644.662,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1449.802,-1805.988,2644.662,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1449.802,-1805.708,2644.662,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1449.802,-1805.427,2644.662,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19158,1450.227,-1805.238,3244.301,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19804,1442.728,-1817.727,2644.171,270.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19804,1442.388,-1817.727,2644.171,270.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19804,1442.548,-1817.727,2644.332,270.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1443.263,-1817.477,2642.300,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2855,1443.832,-1804.064,2642.790,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2264,1441.132,-1813.690,2643.731,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2264,1441.132,-1814.581,2643.731,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1440.842,-1812.967,2642.300,0.000,0.000,810.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19158,1452.799,-1808.059,3244.301,180.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1439.812,-1807.682,2642.300,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1444.511,-1794.369,2642.300,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1209,1443.552,-1794.044,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2855,1439.762,-1806.974,2642.790,0.000,0.000,-87.499,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1429.775,-1801.025,2642.300,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1429.775,-1802.265,2642.300,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1433.107,-1802.265,2642.300,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1433.107,-1801.125,2642.300,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1431.366,-1798.125,2642.300,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2225,1426.464,-1806.444,2642.310,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2233,1426.290,-1805.649,2642.310,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2233,1426.290,-1806.790,2642.310,0.000,0.000,90.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1430.893,-1805.580,2642.300,0.000,0.000,630.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1429.882,-1808.841,2642.300,0.000,0.000,900.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1726,1427.872,-1804.230,2642.300,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1670,1428.978,-1806.613,2642.830,0.000,0.000,-90.500,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2332,1429.307,-1796.706,2644.050,0.000,0.000,360.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2174,1435.449,-1810.015,2642.300,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1727,1432.264,-1809.970,2642.310,0.000,0.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1714,1434.806,-1808.705,2642.300,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2614,1434.169,-1797.040,2644.432,0.000,0.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1435.692,-1810.354,2644.662,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1435.392,-1810.354,2644.662,0.000,0.000,270.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1426.577,-1799.661,2644.662,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1426.577,-1799.370,2644.662,0.000,0.000,540.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1435.760,-1804.332,2644.662,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1731,1435.760,-1804.021,2644.662,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(1808,1435.492,-1797.254,2642.300,0.000,0.000,720.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2986,1442.751,-1796.143,2644.471,0.000,90.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(2986,1450.240,-1794.373,2644.471,0.000,90.000,180.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19804,1453.834,-1797.806,3236.243,90.000,360.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19804,1453.564,-1797.806,3236.243,90.000,360.000,0.000,-1,-1,-1,350.000,350.000);
- tmpobjid = CreateDynamicObject(19804,1454.084,-1797.806,3236.243,90.000,360.000,0.000,-1,-1,-1,350.000,350.000);
- //SAN Objects
- CreateDynamicObject(10244, 744.19409, -1350.02576, 15.31470, 0.00000, 0.00000, -181.00000);
- CreateDynamicObject(10244, 740.17920, -1357.18408, 21.38270, 0.00000, 0.00000, -91.00000);
- CreateDynamicObject(976, 771.02490, -1330.16089, 12.69570, 0.00000, 0.00000, -1.00000);
- CreateDynamicObject(976, 771.02490, -1330.16089, 12.69570, 0.00000, 0.00000, -1.00000);
- CreateDynamicObject(976, 767.61493, -1384.76086, 12.87870, 0.00000, 0.00000, -1.00000);
- CreateDynamicObject(1569, 726.54810, -1381.13098, 24.62280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1569, 726.54810, -1381.13098, 24.62280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1569, 725.12012, -1381.13098, 24.62280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(10832, 769.83411, -1335.27698, 14.30460, 0.00000, 0.00000, -181.00000);
- //Sheriff Department Fixes and improvements
- CreateDynamicObject(10244, 609.02448, -553.34839, 19.08450, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(8615, 615.87457, -559.34192, 24.16970, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19859, 620.53333, -568.64429, 26.36920, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 320.99951, 315.44009, 1000.72900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 321.01126, 312.15240, 1000.72900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1569, 321.45981, 301.98489, 998.13922, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 321.01126, 312.15240, 1000.72900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 321.01129, 313.75040, 1000.72900, 0.00000, 0.00000, -59.00000);
- CreateDynamicObject(2930, 320.99951, 315.44009, 1000.72900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 320.99951, 317.00409, 1000.72900, 0.00000, 0.00000, 32.00000);
- CreateDynamicObject(2930, 320.99951, 315.44009, 1000.72900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2930, 320.99951, 318.70410, 1000.72900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2933, 320.98080, 314.82141, 1002.41541, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1569, 321.39182, 310.14490, 998.13922, 0.00000, 0.00000, -74.00000);
- CreateDynamicObject(1569, 321.45981, 318.23691, 998.13922, 0.00000, 0.00000, 0.00000);
- //News HQ
- CreateDynamicObject(1569, 263.54480, 1775.20313, 700.06250, 0.00000, -1.00000, -87.00000);
- CreateDynamicObject(19376, 247.74, 1783.13, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 258.24, 1783.14, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 247.74, 1773.55, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 258.23, 1773.55, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19450, 250.44, 1784.44, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 245.63, 1779.94, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 253.91, 1780.12, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 253.03, 1775.84, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19404, 252.33, 1778.41, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 249.65, 1777.30, 701.65, 0.00, 0.00, -45.00);
- CreateDynamicObject(19388, 246.66, 1775.84, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19466, 252.38, 1778.39, 702.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(1502, 249.13, 1776.76, 699.95, 0.00, 0.00, 45.00);
- CreateDynamicObject(2165, 251.81, 1777.85, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(19358, 248.54, 1774.62, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(1714, 252.63, 1777.00, 700.09, 0.00, 0.00, 230.00);
- CreateDynamicObject(2007, 253.70, 1776.70, 700.01, 0.00, 0.00, -90.00);
- CreateDynamicObject(1961, 250.82, 1775.97, 701.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(1962, 251.55, 1775.97, 701.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(1960, 252.27, 1775.97, 701.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(1569, 247.05, 1784.39, 700.02, 0.00, 0.00, 0.00);
- CreateDynamicObject(1569, 250.03, 1784.39, 700.02, 0.00, 0.00, 180.00);
- CreateDynamicObject(1703, 251.10, 1783.84, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1703, 246.23, 1779.16, 700.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(2315, 247.52, 1779.46, 700.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(2315, 251.39, 1782.50, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2250, 251.42, 1782.51, 701.03, 0.00, 0.00, 0.00);
- CreateDynamicObject(2250, 247.52, 1780.31, 701.03, 0.00, 0.00, 90.00);
- CreateDynamicObject(2852, 252.61, 1782.49, 700.58, 0.00, 0.00, 90.00);
- CreateDynamicObject(2894, 247.42, 1779.67, 700.58, 0.00, 0.00, 39.00);
- CreateDynamicObject(2011, 246.21, 1783.97, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2011, 253.24, 1779.07, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 245.88, 1775.81, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 245.63, 1770.30, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19358, 250.13, 1773.12, 701.65, 0.00, 0.00, 90.40);
- CreateDynamicObject(19388, 252.80, 1774.23, 701.65, 0.00, 0.00, -45.00);
- CreateDynamicObject(1502, 252.29, 1773.69, 699.95, 0.00, 0.00, 45.00);
- CreateDynamicObject(1265, 250.63, 1775.49, 700.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(1265, 250.35, 1774.87, 700.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(1778, 253.53, 1775.81, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2712, 253.57, 1775.32, 700.68, 0.00, 0.00, 0.00);
- CreateDynamicObject(1221, 249.31, 1773.68, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1221, 250.27, 1773.94, 700.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(1221, 249.56, 1775.12, 700.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(1265, 249.18, 1774.36, 700.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 249.18, 1768.98, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(1705, 246.30, 1770.17, 700.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(1705, 247.85, 1769.63, 700.09, 0.00, 0.00, 180.00);
- CreateDynamicObject(1705, 251.83, 1769.63, 700.09, 0.00, 0.00, 180.00);
- CreateDynamicObject(2315, 248.60, 1769.55, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2855, 248.78, 1769.55, 700.58, 0.00, 0.00, 0.00);
- CreateDynamicObject(2251, 249.67, 1769.36, 701.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 249.91, 1769.75, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 250.08, 1769.65, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(2817, 248.02, 1783.18, 700.08, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 254.81, 1780.65, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(14393, 255.23, 1759.95, 702.32, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 261.73, 1768.98, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 249.19, 1768.83, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 255.31, 1768.98, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 255.31, 1768.83, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 261.73, 1768.83, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(14391, 256.13, 1760.86, 701.05, 0.00, 0.00, 90.00);
- CreateDynamicObject(1705, 257.11, 1767.64, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1705, 258.68, 1767.02, 700.09, 0.00, 0.00, -90.00);
- CreateDynamicObject(2332, 259.63, 1764.36, 700.38, 0.00, 0.00, -90.00);
- CreateDynamicObject(638, 254.72, 1765.20, 701.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(638, 258.07, 1765.20, 701.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(2894, 256.40, 1765.18, 701.10, 0.00, 0.00, 80.00);
- CreateDynamicObject(1714, 257.11, 1762.81, 700.10, 0.00, 0.00, -45.00);
- CreateDynamicObject(1714, 254.18, 1762.77, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 251.40, 1759.68, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(2395, 250.95, 1759.82, 700.10, 0.00, 0.00, 180.00);
- CreateDynamicObject(2395, 252.48, 1759.82, 702.46, 0.00, 0.00, 180.00);
- CreateDynamicObject(2395, 249.79, 1759.59, 702.46, 0.00, 0.00, 0.00);
- CreateDynamicObject(2395, 248.19, 1759.58, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(1704, 254.31, 1753.90, 700.09, 0.00, 0.00, 135.00);
- CreateDynamicObject(1704, 256.22, 1754.49, 700.09, 0.00, 0.00, -135.00);
- CreateDynamicObject(1815, 254.42, 1754.73, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2247, 254.89, 1755.32, 700.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(2010, 253.33, 1754.95, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(2010, 256.59, 1754.91, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(19466, 253.95, 1759.95, 701.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19466, 256.17, 1759.95, 701.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19466, 258.40, 1759.95, 701.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19376, 259.00, 1763.90, 699.99, 0.00, 90.00, 0.00);
- CreateDynamicObject(1502, 254.53, 1768.96, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 262.61, 1772.18, 701.65, 0.00, 0.00, -45.00);
- CreateDynamicObject(19450, 263.67, 1770.76, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 257.75, 1783.82, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19388, 257.75, 1777.43, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19388, 259.37, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 265.76, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 268.40, 1775.63, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19358, 256.17, 1781.31, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(2606, 256.21, 1781.15, 702.56, 13.50, 0.00, 0.00);
- CreateDynamicObject(2165, 255.78, 1780.60, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1806, 256.45, 1779.59, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2078, 255.16, 1777.82, 700.11, 0.00, 0.00, 90.00);
- CreateDynamicObject(2462, 257.00, 1776.04, 700.26, 0.00, 0.00, 180.00);
- CreateDynamicObject(19418, 257.25, 1776.20, 701.06, 90.00, 90.00, 90.00);
- CreateDynamicObject(19418, 256.93, 1776.10, 701.06, 90.00, 90.00, 324233.00);
- CreateDynamicObject(19418, 257.04, 1776.30, 701.06, 90.00, 90.00, 342.00);
- CreateDynamicObject(334, 257.00, 1776.08, 701.41, 90.00, 0.00, 90.00);
- CreateDynamicObject(2037, 257.28, 1776.14, 701.81, 0.00, 0.00, 180.00);
- CreateDynamicObject(348, 256.86, 1776.16, 701.77, 90.00, 0.00, 45.00);
- CreateDynamicObject(19376, 268.68, 1783.12, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 268.71, 1773.53, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19450, 262.09, 1787.45, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 269.72, 1784.41, 701.65, 0.00, 0.00, 45.00);
- CreateDynamicObject(19450, 269.61, 1780.36, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 272.15, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19358, 262.57, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 262.68, 1786.88, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(1702, 261.93, 1772.37, 700.08, 0.00, 0.00, 225.00);
- CreateDynamicObject(2315, 259.75, 1772.14, 700.09, 0.00, 0.00, 45.00);
- CreateDynamicObject(2315, 266.10, 1777.95, 700.09, 0.00, 0.00, 45.00);
- CreateDynamicObject(1702, 268.89, 1779.58, 700.08, 0.00, 0.00, 270.00);
- CreateDynamicObject(1702, 267.63, 1776.33, 700.08, 0.00, 0.00, 180.00);
- CreateDynamicObject(2251, 260.10, 1772.71, 701.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(2251, 266.94, 1779.01, 701.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 260.76, 1772.73, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 266.26, 1777.77, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 266.34, 1777.86, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 266.20, 1777.88, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 258.59, 1782.06, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 264.98, 1782.06, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(2207, 265.49, 1785.14, 700.09, 0.00, 0.00, -45.00);
- CreateDynamicObject(1714, 267.29, 1785.67, 700.10, 0.00, 0.00, -45.00);
- CreateDynamicObject(330, 266.98, 1784.24, 700.86, 90.00, 0.00, 90.00);
- CreateDynamicObject(2894, 265.87, 1785.33, 700.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(2608, 263.00, 1785.07, 701.21, 0.00, 0.00, 90.00);
- CreateDynamicObject(1962, 267.85, 1786.13, 701.86, 0.00, 0.00, -45.00);
- CreateDynamicObject(2185, 258.67, 1785.35, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1714, 260.03, 1786.60, 700.10, 0.00, 0.00, -45.00);
- CreateDynamicObject(1704, 260.02, 1783.92, 700.09, 0.00, 0.00, 180.00);
- CreateDynamicObject(2078, 262.38, 1784.88, 700.11, 0.00, 0.00, -90.00);
- CreateDynamicObject(2007, 257.95, 1786.74, 700.01, 0.00, 0.00, 90.00);
- CreateDynamicObject(1569, 257.81, 1776.73, 700.02, 0.00, 0.00, 45.00);
- CreateDynamicObject(2886, 257.82, 1778.48, 701.44, 0.00, 0.00, 90.00);
- CreateDynamicObject(2886, 257.82, 1778.51, 701.44, 0.00, 0.00, -90.00);
- CreateDynamicObject(2886, 257.71, 1778.48, 701.44, 0.00, 0.00, -90.00);
- CreateDynamicObject(19378, 247.74, 1783.13, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 247.74, 1773.55, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 258.23, 1773.55, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 268.68, 1783.12, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 268.71, 1773.53, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 258.24, 1783.14, 703.43, 0.00, 90.00, 0.00);
- // House objects
- CreateObject(14707, 911.334106, -484.425170, 847.481384, 0.000000, 0.000000, 90.000000);
- CreateObject(14711, 1312.136840, -175.075073, 1088.675659, 0.000000, 0.000000, 0.000000);
- CreateObject(1506, 1321.403198, -166.876174, 1087.131591, 0.000000, 0.000000, 270.000000);
- CreateObject(14700, 1437.169189, -1832.845703, 1314.057250, 0.000000, 0.000000, 270.000000);
- CreateObject(1506, 1433.098266, -1833.567993, 1312.596801, 0.000000, 0.000000, 90.000000);
- CreateObject(14748, 1365.361694, -2141.651611, 1051.588623, 0.000000, 0.000000, 270.000000);
- CreateObject(1506, 1364.546875, -2146.731689, 1049.618652, 0.000000, 0.000000, 180.000000);
- CreateObject(14718, 2005.202270, -1701.831054, 1164.692260, 0.000000, 0.000000, 90.000000);
- CreateObject(1506, 2010.115234, -1698.054321, 1164.701660, 0.000000, 0.000000, -90.000000);
- CreateObject(14754, 1284.700317, -1132.096679, 982.990844, 0.000000, 0.000000, 0.000000);
- CreateObject(1506, 1282.763061, -1141.286621, 979.051940, 0.000000, 0.000000, 180.000000);
- CreateObject(14713, 1183.433837, -422.981140, 1235.509155, 0.000000, 0.000000, 180.000000);
- CreateObject(1506, 1177.512084, -418.100250, 1233.734375, 0.000000, 0.000000, 0.000000);
- CreateObject(14750, 1752.987548, -1814.000000, 1005.840515, 0.000000, 0.000000, 0.000000);
- CreateObject(1506, 1750.443969, -1823.364013, 999.340454, 0.000000, 0.000000, 180.000000);
- CreateObject(14712, 2190.703125, -1127.359619, 1129.335815, 0.000000, 0.000000, 270.000000);
- CreateObject(1506, 2183.202392, -1131.089599, 1127.785400, 0.000000, 0.000000, 90.000000);
- CreateObject(14701, 2654.076171, -1032.999389, 930.996948, 0.000000, 0.000000, 180.000000);
- CreateObject(1506, 2653.683593, -1022.535644, 928.926269, 0.000000, 0.000000, 0.000000);
- CreateObject(14710, 836.976257, -1017.067077, 800.481994, 0.000000, 0.000000, 180.000000);
- CreateObject(1506, 827.483337, -1014.606506, 798.996154, 0.000000, 0.000000, 90.000000);
- CreateObject(14706, 1834.514404, -1290.143066, 834.363037, 0.000000, 0.000000, 180.000000);
- CreateObject(19359, 2262.502929, -1143.025146, 1051.293334, 0.000000, 0.000000, 90.000000);
- // Prison objects
- CreateDynamicObject(971, -1143.599365, 864.143859, 5.630311, 0.000000, 0.000000, 36.000000);
- CreateDynamicObject(971, -1137.191284, 868.799377, 5.630311, 0.000000, 0.000000, 36.000000);
- CreateDynamicObject(971, -1127.083251, 841.410888, 5.630311, 0.000000, 0.000000, -144.000000);
- CreateDynamicObject(971, -1120.464721, 846.219299, 5.630311, 0.000000, 0.000000, -144.000000);
- // Small garage
- new objectid = CreateObject(19377, 1517.224853, -1643.668823, 1123.418579, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19451, 1512.922851, -1643.237792, 1125.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19451, 1512.932983, -1652.857666, 1125.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19377, 1517.224853, -1654.129028, 1123.418579, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1517.224853, -1643.668823, 1127.009277, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19451, 1517.271484, -1638.827636, 1125.234863, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- CreateObject(9093, 1516.615600, -1638.889160, 1125.194335, 0.000000, 0.000000, 90.000000);
- CreateObject(1498, 1520.439941, -1638.885986, 1123.454101, 0.000000, 0.000000, 0.000000);
- objectid = CreateObject(19451, 1522.032226, -1643.237792, 1125.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19451, 1522.032958, -1652.857666, 1125.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19377, 1517.224853, -1654.149291, 1127.009277, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19451, 1517.161743, -1649.707275, 1125.234863, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- CreateObject(19815, 1521.958862, -1644.184448, 1125.385009, 0.000000, 0.000000, 270.000000);
- CreateObject(19929, 1521.474243, -1642.943847, 1123.494262, 0.000000, 0.000000, 0.000000);
- CreateObject(19929, 1521.474243, -1645.803222, 1123.494262, 0.000000, 0.000000, 0.000000);
- CreateObject(1328, 1521.372802, -1647.677978, 1123.984008, 0.000000, 0.000000, 270.000000);
- CreateObject(19899, 1518.888671, -1649.152709, 1123.504028, 0.000000, 0.000000, 90.000000);
- CreateObject(19921, 1521.317626, -1644.767700, 1124.524536, 0.000000, 0.000000, -78.023918);
- CreateObject(19903, 1517.034545, -1649.131347, 1123.533813, 0.000000, 0.000000, 90.000000);
- CreateObject(19917, 1521.330322, -1646.477294, 1124.424438, 0.000000, 0.000000, 174.000000);
- CreateObject(1348, 1515.315185, -1649.160888, 1124.144897, 0.000000, 0.000000, 180.000000);
- CreateObject(1098, 1521.330200, -1643.426879, 1124.914916, 0.000000, 0.000000, -17.151069);
- CreateObject(19627, 1521.519287, -1644.724609, 1124.624633, 0.000000, 0.000000, 272.669464);
- CreateObject(18634, 1521.386962, -1642.228393, 1124.434448, 0.000000, 90.000000, 155.093902);
- CreateObject(16779, 1517.025878, -1644.597290, 1127.035156, 0.000000, 0.000000, 180.631195);
- CreateObject(1738, 1513.752319, -1649.391357, 1124.094116, 0.000000, 0.000000, 180.000000);
- CreateObject(1428, 1521.027343, -1649.170898, 1125.004516, 0.000000, 0.000000, 180.000000);
- CreateObject(1098, 1513.130737, -1647.329101, 1125.744506, 0.000000, 0.000000, 0.000000);
- CreateObject(1098, 1513.130737, -1646.249023, 1125.744506, 0.000000, 0.000000, 0.000000);
- CreateObject(1098, 1513.130981, -1647.329101, 1124.714355, 0.000000, 0.000000, 0.000000);
- CreateObject(1098, 1513.130371, -1646.268554, 1124.714355, 0.000000, 0.000000, 0.000000);
- CreateObject(1185, 1513.152221, -1642.557250, 1125.574951, 0.000000, 0.000000, 90.000000);
- CreateObject(1010, 1513.028320, -1640.495727, 1124.564086, 0.000000, 90.000000, 0.000000);
- CreateObject(2063, 1513.311157, -1643.594726, 1124.384521, 0.000000, 0.000000, 90.000000);
- CreateObject(1193, 1513.027954, -1639.594482, 1125.194580, 0.000000, 0.000000, 91.062004);
- // Medium garage
- objectid = CreateObject(19377, 1517.224853, -1643.668823, 1373.418579, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19451, 1511.712158, -1643.237792, 1375.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19451, 1511.712280, -1652.857666, 1375.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19377, 1517.224853, -1654.129028, 1373.418579, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1517.224853, -1643.668823, 1377.009277, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19451, 1517.271484, -1638.827636, 1375.234863, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- CreateObject(9093, 1515.464721, -1638.889160, 1375.194335, 0.000000, 0.000000, 90.000000);
- CreateObject(1498, 1519.789550, -1638.885986, 1373.454101, 0.000000, 0.000000, 0.000000);
- objectid = CreateObject(19451, 1522.032226, -1643.237792, 1375.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19451, 1522.032958, -1652.857666, 1375.234863, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19377, 1517.224853, -1654.149291, 1377.009277, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19451, 1517.161743, -1651.258422, 1375.234863, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- CreateObject(19815, 1521.958862, -1644.184448, 1375.385009, 0.000000, 0.000000, 270.000000);
- CreateObject(19929, 1521.474243, -1642.943847, 1373.494262, 0.000000, 0.000000, 0.000000);
- CreateObject(19929, 1521.474243, -1645.803222, 1373.494262, 0.000000, 0.000000, 0.000000);
- CreateObject(1328, 1521.372802, -1647.677978, 1373.984008, 0.000000, 0.000000, 270.000000);
- CreateObject(19899, 1518.668579, -1650.662597, 1373.504028, 0.000000, 0.000000, 90.000000);
- CreateObject(19921, 1521.317626, -1644.767700, 1374.524536, 0.000000, 0.000000, -78.023918);
- CreateObject(19903, 1516.784301, -1650.541381, 1373.533813, 0.000000, 0.000000, 90.000000);
- CreateObject(19917, 1521.330322, -1646.477294, 1374.424438, 0.000000, 0.000000, 174.000000);
- CreateObject(1348, 1514.635620, -1650.671386, 1374.144897, 0.000000, 0.000000, 180.000000);
- CreateObject(1098, 1521.330200, -1643.426879, 1374.914916, 0.000000, 0.000000, -17.151069);
- CreateObject(19627, 1521.519287, -1644.724609, 1374.624633, 0.000000, 0.000000, 272.669464);
- CreateObject(18634, 1521.386962, -1642.228393, 1374.434448, 0.000000, 90.000000, 155.093902);
- CreateObject(16779, 1517.025878, -1644.597290, 1377.035156, 0.000000, 0.000000, 180.631195);
- CreateObject(1738, 1512.762207, -1651.041992, 1374.094116, 0.000000, 0.000000, 180.000000);
- CreateObject(1428, 1521.027343, -1650.722290, 1375.004516, 0.000000, 0.000000, 180.000000);
- CreateObject(1098, 1511.920654, -1648.459716, 1375.744506, 0.000000, 0.000000, 0.000000);
- CreateObject(1098, 1511.920654, -1647.409667, 1375.744506, 0.000000, 0.000000, 0.000000);
- CreateObject(1098, 1511.920654, -1648.459716, 1374.724487, 0.000000, 0.000000, 0.000000);
- CreateObject(1098, 1511.920654, -1647.409667, 1374.724487, 0.000000, 0.000000, 0.000000);
- CreateObject(1185, 1512.062988, -1643.247314, 1375.574951, 0.000000, 0.000000, 90.000000);
- CreateObject(1010, 1511.827880, -1640.815917, 1374.564086, 0.000000, 90.000000, 0.000000);
- CreateObject(2063, 1512.140991, -1644.314697, 1374.384521, 0.000000, 0.000000, 90.000000);
- CreateObject(1193, 1511.774658, -1639.957275, 1375.194580, 0.000000, 0.000000, 91.062004);
- objectid = CreateObject(19377, 1507.614990, -1643.668823, 1373.418579, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1507.614990, -1654.158447, 1373.418579, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1507.604125, -1643.668823, 1377.009277, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1507.604125, -1654.168457, 1377.009277, 0.000000, 90.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19451, 1507.531738, -1651.258422, 1375.234863, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- objectid = CreateObject(19451, 1507.661621, -1638.827636, 1375.234863, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 14798, "int_kbsgarage3", "ab_wall_flake", 0);
- // Large garage
- CreateObject(11389, 1665.187500, -2352.026367, 1537.641723, 0.000000, 0.000000, 0.000000);
- objectid = CreateObject(19377, 1668.767822, -2340.866943, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1658.277832, -2340.866943, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1668.767822, -2350.427001, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1668.767822, -2360.037597, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1668.767822, -2369.637939, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1658.277832, -2350.467041, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1658.277832, -2360.087646, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1658.277832, -2369.697265, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1661.437255, -2363.377929, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1671.937988, -2363.377929, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1671.937988, -2353.787353, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1671.937988, -2344.167480, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1671.937988, -2334.539306, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1661.437988, -2353.787353, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1661.527465, -2344.167480, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- objectid = CreateObject(19377, 1661.509521, -2334.539306, 1540.185913, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_peeling_ceiling1_BIG", 0);
- CreateObject(2885, 1674.234375, -2340.028320, 1541.174072, 0.000000, 0.000000, 270.000000);
- CreateObject(2885, 1674.234375, -2348.668212, 1541.174072, 0.000000, 0.000000, 270.000000);
- objectid = CreateObject(19377, 1679.248168, -2340.866943, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- objectid = CreateObject(19377, 1679.248168, -2350.476562, 1534.396972, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 11389, "hubint1_sfse", "ws_sub_pen_conc2", 0);
- CreateObject(2885, 1660.494262, -2368.226806, 1541.143798, 0.000000, 0.000000, 180.000000);
- CreateObject(11390, 1665.046875, -2351.977050, 1538.903198, 0.000000, 0.000000, 0.000000);
- CreateObject(11391, 1657.228515, -2360.088378, 1535.773193, 0.000000, 0.000000, 0.000000);
- CreateObject(11393, 1669.819946, -2357.343994, 1536.022583, 0.000000, 0.000000, 0.000000);
- CreateObject(19817, 1662.070068, -2340.035888, 1533.891967, 0.000000, 0.000000, 90.000000);
- CreateObject(19872, 1659.912719, -2348.421630, 1533.882324, 0.000000, 0.000000, 90.000000);
- CreateObject(19903, 1658.435546, -2345.552978, 1534.542480, 0.000000, 0.000000, -47.000000);
- CreateObject(19377, 1656.129028, -2362.886718, 1539.213256, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1656.129028, -2352.425048, 1539.213256, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1656.129028, -2341.955322, 1539.213256, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1656.129028, -2331.505126, 1539.213256, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1661.448364, -2335.926269, 1539.213256, 90.000000, 0.000000, 90.000000);
- CreateObject(19377, 1671.927612, -2335.926269, 1539.213256, 90.000000, 0.000000, 90.000000);
- CreateObject(19377, 1671.157470, -2368.107421, 1539.213256, 90.000000, 0.000000, 90.000000);
- CreateObject(19377, 1674.139404, -2363.225585, 1539.213256, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1674.149414, -2359.344726, 1539.213256, 90.000000, 0.000000, 0.000000);
- CreateObject(19437, 1666.590942, -2361.146240, 1535.482910, 0.000000, 0.000000, 0.000000);
- CreateObject(19437, 1666.300659, -2361.146240, 1535.482910, 0.000000, 0.000000, 0.000000);
- CreateObject(19437, 1666.350463, -2363.697021, 1534.622070, 90.000000, 0.000000, 0.000000);
- CreateObject(19437, 1666.350463, -2367.177734, 1534.622070, 90.000000, 0.000000, 0.000000);
- CreateObject(19437, 1667.490478, -2367.398193, 1535.482910, 0.000000, 0.000000, 90.000000);
- CreateObject(19437, 1669.050048, -2367.398193, 1535.482910, 0.000000, 0.000000, 90.000000);
- CreateObject(19437, 1670.640380, -2367.398193, 1535.482910, 0.000000, 0.000000, 90.000000);
- CreateObject(19437, 1672.190063, -2367.398193, 1535.482910, 0.000000, 0.000000, 90.000000);
- CreateObject(19437, 1674.090454, -2367.398193, 1535.482910, 0.000000, 0.000000, 90.000000);
- CreateObject(19377, 1674.367797, -2348.886474, 1539.123413, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1674.367797, -2338.387207, 1539.123413, 90.000000, 0.000000, 0.000000);
- CreateObject(19377, 1660.698242, -2368.378906, 1539.123413, 90.000000, 0.000000, 90.000000);
- CreateObject(19377, 1660.257812, -2368.418945, 1539.123413, 90.000000, 0.000000, 90.000000);
- objectid = CreateObject(19369, 1666.348266, -2366.564208, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1666.348266, -2363.353759, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1666.348266, -2362.022460, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1667.818969, -2357.771972, 1537.142822, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1670.998901, -2357.771972, 1537.142822, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1673.869873, -2357.771972, 1537.142822, 0.000000, 0.000000, 90.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1673.898559, -2359.502197, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1673.878540, -2362.103515, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1673.878540, -2365.273437, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19369, 1673.878540, -2368.443115, 1537.142822, 0.000000, 0.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(19377, 1671.468505, -2363.267089, 1537.988037, 0.000000, 90.000000, 0.000000);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- objectid = CreateObject(9131, 1666.443969, -2358.310058, 1535.482910, 0.000000, 0.000000, 270.520568);
- SetObjectMaterial(objectid, 0, 19389, "all_walls", "concretenewb256", 16711680);
- // Hospital map (credits: CoachCarter)
- objectid = CreateObject(14595, -30.670, 153.639, 1002.010, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 2, 14665, "genintint711_1", "mp_gun_mat", 0);
- SetObjectMaterial(objectid, 3, 4828, "airport3_las", "gnhotelwall02_128", 0);
- SetObjectMaterial(objectid, 5, 4828, "airport3_las", "gnhotelwall02_128", 0);
- SetObjectMaterial(objectid, 6, 14563, "triad_main", "sign_maintenance", 0);
- SetObjectMaterial(objectid, 7, 14577, "casinovault01", "ab_mottleSteps", 0);
- SetObjectMaterial(objectid, 8, 18031, "cj_exp", "mp_cloth_wall", 0);
- SetObjectMaterial(objectid, 9, 8488, "flamingo1", "flmngo06_128", 0);
- SetObjectMaterial(objectid, 10, 4828, "airport3_las", "gnhotelwall02_128", 0);
- SetObjectMaterial(objectid, 11, 9524, "blokmodb", "lombard_build5_3", 0);
- SetObjectMaterial(objectid, 12, 14488, "dogsgym", "AH_stolewindow", 0);
- SetObjectMaterial(objectid, 13, 14674, "civic02cj", "hotcarp01_LA", 0);
- SetObjectMaterial(objectid, 14, 14577, "casinovault01", "ab_mottleSteps", 0);
- SetObjectMaterial(objectid, 15, 14581, "ab_mafiasuitea", "barbersmir1", 0);
- objectid = CreateObject(14593, -13.630, 148.850, 1000.380, 0.000, 0.000, -90.000);
- SetObjectMaterial(objectid, 0, 8396, "sphinx01", "luxorceiling02_128", 0);
- SetObjectMaterial(objectid, 1, 9903, "pier69", "rooftop_gz4", 0);
- SetObjectMaterial(objectid, 2, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- SetObjectMaterial(objectid, 3, 8396, "sphinx01", "luxorceiling02_128", 0);
- SetObjectMaterial(objectid, 4, 4568, "skyscrap2_lan2", "sl_marblewall2", 0);
- objectid = CreateObject(11455, -21.370, 155.339, 1000.809, 0.000, 0.000, 90.000);
- SetObjectMaterial(objectid, 1, 3899, "hospital2", "ind_hospital1_128", 0);
- objectid = CreateObject(19325, -27.459, 160.660, 999.440, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "shelf_glas", 0);
- objectid = CreateObject(19325, -27.399, 152.100, 1001.650, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "shelf_glas", 0);
- objectid = CreateObject(19325, -27.399, 158.740, 1003.450, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "shelf_glas", 0);
- objectid = CreateObject(2146, -33.020, 138.779, 998.549, 0.000, 0.000, 15.119);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(19379, -27.379, 150.479, 994.049, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18029, "genintintsmallrest", "GB_restaursmll15", 0);
- objectid = CreateObject(1789, -36.560, 149.259, 998.609, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(19379, -27.579, 139.750, 1006.400, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 16640, "a51", "airvent_gz", 0);
- objectid = CreateObject(2146, -45.830, 142.130, 998.549, 0.000, 0.000, -89.580);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -45.840, 144.070, 998.549, 0.000, 0.000, -89.580);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -43.549, 147.619, 998.549, 0.000, 0.000, -89.580);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -39.540, 140.360, 998.549, 0.000, 0.000, -91.199);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(16444, -37.330, 143.440, 999.229, 0.000, 0.000, 264.119);
- SetObjectMaterial(objectid, 0, 14526, "sweetsmain", "gb_binbag01", 0);
- objectid = CreateObject(14532, -17.940, 150.619, 999.039, 0.000, 0.000, -90.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(14532, -17.909, 148.520, 999.039, 0.000, 0.000, -90.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(14532, -17.969, 146.490, 999.039, 0.000, 0.000, -90.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(14532, -17.989, 144.429, 999.039, 0.000, 0.000, -90.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(11455, -21.369, 151.246, 1000.807, 0.000, 0.000, 90.000);
- SetObjectMaterial(objectid, 1, 3899, "hospital2", "ind_hospital2_128", 0);
- objectid = CreateObject(11455, -28.379, 152.083, 997.857, 89.899, 0.000, 90.000);
- SetObjectMaterial(objectid, 1, 14525, "imy_motel2", "mp_motel_reception", 0);
- objectid = CreateObject(11455, -57.074, 158.723, 999.757, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 1, 14599, "paperchasebits", "sign_firstaid", 0);
- objectid = CreateObject(11455, -43.736, 139.632, 999.877, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 1, 2670, "proc_rub", "CJ_CERT_3", 0);
- objectid = CreateObject(14532, -7.050, 151.389, 999.039, 0.000, 0.000, -33.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(2146, -22.579, 144.259, 998.549, 0.000, 0.000, 87.599);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -3.650, 149.270, 998.549, 0.000, 0.000, 177.360);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -4.860, 148.559, 998.549, 0.000, 0.000, 188.759);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(14532, -13.859, 154.889, 999.039, 0.000, 0.000, -180.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(14532, -12.020, 154.889, 999.039, 0.000, 0.000, -180.000);
- SetObjectMaterial(objectid, 2, 14392, "dr_gsstudio", "monitors_128", 0);
- objectid = CreateObject(2207, -43.580, 172.429, 998.039, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "gun_floor1", 0);
- objectid = CreateObject(2208, -43.740, 173.589, 997.950, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "gun_floor1", 0);
- objectid = CreateObject(2207, -41.709, 174.880, 998.039, 0.000, 0.000, -180.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "gun_floor1", 0);
- objectid = CreateObject(2208, -42.060, 172.610, 997.929, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "gun_floor1", 0);
- objectid = CreateObject(2208, -42.090, 174.490, 997.929, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "gun_floor1", 0);
- objectid = CreateObject(2207, -38.360, 172.660, 998.010, 0.000, 0.000, -270.000);
- SetObjectMaterial(objectid, 0, 18065, "ab_sfammumain", "gun_floor1", 0);
- objectid = CreateObject(1789, -48.630, 153.649, 998.609, 0.000, 0.000, 89.279);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(1789, -60.130, 158.449, 998.609, 0.000, 0.000, 1.559);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -47.000, 149.350, 998.549, 0.000, 0.000, 88.260);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -61.330, 149.250, 998.549, 0.000, 0.000, 89.220);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(2146, -62.389, 158.250, 998.549, 0.000, 0.000, 89.220);
- SetObjectMaterial(objectid, 0, 14600, "paperchase_bits2", "ab_medbag", 0);
- objectid = CreateObject(3578, -39.950, 151.830, 997.280, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- objectid = CreateObject(3578, -45.259, 156.720, 997.280, 0.000, 0.000, 90.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- objectid = CreateObject(3578, -34.930, 151.820, 997.290, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- objectid = CreateObject(3578, -30.020, 146.910, 997.280, 0.000, 0.000, 90.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- objectid = CreateObject(3578, -24.639, 142.020, 997.280, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- objectid = CreateObject(3578, -15.140, 142.009, 997.280, 0.000, 0.000, 0.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- objectid = CreateObject(3578, -10.239, 147.410, 997.280, 0.000, 0.000, 90.000);
- SetObjectMaterial(objectid, 0, 14853, "gen_pol_vegas", "blue_carpet_256", 0);
- CreateObject(1523, -42.049, 148.570, 998.049, 0.000, 0.000, 0.000); //
- CreateObject(2611, -27.750, 146.080, 999.500, 0.000, 0.000, -89.940);
- CreateObject(2000, -22.069, 149.029, 998.059, 0.000, 0.000, -90.000);
- CreateObject(18074, -27.409, 150.410, 999.200, 0.000, 0.000, 0.000);
- CreateObject(18001, -27.000, 7680.000, 151.000, 0.000, 0.000, 0.000);
- CreateObject(2007, -22.069, 149.779, 998.049, 0.000, 0.000, -90.000);
- CreateObject(19325, -27.000, 2976.000, 158.000, 0.000, 0.000, 0.000);
- CreateObject(2373, -27.290, 150.039, 996.909, 0.000, 0.000, -90.000);
- CreateObject(2373, -27.280, 151.559, 996.909, 0.000, 0.000, -90.000);
- CreateObject(2373, -27.270, 153.080, 996.909, 0.000, 0.000, -90.000);
- CreateObject(2373, -27.290, 154.610, 996.909, 0.000, 0.000, -90.000);
- CreateObject(1999, -26.770, 149.470, 998.059, 0.000, 0.000, 90.000);
- CreateObject(1999, -26.780, 151.470, 998.059, 0.000, 0.000, 90.000);
- CreateObject(1999, -26.770, 153.449, 998.059, 0.000, 0.000, 90.000);
- CreateObject(2002, -22.999, 158.160, 998.059, 0.000, 0.000, 0.000);
- CreateObject(2894, -26.750, 151.500, 998.869, 0.000, 0.000, 99.180);
- CreateObject(2894, -26.670, 149.570, 998.869, 0.000, 0.000, 86.819);
- CreateObject(2001, -21.969, 150.589, 998.059, 0.000, 0.000, -41.159);
- CreateObject(1811, -25.920, 150.440, 998.650, 0.000, 0.000, 3.299);
- CreateObject(1811, -26.040, 152.380, 998.650, 0.000, 0.000, -1.500);
- CreateObject(1811, -26.049, 154.330, 998.650, 0.000, 0.000, -1.500);
- CreateObject(937, -38.889, 144.710, 998.530, 0.000, 0.000, 90.000);
- CreateObject(937, -38.880, 142.820, 998.530, 0.000, 0.000, 90.000);
- CreateObject(18074, -27.409, 150.410, 999.450, 0.000, 0.000, 0.000);
- CreateObject(1778, -37.310, 149.399, 998.280, 0.000, 0.000, 89.819);
- CreateObject(19379, -27.579, 139.750, 992.809, 0.000, 0.000, 0.000);
- CreateObject(2001, -27.989, 166.229, 998.059, 0.000, 0.000, -42.180);
- CreateObject(2002, -28.000, 8249.000, 137.000, 0.000, 0.000, 0.000);
- CreateObject(2002, -27.950, 137.199, 998.049, 0.000, 0.000, 180.000);
- CreateObject(1997, -17.430, 145.479, 998.039, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.200, 146.429, 998.869, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.180, 144.570, 998.869, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.180, 142.679, 998.869, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.220, 140.770, 998.869, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.180, 144.570, 999.929, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.200, 146.429, 999.909, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.180, 142.679, 999.929, 0.000, 0.000, 90.000);
- CreateObject(2004, -47.220, 140.770, 999.950, 0.000, 0.000, 90.000);
- CreateObject(2905, -45.409, 144.190, 999.140, 0.000, 90.000, -88.559);
- CreateObject(2907, -46.189, 144.110, 999.099, 0.000, 0.000, -90.000);
- CreateObject(2905, -45.430, 143.970, 999.140, 0.000, 90.000, -92.160);
- CreateObject(2908, -46.750, 144.059, 999.109, 14.000, 90.000, -83.000);
- CreateObject(2906, -46.279, 143.820, 999.039, 0.000, 0.000, -120.900);
- CreateObject(2906, -46.240, 144.289, 999.099, 0.000, 180.000, -76.139);
- CreateObject(1997, -17.350, 147.520, 998.039, 0.000, 0.000, 90.000);
- CreateObject(1997, -17.409, 149.529, 998.039, 0.000, 0.000, 90.000);
- CreateObject(1997, -17.420, 151.649, 998.039, 0.000, 0.000, 90.000);
- CreateObject(14693, -16.260, 151.690, 998.479, 0.000, 0.000, 17.760);
- CreateObject(14693, -16.250, 149.500, 998.479, 0.000, 0.000, 17.760);
- CreateObject(14693, -16.190, 147.509, 998.479, 0.000, 0.000, 17.760);
- CreateObject(14693, -16.250, 145.440, 998.479, 0.000, 0.000, 17.760);
- CreateObject(18084, -17.090, 142.850, 999.739, 0.000, 0.000, 180.000);
- CreateObject(18084, -17.090, 142.850, 997.309, 0.000, 0.000, 180.000);
- CreateObject(18084, -14.479, 142.850, 999.739, 0.000, 0.000, 180.000);
- CreateObject(18084, -14.479, 142.850, 997.299, 0.000, 0.000, 180.000);
- CreateObject(18084, -12.770, 142.860, 997.299, 0.000, 0.000, 180.000);
- CreateObject(18084, -12.770, 142.850, 999.739, 0.000, 0.000, 180.000);
- CreateObject(18084, -7.690, 142.860, 997.299, 0.000, 0.000, 180.000);
- CreateObject(18084, -7.690, 142.880, 999.739, 0.000, 0.000, 180.000);
- CreateObject(18084, -5.079, 142.860, 997.299, 0.000, 0.000, 180.000);
- CreateObject(18084, -5.079, 142.869, 999.739, 0.000, 0.000, 180.000);
- CreateObject(18084, -4.190, 142.869, 997.299, 0.000, 0.000, 180.000);
- CreateObject(18084, -4.110, 142.880, 999.739, 0.000, 0.000, 180.000);
- CreateObject(18084, -1.950, 147.649, 999.739, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.960, 147.639, 997.299, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.950, 150.229, 999.739, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.960, 150.229, 997.299, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.960, 152.839, 999.739, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.960, 152.839, 997.299, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.970, 154.110, 997.299, 0.000, 0.000, 270.000);
- CreateObject(18084, -1.960, 154.130, 999.739, 0.000, 0.000, 270.000);
- CreateObject(18084, -4.280, 156.309, 999.739, 0.000, 0.000, 0.000);
- CreateObject(18084, -4.289, 156.320, 997.299, 0.000, 0.000, 0.000);
- CreateObject(18084, -6.880, 156.309, 999.739, 0.000, 0.000, 0.000);
- CreateObject(18084, -7.800, 156.309, 999.739, 0.000, 0.000, 0.000);
- CreateObject(18084, -6.880, 156.320, 997.299, 0.000, 0.000, 0.000);
- CreateObject(18084, -7.739, 156.320, 997.299, 0.000, 0.000, 0.000);
- CreateObject(18084, -13.020, 156.320, 997.299, 0.000, 0.000, 0.000);
- CreateObject(18084, -13.000, 156.320, 999.739, 0.000, 0.000, 0.000);
- CreateObject(18084, -15.600, 156.309, 997.299, 0.000, 0.000, 0.000);
- CreateObject(18084, -15.600, 156.330, 999.739, 0.000, 0.000, 0.000);
- CreateObject(18084, -17.129, 156.320, 999.739, 0.000, 0.000, 0.000);
- CreateObject(18084, -17.209, 156.309, 997.299, 0.000, 0.000, 0.000);
- CreateObject(18084, -19.420, 151.250, 999.739, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.420, 148.669, 999.739, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.420, 146.089, 999.739, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.409, 145.009, 999.739, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.430, 151.330, 997.299, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.440, 148.740, 997.299, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.430, 146.160, 997.299, 0.000, 0.000, 90.000);
- CreateObject(18084, -19.430, 145.059, 997.299, 0.000, 0.000, 90.000);
- CreateObject(3383, -5.960, 153.479, 997.869, 0.000, 0.000, 0.000);
- CreateObject(3394, -3.589, 153.419, 998.049, 0.000, 0.000, 0.000);
- CreateObject(2690, -10.300, 139.940, 999.409, 0.000, 0.000, 180.000);
- CreateObject(2690, -38.560, 158.669, 999.409, 0.000, 0.000, 0.000);
- CreateObject(2792, -44.970, 158.809, 1001.320, 0.000, 0.000, 0.000);
- CreateObject(2986, -39.840, 139.779, 1000.760, 90.000, 90.000, 90.000);
- CreateObject(2994, -42.790, 140.250, 998.549, 0.000, 0.000, -90.120);
- CreateObject(14834, -43.169, 158.350, 998.349, 0.000, 0.000, -34.319);
- CreateObject(14834, -52.945, 158.367, 998.349, 0.000, 0.000, -71.519);
- CreateObject(14782, -23.980, 158.429, 999.030, 0.000, 0.000, 0.000);
- CreateObject(1997, -12.890, 154.320, 998.039, 0.000, 0.000, 0.000);
- CreateObject(1997, -14.729, 154.339, 998.039, 0.000, 0.000, 0.000);
- CreateObject(14455, -41.970, 167.389, 999.659, 0.000, 0.000, 0.000);
- CreateObject(14779, -39.020, 182.009, 1000.260, 0.000, 0.000, 90.059);
- CreateObject(1714, -44.750, 173.940, 998.049, 0.000, 0.000, 64.080);
- CreateObject(1715, -41.409, 175.669, 998.059, 0.000, 0.000, -13.560);
- CreateObject(1715, -40.049, 175.750, 998.059, 0.000, 0.000, -13.560);
- CreateObject(1715, -39.849, 171.649, 998.059, 0.000, 0.000, -153.119);
- CreateObject(1715, -41.099, 171.520, 998.059, 0.000, 0.000, -161.399);
- CreateObject(1723, -31.969, 178.610, 998.049, 0.000, 0.000, -48.299);
- CreateObject(1724, -30.469, 175.550, 998.059, 0.000, 0.000, -90.000);
- CreateObject(1724, -34.439, 178.759, 998.059, 0.000, 0.000, 0.000);
- CreateObject(1737, -32.900, 177.059, 997.820, 0.000, 0.000, -48.479);
- CreateObject(1808, -28.540, 173.619, 998.049, 0.000, 0.000, -89.220);
- CreateObject(1846, -30.979, 176.690, 999.960, 90.000, 90.000, 0.000);
- CreateObject(2001, -21.729, 140.179, 998.049, 0.000, 0.000, -31.920);
- CreateObject(2010, -30.389, 176.089, 998.049, 0.000, 0.000, -61.619);
- CreateObject(2010, -32.939, 178.949, 998.049, 0.000, 0.000, -136.679);
- CreateObject(2162, -44.270, 167.279, 999.140, 0.000, 0.000, 180.000);
- CreateObject(2162, -33.860, 167.240, 999.179, 0.000, 0.000, 180.000);
- CreateObject(2164, -46.779, 176.789, 998.049, 0.000, 0.000, 90.000);
- CreateObject(2167, -46.810, 169.979, 998.049, 0.000, 0.000, 90.000);
- CreateObject(2167, -46.830, 169.080, 998.049, 0.000, 0.000, 90.000);
- CreateObject(2186, -37.330, 178.720, 998.059, 0.000, 0.000, 0.000);
- CreateObject(2191, -28.889, 171.770, 998.049, 0.000, 0.000, -90.000);
- CreateObject(2191, -28.879, 170.300, 998.049, 0.000, 0.000, -90.000);
- CreateObject(2191, -28.879, 168.830, 998.049, 0.000, 0.000, -90.000);
- CreateObject(2190, -43.680, 173.160, 998.650, 0.000, 0.000, -127.080);
- CreateObject(2194, -43.430, 173.020, 999.109, 0.000, 0.000, 0.000);
- CreateObject(2197, -23.020, 152.300, 998.059, 0.000, 0.000, -90.000);
- CreateObject(2197, -23.010, 155.009, 998.059, 0.000, 0.000, -90.000);
- CreateObject(2197, -23.010, 154.350, 998.059, 0.000, 0.000, -90.000);
- CreateObject(2197, -23.000, 153.669, 998.059, 0.000, 0.000, -90.000);
- CreateObject(2197, -23.020, 152.979, 998.059, 0.000, 0.000, -90.000);
- CreateObject(1778, -48.459, 153.320, 998.280, 0.000, 0.000, -6.900);
- CreateObject(1778, -60.479, 158.270, 998.280, 0.000, 0.000, -91.080);
- CreateObject(1569, -54.259, 148.619, 998.049, 0.000, 0.000, 180.000);
- CreateObject(1502, -21.219, 142.910, 998.049, 0.000, 0.000, -90.000);
- CreateObject(1502, -31.469, 166.899, 998.049, 0.000, 0.000, 0.000);
- CreateObject(2001, -33.520, 166.220, 998.059, 0.000, 0.000, -42.180);
- CreateObject(956, -33.380, 144.539, 998.460, 0.000, 0.000, 90.000);
- CreateObject(955, -33.330, 143.330, 998.469, 0.000, 0.000, 90.000);
- CreateObject(1209, -33.529, 142.259, 998.059, 0.000, 0.000, 90.000);
- CreateObject(1428, -46.709, 145.960, 999.539, 0.000, 0.000, 90.419);
- // PD exterior
- CreateDynamicObject(995, 1544.594238, -1618.678466, 13.262805, 90.000000, 0.000000, 270.324615);
- CreateDynamicObject(995, 1545.128662, -1633.476684, 13.292809, 90.000000, 0.000000, 270.324615);
- CreateDynamicObject(19121, 1544.701660, -1623.436523, 12.962804, 0.000000, 0.000000, 270.178314);
- gPDGates[0] = CreateDynamicObject(968, 1544.639892, -1631.008666, 13.252797, 0.000000, 90.000000, 90.000000);
- gPDGates[1] = CreateDynamicObject(980, 1588.042602, -1638.079956, 14.602818, 0.000000, 0.000000, 0.000000);
- // FBI exterior
- gFBIGates[0] = CreateDynamicObject(985, 321.255279, -1488.601318, 25.281988, 0.000000, 0.000000, -35.299957);
- gFBIGates[1] = CreateDynamicObject(985, 283.590423, -1542.835083, 25.281988, 0.000000, 0.000000, -34.899955);
- // Prison & PD (credits: Wennicke)
- CreateDynamicObject(8419,1219.29980469,-1342.50000000,784.02398682,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.89941406,-1331.29980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1328.09997559,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.89941406,-1326.50000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1200.90002441,-1329.69995117,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1205.69995117,-1331.30004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1332.90002441,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(8419,1219.39941406,-1342.50000000,814.40002441,179.99450684,0.00000000,0.00000000);
- CreateDynamicObject(19377,1200.59997559,-1331.40002441,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1327.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1329.00000000,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1330.59997559,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1332.19995117,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1333.80004883,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1332.90002441,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1205.69995117,-1331.30004883,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1328.09997559,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1329.69995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1200.90002441,-1326.50000000,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1200.90002441,-1331.30004883,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1220.09960938,-1326.50000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1326.50000000,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1220.40002441,-1331.40002441,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1327.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1328.09997559,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.29980469,-1328.09960938,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1331.30004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1331.30004883,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1220.09997559,-1329.69995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1329.69995117,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.19921875,-1331.29980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1334.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1337.69995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1340.90002441,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1220.39941406,-1341.00000000,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1334.50000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1337.69995117,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1340.90002441,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1220.09997559,-1332.90002441,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1336.09997559,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1339.19995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1342.50000000,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1342.50000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1339.19995117,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1336.09997559,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09997559,-1332.90002441,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.19921875,-1340.89941406,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1220.19921875,-1340.89941406,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1334.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1336.09997559,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1205.69921875,-1337.69921875,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1339.30004883,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1205.69995117,-1340.90002441,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1342.50000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1200.59960938,-1341.00000000,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19447,1200.89941406,-1340.89941406,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1340.90002441,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1334.50000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1337.69995117,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1340.90002441,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.90002441,-1342.50000000,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1200.90002441,-1339.30004883,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1200.90002441,-1336.09997559,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3280,1206.59997559,-1335.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1337.00000000,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1338.59997559,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1340.19995117,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1341.80004883,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1329.00000000,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1330.59997559,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1332.19995117,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1333.80004883,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1335.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1337.00000000,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1338.59997559,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1340.19995117,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1341.80004883,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1212.80004883,-1327.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1211.19995117,-1327.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1209.59997559,-1327.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1208.09997559,-1327.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1210.50000000,-1326.50000000,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.19995117,-1331.30004883,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1209.89941406,-1321.89941406,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1210.50000000,-1326.59997559,807.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1215.19995117,-1331.40002441,807.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1215.19995117,-1341.00000000,807.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1205.80004883,-1331.40002441,807.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1205.79980469,-1341.00000000,807.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1343.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1214.40002441,-1345.00000000,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1343.40002441,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3280,1206.59997559,-1345.00000000,799.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1215.30004883,-1344.09997559,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1220.09960938,-1345.69921875,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1220.09960938,-1345.69921875,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1215.29980469,-1344.09960938,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1205.69995117,-1344.09997559,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.89941406,-1345.69921875,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1210.50000000,-1326.59997559,790.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1205.80004883,-1331.40002441,790.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1205.79980469,-1341.00000000,790.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1215.19995117,-1331.40002441,790.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1215.19995117,-1341.00000000,790.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.89941406,-1345.69921875,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1205.69995117,-1344.09997559,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(8572,1204.50000000,-1346.69995117,798.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1199.19921875,-1350.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1200.19921875,-1350.50000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1195.09960938,-1350.59960938,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(16645,1198.09997559,-1328.40002441,799.09997559,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(16645,1198.09997559,-1331.69995117,799.09997559,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1334.90002441,799.09997559,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1338.09997559,799.09997559,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1341.30004883,799.09997559,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1344.50000000,799.09997559,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1344.50000000,802.70001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09960938,-1341.29980469,802.70001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1338.09997559,802.70001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1334.90002441,802.70001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09997559,-1331.69995117,802.70001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1198.09960938,-1328.50000000,802.70001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(16645,1222.90002441,-1343.80004883,802.67999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1340.50000000,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1337.30004883,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1334.19995117,802.67999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1331.00000000,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1327.80004883,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.89941406,-1331.00000000,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1327.80004883,802.67999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1331.00000000,802.67999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.89941406,-1334.19921875,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1337.30004883,802.67999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.90002441,-1340.50000000,802.67999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16645,1222.89941406,-1343.79980469,799.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1205.69995117,-1321.59997559,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1215.30004883,-1321.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1215.19921875,-1316.00000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1209.89941406,-1312.29980469,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19447,1205.00000000,-1355.30004883,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1214.59960938,-1355.29980469,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19355,1219.39941406,-1353.69921875,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1219.39941406,-1350.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19355,1219.40002441,-1347.30004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1218.40002441,-1350.50000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1195.39941406,-1355.29980469,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1205.59960938,-1359.09960938,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1216.09997559,-1359.09997559,799.20300293,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1223.50000000,-1350.59960938,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19355,1221.00000000,-1355.30004883,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19385,1224.19921875,-1355.29980469,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1227.39941406,-1355.29980469,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19447,1229.00000000,-1350.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1229.09960938,-1350.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1230.89941406,-1341.00000000,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1230.89941406,-1331.39941406,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19447,1224.89941406,-1340.89941406,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19388,1215.19921875,-1310.00000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19388,1230.59960938,-1355.19921875,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19385,1230.56250000,-1355.29980469,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1233.69995117,-1355.30004883,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19447,1235.19995117,-1360.09997559,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1227.59997559,-1360.09997559,795.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1227.59960938,-1360.09960938,799.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1226.59960938,-1360.19921875,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19385,1227.50000000,-1345.69995117,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1224.30004883,-1345.70104980,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19388,1232.19921875,-1344.09960938,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1237.09960938,-1350.39941406,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1241.89941406,-1345.59960938,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1237.59997559,-1347.30004883,799.09997559,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1237.59960938,-1337.69921875,799.09997559,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19450,1232.19995117,-1337.69995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1229.09997559,-1340.90002441,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19388,1230.59997559,-1345.40002441,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19358,1216.79980469,-1312.91210938,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19388,1220.00000000,-1312.91210938,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19358,1223.20104980,-1312.91296387,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19447,1229.00000000,-1340.90002441,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1229.00000000,-1331.30004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1215.40002441,-1314.59997559,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1215.40002441,-1317.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1224.79980469,-1314.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1224.79980469,-1317.69921875,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1229.00000000,-1321.69995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1227.39941406,-1326.50000000,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1224.19995117,-1326.50097656,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1224.90002441,-1318.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1227.40002441,-1316.90002441,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19428,1225.59997559,-1316.90100098,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19401,1216.89941406,-1319.59960938,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19401,1220.09960938,-1319.59960938,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19401,1223.30004883,-1319.59997559,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19404,1216.90100098,-1319.40100098,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19404,1220.10095215,-1319.40100098,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19404,1223.30102539,-1319.40100098,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19388,1227.43652344,-1316.80078125,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19431,1225.59997559,-1316.80004883,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1229.09960938,-1331.29980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1229.09997559,-1321.69995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19388,1232.19995117,-1331.30004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1232.19921875,-1324.89941406,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1232.19921875,-1312.09960938,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19388,1232.19995117,-1318.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1229.09960938,-1316.79980469,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1220.09960938,-1308.00000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1229.69921875,-1308.00000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19388,1230.59960938,-1326.79980469,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19355,1224.90002441,-1321.69995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19385,1224.90002441,-1324.90002441,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1230.90002441,-1321.80004883,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1230.89941406,-1312.19921875,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1220.40002441,-1321.80004883,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1220.40002441,-1312.19995117,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1237.09997559,-1360.09997559,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19447,1220.89941406,-1364.89941406,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1211.30004883,-1364.90002441,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1201.69921875,-1364.89941406,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19447,1204.59997559,-1360.09997559,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1195.09997559,-1360.19995117,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1205.59997559,-1368.69995117,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1216.09960938,-1368.69921875,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19447,1210.40002441,-1326.50000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1210.50000000,-1320.79980469,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19358,1233.90002441,-1355.19995117,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19358,1232.19995117,-1350.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1237.00000000,-1355.19995117,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1237.00000000,-1352.09997559,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19377,1227.09997559,-1350.59997559,799.20098877,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(14877,1236.30004883,-1353.59997559,797.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1242.40002441,-1356.90002441,799.20098877,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19450,1237.00000000,-1352.09997559,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19358,1232.19921875,-1347.29980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1237.09997559,-1355.19995117,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19388,1240.30004883,-1355.19995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1241.80004883,-1356.90002441,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1237.00000000,-1361.69921875,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1227.40002441,-1361.69995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1232.30004883,-1350.40002441,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19388,1230.69995117,-1355.19995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1229.09997559,-1360.00000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1227.50000000,-1355.19995117,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19388,1224.30004883,-1355.19995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1227.40002441,-1352.09997559,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1222.69995117,-1349.59997559,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19401,1208.09997559,-1354.40100098,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19401,1213.09997559,-1354.40100098,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19401,1210.59997559,-1354.40002441,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1216.30004883,-1354.40002441,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1219.50000000,-1354.40002441,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19447,1201.69995117,-1354.40002441,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19358,1221.09997559,-1357.59997559,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19358,1217.90002441,-1357.59997559,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19358,1216.30004883,-1356.00000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19358,1222.69995117,-1356.00000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1217.80004883,-1361.69995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1208.19995117,-1361.69995117,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1198.59960938,-1361.69921875,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1225.90002441,-1360.00000000,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1200.30004883,-1359.19995117,801.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19404,1213.09960938,-1354.60058594,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19404,1210.59960938,-1354.59960938,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19404,1208.09997559,-1354.60095215,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19358,1216.30004883,-1354.59997559,801.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19450,1201.69995117,-1354.59997559,801.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19428,1205.69995117,-1346.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19428,1207.29980469,-1346.79980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19428,1206.50000000,-1345.69995117,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19428,1206.50000000,-1347.59997559,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19428,1205.70104980,-1346.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19428,1207.30102539,-1346.50000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1234.39941406,-1350.39941406,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1234.40002441,-1340.80004883,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1234.39941406,-1331.19921875,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1234.40002441,-1321.59997559,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1244.90002441,-1350.40002441,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1244.90002441,-1340.80004883,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1244.90002441,-1331.19995117,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1244.89941406,-1321.59960938,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1244.90002441,-1312.00000000,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1234.40002441,-1312.00000000,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1223.90002441,-1312.00000000,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1213.40002441,-1312.00000000,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1202.89941406,-1312.00000000,795.70001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1219.59997559,-1314.50000000,795.70098877,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1210.00000000,-1316.00000000,795.70202637,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19450,1239.29980469,-1308.00000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1241.90002441,-1336.00000000,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1241.90002441,-1326.40002441,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1241.89941406,-1316.79980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1241.90002441,-1307.19995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1237.59997559,-1328.09997559,799.09997559,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1237.59997559,-1318.50000000,799.09997559,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19377,1237.59997559,-1308.90002441,799.09997559,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1242.40100098,-1357.00000000,799.29998779,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1227.09997559,-1357.00000000,799.29998779,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1223.59997559,-1357.00000000,799.30102539,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1213.09960938,-1359.50000000,799.29998779,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1202.59960938,-1359.50000000,799.29998779,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19379,1235.40002441,-1360.09997559,799.30200195,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19450,1205.79980469,-1315.89941406,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19450,1210.50000000,-1308.00000000,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1205.79980469,-1306.29980469,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19466,1210.69995117,-1354.59997559,801.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19466,1213.09960938,-1354.59960938,801.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19466,1208.09997559,-1354.59997559,801.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(16644,1207.69921875,-1354.50000000,809.79998779,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(16644,1210.19995117,-1354.50000000,809.79998779,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(1892,1212.59997559,-1310.50000000,795.76000977,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1569,1205.83996582,-1315.80004883,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1569,1205.83996582,-1312.80004883,795.79998779,0.00000000,0.00000000,269.79992676);
- CreateDynamicObject(19379,1210.30004883,-1308.09997559,804.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1309.90002441,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1311.50000000,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1313.30004883,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1314.80004883,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1316.30004883,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1317.80004883,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1319.30004883,804.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1210.30004883,-1320.69995117,804.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1205.80395508,-1315.90002441,804.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1205.80297852,-1306.30004883,804.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1215.09997559,-1315.80004883,804.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1215.09997559,-1306.19995117,804.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1210.30004883,-1308.02001953,790.65002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1205.80297852,-1308.00000000,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1205.80297852,-1316.00000000,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1210.30004883,-1320.79003906,790.65002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1215.18994141,-1315.90002441,790.65100098,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1215.19201660,-1315.54199219,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1215.18994141,-1304.42004395,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1209.59997559,-1308.69995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3657,1228.50000000,-1330.19995117,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(3657,1228.50000000,-1335.80004883,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(3657,1228.50000000,-1341.39941406,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(3055,1212.09997559,-1316.90002441,794.00097656,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3055,1212.10058594,-1314.89941406,794.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3055,1212.09997559,-1305.09997559,794.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1312.50000000,796.04998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1314.50000000,796.04998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59960938,-1316.50000000,796.04998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1318.50000000,796.04998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1320.50000000,796.04998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3055,1213.00000000,-1314.90002441,794.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3055,1213.00097656,-1317.00000000,794.00097656,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1308.50000000,796.04998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3055,1213.00000000,-1305.09997559,794.00000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1308.18005371,795.40002441,0.00000000,270.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1311.77502441,796.40002441,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(19388,1215.19995117,-1306.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1212.17004395,-1315.90002441,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1212.17199707,-1315.79003906,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1212.17004395,-1304.16894531,790.65002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1212.59997559,-1313.79003906,796.40002441,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59997559,-1315.79003906,796.40002441,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59960938,-1317.79003906,796.40002441,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(2117,1212.59960938,-1319.79003906,796.40002441,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(2165,1212.61914062,-1314.59960938,796.05999756,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2165,1212.59997559,-1318.50000000,796.05999756,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1208.90002441,-1308.69995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1208.19995117,-1308.69995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1206.40002441,-1318.19995117,796.29998779,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2111,1206.80004883,-1319.69995117,796.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1206.40002441,-1317.50000000,796.29998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2310,1206.40002441,-1316.80004883,796.29998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2310,1208.69995117,-1320.30004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1209.39941406,-1320.29980469,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1210.09997559,-1320.30004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2186,1214.69995117,-1319.30004883,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2197,1214.00000000,-1315.69995117,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2197,1214.00000000,-1314.30004883,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2197,1214.00000000,-1315.00000000,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(948,1206.19995117,-1316.09997559,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(948,1206.19921875,-1312.50000000,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2852,1207.00000000,-1319.59997559,796.59997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19379,1201.09997559,-1315.80004883,793.09997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19379,1201.09997559,-1312.80004883,793.09997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(18613,1204.19995117,-1315.09997559,798.29998779,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(18613,1204.19995117,-1313.50000000,798.29998779,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19466,1223.50000000,-1319.50000000,797.90002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19466,1220.19995117,-1319.50000000,797.90002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19466,1217.00000000,-1319.50000000,797.90002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2117,1223.40002441,-1319.90002441,795.70098877,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1221.50000000,-1319.90002441,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1219.59997559,-1319.90002441,795.70098877,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1217.69995117,-1319.90002441,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3055,1219.20104980,-1320.30004883,793.64001465,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1215.80004883,-1319.90002441,795.70098877,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3055,1220.90002441,-1320.30102539,793.64001465,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1216.80004883,-1321.00000000,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1220.09997559,-1321.00000000,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1223.40002441,-1321.00000000,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19428,1218.50000000,-1320.19995117,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19428,1221.69921875,-1320.19921875,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1215.80004883,-1319.00000000,795.70098877,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1217.69995117,-1319.00000000,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1219.59997559,-1319.00000000,795.70098877,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1221.50000000,-1319.00000000,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1223.40002441,-1319.00000000,795.70098877,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3055,1220.90002441,-1318.50097656,793.64001465,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3055,1219.30004883,-1318.50000000,793.64001465,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19431,1221.69995117,-1318.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19431,1218.50000000,-1318.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1223.40002441,-1317.90002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1220.09997559,-1317.90002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1216.90002441,-1317.90002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1269,1220.09997559,-1318.90002441,796.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1269,1220.09997559,-1320.00000000,796.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1269,1223.30004883,-1318.90002441,796.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1269,1216.90002441,-1318.90002441,796.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1269,1216.90002441,-1320.00000000,796.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1269,1223.30004883,-1320.00000000,796.00000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2230,1220.95996094,-1318.40002441,796.02001953,270.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2230,1217.76000977,-1318.40002441,796.02001953,270.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2230,1224.16003418,-1318.40002441,796.02001953,270.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2230,1224.15917969,-1319.90002441,796.02001953,270.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2230,1220.95996094,-1319.90002441,796.02001953,270.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2230,1217.75976562,-1319.90002441,796.02001953,270.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1216,1225.30004883,-1319.69995117,796.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1216,1225.30004883,-1322.19995117,796.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1216.40002441,-1313.40002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1217.09997559,-1313.40002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1217.80004883,-1313.40002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1222.90002441,-1313.40002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1222.19995117,-1313.40002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1223.59997559,-1313.40002441,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(948,1218.59997559,-1313.40002441,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(948,1221.30004883,-1313.40002441,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1231.59997559,-1308.59997559,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3055,1228.19995117,-1310.19995117,793.84997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1230.59997559,-1308.59997559,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1229.59997559,-1308.59997559,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1228.59997559,-1308.59997559,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1224.80004883,-1310.69995117,795.90002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1226.80004883,-1310.69995117,795.90002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1228.80004883,-1310.69995117,795.90002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1230.69995117,-1310.69995117,795.90002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3055,1228.19995117,-1311.09997559,793.84997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2117,1225.09997559,-1310.69995117,795.29998779,0.00000000,270.00000000,0.00000000);
- CreateDynamicObject(2007,1228.59960938,-1308.59960938,797.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1229.59997559,-1308.59997559,797.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1230.59997559,-1308.59997559,797.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1231.59997559,-1308.59997559,797.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2186,1225.00000000,-1308.59960938,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2165,1231.59997559,-1310.69995117,795.90002441,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2165,1227.79980469,-1310.69921875,795.90002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2117,1227.09960938,-1310.69921875,795.29998779,0.00000000,270.00000000,0.00000000);
- CreateDynamicObject(2117,1229.09997559,-1310.69995117,795.29998779,0.00000000,270.00000000,0.00000000);
- CreateDynamicObject(2117,1231.09997559,-1310.69995117,795.29998779,0.00000000,270.00000000,0.00000000);
- CreateDynamicObject(16101,1224.80004883,-1312.90002441,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1215.19921875,-1345.79980469,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1215.19995117,-1345.80004883,800.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1207.29980469,-1347.59960938,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1207.30004883,-1347.59997559,800.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1207.29980469,-1345.69921875,795.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1207.30004883,-1345.69995117,800.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(16101,1207.40002441,-1328.09997559,799.20001221,0.00000000,180.00000000,0.00000000);
- CreateDynamicObject(16101,1213.59997559,-1328.09997559,799.20001221,0.00000000,179.99450684,0.00000000);
- CreateDynamicObject(16101,1213.69995117,-1345.59997559,799.20001221,0.00000000,179.99450684,0.00000000);
- CreateDynamicObject(16101,1205.79980469,-1345.79980469,797.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1221.09960938,-1309.09960938,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1219.00000000,-1309.30004883,796.29998779,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2165,1220.09997559,-1309.69995117,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2137,1233.69995117,-1340.19995117,795.79998779,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2138,1239.52929688,-1340.19921875,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2140,1232.80004883,-1338.30004883,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1323.09997559,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2305,1234.69995117,-1355.80004883,795.80102539,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2135,1238.56933594,-1340.20605469,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2136,1234.60803223,-1362.31396484,795.79998779,0.00000000,0.00000000,269.98901367);
- CreateDynamicObject(2137,1232.79980469,-1339.29980469,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2137,1234.67968750,-1340.19921875,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2139,1236.03198242,-1337.30004883,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2140,1232.80004883,-1337.32995605,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2138,1240.50000000,-1340.19995117,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2139,1237.02197266,-1337.30004883,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2139,1238.00000000,-1337.30004883,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2139,1238.02734375,-1336.27636719,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2139,1237.05004883,-1336.27636719,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2139,1236.05859375,-1336.27539062,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(3383,1236.69995117,-1335.30004883,800.40002441,320.00000000,179.99450684,0.00000000);
- CreateDynamicObject(3383,1237.30004883,-1338.40002441,800.40002441,319.99877930,179.99450684,180.00000000);
- CreateDynamicObject(1723,1241.19995117,-1324.09997559,795.79998779,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(1724,1237.80004883,-1323.09997559,795.79998779,0.00000000,0.00000000,89.99572754);
- CreateDynamicObject(2357,1237.90002441,-1332.30004883,796.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2357,1237.90002441,-1328.69995117,796.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2310,1239.30004883,-1333.50000000,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1238.59997559,-1333.50000000,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1237.19995117,-1333.50000000,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1236.50000000,-1333.50000000,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1237.90002441,-1333.50000000,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1239.30004883,-1329.80004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1238.59997559,-1329.80004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1237.90002441,-1329.80004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1237.19995117,-1329.80004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1236.50000000,-1329.80004883,796.29998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2310,1236.50000000,-1331.19995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1237.19995117,-1331.19995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1237.90002441,-1331.19995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1238.59997559,-1331.19995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1239.30004883,-1331.19995117,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1239.30004883,-1327.59997559,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1238.59997559,-1327.59997559,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1237.90002441,-1327.59997559,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1237.19995117,-1327.59997559,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2310,1236.50000000,-1327.59997559,796.29998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19358,1233.80004883,-1324.80004883,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19358,1240.19995117,-1324.80004883,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19358,1243.40002441,-1324.80004883,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2964,1236.79980469,-1311.59960938,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1723,1239.19995117,-1320.90002441,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1737,1239.69995117,-1322.59997559,795.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2297,1241.50000000,-1315.50000000,795.79998779,0.00000000,0.00000000,225.00000000);
- CreateDynamicObject(1723,1237.90002441,-1317.30004883,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1737,1239.59997559,-1316.80004883,795.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1324.09997559,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1322.09997559,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1322.09997559,796.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1323.09997559,796.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1324.09997559,796.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2303,1229.50000000,-1325.09997559,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19450,1237.09997559,-1340.80004883,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2138,1237.59960938,-1340.19921875,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1502,1229.81494141,-1345.43005371,795.73999023,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1502,1229.81640625,-1326.81933594,795.73999023,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1227.59997559,-1308.59997559,797.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2007,1227.59997559,-1308.59997559,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1502,1226.65002441,-1316.88000488,795.73999023,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2165,1232.80004883,-1346.00000000,795.79998779,0.00000000,0.00000000,359.99450684);
- CreateDynamicObject(2165,1236.69995117,-1346.00000000,795.79998779,0.00000000,0.00000000,359.99450684);
- CreateDynamicObject(2165,1240.30004883,-1346.00000000,795.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(2165,1236.69995117,-1348.69995117,795.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(2165,1232.80004883,-1348.69995117,795.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(2165,1240.30004883,-1348.69995117,795.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(2166,1241.30004883,-1341.90002441,795.79998779,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2165,1239.30004883,-1342.90002441,795.79998779,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2186,1234.90002441,-1341.50000000,795.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1671,1233.30004883,-1349.69995117,796.20001221,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(1671,1237.30004883,-1349.69995117,796.20001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1240.80004883,-1349.80004883,796.20001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1240.80004883,-1346.90002441,796.20001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1237.30004883,-1346.90002441,796.20001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1233.30004883,-1346.90002441,796.20001221,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1238.80004883,-1341.80004883,796.20001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2612,1237.30004883,-1341.00000000,797.79998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2611,1241.69995117,-1344.50000000,797.70001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2616,1235.09997559,-1350.19995117,797.70001221,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2400,1232.30004883,-1355.30004883,799.59997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2400,1236.00000000,-1355.30004883,799.59997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(14401,1240.09997559,-1373.19995117,799.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(14401,1247.50000000,-1373.19921875,799.70001221,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(14782,1232.29980469,-1361.19921875,800.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(14782,1238.50000000,-1361.19995117,800.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2689,1238.90002441,-1355.69995117,800.09997559,0.00000000,0.00000000,180.00000000);
- CreateDynamicObject(2704,1238.26000977,-1355.59997559,800.92999268,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2843,1236.50000000,-1360.69995117,799.40002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2846,1233.00000000,-1360.50000000,799.40002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2705,1236.50000000,-1355.80004883,800.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2706,1237.09997559,-1355.80004883,800.09997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2844,1235.59997559,-1355.30004883,799.40002441,0.00000000,0.00000000,250.00000000);
- CreateDynamicObject(2165,1220.19995117,-1358.30004883,799.40002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2166,1215.69995117,-1356.19995117,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1202.50000000,-1360.09997559,799.79998779,0.00000000,0.00000000,359.99450684);
- CreateDynamicObject(2166,1210.30004883,-1356.19995117,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2165,1208.30004883,-1357.19995117,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2166,1205.00000000,-1356.19995117,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2165,1203.00000000,-1357.19995117,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2166,1215.69995117,-1360.09997559,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2165,1213.69995117,-1361.09997559,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2166,1210.30004883,-1360.09997559,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2166,1205.00000000,-1360.09997559,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2165,1203.00000000,-1361.09997559,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1202.50000000,-1356.19995117,799.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(1671,1207.69995117,-1356.19995117,799.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(1671,1213.09997559,-1356.19995117,799.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(1671,1213.09997559,-1360.19995117,799.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(2165,1208.30004883,-1361.09997559,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1671,1207.80004883,-1360.19995117,799.79998779,0.00000000,0.00000000,359.98901367);
- CreateDynamicObject(2186,1217.40002441,-1358.19995117,799.40002441,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2165,1213.69921875,-1357.19921875,799.40002441,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(1969,1220.80004883,-1364.30004883,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1220.80004883,-1358.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1220.80004883,-1361.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1220.80004883,-1355.90002441,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1217.00000000,-1358.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1209.69995117,-1358.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1205.90002441,-1358.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1217.00000000,-1361.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1213.40002441,-1361.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1209.69995117,-1361.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1205.90002441,-1361.59997559,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1217.00000000,-1364.30004883,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1213.40002441,-1364.30004883,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1209.69995117,-1364.30004883,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1205.90002441,-1364.30004883,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1217.00000000,-1355.90002441,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1213.30004883,-1355.90002441,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1209.69995117,-1355.90002441,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1969,1205.90002441,-1355.90002441,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2441,1228.00000000,-1355.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1356.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1357.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1358.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1359.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1360.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1361.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1362.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1363.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2441,1228.00000000,-1364.90002441,795.70001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(16644,1212.69921875,-1354.50000000,809.79998779,0.00000000,90.00000000,90.00000000);
- CreateDynamicObject(16644,1227.59997559,-1365.30004883,798.79998779,90.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2136,1236.63964844,-1340.20703125,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(2135,1234.60900879,-1358.35705566,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2137,1234.59997559,-1364.30004883,795.79998779,0.00000000,0.00000000,269.98901367);
- CreateDynamicObject(2137,1234.59997559,-1361.32702637,795.79998779,0.00000000,0.00000000,269.98901367);
- CreateDynamicObject(2137,1234.59997559,-1360.33801270,795.79998779,0.00000000,0.00000000,269.98901367);
- CreateDynamicObject(2137,1234.59997559,-1359.33801270,795.79998779,0.00000000,0.00000000,269.98901367);
- CreateDynamicObject(2135,1234.60900879,-1357.36999512,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2137,1234.59997559,-1356.40002441,795.79998779,0.00000000,0.00000000,269.98901367);
- CreateDynamicObject(2305,1232.79980469,-1340.19921875,795.79998779,0.00000000,0.00000000,179.99450684);
- CreateDynamicObject(19447,1227.59997559,-1369.69995117,797.59997559,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19355,1227.30004883,-1364.90002441,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19385,1230.50000000,-1364.90002441,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19355,1233.69995117,-1364.90002441,797.50000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(19447,1228.40002441,-1369.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19447,1232.90002441,-1369.80004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19377,1227.90002441,-1369.69995117,799.20001221,0.00000000,90.00000000,0.00000000);
- CreateDynamicObject(19447,1230.09997559,-1372.09997559,797.50000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1847,1228.80004883,-1367.50000000,795.79998779,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1983,1229.00000000,-1370.50000000,795.90002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1983,1229.00000000,-1371.50000000,795.90002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(2012,1232.19995117,-1366.50000000,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2012,1232.19995117,-1369.50000000,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(1983,1232.30004883,-1371.50000000,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(1983,1229.00000000,-1370.50000000,797.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1983,1229.00000000,-1371.50000000,797.40002441,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1523,1229.73999023,-1364.93005371,795.72998047,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2139,1232.02404785,-1361.62902832,795.79998779,0.00000000,0.00000000,89.99450684);
- CreateDynamicObject(2139,1232.02404785,-1360.66003418,795.80102539,0.00000000,0.00000000,89.99450684);
- CreateDynamicObject(2139,1232.02404785,-1359.68505859,795.79998779,0.00000000,0.00000000,89.99450684);
- CreateDynamicObject(2139,1232.02404785,-1358.72998047,795.80102539,0.00000000,0.00000000,89.99450684);
- CreateDynamicObject(2139,1231.00000000,-1361.59997559,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2139,1231.00000000,-1360.64001465,795.80102539,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2139,1231.00000000,-1359.67004395,795.79998779,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2139,1231.00000000,-1358.69995117,795.80102539,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2149,1231.19995117,-1361.80004883,797.00000000,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(2149,1231.09997559,-1361.19995117,797.00000000,0.00000000,0.00000000,287.00000000);
- CreateDynamicObject(2866,1231.40002441,-1359.80004883,796.85998535,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(2867,1234.69995117,-1362.19995117,796.84997559,0.00000000,0.00000000,60.00000000);
- CreateDynamicObject(19447,1224.90002441,-1331.30004883,797.50000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(1968,1213.39941406,-1358.59960938,796.29998779,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(3657,1210.09997559,-1343.00000000,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(3657,1210.90002441,-1343.00000000,796.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(3657,1210.09997559,-1331.90002441,796.20001221,0.00000000,0.00000000,270.00000000);
- CreateDynamicObject(3657,1210.90002441,-1331.90002441,796.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1345.09997559,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1341.90002441,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1338.69995117,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1335.50000000,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1332.30004883,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1329.09997559,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1329.09997559,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1345.09997559,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1341.90002441,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1338.69995117,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1335.50000000,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1204.59997559,-1332.30004883,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1327.40002441,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1330.59997559,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1333.80004883,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1337.00000000,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1340.09997559,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1343.40002441,799.20001221,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1343.40002441,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1340.09997559,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1337.00000000,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1333.80004883,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1330.59997559,795.59997559,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(1800,1221.19995117,-1327.40002441,795.59997559,0.00000000,0.00000000,90.00000000);
- objectid = CreateDynamicObject(19304,1213.59997559,-1329.90002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1213.59997559,-1333.40002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1213.59997559,-1336.90002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1213.59997559,-1340.40002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1213.59997559,-1343.90002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1211.90002441,-1328.09997559,799.79998779,0.00000000,0.00000000,0.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1209.09997559,-1328.09997559,799.79998779,0.00000000,0.00000000,0.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1207.40002441,-1329.90002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1207.40002441,-1333.40002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1207.40002441,-1336.90002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1207.40002441,-1340.40002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1207.40002441,-1343.90002441,799.79998779,0.00000000,0.00000000,90.00000000);
- SetDynamicObjectMaterial(objectid, 0, 19304, "pd_jail_door_top01", "pd_jail_door_top01", 0xFF000000);
- objectid = CreateDynamicObject(19304,1215.30004883,-1345.69995117,799.79998779,0.00000000,0.00000000,0.00000000);
- gPDDoors[0] = CreateDynamicObject(1495,1226.66210938,-1326.52929688,795.75000000,0.00000000,0.00000000,0.00000000); //DOOR
- gPDDoors[1] = CreateDynamicObject(1495,1215.21997070,-1310.73999023,795.75000000,0.00000000,0.00000000,90.00000000); //DOOR
- gPDDoors[2] = CreateDynamicObject(1495,1226.76501465,-1345.71997070,795.73999023,0.00000000,0.00000000,0.00000000); //DOOR
- gPrisonCells[0] = CreateDynamicObject(19302,1205.69995117,-1328.09997559,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[1] = CreateDynamicObject(19302,1205.69995117,-1331.30004883,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[2] = CreateDynamicObject(19302,1205.69995117,-1331.30004883,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[3] = CreateDynamicObject(19302,1205.69995117,-1328.09997559,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[4] = CreateDynamicObject(19302,1215.30004883,-1328.09997559,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[5] = CreateDynamicObject(19302,1215.30004883,-1331.30004883,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[6] = CreateDynamicObject(19302,1215.30004883,-1331.30004883,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[7] = CreateDynamicObject(19302,1215.30004883,-1328.09997559,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[8] = CreateDynamicObject(19302,1215.30004883,-1334.50000000,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[9] = CreateDynamicObject(19302,1215.29980469,-1337.69921875,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[10] = CreateDynamicObject(19302,1215.30004883,-1340.90002441,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[11] = CreateDynamicObject(19302,1215.30004883,-1340.90002441,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[12] = CreateDynamicObject(19302,1215.30004883,-1337.69995117,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[13] = CreateDynamicObject(19302,1215.30004883,-1334.50000000,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[14] = CreateDynamicObject(19302,1205.69995117,-1334.50000000,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[15] = CreateDynamicObject(19302,1205.69995117,-1337.69995117,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[16] = CreateDynamicObject(19302,1205.69995117,-1340.90002441,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[17] = CreateDynamicObject(19302,1205.69995117,-1334.50000000,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[18] = CreateDynamicObject(19302,1205.69995117,-1337.69995117,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[19] = CreateDynamicObject(19302,1205.69995117,-1340.90002441,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[20] = CreateDynamicObject(19302,1215.30004883,-1344.09997559,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[21] = CreateDynamicObject(19302,1215.30004883,-1344.09997559,797.00000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[22] = CreateDynamicObject(19302,1205.69995117,-1344.09997559,800.50000000,0.00000000,0.00000000,90.00000000);
- gPrisonCells[23] = CreateDynamicObject(19302,1205.69995117,-1344.09997559,797.00000000,0.00000000,0.00000000,90.00000000);
- for(new i = 0; i < 24; i ++)
- {
- SetDynamicObjectMaterial(gPrisonCells[i], 0, 19302, "pd_jail_door02", "pd_jail_door02", 0xFF000000);
- }
- // FMD exterior by Lance
- CreateDynamicObject(3268,1571.1287800,-2174.7282700,12.5186000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(9949,1517.5681200,-2168.8305700,24.5000000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(10763,1474.2979700,-2156.9782700,38.0000000,0.0000000,0.0000000,45.0000000); //
- CreateDynamicObject(18850,1478.9538600,-2166.8579100,22.0000000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(18850,1540.6938500,-2166.8579100,22.0000000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1569,1509.3479000,-2179.6994600,31.0200000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19799,1452.2346200,-2164.4707000,14.1000000,0.0000000,0.0000000,74.8200300); //
- CreateDynamicObject(3268,1600.9808300,-2174.7097200,12.5186000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(4838,1587.2423100,-2049.6191400,12.5278000,0.0000000,0.0000000,-155.8799700); //
- CreateDynamicObject(3578,1574.3737800,-2159.6210900,11.8025000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(3578,1562.5632300,-2159.6289100,11.8025000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(3578,1590.2486600,-2159.5524900,11.8025000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(3578,1607.1795700,-2159.5551800,11.8025000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(3578,1601.7481700,-2154.6731000,11.8025000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(3578,1595.1035200,-2154.6853000,11.8100000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(3578,1579.2691700,-2154.6359900,11.8100000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(3578,1589.2910200,-2154.6516100,11.8100000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(3578,1568.9565400,-2154.5939900,11.8100000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(3578,1567.4160200,-2154.5903300,11.8200000,0.0000000,0.0000000,0.0000000); //
- // FMD interior by Lance
- CreateDynamicObject(19377,303.0083300,1734.1710200,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.0080000,1724.5380900,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,292.5455600,1724.5650600,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.4708300,1724.5512700,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,292.5817000,1715.0184300,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.0470000,1715.0092800,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.4521500,1714.9982900,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,297.3785100,1729.4550800,2041.6130400,0.0000000,90.0000000,43.5000000); //
- CreateDynamicObject(19377,308.5267000,1728.9681400,2041.6130400,0.0000000,90.0000000,43.5000000); //
- CreateDynamicObject(19377,303.4111000,1705.4381100,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,309.0299700,1710.0831300,2041.6130400,0.0000000,90.0000000,43.5000000); //
- CreateDynamicObject(19377,298.6503300,1710.3720700,2041.6130400,0.0000000,90.0000000,43.5000000); //
- CreateDynamicObject(19377,318.1890900,1718.8968500,2041.6130400,0.0000000,90.0000000,43.5000000); //
- CreateDynamicObject(19450,319.7799400,1713.8325200,2043.4499500,0.0000000,0.0000000,-47.1600000); //
- CreateDynamicObject(19450,316.9845300,1715.6378200,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,320.0360100,1724.4752200,2043.4499500,0.0000000,0.0000000,43.8000100); //
- CreateDynamicObject(19450,312.7421900,1707.2959000,2043.4499500,0.0000000,0.0000000,-47.1600000); //
- CreateDynamicObject(19450,303.8535200,1700.6272000,2043.4499500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,294.3555900,1700.6307400,2043.4499500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,308.5528300,1698.6328100,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,312.0556300,1706.6635700,2043.4499500,0.0000000,0.0000000,-47.1600000); //
- CreateDynamicObject(19450,313.6304900,1731.1495400,2043.4499500,0.0000000,0.0000000,43.8000100); //
- CreateDynamicObject(19377,305.1874400,1738.8909900,2041.6130400,0.0000000,90.0000000,43.5000000); //
- CreateDynamicObject(19450,311.5968900,1733.2728300,2043.4499500,0.0000000,0.0000000,43.8000100); //
- CreateDynamicObject(19450,308.2782600,1741.4941400,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,302.6104100,1739.0069600,2043.4499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,298.0647900,1741.1154800,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,312.0326500,1739.0101300,2043.4499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,298.0677800,1705.3768300,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,298.0751600,1732.9126000,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,298.0678100,1720.1391600,2041.1999500,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19450,297.9874900,1720.1200000,2045.9899900,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19388,298.0652800,1713.7240000,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,298.0574600,1707.6444100,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19388,298.0677200,1726.5491900,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,294.5946700,1733.3363000,2043.4499500,0.0000000,0.0000000,-46.5000100); //
- CreateDynamicObject(19450,287.7799100,1726.8686500,2043.4499500,0.0000000,0.0000000,-46.5000100); //
- CreateDynamicObject(19450,294.7457600,1706.9888900,2043.4499500,0.0000000,0.0000000,-136.3800000); //
- CreateDynamicObject(19450,288.1676300,1713.8525400,2043.4499500,0.0000000,0.0000000,-136.3800000); //
- CreateDynamicObject(19377,282.1066300,1721.7541500,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,282.0834000,1712.1453900,2041.6202400,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19388,284.8420100,1720.6792000,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,284.8418300,1714.3811000,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,284.8419200,1726.8408200,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(14407,281.7731900,1720.7354700,2042.0200200,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19377,279.6451400,1714.6911600,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,279.6397700,1726.6131600,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19450,280.0779100,1719.4262700,2043.4499500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,280.0210600,1721.8717000,2043.4499500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(1523,284.8919100,1719.9190700,2041.6678500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,284.8293500,1714.7106900,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,284.8281600,1723.9847400,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,277.3952000,1721.4533700,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,277.3851600,1712.4227300,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,277.3986800,1730.7562300,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,284.8342900,1733.5362500,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,281.2565600,1731.1449000,2046.9499500,0.0000000,0.0000000,-90.0800000); //
- CreateDynamicObject(19450,282.0049100,1709.9862100,2046.9499500,0.0000000,0.0000000,-90.0800000); //
- CreateDynamicObject(14407,275.6328100,1720.4567900,2042.0200200,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(14782,280.9892000,1710.3958700,2046.1999500,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(7666,280.9354900,1712.4360400,2045.2199700,30.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(7666,280.9292900,1716.9151600,2045.2199700,30.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(7666,280.9714100,1724.3070100,2045.2199700,30.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(7666,280.9681100,1728.7729500,2045.2199700,30.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(11713,277.5637800,1714.7343800,2047.0437000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(11713,277.5276200,1716.6062000,2047.0437000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(11713,284.6994600,1714.3702400,2047.0437000,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(14657,278.1170300,1726.4295700,2046.0000000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(2125,279.1882600,1726.5440700,2045.5206300,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(14657,272.9628000,1729.6212200,2046.0000000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19377,279.6451100,1714.6911600,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,279.6086400,1724.2756300,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,279.9444600,1733.7408400,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(1523,298.1099900,1712.9699700,2041.6678500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1523,298.1211900,1725.7973600,2041.6678500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(10009,303.2358100,1705.9794900,2041.9799800,0.0000000,0.0000000,-540.0000000); //
- CreateDynamicObject(10009,303.5607000,1732.9459200,2041.9799800,0.0000000,0.0000000,360.0000000); //
- CreateDynamicObject(19450,312.0556300,1706.6635700,2043.4499500,0.0000000,0.0000000,-47.1600000); //
- CreateDynamicObject(19450,311.0549900,1710.1577100,2039.9599600,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,302.8494600,1710.1633300,2039.9599600,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,310.5050400,1729.3501000,2039.9599600,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,302.7391700,1729.3544900,2039.9599600,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19450,316.9876100,1725.2434100,2043.4499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,303.6236900,1716.8908700,2039.9599600,0.0000000,0.0000000,-130.0000000); //
- CreateDynamicObject(19450,310.9368000,1716.9149200,2039.9599600,0.0000000,0.0000000,130.0000000); //
- CreateDynamicObject(19450,303.6769100,1723.0781300,2039.9599600,0.0000000,0.0000000,130.0000000); //
- CreateDynamicObject(19450,310.9479100,1723.0629900,2039.9599600,0.0000000,0.0000000,-130.0000000); //
- CreateDynamicObject(19450,307.3017900,1709.1022900,2039.9599600,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,307.3015400,1700.4470200,2039.9599600,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,307.2967200,1730.8836700,2039.9599600,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,307.2979700,1740.0156300,2039.9599600,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19353,307.7066000,1719.7481700,2039.9599600,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19353,306.9244100,1719.7481700,2039.9599600,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19353,307.3072500,1720.2406000,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(19450,318.1711400,1723.0136700,2039.9599600,0.0000000,0.0000000,130.0000000); //
- CreateDynamicObject(19450,318.1921100,1716.9775400,2039.9599600,0.0000000,0.0000000,-130.0000000); //
- CreateDynamicObject(19450,296.3361500,1723.0107400,2039.9599600,0.0000000,0.0000000,-130.0000000); //
- CreateDynamicObject(19450,296.2648000,1716.8167700,2039.9599600,0.0000000,0.0000000,130.0000000); //
- CreateDynamicObject(19450,292.6272000,1709.0062300,2039.9599600,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(19450,292.7041300,1730.8332500,2039.9599600,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(1723,308.6773100,1730.8216600,2041.7044700,0.0000000,0.0000000,41.9999900); //
- CreateDynamicObject(1723,313.7042200,1728.3630400,2041.7044700,0.0000000,0.0000000,220.7999600); //
- CreateDynamicObject(2311,310.7790200,1729.1409900,2041.6988500,0.0000000,0.0000000,41.5200000); //
- CreateDynamicObject(1723,313.0018900,1712.7968800,2041.7044700,0.0000000,0.0000000,309.6599700); //
- CreateDynamicObject(2311,311.1241500,1710.7445100,2041.6988500,0.0000000,0.0000000,-49.3800000); //
- CreateDynamicObject(1723,310.4335300,1708.0306400,2041.7044700,0.0000000,0.0000000,132.7200000); //
- CreateDynamicObject(640,298.4453400,1706.9301800,2042.3800000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(640,298.4982900,1736.0760500,2042.3800000,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(640,303.3941700,1738.7117900,2042.3800000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(640,312.7133500,1731.4224900,2042.3800000,0.0000000,0.0000000,43.3800000); //
- CreateDynamicObject(640,312.7117900,1707.9856000,2042.3800000,0.0000000,0.0000000,132.0000200); //
- CreateDynamicObject(640,303.1869800,1701.0753200,2042.3800000,0.0000000,0.0000000,89.9399900); //
- CreateDynamicObject(644,314.9457100,1726.9716800,2041.9847400,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(644,315.3387800,1712.7454800,2041.9847400,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(644,299.3248300,1702.6160900,2041.9847400,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(644,299.7919000,1737.4272500,2041.5446800,0.0000000,0.0000000,-5.2800000); //
- CreateDynamicObject(1569,316.9355500,1718.5216100,2041.6999500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1569,316.9151300,1721.5231900,2041.6999500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19377,303.2263500,1712.0775100,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.6807900,1708.2077600,2045.1219500,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,311.0804400,1699.3798800,2045.1200000,0.0000000,90.0000000,-36.2400000); //
- CreateDynamicObject(19377,308.4107100,1697.4563000,2045.1230500,0.0000000,90.0000000,-59.1000000); //
- CreateDynamicObject(19377,302.8421000,1695.6449000,2045.1209700,0.0000000,90.0000000,-79.2600000); //
- CreateDynamicObject(19377,297.8151900,1697.5302700,2045.1212200,0.0000000,90.0000000,-114.2400000); //
- CreateDynamicObject(19377,296.8037100,1698.1572300,2045.1200000,0.0000000,90.0000000,-143.3999900); //
- CreateDynamicObject(19377,292.9220900,1708.3493700,2045.1209700,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,292.7083100,1698.5462600,2045.1230500,0.0000000,90.0000000,-87.4800000); //
- CreateDynamicObject(19377,313.6958300,1717.8597400,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.6943700,1727.4685100,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.6927800,1737.0770300,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.2968100,1721.6835900,2045.1200000,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.3432000,1727.2338900,2045.1209700,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,302.0692100,1728.4289600,2045.1219500,0.0000000,90.0000000,28.8600000); //
- CreateDynamicObject(19377,295.0835000,1737.5714100,2045.1200000,0.0000000,90.0000000,-13.7400100); //
- CreateDynamicObject(19377,298.4128100,1741.1560100,2045.1221900,0.0000000,90.0000000,-50.2200000); //
- CreateDynamicObject(19377,305.4567900,1743.0904500,2045.1203600,0.0000000,90.0000000,-89.7000000); //
- CreateDynamicObject(19377,309.9078100,1740.4078400,2045.1219500,0.0000000,90.0000000,-129.6601000); //
- CreateDynamicObject(19377,292.9037500,1717.9871800,2045.1209700,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,292.8598000,1727.5999800,2045.1209700,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,292.6563100,1737.2166700,2045.1209700,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,289.8685900,1712.4522700,2045.1219500,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,289.9446100,1722.0578600,2045.1219500,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19450,305.4538900,1728.1084000,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,313.4736900,1726.3780500,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,313.1796300,1734.2570800,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,313.4704300,1721.9592300,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,313.4807400,1710.5251500,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,305.4460800,1721.4744900,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,308.7316000,1707.4411600,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,302.7797900,1707.4355500,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,293.8255900,1704.6713900,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,293.9139400,1709.3995400,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,300.7136200,1714.1364700,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,291.1931500,1714.1359900,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,318.2765200,1728.1485600,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,318.2850300,1713.7363300,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,318.1975100,1719.3842800,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,318.9658500,1716.0202600,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,318.9632000,1732.6717500,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,322.5897500,1734.2519500,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19388,305.4509900,1715.6485600,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19450,300.6244200,1723.7197300,2046.9499500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19450,299.9090000,1718.9587400,2046.9499500,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(19388,313.4637800,1716.2133800,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19388,313.4800100,1732.7696500,2046.9499500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(941,318.2278100,1716.5438200,2045.5439500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1369,316.9319800,1718.6926300,2045.7873500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(2792,313.4563000,1715.7637900,2048.0700700,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(2794,313.4670100,1732.3862300,2048.0700700,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(11709,316.3952300,1714.0858200,2045.8800000,0.0000000,0.0000000,-180.0000000); //
- CreateDynamicObject(11707,314.9844100,1713.8917200,2046.0000000,0.0000000,0.0000000,-180.0000000); //
- CreateDynamicObject(11738,318.2623300,1717.4075900,2046.0575000,0.0000000,0.0000000,-71.7600000); //
- CreateDynamicObject(11738,318.4575500,1716.3659700,2046.0575000,0.0000000,0.0000000,-88.3800000); //
- CreateDynamicObject(11738,318.1898200,1715.9495800,2046.0575000,0.0000000,0.0000000,-174.7199700); //
- CreateDynamicObject(11736,318.1078500,1716.9252900,2046.0178200,0.0000000,0.0000000,-129.8399800); //
- CreateDynamicObject(19339,318.3839100,1731.3282500,2046.3800000,0.0000000,0.0000000,89.2200000); //
- CreateDynamicObject(941,318.3655700,1731.0390600,2045.5439500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(941,316.1153000,1728.7944300,2045.5439500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(303,316.7699900,1728.6137700,2046.0169700,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(2905,316.9830300,1728.8640100,2046.0177000,0.0000000,0.0000000,-30.1800000); //
- CreateDynamicObject(2906,316.5119600,1729.0598100,2046.0777600,0.0000000,84.0000000,-85.0000000); //
- CreateDynamicObject(2906,316.1318400,1728.6934800,2046.0777600,0.0000000,84.0000000,-48.6399900); //
- CreateDynamicObject(2907,315.5983900,1728.8242200,2046.0577400,0.0000000,0.0000000,-30.1800000); //
- CreateDynamicObject(2908,316.3945000,1728.5428500,2046.1176800,-76.0000000,48.0000000,-30.0000000); //
- CreateDynamicObject(2905,317.2831100,1728.6457500,2046.0777600,-11.0000000,178.0000000,-46.8000000); //
- CreateDynamicObject(1523,313.5266100,1732.0133100,2045.1800500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1523,313.4849900,1715.4639900,2045.1800500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1491,305.4775100,1714.9050300,2045.1800500,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(2184,301.6876200,1720.8125000,2045.1866500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(1714,302.7992600,1722.6538100,2045.1678500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(1736,302.8185100,1723.3610800,2048.0793500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(2025,300.4746400,1723.1483200,2045.2092300,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(2025,303.9538300,1723.0762900,2045.2092300,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(11712,302.8305700,1723.6319600,2047.4000200,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(19893,302.2153000,1721.3055400,2045.9595900,0.0000000,0.0000000,136.9200000); //
- CreateDynamicObject(19810,305.5448600,1716.7041000,2047.2331500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19810,305.5567300,1714.5617700,2047.2331500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(19806,302.4137900,1718.9931600,2048.0346700,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(19172,300.0974100,1718.6551500,2047.3912400,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(1828,302.7713600,1718.1806600,2045.1829800,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(2131,301.5134300,1714.6702900,2045.2066700,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(2131,303.4942300,1714.6665000,2045.2066700,0.0000000,0.0000000,180.0000000); //
- CreateDynamicObject(19431,307.9731400,1734.8695100,2046.9499500,0.0000000,0.0000000,34.6199700); //
- CreateDynamicObject(19431,306.9825400,1736.1022900,2046.9499500,0.0000000,0.0000000,43.5599700); //
- CreateDynamicObject(19431,305.7912600,1737.1112100,2046.9499500,0.0000000,0.0000000,55.6799800); //
- CreateDynamicObject(19431,304.3605300,1737.7225300,2046.9499500,0.0000000,0.0000000,79.0800000); //
- CreateDynamicObject(19431,303.0155300,1737.8642600,2046.9499500,0.0000000,0.0000000,90.0000200); //
- CreateDynamicObject(19431,302.0553900,1737.3988000,2046.9499500,0.0000000,0.0000000,131.5800000); //
- CreateDynamicObject(19431,300.8975200,1736.3724400,2046.9499500,0.0000000,0.0000000,131.5800000); //
- CreateDynamicObject(19431,299.9442100,1735.1096200,2046.9499500,0.0000000,0.0000000,157.5600000); //
- CreateDynamicObject(19431,299.4621300,1733.7148400,2046.9499500,0.0000000,0.0000000,163.9799300); //
- CreateDynamicObject(19431,299.2149400,1732.7229000,2046.9499500,0.0000000,0.0000000,171.5999500); //
- CreateDynamicObject(19450,298.9913900,1732.2845500,2046.9499500,0.0000000,0.0000000,117.5400200); //
- CreateDynamicObject(19431,303.9959700,1734.3811000,2046.9499500,0.0000000,0.0000000,261.0598400); //
- CreateDynamicObject(19431,305.0911300,1733.5955800,2046.9499500,0.0000000,0.0000000,207.4798700); //
- CreateDynamicObject(19431,298.9092100,1703.9245600,2046.9499500,0.0000000,0.0000000,28.9800300); //
- CreateDynamicObject(19431,299.7147800,1702.8237300,2046.9499500,0.0000000,0.0000000,41.9400300); //
- CreateDynamicObject(19431,300.8793300,1701.8411900,2046.9499500,0.0000000,0.0000000,58.3200300); //
- CreateDynamicObject(19431,302.2331800,1701.2249800,2046.9499500,0.0000000,0.0000000,73.3800300); //
- CreateDynamicObject(19431,303.7749300,1701.1378200,2046.9499500,0.0000000,0.0000000,99.3600500); //
- CreateDynamicObject(19431,305.2196000,1701.6594200,2046.9499500,0.0000000,0.0000000,120.8400300); //
- CreateDynamicObject(19431,306.5421100,1702.4554400,2046.9499500,0.0000000,0.0000000,120.8400300); //
- CreateDynamicObject(19431,307.6550300,1703.4969500,2046.9499500,0.0000000,0.0000000,145.3200700); //
- CreateDynamicObject(19431,308.4859900,1704.8344700,2046.9499500,0.0000000,0.0000000,150.6601100); //
- CreateDynamicObject(19431,308.4835500,1705.3800000,2046.9499500,0.0000000,0.0000000,178.1400500); //
- CreateDynamicObject(19431,308.4970400,1706.6167000,2046.9499500,0.0000000,0.0000000,181.7400700); //
- CreateDynamicObject(19353,307.5458100,1719.7481700,2039.9599600,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19353,307.4046000,1719.7481700,2039.9599600,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19353,307.2399000,1719.7481700,2039.9599600,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19353,307.0947900,1719.7481700,2039.9599600,0.0000000,180.0000000,0.0000000); //
- CreateDynamicObject(19353,307.3073100,1719.4580100,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(19353,307.3073100,1719.6187700,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(19353,307.3073100,1719.7796600,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(19353,307.3073100,1719.9500700,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(19353,307.3073100,1720.1167000,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(19353,307.3073100,1719.3175000,2039.9599600,0.0000000,180.0000000,90.0000000); //
- CreateDynamicObject(2008,297.5231900,1724.2286400,2041.7071500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(2008,297.5220300,1716.8732900,2041.7071500,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(3397,297.4426000,1719.0638400,2041.7071500,0.0000000,0.0000000,0.0000000); //
- CreateDynamicObject(1937,270.6657700,1727.5871600,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.2018100,1702.7998000,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,292.8327900,1709.2722200,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.3310500,1712.3391100,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.6891800,1711.8839100,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,313.7886700,1721.4311500,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.3681900,1721.8647500,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,314.2639500,1730.9770500,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.9994500,1730.9475100,2048.6298800,0.0000000,90.0000000,0.0000000); //
- CreateDynamicObject(19377,303.1025400,1740.3638900,2048.6298800,0.0000000,90.0000000,0.0000000); //
- // Idlewood gas station objects
- CreateDynamicObject(970, 1942.256469, -1767.598266, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1942.256469, -1771.718627, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1942.256469, -1775.848876, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1942.256469, -1777.948974, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1941.095825, -1777.948974, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1941.096191, -1775.848876, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1941.096679, -1771.718627, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(970, 1941.095703, -1767.598266, 13.092811, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1215, 1941.625610, -1780.841918, 13.160593, 0.000000, 0.000000, 95.991020);
- CreateDynamicObject(1215, 1941.636230, -1765.047241, 13.160593, 0.000000, 0.000000, 95.991020);
- CreateDynamicObject(1291, 1928.692382, -1767.511352, 13.032809, 0.000000, 0.000000, 90.000000);
- CreateDynamicObject(1287, 1928.503662, -1768.784423, 13.076869, 0.000000, 0.000000, -90.000000);
- CreateDynamicObject(1289, 1928.507202, -1769.368896, 13.092813, 0.000000, 0.000000, -90.228660);
- CreateDynamicObject(1250, 1908.817138, -1782.609863, 13.582806, 0.000000, 0.000000, 90.000000);
- // Pizza stacks objects
- CreateDynamicObject(19121, 2124.371093, -1765.267456, 13.145559, 0.000000, 0.000000, 267.547332);
- CreateDynamicObject(19121, 2124.381347, -1769.873168, 13.145559, 0.000000, 0.000000, 267.547332);
- CreateDynamicObject(19121, 2124.396484, -1774.649047, 13.145559, 0.000000, 0.000000, 267.547332);
- CreateDynamicObject(19121, 2124.419677, -1779.435668, 13.145559, 0.000000, 0.000000, 267.547332);
- CreateDynamicObject(19121, 2124.382568, -1784.029174, 13.145559, 0.000000, 0.000000, 267.547332);
- CreateDynamicObject(1346, 2122.608886, -1790.332153, 13.887385, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(1256, 2119.659667, -1790.556152, 13.200844, 0.000000, 0.000000, -90.000000);
- CreateDynamicObject(1285, 2106.148193, -1790.754638, 13.098064, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1287, 2106.840820, -1790.747070, 13.090840, 0.000000, 0.000000, 359.374725);
- CreateDynamicObject(970, 2098.605224, -1784.011840, 13.037828, 0.000000, 0.000000, 80.976753);
- CreateDynamicObject(970, 2099.258789, -1779.893310, 13.037828, 0.000000, 0.000000, 80.976753);
- CreateDynamicObject(970, 2099.906738, -1775.825195, 13.037828, 0.000000, 0.000000, 80.976753);
- CreateDynamicObject(970, 2100.548583, -1771.775146, 13.037828, 0.000000, 0.000000, 80.976753);
- CreateDynamicObject(970, 2101.199462, -1767.676147, 13.037828, 0.000000, 0.000000, 80.976753);
- CreateDynamicObject(970, 2100.351318, -1786.065185, 13.037828, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(970, 2104.491455, -1786.065185, 13.037828, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(970, 2108.612792, -1786.065185, 13.037828, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(970, 2112.732666, -1786.065185, 13.037828, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(970, 2116.863769, -1786.065185, 13.037828, 0.000000, 0.000000, 180.000000);
- CreateDynamicObject(970, 2120.975830, -1786.065185, 13.037828, 0.000000, 0.000000, 180.000000);
- // Fixed trailer
- CreateDynamicObject(11015, 4.2412109375, -0.25, 1002.3616333008, 0, 90, 179.99450683594, .interiorid = 2);
- CreateDynamicObject(11015, -3.7464447021484, -0.46751827001572, 1002.3616333008, 0, 90, 0, .interiorid = 2);
- CreateDynamicObject(11015, -2.0341796875, -0.2255859375, 996.58734130859, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(11015, -1.7412109375, -8.029296875, 1002.3616333008, 0, 90, 89.994506835938, .interiorid = 2);
- CreateDynamicObject(11015, 2.349609375, 9.3095703125, 1002.3616333008, 0, 90, 270, .interiorid = 2);
- CreateDynamicObject(976, -8.3762712478638, 5.4238820075989, 998.02801513672, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(976, 10.326154708862, 5.4526047706604, 998.02801513672, 0, 0, 180, .interiorid = 2);
- CreateDynamicObject(976, -0.78860986232758, 4.5294494628906, 998.02801513672, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(976, -9.4923362731934, 2.8067343235016, 998.30328369141, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(968, -0.78987210988998, 3.085230588913, 996.65313720703, 0, 0, 88.375030517578, .interiorid = 2);
- CreateDynamicObject(2424, -1.1989899873734, 2.1414895057678, 998.20440673828, 0, 0, 270, .interiorid = 2);
- CreateDynamicObject(2424, -1.4444495439529, 1.2195072174072, 998.20440673828, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -1.2420085668564, 0.15943863987923, 998.20440673828, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -1.2046113014221, -0.27639570832253, 998.20440673828, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -1.6594306230545, -1.5798351764679, 998.40460205078, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -1.6048280000687, -3.7030065059662, 998.50469970703, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -1.3431304693222, -4.7396554946899, 997.82904052734, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -1.3272333145142, -5.6384997367859, 997.85406494141, 0, 0, 269.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, -0.82665449380875, -5.819974899292, 997.82904052734, 0, 0, 0.07452392578125, .interiorid = 2);
- CreateDynamicObject(2424, 0.90103495121002, -5.7934393882751, 997.82904052734, 0, 0, 0.0714111328125, .interiorid = 2);
- CreateDynamicObject(2424, 1.8007507324219, -5.7772388458252, 997.82904052734, 0, 0, 0.0714111328125, .interiorid = 2);
- CreateDynamicObject(2424, 2.0067005157471, -4.656822681427, 997.82904052734, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 2.0016891956329, -5.5176014900208, 997.82904052734, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 0.095220312476158, -5.8064684867859, 997.85406494141, 0, 0, 0.0714111328125, .interiorid = 2);
- CreateDynamicObject(2424, 1.9964281320572, -1.4732304811478, 997.82904052734, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 2.0242736339569, -0.59229171276093, 997.82904052734, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 1.105211853981, -0.25799462199211, 997.82904052734, 0, 0, 180, .interiorid = 2);
- CreateDynamicObject(2424, 0.85449481010437, -0.25893545150757, 997.82904052734, 0, 0, 179.99450683594, .interiorid = 2);
- CreateDynamicObject(2424, 0.94933843612671, 0.93138349056244, 998.40460205078, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(2424, 1.9278947114944, 1.8640511035919, 998.40386962891, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 1.912776350975, 2.7815411090851, 998.40386962891, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 1.9282813072205, 3.7311086654663, 998.40386962891, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2424, 0.94268548488617, 0.38233369588852, 998.40460205078, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(2424, 1.8336682319641, 0.42996874451637, 998.40460205078, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(1814, -0.070350080728531, -4.9489212036133, 998.45343017578, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(2108, 0.87250107526779, -1.5103777647018, 997.35357666016, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(2738, -1.3212617635727, 5.0136914253235, 998.98120117188, 0, 0, 0, .interiorid = 2);
- CreateDynamicObject(2558, -0.45861941576004, 3.3949182033539, 999.67913818359, 0, 0, 90, .interiorid = 2);
- CreateDynamicObject(2558, -1.1560896635056, 4.4181189537048, 999.70416259766, 0, 0, 270, .interiorid = 2);
- CreateDynamicObject(1745, 2.4512000083923, 6.3230948448181, 998.07806396484, 0, 0, 90, .interiorid = 2);
- // Casino interior (Credits: Lance)
- CreateObject(14777, 1095.62341, 19.60990, 999.67188, 360.00000, 0.00000, 0.00000);
- CreateObject(19461, 1088.61060, 28.64991, 1001.41998, 0.00000, 0.00000, 0.00000);
- CreateObject(19461, 1088.60901, 19.09576, 1001.41998, 0.00000, 0.00000, 0.00000);
- CreateObject(19461, 1088.60901, 19.09580, 1004.90997, 180.00000, 0.00000, 0.00000);
- CreateObject(19461, 1088.61060, 28.64990, 1004.90997, 180.00000, 0.00000, 0.00000);
- CreateObject(19450, 1086.98096, 25.14653, 1000.74048, 0.00000, 90.00000, 0.00000);
- CreateObject(19450, 1086.97839, 19.32791, 1000.74048, 0.00000, 90.00000, 0.00000);
- CreateObject(19450, 1086.97839, 19.32790, 1002.45001, 0.00000, 90.00000, 0.00000);
- CreateObject(19450, 1086.98096, 25.14650, 1002.45001, 0.00000, 90.00000, 0.00000);
- CreateObject(1838, 1088.67651, 27.62889, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateObject(1838, 1088.67065, 26.70870, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateObject(1838, 1088.64441, 25.78710, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateObject(1838, 1088.64148, 19.15041, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateObject(1838, 1088.64099, 18.17435, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateObject(1838, 1088.64563, 17.25409, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateObject(19825, 1093.04260, 29.57410, 1002.50000, 0.00000, 0.00000, 0.00000);
- CreateObject(2755, 1097.24146, 31.52200, 1001.20001, 0.00000, 0.00000, -90.00000);
- CreateObject(2008, 1097.78552, 31.04761, 999.68158, 0.00000, 0.00000, 90.00000);
- CreateObject(2700, 1099.47974, 30.33538, 1002.00000, 0.00000, 0.00000, 132.17999);
- CreateObject(2921, 1092.42932, 30.16140, 1002.29999, 0.00000, 0.00000, 612.05939);
- CreateObject(1892, 1095.71838, 29.82068, 999.68146, 0.00000, 0.00000, 0.00000);
- CreateObject(1892, 1094.51782, 29.82010, 999.68146, 0.00000, 0.00000, 0.00000);
- CreateObject(2879, 1091.57410, 32.46852, 1000.71722, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.66467, 33.19600, 1000.76001, 0.00000, 0.00000, -90.00000);
- CreateObject(19810, 1091.67126, 32.83610, 1000.76001, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 32.83610, 1001.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 33.19610, 1001.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 33.55610, 1001.00000, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 33.55610, 1000.76001, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 33.55610, 1000.52002, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 33.19610, 1000.52002, 0.00000, 0.00000, 90.00000);
- CreateObject(19810, 1091.67126, 32.83610, 1000.52002, 0.00000, 0.00000, 90.00000);
- CreateObject(6978, 1141.61914, -15.83100, 1020.14001, 0.00000, 0.00000, -180.00000);
- CreateObject(19474, 1087.33521, 8.58034, 1000.25000, 0.00000, 0.00000, 0.00000);
- CreateObject(1671, 1089.11536, 9.18831, 1000.08002, 0.00000, 0.00000, -90.00004);
- CreateObject(1671, 1089.07861, 7.91157, 1000.08002, 0.00000, 0.00000, -90.00004);
- CreateObject(1671, 1087.31970, 6.12466, 1000.08002, 0.00000, 0.00000, -180.00011);
- CreateObject(1671, 1085.70862, 7.95822, 1000.08002, 0.00000, 0.00000, 90.00000);
- CreateObject(1671, 1085.70557, 9.18081, 1000.08002, 0.00000, 0.00000, 90.00000);
- CreateObject(1671, 1087.30371, 10.43131, 1000.08002, 0.00000, 0.00000, 1.00000);
- CreateObject(2783, 1111.32788, 19.55914, 1000.29999, 0.00000, 0.00000, -90.00000);
- CreateObject(19461, 1094.83496, 8.58782, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateObject(19461, 1104.05823, 8.58278, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateObject(19461, 1113.63513, 8.58510, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateObject(19461, 1113.66333, 8.58510, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateObject(19461, 1104.03882, 8.58509, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateObject(19461, 1094.83496, 8.58780, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateObject(19461, 1094.43994, 8.58700, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateObject(19461, 1094.44873, 8.60245, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateObject(19461, 1089.72144, 3.84820, 1002.53998, 0.00000, 0.00000, 0.00000);
- CreateObject(11686, 1098.77649, 13.99268, 999.65082, 0.00000, 0.00000, 0.00000);
- CreateObject(11686, 1094.01965, 13.99680, 999.65082, 0.00000, 0.00000, 0.00000);
- CreateObject(2188, 1101.82739, 19.62250, 1000.64941, 0.00000, 0.00000, -90.00000);
- CreateObject(2188, 1095.25427, 19.58691, 1000.64941, 0.00000, 0.00000, 90.00000);
- CreateObject(2188, 1103.63574, 17.92224, 1000.64941, 0.00000, 0.00000, 0.00000);
- CreateObject(2188, 1103.63086, 21.27263, 1000.64941, 0.00000, 0.00000, 180.00000);
- CreateObject(19953, 1088.69238, 20.53487, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateObject(19953, 1088.69287, 20.53490, 1004.64001, 180.00000, 0.00000, 90.00000);
- CreateObject(19954, 1088.68958, 23.84310, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateObject(19953, 1088.70349, 23.83603, 1004.64001, 180.00000, 0.00000, 90.00000);
- CreateObject(19954, 1088.68250, 15.49803, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateObject(19953, 1088.70032, 15.50823, 1004.64001, 180.00000, 0.00000, 90.00000);
- CreateObject(19953, 1088.70654, 28.84904, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateObject(19953, 1088.69055, 28.85040, 1004.64001, 180.00000, 0.00000, 90.00000);
- // FBI map (Credits: CoachCarter again)
- objectid = CreateDynamicObject(19377,-501.250,300.000,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-511.745,299.998,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19461,-505.165,306.329,1999.339,324.000,0.000,180.000);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19397,-495.646,309.271,2001.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19377,-490.750,300.000,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19461,-489.238,309.261,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19377,-501.250,314.014,2003.411,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-490.750,314.013,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-490.750,290.365,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-501.250,290.366,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-511.746,290.365,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19380,-511.746,314.016,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(18762,-496.893,309.690,2006.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-505.575,309.691,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19377,-511.745,309.628,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19461,-497.308,306.327,1999.340,323.992,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-505.167,314.022,2001.836,0.000,0.000,359.989);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19397,-506.836,309.271,2001.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19377,-501.250,314.011,2003.500,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-511.745,314.014,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-490.750,309.628,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-501.250,309.628,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19461,-513.241,309.271,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(18762,-521.362,309.688,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-485.183,309.696,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19461,-513.241,309.281,2010.333,0.000,179.994,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19380,-501.244,314.016,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19461,-503.610,309.284,2010.332,0.000,179.994,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-493.979,309.285,2010.332,0.000,179.994,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-484.352,309.285,2010.332,0.000,179.994,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19380,-511.745,299.998,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-511.746,290.365,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-511.745,309.628,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.250,290.365,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.250,299.998,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.250,309.628,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-490.750,299.998,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-490.750,290.365,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-490.750,309.628,2012.168,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19379,-516.906,290.367,2015.834,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-516.906,299.998,2015.834,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-516.906,309.628,2015.834,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-485.587,300.000,2015.834,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-485.587,290.368,2015.834,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-485.587,309.628,2015.834,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-512.177,285.639,2005.337,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-502.547,285.638,2005.337,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-492.917,285.637,2005.337,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-483.285,285.636,2005.337,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-512.177,285.639,2015.834,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-502.547,285.638,2015.834,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-492.917,285.637,2015.834,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19379,-483.285,285.636,2015.834,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19465,-501.250,331.913,2006.139,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(18762,-521.362,313.771,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-505.575,313.771,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-505.575,313.771,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-496.894,313.771,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-485.183,313.771,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19464,-505.205,317.205,2006.136,0.000,0.000,180.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-497.265,317.200,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-513.122,331.913,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-495.324,331.917,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-515.969,314.357,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19377,-501.244,323.640,2003.500,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-511.745,323.640,2003.500,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-490.750,323.640,2003.500,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19465,-497.265,323.135,2006.139,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19465,-505.205,323.138,2006.139,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-497.265,329.071,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-505.204,329.062,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19377,-490.750,327.220,2003.498,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-501.244,327.220,2003.498,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-511.745,327.220,2003.498,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19465,-501.250,314.357,2006.139,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-495.313,314.357,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-507.186,314.358,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.471,334.757,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.026,334.755,2001.041,0.000,180.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.470,340.690,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.026,334.755,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-507.186,331.913,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19380,-490.750,314.016,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-490.750,323.640,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.244,323.640,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-511.745,323.640,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-490.750,333.265,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.244,333.265,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-511.745,333.265,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-511.745,342.893,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.244,342.893,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-490.750,342.893,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19461,-516.892,314.175,2001.836,0.000,0.000,359.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19377,-511.745,319.259,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-501.250,319.260,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-490.750,319.260,2000.000,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19461,-512.164,318.903,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-502.536,318.903,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-492.907,318.902,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-483.278,318.903,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-497.298,314.188,2001.836,0.000,0.000,359.989);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-485.596,314.180,2001.836,0.000,0.000,359.989);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19380,-510.503,314.175,2003.411,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-520.994,314.024,2003.411,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-491.967,314.178,2003.411,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-481.475,314.173,2003.411,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19464,-489.377,331.913,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-515.969,329.071,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-486.535,329.070,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-486.535,323.135,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-486.535,317.200,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-515.969,317.200,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-489.376,314.357,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-515.969,323.135,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-513.122,314.358,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19446,-496.398,333.779,2003.498,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.028,333.778,2003.498,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-498.790,338.506,1999.418,325.500,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-503.687,338.506,1999.418,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-496.397,336.329,2002.829,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.028,336.329,2002.829,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-498.790,341.059,1998.749,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-503.690,341.059,1998.750,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-496.398,338.877,2002.162,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.028,338.876,2002.162,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-503.690,343.605,1998.082,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-498.789,343.605,1998.082,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-496.398,341.429,2001.498,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.028,341.429,2001.498,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-498.789,346.162,1997.425,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-503.690,346.162,1997.425,325.497,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-496.398,344.040,2000.836,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.028,344.039,2000.836,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-496.400,347.537,2000.836,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.033,347.538,2000.836,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-493.884,335.441,2001.837,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-508.586,335.442,2001.837,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-508.592,337.993,2001.167,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-493.888,337.991,2001.167,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-493.891,340.540,2000.500,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-508.596,340.541,2000.500,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-493.885,343.092,1999.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-508.591,343.092,1999.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-501.235,349.196,1999.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-506.036,351.035,2000.836,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-496.401,351.034,2000.836,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-501.235,350.863,2001.498,0.000,90.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-509.028,349.196,1997.425,325.497,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19446,-493.437,349.196,1997.425,325.491,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 14710, "vgshm3int2", "HSV_3carpet2", -1);
- objectid = CreateDynamicObject(19464,-510.026,340.690,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.470,340.689,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.025,340.689,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.470,334.755,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.470,346.622,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.023,346.626,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.023,352.559,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.468,352.557,2001.041,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.470,346.622,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-492.470,352.557,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.023,352.556,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-510.023,346.622,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-495.313,352.738,2001.041,0.000,179.994,269.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-501.250,352.737,2001.041,0.000,179.994,269.989);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-507.186,352.737,2001.041,0.000,179.994,269.989);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-507.186,352.737,2006.136,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-501.250,352.737,2006.136,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-495.313,352.737,2006.136,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19380,-490.748,352.529,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-501.244,352.529,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-511.745,352.529,2008.671,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(18762,-510.929,299.998,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-510.929,299.998,2001.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-510.929,299.998,2011.078,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-510.929,290.367,2001.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-510.929,290.367,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-510.929,290.367,2011.078,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-491.435,299.998,2001.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-491.435,299.998,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-491.435,299.998,2011.078,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-491.435,290.367,2001.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-491.436,290.367,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-491.435,290.367,2011.078,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19359,-488.410,285.642,2002.609,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-488.409,285.642,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-488.408,285.643,2009.598,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-494.394,285.643,2009.598,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-494.393,285.642,2002.609,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-494.393,285.643,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-513.984,285.643,2009.598,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-513.983,285.643,2002.609,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-513.983,285.643,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-507.854,285.643,2009.598,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-507.853,285.643,2002.609,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-507.852,285.643,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-501.251,285.643,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-501.250,285.642,2009.598,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(18762,-504.367,295.658,2011.078,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-497.747,295.658,2001.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-504.366,295.658,2001.087,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-497.747,295.658,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-497.747,295.658,2011.078,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-504.366,295.658,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(970,-508.135,309.213,2004.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-512.234,309.216,2004.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-515.630,309.231,2004.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-494.348,309.209,2004.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-490.190,309.212,2004.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-487.759,309.209,2004.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(19461,-485.595,300.000,2001.836,0.000,0.000,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-485.595,290.368,2001.836,0.000,0.000,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-485.595,309.628,2010.332,0.000,179.994,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-485.595,290.368,2010.332,0.000,179.994,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-485.595,300.000,2010.332,0.000,179.994,359.978);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-485.595,309.628,2001.836,0.000,0.000,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-516.888,309.628,2001.836,0.000,0.000,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-516.888,300.000,2001.836,0.000,0.000,359.989);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-516.888,290.368,2001.836,0.000,0.000,359.989);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-516.888,290.368,2010.332,0.000,179.994,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-516.888,300.000,2010.332,0.000,179.994,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19461,-516.888,309.628,2010.332,0.000,179.994,359.983);
- SetDynamicObjectMaterial(objectid, 0, 7420, "vgnglfcrse1", "hotel2base2_256", -1);
- objectid = CreateDynamicObject(19377,-480.429,309.628,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-480.429,300.000,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-480.429,290.368,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19464,-483.450,314.358,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(18762,-485.183,299.998,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-485.182,290.367,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-480.985,313.734,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-480.985,309.695,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-480.985,299.998,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-480.985,290.367,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19464,-521.981,301.203,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19465,-521.981,295.270,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-521.980,289.337,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-521.981,283.406,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19380,-480.429,309.628,2008.667,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-480.429,300.000,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-480.429,290.368,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19377,-469.927,290.367,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19464,-521.981,307.136,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-521.981,313.062,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19377,-469.927,300.000,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19464,-468.744,295.270,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-468.744,289.337,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-471.581,286.497,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-477.519,286.497,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19380,-469.927,290.368,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-469.927,300.000,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(970,-516.818,307.128,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-516.818,302.960,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-516.818,298.783,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-516.818,294.606,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-516.818,290.430,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-516.818,286.253,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(19359,-471.091,286.545,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-478.390,286.542,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-474.742,286.538,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19377,-522.054,309.628,2003.503,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-522.054,300.000,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-522.054,290.368,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19379,-521.804,285.638,2005.337,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19380,-522.054,309.628,2008.667,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-522.054,300.000,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-522.054,290.368,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(18762,-521.362,299.998,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-521.362,290.367,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19464,-521.903,314.358,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(18762,-517.299,313.771,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-517.299,309.688,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-517.299,299.998,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-517.299,290.367,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(19464,-480.611,313.062,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-480.611,307.136,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-480.611,301.202,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19465,-480.610,295.270,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-480.610,289.337,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-480.610,283.405,2006.136,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19377,-532.554,300.000,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19377,-532.554,290.368,2003.499,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 16640, "a51", "ws_stationfloor", -1);
- objectid = CreateDynamicObject(19464,-525.072,286.497,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-531.002,297.161,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-533.844,289.337,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-533.844,295.270,2006.136,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-525.072,297.161,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19464,-531.002,286.496,2006.136,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ab_kitchunit2", -1);
- objectid = CreateDynamicObject(19380,-532.554,300.000,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19380,-532.554,290.368,2008.668,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14526, "sweetsmain", "ah_whitpanelceil", -1);
- objectid = CreateDynamicObject(19359,-524.174,286.545,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-531.679,286.537,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19359,-527.971,286.536,2006.104,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 10041, "archybuild10", "bank_sfe2", -1);
- objectid = CreateDynamicObject(19395,-506.837,309.284,2001.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-513.254,309.284,2001.836,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-513.545,314.021,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-505.176,314.189,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-510.075,318.891,2001.836,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(970,-485.663,307.128,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-485.665,302.960,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-485.665,298.783,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-485.665,294.606,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-485.664,290.430,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(970,-485.664,286.253,2004.136,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 3820, "boxhses_sfsx", "ws_ irongate_white", 0);
- objectid = CreateDynamicObject(1502,-521.905,294.505,2003.579,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(1502,-480.641,294.502,2003.578,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(1502,-500.484,314.325,2003.583,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(1502,-506.050,309.289,2000.079,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(1502,-494.860,309.286,2000.079,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(19172,-513.949,314.229,2005.329,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 2266, "picture_frame", "CJ_PAINTING14", -1);
- objectid = CreateDynamicObject(19172,-508.878,314.239,2005.329,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 2266, "picture_frame", "CJ_PAINTING11", -1);
- objectid = CreateDynamicObject(19172,-493.697,314.230,2005.329,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 2266, "picture_frame", "CJ_PAINTING28", -1);
- objectid = CreateDynamicObject(19172,-488.295,314.232,2005.329,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 2266, "picture_frame", "CJ_PAINTING30", -1);
- objectid = CreateDynamicObject(19459,-506.851,318.292,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-506.777,313.790,2000.162,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(1492,-508.450,313.790,2000.162,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-508.526,318.292,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-510.123,313.790,2000.162,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-510.199,318.292,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-511.795,313.790,2000.162,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-511.869,318.292,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-513.469,313.790,2000.162,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19452,-501.222,290.527,2000.009,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14534, "ab_wooziea", "ab_tileDiamond", -1);
- objectid = CreateDynamicObject(19452,-501.222,300.160,2000.009,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14534, "ab_wooziea", "ab_tileDiamond", -1);
- objectid = CreateDynamicObject(19452,-501.190,314.020,2003.505,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14534, "ab_wooziea", "ab_tileDiamond", -1);
- objectid = CreateDynamicObject(19452,-501.190,323.650,2003.505,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14534, "ab_wooziea", "ab_tileDiamond", -1);
- objectid = CreateDynamicObject(19452,-501.184,327.217,2003.501,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14534, "ab_wooziea", "ab_tileDiamond", -1);
- objectid = CreateDynamicObject(1492,-495.692,313.790,2000.162,0.000,0.000,180.000);
- SetDynamicObjectMaterial(objectid, 0, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-497.287,314.184,2001.836,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-492.385,318.899,2001.836,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-495.619,318.292,2001.836,0.000,0.000,180.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-494.018,313.790,2000.162,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-493.944,318.292,2001.836,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-492.346,313.790,2000.162,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-492.270,318.292,2001.836,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-490.671,313.790,2000.162,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-490.596,318.292,2001.836,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(1492,-488.997,313.790,2000.162,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 2, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 3, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- SetDynamicObjectMaterial(objectid, 4, 14789, "ab_sfgymmain", "ab_panelWall1", 0);
- objectid = CreateDynamicObject(19459,-488.929,314.179,2001.836,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19459,-489.222,309.282,2001.836,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(19395,-495.645,309.282,2001.836,0.000,0.000,270.000);
- SetDynamicObjectMaterial(objectid, 0, 8486, "ballys02", "walltiles_128", -1);
- objectid = CreateDynamicObject(18762,-505.825,319.372,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-513.284,326.922,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-505.833,326.923,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(18762,-513.284,319.434,2006.084,0.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 15048, "labigsave", "AH_fancyceil", -1);
- objectid = CreateDynamicObject(1502,-505.127,322.368,2003.578,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(19353,-491.762,331.872,2006.168,90.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 12853, "cunte_gas01", "starspangban1_256", -1);
- objectid = CreateDynamicObject(1502,-497.295,322.369,2003.578,0.000,0.000,89.994);
- SetDynamicObjectMaterial(objectid, 0, 3603, "bevmans01_la", "lasbevcit7", 0);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(1502,-500.485,331.878,2003.583,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 1, 3603, "bevmans01_la", "lasbevcit7", 0);
- objectid = CreateDynamicObject(19445,-475.669,297.016,2002.682,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19445,-466.037,297.016,2002.682,0.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19445,-475.669,297.016,2009.530,0.000,180.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14581, "ab_mafiasuitea", "ab_wood01", 0);
- objectid = CreateDynamicObject(19445,-466.044,297.016,2009.530,0.000,179.994,90.000);
- SetDynamicObjectMaterial(objectid, 0, 14581, "ab_mafiasuitea", "ab_wood01", 0);
- objectid = CreateDynamicObject(19445,-480.397,301.742,2005.334,0.000,0.000,180.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19445,-480.399,301.740,2006.837,0.000,180.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14581, "ab_mafiasuitea", "ab_wood01", 0);
- objectid = CreateDynamicObject(19445,-468.960,301.743,2005.334,0.000,0.000,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19445,-468.957,301.743,2006.837,0.000,179.994,179.994);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19445,-475.697,301.890,2005.334,0.000,0.000,269.994);
- SetDynamicObjectMaterial(objectid, 0, 3925, "weemap", "skyclouds", 0);
- objectid = CreateDynamicObject(19445,-466.069,301.889,2005.334,0.000,0.000,269.989);
- SetDynamicObjectMaterial(objectid, 0, 14581, "ab_mafiasuitea", "ab_wood01", 0);
- objectid = CreateDynamicObject(19445,-475.490,301.894,2006.837,0.000,179.994,269.994);
- SetDynamicObjectMaterial(objectid, 0, 3925, "weemap", "skyclouds", 0);
- objectid = CreateDynamicObject(19445,-465.865,301.894,2006.837,0.000,179.994,269.989);
- SetDynamicObjectMaterial(objectid, 0, 3925, "weemap", "skyclouds", 0);
- objectid = CreateDynamicObject(19375,-475.283,301.747,2004.340,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19375,-464.786,301.917,2004.340,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19375,-464.785,301.917,2007.869,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19375,-475.283,301.746,2007.869,0.000,90.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(953,-474.304,300.665,2005.326,8.000,0.000,0.000);
- SetDynamicObjectMaterial(objectid, 0, 14788, "ab_sfgymbits01", "lockers", 0);
- objectid = CreateDynamicObject(19353,-531.632,297.121,2005.936,90.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 12853, "cunte_gas01", "starspangban1_256", -1);
- objectid = CreateDynamicObject(19353,-524.247,297.117,2005.936,90.000,0.000,90.000);
- SetDynamicObjectMaterial(objectid, 0, 12853, "cunte_gas01", "starspangban1_256", -1);
- objectid = CreateDynamicObject(19360,-501.199,285.668,2001.835,0.000,0.000,-90.199);
- SetDynamicObjectMaterial(objectid, 0, 9524, "blokmodb", "lombard_build5_3", -1);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- CreateDynamicObject(14394,-501.250,305.927,2000.889,0.000,0.000,90.000);
- CreateDynamicObject(14394,-501.250,308.159,2002.509,0.000,0.000,90.000);
- CreateDynamicObject(14387,-501.235,336.647,2002.593,0.000,0.000,90.000);
- CreateDynamicObject(14387,-501.235,339.197,2001.926,0.000,0.000,90.000);
- CreateDynamicObject(14387,-501.235,341.742,2001.256,0.000,0.000,90.000);
- CreateDynamicObject(14387,-501.235,344.316,2000.593,0.000,0.000,90.000);
- CreateDynamicObject(14387,-507.170,351.622,2000.587,0.000,0.000,180.000);
- CreateDynamicObject(14387,-495.300,351.640,2000.587,0.000,0.000,359.994);
- CreateDynamicObject(2173,-496.055,342.658,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-509.424,342.660,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-494.095,342.658,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-509.424,334.957,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-498.019,340.078,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(2173,-498.019,337.529,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(2173,-496.055,340.078,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(2173,-496.055,337.529,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(2173,-496.055,334.956,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-494.095,340.078,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(2173,-494.095,334.956,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-498.018,342.657,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-507.460,342.658,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-505.497,342.658,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-505.497,340.078,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(2173,-505.497,337.529,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(2173,-498.018,334.956,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-507.460,340.078,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(2173,-507.460,337.529,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(2173,-505.496,334.956,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-509.424,340.078,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(2173,-509.424,337.529,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(2173,-507.460,334.956,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-502.898,349.690,2001.583,0.000,0.000,180.000);
- CreateDynamicObject(1722,-497.350,340.934,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2205,-500.601,349.696,2001.583,0.000,0.000,179.994);
- CreateDynamicObject(2173,-498.647,349.679,2001.583,0.000,0.000,179.994);
- CreateDynamicObject(11245,-505.993,351.096,2006.917,0.000,0.000,270.000);
- CreateDynamicObject(11245,-502.833,351.096,2006.917,0.000,0.000,270.000);
- CreateDynamicObject(11245,-500.005,351.096,2006.917,0.000,0.000,270.000);
- CreateDynamicObject(11245,-496.872,351.096,2006.917,0.000,0.000,270.000);
- CreateDynamicObject(1722,-495.657,340.899,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-493.691,338.308,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(1722,-493.663,341.013,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(2173,-494.094,337.529,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-495.647,338.295,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(1722,-497.572,338.325,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(1722,-505.158,338.226,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(1722,-506.966,338.216,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(1722,-508.876,338.238,2002.249,0.000,0.000,0.000);
- CreateDynamicObject(1722,-508.858,335.632,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-507.046,335.575,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-505.011,335.623,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-504.949,332.985,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-507.118,332.958,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-497.503,332.859,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-509.057,332.876,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-497.505,335.625,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-495.518,332.871,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-493.611,332.895,2003.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-495.479,335.597,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-493.690,335.589,2002.916,0.000,0.000,0.000);
- CreateDynamicObject(1722,-507.079,340.735,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-505.014,340.826,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-508.930,340.778,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1715,-503.514,351.144,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1714,-501.346,351.187,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1722,-501.292,296.928,2000.094,0.000,0.000,189.997);
- CreateDynamicObject(2008,-505.821,325.097,2003.587,0.000,0.000,179.994);
- CreateDynamicObject(2207,-502.128,295.188,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(1239,-501.190,295.062,2000.477,0.000,0.000,0.000);
- CreateDynamicObject(1726,-509.894,291.384,2000.086,0.000,0.000,180.000);
- CreateDynamicObject(1726,-511.944,298.979,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(1726,-509.924,301.009,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(1726,-511.902,289.332,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(1726,-492.449,289.346,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(1726,-492.454,298.984,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(1726,-490.440,301.019,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(1726,-490.416,291.381,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(1808,-510.232,299.927,2000.086,0.000,0.000,90.000);
- CreateDynamicObject(1808,-510.252,290.338,2000.086,0.000,0.000,90.000);
- CreateDynamicObject(1808,-490.769,290.341,2000.086,0.000,0.000,90.000);
- CreateDynamicObject(1808,-490.752,299.972,2000.086,0.000,0.000,90.000);
- CreateDynamicObject(1808,-511.598,300.029,2000.086,0.000,0.000,270.000);
- CreateDynamicObject(1808,-511.592,290.369,2000.086,0.000,0.000,270.000);
- CreateDynamicObject(1808,-492.049,290.372,2000.086,0.000,0.000,270.000);
- CreateDynamicObject(1808,-492.131,300.027,2000.086,0.000,0.000,270.000);
- CreateDynamicObject(11245,-505.480,308.692,2010.516,0.000,0.000,270.000);
- CreateDynamicObject(11245,-502.476,308.692,2010.516,0.000,0.000,270.000);
- CreateDynamicObject(11245,-499.639,308.692,2010.516,0.000,0.000,270.000);
- CreateDynamicObject(11245,-496.802,308.692,2010.516,0.000,0.000,270.000);
- CreateDynamicObject(2206,-475.517,288.815,2003.584,0.000,0.000,359.989);
- CreateDynamicObject(1714,-474.475,287.171,2003.584,0.000,0.000,200.000);
- CreateDynamicObject(14455,-469.067,287.296,2005.256,0.000,0.000,90.000);
- CreateDynamicObject(14455,-533.556,291.635,2005.256,0.000,0.000,270.000);
- CreateDynamicObject(1763,-472.888,291.811,2003.584,0.000,0.000,270.000);
- CreateDynamicObject(1763,-475.950,290.536,2003.584,0.000,0.000,90.000);
- CreateDynamicObject(1763,-475.067,293.049,2003.584,0.000,0.000,0.000);
- CreateDynamicObject(2614,-468.920,289.483,2007.767,0.000,0.000,270.000);
- CreateDynamicObject(2614,-480.441,289.441,2007.767,0.000,0.000,90.000);
- CreateDynamicObject(2206,-528.786,288.816,2003.584,0.000,0.000,359.989);
- CreateDynamicObject(2828,-475.322,288.976,2004.519,0.000,0.000,209.998);
- CreateDynamicObject(2357,-527.883,291.408,2003.979,0.000,0.000,90.000);
- CreateDynamicObject(1714,-527.895,287.085,2003.584,0.000,0.000,199.995);
- CreateDynamicObject(14455,-480.341,291.641,2005.256,0.000,0.000,270.000);
- CreateDynamicObject(14455,-522.257,287.295,2005.256,0.000,0.000,90.000);
- CreateDynamicObject(1715,-498.954,351.036,2001.583,0.000,0.000,0.000);
- CreateDynamicObject(1715,-526.072,289.988,2003.584,0.000,0.000,270.000);
- CreateDynamicObject(1715,-525.940,291.398,2003.584,0.000,0.000,270.000);
- CreateDynamicObject(1715,-526.010,292.669,2003.584,0.000,0.000,270.000);
- CreateDynamicObject(1715,-529.577,292.638,2003.584,0.000,0.000,90.000);
- CreateDynamicObject(1715,-529.580,291.351,2003.584,0.000,0.000,90.000);
- CreateDynamicObject(1715,-529.591,289.975,2003.584,0.000,0.000,90.000);
- CreateDynamicObject(1715,-527.818,294.717,2003.584,0.000,0.000,0.000);
- CreateDynamicObject(14662,-510.126,311.131,2001.984,0.000,0.000,0.000);
- CreateDynamicObject(14662,-514.033,311.130,2001.985,0.000,0.000,0.000);
- CreateDynamicObject(14629,-509.615,302.830,2011.079,0.000,0.000,90.000);
- CreateDynamicObject(1999,-506.763,314.989,2003.584,0.000,0.000,180.000);
- CreateDynamicObject(2009,-507.825,317.864,2003.584,0.000,0.000,0.000);
- CreateDynamicObject(2183,-510.899,328.456,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2207,-492.803,326.635,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2207,-490.949,328.561,2003.587,0.000,0.000,180.000);
- CreateDynamicObject(2608,-505.558,317.914,2004.296,0.000,0.000,270.000);
- CreateDynamicObject(2161,-515.356,331.790,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2162,-512.247,331.799,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2163,-510.473,331.782,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2164,-514.021,331.776,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2167,-513.372,314.407,2003.584,0.000,0.000,180.000);
- CreateDynamicObject(2197,-514.127,315.799,2003.584,0.000,0.000,180.000);
- CreateDynamicObject(1715,-493.541,325.932,2003.587,0.000,0.000,132.000);
- CreateDynamicObject(2008,-506.838,321.281,2003.587,0.000,0.000,359.994);
- CreateDynamicObject(3857,-509.070,319.359,2006.499,0.000,0.000,45.000);
- CreateDynamicObject(3857,-509.069,319.358,2006.499,0.000,0.000,44.994);
- CreateDynamicObject(3857,-516.778,319.446,2008.837,0.000,0.000,44.989);
- CreateDynamicObject(3857,-516.778,319.446,2008.837,0.000,0.000,44.989);
- CreateDynamicObject(3857,-509.069,319.358,2006.499,0.000,0.000,224.994);
- CreateDynamicObject(3857,-509.069,319.358,2006.499,0.000,0.000,224.989);
- CreateDynamicObject(1722,-506.522,317.743,2003.584,0.000,0.000,50.000);
- CreateDynamicObject(1722,-507.459,315.569,2003.586,0.000,0.000,159.998);
- CreateDynamicObject(2009,-510.092,317.863,2003.584,0.000,0.000,0.000);
- CreateDynamicObject(2009,-512.293,317.863,2003.584,0.000,0.000,0.000);
- CreateDynamicObject(1999,-509.031,314.998,2003.584,0.000,0.000,179.994);
- CreateDynamicObject(1999,-511.317,314.997,2003.584,0.000,0.000,179.994);
- CreateDynamicObject(1722,-509.278,318.411,2003.584,0.000,0.000,359.998);
- CreateDynamicObject(1722,-511.592,317.627,2003.584,0.000,0.000,349.994);
- CreateDynamicObject(2608,-505.559,316.032,2004.296,0.000,0.000,270.000);
- CreateDynamicObject(3857,-509.222,326.920,2006.499,0.000,0.000,44.994);
- CreateDynamicObject(3857,-509.222,326.919,2006.499,0.000,0.000,44.994);
- CreateDynamicObject(3857,-509.222,326.919,2006.499,0.000,0.000,44.994);
- CreateDynamicObject(3857,-509.222,326.919,2006.499,0.000,0.000,224.994);
- CreateDynamicObject(3857,-509.222,326.919,2006.499,0.000,0.000,224.989);
- CreateDynamicObject(3857,-517.054,326.933,2008.837,0.000,0.000,44.994);
- CreateDynamicObject(3857,-517.054,326.932,2008.837,0.000,0.000,44.989);
- CreateDynamicObject(2197,-514.815,315.803,2003.584,0.000,0.000,179.994);
- CreateDynamicObject(2197,-515.495,315.803,2003.584,0.000,0.000,179.994);
- CreateDynamicObject(1722,-510.372,327.773,2003.584,0.000,0.000,349.991);
- CreateDynamicObject(1722,-508.373,327.274,2003.584,0.000,0.000,19.991);
- CreateDynamicObject(1722,-508.255,330.319,2003.584,0.000,0.000,149.989);
- CreateDynamicObject(1722,-510.285,330.260,2003.584,0.000,0.000,189.985);
- CreateDynamicObject(2162,-508.696,331.799,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2167,-506.924,331.783,2003.584,0.000,0.000,359.994);
- CreateDynamicObject(2167,-506.005,331.782,2003.584,0.000,0.000,359.989);
- CreateDynamicObject(2737,-505.368,328.770,2004.922,0.000,0.000,270.000);
- CreateDynamicObject(2008,-508.200,325.098,2003.587,0.000,0.000,179.994);
- CreateDynamicObject(2008,-510.575,325.101,2003.587,0.000,0.000,179.994);
- CreateDynamicObject(1722,-506.582,326.195,2003.584,0.000,0.000,169.989);
- CreateDynamicObject(1722,-508.925,326.795,2003.584,0.000,0.000,179.985);
- CreateDynamicObject(1722,-510.858,325.773,2003.584,0.000,0.000,199.983);
- CreateDynamicObject(2008,-509.216,321.290,2003.587,0.000,0.000,359.989);
- CreateDynamicObject(2008,-511.651,321.295,2003.587,0.000,0.000,359.989);
- CreateDynamicObject(1722,-511.217,320.765,2003.584,0.000,0.000,349.978);
- CreateDynamicObject(1722,-508.540,320.782,2003.584,0.000,0.000,9.974);
- CreateDynamicObject(1722,-505.908,319.966,2003.584,0.000,0.000,9.970);
- CreateDynamicObject(1715,-491.830,325.175,2003.587,0.000,0.000,183.997);
- CreateDynamicObject(1715,-489.360,327.700,2003.587,0.000,0.000,273.990);
- CreateDynamicObject(1715,-490.335,329.455,2003.587,0.000,0.000,321.988);
- CreateDynamicObject(1715,-491.915,329.925,2003.587,0.000,0.000,1.987);
- CreateDynamicObject(1715,-493.561,329.118,2003.587,0.000,0.000,49.983);
- CreateDynamicObject(1715,-494.268,327.569,2003.587,0.000,0.000,91.982);
- CreateDynamicObject(14455,-486.839,326.770,2005.256,0.000,0.000,90.000);
- CreateDynamicObject(14455,-497.005,331.117,2005.256,0.000,0.000,270.000);
- CreateDynamicObject(2332,-468.703,287.350,2004.047,0.000,0.000,270.000);
- CreateDynamicObject(2518,-507.915,309.865,2000.086,0.000,0.000,180.000);
- CreateDynamicObject(2518,-509.937,309.868,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(2518,-511.819,309.868,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(14662,-493.548,311.131,2001.985,0.000,0.000,0.000);
- CreateDynamicObject(14662,-489.589,311.131,2001.985,0.000,0.000,0.000);
- CreateDynamicObject(2518,-493.351,309.868,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(2518,-491.321,309.867,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(2518,-489.342,309.868,2000.086,0.000,0.000,179.994);
- CreateDynamicObject(2528,-512.723,318.299,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-511.057,318.303,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-509.382,318.315,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-507.736,318.329,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-506.044,318.338,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-496.430,318.316,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-494.751,318.324,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-493.079,318.320,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-491.421,318.313,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(2528,-489.777,318.307,2000.086,0.000,0.000,0.000);
- CreateDynamicObject(18075,-501.157,323.420,2008.584,0.000,0.000,0.000);
- CreateDynamicObject(18075,-497.575,341.566,2008.584,0.000,0.000,0.000);
- CreateDynamicObject(18075,-504.621,341.554,2008.584,0.000,0.000,0.000);
- CreateDynamicObject(18075,-492.025,323.225,2008.584,0.000,0.000,0.000);
- CreateDynamicObject(18075,-512.109,323.089,2008.584,0.000,0.000,90.000);
- CreateDynamicObject(19171,-527.179,297.050,2005.137,90.000,0.000,0.000);
- CreateDynamicObject(19170,-528.677,297.050,2005.136,90.000,0.000,0.000);
- CreateDynamicObject(19169,-527.179,297.050,2006.635,90.000,0.000,0.000);
- CreateDynamicObject(19168,-528.677,297.050,2006.635,90.000,0.000,0.000);
- CreateDynamicObject(3858,-473.204,296.937,2007.251,0.000,0.000,225.000);
- CreateDynamicObject(3858,-473.204,296.936,2007.251,0.000,0.000,225.000);
- CreateDynamicObject(7616,-410.319,364.022,2003.693,0.000,0.000,0.000);
- CreateDynamicObject(758,-477.954,300.295,2004.840,0.000,0.000,260.000);
- CreateDynamicObject(746,-470.444,300.428,2004.855,346.000,0.000,210.000);
- CreateDynamicObject(953,-472.639,300.774,2005.411,8.998,0.000,340.000);
- CreateDynamicObject(1600,-478.188,299.345,2006.069,0.000,0.000,270.000);
- CreateDynamicObject(1600,-470.191,298.837,2005.401,0.000,0.000,110.000);
- CreateDynamicObject(1599,-475.460,300.450,2005.854,0.000,0.000,280.000);
- CreateDynamicObject(1599,-471.358,301.214,2006.522,0.000,0.000,109.997);
- CreateDynamicObject(1601,-474.458,298.011,2005.208,0.000,0.000,270.000);
- CreateDynamicObject(1601,-477.457,299.380,2005.208,0.000,0.000,110.000);
- CreateDynamicObject(1605,-474.368,300.782,2006.095,0.000,0.000,270.000);
- CreateDynamicObject(1606,-475.851,298.334,2006.951,0.000,0.000,90.000);
- CreateDynamicObject(10444,-473.067,301.691,2005.250,90.000,90.000,271.500);
- CreateDynamicObject(3858,-473.204,296.936,2007.251,0.000,0.000,225.000);
- CreateDynamicObject(19166,-468.877,294.637,2005.412,0.000,270.000,0.000);
- CreateDynamicObject(2894,-474.508,288.769,2004.521,0.000,0.000,209.998);
- CreateDynamicObject(14455,-533.559,296.354,2005.256,0.000,0.000,270.000);
- CreateDynamicObject(14455,-496.961,320.560,2005.256,0.000,0.000,270.000);
- CreateDynamicObject(14455,-494.109,314.687,2005.256,0.000,0.000,0.000);
- CreateDynamicObject(14455,-486.799,316.217,2005.256,0.000,0.000,90.000);
- CreateDynamicObject(19166,-486.665,323.611,2005.256,0.000,270.000,0.000);
- CreateDynamicObject(1704,-487.421,314.985,2003.584,0.000,0.000,180.000);
- CreateDynamicObject(1723,-492.858,317.161,2003.584,0.000,0.000,0.000);
- CreateDynamicObject(1704,-495.410,314.950,2003.584,0.000,0.000,179.994);
- CreateDynamicObject(1723,-490.826,318.122,2003.584,0.000,0.000,90.000);
- CreateDynamicObject(1723,-492.871,320.134,2003.584,0.000,0.000,270.000);
- CreateDynamicObject(2001,-491.850,320.303,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2001,-522.320,293.429,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2010,-476.157,292.867,2003.578,0.000,0.000,0.000);
- CreateDynamicObject(2001,-479.968,293.325,2003.587,0.000,0.000,0.000);
- CreateDynamicObject(2010,-472.820,292.955,2003.578,0.000,0.000,0.000);
- CreateDynamicObject(1726,-504.550,317.268,2003.592,0.000,0.000,90.000);
- CreateDynamicObject(1726,-504.566,326.921,2003.592,0.000,0.000,90.000);
- CreateDynamicObject(1726,-497.916,328.834,2003.592,0.000,0.000,270.000);
- CreateDynamicObject(1726,-497.910,319.334,2003.592,0.000,0.000,270.000);
- // Bank interior
- CreateDynamicObject(19380, 1662.48743, -971.75378, 706.51898, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1656.65344, -971.62341, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1658.31506, -973.28998, 701.63879, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1656.65259, -974.96600, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1666.42468, -973.18341, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1668.09167, -971.52069, 701.63879, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1668.08789, -974.84570, 701.63879, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1667.57214, -974.94922, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1657.16797, -974.99103, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(1278, 1663.16296, -976.64099, 700.80029, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1278, 1663.16296, -976.64099, 703.67731, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1278, 1663.16296, -976.64099, 706.39130, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1662.84253, -976.63281, 699.00177, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1660.28625, -976.63782, 699.00378, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1278, 1664.43274, -976.71887, 706.34930, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1666.65210, -976.65454, 702.11121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1662.18835, -976.64697, 702.11121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1657.94739, -976.62915, 702.11121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1278, 1660.03259, -976.68048, 706.34930, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1662.18835, -976.64697, 705.37720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1666.59045, -976.64697, 705.37720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1657.94824, -976.64899, 705.37720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1667.55725, -969.82300, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1657.22937, -969.77875, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1656.33521, -968.05743, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1668.52039, -968.11981, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1665.40320, -967.14172, 701.63678, 90.00000, 0.00000, 55.00000);
- CreateDynamicObject(19454, 1659.46021, -967.08081, 701.63678, 90.00000, 0.00000, -55.00000);
- CreateDynamicObject(19380, 1662.42456, -962.27173, 706.51703, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19391, 1662.37244, -966.14618, 701.82550, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1662.29138, -966.14740, 707.60278, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1662.37500, -971.72113, 700.00342, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1662.43970, -963.05243, 700.00140, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1665.55212, -966.13098, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1667.22107, -964.33282, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1667.22095, -960.95282, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1660.89551, -964.39307, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19380, 1663.72046, -961.21100, 703.62903, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1659.23047, -962.72852, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19370, 1664.28015, -971.68073, 707.10889, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1662.76160, -973.19739, 707.10687, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19370, 1661.23926, -971.67780, 707.10889, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1662.76013, -970.15582, 707.10687, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19443, 1663.48096, -971.70142, 706.37988, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19443, 1662.75806, -972.42108, 706.38190, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19443, 1662.04016, -971.69843, 706.37988, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19443, 1662.76147, -970.98419, 706.38190, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18075, 1662.37048, -970.06836, 706.46777, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2207, 1663.03015, -971.79346, 700.09070, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1727, 1663.31348, -970.20789, 699.95898, 0.00000, 0.00000, -40.00000);
- CreateDynamicObject(1727, 1659.96106, -970.93146, 699.95898, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(1727, 1661.50989, -969.53607, 699.95898, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1714, 1662.10669, -973.59125, 700.05157, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2811, 1661.05359, -973.11829, 699.97162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1663.09033, -973.12018, 699.97162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2200, 1657.44141, -970.53723, 700.08978, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1653.66931, -972.24451, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1653.64197, -974.36877, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1653.65918, -973.32990, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.06738, -972.08447, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.04700, -973.17102, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.07214, -974.26880, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2230, 1661.15503, -966.06073, 705.13647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2230, 1664.17798, -966.06073, 705.12848, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1662.27222, -964.76300, 705.05292, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19370, 1662.46216, -964.76501, 705.05090, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19370, 1662.46216, -964.76501, 706.45093, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(1649, 1662.36194, -966.43878, 707.24719, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(2614, 1662.38245, -966.27612, 703.86688, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2200, 1667.24573, -969.26605, 700.08978, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2811, 1663.83496, -966.64502, 699.97162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1660.88159, -966.68427, 699.97162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1661.58777, -966.17401, 700.06921, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1662.35779, -966.45477, 707.24719, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1649, 1662.35779, -966.48077, 707.24719, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1734, 1662.79236, -971.69281, 706.42902, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1667.21094, -957.63080, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 1662.45776, -953.80481, 700.00342, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19391, 1658.35205, -961.25458, 701.81750, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1658.35767, -962.00018, 700.06921, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1659.23047, -959.72552, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1660.90051, -958.06427, 701.63678, 90.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1662.50964, -956.62701, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1665.89014, -956.62653, 701.63678, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(1726, 1666.37830, -962.08569, 700.08868, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1726, 1666.34082, -958.71960, 700.08868, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1727, 1664.09412, -957.83966, 700.08765, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1727, 1664.97131, -964.99353, 700.08759, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2811, 1666.50635, -965.32239, 699.97162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1666.49377, -957.60059, 699.97162, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2126, 1665.15479, -960.55115, 700.08881, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2126, 1665.19629, -963.32709, 700.08881, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2614, 1667.07581, -961.43964, 702.49182, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19375, 1671.89587, -965.46210, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.90527, -964.59674, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.89502, -958.07025, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.90881, -957.41803, 701.72339, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1671.90002, -961.44330, 704.69342, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19375, 1671.90002, -961.44330, 705.48541, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(2200, 1661.01624, -959.01569, 700.08978, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14596, 1652.60913, -957.46368, 693.38580, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19375, 1662.70935, -963.04932, 688.40442, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1658.96338, -967.07098, 690.17383, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 1662.71594, -970.60370, 688.41443, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1658.95447, -955.35168, 690.21381, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1663.30591, -958.41248, 690.21381, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1665.79163, -962.90070, 690.17383, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1661.68274, -971.20868, 690.17383, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1665.79285, -967.26093, 690.17578, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2206, 1663.32397, -960.97894, 688.45349, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2206, 1661.45435, -961.97198, 688.45148, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2206, 1661.45630, -962.95599, 688.45349, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2206, 1661.45630, -963.92999, 688.45148, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2206, 1661.45630, -964.90399, 688.45349, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2206, 1661.45630, -965.87799, 688.45148, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1714, 1664.47815, -964.20013, 688.49377, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1714, 1664.46436, -962.77960, 688.49377, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1714, 1664.43201, -961.27374, 688.49377, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1714, 1664.47046, -965.76575, 688.49377, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1714, 1660.37378, -961.13538, 688.49377, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1714, 1660.36292, -962.68683, 688.49377, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1714, 1660.31726, -964.14752, 688.49377, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1714, 1660.34314, -965.74756, 688.49377, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1714, 1662.39783, -959.87054, 688.49377, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1662.91016, -956.80499, 689.27472, -0.05300, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1662.68140, -956.75812, 690.17572, -0.05300, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1667.42212, -963.23273, 690.17572, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1667.40771, -963.19348, 689.27472, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1667.42908, -971.07928, 690.17572, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1667.40833, -968.83728, 689.27472, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1661.87451, -972.81970, 689.27472, -0.05300, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1657.31396, -969.12482, 690.17572, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1657.32751, -969.12482, 689.27472, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(2230, 1663.76355, -971.30103, 688.35822, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19448, 1659.08435, -975.93622, 690.17572, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1665.84216, -975.93213, 690.17572, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(2230, 1660.47583, -971.26636, 688.35822, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2811, 1661.30225, -970.88525, 688.45660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1663.53259, -970.78687, 688.45660, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1664.15002, -975.86359, 690.17572, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1660.68494, -975.89722, 690.17572, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(1828, 1662.12476, -968.67163, 688.49323, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1662.24158, -967.92981, 691.94348, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1662.28015, -962.10773, 691.98151, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1657.56604, -961.96283, 688.48071, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19448, 1657.30774, -969.11176, 691.09570, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1659.04810, -975.93469, 691.09570, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1665.78918, -975.92078, 691.09570, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1662.42566, -975.91620, 691.89569, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1667.43506, -966.83893, 691.09570, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1667.44019, -957.22589, 691.09570, -0.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1662.97778, -956.75787, 691.09570, -0.05300, 90.00000, 90.00000);
- CreateDynamicObject(19380, 1663.13403, -961.99518, 691.84302, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1663.08032, -967.48743, 691.84497, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19174, 1659.05225, -967.67047, 690.17877, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19175, 1665.68555, -968.27643, 690.17792, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19172, 1665.68494, -961.49689, 690.19287, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2491, 1663.91870, -968.71417, 687.72620, 0.00000, 0.00000, -47.00000);
- CreateDynamicObject(1952, 1663.73193, -968.88348, 689.70990, 55.00000, 91.00000, -149.00000);
- CreateDynamicObject(3077, 1662.46704, -971.14868, 692.41919, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(2227, 1662.71179, -966.43073, 688.49408, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3077, 1662.48022, -958.49329, 692.41919, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19448, 1660.61646, -956.79962, 694.01569, -90.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1664.19775, -956.79871, 694.01569, -90.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1659.23938, -965.45404, 699.93073, -90.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1659.23938, -964.85797, 699.93073, -90.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1659.23938, -964.26202, 699.93073, -90.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1659.23938, -963.66602, 699.93073, -90.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1659.23938, -963.07001, 699.93073, -90.05300, 90.00000, 0.00000);
- CreateDynamicObject(19448, 1657.34546, -964.39307, 691.09570, -90.05300, 90.00000, 0.00000);
- CreateDynamicObject(1536, 1658.40564, -962.00049, 694.28979, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19391, 1658.35205, -961.25458, 696.00647, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1653.07410, -963.40411, 684.22479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1650.81616, -964.45227, 684.22479, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1656.31763, -956.78729, 684.22479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1661.04724, -961.51617, 684.22479, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19454, 1662.65161, -961.14771, 684.22479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 1657.63232, -961.26575, 682.60437, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19454, 1655.57104, -969.17828, 684.22479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1655.57104, -965.98853, 684.23877, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19391, 1661.24683, -965.98999, 684.43079, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19172, 1658.17444, -965.90759, 684.55719, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1726, 1660.10291, -965.30756, 682.63391, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1727, 1656.93030, -965.29083, 682.63568, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2811, 1657.45129, -965.35327, 682.69244, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2126, 1657.67688, -964.35883, 682.58270, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2614, 1653.20264, -961.37762, 684.42200, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19174, 1659.57642, -961.59302, 684.41058, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19454, 1667.40674, -965.99768, 684.43280, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19391, 1673.69470, -966.00177, 684.43481, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 1660.32056, -970.69043, 682.59747, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1670.82617, -970.70868, 682.59949, -0.00400, 90.00000, 0.06000);
- CreateDynamicObject(19454, 1679.53491, -966.00079, 684.31482, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1655.57483, -970.78229, 684.20892, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1662.68152, -967.01599, 681.80890, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19450, 1667.44470, -971.74622, 681.80890, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 1679.07483, -970.76233, 684.20892, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1667.44470, -971.24622, 681.80890, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 1667.44250, -971.36652, 681.81091, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 1667.41479, -971.46899, 681.80890, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 1667.44470, -971.45221, 681.80688, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 1667.41272, -971.63385, 681.80688, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(19450, 1662.78552, -966.65765, 681.81091, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19450, 1662.87305, -966.41022, 681.80890, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19450, 1663.04565, -966.99860, 681.81091, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19450, 1663.04565, -966.99860, 681.81091, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19450, 1663.14392, -966.97192, 681.81293, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19450, 1657.16846, -976.89392, 684.20892, 0.00000, 0.00000, 48.00000);
- CreateDynamicObject(19450, 1677.52844, -976.71588, 684.20892, 0.00000, 0.00000, -48.00000);
- CreateDynamicObject(19450, 1660.71936, -984.86407, 684.20892, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1673.97595, -984.69043, 684.20892, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 1678.49524, -970.70831, 682.60150, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1673.69922, -978.93152, 682.59747, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1663.19775, -978.88202, 682.59747, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1659.90479, -978.85461, 682.59351, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1672.02271, -987.53003, 682.60748, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1662.30005, -987.55170, 682.60553, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(14413, 1660.40491, -980.61688, 680.50598, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1655.99084, -989.59222, 684.20892, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1678.70947, -989.42102, 684.20490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1672.42834, -996.52631, 684.20490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1665.20630, -996.52954, 684.20490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1679.14075, -996.31305, 684.20490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1680.95544, -992.56982, 684.20490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1655.19873, -996.27271, 684.20490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 1653.71216, -993.49536, 684.20490, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 1655.92603, -992.17084, 682.60150, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1678.53967, -993.41864, 682.60150, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1670.27588, -991.98706, 682.59949, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19379, 1663.10400, -991.85168, 682.60352, -0.00400, 90.00000, 0.00000);
- CreateDynamicObject(19358, 1672.17358, -970.22870, 681.80890, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1672.03430, -970.23053, 681.81091, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.94434, -970.22852, 681.80688, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.86829, -970.22650, 681.80890, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.74036, -970.23053, 681.80292, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1672.17566, -967.54669, 681.80890, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.92444, -967.54138, 681.80688, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1672.03430, -967.54150, 681.81091, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.74036, -967.58447, 681.80292, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.86829, -967.54248, 681.80890, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.57642, -970.21252, 681.80090, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19358, 1671.57642, -967.54248, 681.80090, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(1536, 1670.57324, -964.19226, 682.51721, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1536, 1666.59705, -966.03491, 682.51721, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19176, 1667.35913, -996.42566, 683.93018, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1665.52271, -1001.17371, 683.64270, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1669.21240, -1001.15674, 683.65869, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1668.90662, -998.10468, 685.32269, -0.05300, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1665.97058, -998.10272, 685.33069, -0.05300, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1673.25439, -998.16711, 682.72272, 33.00000, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1661.49133, -998.13934, 682.72272, -33.00000, 90.00000, 90.00000);
- CreateDynamicObject(19448, 1669.65576, -1001.24042, 683.33868, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1670.11609, -1001.24353, 683.02368, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1670.57666, -1001.25226, 682.69373, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1671.03662, -1001.24109, 682.36371, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1671.45862, -1001.24512, 682.18372, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1671.90051, -1001.25153, 681.89868, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1672.30273, -1001.25348, 681.62872, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1672.72717, -1001.24298, 681.35870, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1665.09607, -1001.22498, 683.33868, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1664.65222, -1001.23010, 683.06873, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1664.20837, -1001.23523, 682.76868, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1663.80115, -1001.22870, 682.51367, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1663.37744, -1001.22302, 682.24969, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1662.99268, -1001.23077, 681.99768, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1662.61279, -1001.22302, 681.75171, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1662.18933, -1001.24329, 681.47968, -0.05300, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1670.59705, -975.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1670.84668, -976.46210, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1670.84668, -975.02710, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1671.22705, -975.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1663.99280, -976.46210, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1664.24304, -975.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1663.64502, -975.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1663.99268, -975.02710, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1216, 1664.60999, -975.73181, 683.34930, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1216, 1670.24316, -975.72345, 683.34930, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19435, 1663.99280, -990.46210, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1663.99268, -989.02710, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1664.24304, -989.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1663.64502, -989.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1670.84668, -990.46210, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1670.84668, -989.02710, 684.39661, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19435, 1670.59705, -989.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19435, 1671.22705, -989.74170, 684.39459, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1662.80054, -971.60742, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1662.80249, -971.60938, 685.22662, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1671.95862, -971.66241, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1671.96082, -971.66351, 685.22662, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1668.88403, -971.64197, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1665.77905, -971.68475, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1668.88599, -971.64398, 685.42963, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1665.78113, -971.68683, 685.40161, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1671.99792, -966.36957, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1671.99988, -966.36761, 685.56262, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1662.74365, -966.35168, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1662.74573, -966.34967, 685.32458, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19381, 1667.31580, -982.70880, 682.61493, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1677.32422, -992.69708, 682.60938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1673.82422, -992.69708, 682.60938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1670.32422, -992.69708, 682.60938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1666.82422, -992.69708, 682.60938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1663.32422, -992.69708, 682.60742, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1659.82422, -992.69708, 682.60742, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1657.32422, -992.69708, 682.60938, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1667.32007, -989.64728, 682.61139, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1667.31274, -987.56097, 682.61340, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1667.44006, -976.51031, 682.59943, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1667.43689, -974.11902, 682.60138, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1675.15894, -968.47070, 682.60541, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1675.15552, -971.62988, 682.60339, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1675.14941, -974.82123, 682.60541, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1659.02771, -968.61041, 682.59943, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1659.02771, -971.61041, 682.60138, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1659.02771, -974.61041, 682.59943, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1667.31506, -994.88812, 682.60541, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1216, 1664.62183, -989.77948, 683.34930, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1216, 1670.23364, -989.68671, 683.34930, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19372, 1665.55750, -984.24152, 682.61731, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19372, 1669.06519, -981.03992, 682.61731, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1502, 1672.91052, -965.99878, 682.66650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1660.46240, -966.02490, 682.66650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19373, 1660.72278, -973.38147, 700.00690, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19373, 1664.19324, -970.30255, 700.00690, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19372, 1660.73840, -970.30151, 700.00629, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19372, 1664.19141, -973.38068, 700.00629, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1726, 1654.57568, -993.88953, 682.60760, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1726, 1656.18237, -990.42102, 682.60760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1726, 1658.12073, -995.30109, 682.60760, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(2126, 1656.79932, -993.20648, 682.59167, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1654.74890, -990.55658, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1654.64624, -995.29932, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1660.18701, -991.68616, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1660.21997, -993.80585, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19174, 1653.83386, -992.88977, 684.66608, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2126, 1676.75720, -993.20923, 682.59167, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1726, 1678.39221, -995.32458, 682.60760, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(1726, 1676.31909, -990.28052, 682.60760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1726, 1680.03442, -991.83075, 682.60760, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2811, 1679.71533, -995.15234, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1679.85291, -990.56287, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1674.32520, -991.69720, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1674.31262, -993.74756, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19175, 1680.88062, -992.88879, 684.73419, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1727, 1659.82190, -992.22430, 682.69482, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1727, 1674.90588, -993.20551, 682.69482, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2811, 1669.43213, -990.82062, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1665.22046, -990.83411, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1669.40662, -994.72894, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1665.17786, -994.67572, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1664.38135, -971.64264, 686.28632, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1649, 1667.46509, -971.67499, 686.28632, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1649, 1670.43530, -971.72980, 686.28632, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(9131, 1671.99182, -968.97778, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1671.99268, -968.98340, 685.22662, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1672.07544, -970.30029, 686.36530, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(9131, 1671.99268, -968.98340, 685.22662, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1672.16272, -967.69873, 686.36530, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(1649, 1662.68506, -970.26831, 686.28632, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(9131, 1662.74438, -968.89624, 683.55664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9131, 1662.74194, -968.89771, 685.22662, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 1662.74121, -967.32971, 686.28632, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(2200, 1669.07825, -966.22864, 682.68683, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2200, 1664.39514, -966.23621, 682.68683, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1828, 1667.77917, -968.79425, 682.66248, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1714, 1670.26538, -970.00128, 682.68542, 0.00000, 0.00000, 62.00000);
- CreateDynamicObject(1714, 1664.33838, -970.21857, 682.68542, 0.00000, 0.00000, -62.00000);
- CreateDynamicObject(1714, 1667.39148, -970.04071, 682.68542, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1714, 1670.32922, -967.69934, 682.68542, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1714, 1664.26782, -967.65887, 682.68542, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2811, 1669.55005, -977.65448, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1665.26160, -977.63495, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1808, 1670.90918, -988.73779, 682.69318, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2606, 1669.72595, -966.20422, 685.30310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 1669.72595, -966.20422, 684.84308, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19380, 1677.75940, -993.34680, 685.94501, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1667.43481, -993.30182, 685.96503, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1657.26416, -993.34833, 685.94501, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1664.09070, -983.83752, 685.97498, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1672.86572, -983.84723, 685.97900, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1674.54370, -974.38708, 685.94501, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1674.64111, -970.71228, 685.96503, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1664.31567, -974.47052, 685.98499, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1657.26782, -974.66217, 685.96503, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1657.41858, -965.23651, 686.00500, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1665.27612, -968.87659, 686.02502, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19380, 1654.17944, -961.91632, 685.98499, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19443, 1654.88867, -958.56860, 686.58557, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(4595, 1812.95972, -1071.76428, 686.49622, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4702, 1825.28564, -990.24133, 686.35730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4650, 1662.22815, -976.74054, 710.07861, 0.00000, -90.00000, 90.00000);
- CreateDynamicObject(14576, 1677.25659, -980.76630, 678.18488, 0.00000, 0.00000, 180.00000);
- //CreateDynamicObject(2634, 1677.76440, -987.50836, 671.68329, 0.00000, 0.00000, -55.00000);
- CreateDynamicObject(1726, 1668.31262, -981.95514, 682.60760, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(1726, 1666.28406, -983.28662, 682.60760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1665.64502, -982.69666, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1668.86804, -982.63745, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19443, 1665.71082, -987.56238, 686.06207, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1665.71082, -981.06238, 686.06207, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1665.71277, -984.27441, 686.06012, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1667.36914, -989.22498, 686.06012, 90.00000, 90.00000, 0.00000);
- CreateDynamicObject(19443, 1665.71277, -977.56238, 686.06409, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1669.03259, -987.56348, 686.06207, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1669.03223, -984.16211, 686.06012, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1669.03125, -980.87512, 686.05811, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1669.03784, -977.56500, 686.05609, 90.00000, 90.00000, 90.00000);
- CreateDynamicObject(19443, 1667.37561, -975.89868, 686.06012, 90.00000, 90.00000, 0.00000);
- CreateDynamicObject(2434, 1677.79968, -999.17450, 669.99207, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2434, 1676.67566, -999.00781, 669.99408, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2435, 1677.96814, -998.04462, 669.99261, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2435, 1676.67773, -998.07520, 669.99261, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2434, 1677.97009, -997.13013, 669.99408, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2434, 1676.84619, -996.95288, 669.99213, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1674.19604, -989.16309, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1674.69397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1675.19397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1675.69397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1678.69397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1679.19397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1679.69397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1680.19397, -989.16107, 669.99103, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2000, 1680.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1679.82227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1679.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1678.82227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1678.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1677.82227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1677.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1676.82227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1676.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1675.82227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1675.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1674.82227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2000, 1674.32227, -1003.89697, 669.99237, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1550, 1674.38489, -1003.73480, 670.24860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1550, 1674.75854, -1003.40149, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.24988, -1003.33649, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.41284, -1002.94733, 670.12360, 69.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.23401, -1002.45795, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1675.05933, -1002.70532, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1678.09033, -999.48700, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1678.35583, -999.07501, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1678.58569, -999.58228, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.20776, -989.49445, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.75024, -989.43054, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.48401, -989.88702, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.98157, -989.83002, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1674.27588, -990.34778, 670.05060, -105.00000, 0.00000, 287.00000);
- CreateDynamicObject(1550, 1675.00476, -1001.74683, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1676.12549, -998.38446, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1675.97021, -997.99341, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1675.61206, -998.46313, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1678.05933, -996.55249, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1677.51147, -996.45801, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1677.94556, -996.01849, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1677.39294, -995.96844, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1676.98633, -996.65375, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1680.32813, -992.60712, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1680.28064, -993.05798, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1679.88989, -992.82013, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1679.92578, -993.28516, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(1550, 1680.38379, -993.54877, 670.24860, 0.00000, 0.00000, 33.00000);
- CreateDynamicObject(19358, 1671.52832, -964.88507, 680.12793, 0.00000, 180.00000, -0.10000);
- CreateDynamicObject(19358, 1672.83105, -966.02869, 680.12793, 0.00000, 180.00000, -90.10000);
- CreateDynamicObject(18757, 1662.66113, -986.51813, 684.55219, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18757, 1662.66309, -984.56311, 684.55219, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1661.19666, -982.16919, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1661.23230, -987.33252, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18757, 1675.89514, -984.62836, 684.55219, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18757, 1675.89709, -986.50043, 684.55219, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1673.35864, -981.99762, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2811, 1673.48254, -987.14429, 682.68890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1557, 1655.64185, -972.38470, 682.58893, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1557, 1679.05115, -972.45654, 682.58893, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19464, 1685.72986, -987.53156, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1685.71204, -981.58417, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1685.73914, -976.21100, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1685.75281, -970.91187, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1670.69458, -971.08954, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1670.62061, -976.40570, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1670.48389, -981.24969, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19464, 1670.47412, -986.92102, 672.48907, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1684.81921, -973.82593, 675.49249, 0.00000, 30.00000, 30.00000);
- CreateDynamicObject(1734, 1684.89453, -978.63745, 675.49249, 0.00000, 30.00000, 30.00000);
- CreateDynamicObject(1734, 1684.82043, -983.63324, 675.49249, 0.00000, 30.00000, 30.00000);
- CreateDynamicObject(1734, 1671.46765, -974.24066, 675.49249, 0.00000, -30.00000, 30.00000);
- CreateDynamicObject(1734, 1671.31140, -978.95215, 675.49249, 0.00000, -30.00000, 30.00000);
- CreateDynamicObject(1734, 1671.28943, -984.09473, 675.49249, 0.00000, -30.00000, 30.00000);
- CreateDynamicObject(1808, 1663.93970, -988.78314, 682.69318, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1734, 1667.30676, -977.16321, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1667.30676, -980.16321, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1667.30676, -982.66321, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1667.30676, -984.66321, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1667.30676, -987.16321, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2108, 1670.81714, -976.99768, 682.66882, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2108, 1663.92041, -976.95392, 682.66882, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18075, 1667.43665, -982.60559, 685.90179, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, 1664.73279, -976.47131, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1664.72839, -975.08966, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1670.14978, -975.04382, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1670.14978, -976.44196, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1670.02148, -989.06970, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1670.00928, -990.43817, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1664.61499, -990.44031, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1664.63940, -989.05945, 683.17090, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2773, 1660.72534, -992.72321, 683.17090, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, 1673.82996, -992.72601, 683.17090, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1677.05408, -992.97064, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1734, 1656.62134, -992.63593, 686.48077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1676.31287, -958.97858, 680.32001, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19458, 1676.38159, -964.48083, 682.59680, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19458, 1676.21570, -964.50897, 678.32642, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19458, 1674.84692, -958.82312, 676.11920, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19458, 1676.46021, -964.52179, 674.11139, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(19458, 1675.06433, -958.81409, 671.91522, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(1886, 1662.88867, -972.32507, 685.98969, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(1886, 1671.76123, -972.41028, 685.98969, 0.00000, 0.00000, -33.00000);
- // SAN interior
- CreateDynamicObject(19376, 247.74, 1783.13, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 258.24, 1783.14, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 247.74, 1773.55, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 258.23, 1773.55, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19450, 250.44, 1784.44, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 245.63, 1779.94, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 253.91, 1780.12, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 253.03, 1775.84, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19404, 252.33, 1778.41, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 249.65, 1777.30, 701.65, 0.00, 0.00, -45.00);
- CreateDynamicObject(19388, 246.66, 1775.84, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19466, 252.38, 1778.39, 702.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(1502, 249.13, 1776.76, 699.95, 0.00, 0.00, 45.00);
- CreateDynamicObject(2165, 251.81, 1777.85, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(19358, 248.54, 1774.62, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(1714, 252.63, 1777.00, 700.09, 0.00, 0.00, 230.00);
- CreateDynamicObject(2007, 253.70, 1776.70, 700.01, 0.00, 0.00, -90.00);
- CreateDynamicObject(1961, 250.82, 1775.97, 701.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(1962, 251.55, 1775.97, 701.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(1960, 252.27, 1775.97, 701.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(1569, 247.05, 1784.39, 700.02, 0.00, 0.00, 0.00);
- CreateDynamicObject(1569, 250.03, 1784.39, 700.02, 0.00, 0.00, 180.00);
- CreateDynamicObject(1703, 251.10, 1783.84, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1703, 246.23, 1779.16, 700.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(2315, 247.52, 1779.46, 700.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(2315, 251.39, 1782.50, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2250, 251.42, 1782.51, 701.03, 0.00, 0.00, 0.00);
- CreateDynamicObject(2250, 247.52, 1780.31, 701.03, 0.00, 0.00, 90.00);
- CreateDynamicObject(2852, 252.61, 1782.49, 700.58, 0.00, 0.00, 90.00);
- CreateDynamicObject(2894, 247.42, 1779.67, 700.58, 0.00, 0.00, 39.00);
- CreateDynamicObject(2011, 246.21, 1783.97, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2011, 253.24, 1779.07, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 245.88, 1775.81, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 245.63, 1770.30, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19358, 250.13, 1773.12, 701.65, 0.00, 0.00, 90.40);
- CreateDynamicObject(19388, 252.80, 1774.23, 701.65, 0.00, 0.00, -45.00);
- CreateDynamicObject(1502, 252.29, 1773.69, 699.95, 0.00, 0.00, 45.00);
- CreateDynamicObject(1265, 250.63, 1775.49, 700.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(1265, 250.35, 1774.87, 700.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(1778, 253.53, 1775.81, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2712, 253.57, 1775.32, 700.68, 0.00, 0.00, 0.00);
- CreateDynamicObject(1221, 249.31, 1773.68, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1221, 250.27, 1773.94, 700.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(1221, 249.56, 1775.12, 700.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(1265, 249.18, 1774.36, 700.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 249.18, 1768.98, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(1705, 246.30, 1770.17, 700.09, 0.00, 0.00, 90.00);
- CreateDynamicObject(1705, 247.85, 1769.63, 700.09, 0.00, 0.00, 180.00);
- CreateDynamicObject(1705, 251.83, 1769.63, 700.09, 0.00, 0.00, 180.00);
- CreateDynamicObject(2315, 248.60, 1769.55, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2855, 248.78, 1769.55, 700.58, 0.00, 0.00, 0.00);
- CreateDynamicObject(2251, 249.67, 1769.36, 701.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 249.91, 1769.75, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 250.08, 1769.65, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(2817, 248.02, 1783.18, 700.08, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 254.81, 1780.65, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(14393, 255.23, 1759.95, 702.32, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 261.73, 1768.98, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 249.19, 1768.83, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 255.31, 1768.98, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 255.31, 1768.83, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 261.73, 1768.83, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(14391, 256.13, 1760.86, 701.05, 0.00, 0.00, 90.00);
- CreateDynamicObject(1705, 257.11, 1767.64, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1705, 258.68, 1767.02, 700.09, 0.00, 0.00, -90.00);
- CreateDynamicObject(2332, 259.63, 1764.36, 700.38, 0.00, 0.00, -90.00);
- CreateDynamicObject(638, 254.72, 1765.20, 701.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(638, 258.07, 1765.20, 701.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(2894, 256.40, 1765.18, 701.10, 0.00, 0.00, 80.00);
- CreateDynamicObject(1714, 257.11, 1762.81, 700.10, 0.00, 0.00, -45.00);
- CreateDynamicObject(1714, 254.18, 1762.77, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 251.40, 1759.68, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(2395, 250.95, 1759.82, 700.10, 0.00, 0.00, 180.00);
- CreateDynamicObject(2395, 252.48, 1759.82, 702.46, 0.00, 0.00, 180.00);
- CreateDynamicObject(2395, 249.79, 1759.59, 702.46, 0.00, 0.00, 0.00);
- CreateDynamicObject(2395, 248.19, 1759.58, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(1704, 254.31, 1753.90, 700.09, 0.00, 0.00, 135.00);
- CreateDynamicObject(1704, 256.22, 1754.49, 700.09, 0.00, 0.00, -135.00);
- CreateDynamicObject(1815, 254.42, 1754.73, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2247, 254.89, 1755.32, 700.99, 0.00, 0.00, 0.00);
- CreateDynamicObject(2010, 253.33, 1754.95, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(2010, 256.59, 1754.91, 700.10, 0.00, 0.00, 0.00);
- CreateDynamicObject(19466, 253.95, 1759.95, 701.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19466, 256.17, 1759.95, 701.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19466, 258.40, 1759.95, 701.92, 0.00, 0.00, 90.00);
- CreateDynamicObject(19376, 259.00, 1763.90, 699.99, 0.00, 90.00, 0.00);
- CreateDynamicObject(1502, 254.53, 1768.96, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 262.61, 1772.18, 701.65, 0.00, 0.00, -45.00);
- CreateDynamicObject(19450, 263.67, 1770.76, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 257.75, 1783.82, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19388, 257.75, 1777.43, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19388, 259.37, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19388, 265.76, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 268.40, 1775.63, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19358, 256.17, 1781.31, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(2606, 256.21, 1781.15, 702.56, 13.50, 0.00, 0.00);
- CreateDynamicObject(2165, 255.78, 1780.60, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1806, 256.45, 1779.59, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(2078, 255.16, 1777.82, 700.11, 0.00, 0.00, 90.00);
- CreateDynamicObject(2462, 257.00, 1776.04, 700.26, 0.00, 0.00, 180.00);
- CreateDynamicObject(19418, 257.25, 1776.20, 701.06, 90.00, 90.00, 90.00);
- CreateDynamicObject(19418, 256.93, 1776.10, 701.06, 90.00, 90.00, 324233.00);
- CreateDynamicObject(19418, 257.04, 1776.30, 701.06, 90.00, 90.00, 342.00);
- CreateDynamicObject(334, 257.00, 1776.08, 701.41, 90.00, 0.00, 90.00);
- CreateDynamicObject(2037, 257.28, 1776.14, 701.81, 0.00, 0.00, 180.00);
- CreateDynamicObject(348, 256.86, 1776.16, 701.77, 90.00, 0.00, 45.00);
- CreateDynamicObject(19376, 268.68, 1783.12, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19376, 268.71, 1773.53, 700.00, 0.00, 90.00, 0.00);
- CreateDynamicObject(19450, 262.09, 1787.45, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 269.72, 1784.41, 701.65, 0.00, 0.00, 45.00);
- CreateDynamicObject(19450, 269.61, 1780.36, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(19450, 272.15, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19358, 262.57, 1782.08, 701.65, 0.00, 0.00, 90.00);
- CreateDynamicObject(19450, 262.68, 1786.88, 701.65, 0.00, 0.00, 0.00);
- CreateDynamicObject(1702, 261.93, 1772.37, 700.08, 0.00, 0.00, 225.00);
- CreateDynamicObject(2315, 259.75, 1772.14, 700.09, 0.00, 0.00, 45.00);
- CreateDynamicObject(2315, 266.10, 1777.95, 700.09, 0.00, 0.00, 45.00);
- CreateDynamicObject(1702, 268.89, 1779.58, 700.08, 0.00, 0.00, 270.00);
- CreateDynamicObject(1702, 267.63, 1776.33, 700.08, 0.00, 0.00, 180.00);
- CreateDynamicObject(2251, 260.10, 1772.71, 701.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(2251, 266.94, 1779.01, 701.41, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 260.76, 1772.73, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 266.26, 1777.77, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 266.34, 1777.86, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1667, 266.20, 1777.88, 700.69, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 258.59, 1782.06, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(1502, 264.98, 1782.06, 699.95, 0.00, 0.00, 0.00);
- CreateDynamicObject(2207, 265.49, 1785.14, 700.09, 0.00, 0.00, -45.00);
- CreateDynamicObject(1714, 267.29, 1785.67, 700.10, 0.00, 0.00, -45.00);
- CreateDynamicObject(330, 266.98, 1784.24, 700.86, 90.00, 0.00, 90.00);
- CreateDynamicObject(2894, 265.87, 1785.33, 700.86, 0.00, 0.00, 0.00);
- CreateDynamicObject(2608, 263.00, 1785.07, 701.21, 0.00, 0.00, 90.00);
- CreateDynamicObject(1962, 267.85, 1786.13, 701.86, 0.00, 0.00, -45.00);
- CreateDynamicObject(2185, 258.67, 1785.35, 700.09, 0.00, 0.00, 0.00);
- CreateDynamicObject(1714, 260.03, 1786.60, 700.10, 0.00, 0.00, -45.00);
- CreateDynamicObject(1704, 260.02, 1783.92, 700.09, 0.00, 0.00, 180.00);
- CreateDynamicObject(2078, 262.38, 1784.88, 700.11, 0.00, 0.00, -90.00);
- CreateDynamicObject(2007, 257.95, 1786.74, 700.01, 0.00, 0.00, 90.00);
- CreateDynamicObject(1569, 257.81, 1776.73, 700.02, 0.00, 0.00, 45.00);
- CreateDynamicObject(2886, 257.82, 1778.48, 701.44, 0.00, 0.00, 90.00);
- CreateDynamicObject(2886, 257.82, 1778.51, 701.44, 0.00, 0.00, -90.00);
- CreateDynamicObject(2886, 257.71, 1778.48, 701.44, 0.00, 0.00, -90.00);
- CreateDynamicObject(19378, 247.74, 1783.13, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 247.74, 1773.55, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 258.23, 1773.55, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 268.68, 1783.12, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 268.71, 1773.53, 703.43, 0.00, 90.00, 0.00);
- CreateDynamicObject(19378, 258.24, 1783.14, 703.43, 0.00, 90.00, 0.00);
- // Crack lab fixes
- CreateDynamicObject(7191,2338.39135742,-1182.56323242,1032.95129395,90.00000000,0.00000000,90.00000000, -1, 5); //object(vegasnnewfence2b)(1)
- CreateDynamicObject(13656,2292.93872070,-1132.04724121,1017.29772949,0.00000000,0.00000000,0.00000000, -1, 5); //object(fuckknows)(1)
- CreateDynamicObject(7191,2337.95458984,-1182.54309082,1032.95129395,90.00000000,0.00000000,90.00000000, -1, 5); //object(vegasnnewfence2b)(2)
- CreateDynamicObject(7191,2338.43408203,-1182.39440918,1032.95129395,90.00000000,180.00000000,90.24850464, -1, 5); //object(vegasnnewfence2b)(3)
- CreateDynamicObject(7191,2337.97314453,-1182.39111328,1032.95129395,90.00000000,179.99450684,90.24719238, -1, 5); //object(vegasnnewfence2b)(4)
- CreateDynamicObject(7191,2328.80346680,-1180.43066406,1034.70544434,0.00000000,270.00000000,88.50006104, -1, 5); //object(vegasnnewfence2b)(5)
- CreateDynamicObject(3055,2319.78198242,-1184.82641602,1032.36450195,63.75003052,269.99996948,178.5001220, -1, 5); //object(kmb_shutter)(1)
- CreateDynamicObject(7191,2328.83715820,-1186.81262207,1030.70446777,0.00000000,90.74990845,359.99481201, -1, 5); //object(vegasnnewfence2b)(6)
- CreateDynamicObject(7191,2326.84863281,-1187.03125000,1030.70446777,0.00000000,90.74707031,359.99450684, -1, 5); //object(vegasnnewfence2b)(8)
- CreateDynamicObject(7191,2337.31689453,-1186.55639648,1030.70446777,0.00000000,90.74707031,359.99450684, -1, 5); //object(vegasnnewfence2b)(9)
- CreateDynamicObject(7191,2339.06689453,-1186.13159180,1030.70446777,0.00000000,91.24694824,359.99453735, -1, 5); //object(vegasnnewfence2b)(10)
- CreateDynamicObject(7191,2338.39062500,-1182.56250000,1032.95129395,90.00000000,0.00000000,90.00000000, -1, 5); //object(vegasnnewfence2b)(11)
- CreateDynamicObject(7191,2337.95947266,-1179.38879395,1032.95129395,90.00000000,180.00000000,270.00000000, -1, 5); //object(vegasnnewfence2b)(12)
- CreateDynamicObject(7191,2338.38476562,-1179.43066406,1032.95129395,90.00000000,0.00000000,90.00000000, -1, 5); //object(vegasnnewfence2b)(13)
- CreateDynamicObject(7191,2337.96630859,-1179.23559570,1032.95129395,90.00000000,179.99450684,90.24719238, -1, 5); //object(vegasnnewfence2b)(14)
- // Hospital garage doors
- CreateDynamicObject(10149, 1150.004394, -1345.316284, 14.201147, 0.000000, 0.000000, 270.000000);
- CreateDynamicObject(10149, 2007.520874, -1408.116088, 16.992187, 0.000000, 0.000000, 0.000000);
- CreateDynamic3DTextLabel("/deliverpatient\nto drop off a patient.", COLOR_DOCTOR, 1147.3577, -1345.3729, 13.6328, 10.0);
- CreateDynamicPickup(1240, 1, 1147.3577, -1345.3729, 13.6328);
- CreateDynamic3DTextLabel("/deliverpatient\nto drop off a patient.", COLOR_DOCTOR, 2007.6256, -1410.2455, 16.9922, 10.0);
- CreateDynamicPickup(1240, 1, 2007.6256, -1410.2455, 16.9922);
- // Job vehicles
- pizzaVehicles[0] = AddStaticVehicleEx(448, 2097.8396, -1792.2556, 12.9978, 90.0000, 3, 6, 300); // bike 1
- pizzaVehicles[1] = AddStaticVehicleEx(448, 2097.8396, -1794.0065, 12.9978, 90.0000, 3, 6, 300); // bike 2
- pizzaVehicles[2] = AddStaticVehicleEx(448, 2097.8396, -1795.7574, 12.9978, 90.0000, 3, 6, 300); // bike 3
- pizzaVehicles[3] = AddStaticVehicleEx(448, 2097.8396, -1797.5083, 12.9978, 90.0000, 3, 6, 300); // bike 4
- pizzaVehicles[4] = AddStaticVehicleEx(448, 2097.8396, -1799.2592, 12.9978, 90.0000, 3, 6, 300); // bike 5
- pizzaVehicles[5] = AddStaticVehicleEx(448, 2097.8396, -1801.0101, 12.9978, 90.0000, 3, 6, 300); // bike 6
- courierVehicles[0] = AddStaticVehicleEx(414, -63.1216, -1111.3860, 1.1820, 71.4600, 11, 11, 300); // mule
- courierVehicles[1] = AddStaticVehicleEx(414, -33.9888, -1132.0592, 1.2169, 250.7116, 11, 11, 300); // mule
- courierVehicles[2] = AddStaticVehicleEx(414, -30.7757, -1123.1583, 1.2201, 249.1730, 11, 11, 300); // mule
- courierVehicles[3] = AddStaticVehicleEx(498, -63.9965, -1145.2638, 1.1647, 332.5071, 11, 11, 300); // boxville
- courierVehicles[4] = AddStaticVehicleEx(498, -59.0494, -1147.4155, 1.1611, 332.2965, 11, 11, 300); // boxville
- courierVehicles[5] = AddStaticVehicleEx(498, -54.2330, -1149.6230, 1.1608, 333.8691, 11, 11, 300); // boxville
- courierVehicles[6] = AddStaticVehicleEx(498, -49.4566, -1151.9999, 1.1635, 332.1059, 11, 11, 300); // boxville
- sweeperVehicles[0] = AddStaticVehicleEx(574, 2187.6636, -1975.8738, 13.3012, 180.0000, 26, 26, 300); // sweeper 1
- sweeperVehicles[1] = AddStaticVehicleEx(574, 2184.9255, -1975.8738, 13.3029, 180.0000, 26, 26, 300); // sweeper 2
- sweeperVehicles[2] = AddStaticVehicleEx(574, 2181.8672, -1975.8738, 13.3005, 180.0000, 26, 26, 300); // sweeper 3
- sweeperVehicles[3] = AddStaticVehicleEx(574, 2179.0005, -1975.8738, 13.2679, 180.0000, 26, 26, 300); // sweeper 4
- taxiVehicles[0] = AddStaticVehicleEx(420, 1775.6141, -1860.0100, 13.2745, 269.2006, 6, 1, 300); // taxi 1
- taxiVehicles[1] = AddStaticVehicleEx(420, 1763.0121, -1860.0037, 13.2723, 271.2998, 6, 1, 300); // taxi 2
- taxiVehicles[2] = AddStaticVehicleEx(420, 1748.9358, -1859.9502, 13.2721, 270.3943, 6, 1, 300); // taxi 3
- taxiVehicles[3] = AddStaticVehicleEx(420, 1734.6754, -1859.9305, 13.2740, 270.5646, 6, 1, 300); // taxi 4
- // Driving test vehicles
- testVehicles[0] = AddStaticVehicleEx(445, 1280.5974, -1795.9840, 13.2733, 180.0000, 1, 1, 10); // test car 1
- testVehicles[1] = AddStaticVehicleEx(445, 1276.2882, -1796.0579, 13.2776,181.8796, 1, 1, 10); // test car 2
- testVehicles[2] = AddStaticVehicleEx(445, 1271.8486, -1796.2174, 13.2694,182.5803, 1, 1, 10); // test car 3
- testVehicles[3] = AddStaticVehicleEx(445, 1267.1357, -1796.2031, 13.2980,181.5889, 1, 1, 10); // test car 4
- testVehicles[4] = AddStaticVehicleEx(445, 1262.5736, -1796.3016, 13.3016,180.8420, 1, 1, 10); // test car 5
- gettime(.hour = gHour);
- gettime(.hour = gWorldTime);
- SetWorldTime(gWorldTime);
- // Timers
- SetTimer("MinuteTimer", 60000, true);
- SetTimer("SecondTimer", 1000, true);
- SetTimer("FuelTimer", 75000, true);
- SetTimer("InjuredTimer", 5000, true);
- SetTimerEx("RandomFire", 5400000, true, "i", 1);
- // Misc
- LoadServerInfo();
- RefreshLoginScreen();
- RefreshTime();
- ResetEvent();
- ResetRobbery();
- print("----------------------------------------------");
- print("Federal City Roleplay by Emmet and Josh Einstein");
- print("Loaded successfully.");
- print("----------------------------------------------");
- new count;
- for(new i = 0; i < MAX_OBJECTS; i ++)
- {
- if(IsValidObject(i)) count++;
- }
- printf("%i objects loaded.", count);
- return 1;
- }
- public OnGameModeExit()
- {
- mysql_close(connectionID);
- if(gDoubleXP)
- {
- SetDoubleXP(false);
- }
- return 1;
- }
- static pvehicleid[MAX_PLAYERS]; // array containing players vehicle id (loaded when player enters as driver)
- static pmodelid[MAX_PLAYERS]; // array containing players vehicle MODEL id (loaded when player enters as driver)
- public OnPlayerConnect(playerid)
- {
- if(IsPlayerNPC(playerid)) return 1;
- // Default values are handled via MySQL. Don't assign default values here.
- PlayerInfo[playerid][pID] = 0;
- PlayerInfo[playerid][pLogged] = 0;
- PlayerInfo[playerid][pKicked] = 0;
- PlayerInfo[playerid][pLoginTries] = 0;
- PlayerInfo[playerid][pSetup] = 0;
- PlayerInfo[playerid][pGender] = 0;
- PlayerInfo[playerid][pAge] = 0;
- PlayerInfo[playerid][pSkin] = 0;
- PlayerInfo[playerid][pCameraX] = 0;
- PlayerInfo[playerid][pCameraY] = 0;
- PlayerInfo[playerid][pCameraZ] = 0;
- PlayerInfo[playerid][pPosX] = 0;
- PlayerInfo[playerid][pPosY] = 0;
- PlayerInfo[playerid][pPosZ] = 0;
- PlayerInfo[playerid][pPosA] = 0;
- PlayerInfo[playerid][pInterior] = 0;
- PlayerInfo[playerid][pWorld] = 0;
- PlayerInfo[playerid][pCash] = 5000;
- PlayerInfo[playerid][pBank] = 0;
- PlayerInfo[playerid][pPaycheck] = 0;
- PlayerInfo[playerid][pLevel] = 1;
- PlayerInfo[playerid][pEXP] = 0;
- PlayerInfo[playerid][pMinutes] = 0;
- PlayerInfo[playerid][pHours] = 0;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pAdminName] = 0;
- PlayerInfo[playerid][pHelper] = 0;
- PlayerInfo[playerid][pHealth] = 100.0;
- PlayerInfo[playerid][pArmor] = 0.0;
- PlayerInfo[playerid][pUpgradePoints] = 0;
- PlayerInfo[playerid][pWarnings] = 0;
- PlayerInfo[playerid][pInjured] = 0;
- PlayerInfo[playerid][pHospital] = 0;
- PlayerInfo[playerid][pSpawnHealth] = 50.0;
- PlayerInfo[playerid][pSpawnArmor] = 0;
- PlayerInfo[playerid][pJailType] = 0;
- PlayerInfo[playerid][pJailTime] = 0;
- PlayerInfo[playerid][pNewbieMuted] = 0;
- PlayerInfo[playerid][pHelpMuted] = 0;
- PlayerInfo[playerid][pAdMuted] = 0;
- PlayerInfo[playerid][pLiveMuted] = 0;
- PlayerInfo[playerid][pGlobalMuted] = 0;
- PlayerInfo[playerid][pReportMuted] = 0;
- PlayerInfo[playerid][pReportWarns] = 0;
- PlayerInfo[playerid][pFightStyle] = 0;
- PlayerInfo[playerid][pAccent] = 0;
- PlayerInfo[playerid][pCookies] = 0;
- PlayerInfo[playerid][pPhone] = 0;
- PlayerInfo[playerid][pJob] = JOB_NONE;
- PlayerInfo[playerid][pSecondJob] = JOB_NONE;
- PlayerInfo[playerid][pCrimes] = 0;
- PlayerInfo[playerid][pArrested] = 0;
- PlayerInfo[playerid][pWantedLevel] = 0;
- PlayerInfo[playerid][pMaterials] = 0;
- PlayerInfo[playerid][pWeed] = 0;
- PlayerInfo[playerid][pCocaine] = 0;
- PlayerInfo[playerid][pMeth] = 0;
- PlayerInfo[playerid][pPainkillers] = 0;
- PlayerInfo[playerid][pSeeds] = 0;
- PlayerInfo[playerid][pEphedrine] = 0;
- PlayerInfo[playerid][pMuriaticAcid] = 0;
- PlayerInfo[playerid][pBakingSoda] = 0;
- PlayerInfo[playerid][pCigars] = 0;
- PlayerInfo[playerid][pWalkieTalkie] = 0;
- PlayerInfo[playerid][pChannel] = 0;
- PlayerInfo[playerid][pRentingHouse] = 0;
- PlayerInfo[playerid][pSpraycans] = 0;
- PlayerInfo[playerid][pBoombox] = 0;
- PlayerInfo[playerid][pMP3Player] = 0;
- PlayerInfo[playerid][pPhonebook] = 0;
- PlayerInfo[playerid][pFishingRod] = 0;
- PlayerInfo[playerid][pFishingBait] = 0;
- PlayerInfo[playerid][pFishWeight] = 0;
- PlayerInfo[playerid][pComponents] = 0;
- PlayerInfo[playerid][pCourierSkill] = 0;
- PlayerInfo[playerid][pFishingSkill] = 0;
- PlayerInfo[playerid][pGuardSkill] = 0;
- PlayerInfo[playerid][pWeaponSkill] = 0;
- PlayerInfo[playerid][pMechanicSkill] = 0;
- PlayerInfo[playerid][pLawyerSkill] = 0;
- PlayerInfo[playerid][pSmugglerSkill] = 0;
- PlayerInfo[playerid][pToggleTextdraws] = 0;
- PlayerInfo[playerid][pToggleOOC] = 0;
- PlayerInfo[playerid][pTogglePhone] = 0;
- PlayerInfo[playerid][pToggleAdmin] = 0;
- PlayerInfo[playerid][pToggleHelper] = 0;
- PlayerInfo[playerid][pToggleNewbie] = 0;
- PlayerInfo[playerid][pToggleWT] = 0;
- PlayerInfo[playerid][pToggleRadio] = 0;
- PlayerInfo[playerid][pToggleVIP] = 0;
- PlayerInfo[playerid][pToggleMusic] = 0;
- PlayerInfo[playerid][pToggleFaction] = 0;
- PlayerInfo[playerid][pToggleGang] = 0;
- PlayerInfo[playerid][pToggleNews] = 0;
- PlayerInfo[playerid][pToggleGlobal] = 0;
- PlayerInfo[playerid][pToggleCam] = 0;
- PlayerInfo[playerid][pCarLicense] = 0;
- PlayerInfo[playerid][pVIPPackage] = 0;
- PlayerInfo[playerid][pVIPTime] = 0;
- PlayerInfo[playerid][pVIPCooldown] = 0;
- PlayerInfo[playerid][pWeapons] = 0;
- PlayerInfo[playerid][pAmmo] = 0;
- PlayerInfo[playerid][pFaction] = 0;
- PlayerInfo[playerid][pFactionRank] = 0;
- PlayerInfo[playerid][pGang] = 0;
- PlayerInfo[playerid][pGangRank] = 0;
- PlayerInfo[playerid][pDivision] = 0;
- PlayerInfo[playerid][pContracted] = 0;
- PlayerInfo[playerid][pContractBy] = 0;
- PlayerInfo[playerid][pBombs] = 0;
- PlayerInfo[playerid][pCompletedHits] = 0;
- PlayerInfo[playerid][pFailedHits] = 0;
- PlayerInfo[playerid][pReports] = 0;
- PlayerInfo[playerid][pHelpRequests] = 0;
- PlayerInfo[playerid][pSpeedometer] = 0;
- PlayerInfo[playerid][pFactionMod] = 0;
- PlayerInfo[playerid][pGangMod] = 0;
- PlayerInfo[playerid][pBanAppealer] = 0;
- PlayerInfo[playerid][pWeedPlanted] = 0;
- PlayerInfo[playerid][pWeedTime] = 0;
- PlayerInfo[playerid][pWeedGrams] = 0;
- PlayerInfo[playerid][pWeedX] = 0;
- PlayerInfo[playerid][pWeedY] = 0;
- PlayerInfo[playerid][pWeedZ] = 0;
- PlayerInfo[playerid][pWeedA] = 0;
- PlayerInfo[playerid][pInventoryUpgrade] = 0;
- PlayerInfo[playerid][pAddictUpgrade] = 0;
- PlayerInfo[playerid][pTraderUpgrade] = 0;
- PlayerInfo[playerid][pAssetUpgrade] = 0;
- PlayerInfo[playerid][pHPAmmo] = 0;
- PlayerInfo[playerid][pPoisonAmmo] = 0;
- PlayerInfo[playerid][pFMJAmmo] = 0;
- PlayerInfo[playerid][pAmmoType] = 0;
- PlayerInfo[playerid][pAmmoWeapon] = 0;
- PlayerInfo[playerid][pLastReport] = 0;
- PlayerInfo[playerid][pLastNewbie] = 0;
- PlayerInfo[playerid][pLastRequest] = 0;
- PlayerInfo[playerid][pLastPay] = 0;
- PlayerInfo[playerid][pLastRepair] = 0;
- PlayerInfo[playerid][pLastRefuel] = 0;
- PlayerInfo[playerid][pLastDrug] = 0;
- PlayerInfo[playerid][pLastSell] = 0;
- PlayerInfo[playerid][pLastEnter] = 0;
- PlayerInfo[playerid][pLastPress] = 0;
- PlayerInfo[playerid][pLastDeath] = 0;
- PlayerInfo[playerid][pLastDesync] = 0;
- PlayerInfo[playerid][pLastGlobal] = 0;
- PlayerInfo[playerid][pFPS] = 0;
- PlayerInfo[playerid][pDrunkLevel] = 0;
- PlayerInfo[playerid][pSpectating] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pAdminDuty] = 0;
- PlayerInfo[playerid][pActiveReport] = -1;
- PlayerInfo[playerid][pHospitalTime] = 0;
- PlayerInfo[playerid][pListen] = 0;
- PlayerInfo[playerid][pJoinedEvent] = 0;
- PlayerInfo[playerid][pPaintball] = 0;
- PlayerInfo[playerid][pDueling] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pEventTeam] = 0;
- PlayerInfo[playerid][pAwaitingClothing] = 0;
- PlayerInfo[playerid][pTutorial] = 0;
- PlayerInfo[playerid][pFreezeTimer] = -1;
- PlayerInfo[playerid][pNameChange][0] = 0;
- PlayerInfo[playerid][pHelpRequest][0] = 0;
- PlayerInfo[playerid][pAcceptedHelp] = 0;
- PlayerInfo[playerid][pHouseOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pGarageOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pBizOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pVestOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pCarOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pFactionOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pGangOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pFriskOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pTicketOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pLiveOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pLiveBroadcast] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pShakeOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pLandOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pDefendOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pDiceOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pInviteOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pRobberyOffer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pEditType] = 0;
- PlayerInfo[playerid][pEditObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pFurniturePerms] = -1;
- PlayerInfo[playerid][pLandPerms] = -1;
- PlayerInfo[playerid][pPizzas] = 0;
- PlayerInfo[playerid][pLastPizza] = 0;
- PlayerInfo[playerid][pLastStuck] = 0;
- PlayerInfo[playerid][pLastUpdate] = 0;
- PlayerInfo[playerid][pLastLoad] = 0;
- PlayerInfo[playerid][pLastBet] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- PlayerInfo[playerid][pShipment] = -1;
- PlayerInfo[playerid][pFishTime] = 0;
- PlayerInfo[playerid][pUsedBait] = 0;
- PlayerInfo[playerid][pSmuggleMats] = 0;
- PlayerInfo[playerid][pSmuggleTime] = 0;
- PlayerInfo[playerid][pSmuggleDrugs] = 0;
- PlayerInfo[playerid][pRefuel] = INVALID_VEHICLE_ID;
- PlayerInfo[playerid][pCallLine] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pAFK] = 0;
- PlayerInfo[playerid][pAFKTime] = 0;
- PlayerInfo[playerid][pLoopAnim] = 0;
- PlayerInfo[playerid][pMiningTime] = 0;
- PlayerInfo[playerid][pMiningRock] = 0;
- PlayerInfo[playerid][pDrivingTest] = 0;
- PlayerInfo[playerid][pSweeping] = 0;
- PlayerInfo[playerid][pSpecialTag] = Text3D:INVALID_3DTEXT_ID;
- PlayerInfo[playerid][pTagType] = TAG_NONE;
- PlayerInfo[playerid][pVIPColor] = 0;
- PlayerInfo[playerid][pTaxiFare] = 0;
- PlayerInfo[playerid][pTaxiPassenger] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pTaxiBill] = 0;
- PlayerInfo[playerid][pTaxiTime] = 0;
- PlayerInfo[playerid][pFaction] = -1;
- PlayerInfo[playerid][pFactionRank] = 0;
- PlayerInfo[playerid][pGang] = -1;
- PlayerInfo[playerid][pGangRank] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- PlayerInfo[playerid][pBackup] = 0;
- PlayerInfo[playerid][pTazer] = 0;
- PlayerInfo[playerid][pTazedTime] = 0;
- PlayerInfo[playerid][pCuffed] = 0;
- PlayerInfo[playerid][pDraggedBy] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pSkinSelected] = -1;
- PlayerInfo[playerid][pFirstAid] = 0;
- PlayerInfo[playerid][pDelivered] = 0;
- PlayerInfo[playerid][pPlantedBomb] = 0;
- PlayerInfo[playerid][pBombObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pContractTaken] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pSpamTime] = 0;
- PlayerInfo[playerid][pMuted] = 0;
- PlayerInfo[playerid][pBoomboxPlaced] = 0;
- PlayerInfo[playerid][pBoomboxObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pBoomboxListen] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pZonePickups][0] = -1;
- PlayerInfo[playerid][pZonePickups][1] = -1;
- PlayerInfo[playerid][pZonePickups][2] = -1;
- PlayerInfo[playerid][pZonePickups][3] = -1;
- PlayerInfo[playerid][pZoneID] = -1;
- PlayerInfo[playerid][pZoneCreation] = 0;
- PlayerInfo[playerid][pShowLands] = 0;
- PlayerInfo[playerid][pShowTurfs] = 0;
- PlayerInfo[playerid][pStreamType] = MUSIC_NONE;
- PlayerInfo[playerid][pFreeNamechange] = 0;
- PlayerInfo[playerid][pVehicleKeys] = INVALID_VEHICLE_ID;
- PlayerInfo[playerid][pCurrentWeapon] = 0;
- PlayerInfo[playerid][pCurrentAmmo] = 0;
- PlayerInfo[playerid][pCurrentVehicle] = 0;
- PlayerInfo[playerid][pVehicleCount] = 0;
- PlayerInfo[playerid][pACWarns] = 0;
- PlayerInfo[playerid][pACTime] = 0;
- PlayerInfo[playerid][pArmorTime] = 0;
- PlayerInfo[playerid][pACFired] = 0;
- PlayerInfo[playerid][pWeedObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pPickPlant] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pPickTime] = 0;
- PlayerInfo[playerid][pCookMeth] = 0;
- PlayerInfo[playerid][pCookTime] = 0;
- PlayerInfo[playerid][pCookGrams] = 0;
- PlayerInfo[playerid][pDrugsUsed] = 0;
- PlayerInfo[playerid][pDrugsTime] = 0;
- PlayerInfo[playerid][pBandana] = 0;
- PlayerInfo[playerid][pCapturingPoint] = -1;
- PlayerInfo[playerid][pCaptureTime] = 0;
- PlayerInfo[playerid][pWatchingIntro] = 0;
- PlayerInfo[playerid][pLoginCamera] = 0;
- PlayerInfo[playerid][pPoisonTime] = 0;
- PlayerInfo[playerid][pJetpack] = 0;
- PlayerInfo[playerid][pWatchOn] = 0;
- PlayerInfo[playerid][pGPSOn] = 0;
- PlayerInfo[playerid][pTextFrom] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pWhisperFrom] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pMechanicCall] = 0;
- PlayerInfo[playerid][pTaxiCall] = 0;
- PlayerInfo[playerid][pEmergencyCall] = 0;
- PlayerInfo[playerid][pClip] = 0;
- PlayerInfo[playerid][pReloading] = 0;
- PlayerInfo[playerid][pFindTime] = 0;
- PlayerInfo[playerid][pFindPlayer] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pRobCash] = 0;
- PlayerInfo[playerid][pLootTime] = 0;
- //PlayerInfo[playerid][Maskon] = 0;
- //PlayerInfo[playerid][pMask] = 0;
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- chattingWith[playerid]{i} = false;
- }
- for(new i = 0; i < 13; i ++)
- {
- PlayerInfo[playerid][pWeapons][i] = 0;
- PlayerInfo[playerid][pTempWeapons][i] = 0;
- }
- for(new i = 0; i < 3; i ++)
- {
- MarkedPositions[playerid][i][mPosX] = 0.0;
- MarkedPositions[playerid][i][mPosY] = 0.0;
- MarkedPositions[playerid][i][mPosZ] = 0.0;
- }
- for(new i = 0; i < MAX_PLAYER_CLOTHING; i ++)
- {
- ClothingInfo[playerid][i][cExists] = 0;
- ClothingInfo[playerid][i][cID] = 0;
- ClothingInfo[playerid][i][cName] = 0;
- ClothingInfo[playerid][i][cModel] = 0;
- ClothingInfo[playerid][i][cBone] = 0;
- ClothingInfo[playerid][i][cAttached] = 0;
- ClothingInfo[playerid][i][cAttachedIndex] = -1;
- }
- // Reset the player's client attributes.
- for(new i = 0; i < MAX_PLAYER_ATTACHED_OBJECTS; i ++)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, i))
- {
- RemovePlayerAttachedObject(playerid, i);
- }
- }
- ResetPlayerWeapons(playerid);
- StopAudioStreamForPlayer(playerid);
- SetPlayerColor(playerid, 0xFFFFFF00);
- //Brandon's removal
- RemoveBuildingForPlayer(playerid, 746, 1658.3438, -1420.0078, 12.9141, 0.25);
- //Sheriff Dept Removals
- RemoveBuildingForPlayer(playerid, 14883, 320.8672, 314.2109, 1000.1484, 0.25);
- RemoveBuildingForPlayer(playerid, 1738, 322.2109, 317.9219, 998.8047, 0.25);
- //SAN Removals
- RemoveBuildingForPlayer(playerid, 1226, 778.8594, -1391.1563, 16.3125, 0.25);
- RemoveBuildingForPlayer(playerid, 1689, 745.5859, -1381.1094, 25.8750, 0.25);
- RemoveBuildingForPlayer(playerid, 1689, 751.3359, -1368.0313, 25.8750, 0.25);
- RemoveBuildingForPlayer(playerid, 6516, 717.6875, -1357.2813, 18.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 1415, 732.8516, -1332.8984, 12.6875, 0.25);
- RemoveBuildingForPlayer(playerid, 1439, 732.7266, -1341.7734, 12.6328, 0.25);
- //otto's removals
- RemoveBuildingForPlayer(playerid, 5967, 1259.4375, -1246.8125, 17.1094, 0.25);
- RemoveBuildingForPlayer(playerid, 1391, 1238.3750, -1258.2734, 44.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 1294, 1254.6875, -1276.1641, 17.0781, 0.25);
- RemoveBuildingForPlayer(playerid, 5857, 1259.4375, -1246.8125, 17.1094, 0.25);
- // House objects
- RemoveBuildingForPlayer(playerid, 14862, 245.5547, 300.8594, 998.8359, 0.25); // int 1
- RemoveBuildingForPlayer(playerid, 1740, 243.8828, 301.9766, 998.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 14861, 245.7578, 302.2344, 998.5469, 0.25);
- RemoveBuildingForPlayer(playerid, 14860, 246.5156, 301.5859, 1000.0000, 0.25);
- RemoveBuildingForPlayer(playerid, 14864, 246.1875, 303.1094, 998.2656, 0.25);
- RemoveBuildingForPlayer(playerid, 1734, 246.7109, 303.8750, 1002.1172, 0.25);
- RemoveBuildingForPlayer(playerid, 14863, 246.9844, 303.5781, 998.7500, 0.25);
- RemoveBuildingForPlayer(playerid, 2103, 248.4063, 300.5625, 999.3047, 0.25);
- RemoveBuildingForPlayer(playerid, 2088, 248.4922, 304.3516, 998.2266, 0.25);
- RemoveBuildingForPlayer(playerid, 1741, 248.4844, 306.1250, 998.1406, 0.25);
- RemoveBuildingForPlayer(playerid, 1741, 248.8672, 301.9609, 998.1406, 0.25);
- RemoveBuildingForPlayer(playerid, 1744, 250.1016, 301.9609, 999.4531, 0.25);
- RemoveBuildingForPlayer(playerid, 1744, 250.1016, 301.9609, 1000.1563, 0.25);
- /*RemoveBuildingForPlayer(playerid, 2251, 266.4531, 303.3672, 998.9844, 0.25); // int 2
- RemoveBuildingForPlayer(playerid, 14867, 270.2813, 302.5547, 999.6797, 0.25);
- RemoveBuildingForPlayer(playerid, 1720, 272.9063, 304.7891, 998.1641, 0.25);
- RemoveBuildingForPlayer(playerid, 14870, 273.1641, 303.1719, 1000.9141, 0.25);
- RemoveBuildingForPlayer(playerid, 2251, 273.9922, 303.3672, 998.9844, 0.25);
- RemoveBuildingForPlayer(playerid, 14868, 274.1328, 304.5078, 1001.1953, 0.25);
- RemoveBuildingForPlayer(playerid, 948, 266.5703, 306.4453, 998.1406, 0.25);
- RemoveBuildingForPlayer(playerid, 14866, 270.1172, 307.6094, 998.7578, 0.25);
- RemoveBuildingForPlayer(playerid, 14869, 273.8125, 305.0156, 998.9531, 0.25);*/
- RemoveBuildingForPlayer(playerid, 15039, 2232.3438, -1106.7422, 1049.7500, 0.25); //
- RemoveBuildingForPlayer(playerid, 15038, 2235.2891, -1108.1328, 1051.2656, 0.25);
- RemoveBuildingForPlayer(playerid, 15035, 2205.9375, -1073.9922, 1049.4844, 0.25);
- RemoveBuildingForPlayer(playerid, 15028, 2263.1250, -1138.2422, 1049.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 15026, 2264.9063, -1137.7656, 1051.3594, 0.25);
- RemoveBuildingForPlayer(playerid, 2123, 2312.9609, -1145.0703, 1050.3203, 0.25);
- RemoveBuildingForPlayer(playerid, 2123, 2314.2969, -1146.3125, 1050.3203, 0.25);
- RemoveBuildingForPlayer(playerid, 2123, 2315.4219, -1145.0703, 1050.3203, 0.25);
- RemoveBuildingForPlayer(playerid, 2086, 2314.2734, -1144.8984, 1050.0859, 0.25);
- RemoveBuildingForPlayer(playerid, 2123, 2314.2969, -1143.6250, 1050.3203, 0.25);
- RemoveBuildingForPlayer(playerid, 2281, 2318.7813, -1145.4609, 1054.5938, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1144.0859, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2335.3594, -1144.0703, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2135, 2336.3516, -1144.0781, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2305, 2337.3203, -1144.0781, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1143.1016, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2337.3203, -1143.0938, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 1703, 2322.2266, -1142.4766, 1049.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 1822, 2323.9297, -1142.2578, 1049.4844, 0.25);
- RemoveBuildingForPlayer(playerid, 1741, 2312.6484, -1140.7891, 1053.3750, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1142.1094, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1141.1172, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2079, 2334.4219, -1140.9688, 1050.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 1703, 2326.5234, -1140.5703, 1049.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2337.3203, -1142.1094, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2139, 2337.3125, -1141.1094, 1049.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 2088, 2338.4531, -1141.3672, 1053.2734, 0.25);
- RemoveBuildingForPlayer(playerid, 2270, 2340.2734, -1141.7109, 1054.5391, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1140.1328, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 1703, 2323.4375, -1139.5469, 1049.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 2079, 2333.3281, -1139.8672, 1050.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 2115, 2334.4297, -1139.6250, 1049.7109, 0.25);
- RemoveBuildingForPlayer(playerid, 2079, 2335.3672, -1139.8750, 1050.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 2303, 2337.3281, -1140.1172, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2090, 2309.5156, -1139.3438, 1053.4219, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1139.1406, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2079, 2333.3281, -1138.8281, 1050.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 2079, 2335.3672, -1138.8359, 1050.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 2298, 2336.5391, -1138.7891, 1053.2813, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1138.1563, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2136, 2337.3281, -1138.1328, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2240, 2319.2500, -1137.8750, 1050.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2240, 2329.5000, -1137.8750, 1050.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1137.1641, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2079, 2334.4219, -1137.5859, 1050.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 2139, 2337.3125, -1137.1484, 1049.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 2088, 2310.6641, -1136.3047, 1053.3672, 0.25);
- RemoveBuildingForPlayer(playerid, 2257, 2320.4141, -1134.6328, 1053.8281, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1136.1719, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2331.3359, -1135.1875, 1049.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2254, 2328.1484, -1134.6172, 1054.0625, 0.25);
- RemoveBuildingForPlayer(playerid, 2281, 2335.2656, -1136.4063, 1054.7266, 0.25);
- RemoveBuildingForPlayer(playerid, 2106, 2336.5156, -1135.0156, 1053.8047, 0.25);
- RemoveBuildingForPlayer(playerid, 2271, 2337.8047, -1135.3516, 1054.7031, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2337.3203, -1136.1641, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2337.3203, -1135.1797, 1049.6719, 0.25);
- RemoveBuildingForPlayer(playerid, 2106, 2339.2031, -1135.0156, 1053.8047, 0.25);
- RemoveBuildingForPlayer(playerid, 1741, 2261.6953, -1223.0781, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2088, 2258.1406, -1220.5859, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 2090, 2258.5938, -1221.5469, 1048.0625, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 2254.4063, -1218.2734, 1048.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2247.5547, -1213.9219, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2247.5547, -1212.9375, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2121, 2250.3047, -1213.9375, 1048.5234, 0.25);
- RemoveBuildingForPlayer(playerid, 2526, 2252.4297, -1215.4531, 1048.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 2523, 2254.1953, -1215.4531, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2297, 2255.4219, -1213.5313, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2248, 2262.3906, -1215.5469, 1048.6094, 0.25);
- RemoveBuildingForPlayer(playerid, 1816, 2261.4141, -1213.4531, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 2249, 2247.2969, -1212.1641, 1049.6250, 0.25);
- RemoveBuildingForPlayer(playerid, 2249, 2247.2969, -1208.8594, 1049.6250, 0.25);
- RemoveBuildingForPlayer(playerid, 2139, 2247.5625, -1211.9531, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 2136, 2247.5469, -1210.9688, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2303, 2247.5469, -1208.9844, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2138, 2247.5547, -1207.9766, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2305, 2247.5547, -1206.9922, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2109, 2250.2813, -1212.2500, 1048.4141, 0.25);
- RemoveBuildingForPlayer(playerid, 2121, 2249.2344, -1211.4531, 1048.5234, 0.25);
- RemoveBuildingForPlayer(playerid, 2121, 2250.3047, -1210.8984, 1048.5234, 0.25);
- RemoveBuildingForPlayer(playerid, 2135, 2248.5234, -1206.9922, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2319, 2250.3438, -1206.9609, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 1760, 2261.4609, -1212.0625, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 2126, 2258.1094, -1210.3750, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 15044, 2255.0938, -1209.7813, 1048.0313, 0.25);
- RemoveBuildingForPlayer(playerid, 2247, 2258.4766, -1209.7891, 1048.9922, 0.25);
- RemoveBuildingForPlayer(playerid, 2099, 2262.8047, -1208.4922, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2254, 2254.1172, -1206.5000, 1050.7578, 0.25);
- RemoveBuildingForPlayer(playerid, 2240, 2254.6328, -1207.2734, 1048.5625, 0.25);
- RemoveBuildingForPlayer(playerid, 2252, 2256.2109, -1206.1016, 1048.8281, 0.25);
- RemoveBuildingForPlayer(playerid, 2235, 2256.2188, -1206.8594, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 1760, 2257.6172, -1207.7266, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 2235, 2261.4297, -1206.2031, 1048.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 2252, 2262.1172, -1206.1016, 1048.8281, 0.25);
- /*RemoveBuildingForPlayer(playerid, 1734, 2452.0313, -1702.0234, 1015.9688, 0.25);
- RemoveBuildingForPlayer(playerid, 14742, 2451.9063, -1701.1875, 1014.8594, 0.25);
- RemoveBuildingForPlayer(playerid, 14741, 2447.4219, -1693.4531, 1012.4766, 0.25);
- RemoveBuildingForPlayer(playerid, 14761, 2449.9609, -1690.8438, 1014.0547, 0.25);
- RemoveBuildingForPlayer(playerid, 2241, 2459.3828, -1691.4766, 1013.0078, 0.25);
- RemoveBuildingForPlayer(playerid, 14745, 2460.2422, -1695.1016, 1012.9453, 0.25);*/
- RemoveBuildingForPlayer(playerid, 2249, 2251.3594, -1218.1797, 1048.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 15049, 2334.3281, -1139.5859, 1051.1953, 0.25);
- RemoveBuildingForPlayer(playerid, 15045, 2324.4297, -1143.3125, 1049.6016, 0.25);
- // Miner objects
- RemoveBuildingForPlayer(playerid, 5967, 1259.4375, -1246.8125, 17.1094, 0.25);
- RemoveBuildingForPlayer(playerid, 5857, 1259.4375, -1246.8125, 17.1094, 0.25);
-
- // GPS
- PlayerInfo[playerid][pText][0] = CreatePlayerTextDraw(playerid, 88.000000, 323.000000, "Loading...");
- PlayerTextDrawAlignment(playerid, PlayerInfo[playerid][pText][0], 2);
- PlayerTextDrawBackgroundColor(playerid, PlayerInfo[playerid][pText][0], 255);
- PlayerTextDrawFont(playerid, PlayerInfo[playerid][pText][0], 1);
- PlayerTextDrawLetterSize(playerid, PlayerInfo[playerid][pText][0], 0.260000, 1.300000);
- PlayerTextDrawColor(playerid, PlayerInfo[playerid][pText][0], -1);
- PlayerTextDrawSetOutline(playerid, PlayerInfo[playerid][pText][0], 1);
- PlayerTextDrawSetProportional(playerid, PlayerInfo[playerid][pText][0], 1);
- // Speedometer
- PlayerInfo[playerid][pText][1] = CreatePlayerTextDraw(playerid, 552.000000, 382.000000, "_");
- PlayerTextDrawBackgroundColor(playerid, PlayerInfo[playerid][pText][1], 255);
- PlayerTextDrawFont(playerid, PlayerInfo[playerid][pText][1], 1);
- PlayerTextDrawLetterSize(playerid, PlayerInfo[playerid][pText][1], 0.519999, 5.500000);
- PlayerTextDrawColor(playerid, PlayerInfo[playerid][pText][1], -1);
- PlayerTextDrawSetOutline(playerid, PlayerInfo[playerid][pText][1], 0);
- PlayerTextDrawSetProportional(playerid, PlayerInfo[playerid][pText][1], 1);
- PlayerTextDrawSetShadow(playerid, PlayerInfo[playerid][pText][1], 1);
- PlayerTextDrawUseBox(playerid, PlayerInfo[playerid][pText][1], 1);
- PlayerTextDrawBoxColor(playerid, PlayerInfo[playerid][pText][1], 85);
- PlayerTextDrawTextSize(playerid, PlayerInfo[playerid][pText][1], 628.000000, 0.000000);
- PlayerInfo[playerid][pText][2] = CreatePlayerTextDraw(playerid, 554.000000, 384.000000, "~b~~h~Speed:~w~ 100 km/h~n~~b~~h~Fuel:~w~ 100%~n~~b~~h~Damage:~w~ 50%~n~~b~~h~Doors:~w~ Locked");
- PlayerTextDrawBackgroundColor(playerid, PlayerInfo[playerid][pText][2], 255);
- PlayerTextDrawFont(playerid, PlayerInfo[playerid][pText][2], 2);
- PlayerTextDrawLetterSize(playerid, PlayerInfo[playerid][pText][2], 0.169999, 1.200000);
- PlayerTextDrawColor(playerid, PlayerInfo[playerid][pText][2], -1);
- PlayerTextDrawSetOutline(playerid, PlayerInfo[playerid][pText][2], 1);
- PlayerTextDrawSetProportional(playerid, PlayerInfo[playerid][pText][2], 1);
- // HP & armor
- PlayerInfo[playerid][pText][3] = CreatePlayerTextDraw(playerid, 577.000000, 43.500000, "100");
- PlayerTextDrawAlignment(playerid, PlayerInfo[playerid][pText][3], 2);
- PlayerTextDrawBackgroundColor(playerid, PlayerInfo[playerid][pText][3], 255);
- PlayerTextDrawFont(playerid, PlayerInfo[playerid][pText][3], 2);
- PlayerTextDrawLetterSize(playerid, PlayerInfo[playerid][pText][3], 0.220000, 1.100000);
- PlayerTextDrawColor(playerid, PlayerInfo[playerid][pText][3], -1);
- PlayerTextDrawSetOutline(playerid, PlayerInfo[playerid][pText][3], 1);
- PlayerTextDrawSetProportional(playerid, PlayerInfo[playerid][pText][3], 1);
- PlayerInfo[playerid][pText][4] = CreatePlayerTextDraw(playerid, 577.000000, 65.500000, "100");
- PlayerTextDrawAlignment(playerid, PlayerInfo[playerid][pText][4], 2);
- PlayerTextDrawBackgroundColor(playerid, PlayerInfo[playerid][pText][4], 255);
- PlayerTextDrawFont(playerid, PlayerInfo[playerid][pText][4], 2);
- PlayerTextDrawLetterSize(playerid, PlayerInfo[playerid][pText][4], 0.220000, 1.100000);
- PlayerTextDrawColor(playerid, PlayerInfo[playerid][pText][4], -1);
- PlayerTextDrawSetOutline(playerid, PlayerInfo[playerid][pText][4], 1);
- PlayerTextDrawSetProportional(playerid, PlayerInfo[playerid][pText][4], 1);
-
- // Ammo notification
- PlayerInfo[playerid][pText][5] = CreatePlayerTextDraw(playerid, 521.000000, 63.000000, "30");
- PlayerTextDrawAlignment(playerid, PlayerInfo[playerid][pText][5], 2);
- PlayerTextDrawBackgroundColor(playerid, PlayerInfo[playerid][pText][5], 255);
- PlayerTextDrawFont(playerid, PlayerInfo[playerid][pText][5], 1);
- PlayerTextDrawLetterSize(playerid, PlayerInfo[playerid][pText][5], 0.270000, 1.300000);
- PlayerTextDrawColor(playerid, PlayerInfo[playerid][pText][5], -1446714113);
- PlayerTextDrawSetOutline(playerid, PlayerInfo[playerid][pText][5], 1);
- PlayerTextDrawSetProportional(playerid, PlayerInfo[playerid][pText][5], 1);
- Streamer_ToggleIdleUpdate(playerid, true);
- GetPlayerName(playerid, PlayerInfo[playerid][pUsername], MAX_PLAYER_NAME);
- gConnections++;
- SaveServerInfo();
- pvehicleid[playerid] = GetPlayerVehicleID(playerid);
- pvehicleid[playerid] = 0;
- pmodelid[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(IsPlayerNPC(playerid)) return 1;
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pSpectating] == playerid)
- {
- SendClientMessageEx(i, COLOR_ORANGE, "You are no longer spectating %s (ID %i).", GetPlayerRPName(PlayerInfo[i][pSpectating]), PlayerInfo[i][pSpectating]);
- PlayerInfo[i][pSpectating] = INVALID_PLAYER_ID;
- SetPlayerToSpawn(i);
- }
- if(PlayerInfo[i][pHouseOffer] == playerid)
- {
- PlayerInfo[i][pHouseOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pGarageOffer] == playerid)
- {
- PlayerInfo[i][pGarageOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pBizOffer] == playerid)
- {
- PlayerInfo[i][pBizOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pVestOffer] == playerid)
- {
- PlayerInfo[i][pVestOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pCarOffer] == playerid)
- {
- PlayerInfo[i][pCarOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pFactionOffer] == playerid)
- {
- PlayerInfo[i][pFactionOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pGangOffer] == playerid)
- {
- PlayerInfo[i][pGangOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pFriskOffer] == playerid)
- {
- PlayerInfo[i][pFriskOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pTicketOffer] == playerid)
- {
- PlayerInfo[i][pTicketOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pLiveOffer] == playerid)
- {
- PlayerInfo[i][pLiveOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pLiveBroadcast] == playerid)
- {
- PlayerInfo[i][pLiveBroadcast] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pShakeOffer] == playerid)
- {
- PlayerInfo[i][pShakeOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pLandOffer] == playerid)
- {
- PlayerInfo[i][pLandOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pSellOffer] == playerid)
- {
- PlayerInfo[i][pSellOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pDefendOffer] == playerid)
- {
- PlayerInfo[i][pDefendOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pDiceOffer] == playerid)
- {
- PlayerInfo[i][pDiceOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pInviteOffer] == playerid)
- {
- PlayerInfo[i][pInviteOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pRobberyOffer] == playerid)
- {
- PlayerInfo[i][pRobberyOffer] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pTextFrom] == playerid)
- {
- PlayerInfo[i][pTextFrom] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pWhisperFrom] == playerid)
- {
- PlayerInfo[i][pWhisperFrom] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pFindPlayer] == playerid)
- {
- PlayerInfo[i][pFindPlayer] = INVALID_PLAYER_ID;
- }
- if(chattingWith[i]{playerid})
- {
- SendClientMessageEx(i, COLOR_YELLOW, "Your chat with %s (ID %i) has ended as they left the server.", GetPlayerRPName(playerid), playerid);
- chattingWith[i]{playerid} = false;
- }
- if(PlayerInfo[i][pActiveReport] >= 0 && (ReportInfo[PlayerInfo[i][pActiveReport]][rHandledBy] == playerid || ReportInfo[PlayerInfo[i][pActiveReport]][rReporter] == playerid))
- {
- if(ReportInfo[PlayerInfo[i][pActiveReport]][rHandledBy] == playerid)
- SendClientMessage(i, COLOR_GREEN, "The player who made the report has left the server.");
- else
- SendClientMessage(i, COLOR_GREEN, "The admin who accepted the report has left the server.");
- ReportInfo[PlayerInfo[i][pActiveReport]][rExists] = 0;
- PlayerInfo[i][pActiveReport] = -1;
- }
- if(PlayerInfo[i][pDueling] == playerid)
- {
- SendClientMessage(i, COLOR_WHITE, "Your duel target has left the server.");
- PlayerInfo[i][pDueling] = INVALID_PLAYER_ID;
- SetPlayerToSpawn(i);
- }
- if(PlayerInfo[i][pContractTaken] == playerid)
- {
- SendClientMessage(i, COLOR_YELLOW, "Your contract target has disconnected from the server.");
- PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pDraggedBy] == playerid)
- {
- SendClientMessage(i, COLOR_AQUA, "The person dragging you has disconnected. You are free!");
- PlayerInfo[i][pDraggedBy] = INVALID_PLAYER_ID;
- }
- if(PlayerInfo[i][pTaxiPassenger] == playerid)
- {
- CancelTaxiRide(i);
- }
- if(PlayerInfo[i][pCallLine] == playerid)
- {
- HangupCall(PlayerInfo[i][pCallLine], HANGUP_DROPPED);
- }
- }
- if(PlayerInfo[playerid][pLogged])
- {
- SavePlayerVariables(playerid);
- }
- if(PlayerInfo[playerid][pActiveReport] >= 0)
- {
- cmd_cr(playerid, "\1");
- }
- if(PlayerInfo[playerid][pTutorial])
- {
- KillTimer(PlayerInfo[playerid][pTutorialTimer]);
- }
- if(IsValidDynamicObject(PlayerInfo[playerid][pEditObject]))
- {
- DestroyDynamicObject(PlayerInfo[playerid][pEditObject]);
- }
- if(IsValidDynamic3DTextLabel(PlayerInfo[playerid][pSpecialTag]))
- {
- DestroyDynamic3DTextLabel(PlayerInfo[playerid][pSpecialTag]);
- }
- if(IsValidDynamicObject(PlayerInfo[playerid][pBombObject]))
- {
- DestroyDynamicObject(PlayerInfo[playerid][pBombObject]);
- }
- if(IsValidDynamicObject(PlayerInfo[playerid][pWeedObject]))
- {
- DestroyDynamicObject(PlayerInfo[playerid][pWeedObject]);
- }
- if(PlayerInfo[playerid][pAdminDuty])
- {
- SetPlayerName(playerid, PlayerInfo[playerid][pUsername]);
- }
- if(PlayerInfo[playerid][pBoomboxPlaced])
- {
- DestroyBoombox(playerid);
- }
- if(PlayerInfo[playerid][pZoneID] >= 0)
- {
- GangZoneDestroy(PlayerInfo[playerid][pZoneID]);
- }
- if(RobberyInfo[rPlanning] || RobberyInfo[rStarted])
- {
- RemoveFromBankRobbery(playerid);
- }
- for(new i = 0; i < 4; i ++)
- {
- if(IsValidDynamicPickup(PlayerInfo[playerid][pZonePickups][i]))
- {
- DestroyDynamicPickup(PlayerInfo[playerid][pZonePickups][i]);
- }
- }
- if(PlayerInfo[playerid][pLogged])
- {
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && IsVehicleOwner(playerid, i) && VehicleInfo[i][vTimer] == -1)
- {
- VehicleInfo[i][vTimer] = SetTimerEx("DespawnTimer", 600000, false, "i", i);
- }
- }
- }
- for(new i = 0; i < MAX_REPORTS; i ++)
- {
- if(ReportInfo[i][rExists] && ReportInfo[i][rReporter] == playerid)
- {
- ReportInfo[i][rExists] = 0;
- }
- }
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists] && PointInfo[i][pCaptureTime] > 0 && PointInfo[i][pCapturer] == playerid)
- {
- SendProximityMessage(i, 20.0, COLOR_RED, "(( %s disconnected and therefore failed to capture the point. ))", GetPlayerRPName(playerid));
- PointInfo[i][pCapturer] = INVALID_PLAYER_ID;
- PointInfo[i][pCaptureTime] = 0;
- }
- }
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(TurfInfo[i][tExists] && TurfInfo[i][tCaptureTime] > 0 && TurfInfo[i][tCapturer] == playerid)
- {
- if(reason == 0)
- {
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- GangInfo[PlayerInfo[playerid][pGang]][gTurfTokens]++;
- SendGangMessage(PlayerInfo[playerid][pGang], COLOR_YELLOW, "%s crashed while attempting to capture a turf. 1 turf token was refunded to your gang.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET turftokens = turftokens + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(PlayerInfo[playerid][pFaction] >= 0)
- {
- FactionInfo[PlayerInfo[playerid][pFaction]][fTurfTokens]++;
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_YELLOW, "%s crashed while attempting to capture a turf. 1 turf token was refunded to your faction.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET turftokens = turftokens + 1 WHERE id = %i", PlayerInfo[playerid][pFaction]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- SendTurfMessage(i, COLOR_RED, "(( %s disconnected and therefore failed to capture the turf. ))", GetPlayerRPName(playerid));
- TurfInfo[i][tCapturer] = INVALID_PLAYER_ID;
- TurfInfo[i][tCaptureTime] = 0;
- ReloadTurf(i);
- }
- }
-
- switch(reason)
- {
- case 0: SendProximityMessage(playerid, 20.0, COLOR_YELLOW, "** %s has left the server. (Timeout)", GetPlayerRPName(playerid));
- case 1: SendProximityMessage(playerid, 20.0, COLOR_YELLOW, "** %s has left the server. (Leaving)", GetPlayerRPName(playerid));
- case 2: SendProximityMessage(playerid, 20.0, COLOR_YELLOW, "** %s has left the server. (Kicked)", GetPlayerRPName(playerid));
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM shots WHERE (playerid = %i) OR (hitid = %i AND hittype = 1)", playerid, playerid);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(PlayerInfo[playerid][pKicked]) return 0;
- if(IsPlayerNPC(playerid)) return 1;
- if(!PlayerInfo[playerid][pLogged])
- {
- ClearChat(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "[NOTICE] {AFAFAF}This server contains themes suitable for mature audiences only.");
- TogglePlayerSpectating(playerid, 1);
- SetPlayerColor(playerid, 0xFFFFFF00);
- // Due to a SA-MP bug, you can't apply camera coordinates directly after enabling spectator mode (to hide HUD).
- // In this case we'll use a timer to defer this action.
- #if defined SERVER_INTRO
- ShowMainMenuCamera(playerid, 1);
- #else
- SetTimerEx("ShowMainMenuCamera", 400, false, "i", playerid);
- #endif
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(PlayerInfo[playerid][pKicked]) return 0;
- if(PlayerInfo[playerid][pSetup])
- {
- if(PlayerInfo[playerid][pTutorial])
- {
- KillTimer(PlayerInfo[playerid][pTutorialTimer]);
- PlayerInfo[playerid][pTutorial] = 0;
- }
- SetPlayerPos(playerid, 1456.410888, -1721.856567, -24.590217);
- SetPlayerCameraPos(playerid, 1456.410888, -1721.856567, 34.590217);
- SetPlayerCameraLookAt(playerid, 1456.691162, -1722.251342, 34.429306);
- TogglePlayerControllable(playerid, false);
- ShowDialogToPlayer(playerid, DIALOG_GENDER);
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "** Your account has been registered. Before you can play on our server, you must setup your character.");
- SendClientMessage(playerid, COLOR_WHITE, "** Please choose your character's gender now:");
- }
- else if(PlayerInfo[playerid][pJailTime] > 0)
- {
- SetPlayerInJail(playerid);
-
- if(PlayerInfo[playerid][pJailType] == 2)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "** You were placed in admin prison by %s, reason: %s", PlayerInfo[playerid][pPrisonedBy], PlayerInfo[playerid][pPrisonReason]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You haven't completed your jail sentence yet.");
- }
- }
- else if(PlayerInfo[playerid][pPaintball])
- {
- SetPlayerInPaintball(playerid);
- }
- else
- {
- PlayerInfo[playerid][pJoinedEvent] = 0;
- if(PlayerInfo[playerid][pInjured])
- {
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 0.0);
- ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 0, 0, 1, 0, 1);
- GameTextForPlayer(playerid, "~r~Injured~n~~w~/call 911 or~n~/accept death", 5000, 3);
- SendClientMessage(playerid, COLOR_DOCTOR, "You are injured and losing blood. /call 911 for medical attention.");
- SendClientMessage(playerid, COLOR_DOCTOR, "If you wish to accept your death and go to hospital use /accept death.");
- }
- else if(PlayerInfo[playerid][pHospital])
- {
- SetPlayerInHospital(playerid);
- ResetPlayerWeaponsEx(playerid);
- }
- else
- {
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetScriptArmour(playerid, PlayerInfo[playerid][pArmor]);
- }
- if(!PlayerInfo[playerid][pHospital])
- {
- if(PlayerInfo[playerid][pDueling] != INVALID_PLAYER_ID)
- {
- PlayerInfo[PlayerInfo[playerid][pDueling]][pDueling] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pDueling] = INVALID_PLAYER_ID;
- }
-
- SetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
- SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPosA]);
- SetPlayerInterior(playerid, PlayerInfo[playerid][pInterior]);
- SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pWorld]);
- SetPlayerWeapons(playerid);
- if(!PlayerInfo[playerid][pInterior] && PlayerInfo[playerid][pLoginCamera] && !PlayerInfo[playerid][pToggleCam])
- {
- SetPlayerCameraLookAt(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
- SetPlayerCameraPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ] + 100.0);
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("GrandTheftAutoV", 2000, false, "iifffffff", playerid, 1, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], PlayerInfo[playerid][pPosA], PlayerInfo[playerid][pCameraX], PlayerInfo[playerid][pCameraY], PlayerInfo[playerid][pCameraZ]);
- }
- else
- {
- SetCameraBehindPlayer(playerid);
- }
- }
- }
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 998);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 998);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 998);
- SetPlayerClothing(playerid);
- PreloadPlayerAnims(playerid);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(gettime() - PlayerInfo[playerid][pLastDeath] < 2)
- {
- return 1;
- }
- if(PlayerInfo[playerid][pLogged])
- {
- /*if(PlayerInfo[playerid][pJoinedEvent])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- {
- if(killerid == INVALID_PLAYER_ID)
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s died. ))", GetPlayerRPName(playerid));
- else
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s was killed by %s. ))", GetPlayerRPName(playerid), GetPlayerRPName(killerid));
- }
- }
- }*/
- if(PlayerInfo[playerid][pPaintball])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pPaintball])
- {
- if(killerid == INVALID_PLAYER_ID)
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s died. ))", GetPlayerRPName(playerid));
- else
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s was killed by %s. ))", GetPlayerRPName(playerid), GetPlayerRPName(killerid));
- }
- }
- }
- else if(PlayerInfo[playerid][pDueling] != INVALID_PLAYER_ID)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "(( You lost your duel against %s! ))", GetPlayerRPName(PlayerInfo[playerid][pDueling]));
-
- if(killerid != INVALID_PLAYER_ID)
- {
- SendClientMessageEx(killerid, COLOR_LIGHTORANGE, "(( You won the duel against %s! ))", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has won their duel against %s.", GetPlayerRPName(killerid), GetPlayerRPName(playerid));
- SetPlayerToSpawn(killerid);
- }
- }
- else
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- HandleContract(playerid, killerid);
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pJailType] == 0)
- {
- if(PlayerInfo[playerid][pInjured] == 0)
- {
- ResetPlayer(playerid);
- PlayerInfo[playerid][pInjured] = 1;
- }
- else
- {
- PlayerInfo[playerid][pInjured] = 0;
- PlayerInfo[playerid][pHospital] = 1;
- }
- }
- else
- {
- PlayerInfo[playerid][pHealth] = 32767.0;
- }
- if(killerid != INVALID_PLAYER_ID)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO kills VALUES(null, %i, %i, '%s', '%s', '%s', NOW())", PlayerInfo[killerid][pID], PlayerInfo[playerid][pID], GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), GetDeathReason(reason));
- mysql_tquery(connectionID, queryBuffer);
- }
- GetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPosA]);
- PlayerInfo[playerid][pInterior] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pWorld] = GetPlayerVirtualWorld(playerid);
- }
- }
- if(PlayerInfo[playerid][pCallLine] != INVALID_PLAYER_ID)
- {
- HangupCall(PlayerInfo[playerid][pCallLine], HANGUP_DROPPED);
- }
- if(reason == 50 && killerid != INVALID_PLAYER_ID)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] was helibladed by %s[%i].", GetPlayerRPName(playerid), playerid, GetPlayerRPName(killerid), killerid);
- }
- if(killerid != INVALID_PLAYER_ID)
- {
- gTotalKills++;
- }
- gTotalDeaths++;
- SaveServerInfo();
-
- PlayerInfo[playerid][pLastDeath] = gettime();
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY)
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 0.5);
- ClearAnimations(playerid);
- }
- if((!ispassenger) && (PlayerInfo[playerid][pCuffed] || PlayerInfo[playerid][pInjured]))
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 0.5);
- ClearAnimations(playerid);
- }
- if(!ispassenger)
- {
- if((pizzaVehicles[0] <= vehicleid <= pizzaVehicles[5]) && !PlayerHasJob(playerid, JOB_PIZZAMAN))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Pizzaman.");
- ClearAnimations(playerid);
- }
- if((courierVehicles[0] <= vehicleid <= courierVehicles[6]) && !PlayerHasJob(playerid, JOB_COURIER))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Courier.");
- ClearAnimations(playerid);
- }
- if((sweeperVehicles[0] <= vehicleid <= sweeperVehicles[3]) && !PlayerHasJob(playerid, JOB_SWEEPER))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Street Sweeper.");
- ClearAnimations(playerid);
- }
- if((taxiVehicles[0] <= vehicleid <= taxiVehicles[3]) && !PlayerHasJob(playerid, JOB_TAXIDRIVER))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Taxi Driver.");
- ClearAnimations(playerid);
- }
- if((testVehicles[0] <= vehicleid <= testVehicles[4]) && !PlayerInfo[playerid][pDrivingTest])
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not taking your drivers test.");
- ClearAnimations(playerid);
- }
- if(VehicleInfo[vehicleid][vFactionType] != FACTION_NONE && GetFactionType(playerid) != VehicleInfo[vehicleid][vFactionType])
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as it doesn't belong to your faction.");
- ClearAnimations(playerid);
- }
- if(VehicleInfo[vehicleid][vGang] >= 0 && PlayerInfo[playerid][pGang] != VehicleInfo[vehicleid][vGang])
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as it doesn't belong to your gang.");
- ClearAnimations(playerid);
- }
- if(VehicleInfo[vehicleid][vJob] >= 0 && PlayerInfo[playerid][pJob] != VehicleInfo[vehicleid][vJob])
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a %s.", GetJobName(VehicleInfo[vehicleid][vJob]));
- ClearAnimations(playerid);
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- switch(PlayerInfo[playerid][pCP])
- {
- case CHECKPOINT_PIZZA:
- {
- new string[32], amount = ((90 - PlayerInfo[playerid][pPizzaTime]) * 10) + random(200), tip = percent(amount, 5);
- if(gettime() - PlayerInfo[playerid][pLastPizza] < 15 && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is possibly teleport pizza delivering (time: %i).", GetPlayerRPName(playerid), playerid, gettime() - PlayerInfo[playerid][pLastPizza]);
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Teleport pizza runs", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Teleport pizza runs");
- }
- }
- format(string, sizeof(string), "~g~+$%i", amount);
- GameTextForPlayer(playerid, string, 5000, 1);
- AddToPaycheck(playerid, amount);
- GivePlayerCash(playerid, tip);
- PlayerInfo[playerid][pPizzas] = 0;
- PlayerInfo[playerid][pPizzaTime] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
-
- SendClientMessageEx(playerid, COLOR_AQUA, "You received {00AA00}$%i{33CCFF} on your paycheck for this delivery. You also received a {00AA00}$%i{33CCFF} tip.", amount, tip);
- DisablePlayerCheckpoint(playerid);
- }
- case CHECKPOINT_TEST:
- {
- PlayerInfo[playerid][pTestCP]++;
- if(PlayerInfo[playerid][pTestCP] < sizeof(drivingTestCPs))
- {
- if(!(testVehicles[0] <= GetPlayerVehicleID(playerid) <= testVehicles[4]))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You failed the test as you exited your vehicle.");
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(PlayerInfo[playerid][pTestVehicle]);
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- PlayerInfo[playerid][pDrivingTest] = 0;
- }
- else
- {
- SetPlayerCheckpoint(playerid, drivingTestCPs[PlayerInfo[playerid][pTestCP]][0], drivingTestCPs[PlayerInfo[playerid][pTestCP]][1], drivingTestCPs[PlayerInfo[playerid][pTestCP]][2], 3.0);
- }
- }
- else
- {
- new
- Float:health;
- GetVehicleHealth(PlayerInfo[playerid][pTestVehicle], health);
- if(health < 900.0)
- {
- GameTextForPlayer(playerid, "~r~Failed", 5000, 1);
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You brought back the vehicle damaged and therefore failed your test.");
- }
- else
- {
- GameTextForPlayer(playerid, "~w~Passed!~n~~r~-$500", 5000, 1);
- SendClientMessage(playerid, COLOR_AQUA, "You successfully passed your drivers test and received your license!");
- GivePlayerCash(playerid, -500);
- PlayerInfo[playerid][pCarLicense] = 1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET carlicense = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(PlayerInfo[playerid][pTestVehicle]);
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- PlayerInfo[playerid][pDrivingTest] = 0;
- }
- }
- case CHECKPOINT_MINING:
- {
- new cost, string[20];
- if(PlayerInfo[playerid][pMiningRock] == 1) {
- cost = 100 + random(50);
- } else if(PlayerInfo[playerid][pMiningRock] == 2) {
- cost = 150 + random(50);
- }
- AddToPaycheck(playerid, cost);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have earned {00AA00}$%i{33CCFF} on your paycheck for your mined rock.", cost);
- ApplyAnimation(playerid, "CARRY", "putdwn", 4.1, 0, 0, 0, 0, 0, 1);
- format(string, sizeof(string), "~g~+$%i", cost);
- GameTextForPlayer(playerid, string, 5000, 1);
- PlayerInfo[playerid][pMiningRock] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- RemovePlayerAttachedObject(playerid, 9);
- DisablePlayerCheckpoint(playerid);
- }
- case CHECKPOINT_MATS:
- {
- if((PlayerInfo[playerid][pSmuggleMats] == 1 && IsPlayerInRangeOfPoint(playerid, 3.0, 2173.2129, -2264.1548, 13.3467)) || (PlayerInfo[playerid][pSmuggleMats] == 2 && IsPlayerInRangeOfPoint(playerid, 3.0, 2288.0918, -1105.6555, 37.9766)))
- {
- if(gettime() - PlayerInfo[playerid][pSmuggleTime] < 20 && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is possibly teleport matrunning (time: %i).", GetPlayerRPName(playerid), playerid, gettime() - PlayerInfo[playerid][pSmuggleTime]);
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Teleport matrun", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Teleport matrun");
- }
- }
- if(PlayerInfo[playerid][pMaterials] + 250 > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- }
- if(PlayerInfo[playerid][pSmuggleMats] == 1) {
- AddPointMoney(POINT_MATFACTORY1, 75);
- } else {
- AddPointMoney(POINT_MATFACTORY2, 75);
- }
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- GiveGangPoints(PlayerInfo[playerid][pGang], 1);
- }
- PlayerInfo[playerid][pMaterials] += 750;
- PlayerInfo[playerid][pSmuggleMats] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- SendClientMessage(playerid, COLOR_AQUA, "You have dropped off your load and collected 750 materials from the depot.");
- DisablePlayerCheckpoint(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- case CHECKPOINT_DRUGS:
- {
- new amount = 500 + (GetJobLevel(playerid, JOB_DRUGDEALER) * 250);
- switch(PlayerInfo[playerid][pSmuggleDrugs])
- {
- case 1:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2167.7371, -1670.6298, 15.0804))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You aren't at the correct dropoff spot.");
- }
- if(gSeedsStock >= 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The drug den does not need anymore seeds.");
- }
- gSeedsStock += 10;
- GivePlayerCash(playerid, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have earned {00AA00}$%i{33CCFF} for your delivery of marijuana seeds.", amount);
- }
- case 2:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2349.7727, -1169.6304, 28.0243))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You aren't at the correct dropoff spot.");
- }
- if(gCocaineStock >= 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The crack house does not need anymore cocaine.");
- }
- gCocaineStock += 10;
- GivePlayerCash(playerid, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have earned {00AA00}$%i{33CCFF} for your delivery of cocaine.", amount);
- }
- case 3:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2167.7371, -1670.6298, 15.0804))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You aren't at the correct dropoff spot.");
- }
- if(gEphedrineStock >= 250)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The drug den does not need anymore ephedrine.");
- }
- gEphedrineStock += 10;
- GivePlayerCash(playerid, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have earned {00AA00}$%i{33CCFF} for your delivery of raw ephedrine.", amount);
- }
- }
- if(gettime() - PlayerInfo[playerid][pSmuggleTime] < 60 && PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is possibly teleport drug smuggling (time: %i).", GetPlayerRPName(playerid), playerid, gettime() - PlayerInfo[playerid][pSmuggleTime]);
- }
- else if(!PlayerInfo[playerid][pKicked])
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Teleport drug smuggling", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Teleport drug smuggling");
- }
- }
- else
- {
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- GiveGangPoints(PlayerInfo[playerid][pGang], 1);
- }
- }
- PlayerInfo[playerid][pSmuggleDrugs] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- IncreaseJobSkill(playerid, JOB_DRUGDEALER);
- }
- case CHECKPOINT_HOUSE:
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the house.", GetPlayerRPName(playerid));
- SetPlayerPos(playerid, HouseInfo[PlayerInfo[playerid][pInviteHouse]][hIntX], HouseInfo[PlayerInfo[playerid][pInviteHouse]][hIntY], HouseInfo[PlayerInfo[playerid][pInviteHouse]][hIntZ]);
- SetPlayerFacingAngle(playerid, HouseInfo[PlayerInfo[playerid][pInviteHouse]][hIntA]);
- SetPlayerInterior(playerid, HouseInfo[PlayerInfo[playerid][pInviteHouse]][hInterior]);
- SetPlayerVirtualWorld(playerid, HouseInfo[PlayerInfo[playerid][pInviteHouse]][hWorld]);
- SetCameraBehindPlayer(playerid);
-
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- case CHECKPOINT_ROBBERY:
- {
- if(IsPlayerInBankRobbery(playerid) && PlayerInfo[playerid][pRobCash] > 0)
- {
- if(gettime() - PlayerInfo[playerid][pLastLoad] < 60 && PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "Robbery failed. You arrived at the checkpoint too fast.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] arrived to the bank robbery checkpoint too fast.", GetPlayerRPName(playerid), playerid);
- }
- else
- {
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- GiveGangPoints(PlayerInfo[playerid][pGang], 50);
- }
-
- RobberyInfo[rStolen] += PlayerInfo[playerid][pRobCash];
- GivePlayerCash(playerid, PlayerInfo[playerid][pRobCash]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have earned {00AA00}$%i{33CCFF} for successfully completing the bank robbery.", PlayerInfo[playerid][pRobCash]);
- }
-
- RemoveFromBankRobbery(playerid);
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- default:
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- }
- return 1;
- }
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- if(PlayerInfo[playerid][pVIPPackage] > 0)
- {
- if(pickupid == gVIPHealth) {
- SetPlayerHealth(playerid, 100.0);
- } else if(pickupid == gVIPArmor) {
- SetScriptArmour(playerid, 100.0);
- }
- }
-
- if(gParachutes[0] <= pickupid <= gParachutes[1]) {
- GivePlayerWeaponEx(playerid, 46);
- }
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- if(IsValidDynamic3DTextLabel(PlayerInfo[playerid][pSpecialTag]))
- {
- ShowPlayerNameTagForPlayer(forplayerid, playerid, 0);
- }
- else
- {
- ShowPlayerNameTagForPlayer(forplayerid, playerid, 1);
- }
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //------------------------All car that are allowed to mod------------------------------------------------------------
- // Put here all car's id's yo want to be modable
- // NOTE: DO NOT TRY TO ALLOW OR MOD BOATS ; PLANES OR OTHER NON CARS.THAT WIL CAUSE YOUR SERVER CRASH
- forward ModCar(playerid);
- public ModCar(playerid) { // changed to switch method to reduce processor load on server
- // new modelid = GetVehicleModel(GetPlayerVehicleID(playerid)); // this executes a fair amt of stuff, so running it once to populate variable (modelid),THEN checking variable, makes more sense
- switch(pmodelid[playerid]) {
- case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
- 533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
- 426, 547, 405, 409, 550, 566, 540, 421, 529,431,438,437,420,525,552,416,433,427,490,528,
- 407,544,470,598,596,599,601,428,499,609,524,578,486,406,573,455,588,403,514,423,
- 414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
- 483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558,444: {
- TogglePlayerControllable(playerid,0);
- return SendClientMessage(playerid, COLOR_WHITE, "[INFO] Select an item and push the SPACEBAR to approve.");
- }
- default: return SendClientMessage(playerid,COLOR_RED,"[WARNING] You are not allowed to modify/tune this vehicle");
- }
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- new Flash[MAX_VEHICLES];
- new FlashTime[MAX_VEHICLES];
- forward OnLightFlash(vehicleid);
- public OnLightFlash(vehicleid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- switch(Flash[vehicleid])
- {
- case 0: UpdateVehicleDamageStatus(vehicleid, panels, doors, 2, tires);
- case 1: UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
- case 2: UpdateVehicleDamageStatus(vehicleid, panels, doors, 2, tires);
- case 3: UpdateVehicleDamageStatus(vehicleid, panels, doors, 4, tires);
- case 4: UpdateVehicleDamageStatus(vehicleid, panels, doors, 5, tires);
- case 5: UpdateVehicleDamageStatus(vehicleid, panels, doors, 4, tires);
- }
- if(Flash[vehicleid] >=5) Flash[vehicleid] = 0;
- else Flash[vehicleid] ++;
- return 1;
- }
- public OnVehicleSirenStateChange(playerid, vehicleid, newstate)
- {
- if(newstate)
- {
- FlashTime[vehicleid] = SetTimerEx("OnLightFlash", flashtime, true, "d", vehicleid);
- }
- if(!newstate)
- {
- new panels, doors, lights, tires;
- KillTimer(FlashTime[vehicleid]);
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
- }
- return 1;
- }
- ProcessDamage(playerid, issuerid, weaponid, Float:amount, bool:fmj = false)
- {
- new
- Float:health,
- Float:armour;
- GetPlayerHealth(playerid, health);
- GetPlayerArmour(playerid, armour);
- if(armour > 0.0)
- {
- if(armour >= amount)
- {
- armour -= amount;
- }
- else
- {
- health -= amount - armour;
- armour = 0;
- }
- }
- else if(health > 0.0)
- {
- if(health >= amount)
- {
- health -= amount;
- }
- else
- {
- health = 0;
- }
- }
- if((fmj) && health >= amount / 2)
- {
- health -= amount / 2;
- }
- SetPlayerHealth(playerid, health < 0.0 ? 0.0 : health);
- SetPlayerArmour(playerid, armour < 0.0 ? 0.0 : armour);
-
- if(health <= 0.0)
- {
- CallLocalFunction("OnPlayerDeath", "iii", playerid, issuerid, weaponid);
- }
- }
- public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
- {
- if((damagedid != INVALID_PLAYER_ID && weaponid == 23) && ((IsLawEnforcement(playerid) || GetFactionType(playerid) == FACTION_GOVERNMENT) && PlayerInfo[playerid][pTazer] && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) && amount > 5.0)
- {
- if(PlayerInfo[damagedid][pAdminDuty])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't taze an administrator currently on duty.");
- }
- if(PlayerInfo[damagedid][pTazedTime])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player has already been tazed.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, damagedid, 10.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't taze that player. They are too far from you.");
- }
- if((22 <= GetPlayerWeapon(damagedid) <= 38) && IsPlayerAiming(damagedid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Rush-tazing is forbidden. This means tazing a player who is aiming a gun at you.");
- }
- if(IsPlayerInAnyVehicle(damagedid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't taze a player who is in a vehicle.");
- }
- PlayerInfo[damagedid][pTazedTime] = 10;
- TogglePlayerControllable(damagedid, 0);
- ApplyAnimation(damagedid, "PED", "KO_skid_front", 4.1, 0, 0, 0, 1, 0);
- GameTextForPlayer(damagedid, "~r~Tazed", 5000, 3);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s aims their tazer full of electricity at %s and stuns them.", GetPlayerRPName(playerid), GetPlayerRPName(damagedid));
- SendClientMessageEx(damagedid, COLOR_AQUA, "You've been {FF6347}stunned{33CCFF} with electricity by %s's tazer.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have stunned %s with electricity. They are disabled for 10 seconds.", GetPlayerRPName(damagedid));
- }
- return 1;
- }
- public OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float:x, Float:y, Float:z)
- {
- if(RobberyInfo[rPlanning] && objectid == RobberyInfo[rObjects][1])
- {
- for(new i = 0; i < MAX_BANK_ROBBERS; i ++)
- {
- if(RobberyInfo[rRobbers][i] != INVALID_PLAYER_ID)
- {
- PlayerPlaySound(RobberyInfo[rRobbers][i], 3401, 0.0, 0.0, 0.0);
- GameTextForPlayer(RobberyInfo[rRobbers][i], "~w~Heist started", 5000, 1);
- SetPlayerAttachedObject(RobberyInfo[rRobbers][i], 8, 19801, 2, 0.091000, 0.012000, -0.000000, 0.099999, 87.799957, 179.500015, 1.345999, 1.523000, 1.270001, 0, 0);
- SetPlayerAttachedObject(RobberyInfo[rRobbers][i], 9, 1550, 1, 0.116999, -0.170999, -0.016000, -3.099997, 87.800018, -179.400009, 0.602000, 0.640000, 0.625000, 0, 0);
- ApplyAnimation(RobberyInfo[rRobbers][i], "GOGGLES", "goggles_put_on", 4.1, 0, 0, 0, 0, 0, 1);
- PlayerInfo[RobberyInfo[rRobbers][i]][pWantedLevel] = 6;
- PlayerInfo[RobberyInfo[rRobbers][i]][pCrimes]++;
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO charges VALUES(null, %i, 'The State', NOW(), 'Bank Robbery')", PlayerInfo[RobberyInfo[rRobbers][i]][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = 6, crimes = crimes + 1 WHERE uid = %i", PlayerInfo[RobberyInfo[rRobbers][i]][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- foreach(new i : Player)
- {
- if(IsLawEnforcement(i))
- {
- SendClientMessageEx(i, COLOR_ROYALBLUE, "** HQ: A robbery is occurring at the Mulholland Bank. There are %i confirmed robbers.", GetBankRobbers());
- }
- }
- GetDynamicObjectPos(RobberyInfo[rObjects][1], x, y, z);
- MoveDynamicObject(RobberyInfo[rObjects][0], 1678.248901, -988.181152, 670.224853, 5.0, 90.000000, 0.000000, 0.000000);
- DestroyDynamicObject(RobberyInfo[rObjects][1]);
- CreateExplosion(x, y, z, 12, 6.0);
- SendClientMessageToAll(COLOR_AQUA, "Breaking News: A bank robbery is currently taking place at the Mulholland Bank!");
- RobberyInfo[rText][0] = CreateDynamic3DTextLabel("/lootbox\nto loot deposit box.", COLOR_YELLOW, 1680.2344, -994.6146, 671.0032, 10.0);
- RobberyInfo[rText][1] = CreateDynamic3DTextLabel("/lootbox\nto loot deposit box.", COLOR_YELLOW, 1680.2335, -998.6115, 671.0032, 10.0);
- RobberyInfo[rText][2] = CreateDynamic3DTextLabel("/lootbox\nto loot deposit box.", COLOR_YELLOW, 1680.2344, -1002.5356, 671.0032, 10.0);
- RobberyInfo[rText][3] = CreateDynamic3DTextLabel("/lootbox\nto loot deposit box.", COLOR_YELLOW, 1674.2708, -998.4954, 671.0032, 10.0);
- RobberyInfo[rText][4] = CreateDynamic3DTextLabel("/lootbox\nto loot deposit box.", COLOR_YELLOW, 1674.2708, -994.5173, 671.0032, 10.0);
- RobberyInfo[rStarted] = 1;
- RobberyInfo[rStolen] = 0;
- RobberyInfo[rPlanning] = 0;
- }
- return 1;
- }
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if((PlayerInfo[playerid][pPaintball]) && (GetPlayerInterior(playerid) != 18 || GetPlayerVirtualWorld(playerid) != 1000))
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is using paintball weapons outside of paintball.", GetPlayerRPName(playerid), playerid);
- return 0;
- }
- if((PlayerInfo[playerid][pJoinedEvent]) && (GetPlayerInterior(playerid) != EventInfo[eInterior] || GetPlayerVirtualWorld(playerid) != EventInfo[eWorld]))
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is using event weapons outside of the event.", GetPlayerRPName(playerid), playerid);
- return 0;
- }
- if(weaponid != 22 && weaponid != 26 && weaponid != 28 && weaponid != 32)
- {
- if(PlayerInfo[playerid][pClip] > 0)
- {
- new
- string[12];
- PlayerInfo[playerid][pCurrentAmmo] = GetPlayerAmmo(playerid);
- PlayerInfo[playerid][pClip]--;
- format(string, sizeof(string), "%i", PlayerInfo[playerid][pClip]);
- PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pText][5], string);
- }
- }
- if(hittype == BULLET_HIT_TYPE_PLAYER)
- {
- if((1 <= EventInfo[eType] <= 2) && PlayerInfo[playerid][pJoinedEvent])
- {
- if(!EventInfo[eStarted])
- {
- GameTextForPlayer(playerid, "~r~Don't shoot until the event starts!", 2000, 3);
- return 0;
- }
- else if(EventInfo[eType] == 2 && PlayerInfo[hitid][pEventTeam] == PlayerInfo[playerid][pEventTeam])
- {
- GameTextForPlayer(playerid, "~r~Do not teamkill!", 2000, 3);
- return 0;
- }
- }
- if(PlayerInfo[playerid][pAcceptedHelp])
- {
- GameTextForPlayer(playerid, "~r~Don't shoot at newbies!", 2000, 3);
- return 0;
- }
-
- if(!PlayerInfo[hitid][pAdminDuty] && PlayerInfo[playerid][pAmmoType] != AMMOTYPE_NORMAL && PlayerInfo[playerid][pAmmoWeapon] == weaponid && !PlayerInfo[playerid][pJoinedEvent] && !PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID)
- {
- new Float:amount;
-
- switch(weaponid)
- {
- case 22: amount = 8.25;
- case 23: amount = 13.2;
- case 24: amount = 46.2;
- case 25: amount = 3.3;
- case 26: amount = 3.3;
- case 27: amount = 4.95;
- case 28: amount = 6.6;
- case 29: amount = 8.25;
- case 30: amount = 9.9;
- case 31: amount = 9.9;
- case 32: amount = 6.6;
- case 33: amount = 24.75;
- case 34: amount = 41.25;
- case 35: amount = 82.5;
- case 36: amount = 82.5;
- case 37: amount = 1.0;
- case 38: amount = 46.2;
- }
-
- if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_HP && PlayerInfo[playerid][pHPAmmo] > 0)
- {
- ProcessDamage(hitid, playerid, weaponid, amount + ((amount / 100) * 10));
- return 0;
- }
- else if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_POISON && PlayerInfo[playerid][pPoisonAmmo] > 0)
- {
- PlayerInfo[hitid][pPoisonTime] = 10;
- ProcessDamage(hitid, playerid, weaponid, amount);
- return 0;
- }
- else if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_FMJ && PlayerInfo[playerid][pFMJAmmo] > 0)
- {
- ProcessDamage(hitid, playerid, weaponid, amount, true);
- return 0;
- }
- else
- {
- ProcessDamage(hitid, playerid, weaponid, amount);
- return 0;
- }
- }
- }
- if(hittype == BULLET_HIT_TYPE_PLAYER || hittype == BULLET_HIT_TYPE_VEHICLE)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO shots VALUES(null, %i, %i, %i, %i, '%s', '%f', '%f', '%f', %i)", playerid, weaponid, hittype, hitid, GetPlayerNameEx(hitid), fX, fY, fZ, gettime());
- mysql_tquery(connectionID, queryBuffer);
- }
- if(!PlayerHasWeapon(playerid, weaponid) && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- new string[48];
- format(string, sizeof(string), "Weapon hacks (%s)", GetWeaponNameEx(weaponid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: %s", GetPlayerRPName(playerid), SERVER_ANTICHEAT, string);
- BanPlayer(playerid, SERVER_ANTICHEAT, string);
- return 0;
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- new
- ammo = 0;
- switch(weaponid)
- {
- case 22:
- ammo = 50;
- case 23:
- ammo = 25;
- case 26:
- ammo = 10;
- case 24, 27:
- ammo = 15;
- case 28, 32:
- ammo = 130;
- case 29, 30:
- ammo = 50;
- case 31:
- ammo = 80;
- }
- PlayerInfo[playerid][pACFired]++;
- if((!PlayerInfo[playerid][pReloading]) && (ammo > 0 && PlayerInfo[playerid][pACFired] >= ammo) || (PlayerInfo[playerid][pACFired] >= 10 && PlayerInfo[playerid][pACAmmo] == GetPlayerAmmo(playerid)))
- {
- if((gAnticheat) && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Infinite ammo", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Infinite ammo");
- }
- PlayerInfo[playerid][pACFired] = 0;
- }
- }
- /*else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO shots VALUES(null, %i, %i, %i, %i, null, '%f', '%f', '%f', %i)", playerid, weaponid, hittype, hitid, fX, fY, fZ, gettime());
- }*/
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- // Finally... an end to that ANNOYING spectate bug!
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pSpectating] == playerid)
- {
- SetTimerEx("SpectateUpdate", 500, false, "ii", i, playerid);
- }
- }
-
- if((newinteriorid == 0) && IsPlayerInBankRobbery(playerid))
- {
- PlayerPlaySound(playerid, 3402, 0.0, 0.0, 0.0);
- }
-
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(PlayerInfo[playerid][pKicked]) return 0;
- if(!PlayerInfo[playerid][pLogged]) return 1;
- new drunkLevel = GetPlayerDrunkLevel(playerid), keys, ud, lr, string[128];
- GetPlayerKeys(playerid, keys, ud, lr);
- if(GetPlayerMoney(playerid) != PlayerInfo[playerid][pCash])
- {
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- }
- if(GetPlayerScore(playerid) != PlayerInfo[playerid][pLevel])
- {
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- }
- if(GetPlayerWantedLevel(playerid) != PlayerInfo[playerid][pWantedLevel])
- {
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(VehicleHasEngine(vehicleid))
- {
- new
- Float:health,
- Float:damage;
- GetVehicleHealth(vehicleid, health);
- if(health < 300.0)
- {
- SetVehicleHealth(vehicleid, 300.0);
- SetVehicleParams(vehicleid, VEHICLE_ENGINE, 0);
- //SendClientMessage(playerid, COLOR_RED, "The engine has shut down for being totalled and needs repairing.");
- GameTextForPlayer(playerid, "~r~Engine totalled", 3000, 3);
- }
- damage = (1000.0 - health) / 7.0;
- if(damage > 100.0) damage = 100.0;
- if(PlayerInfo[playerid][pSpeedometer] == 1) {
- format(string, sizeof(string), "~b~~h~Speed:~w~ %.0f KM/H~n~~b~~h~Fuel:~w~ %i%c~n~~b~~h~Damage:~w~ %.0f%c~n~~b~~h~Doors:~w~ %s", GetVehicleSpeed(vehicleid), vehicleFuel[vehicleid], '%', damage, '%', (GetVehicleParams(vehicleid, VEHICLE_DOORS)) ? ("Locked") : ("Unlocked"));
- } else if(PlayerInfo[playerid][pSpeedometer] == 2) {
- format(string, sizeof(string), "~b~~h~Speed:~w~ %.0f MPH~n~~b~~h~Fuel:~w~ %i%c~n~~b~~h~Damage:~w~ %.0f%c~n~~b~~h~Doors:~w~ %s", GetVehicleSpeedMPH(vehicleid), vehicleFuel[vehicleid], '%', damage, '%', (GetVehicleParams(vehicleid, VEHICLE_DOORS)) ? ("Locked") : ("Unlocked"));
- }
- PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pText][2], string);
-
- for(new i = 0; i < MAX_DEPLOYABLES; i ++)
- {
- if(DeployInfo[i][dExists] && DeployInfo[i][dType] == DEPLOY_SPIKESTRIP && IsPlayerInRangeOfPoint(playerid, 3.0, DeployInfo[i][dPosX], DeployInfo[i][dPosY], DeployInfo[i][dPosZ]))
- {
- new
- panels,
- doors,
- lights,
- tires;
-
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
-
- if(tires != 15)
- {
- UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15);
- GameTextForPlayer(playerid, "~r~Spiked", 3000, 3);
- }
- }
- }
- }
- }
- if((GetPlayerAnimationIndex(playerid) != 1209) && ((PlayerInfo[playerid][pInjured] && GetVehicleModel(GetPlayerVehicleID(playerid)) != 416) || (PlayerInfo[playerid][pTazedTime] > 0 && PlayerInfo[playerid][pDraggedBy] == INVALID_PLAYER_ID)))
- {
- ApplyAnimation(playerid, "PED", "KO_skid_front", 4.1, 0, 0, 0, 1, 0, 1);
- }
- if(GetPlayerWeapon(playerid) > 1 && PlayerInfo[playerid][pInjured])
- {
- SetPlayerArmedWeapon(playerid, 0);
- }
- if(!drunkLevel)
- {
- SetPlayerDrunkLevel(playerid, 1000);
- }
- if(PlayerInfo[playerid][pDrunkLevel] != drunkLevel)
- {
- new value = PlayerInfo[playerid][pDrunkLevel] - drunkLevel;
- if(0 <= value <= 250)
- {
- PlayerInfo[playerid][pFPS] = value;
- }
- PlayerInfo[playerid][pDrunkLevel] = drunkLevel;
- }
- if(!GetPlayerInterior(playerid))
- {
- SetPlayerTime(playerid, gWorldTime, 0);
- }
- else
- {
- new garageid;
- if((garageid = GetInsideGarage(playerid)) >= 0 && GarageInfo[garageid][gType] == 2)
- SetPlayerTime(playerid, 0, 0);
- else
- SetPlayerTime(playerid, 12, 0);
- }
- if((keys & KEY_FIRE) && IsFireActive() && GetFactionType(playerid) == FACTION_MEDIC)
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:vx,
- Float:vy,
- Float:vz,
- Float:cx,
- Float:cy,
- Float:cz;
- if(GetPlayerWeapon(playerid) == 42 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- for(new i = 0; i < MAX_FIRES; i ++)
- {
- if(IsPlayerInRangeOfDynamicObject(playerid, gFireObjects[i], 4.0))
- {
- gFireHealth[i] = gFireHealth[i] - 1.0;
- if(gFireHealth[i] <= 0.0)
- {
- GetDynamicObjectPos(gFireObjects[i], x, y, z);
- GameTextForPlayer(playerid, "~r~Fire extinguished", 2000, 3);
- SetTimerEx("DestroyWater", 2000, false, "i", CreateDynamicObject(18744, x, y, z - 0.2, 0.0, 0.0, 0.0));
- DestroyDynamicObject(gFireObjects[i]);
- gFireObjects[i] = INVALID_OBJECT_ID;
- gFireHealth[i] = 0.0;
- }
- }
- }
- }
- else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && (GetVehicleModel(GetPlayerVehicleID(playerid)) == 407 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 544))
- {
- GetPlayerCameraFrontVector(playerid, vx, vy, vz);
- GetPlayerCameraPos(playerid, cx, cy, cz);
- for(new i = 0; i < MAX_FIRES; i ++)
- {
- if(IsPlayerInRangeOfDynamicObject(playerid, gFireObjects[i], 12.0))
- {
- GetDynamicObjectPos(gFireObjects[i], x, y, z);
- if(DistanceCameraTargetToLocation(cx, cy, cz, x, y, z + 2.5, vx, vy, vz) < 12.0)
- {
- gFireHealth[i] = gFireHealth[i] - 0.5;
- if(gFireHealth[i] <= 0.0)
- {
- GetDynamicObjectPos(gFireObjects[i], x, y, z);
- GameTextForPlayer(playerid, "~r~Fire extinguished", 2000, 3);
- SetTimerEx("DestroyWater", 2000, false, "i", CreateDynamicObject(18744, x, y, z - 0.2, 0.0, 0.0, 0.0));
- DestroyDynamicObject(gFireObjects[i]);
- gFireObjects[i] = INVALID_OBJECT_ID;
- gFireHealth[i] = 0.0;
- }
- }
- }
- }
- }
- if(!IsFireActive())
- {
- new amount = gFires * 150;
- foreach(new i : Player)
- {
- if(GetFactionType(i) == FACTION_MEDIC && IsPlayerInRangeOfPoint(playerid, 20.0, x, y, z))
- {
- SendClientMessageEx(i, COLOR_AQUA, "Well done! You helped put out the fire and received {00AA00}$%i{33CCFF} on your paycheck.", amount);
- AddToPaycheck(i, amount);
- }
- }
- gFires = 0;
- }
- }
-
- if(PlayerInfo[playerid][pCurrentWeapon] != GetPlayerWeapon(playerid))
- {
- PlayerInfo[playerid][pCurrentWeapon] = GetPlayerWeapon(playerid);
- PlayerInfo[playerid][pCurrentAmmo] = GetPlayerAmmo(playerid);
- PlayerInfo[playerid][pACAmmo] = PlayerInfo[playerid][pCurrentAmmo];
- PlayerInfo[playerid][pACFired] = 0;
- PlayerInfo[playerid][pClip] = GetWeaponClipSize(PlayerInfo[playerid][pCurrentWeapon]);
-
- // Weapon hacks
- if((gAnticheat) && PlayerInfo[playerid][pAdmin] < 2)
- {
- if(PlayerInfo[playerid][pCurrentWeapon] > 1 && !PlayerHasWeapon(playerid, PlayerInfo[playerid][pCurrentWeapon]) && !PlayerInfo[playerid][pKicked])
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a desynced %s.", GetPlayerRPName(playerid), playerid, GetWeaponNameEx(PlayerInfo[playerid][pCurrentWeapon]));
- Log_Write("log_cheat", "%s (uid: %i) had a desynced %s with %i ammunition.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetWeaponNameEx(PlayerInfo[playerid][pCurrentWeapon]), GetPlayerAmmo(playerid));
- }
- else
- {
- format(string, sizeof(string), "Weapon hacks (%s)", GetWeaponNameEx(PlayerInfo[playerid][pCurrentWeapon]));
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: %s", GetPlayerRPName(playerid), SERVER_ANTICHEAT, string);
- BanPlayer(playerid, SERVER_ANTICHEAT, string);
- }
- }
- }
- }
-
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && PlayerInfo[playerid][pCurrentWeapon] > 0 && GetWeaponClipSize(PlayerInfo[playerid][pCurrentWeapon]) > 0 && !PlayerInfo[playerid][pToggleHUD] && !PlayerInfo[playerid][pToggleTextdraws] && PlayerInfo[playerid][pAmmoWeapon] != PlayerInfo[playerid][pCurrentWeapon])
- {
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][5]);
- }
- else
- {
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][5]);
- }
-
- if(PlayerInfo[playerid][pCurrentAmmo] != GetPlayerAmmo(playerid))
- {
- if(PlayerInfo[playerid][pCurrentAmmo] > GetPlayerAmmo(playerid))
- {
- switch(GetPlayerWeapon(playerid))
- {
- case 22, 26, 28, 32:
- {
- PlayerInfo[playerid][pClip] -= PlayerInfo[playerid][pCurrentAmmo] - GetPlayerAmmo(playerid);
- }
- }
- if(PlayerInfo[playerid][pClip] < 0)
- {
- PlayerInfo[playerid][pClip] = 0;
- }
- }
-
- PlayerInfo[playerid][pCurrentAmmo] = GetPlayerAmmo(playerid);
- if(!PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID && !(PlayerInfo[playerid][pTazer] && GetPlayerWeapon(playerid) == 23))
- {
- if((22 <= PlayerInfo[playerid][pCurrentWeapon] <= 34) && PlayerInfo[playerid][pAmmoType] != AMMOTYPE_NORMAL && PlayerInfo[playerid][pAmmoWeapon] == PlayerInfo[playerid][pCurrentWeapon] && 0 <= PlayerInfo[playerid][pCurrentAmmo] <= 9999)
- {
- // Ammo hack detection.
- if(PlayerInfo[playerid][pAmmoType] != AMMOTYPE_NORMAL && PlayerHasWeapon(playerid, PlayerInfo[playerid][pAmmoWeapon]))
- {
- new weapon, ammo;
- GetPlayerWeaponData(playerid, weaponSlotIDs[PlayerInfo[playerid][pAmmoWeapon]], weapon, ammo);
- if((ammo > 0) && (PlayerInfo[playerid][pAmmoType] == AMMOTYPE_HP && ammo > PlayerInfo[playerid][pHPAmmo]) || (PlayerInfo[playerid][pAmmoType] == AMMOTYPE_POISON && ammo > PlayerInfo[playerid][pPoisonAmmo]) || (PlayerInfo[playerid][pAmmoType] == AMMOTYPE_FMJ && ammo > PlayerInfo[playerid][pFMJAmmo]))
- {
- new oldammo;
- if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_HP) {
- oldammo = PlayerInfo[playerid][pHPAmmo];
- } else if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_POISON) {
- oldammo = PlayerInfo[playerid][pPoisonAmmo];
- } else if(PlayerInfo[playerid][pAmmoType] == AMMOTYPE_FMJ) {
- oldammo = PlayerInfo[playerid][pFMJAmmo];
- }
- if(gAnticheat && !PlayerInfo[playerid][pKicked])
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] may be hacking ammo. (old: %i, new: %i)", GetPlayerRPName(playerid), playerid, oldammo, ammo);
- Log_Write("log_cheat", "%s (uid: %i) possibly hacked ammo. (old: %i, new: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], oldammo, ammo);
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Ammo hacking", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Ammo hacking");
- }
- PlayerInfo[playerid][pCurrentAmmo] = oldammo;
- SetPlayerAmmo(playerid, PlayerInfo[playerid][pAmmoWeapon], oldammo);
- }
- }
- }
- if(PlayerInfo[playerid][pAmmoType] != AMMOTYPE_NORMAL)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new weaponid;
- GetPlayerWeaponData(playerid, weaponSlotIDs[PlayerInfo[playerid][pCurrentWeapon]], weaponid, PlayerInfo[playerid][pCurrentAmmo]);
- }
- switch(PlayerInfo[playerid][pAmmoType])
- {
- case AMMOTYPE_HP:
- PlayerInfo[playerid][pHPAmmo] = PlayerInfo[playerid][pCurrentAmmo];
- case AMMOTYPE_POISON:
- PlayerInfo[playerid][pPoisonAmmo] = PlayerInfo[playerid][pCurrentAmmo];
- case AMMOTYPE_FMJ:
- PlayerInfo[playerid][pFMJAmmo] = PlayerInfo[playerid][pCurrentAmmo];
- }
- }
- if(PlayerInfo[playerid][pCurrentAmmo] == 0 && PlayerInfo[playerid][pAmmoType] != AMMOTYPE_NORMAL)
- {
- PlayerInfo[playerid][pAmmoType] = AMMOTYPE_NORMAL;
- PlayerInfo[playerid][pAmmoWeapon] = 0;
- SendClientMessageEx(playerid, COLOR_WHITE, "** Your %s is now using normal ammunition again as you ran out of special ammo.", GetWeaponNameEx(PlayerInfo[playerid][pCurrentWeapon]));
- SetPlayerWeapons(playerid);
- }
- }
- }
- }
- if(GetPlayerWeaponState(playerid) == WEAPONSTATE_RELOADING)
- {
- if(GetPlayerWeapon(playerid) != 25 && GetPlayerWeapon(playerid) != 33 && GetPlayerWeapon(playerid) != 34)
- {
- PlayerInfo[playerid][pReloading] = 1;
- }
- PlayerInfo[playerid][pACFired] = 0;
- }
-
- if(PlayerInfo[playerid][pReloading] && GetPlayerWeaponState(playerid) != WEAPONSTATE_RELOADING)
- {
- PlayerInfo[playerid][pClip] = GetWeaponClipSize(GetPlayerWeapon(playerid));
- PlayerInfo[playerid][pReloading] = 0;
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pCurrentVehicle] != vehicleid)
- {
- PlayerInfo[playerid][pCurrentVehicle] = vehicleid;
- PlayerInfo[playerid][pVehicleCount]++;
- if((!IsABoat(vehicleid) && GetVehicleModel(vehicleid) != 539) && PlayerInfo[playerid][pVehicleCount] >= 4 && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Car warping", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Car warping");
- return 0;
- }
- }
-
- if((44 <= GetPlayerWeapon(playerid) <= 45) && keys & KEY_FIRE)
- {
- return 0;
- }
- // Armor hacking
- if/*(!PlayerInfo[playerid][pJoinedEvent] && */(!PlayerInfo[playerid][pPaintball] && PlayerInfo[playerid][pDueling] == INVALID_PLAYER_ID)
- {
- // TODO: rewrite.
- }
-
- if(!PlayerInfo[playerid][pToggleHUD] && !PlayerInfo[playerid][pToggleTextdraws] && GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
- {
- new
- Float:health,
- Float:armour;
- GetPlayerHealth(playerid, health);
- GetPlayerArmour(playerid, armour);
- if(floatround(armour) > 0)
- {
- format(string, sizeof(string), "%.0f", armour);
- PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pText][3], string);
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][3]);
- }
- else
- {
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][3]);
- }
- format(string, sizeof(string), "%.0f", health);
- PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pText][4], string);
-
- if(PlayerInfo[playerid][pReloading]) {
- string = "0";
- } else {
- format(string, sizeof(string), "%i", PlayerInfo[playerid][pClip]);
- }
- PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pText][5], string);
- }
-
- PlayerInfo[playerid][pLastUpdate] = gettime();
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- if(VehicleInfo[vehicleid][vOwnerID] > 0 || VehicleInfo[vehicleid][vGang] >= 0)
- {
- VehicleInfo[vehicleid][vColor1] = color1;
- VehicleInfo[vehicleid][vColor2] = color2;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET color1 = %i, color2 = %i WHERE id = %i", color1, color2, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- if(VehicleInfo[vehicleid][vOwnerID] > 0 || VehicleInfo[vehicleid][vGang] >= 0)
- {
- ChangeVehiclePaintjob(vehicleid, VehicleInfo[vehicleid][vPaintjob]);
- VehicleInfo[vehicleid][vPaintjob] = paintjobid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET paintjob = %i WHERE id = %i", paintjobid, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- /*if(!GetPlayerInterior(playerid) && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Illegal modding", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Illegal modding");
- return 0;
- }*/
- if(VehicleInfo[vehicleid][vOwnerID] > 0 || VehicleInfo[vehicleid][vGang] >= 0)
- {
- new slotid = GetVehicleComponentType(componentid);
- VehicleInfo[vehicleid][vMods][slotid] = componentid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET mod_%i = %i WHERE id = %i", slotid + 1, componentid, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- if(adminVehicle{vehicleid})
- {
- DestroyVehicle(vehicleid);
- adminVehicle{vehicleid} = false;
- }
- if(IsValidDynamicObject(vehicleSiren[vehicleid]))
- {
- DestroyDynamicObject(vehicleSiren[vehicleid]);
- vehicleSiren[vehicleid] = INVALID_OBJECT_ID;
- }
- if((VehicleInfo[vehicleid][vID] > 0 && VehicleInfo[vehicleid][vOwnerID] > 0) || (VehicleInfo[vehicleid][vGang] >= 0))
- {
- ReloadVehicle(vehicleid);
- if(VehicleInfo[vehicleid][vGang] >= 0)
- {
- vehicleFuel[vehicleid] = 100;
- }
- if(IsValidDynamic3DTextLabel(DonatorCallSign[vehicleid]))
- {
- DestroyDynamic3DTextLabel(DonatorCallSign[vehicleid]);
- DonatorCallSign[vehicleid] = Text3D:INVALID_3DTEXT_ID;
- }
- if(IsValidDynamic3DTextLabel(vehicleCallsign[vehicleid]))
- {
- DestroyDynamic3DTextLabel(vehicleCallsign[vehicleid]);
- vehicleCallsign[vehicleid] = Text3D:INVALID_3DTEXT_ID;
- }
- }
- else
- {
- if(VehicleInfo[vehicleid][vID] > 0 && VehicleInfo[vehicleid][vHealth] > 300.0)
- {
- SetVehicleHealth(vehicleid, VehicleInfo[vehicleid][vHealth]);
- }
- vehicleFuel[vehicleid] = 100;
- }
- vehicleStream[vehicleid][0] = 0;
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(PlayerInfo[playerid][pLogged] && !PlayerInfo[playerid][pKicked])
- {
- /*if(PlayerInfo[playerid][pTutorial])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You are currently in the tutorial. Chatting is disabled.");
- return 0;
- }*/
- if(PlayerInfo[playerid][pHospital])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You are currently in the hospital. Chatting is disabled.");
- return 0;
- }
- if(PlayerInfo[playerid][pMuted])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You are currently muted. Chatting is disabled.");
- return 0;
- }
- if(++PlayerInfo[playerid][pSpamTime] >= 4 && PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pMuted] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "** You've been temporarily muted for ten seconds due to suspected spamming.");
- return 0;
- }
- /*if(PlayerInfo[playerid][pJoinedEvent])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- {
- if(EventInfo[eType] == 2)
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( {%06x}%s:{F7A763} %s ))", GetPlayerColor(playerid) >>> 8, GetPlayerRPName(playerid), text);
- }
- else
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s: %s ))", GetPlayerRPName(playerid), text);
- }
- }
- }
- }*/
- else
- {
- new
- string[144];
- if(PlayerInfo[playerid][pCallLine] != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playerid][pCallLine] != playerid && PlayerInfo[playerid][pCallStage] == 2)
- {
- if(!strcmp(PlayerInfo[playerid][pAccent], "None", true))
- {
- SendClientMessageEx(PlayerInfo[playerid][pCallLine], COLOR_YELLOW, "%s says (cellphone): %s", GetPlayerRPName(playerid), text);
- }
- else
- {
- SendClientMessageEx(PlayerInfo[playerid][pCallLine], COLOR_YELLOW, "(%s) %s says (cellphone): %s", PlayerInfo[playerid][pAccent], GetPlayerRPName(playerid), text);
- }
- }
- if(!strcmp(PlayerInfo[playerid][pAccent], "None", true))
- {
- format(string, sizeof(string), "%s says (cellphone): %s", GetPlayerRPName(playerid), text);
- }
- else
- {
- format(string, sizeof(string), "(%s) %s says (cellphone): %s", PlayerInfo[playerid][pAccent], GetPlayerRPName(playerid), text);
- }
- SendProximityFadeMessage(playerid, 20.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
- if(PlayerInfo[playerid][pCallLine] == playerid)
- {
- switch(PlayerInfo[playerid][pCallStage])
- {
- case 911:
- {
- if(!strcmp(text, "police", true))
- {
- SendClientMessage(playerid, COLOR_ROYALBLUE, "Dispatch: This is the Los Santos Police Department. What is your emergency?");
- PlayerInfo[playerid][pCallStage] = 912;
- }
- else if(!strcmp(text, "medic", true))
- {
- SendClientMessage(playerid, COLOR_DOCTOR, "Dispatch: This is the Los Santos Fire & Medical Department. What is your emergency?");
- PlayerInfo[playerid][pCallStage] = 913;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch: Sorry? I don't know what you mean... Enter 'police' or 'medic'.");
- }
- }
- case 912:
- {
- foreach(new i : Player)
- {
- if(IsLawEnforcement(i))
- {
- SendClientMessageEx(i, COLOR_ROYALBLUE, "|_____ Emergency Hotline _____|");
- SendClientMessageEx(i, COLOR_GREY2, "Caller: %s, Number: %i", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- SendClientMessageEx(i, COLOR_GREY2, "Location: %s", GetPlayerZoneName(playerid));
- SendClientMessageEx(i, COLOR_GREY2, "Emergency: %s", text);
- SendClientMessageEx(i, COLOR_WHITE, "** Use '/trackcall %i' to track the caller's location.", playerid);
- }
- }
- strcpy(PlayerInfo[playerid][pEmergency], text, 128);
- PlayerInfo[playerid][pEmergencyCall] = 120;
- PlayerInfo[playerid][pEmergencyType] = FACTION_POLICE;
-
- SendClientMessage(playerid, COLOR_ROYALBLUE, "Dispatch: All units in the area have been notified. Thank you for your time.");
- HangupCall(playerid, HANGUP_USER);
- }
- case 913:
- {
- foreach(new i : Player)
- {
- if(GetFactionType(i) == FACTION_MEDIC)
- {
- SendClientMessageEx(i, COLOR_DOCTOR, "|_____ Emergency Hotline _____|");
- SendClientMessageEx(i, COLOR_GREY2, "Caller: %s, Number: %i", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- SendClientMessageEx(i, COLOR_GREY2, "Location: %s", GetPlayerZoneName(playerid));
- SendClientMessageEx(i, COLOR_GREY2, "Emergency: %s", text);
- SendClientMessageEx(i, COLOR_WHITE, "** Use '/trackcall %i' to track the caller's location.", playerid);
- }
- }
-
- strcpy(PlayerInfo[playerid][pEmergency], text, 128);
- PlayerInfo[playerid][pEmergencyCall] = 120;
- PlayerInfo[playerid][pEmergencyType] = FACTION_MEDIC;
-
- SendClientMessage(playerid, COLOR_DOCTOR, "Dispatch: All units in the area have been notified. Thank you for your time.");
- HangupCall(playerid, HANGUP_USER);
- }
- case 6397:
- {
- foreach(new i : Player)
- {
- if(GetFactionType(i) == FACTION_NEWS)
- {
- SendClientMessageEx(i, COLOR_LIMITLESSBLUE, "|_____ News Hotline _____|");
- SendClientMessageEx(i, COLOR_GREY2, "Caller: %s, Number: %i", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- SendClientMessageEx(i, COLOR_GREY2, "Message: %s", text);
- }
- }
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "News Team: Thank you. We will get back to you shortly!");
- HangupCall(playerid, HANGUP_USER);
- }
- case 6324:
- {
- foreach(new i : Player)
- {
- if(PlayerHasJob(i, JOB_MECHANIC))
- {
- SendClientMessageEx(i, COLOR_GREEN, "|_____ Mechanic Hotline _____|");
- SendClientMessageEx(i, COLOR_GREY2, "Caller: %s, Number: %i", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- SendClientMessageEx(i, COLOR_GREY2, "Situation: %s", text);
- SendClientMessageEx(i, COLOR_WHITE, "** Use '/takecall %i' in order to take this call.", playerid);
- }
- }
- PlayerInfo[playerid][pMechanicCall] = 60;
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Dispatch: Thank you. We will alert all mechanics on duty.");
- HangupCall(playerid, HANGUP_USER);
- }
- case 8294:
- {
- foreach(new i : Player)
- {
- if(PlayerHasJob(i, JOB_TAXIDRIVER))
- {
- SendClientMessageEx(i, COLOR_GREEN, "|_____ Taxi Hotline _____|");
- SendClientMessageEx(i, COLOR_GREY2, "Caller: %s, Number: %i", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- SendClientMessageEx(i, COLOR_GREY2, "Location: %s", text);
- SendClientMessageEx(i, COLOR_WHITE, "** Use '/takecall %i' in order to take this call.", playerid);
- }
- }
- PlayerInfo[playerid][pTaxiCall] = 60;
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch: Thank you. We will alert all taxi drivers on duty.");
- HangupCall(playerid, HANGUP_USER);
- }
- }
-
- }
- }
- else if(PlayerInfo[playerid][pLiveBroadcast] != INVALID_PLAYER_ID)
- {
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleNews])
- {
- if(GetFactionType(playerid) == FACTION_NEWS)
- {
- SendClientMessageEx(i, COLOR_LIGHTGREEN, "Live Reporter %s: %s", GetPlayerRPName(playerid), text);
- }
- else
- {
- SendClientMessageEx(i, COLOR_LIGHTGREEN, "Live Guest %s: %s", GetPlayerRPName(playerid), text);
- }
- }
- }
- SendProximityFadeMessage(playerid, 20.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
- }
- else
- {
- if(PlayerInfo[playerid][pHelper] > 0 && PlayerInfo[playerid][pAcceptedHelp])
- {
- cmd_b(playerid, text);
- }
- else
- {
- if(!strcmp(PlayerInfo[playerid][pAccent], "None", true))
- {
- format(string, sizeof(string), "%s says: %s", GetPlayerRPName(playerid), text);
- }
- else
- {
- format(string, sizeof(string), "(%s) %s says: %s", PlayerInfo[playerid][pAccent], GetPlayerRPName(playerid), text);
- }
- SendProximityFadeMessage(playerid, 20.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
- SetPlayerBubbleText(playerid, 20.0, COLOR_WHITE, "says: %s", text);
- }
- }
- }
- }
- PlayerInfo[playerid][pAFKPos][0] = 0.0;
- PlayerInfo[playerid][pAFKPos][1] = 0.0;
- PlayerInfo[playerid][pAFKPos][2] = 0.0;
- return 0;
- }
- public OnPlayerCommandReceived(playerid, cmdtext[])
- {
- if(PlayerInfo[playerid][pKicked]) return 0;
- if(!PlayerInfo[playerid][pLogged])
- {
- SendClientMessage(playerid, COLOR_RED, "You cannot use commands if you're not logged in.");
- return 0;
- }
- /*if(PlayerInfo[playerid][pTutorial])// && strcmp(cmdtext, "/report", true, 6))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You are currently in the tutorial. Commands are disabled.");
- return 0;
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_WASTED)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You are currently dead. Commands are disabled.");
- return 0;
- }*/
- if(PlayerInfo[playerid][pMuted])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You are currently muted. Commands are disabled.");
- return 0;
- }
- if(++PlayerInfo[playerid][pSpamTime] >= 4 && PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pMuted] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "** You've been temporarily muted for ten seconds due to suspected flooding.");
- return 0;
- }
- /*if((PlayerInfo[playerid][pAdmin] < 6) && (!strcmp(cmdtext, "/ban", true, 3) || !strcmp(cmdtext, "/kick", true, 4) || !strcmp(cmdtext, "/sban", true, 4) || !strcmp(cmdtext, "/skick", true, 5) || !strcmp(cmdtext, "/permaban", true, 8) || !strcmp(cmdtext, "/rangeban", true, 8) || !strcmp(cmdtext, "/getip", true, 5) || !strcmp(cmdtext, "/traceip", true, 7)))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** These commands cannot be used during beta testing.");
- return 0;
- }
- if((PlayerInfo[playerid][pAdmin] < 5) && (!strcmp(cmdtext, "/adminname")))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** These commands cannot be used during beta testing.");
- return 0;
- }*/
- if(strcmp(cmdtext, "/whostheman", true, 10))
- {
- printf("[cmd][%s]: %s", GetPlayerNameEx(playerid), cmdtext);
- }
-
- PlayerInfo[playerid][pAFKPos][0] = 0.0;
- PlayerInfo[playerid][pAFKPos][1] = 0.0;
- PlayerInfo[playerid][pAFKPos][2] = 0.0;
- return 1;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success)
- {
- GameTextForPlayer(playerid, "~r~~h~Command not recognized.", 3000, 4);
- }
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(success)
- {
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerIP(i), ip) && PlayerInfo[i][pAdmin] < 7)
- {
- BanPlayer(i, "Server", "Unauthorized RCON login");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s was banned for an unauthorized RCON login.", GetPlayerRPName(i));
- }
- }
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys & KEY_SPRINT)
- {
- if(PlayerInfo[playerid][pLoopAnim])
- {
- PlayerInfo[playerid][pLoopAnim] = 0;
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
- TextDrawHideForPlayer(playerid, AnimationTD);
- }
- }
- if((gettime() - PlayerInfo[playerid][pLastPress]) >= 1)
- {
- if(newkeys & KEY_YES)
- {
- if(!EnterCheck(playerid)) ExitCheck(playerid);
- DoorCheck(playerid);
- GateCheck(playerid);
- PlayerInfo[playerid][pLastPress] = gettime(); // Prevents spamming. Sometimes keys get messed up and register twice.
- }
- else if(newkeys & KEY_NO && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- cmd_engine(playerid, "\1");
- PlayerInfo[playerid][pLastPress] = gettime(); // Prevents spamming. Sometimes keys get messed up and register twice.
- }
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(PlayerInfo[playerid][pKicked]) return 0;
- if(newstate == PLAYER_STATE_DRIVER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if((pizzaVehicles[0] <= vehicleid <= pizzaVehicles[5]) && !PlayerHasJob(playerid, JOB_PIZZAMAN))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Pizzaman.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if((courierVehicles[0] <= vehicleid <= courierVehicles[6]) && !PlayerHasJob(playerid, JOB_COURIER))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Courier.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if((sweeperVehicles[0] <= vehicleid <= sweeperVehicles[3]) && !PlayerHasJob(playerid, JOB_SWEEPER))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Street Sweeper.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if((taxiVehicles[0] <= vehicleid <= taxiVehicles[3]) && !PlayerHasJob(playerid, JOB_TAXIDRIVER))
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a Taxi Driver.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if((testVehicles[0] <= vehicleid <= testVehicles[4]) && !PlayerInfo[playerid][pDrivingTest])
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not taking your drivers test.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(VehicleInfo[vehicleid][vFactionType] != FACTION_NONE && GetFactionType(playerid) != VehicleInfo[vehicleid][vFactionType])
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as it doesn't belong to your faction.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(VehicleInfo[vehicleid][vGang] >= 0 && PlayerInfo[playerid][pGang] != VehicleInfo[vehicleid][vGang])
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot operate this vehicle as it doesn't belong to your gang.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(VehicleInfo[vehicleid][vJob] >= 0 && PlayerInfo[playerid][pJob] != VehicleInfo[vehicleid][vJob])
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You cannot operate this vehicle as you are not a %s.", GetJobName(VehicleInfo[vehicleid][vJob]));
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(!VehicleHasEngine(vehicleid))
- {
- SetVehicleParams(vehicleid, VEHICLE_ENGINE, true);
- }
- else if(!GetVehicleParams(vehicleid, VEHICLE_ENGINE))
- {
- if(testVehicles[0] <= vehicleid <= testVehicles[4])
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_TEST;
- PlayerInfo[playerid][pTestVehicle] = vehicleid;
- PlayerInfo[playerid][pTestCP] = 0;
- SetVehicleParams(vehicleid, VEHICLE_ENGINE, 1);
- SetPlayerCheckpoint(playerid, drivingTestCPs[PlayerInfo[playerid][pTestCP]][0], drivingTestCPs[PlayerInfo[playerid][pTestCP]][1], drivingTestCPs[PlayerInfo[playerid][pTestCP]][2], 3.0);
- SendClientMessage(playerid, COLOR_AQUA, "Drive through the checkpoints to proceed with the test. Try not to damage your vehicle.");
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Engine Off~n~~w~/engine", 3000, 3);
- }
- }
- if(!PlayerInfo[playerid][pCarLicense] && !PlayerInfo[playerid][pDrivingTest])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You're driving without a license which is illegal. You can be pulled over or arrested.");
- }
- if(IsVehicleOwner(playerid, vehicleid) && VehicleInfo[vehicleid][vTickets] > 0)
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "This vehicle has $%i in unpaid tickets. You can pay your tickets using /paytickets.", VehicleInfo[vehicleid][vTickets]);
- }
- if(!PlayerInfo[playerid][pToggleTextdraws])
- {
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][1]);
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][2]);
- }
- SetPlayerArmedWeapon(playerid, 0);
- /*if(isnull(vehicleStream[vehicleid]))
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Radio: Use {FFD700}/setradio{F7A763} to listen to a radio station.");
- }*/
-
- /*if(isnull(vehicleStream[vehicleid]))
- {
- SendClientMessage(playerid, COLOR_WHITE, "** Use {C8C8C8}/setradio{FFFFFF} to change the radio station in this vehicle.");
- }*/
- }
- else if(oldstate == PLAYER_STATE_DRIVER)
- {
- if(PlayerInfo[playerid][pDrivingTest])
- {
- PlayerInfo[playerid][pDrivingTest] = 0;
- SetVehicleToRespawn(PlayerInfo[playerid][pTestVehicle]);
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You have exited the vehicle and therefore failed the test.");
- }
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][1]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][2]);
- }
- else if(newstate == PLAYER_STATE_PASSENGER)
- {
- new driverid = GetVehicleDriver(GetPlayerVehicleID(playerid));
- if((driverid != INVALID_VEHICLE_ID && PlayerInfo[driverid][pTaxiFare] > 0 && PlayerInfo[driverid][pTaxiPassenger] == INVALID_PLAYER_ID) && (GetVehicleModel(GetPlayerVehicleID(playerid)) == 420 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 438))
- {
- if(PlayerInfo[playerid][pCash] < PlayerInfo[driverid][pTaxiFare])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to pay the fare. Therefore you can't ride this taxi.");
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- PlayerInfo[driverid][pTaxiPassenger] = playerid;
- PlayerInfo[driverid][pTaxiBill] = PlayerInfo[driverid][pTaxiFare];
- PlayerInfo[driverid][pTaxiTime] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s enters %s's taxi cab.", GetPlayerRPName(playerid), GetPlayerRPName(driverid));
- SendClientMessageEx(playerid, COLOR_YELLOW, "You will be charged the fare price of {FF6347}$%i{33CCFF} every 15 seconds during your ride.", PlayerInfo[driverid][pTaxiFare]);
- SendClientMessageEx(driverid, COLOR_AQUA, "*%s has entered your taxi. You will earn {00AA00}$%i{33CCFF} every 15 seconds during the ride.", GetPlayerRPName(playerid), PlayerInfo[driverid][pTaxiFare]);
- }
- switch(GetPlayerWeapon(playerid))
- {
- case 22, 23, 25, 28..34:
- SetPlayerArmedWeapon(playerid, GetScriptWeapon(playerid));
- default:
- SetPlayerArmedWeapon(playerid, 0);
- }
- }
- if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- foreach(new i : Player)
- {
- if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && PlayerInfo[i][pSpectating] == playerid)
- {
- PlayerSpectateVehicle(i, vehicleid);
- }
- }
- if(!isnull(vehicleStream[vehicleid]) && PlayerInfo[playerid][pStreamType] == MUSIC_NONE && !PlayerInfo[playerid][pToggleMusic])
- {
- PlayerInfo[playerid][pStreamType] = MUSIC_VEHICLE;
- PlayAudioStreamForPlayer(playerid, vehicleStream[vehicleid]);
- SendClientMessage(playerid, COLOR_WHITE, "** You are now tuned in to this vehicle's radio. /stopmusic to stop listening.");
- }
- }
- else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
- {
- foreach(new i : Player)
- {
- if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && PlayerInfo[i][pSpectating] == playerid)
- {
- PlayerSpectatePlayer(i, playerid);
- }
- }
- if(PlayerInfo[playerid][pStreamType] == MUSIC_VEHICLE)
- {
- StopAudioStreamForPlayer(playerid);
- PlayerInfo[playerid][pStreamType] = MUSIC_NONE;
- }
- }
- if(newstate == PLAYER_STATE_DRIVER) {
- pvehicleid[playerid] = GetPlayerVehicleID(playerid);
- pmodelid[playerid] = GetVehicleModel(pvehicleid[playerid]);
- }
- else {
- pvehicleid[playerid] = 0;
- pmodelid[playerid] = 0;
- }
- return 1;
- }
- GetVehicleWithinDistance( playerid, Float:x1, Float:y1, Float:z1, Float:dist, &vehic){
- for(new i = 1; i < MAX_VEHICLES; i++){
- if(GetVehicleModel(i) > 0){
- if(GetPlayerVehicleID(playerid) != i ){
- new Float:x, Float:y, Float:z;
- new Float:x2, Float:y2, Float:z2;
- GetVehiclePos(i, x, y, z);
- x2 = x1 - x; y2 = y1 - y; z2 = z1 - z;
- new Float:iDist = (x2*x2+y2*y2+z2*z2);
- printf("Vehicle %d is %f", i, iDist);
- if( iDist < dist){
- vehic = i;
- }
- }
- }
- }
- }
- #pragma unused GetVehicleWithinDistance
- 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(!(-3.0 <= fScaleX <= 3.0)) fScaleX = fScaleX < -3.0 ? 0.0 : 3.0;
- if(!(-3.0 <= fScaleY <= 3.0)) fScaleY = fScaleY < -3.0 ? 0.0 : 3.0;
- if(!(-3.0 <= fScaleZ <= 3.0)) fScaleZ = fScaleZ < -3.0 ? 0.0 : 3.0;
- switch(PlayerInfo[playerid][pEditType])
- {
- case EDIT_CLOTHING_PREVIEW:
- {
- RemovePlayerAttachedObject(playerid, 9);
- if(response)
- {
- new businessid = GetInsideBusiness(playerid);
- if(businessid >= 0 && BusinessInfo[businessid][bType] == BUSINESS_CLOTHES)
- {
- if(BusinessInfo[businessid][bProducts] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This business is out of stock now.");
- }
- if(PlayerInfo[playerid][pCash] < clothingArray[PlayerInfo[playerid][pSelected]][clothingPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You couldn't afford to purchase this item.");
- }
- for(new i = 0; i < MAX_PLAYER_CLOTHING; i ++)
- {
- if(!ClothingInfo[playerid][i][cExists])
- {
- ClothingInfo[playerid][i][cModel] = modelid;
- ClothingInfo[playerid][i][cBone] = boneid;
- ClothingInfo[playerid][i][cPosX] = fOffsetX;
- ClothingInfo[playerid][i][cPosY] = fOffsetY;
- ClothingInfo[playerid][i][cPosZ] = fOffsetZ;
- ClothingInfo[playerid][i][cRotX] = fRotX;
- ClothingInfo[playerid][i][cRotY] = fRotY;
- ClothingInfo[playerid][i][cRotZ] = fRotZ;
- ClothingInfo[playerid][i][cScaleX] = fScaleX;
- ClothingInfo[playerid][i][cScaleY] = fScaleY;
- ClothingInfo[playerid][i][cScaleZ] = fScaleZ;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO clothing VALUES(null, %i, '%e', %i, %i, 0, '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f')", PlayerInfo[playerid][pID], clothingArray[PlayerInfo[playerid][pSelected]][clothingName], modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerBuyClothingItem", "isiii", playerid, clothingArray[PlayerInfo[playerid][pSelected]][clothingName], clothingArray[PlayerInfo[playerid][pSelected]][clothingPrice], businessid, i);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You have no more clothing slots available. Therefore you can't buy this.");
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_BUYCLOTHING);
- }
- }
- case EDIT_CLOTHING:
- {
- new clothingid = PlayerInfo[playerid][pSelected];
- if(response)
- {
- ClothingInfo[playerid][clothingid][cPosX] = fOffsetX;
- ClothingInfo[playerid][clothingid][cPosY] = fOffsetY;
- ClothingInfo[playerid][clothingid][cPosZ] = fOffsetZ;
- ClothingInfo[playerid][clothingid][cRotX] = fRotX;
- ClothingInfo[playerid][clothingid][cRotY] = fRotY;
- ClothingInfo[playerid][clothingid][cRotZ] = fRotZ;
- ClothingInfo[playerid][clothingid][cScaleX] = fScaleX;
- ClothingInfo[playerid][clothingid][cScaleY] = fScaleY;
- ClothingInfo[playerid][clothingid][cScaleZ] = fScaleZ;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE clothing SET pos_x = '%f', pos_y = '%f', pos_z = '%f', rot_x = '%f', rot_y = '%f', rot_z = '%f', scale_x = '%f', scale_y = '%f', scale_z = '%f' WHERE id = %i", fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ, ClothingInfo[playerid][clothingid][cID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREY, "Changes saved.");
- }
- if(!ClothingInfo[playerid][clothingid][cAttached])
- {
- RemovePlayerAttachedObject(playerid, 9);
- }
- else
- {
- RemovePlayerAttachedObject(playerid, ClothingInfo[playerid][clothingid][cAttachedIndex]);
- SetPlayerAttachedObject(playerid, ClothingInfo[playerid][clothingid][cAttachedIndex], ClothingInfo[playerid][clothingid][cModel], ClothingInfo[playerid][clothingid][cBone], ClothingInfo[playerid][clothingid][cPosX], ClothingInfo[playerid][clothingid][cPosY], ClothingInfo[playerid][clothingid][cPosZ],
- ClothingInfo[playerid][clothingid][cRotX], ClothingInfo[playerid][clothingid][cRotY], ClothingInfo[playerid][clothingid][cRotZ], ClothingInfo[playerid][clothingid][cScaleX], ClothingInfo[playerid][clothingid][cScaleY], ClothingInfo[playerid][clothingid][cScaleZ]);
- }
- }
- }
- return 1;
- }
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- switch(PlayerInfo[playerid][pEditType])
- {
- case EDIT_FURNITURE_PREVIEW:
- {
- if(response != EDIT_RESPONSE_UPDATE)
- {
- DestroyDynamicObject(PlayerInfo[playerid][pEditObject]);
- PlayerInfo[playerid][pEditObject] = INVALID_OBJECT_ID;
- if(response == EDIT_RESPONSE_FINAL)
- {
- new houseid = GetInsideHouse(playerid);
- if(houseid >= 0 && HasFurniturePerms(playerid, houseid))
- {
- if(PlayerInfo[playerid][pCash] < furnitureArray[PlayerInfo[playerid][pSelected]][fPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You couldn't afford to purchase this item.");
- }
- new
- string[16];
- GivePlayerCash(playerid, -furnitureArray[PlayerInfo[playerid][pSelected]][fPrice]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO furniture VALUES(null, %i, %i, '%e', %i, '%f', '%f', '%f', '%f', '%f', '%f', %i, %i, 0, 0)", HouseInfo[houseid][hID], furnitureArray[PlayerInfo[playerid][pSelected]][fModel], furnitureArray[PlayerInfo[playerid][pSelected]][fName], furnitureArray[PlayerInfo[playerid][pSelected]][fPrice], x, y, z, rx, ry, rz, HouseInfo[houseid][hInterior], HouseInfo[houseid][hWorld]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_tquery(connectionID, "SELECT * FROM furniture WHERE id = LAST_INSERT_ID()", "OnQueryFinished", "ii", THREAD_LOAD_FURNITURE, HouseInfo[houseid][hLabels]);
- format(string, sizeof(string), "~r~-$%i", furnitureArray[PlayerInfo[playerid][pSelected]][fPrice]);
- GameTextForPlayer(playerid, string, 5000, 1);
- if(!strcmp(furnitureArray[PlayerInfo[playerid][pSelected]][fCategory], "Doors & gates"))
- {
- SendClientMessage(playerid, COLOR_WHITE, "** You can use /door to control your door and /lock to unlock or lock it.");
- }
- }
- }
- else if(response == EDIT_RESPONSE_CANCEL)
- {
- ShowDialogToPlayer(playerid, DIALOG_BUYFURNITURE2);
- }
- }
- }
- case EDIT_FURNITURE:
- {
- if(response != EDIT_RESPONSE_UPDATE)
- {
- if(response == EDIT_RESPONSE_FINAL)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE furniture SET pos_x = '%f', pos_y = '%f', pos_z = '%f', rot_x = '%f', rot_y = '%f', rot_z = '%f' WHERE id = %i", x, y, z, rx, ry, rz, Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_GREY, "Changes saved.");
- }
- ReloadFurniture(objectid, HouseInfo[PlayerInfo[playerid][pFurnitureHouse]][hLabels]);
- }
- }
- case EDIT_LAND_OBJECT_PREVIEW:
- {
- if(response != EDIT_RESPONSE_UPDATE)
- {
- DestroyDynamicObject(PlayerInfo[playerid][pEditObject]);
- PlayerInfo[playerid][pEditObject] = INVALID_OBJECT_ID;
- if(response == EDIT_RESPONSE_FINAL)
- {
- new landid = PlayerInfo[playerid][pObjectLand];
- if(landid >= 0 && HasLandPerms(playerid, landid))
- {
- if(PlayerInfo[playerid][pCash] < furnitureArray[PlayerInfo[playerid][pSelected]][fPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You couldn't afford to purchase this item.");
- }
- if(!IsPointInLand(landid, x, y))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The object has exceeded the boundaries for your land.");
- }
- new
- string[16];
- GivePlayerCash(playerid, -furnitureArray[PlayerInfo[playerid][pSelected]][fPrice]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO landobjects VALUES(null, %i, %i, '%e', %i, '%f', '%f', '%f', '%f', '%f', '%f', 0, 0, '%f', '%f', '%f', '-1000.0', '-1000.0', '-1000.0')", LandInfo[landid][lID], furnitureArray[PlayerInfo[playerid][pSelected]][fModel], furnitureArray[PlayerInfo[playerid][pSelected]][fName], furnitureArray[PlayerInfo[playerid][pSelected]][fPrice], x, y, z, rx, ry, rz, x, y, z - 10.0);
- mysql_tquery(connectionID, queryBuffer);
- mysql_tquery(connectionID, "SELECT * FROM landobjects WHERE id = LAST_INSERT_ID()", "OnQueryFinished", "ii", THREAD_LOAD_LANDOBJECTS, LandInfo[landid][lLabels]);
- format(string, sizeof(string), "~r~-$%i", furnitureArray[PlayerInfo[playerid][pSelected]][fPrice]);
- GameTextForPlayer(playerid, string, 5000, 1);
- if(!strcmp(furnitureArray[PlayerInfo[playerid][pSelected]][fCategory], "Doors & gates"))
- {
- if(IsGateModel(furnitureArray[PlayerInfo[playerid][pSelected]][fModel]))
- {
- SendClientMessage(playerid, COLOR_WHITE, "** You can use /gate to open and close your gate. To change the destination coordinates, use /land and choose 'Edit object'.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "** You can use /door to control your door and /lock to unlock or lock it.");
- }
- }
- }
- }
- else if(response == EDIT_RESPONSE_CANCEL)
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDBUILD2);
- }
- }
- }
- case EDIT_LAND_OBJECT:
- {
- if(response != EDIT_RESPONSE_UPDATE)
- {
- if(response == EDIT_RESPONSE_FINAL)
- {
- if(!IsPointInLand(PlayerInfo[playerid][pObjectLand], x, y))
- {
- SendClientMessage(playerid, COLOR_GREY, "The object has exceeded the boundaries for your land.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE landobjects SET pos_x = '%f', pos_y = '%f', pos_z = '%f', rot_x = '%f', rot_y = '%f', rot_z = '%f' WHERE id = %i", x, y, z, rx, ry, rz, Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_GREY, "Changes saved.");
- }
- }
- ReloadLandObject(objectid, LandInfo[PlayerInfo[playerid][pObjectLand]][lLabels]);
- }
- }
- case EDIT_LAND_GATE_MOVE:
- {
- if(response != EDIT_RESPONSE_UPDATE)
- {
- if(response == EDIT_RESPONSE_FINAL)
- {
- if(!IsPointInLand(PlayerInfo[playerid][pObjectLand], x, y))
- {
- SendClientMessage(playerid, COLOR_GREY, "The object has exceeded the boundaries for your land.");
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE landobjects SET move_x = '%f', move_y = '%f', move_z = '%f', move_rx = '%f', move_ry = '%f', move_rz = '%f' WHERE id = %i", x, y, z, rx, ry, rz, Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_GREY, "Changes saved.");
- }
- }
- ReloadLandObject(objectid, LandInfo[PlayerInfo[playerid][pObjectLand]][lLabels]);
- }
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(PlayerInfo[playerid][pKicked]) return 0;
- // This is a fix to a known exploit where inserting '%' in the dialog box would crash the server.
- for(new i = 0, l = strlen(inputtext); i < l; i ++)
- {
- if(inputtext[i] == '%') inputtext[i] = '#';
- }
- switch(dialogid)
- {
- case DIALOG_TYPE_MAIN:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- /*case 0:// Paintjobs
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- case 1: // colors
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }*/
- case 0: // Hoods
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- case 1: // Vents
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- case 2: // Lights
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- case 3: // Exhausts
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- case 4: // Front Bumpers
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- case 5: // Rear Bumpers
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- case 6: // Roofs
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- case 7: // Spoilers
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- case 8: // Side Skirts
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- case 9: // Bullbars
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- case 10: // Wheels
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- case 11: // Car Stereo
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
- }
- case 12: // Hydraulics
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_HYDRAULICS, DIALOG_STYLE_LIST, "Hydaulics", "Hydaulics\n \nBack", "Apply", "Close");
- }
- case 13: // Nitrous Oxide
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_NITRO, DIALOG_STYLE_LIST, "Nitrous Oxide", "2x Nitrous\n5x Nitrous\n10x Nitrous\n \nBack", "Apply", "Close");
- }
- case 14: // Repair Car
- {
- new car = GetPlayerVehicleID(playerid);
- SetVehicleHealth(car,1000);
- RepairVehicle(car);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- return 1;
- }
- }
- }
- }
- /*case DIALOG_TYPE_PAINTJOBS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:// Paintjobs
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 560 ||
- pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 || // Broadway
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 535 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 558)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehiclePaintjob(car,0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added paintjob to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Paintjob is only for Wheel Arch Angrls and Loco Low Co types of cars");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- }
- case 1: // Colors
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 560 ||
- pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 || // Broadway
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 535 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 558)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehiclePaintjob(car,1);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added paintjob to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Paintjob is only for Wheel Arch Angrls and Loco Low Co types of cars");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- }
- case 2: // Exhausts
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 560 ||
- pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 || // Broadway
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 535 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 558)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehiclePaintjob(car,2);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added paintjob to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Paintjob is only for Wheel Arch Angrls and Loco Low Co types of cars");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- }
- case 3: // Front Bumpers
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 560 ||
- pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 || // Broadway
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 535 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 558)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehiclePaintjob(car,3);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added paintjob to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Paintjob is only for Wheel Arch Angrls and Loco Low Co types of cars");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- }
- case 4: // Rear Bumpers
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 560 ||
- pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 || // Broadway
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 535 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 558)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehiclePaintjob(car,4);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added paintjob to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Paintjob is only for Wheel Arch Angrls and Loco Low Co types of cars");
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_PAINTJOBS, DIALOG_STYLE_LIST, "Paintjobs", "Paint Job 1\nPaint Job 2\nPaint Job 3\nPaint Job 4\nPaint Job 5\n \nBack", "Apply", "Close");
- }
- case 6:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Paint Jobs\nColors\nHoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_COLORS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,0,0);
- //GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,1,1);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,3,3);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,79,79);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,86,86);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,6,6);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 6:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,126,126);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 7:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,66,66);
- // GivePlayerMoney(playerid,-150);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 8:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,24,24);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 9:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,123,123);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 10:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,53,53);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 11:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,93,93);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 12:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,83,83);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 13:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,60,60);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 14:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,161,161);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 15:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- ChangeVehicleColor(car,153,153);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully repainted to car");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- }
- case 16:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_COLORS, DIALOG_STYLE_LIST, "Colors", "Black\nWhite\nRed\nBlue\nGreen\nYellow\nPink\nBrown\nGrey\nGold\nDark Blue\nLight Blue\nCold Green\nLight Grey\nDark Red\nDark Brown\n \nBack", "Apply", "Close");
- }
- case 17:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "nHoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }*/
- case DIALOG_TYPE_EXHAUSTS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562)
- {
- AddVehicleComponent(car,1034);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565)
- {
- AddVehicleComponent(car,1046);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559)
- {
- AddVehicleComponent(car,1065);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561)
- {
- AddVehicleComponent(car,1064);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560)
- {
- AddVehicleComponent(car,1028);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558)
- {
- AddVehicleComponent(car,1089);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562)
- {
- AddVehicleComponent(car,1037);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565)
- {
- AddVehicleComponent(car,1045);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559)
- {
- AddVehicleComponent(car,1066);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561)
- {
- AddVehicleComponent(car,1059);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560)
- {
- AddVehicleComponent(car,1029);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558)
- {
- AddVehicleComponent(car,1092);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1044);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 534)// Remington
- {
- AddVehicleComponent(car,1126);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567)// Savanna
- {
- AddVehicleComponent(car,1129);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1104);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1113);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1136);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1043);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 534)// Remington
- {
- AddVehicleComponent(car,1127);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567)// Savanna
- {
- AddVehicleComponent(car,1132);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1105);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1114);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1135);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 4:// Large
- {
- if(
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 527 ||//cadrona
- pmodelid[playerid] == 542 ||//clover
- pmodelid[playerid] == 589 ||//club
- pmodelid[playerid] == 400 ||//landstalker
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 426 ||//premier
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 405 ||//sentinel
- pmodelid[playerid] == 580 ||//stafford
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549 ||//tampa
- pmodelid[playerid] == 477)//zr-350
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 527) // cadrona
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 542) // clover
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589) // club
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 400) // landstalker
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 580) // stafford
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // zr-350
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1020);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 5: // Medium
- {
- if(
- pmodelid[playerid] == 527 ||//cadrona
- pmodelid[playerid] == 542 ||//clover
- pmodelid[playerid] == 400 ||//landstalker
- pmodelid[playerid] == 426 ||//premier
- pmodelid[playerid] == 436 ||//previon
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 405 ||//sentinel
- pmodelid[playerid] == 477)//zr-350
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 527) // cadrona
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 542) // clover
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 400) // landstalker
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426) // premier
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // zr350
- {
- AddVehicleComponent(car,1021);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 6: // Small
- {
- if(
- pmodelid[playerid] == 436)//previon
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1022);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 7: // Twin
- {
- if(
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 415 ||//cheetah
- pmodelid[playerid] == 542 ||//clover
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 400 ||//landstalker
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 426 ||//premier
- pmodelid[playerid] == 436 ||//previon
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 405 ||//sentinel
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549 ||//tampa
- pmodelid[playerid] == 477)//zr-350
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 415) // cheetah
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 542) // clover
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 400) // landstalker
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426) // premier
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405 ) // sentinel
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // zr-350
- {
- AddVehicleComponent(car,1019);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 8: // Upswept
- {
- if(
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 415 ||//cheetah
- pmodelid[playerid] == 542 ||//clover
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 400 ||//landstalker
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 426 ||//premier
- pmodelid[playerid] == 415 ||//cheetah
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 405 ||//sentinel
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549 ||//tampa
- pmodelid[playerid] == 477)//zr-350
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 415) // cheetah
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 527) // cadrona
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 542) // clover
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589) // club
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 400) // landstalker
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 580) // stafford
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1018);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // zr-350
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1018);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- }
- case 9: // _
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_EXHAUSTS, DIALOG_STYLE_LIST, "Exhausts", "Wheel Arc. Alien exhaust\nWheel Arc. X-Flow exhaust\nLow Co. Chromer exhaust\nLow Co. Slamin exhaust\nTransfender Large exhaust\nTransfender Medium exhaust\nTransfender Small exhaust\nTransfender Twin exhaust\nTransfender Upswept exhaust\n \nBack", "Apply", "Close");
- }
- case 10: // Back
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_FBUMPS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1171);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1153);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jester
- {
- AddVehicleComponent(car,1160);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1155);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1169);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1166);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1172);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1152);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jetser
- {
- AddVehicleComponent(car,1173);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1157);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1170);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1165);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1174);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 534)// Remington
- {
- AddVehicleComponent(car,1179);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567)// Savanna
- {
- AddVehicleComponent(car,1189);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1182);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1115);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1191);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 535 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 576)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1175);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 534)// Remington
- {
- AddVehicleComponent(car,1185);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567)// Savanna
- {
- AddVehicleComponent(car,1188);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1181);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1116);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1190);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_FBUMPS, DIALOG_STYLE_LIST,"Front Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow co. Chromer Bumper\nLow co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_RBUMPS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1149);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1150);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jester
- {
- AddVehicleComponent(car,1159);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1154);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1141);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1168);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1148);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] YComponent successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1151);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jetser
- {
- AddVehicleComponent(car,1161);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1156);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1140);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1167);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1176);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 534)// Remington
- {
- AddVehicleComponent(car,1180);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567)// Savanna
- {
- AddVehicleComponent(car,1187);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1184);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1109);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1192);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1177);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 534)// Remington
- {
- AddVehicleComponent(car,1178);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567)// Savanna
- {
- AddVehicleComponent(car,1186);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1183);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1110);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1193);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_RBUMPS, DIALOG_STYLE_LIST, "Rear Bumpers", "Wheel Arc. Alien Bumper\nWheel Arc. X-Flow Bumper\nLow Co. Chromer Bumper\nLow Co. Slamin Bumper\n \nBack", "Apply", "Close");
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_ROOFS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1038);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1054);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jester
- {
- AddVehicleComponent(car,1067);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1055);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1032);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1088);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1035);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1053);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jetser
- {
- AddVehicleComponent(car,1068);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1061);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1033);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1091);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 567) // Savanna
- {
- AddVehicleComponent(car,1130);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1128);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(pmodelid[playerid] == 567 ||
- pmodelid[playerid] == 536)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 567) // Savanna
- {
- AddVehicleComponent(car,1131);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1103);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- if(
- pmodelid[playerid] == 401 ||
- pmodelid[playerid] == 518 ||
- pmodelid[playerid] == 589 ||
- pmodelid[playerid] == 492 ||
- pmodelid[playerid] == 546 ||
- pmodelid[playerid] == 603 ||
- pmodelid[playerid] == 426 ||
- pmodelid[playerid] == 436 ||
- pmodelid[playerid] == 580 ||
- pmodelid[playerid] == 550||
- pmodelid[playerid] == 477)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 492)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 580)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477)
- {
- AddVehicleComponent(car,1006);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_ROOFS, DIALOG_STYLE_LIST, "Roofs", "Wheel Arc. Alien\nWheel Arc. X-Flow\nLow Co. Hardtop Roof\nLow Co. Softtop Roof\nTransfender Roof Scoop\n \nBack", "Apply", "Close");
- }
- case 6:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_SPOILERS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1147);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1049);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jester
- {
- AddVehicleComponent(car,1162);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1158);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1138);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1164);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1146);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1150);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jetser
- {
- AddVehicleComponent(car,1158);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1060);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1139);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1163);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 2:// Win
- {
- if(
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 527 ||//cadrona
- pmodelid[playerid] == 415 ||//cheetah
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 426 ||//premier
- pmodelid[playerid] == 436 ||//previon
- pmodelid[playerid] == 405 ||//sentinel
- pmodelid[playerid] == 477 ||//stallion
- pmodelid[playerid] == 580 ||//stafford
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549)//tampa
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 527) // cadrona
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 415) // cheetah
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426) // premier
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // stallion
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 580) // stafford
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1001);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 3: // Fury
- {
- if(
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 415 ||//cheetah
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 405 ||//sentinel
- pmodelid[playerid] == 477 ||//stallion
- pmodelid[playerid] == 580 ||//stafford
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549)//tampa
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 415) // cheetah
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // stallion
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 580) // stafford
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1023);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 4: // Alpha
- {
- if(
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 415 ||//cheetah
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 426 ||//premier
- pmodelid[playerid] == 436 ||//previon
- pmodelid[playerid] == 477 ||//stallion
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549)//tampa
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 415) // cheetah
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426) // premier
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477) // stallion
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1003);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 5: // Pro
- {
- if(
- pmodelid[playerid] == 589 ||//club
- pmodelid[playerid] == 492 ||//greenwood
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 405)//sentinel
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 518) // club
- {
- AddVehicleComponent(car,1000);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 492) // greenwood
- {
- AddVehicleComponent(car,1000);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1000);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1000);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 6: // Champ
- {
- if(
- pmodelid[playerid] == 527 ||//cadrona
- pmodelid[playerid] == 542 ||//clover
- pmodelid[playerid] == 405)//sentinel
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 527) // cadrona
- {
- AddVehicleComponent(car,1014);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 542) // clover
- {
- AddVehicleComponent(car,1014);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 405) // sentinel
- {
- AddVehicleComponent(car,1014);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 7: // Race
- {
- if(
- pmodelid[playerid] == 527 ||//cadrona
- pmodelid[playerid] == 542)//clover
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 527) // cadrona
- {
- AddVehicleComponent(car,1014);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 542) // clover
- {
- AddVehicleComponent(car,1014);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 8: // Drag
- {
- if(
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 517)//majestic
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1002);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1002);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- }
- case 9:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_SPOILERS, DIALOG_STYLE_LIST, "Spoilers", "Wheel Arc. Alien Spoiler\nWheel Arc. X-Flow Spoiler\nTransfender Win Spoiler\nTransfender Fury Spoiler\nTransfender Alpha Spoiler\nTransfender Pro Spoiler\nTransfender Champ Spoiler\nTransfender Race Spoiler\nTransfender Drag Spoiler\n \nBack", "Apply", "Close");
- }
- case 10:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_SIDESKIRTS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1036);
- AddVehicleComponent(car,1040);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1047);
- AddVehicleComponent(car,1051);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jester
- {
- AddVehicleComponent(car,1069);
- AddVehicleComponent(car,1071);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] YComponent successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1056);
- AddVehicleComponent(car,1062);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1026);
- AddVehicleComponent(car,1027);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1090);
- AddVehicleComponent(car,1094);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 562 ||
- pmodelid[playerid] == 565 ||
- pmodelid[playerid] == 559 ||
- pmodelid[playerid] == 561 ||
- pmodelid[playerid] == 558 ||
- pmodelid[playerid] == 560)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 562) // Elegy
- {
- AddVehicleComponent(car,1039);
- AddVehicleComponent(car,1041);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 565) // Flash
- {
- AddVehicleComponent(car,1048);
- AddVehicleComponent(car,1052);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 559) // Jetser
- {
- AddVehicleComponent(car,1070);
- AddVehicleComponent(car,1072);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 561) // Stratum
- {
- AddVehicleComponent(car,1057);
- AddVehicleComponent(car,1063);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 560) // Sultan
- {
- AddVehicleComponent(car,1031);
- AddVehicleComponent(car,1030);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 558) // Uranus
- {
- AddVehicleComponent(car,1093);
- AddVehicleComponent(car,1095);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(pmodelid[playerid] == 575 ||
- pmodelid[playerid] == 536 ||
- pmodelid[playerid] == 576 ||
- pmodelid[playerid] == 567)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 575) // Brodway
- {
- AddVehicleComponent(car,1042);
- AddVehicleComponent(car,1099);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 567) // Savanna
- {
- AddVehicleComponent(car,1102);
- AddVehicleComponent(car,1133);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 576) // Tornado
- {
- AddVehicleComponent(car,1134);
- AddVehicleComponent(car,1137);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- else if(pmodelid[playerid] == 536) // Blade
- {
- AddVehicleComponent(car,1108);
- AddVehicleComponent(car,1107);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 534)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 534) // Remington
- {
- AddVehicleComponent(car,1122);
- AddVehicleComponent(car,1101);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- if(pmodelid[playerid] == 534 ||
- pmodelid[playerid] == 534)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 534) // Remington
- {
- AddVehicleComponent(car,1106);
- AddVehicleComponent(car,1124);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 5:
- {
- if(pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1118);
- AddVehicleComponent(car,1120);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 6:
- {
- if(pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1119);
- AddVehicleComponent(car,1121);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 7:
- {
- if(
- pmodelid[playerid] == 401 ||
- pmodelid[playerid] == 518 ||
- pmodelid[playerid] == 527 ||
- pmodelid[playerid] == 415 ||
- pmodelid[playerid] == 589 ||
- pmodelid[playerid] == 546 ||
- pmodelid[playerid] == 517 ||
- pmodelid[playerid] == 603 ||
- pmodelid[playerid] == 436 ||
- pmodelid[playerid] == 439 ||
- pmodelid[playerid] == 580 ||
- pmodelid[playerid] == 549 ||
- pmodelid[playerid] == 477)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 527)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 415)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 439)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 580)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 477)
- {
- AddVehicleComponent(car,1007);
- AddVehicleComponent(car,1017);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- }
- case 8:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_SIDESKIRTS, DIALOG_STYLE_LIST, "Side Skirts", "Wheel Arc. Alien Side Skirt\nWheel Arc. X-Flow Side Skirt\nLocos Chrome Strip\nLocos Chrome Flames\nLocos Chrome Arches \nLocos Chrome Trim\nLocos Wheelcovers\nTransfender Side Skirt\n \nBack", "Apply", "Close");
- }
- case 9:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_BULLBARS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(pmodelid[playerid] == 534)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 534) // Remington
- {
- AddVehicleComponent(car,1100);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(pmodelid[playerid] == 534)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 534) // Remington
- {
- AddVehicleComponent(car,1123);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(pmodelid[playerid] == 534)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 534) // Remington
- {
- AddVehicleComponent(car,1125);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(pmodelid[playerid] == 535)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 535) // Slamvan
- {
- AddVehicleComponent(car,1117);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] ou cannot install this component to your car. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_BULLBARS, DIALOG_STYLE_LIST, "Bullbars", "Locos Chrome Grill\nLocos Chrome Bars\nLocos Chrome Lights \nLocos Chrome Bullbar\n \nBack", "Apply", "Close");
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_WHEELS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1025);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Offroad Wheels ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1074);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Mega Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1076);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Wires Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1078);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Twist Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1081);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Grove Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 5:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1082);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Import Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 6:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1085);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Atomic Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 7:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1096);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Ahab Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 8:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1097);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Virtual Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 9:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1098);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Access Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 10:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1084);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Trance Wheels ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 11:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1073);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Shadow Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 12:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1075);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Rimshine Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 13:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1077);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Classic Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 14:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1079);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Cutter Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 15:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1080);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Switch Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 16:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1083);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] You have succesfully added Dollar Wheels");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- }
- case 17:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_WHEELS, DIALOG_STYLE_LIST, "Wheels", "Offroad\nMega\nWires\nTwist\nGrove\nImport\nAtomic\nAhab\nVirtual\nAccess\nTrance\nShadow\nRimshine\nClassic\nCutter\nSwitch\nDollar\n \nBack", "Apply", "Close");
- }
- case 18:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_CSTEREO:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1086);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_HYDRAULICS:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1087);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HYDRAULICS, DIALOG_STYLE_LIST, "Hydaulics", "Hydaulics\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HYDRAULICS, DIALOG_STYLE_LIST, "Hydaulics", "Hydaulics\n \nBack", "Apply", "Close");
- }
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_HYDRAULICS, DIALOG_STYLE_LIST, "Hydaulics", "Hydaulics\n \nBack", "Apply", "Close");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_NITRO:
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1008);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added. ");
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1009);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- case 2:
- if(GetPlayerMoney(playerid) >= 0)
- {
- new car = GetPlayerVehicleID(playerid);
- AddVehicleComponent(car,1010);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_NITRO, DIALOG_STYLE_LIST, "Nitrous Oxide", "2x Nitrous\n5x Nitrous\n10x Nitrous\n \nBack", "Apply", "Close");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Not enough money!");
- ShowPlayerDialog(playerid, DIALOG_TYPE_NITRO, DIALOG_STYLE_LIST, "Nitrous Oxide", "2x Nitrous\n5x Nitrous\n10x Nitrous\n \nBack", "Apply", "Close");
- }
- case 3:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_NITRO, DIALOG_STYLE_LIST, "Nitrous Oxide", "2x Nitrous\n5x Nitrous\n10x Nitrous\n \nBack", "Apply", "Close");
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- case DIALOG_TYPE_HOODS:// HOODS
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:// fury
- {
- if(
- pmodelid[playerid] == 401 ||
- pmodelid[playerid] == 518 ||
- pmodelid[playerid] == 589 ||
- pmodelid[playerid] == 492 ||
- pmodelid[playerid] == 426 ||
- pmodelid[playerid] == 550)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1005);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1005);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589) // club
- {
- AddVehicleComponent(car,1005);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 492) // greenwood
- {
- AddVehicleComponent(car,1005);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426) // premier
- {
- AddVehicleComponent(car,1005);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1005);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- case 1: // Champ
- {
- if(
- pmodelid[playerid] == 401 ||
- pmodelid[playerid] == 492 ||
- pmodelid[playerid] == 546 ||
- pmodelid[playerid] == 426 ||
- pmodelid[playerid] == 550)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1004);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1004);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 492) // greenwood
- {
- AddVehicleComponent(car,1004);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 426) // premier
- {
- AddVehicleComponent(car,1004);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1004);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- case 2: // Race
- {
- if(
- pmodelid[playerid] == 549)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1011);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- case 3: // Worx
- {
- if(
- pmodelid[playerid] == 549)
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1012);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_HOODS, DIALOG_STYLE_LIST, "Hoods", "Fury\nChamp\nRace\nWorx\n \nBack", "Apply", "Close");
- }
- case 5: // Back
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- ////////////////////////////////////////end of hoods///////////
- case DIALOG_TYPE_VENTS://////////////////VENTS//////////////////
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:// Oval
- {
- if(
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 547 ||//primo
- pmodelid[playerid] == 439 ||//stallion
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549)//tampa
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 547) // primo
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 439) // stallion
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1142);
- AddVehicleComponent(car,1143);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- }
- case 1: // Square
- {
- if(
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 589 ||//club
- pmodelid[playerid] == 546 ||//intruder
- pmodelid[playerid] == 517 ||//majestic
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 439 ||//stallion
- pmodelid[playerid] == 550 ||//sunrise
- pmodelid[playerid] == 549)//tampa
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589) // club
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 546) // intruder
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 517) // majestic
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 439) // stallion
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 550) // sunrise
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 549) // tampa
- {
- AddVehicleComponent(car,1144);
- AddVehicleComponent(car,1145);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- }
- case 2: // _
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- case 3: // Back
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- }
- ///////////END OF VENTS///////////
- case DIALOG_TYPE_LIGHTS://////////////////LIGTS//////////////////
- {
- if(!response)
- {
- SetCameraBehindPlayer(playerid);
- }
- if(response)
- {
- switch(listitem)// Checking which list item was selected
- {
- case 0:// round
- {
- if(
- pmodelid[playerid] == 401 ||//bravura
- pmodelid[playerid] == 518 ||//buccaneer
- pmodelid[playerid] == 589 ||//club
- pmodelid[playerid] == 400 ||//landstalker
- pmodelid[playerid] == 436 ||//previon
- pmodelid[playerid] == 439)//stallion
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 401) // bravura
- {
- AddVehicleComponent(car,1013);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO]Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 518) // buccaneer
- {
- AddVehicleComponent(car,1013);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 589) // club
- {
- AddVehicleComponent(car,1013);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 400) // landstalker
- {
- AddVehicleComponent(car,1013);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 436) // previon
- {
- AddVehicleComponent(car,1013);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 439) // stallion
- {
- AddVehicleComponent(car,1013);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- }
- case 1: // Square
- {
- if(
- pmodelid[playerid] == 589 ||//club
- pmodelid[playerid] == 603 ||//phoenix
- pmodelid[playerid] == 400)//landstalker
- {
- new car = GetPlayerVehicleID(playerid);
- if(pmodelid[playerid] == 589) // club
- {
- AddVehicleComponent(car,1024);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 603) // phoenix
- {
- AddVehicleComponent(car,1024);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- if(pmodelid[playerid] == 400) // landstalker
- {
- AddVehicleComponent(car,1024);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_WHITE,"[INFO] Component successfully added");
- ShowPlayerDialog(playerid, DIALOG_TYPE_VENTS, DIALOG_STYLE_LIST, "Vents", "Oval\nSquare\n \nBack", "Apply", "Close");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_YELLOW,"[WARNING] You cannot install this component on your car.");
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- }
- case 2: // _
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_LIGHTS, DIALOG_STYLE_LIST, "Lights", "Round\nSquare\n \nBack", "Apply", "Close");
- }
- case 3: // Back
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- }
- }
- }
- return 1;
- }
- case DIALOG_REGISTER:
- {
- if(response)
- {
- if(isnull(inputtext))
- {
- ShowDialogToPlayer(playerid, DIALOG_REGISTER);
- return 1;
- }
- if(strlen(inputtext) < 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Please choose a password containing at least 4 characters.");
- ShowDialogToPlayer(playerid, DIALOG_REGISTER);
- return 1;
- }
- WP_Hash(PlayerInfo[playerid][pPassword], 129, inputtext);
- ShowPlayerDialog(playerid, DIALOG_CONFIRMPASS, DIALOG_STYLE_PASSWORD, "Federal City Roleplay - Confirm Pass", "Please repeat your account password for verification:", "Submit", "Back");
- }
- else
- {
- KickPlayer(playerid);
- }
- }
- case DIALOG_CONFIRMPASS:
- {
- if(response)
- {
- new
- password[129];
- if(isnull(inputtext))
- {
- return ShowPlayerDialog(playerid, DIALOG_CONFIRMPASS, DIALOG_STYLE_PASSWORD, "Federal City Roleplay - Confirm Pass", "Please repeat your account password for verification:", "Submit", "Back");
- }
- WP_Hash(password, sizeof(password), inputtext);
- if(!strcmp(PlayerInfo[playerid][pPassword], password))
- {
- gTotalRegistered++;
- SaveServerInfo();
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO users (username, password, regdate, lastlogin, ip) VALUES('%s', '%s', NOW(), NOW(), '%s')", GetPlayerNameEx(playerid), password, GetPlayerIP(playerid));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_ACCOUNT_REGISTER, playerid);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_REGISTER);
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Your repeated password does not match your chosen password. Please try again.");
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_REGISTER);
- }
- }
- case DIALOG_LOGIN:
- {
- if(response)
- {
- new
- specifiers[] = "%D of %M, %Y @ %k:%i",
- password[129];
- if(isnull(inputtext))
- {
- ShowDialogToPlayer(playerid, DIALOG_LOGIN);
- return 1;
- }
- WP_Hash(password, sizeof(password), inputtext);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT *, DATE_FORMAT(lastlogin, '%s') AS login_date FROM users WHERE username = '%s' AND password = '%s'", specifiers, GetPlayerNameEx(playerid), password);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_PROCESS_LOGIN, playerid);
- }
- else
- {
- KickPlayer(playerid);
- }
- }
- case DIALOG_GENDER:
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayerInfo[playerid][pGender] = 1;
- PlayerInfo[playerid][pSkin] = 299;
- SendClientMessage(playerid, COLOR_GREEN, "** Alright, so you're a Male. Please enter the approximate age of your character.");
- }
- else if(listitem == 1)
- {
- PlayerInfo[playerid][pGender] = 2;
- PlayerInfo[playerid][pSkin] = 193;
- SendClientMessage(playerid, COLOR_GREEN, "** Alright, so you're a Female. Please enter the approximate age of your character.");
- }
- ShowDialogToPlayer(playerid, DIALOG_AGE);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GENDER);
- }
- }
- case DIALOG_AGE:
- {
- if(response)
- {
- new age = strval(inputtext);
- if(!(13 <= age <= 99))
- {
- ShowDialogToPlayer(playerid, DIALOG_AGE);
- SendClientMessage(playerid, COLOR_GREY, "You may only enter a number from 13 to 99. Please try again.");
- return 1;
- }
- PlayerInfo[playerid][pAge] = age;
- PlayerInfo[playerid][pReferralUID] = 0;
- //PlayerInfo[playerid][pTutorial] = 1;
- //PlayerInfo[playerid][pTutorialTimer] = SetTimerEx("TutorialTimer", 3000, false, "ii", playerid, 1);
- //SendClientMessage(playerid, COLOR_GREEN, "** Good stuff! That's all we need right now. The tutorial will start in a moment.");
- //SetPlayerToSpawn(playerid);
-
- SendClientMessageEx(playerid, COLOR_GREEN, "** Alright, so you're %s and %i years old. Now you will need to pick a referrer.", (PlayerInfo[playerid][pGender] == 2) ? ("Female") : ("Male"), age);
- ShowDialogToPlayer(playerid, DIALOG_REFERRAL);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_AGE);
- }
- }
- case DIALOG_REFERRAL:
- {
- if(response)
- {
- if(isnull(inputtext) || strlen(inputtext) > 24)
- {
- return ShowDialogToPlayer(playerid, DIALOG_REFERRAL);
- }
- if(!strcmp(inputtext, GetPlayerNameEx(playerid)))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't put down your own name as a referral.");
- return ShowDialogToPlayer(playerid, DIALOG_REFERRAL);
- }
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, ip, uid FROM users WHERE username = '%e'", inputtext);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_CHECK_REFERRAL, playerid);
- }
- else
- {
- PlayerInfo[playerid][pTutorial] = 1;
- PlayerInfo[playerid][pTutorialTimer] = SetTimerEx("TutorialTimer", 3000, false, "ii", playerid, 1);
- SendClientMessage(playerid, COLOR_GREEN, "** Good stuff! That's all we need right now. You'll spawn in a while.");
- }
- }
- case DIALOG_INTERIORS:
- {
- if(response)
- {
- TeleportToCoords(playerid, interiorArray[listitem][intX], interiorArray[listitem][intY], interiorArray[listitem][intZ], interiorArray[listitem][intA], interiorArray[listitem][intID], GetPlayerVirtualWorld(playerid));
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- }
- }
- case DIALOG_BUYFURNITURE1:
- {
- new houseid = GetInsideHouse(playerid);
- if(houseid == -1 || !HasFurniturePerms(playerid, houseid))
- {
- return 0;
- }
- if(response)
- {
- PlayerInfo[playerid][pCategory] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_BUYFURNITURE2);
- }
- }
- case DIALOG_BUYFURNITURE2:
- {
- new houseid = GetInsideHouse(playerid);
- if(houseid == -1 || !HasFurniturePerms(playerid, houseid))
- {
- return 0;
- }
- if(response)
- {
- listitem += PlayerInfo[playerid][pFurnitureIndex];
- if(PlayerInfo[playerid][pCash] < furnitureArray[listitem][fPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't purchase this. You don't have enough money for it.");
- }
- else
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:a;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- PlayerInfo[playerid][pEditType] = EDIT_FURNITURE_PREVIEW;
- PlayerInfo[playerid][pEditObject] = CreateDynamicObject(furnitureArray[listitem][fModel], x + 2.0 * floatsin(-a, degrees), y + 2.0 * floatcos(-a, degrees), z + 1.0, 0.0, 0.0, ((19353 <= furnitureArray[listitem][fModel] <= 19417) || (19426 <= furnitureArray[listitem][fModel] <= 19465)) ? (a + 90.0) : (a), GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- PlayerInfo[playerid][pSelected] = listitem;
- SendClientMessageEx(playerid, COLOR_AQUA, "You are now previewing {FF6347}%s{33CCFF}. This furniture item costs {00AA00}$%i{33CCFF} to purchase.", furnitureArray[listitem][fName], furnitureArray[listitem][fPrice]);
- SendClientMessageEx(playerid, COLOR_AQUA, "Use your cursor to control the editor interface. Click the floppy disk to save changes.");
- EditDynamicObject(playerid, PlayerInfo[playerid][pEditObject]);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_BUYFURNITURE1);
- }
- }
- case DIALOG_BUY:
- {
- if(response)
- {
- new businessid = GetInsideBusiness(playerid);
- if(BusinessInfo[businessid][bProducts] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This business is out of stock.");
- }
- if(BusinessInfo[businessid][bType] == BUSINESS_STORE)
- {
- switch(listitem)
- {
- case 0:
- {
- new price = 525;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pPhone] = random(100000) + 899999;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET phone = %i WHERE uid = %i", PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a mobile phone.", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Mobile phone purchased. Your new phone number is %i.", PlayerInfo[playerid][pPhone]);
- }
- case 1:
- {
- new price = 5000;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pWalkieTalkie])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a walkie talkie already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pWalkieTalkie] = 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET walkietalkie = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a walkie talkie.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Walkie talkie purchased. Use /wt to speak and /channel to change the frequency.");
- }
- case 2:
- {
- new price = 125;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pCigars] >= 20)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't have more than 20 cigars.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pCigars] += 10;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cigars = %i WHERE uid = %i", PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a pack of cigars.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Cigars purchased. Use /usecigar to smoke a cigar.");
- }
- case 3:
- {
- new price = 400;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pSpraycans] + 10 >= 20)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't have more than 20 spraycans.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pSpraycans] += 10;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spraycans = %i WHERE uid = %i", PlayerInfo[playerid][pSpraycans], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received 10 spraycans.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Spraycans purchased. Use /colorcar and /paintcar in a vehicle to use them.");
- }
- case 4:
- {
- new price = 200;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pPhonebook])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a phonebook already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pPhonebook] = 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET phonebook = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a phonebook.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Phonebook purchased. Use /number to lookup a player's number.");
- }
- case 5:
- {
- new price = 200;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerWeaponEx(playerid, 43);
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a camera.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Camera purchased.");
- }
- case 6:
- {
- new price = 2400;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pMP3Player])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have an MP3 player already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pMP3Player] = 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET mp3player = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received an MP3 player.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** MP3 player purchased. Use /mp3 for a list of options.");
- }
- case 7:
- {
- new price = 1000;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFishingRod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a fishing rod already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pFishingRod] = 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishingrod = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a fishing rod.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Fishing rod purchased. Use /fish at the pier or in a boat to begin fishing.");
- }
- case 8:
- {
- new price = 790;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFishingBait] + 10 >= 20)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't have more than 20 pieces of bait.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pFishingBait] += 10;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishingbait = %i WHERE uid = %i", PlayerInfo[playerid][pFishingBait], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received fish bait.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Fishing bait purchased. Bait increases the odds of catching bigger fish.");
- }
- case 9:
- {
- new price = 1500;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pMuriaticAcid] + 1 >= 10)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't have more than 10 bottles of muriatic acid.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pMuriaticAcid] += 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET muriaticacid = %i WHERE uid = %i", PlayerInfo[playerid][pMuriaticAcid], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottle of muriatic acid.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Muriatic acid purchased.");
- }
- case 10:
- {
- new price = 1290;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pBakingSoda] + 1 >= 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't have more than 3 bottles of baking soda.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pBakingSoda] += 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bakingsoda = %i WHERE uid = %i", PlayerInfo[playerid][pBakingSoda], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottle of baking soda.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Baking soda purchased.");
- }
- case 11:
- {
- new price = 1000;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pWatch])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a pocket watch already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pWatch] = 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET watch = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a pocket watch.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Pocket watch purchased. Use /watch to toggle it.");
- }
- case 12:
- {
- new price = 750;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pGPS])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a GPS already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pGPS] = 1;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gps = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a GPS.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** GPS purchased. Use /gps to toggle it.");
- }
- case 13:
- {
- new price = 500;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pGasCan] + 5 > 20)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't have more than 20 liters of gas.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- PlayerInfo[playerid][pGasCan] += 5;
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gascan = %i WHERE uid = %i", PlayerInfo[playerid][pGasCan], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a 5 liters of gasoline.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Gas can purchased. Use /gascan in a vehicle to refill its fuel.");
- }
- }
- }
- else if(BusinessInfo[businessid][bType] == BUSINESS_GUNSHOP)
- {
- if(PlayerInfo[playerid][pHours] < 2 || PlayerInfo[playerid][pWeaponRestricted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are either weapon restricted or you played less than 2 hours. You can't buy stuff here.");
- }
- switch(listitem)
- {
- case 0:
- {
- new price = 1500;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerHasWeapon(playerid, 22))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerWeaponEx(playerid, 22);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a 9mm pistol.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** 9mm pistol purchased.");
- }
- case 1:
- {
- new price = 2000;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerHasWeapon(playerid, 25))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerWeaponEx(playerid, 25);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a shotgun.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Shotgun purchased.");
- }
- case 2:
- {
- new price = 4000;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerHasWeapon(playerid, 33))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerWeaponEx(playerid, 33);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a country rifle.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Country rifle purchased.");
- }
- case 3:
- {
- new price = 1500;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- SetScriptArmour(playerid, 50.0);
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received light armor.", GetPlayerRPName(playerid), price);
- SendClientMessage(playerid, COLOR_WHITE, "** Light armor of 50 armor points purchased.");
- }
- }
- }
- else if(BusinessInfo[businessid][bType] == BUSINESS_CLOTHES)
- {
- new
- string[128];
- format(string, sizeof(string), "%s's %s [%i products]", BusinessInfo[businessid][bOwner], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bProducts]);
- if(listitem == 0)
- {
- ShowDialogToPlayer(playerid, DIALOG_BUYCLOTHES);
- }
- else
- {
- PlayerInfo[playerid][pCategory] = listitem - 1;
- ShowDialogToPlayer(playerid, DIALOG_BUYCLOTHING);
- }
- }
- else if(BusinessInfo[businessid][bType] == BUSINESS_GYM)
- {
- switch(listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pFightStyle] == FIGHT_STYLE_NORMAL)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already have this fighting style.");
- }
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_NORMAL;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** You have chosen the normal fighting style.");
- }
- case 1:
- {
- new price = 4725;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFightStyle] == FIGHT_STYLE_BOXING)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already have this fighting style.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_BOXING;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have purchased the Boxing fighting style for $%i.", price);
- }
- case 2:
- {
- new price = 7650;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFightStyle] == FIGHT_STYLE_KUNGFU)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already have this fighting style.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_KUNGFU;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have purchased the Kung-Fu fighting style for $%i.", price);
- }
- case 3:
- {
- new price = 9275;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFightStyle] == FIGHT_STYLE_KNEEHEAD)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already have this fighting style.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_KNEEHEAD;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have purchased the Kneehead fighting style for $%i.", price);
- }
- case 4:
- {
- new price = 1250;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFightStyle] == FIGHT_STYLE_GRABKICK)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already have this fighting style.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_GRABKICK;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have purchased the Grabkick fighting style for $%i.", price);
- }
- case 5:
- {
- new price = 2950;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pFightStyle] == FIGHT_STYLE_ELBOW)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already have this fighting style.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_ELBOW;
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[playerid][pFightStyle], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have purchased the Elbow fighting style for $%i.", price);
- }
- }
- }
- else if(BusinessInfo[businessid][bType] == BUSINESS_RESTAURANT)
- {
- switch(listitem)
- {
- case 0:
- {
- new price = 50;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 10.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottled water.", GetPlayerRPName(playerid), price);
- }
- case 1:
- {
- new price = 100;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 15.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a can of sprunk.", GetPlayerRPName(playerid), price);
- }
- case 2:
- {
- new price = 250;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 20.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received french fries.", GetPlayerRPName(playerid), price);
- }
- case 3:
- {
- new price = 400;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 25.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a hamburger.", GetPlayerRPName(playerid), price);
- }
- case 4:
- {
- new price = 450;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 30.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a cheeseburger.", GetPlayerRPName(playerid), price);
- }
- case 5:
- {
- new price = 525;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 25.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a mac & cheese.", GetPlayerRPName(playerid), price);
- }
- case 6:
- {
- new price = 600;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 35.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a club sandwich.", GetPlayerRPName(playerid), price);
- }
- case 7:
- {
- new price = 925;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 45.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received fish & chips.", GetPlayerRPName(playerid), price);
- }
- case 8:
- {
- new price = 1200;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 55.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a pan pizza.", GetPlayerRPName(playerid), price);
- }
- }
- }
- else if(BusinessInfo[businessid][bType] == BUSINESS_BARCLUB)
- {
- switch(listitem)
- {
- case 0:
- {
- new price = 50;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- GivePlayerHealth(playerid, 10.0);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottled water.", GetPlayerRPName(playerid), price);
- }
- case 1:
- {
- new price = 100;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a can of sprunk.", GetPlayerRPName(playerid), price);
- }
- case 2:
- {
- new price = 200;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottle of beer.", GetPlayerRPName(playerid), price);
- }
- case 3:
- {
- new price = 350;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottle of wine.", GetPlayerRPName(playerid), price);
- }
- case 4:
- {
- new price = 475;
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy this.");
- }
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a bottle of whiskey.", GetPlayerRPName(playerid), price);
- }
- }
- }
- }
- }
- case DIALOG_BUYCLOTHES:
- {
- if(response)
- {
- new businessid = GetInsideBusiness(playerid);
- if(BusinessInfo[businessid][bProducts] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This business is out of stock.");
- }
- if(PlayerInfo[playerid][pVIPPackage] == 0 && PlayerInfo[playerid][pCash] < 2000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money. You can't buy new clothes.");
- }
- if(BusinessInfo[businessid][bType] == BUSINESS_CLOTHES)
- {
- new skinid;
- if(sscanf(inputtext, "i", skinid))
- {
- return ShowDialogToPlayer(playerid, DIALOG_BUYCLOTHES);
- }
- if(!(0 <= skinid <= 311) || (265 <= skinid <= 267) || (274 <= skinid <= 288) || (300 <= skinid <= 302) || (306 <= skinid <= 311))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use that skin as it is either invalid or faction reserved.");
- return ShowDialogToPlayer(playerid, DIALOG_BUYCLOTHES);
- }
- if(PlayerInfo[playerid][pVIPPackage] == 0)
- {
- new price = 2000;
- if(PlayerInfo[playerid][pTraderUpgrade] > 0)
- {
- price -= percent(price, (PlayerInfo[playerid][pTraderUpgrade] * 5));
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Trader perk: Your level %i/3 trader perk reduced the price of this item to $%i.", PlayerInfo[playerid][pTraderUpgrade], price);
- }
- GivePlayerCash(playerid, -price);
- BusinessInfo[businessid][bCash] += price;
- BusinessInfo[businessid][bProducts]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i, products = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the shopkeeper and received a new set of clothes.", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You've changed your skin for $%i.", price);
- }
- else
- {
- SendClientMessage(playerid, COLOR_VIP, "** VIP perk: You changed your clothes free of charge.");
- }
- SetPlayerSkin(playerid, skinid);
- PlayerInfo[playerid][pSkin] = skinid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i WHERE uid = %i", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- case DIALOG_PICKLOAD:
- {
- if(response)
- {
- if(!PlayerHasJob(playerid, JOB_COURIER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you are not a Courier.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 414 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 498)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be driving a Mule or a Boxville.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, -63.4372, -1121.4932, 1.1103))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not at the loading dock.");
- }
- switch(listitem)
- {
- case 0:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You selected {FF6347}Grocery supplies{33CCFF}. Use /deliver at any Supermarket to drop off this shipment.");
- PlayerInfo[playerid][pShipment] = BUSINESS_STORE;
- }
- case 1:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You selected {FF6347}Ammunition{33CCFF}. Use /deliver at any Gun Shop to drop off this shipment.");
- PlayerInfo[playerid][pShipment] = BUSINESS_GUNSHOP;
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You selected {FF6347}Clothing items{33CCFF}. Use /deliver at any Clothes Shop to drop off this shipment.");
- PlayerInfo[playerid][pShipment] = BUSINESS_CLOTHES;
- }
- case 3:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You selected {FF6347}Food & drinks{33CCFF}. Use /deliver at any Restaurant to drop off this shipment.");
- PlayerInfo[playerid][pShipment] = BUSINESS_RESTAURANT;
- }
- case 4:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You selected {FF6347}Beverages{33CCFF}. Use /deliver at any Club/Bar to drop off this shipment.");
- PlayerInfo[playerid][pShipment] = BUSINESS_BARCLUB;
- }
- }
-
- PlayerInfo[playerid][pLastLoad] = gettime();
- }
- }
- case DIALOG_UNREADTEXTS:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM texts WHERE recipient_number = %i ORDER BY date DESC LIMIT 25", PlayerInfo[playerid][pPhone]);
- mysql_tquery(connectionID, queryBuffer);
- if(response)
- {
- cmd_texts(playerid, "\1");
- }
- }
- case DIALOG_ATM:
- {
- if(response)
- {
- new amount, fee;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_ATM);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pBank])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount. Please try again.");
- ShowDialogToPlayer(playerid, DIALOG_ATM);
- return 1;
- }
- if(amount > 1000000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't withdraw more than $1,000,000 at a time.");
- ShowDialogToPlayer(playerid, DIALOG_ATM);
- return 1;
- }
- PlayerInfo[playerid][pBank] -= amount;
- GivePlayerCash(playerid, amount);
- if(PlayerInfo[playerid][pVIPPackage] == 0)
- {
- fee = percent(amount, 0);
- PlayerInfo[playerid][pBank] -= fee;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bank = %i WHERE uid = %i", PlayerInfo[playerid][pBank], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s presses a button and withdraws some cash from the ATM.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn $%i from your account. Your new balance is $%i.", amount, PlayerInfo[playerid][pBank]);
- }
- }
- case DIALOG_CHANGEPASS:
- {
- if(response)
- {
- if(strlen(inputtext) < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to enter a password greater than 4 characters.");
- }
- new
- password[129];
- WP_Hash(password, sizeof(password), inputtext);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET password = '%s' WHERE uid = %i", password, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** Your account password was changed successfully.");
- }
- }
- case DIALOG_BUYCLOTHING:
- {
- if(response)
- {
- listitem += PlayerInfo[playerid][pClothingIndex];
- if(PlayerInfo[playerid][pCash] < clothingArray[listitem][clothingPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't purchase this. You don't have enough money for it.");
- }
- else
- {
- SetPlayerAttachedObject(playerid, 9, clothingArray[listitem][clothingModel], clothingArray[listitem][clothingBone]);
- PlayerInfo[playerid][pEditType] = EDIT_CLOTHING_PREVIEW;
- PlayerInfo[playerid][pSelected] = listitem;
- SendClientMessageEx(playerid, COLOR_AQUA, "You are now previewing {FF6347}%s{33CCFF}. This clothing item costs {00AA00}$%i{33CCFF} to purchase.", clothingArray[listitem][clothingName], clothingArray[listitem][clothingPrice]);
- SendClientMessageEx(playerid, COLOR_AQUA, "Use your cursor to control the editor interface. Click the floppy disk to save changes.");
- EditAttachedObject(playerid, 9);
- }
- }
- }
- case DIALOG_CLOTHING:
- {
- if(response)
- {
- if(!ClothingInfo[playerid][listitem][cExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The slot you've selected does not contain any item of clothing.");
- }
- if(ClothingInfo[playerid][listitem][cAttached]) {
- ShowPlayerDialog(playerid, DIALOG_CLOTHINGMENU, DIALOG_STYLE_LIST, ClothingInfo[playerid][listitem][cName], "Detach\nEdit\nDelete", "Select", "Cancel");
- } else {
- ShowPlayerDialog(playerid, DIALOG_CLOTHINGMENU, DIALOG_STYLE_LIST, ClothingInfo[playerid][listitem][cName], "Attach\nEdit\nDelete", "Select", "Cancel");
- }
- PlayerInfo[playerid][pSelected] = listitem;
- }
- }
- case DIALOG_CLOTHINGMENU:
- {
- if(response)
- {
- new clothingid = PlayerInfo[playerid][pSelected];
- switch(listitem)
- {
- case 0:
- {
- if(!ClothingInfo[playerid][clothingid][cAttached])
- {
- ClothingInfo[playerid][clothingid][cAttachedIndex] = GetAvailableAttachedSlot(playerid);
- if(ClothingInfo[playerid][clothingid][cAttachedIndex] >= 0)
- {
- ClothingInfo[playerid][clothingid][cAttached] = 1;
- SetPlayerAttachedObject(playerid, ClothingInfo[playerid][clothingid][cAttachedIndex], ClothingInfo[playerid][clothingid][cModel], ClothingInfo[playerid][clothingid][cBone], ClothingInfo[playerid][clothingid][cPosX], ClothingInfo[playerid][clothingid][cPosY], ClothingInfo[playerid][clothingid][cPosZ], ClothingInfo[playerid][clothingid][cRotX], ClothingInfo[playerid][clothingid][cRotY], ClothingInfo[playerid][clothingid][cRotZ],
- ClothingInfo[playerid][clothingid][cScaleX], ClothingInfo[playerid][clothingid][cScaleY], ClothingInfo[playerid][clothingid][cScaleZ]);
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s attached to slot %i/5.", ClothingInfo[playerid][clothingid][cName], ClothingInfo[playerid][clothingid][cAttachedIndex] + 1);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE clothing SET attached = 1 WHERE id = %i", ClothingInfo[playerid][clothingid][cID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "No attachment slots available. You can only have up to five clothing items attached at once.");
- }
- }
- else
- {
- RemovePlayerAttachedObject(playerid, ClothingInfo[playerid][clothingid][cAttachedIndex]);
- ClothingInfo[playerid][clothingid][cAttached] = 0;
- ClothingInfo[playerid][clothingid][cAttachedIndex] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE clothing SET attached = 0 WHERE id = %i", ClothingInfo[playerid][clothingid][cID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s detached and added to inventory.", ClothingInfo[playerid][clothingid][cName]);
- }
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_CLOTHINGEDIT, DIALOG_STYLE_LIST, "Edition menu", "Edit offset\nChange bone", "Select", "Cancel");
- }
- case 2:
- {
- RemovePlayerAttachedObject(playerid, ClothingInfo[playerid][clothingid][cAttachedIndex]);
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s deleted from your clothing inventory.", ClothingInfo[playerid][clothingid][cName]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM clothing WHERE id = %i", ClothingInfo[playerid][clothingid][cID]);
- mysql_tquery(connectionID, queryBuffer);
- ClothingInfo[playerid][clothingid][cAttached] = 0;
- ClothingInfo[playerid][clothingid][cAttachedIndex] = -1;
- ClothingInfo[playerid][clothingid][cExists] = 0;
- ClothingInfo[playerid][clothingid][cID] = 0;
- ClothingInfo[playerid][clothingid][cName] = 0;
- }
- }
- }
- }
- case DIALOG_CLOTHINGEDIT:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayerInfo[playerid][pEditType] = EDIT_CLOTHING;
- if(!ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cAttached]) {
- SetPlayerAttachedObject(playerid, 9, ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cModel], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cBone], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cPosX], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cPosY], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cPosZ],
- ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cRotX], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cRotY], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cRotZ], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cScaleX], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cScaleY], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cScaleZ]);
- EditAttachedObject(playerid, 9);
- }
- else {
- EditAttachedObject(playerid, ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cAttachedIndex]);
- }
- GameTextForPlayer(playerid, "~w~Editing Mode~n~~g~Click disk to save~n~~r~Press ESC to cancel", 5000, 1);
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_CLOTHINGBONE, DIALOG_STYLE_LIST, "Choose a new bone for this clothing item.", "Spine\nHead\nLeft upper arm\nRight upper arm\nLeft hand\nRight hand\nLeft thigh\nRight thigh\nLeft foot\nRight foot\nRight calf\nLeft calf\nLeft forearm\nRight forearm\nLeft shoulder\nRight shoulder\nNeck\nJaw", "Select", "Cancel");
- }
- }
- }
- }
- case DIALOG_CLOTHINGBONE:
- {
- if(response)
- {
- ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cBone] = listitem + 1;
- if(ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cAttached])
- {
- RemovePlayerAttachedObject(playerid, ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cAttachedIndex]);
- SetPlayerAttachedObject(playerid, ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cAttachedIndex], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cModel], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cBone], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cPosX], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cPosY], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cPosZ],
- ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cRotX], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cRotY], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cRotZ], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cScaleX], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cScaleY], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cScaleZ]);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE clothing SET boneid = %i WHERE id = %i", ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cBone], ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Bone for {00AA00}%s{FFFFFF} changed to '%s'.", ClothingInfo[playerid][PlayerInfo[playerid][pSelected]][cName], inputtext);
- }
- }
- case DIALOG_BUYVEHICLE:
- {
- if(response)
- {
- if(PlayerInfo[playerid][pCash] < vehicleArray[listitem][carPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this vehicle.");
- }
- new
- string[128];
- PlayerInfo[playerid][pSelected] = listitem;
- format(string, sizeof(string), "{FFD700}Confirmation:\nAre you sure you want to purchase this %s for {00AA00}$%i{FFD700}?", vehicleNames[vehicleArray[listitem][carModel] - 400], vehicleArray[listitem][carPrice]);
- ShowPlayerDialog(playerid, DIALOG_BUYVEHICLE2, DIALOG_STYLE_MSGBOX, "Purchase confirmation", string, "Yes", "No");
- }
- }
- case DIALOG_BUYVEHICLE2:
- {
- if(response)
- {
- if(PlayerInfo[playerid][pGangCar])
- {
- new
- string[20];
- listitem = PlayerInfo[playerid][pSelected];
- if(PlayerInfo[playerid][pCash] < vehicleArray[listitem][carPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this vehicle.");
- }
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in any gang at the moment.");
- }
- if(GetGangVehicles(PlayerInfo[playerid][pGang]) >= GetGangVehicleLimit(PlayerInfo[playerid][pGang]))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your gang can't have more than %i vehicles at its level.", GetGangVehicleLimit(PlayerInfo[playerid][pGang]));
- }
- switch(random(3))
- {
- case 0: mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (modelid, price, pos_x, pos_y, pos_z, pos_a, gangid) VALUES(%i, %i, '562.3970', '-1283.8485', '17.0007', '0.0000', %i)", vehicleArray[listitem][carModel], vehicleArray[listitem][carPrice], PlayerInfo[playerid][pGang]);
- case 1: mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (modelid, price, pos_x, pos_y, pos_z, pos_a, gangid) VALUES(%i, %i, '557.8670', '-1283.9822', '17.0007', '0.0000', %i)", vehicleArray[listitem][carModel], vehicleArray[listitem][carPrice], PlayerInfo[playerid][pGang]);
- case 2: mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (modelid, price, pos_x, pos_y, pos_z, pos_a, gangid) VALUES(%i, %i, '552.8177', '-1284.1307', '17.0007', '0.0000', %i)", vehicleArray[listitem][carModel], vehicleArray[listitem][carPrice], PlayerInfo[playerid][pGang]);
- }
- AddPointMoney(POINT_AUTOEXPORT, percent(vehicleArray[listitem][carPrice], 3));
- mysql_tquery(connectionID, queryBuffer);
- mysql_tquery(connectionID, "SELECT * FROM vehicles WHERE id = LAST_INSERT_ID()", "OnQueryFinished", "ii", THREAD_LOAD_VEHICLES, -1);
- format(string, sizeof(string), "~r~-$%i", vehicleArray[listitem][carPrice]);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid, -vehicleArray[listitem][carPrice]);
- PlayerInfo[playerid][pGangCar] = 0;
- SendClientMessageEx(playerid, COLOR_GREEN, "%s purchased for your gang for $%i. /ganghelp for more commands.", vehicleNames[vehicleArray[listitem][carModel] - 400], vehicleArray[listitem][carPrice]);
- Log_Write("log_give", "%s (uid: %i) purchased a %s for %s for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], vehicleNames[vehicleArray[listitem][carModel] - 400], GangInfo[PlayerInfo[playerid][pGang]][gName], vehicleArray[listitem][carPrice]);
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM vehicles WHERE ownerid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerAttemptBuyVehicle", "ii", playerid, PlayerInfo[playerid][pSelected]);
- }
- }
- }
- /*case DIALOG_SPAWNCAR:
- {
- if(response)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM vehicles WHERE ownerid = %i LIMIT %i, 1", PlayerInfo[playerid][pID], listitem);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerSpawnVehicle", "ii", playerid, false);
- }
- }
- case DIALOG_DESPAWNCAR:
- {
- if(response)
- {
- new count;
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if((VehicleInfo[i][vID] > 0 && IsVehicleOwner(playerid, i)) && (count++ == listitem))
- {
- if(IsVehicleOccupied(i) && GetVehicleDriver(i) != playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle is occupied.");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "Your {FF6347}%s{33CCFF} which is located in %s has been despawned.", GetVehicleName(i), GetVehicleZoneName(i));
- DespawnVehicle(i);
- return 1;
- }
- }
- }
- }*/
- case DIALOG_CARSTORAGE:
- {
- if(response)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id FROM vehicles WHERE ownerid = %i LIMIT %i, 1", PlayerInfo[playerid][pID], listitem);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerUseCarStorage", "i", playerid);
- }
- return 1;
- }
- case DIALOG_FINDCAR:
- {
- if(response)
- {
- new count, garageid;
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if((VehicleInfo[i][vID] > 0 && IsVehicleOwner(playerid, i)) && (count++ == listitem))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- if((garageid = GetVehicleGarage(i)) >= 0)
- {
- SetPlayerCheckpoint(playerid, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ], 3.0);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** Your %s is located in a garage. Checkpoint marked at the garage's location.", GetVehicleName(i));
- }
- else
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetVehiclePos(i, x, y, z);
- SetPlayerCheckpoint(playerid, x, y, z, 3.0);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** Your %s is located in %s. Checkpoint marked at the location.", GetVehicleName(i), GetZoneName(x, y, z));
- }
- return 1;
- }
- }
- }
- }
- case DIALOG_BIZINTERIOR:
- {
- if(response)
- {
- new businessid = PlayerInfo[playerid][pSelected];
- foreach(new i : Player)
- {
- if(GetInsideBusiness(i) == businessid)
- {
- SetPlayerPos(i, bizInteriorArray[listitem][intX], bizInteriorArray[listitem][intY], bizInteriorArray[listitem][intZ]);
- SetPlayerFacingAngle(i, bizInteriorArray[listitem][intA]);
- SetPlayerInterior(i, bizInteriorArray[listitem][intID]);
- SetCameraBehindPlayer(i);
- }
- }
- BusinessInfo[businessid][bIntX] = bizInteriorArray[listitem][intX];
- BusinessInfo[businessid][bIntY] = bizInteriorArray[listitem][intY];
- BusinessInfo[businessid][bIntZ] = bizInteriorArray[listitem][intZ];
- BusinessInfo[businessid][bIntA] = bizInteriorArray[listitem][intA];
- BusinessInfo[businessid][bInterior] = bizInteriorArray[listitem][intID];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i WHERE id = %i", BusinessInfo[businessid][bIntX], BusinessInfo[businessid][bIntY], BusinessInfo[businessid][bIntZ], BusinessInfo[businessid][bIntA], BusinessInfo[businessid][bInterior], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "You've changed the interior of business %i to %s.", businessid, bizInteriorArray[listitem][intName]);
- }
- }
- case DIALOG_FACTIONLOCKER:
- {
- if((response) && PlayerInfo[playerid][pFaction] >= 0 && IsPlayerInRangeOfPoint(playerid, 3.0, FactionInfo[PlayerInfo[playerid][pFaction]][fLockerX], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerY], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerZ]))
- {
- switch(FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- case FACTION_POLICE, FACTION_MEDIC, FACTION_FEDERAL:
- {
- if(listitem == 0) // Toggle duty
- {
- if(!PlayerInfo[playerid][pDuty])
- {
- if(IsLawEnforcement(playerid))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s clocks in and grabs their police issued equipment from the locker.", GetPlayerRPName(playerid));
- }
- else if(FactionInfo[PlayerInfo[playerid][pFaction]][fType] == FACTION_MEDIC)
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s clocks in and grabs their medical supplies from the locker.", GetPlayerRPName(playerid));
- }
- PlayerInfo[playerid][pDuty] = 1;
- SetPlayerHealth(playerid, 100.0);
- SetScriptArmour(playerid, 100.0);
- }
- else
- {
- PlayerInfo[playerid][pDuty] = 0;
- ResetPlayerWeaponsEx(playerid);
- SetScriptArmour(playerid, 0.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s clocks out and puts their equipment back in the locker.", GetPlayerRPName(playerid));
- }
- }
- else if(listitem == 1) // Equipment
- {
- if(IsLawEnforcement(playerid))
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONEQUIPMENT, DIALOG_STYLE_LIST, "Equipment", "Kevlar Vest\nMedkit\nNitestick\nSpraycan\nDesert Eagle\nShotgun\nMP5\nM4\nSPAS-12\nSniper Rifle", "Select", "Cancel");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONEQUIPMENT, DIALOG_STYLE_LIST, "Equipment", "Kevlar Vest\nMedkit\nFire Extinguisher\nShotgun\nJaws of Life\nPainkillers", "Select", "Cancel");
- }
- }
- else if(listitem == 2) // Uniforms
- {
- if(!GetFactionSkinCount(PlayerInfo[playerid][pFaction]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no uniforms setup for your faction.");
- }
- if(PlayerInfo[playerid][pClothes] >= 0)
- {
- PlayerInfo[playerid][pSkin] = PlayerInfo[playerid][pClothes];
- PlayerInfo[playerid][pClothes] = -1;
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i, clothes = -1 WHERE uid = %i", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s switches back to their old outfit.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[playerid][pSkinSelected] = -1;
- ShowPlayerDialog(playerid, DIALOG_FACTIONSKINS, DIALOG_STYLE_MSGBOX, "Uniform selection", "Press {00AA00}>> Next{A9C4E4} to browse through available uniforms.", ">> Next", "Confirm");
- }
- }
- }
- case FACTION_GOVERNMENT, FACTION_NEWS:
- {
- if(listitem == 0) // Equipment
- {
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fType] == FACTION_GOVERNMENT)
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONEQUIPMENT, DIALOG_STYLE_LIST, "Equipment", "Kevlar Vest\nMedkit\nDesert Eagle\nShotgun\nMP5\nM4\nSPAS-12", "Select", "Cancel");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONEQUIPMENT, DIALOG_STYLE_LIST, "Equipment", "Kevlar Vest\nMedkit\nCamera", "Select", "Cancel");
- }
- }
- else if(listitem == 1) // Uniforms
- {
- if(!GetFactionSkinCount(PlayerInfo[playerid][pFaction]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no uniforms setup for your faction.");
- }
- if(PlayerInfo[playerid][pClothes] >= 0)
- {
- PlayerInfo[playerid][pSkin] = PlayerInfo[playerid][pClothes];
- PlayerInfo[playerid][pClothes] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i, clothes = -1 WHERE uid = %i", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s switches back to their old outfit.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[playerid][pSkinSelected] = -1;
- ShowPlayerDialog(playerid, DIALOG_FACTIONSKINS, DIALOG_STYLE_MSGBOX, "Uniform selection", "Press {00AA00}>> Next{A9C4E4} to browse through available uniforms.", ">> Next", "Confirm");
- }
- }
- }
- case FACTION_HITMAN:
- {
- if(listitem == 0) // Order weapons
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONEQUIPMENT, DIALOG_STYLE_LIST, "Order weapons", "Kevlar Vest ($1000)\nKnife ($1500)\nSilenced pistol ($1000)\nShotgun ($1500)\nDesert Eagle ($2000)\nMP5 ($2500)\nCountry rifle ($4000)\nAK-47 ($6000)\nM4 ($8000)\nSPAS-12 ($8500)\nSniper rifle ($9000)\nBomb ($7500)", "Order", "Cancel");
- }
- else if(listitem == 1) // Change clothes
- {
- ShowPlayerDialog(playerid, DIALOG_HITMANCLOTHES, DIALOG_STYLE_INPUT, "Change clothes", "Please input the ID of the skin you wish to purchase.\n(( List of skins: http://wiki.sa-mp.com/wiki/Skins:All ))", "Submit", "Cancel");
- }
- }
- }
- }
- }
- case DIALOG_FACTIONEQUIPMENT:
- {
- if((response) && PlayerInfo[playerid][pFaction] >= 0 && IsPlayerInRangeOfPoint(playerid, 3.0, FactionInfo[PlayerInfo[playerid][pFaction]][fLockerX], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerY], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerZ]))
- {
- switch(FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- case FACTION_POLICE, FACTION_FEDERAL:
- {
- switch(listitem)
- {
- case 0:
- {
- SetScriptArmour(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a kevlar vest from the locker and puts it on.", GetPlayerRPName(playerid));
- }
- case 1:
- {
- SetPlayerHealth(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a medkit from the locker and opens it.", GetPlayerRPName(playerid));
- }
- case 2:
- {
- GivePlayerWeaponEx(playerid, 3);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a nitestick from the locker.", GetPlayerRPName(playerid));
- }
- case 3:
- {
- GivePlayerWeaponEx(playerid, 41);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a can of pepper spray from the locker.", GetPlayerRPName(playerid));
- }
- case 4:
- {
- GivePlayerWeaponEx(playerid, 24);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Desert Eagle from the locker.", GetPlayerRPName(playerid));
- }
- case 5:
- {
- GivePlayerWeaponEx(playerid, 25);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Desert Eagle from the locker.", GetPlayerRPName(playerid));
- }
- case 6:
- {
- GivePlayerWeaponEx(playerid, 29);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs an MP5 from the locker.", GetPlayerRPName(playerid));
- }
- case 7:
- {
- GivePlayerWeaponEx(playerid, 31);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs an M4 from the locker.", GetPlayerRPName(playerid));
- }
- case 8:
- {
- GivePlayerWeaponEx(playerid, 27);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a SPAS-12 from the locker.", GetPlayerRPName(playerid));
- }
- case 9:
- {
- GivePlayerWeaponEx(playerid, 34);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Sniper Rifle from the locker.", GetPlayerRPName(playerid));
- }
- }
- }
- case FACTION_MEDIC:
- {
- switch(listitem)
- {
- case 0:
- {
- SetScriptArmour(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a kevlar vest from the locker and puts it on.", GetPlayerRPName(playerid));
- }
- case 1:
- {
- SetPlayerHealth(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a medkit from the locker and opens it.", GetPlayerRPName(playerid));
- }
- case 2:
- {
- GivePlayerWeaponEx(playerid, 42);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a fire extinguisher from the locker.", GetPlayerRPName(playerid));
- }
- case 3:
- {
- GivePlayerWeaponEx(playerid, 25);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Shotgun from the locker.", GetPlayerRPName(playerid));
- }
- case 4:
- {
- GivePlayerWeaponEx(playerid, 9);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a jaws of life from the locker.", GetPlayerRPName(playerid));
- }
- case 5:
- {
- PlayerInfo[playerid][pPainkillers] = 5;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a five pack of painkillers from the locker.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- }
- case FACTION_GOVERNMENT:
- {
- switch(listitem)
- {
- case 0:
- {
- SetScriptArmour(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a kevlar vest from the locker and puts it on.", GetPlayerRPName(playerid));
- }
- case 1:
- {
- SetPlayerHealth(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a medkit from the locker and opens it.", GetPlayerRPName(playerid));
- }
- case 2:
- {
- GivePlayerWeaponEx(playerid, 24);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Desert Eagle from the locker.", GetPlayerRPName(playerid));
- }
- case 3:
- {
- GivePlayerWeaponEx(playerid, 25);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Shotgun from the locker.", GetPlayerRPName(playerid));
- }
- case 4:
- {
- GivePlayerWeaponEx(playerid, 29);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs an MP5 from the locker.", GetPlayerRPName(playerid));
- }
- case 5:
- {
- GivePlayerWeaponEx(playerid, 31);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs an M4 from the locker.", GetPlayerRPName(playerid));
- }
- case 6:
- {
- GivePlayerWeaponEx(playerid, 27);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a SPAS-12 from the locker.", GetPlayerRPName(playerid));
- }
- case 7:
- {
- GivePlayerWeaponEx(playerid, 34);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a Sniper Rifle from the locker.", GetPlayerRPName(playerid));
- }
- }
- }
- case FACTION_NEWS:
- {
- switch(listitem)
- {
- case 0:
- {
- SetScriptArmour(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a kevlar vest from the locker and puts it on.", GetPlayerRPName(playerid));
- }
- case 1:
- {
- SetPlayerHealth(playerid, 100.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a medkit from the locker and opens it.", GetPlayerRPName(playerid));
- }
- case 2:
- {
- GivePlayerWeaponEx(playerid, 43);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs a digital camera from the locker.", GetPlayerRPName(playerid));
- }
- }
- }
- case FACTION_HITMAN:
- {
- switch(listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
-
- GivePlayerCash(playerid, -1000);
- SetScriptArmour(playerid, 100.0);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a kevlar vest for $1000.");
- GameTextForPlayer(playerid, "~r~-$1000", 5000, 1);
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCash] < 1500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 4);
- GivePlayerCash(playerid, -1500);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a knife for $1500.");
- GameTextForPlayer(playerid, "~r~-$1500", 5000, 1);
- }
- case 2:
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 23);
- GivePlayerCash(playerid, -1000);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a silenced pistol for $1000.");
- GameTextForPlayer(playerid, "~r~-$1000", 5000, 1);
- }
- case 3:
- {
- if(PlayerInfo[playerid][pCash] < 1500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 25);
- GivePlayerCash(playerid, -1500);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a shotgun for $1500.");
- GameTextForPlayer(playerid, "~r~-$1500", 5000, 1);
- }
- case 4:
- {
- if(PlayerInfo[playerid][pCash] < 2000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 24);
- GivePlayerCash(playerid, -2000);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a Desert Eagle for $2000.");
- GameTextForPlayer(playerid, "~r~-$2000", 5000, 1);
- }
- case 5:
- {
- if(PlayerInfo[playerid][pCash] < 2500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 29);
- GivePlayerCash(playerid, -2500);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered an MP5 for $2500.");
- GameTextForPlayer(playerid, "~r~-$2500", 5000, 1);
- }
- case 6:
- {
- if(PlayerInfo[playerid][pCash] < 4000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 33);
- GivePlayerCash(playerid, -4000);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a country rifle for $4000.");
- GameTextForPlayer(playerid, "~r~-$4000", 5000, 1);
- }
- case 7:
- {
- if(PlayerInfo[playerid][pCash] < 6000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 30);
- GivePlayerCash(playerid, -6000);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered an AK-47 for $6000.");
- GameTextForPlayer(playerid, "~r~-$6000", 5000, 1);
- }
- case 8:
- {
- if(PlayerInfo[playerid][pCash] < 8000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 31);
- GivePlayerCash(playerid, -8000);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered an M4 for $8000.");
- GameTextForPlayer(playerid, "~r~-$8000", 5000, 1);
- }
- case 9:
- {
- if(PlayerInfo[playerid][pCash] < 8500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 27);
- GivePlayerCash(playerid, -8500);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a SPAS-12 for $8500.");
- GameTextForPlayer(playerid, "~r~-$8500", 5000, 1);
- }
- case 10:
- {
- if(PlayerInfo[playerid][pCash] < 9000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- GivePlayerWeaponEx(playerid, 34);
- GivePlayerCash(playerid, -9000);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a sniper rifle for $9000.");
- GameTextForPlayer(playerid, "~r~-$9000", 5000, 1);
- }
- case 11:
- {
- if(PlayerInfo[playerid][pCash] < 7500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford this weapon.");
- }
- if(PlayerInfo[playerid][pBombs] > 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have more than 3 bombs. You can't buy anymore.");
- }
- PlayerInfo[playerid][pBombs]++;
- GivePlayerCash(playerid, -7500);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bombs = %i WHERE uid = %i", PlayerInfo[playerid][pBombs], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You ordered a bomb for $7500. /plantbomb to place the bomb.");
- GameTextForPlayer(playerid, "~r~-$7500", 5000, 1);
- }
- }
- }
- }
- }
- }
- case DIALOG_FACTIONSKINS:
- {
- if(PlayerInfo[playerid][pFaction] >= 0 && IsPlayerInRangeOfPoint(playerid, 3.0, FactionInfo[PlayerInfo[playerid][pFaction]][fLockerX], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerY], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerZ]))
- {
- if(response)
- {
- new index = PlayerInfo[playerid][pSkinSelected] + 1;
- if(index >= MAX_FACTION_SKINS)
- {
- // When the player is shown the dialog for the first time, their skin isn't changed until they click >> Next.
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- PlayerInfo[playerid][pSkinSelected] = -1;
- }
- else
- {
- // Find the next skin in the array.
- for(new i = index; i < MAX_FACTION_SKINS; i ++)
- {
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fSkins][i] != 0)
- {
- SetPlayerSkin(playerid, FactionInfo[PlayerInfo[playerid][pFaction]][fSkins][i]);
- PlayerInfo[playerid][pSkinSelected] = i;
- break;
- }
- }
- if(index == PlayerInfo[playerid][pSkinSelected] + 1)
- {
- // Looks like there was no skin found. So, we'll go back to the very first valid skin in the skin array.
- for(new i = 0; i < MAX_FACTION_SKINS; i ++)
- {
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fSkins][i] != 0)
- {
- SetPlayerSkin(playerid, FactionInfo[PlayerInfo[playerid][pFaction]][fSkins][i]);
- PlayerInfo[playerid][pSkinSelected] = i;
- break;
- }
- }
- }
- }
- ShowPlayerDialog(playerid, DIALOG_FACTIONSKINS, DIALOG_STYLE_MSGBOX, "Uniform selection", "Press {00AA00}>> Next{A9C4E4} to browse through available uniforms.", ">> Next", "Confirm");
- }
- else
- {
- PlayerInfo[playerid][pClothes] = PlayerInfo[playerid][pSkin];
- PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
- PlayerInfo[playerid][pSkinSelected] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i, clothes = %i WHERE uid = %i", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pClothes], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes a uniform out of the locker and puts it on.", GetPlayerRPName(playerid));
- }
- }
- }
- case DIALOG_HITMANCLOTHES:
- {
- if((response) && PlayerInfo[playerid][pFaction] >= 0 && IsPlayerInRangeOfPoint(playerid, 3.0, FactionInfo[PlayerInfo[playerid][pFaction]][fLockerX], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerY], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerZ]))
- {
- new skinid;
- if(sscanf(inputtext, "i", skinid))
- {
- return ShowPlayerDialog(playerid, DIALOG_HITMANCLOTHES, DIALOG_STYLE_INPUT, "Change clothes", "Please input the ID of the skin you wish to purchase.\n(( List of skins: http://wiki.sa-mp.com/wiki/Skins:All ))", "Submit", "Cancel");
- }
- if(!(0 <= skinid <= 311))
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid skin.");
- return ShowPlayerDialog(playerid, DIALOG_HITMANCLOTHES, DIALOG_STYLE_INPUT, "Change clothes", "Please input the ID of the skin you wish to purchase.\n(( List of skins: http://wiki.sa-mp.com/wiki/Skins:All ))", "Submit", "Cancel");
- }
- PlayerInfo[playerid][pSkin] = skinid;
- SetPlayerSkin(playerid, skinid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i WHERE uid = %i", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- GameTextForPlayer(playerid, "~w~Clothes changed for free", 3000, 3);
- }
- }
- case DIALOG_MDC:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- switch(listitem)
- {
- case 0:
- {
- static string[2048], count;
- string = "Suspect\tLocation\tWanted level";
- count = 0;
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWantedLevel] > 0)
- {
- format(string, sizeof(string), "%s\n%s\t%s\t%i/6", string, GetPlayerRPName(i), GetPlayerZoneName(i), PlayerInfo[i][pWantedLevel]);
- count++;
- }
- }
- if(!count)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are currently no wanted suspects online.");
- }
- ShowPlayerDialog(playerid, DIALOG_MDCWANTED, DIALOG_STYLE_TABLIST_HEADERS, "Suspects wanted", string, "Track", "Cancel");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_PLAYERLOOKUP, DIALOG_STYLE_INPUT, "Player lookup", "Enter the full name of the player to lookup:", "Submit", "Cancel");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, DIALOG_VEHICLELOOKUP1, DIALOG_STYLE_INPUT, "Vehicle lookup", "Enter the ID of the vehicle to lookup.\n(( You can find out the ID of a vehicle by using /dl. ))", "Submit", "Cancel");
- }
- }
- }
- }
- case DIALOG_MDCWANTED:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- foreach(new i : Player)
- {
- if(!strcmp(GetPlayerRPName(i), inputtext))
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPosEx(i, x, y, z);
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, x, y, z, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the suspect's last known location.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "The suspect you've selected has went offline.");
- }
- }
- case DIALOG_PLAYERLOOKUP:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- new username[MAX_PLAYER_NAME];
- if(sscanf(inputtext, "s[24]", username))
- {
- return ShowPlayerDialog(playerid, DIALOG_PLAYERLOOKUP, DIALOG_STYLE_INPUT, "Player lookup", "Enter the full name of the player to lookup:", "Submit", "Cancel");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid, gender, age, wantedlevel, crimes, arrested, carlicense FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "MDC_PlayerLookup", "is", playerid, username);
- }
- }
- case DIALOG_MDCPLAYER1:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- ShowPlayerDialog(playerid, DIALOG_MDCPLAYER2, DIALOG_STYLE_LIST, "Options", "Show active charges\nClear charges", "Select", "Cancel");
- }
- }
- case DIALOG_MDCPLAYER2:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- switch(listitem)
- {
- case 0:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM charges WHERE uid = %i", PlayerInfo[playerid][pSelected]);
- mysql_tquery(connectionID, queryBuffer, "MDC_ListCharges", "i", playerid);
- }
- case 1:
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username FROM users WHERE uid = %i", PlayerInfo[playerid][pSelected]);
- mysql_tquery(connectionID, queryBuffer, "MDC_ClearCharges", "i", playerid);
- }
- }
- }
- }
- case DIALOG_MDCCHARGES:
- {
- ShowPlayerDialog(playerid, DIALOG_MDCPLAYER2, DIALOG_STYLE_LIST, "Options", "Show active charges\nClear charges", "Select", "Cancel");
- }
- case DIALOG_VEHICLELOOKUP1:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- new vehicleid, string[512];
- if(sscanf(inputtext, "i", vehicleid))
- {
- return ShowPlayerDialog(playerid, DIALOG_VEHICLELOOKUP1, DIALOG_STYLE_INPUT, "Vehicle lookup", "Enter the ID of the vehicle to lookup.\n(( You can find out the ID of a vehicle by using /dl. ))", "Submit", "Cancel");
- }
- if(!IsValidVehicle(vehicleid) || !VehicleInfo[vehicleid][vOwnerID])
- {
- SendClientMessage(playerid, COLOR_GREY, "The vehicle ID specified is not owned by any particular person.");
- return ShowPlayerDialog(playerid, DIALOG_VEHICLELOOKUP1, DIALOG_STYLE_INPUT, "Vehicle lookup", "Enter the ID of the vehicle to lookup.\n(( You can find out the ID of a vehicle by using /dl. ))", "Submit", "Cancel");
- }
- PlayerInfo[playerid][pSelected] = vehicleid;
- format(string, sizeof(string), "Name: %s\nOwner: %s\nTickets: $%i\nLocation: %s", GetVehicleName(vehicleid), VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vTickets], GetVehicleZoneName(vehicleid));
- ShowPlayerDialog(playerid, DIALOG_VEHICLELOOKUP2, DIALOG_STYLE_MSGBOX, "Vehicle lookup", string, "Track", "Cancel");
- }
- }
- case DIALOG_VEHICLELOOKUP2:
- {
- if((response) && IsLawEnforcement(playerid))
- {
- new garageid, vehicleid = PlayerInfo[playerid][pSelected];
- if((garageid = GetVehicleGarage(vehicleid)) >= 0)
- {
- SetPlayerCheckpoint(playerid, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the garage this vehicle is inside of.");
- }
- else
- {
- new
- Float:x,
- Float:y,
- Float:z;
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the vehicle's last known location.");
- GetVehiclePos(vehicleid, x, y, z);
- SetPlayerCheckpoint(playerid, x, y, z, 3.0);
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- }
- }
- case DIALOG_FACTIONPAY1:
- {
- if((response) && GetFactionType(playerid) == FACTION_GOVERNMENT)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowPlayerDialog(playerid, DIALOG_FACTIONPAY2, DIALOG_STYLE_INPUT, "Change paycheck", "Enter the new paycheck amount for this rank:", "Submit", "Back");
- }
- }
- case DIALOG_FACTIONPAY2:
- {
- if(GetFactionType(playerid) == FACTION_GOVERNMENT)
- {
- if(response)
- {
- new amount, factionid = PlayerInfo[playerid][pFactionEdit], rankid = PlayerInfo[playerid][pSelected];
- if(sscanf(inputtext, "i", amount))
- {
- return ShowPlayerDialog(playerid, DIALOG_FACTIONPAY2, DIALOG_STYLE_INPUT, "Change paycheck", "Enter the new paycheck amount for this rank:", "Submit", "Back");
- }
- if(!(1 <= amount <= 50000))
- {
- SendClientMessage(playerid, COLOR_GREY, "The specified amount must range from $1 to $50000.");
- return ShowPlayerDialog(playerid, DIALOG_FACTIONPAY2, DIALOG_STYLE_INPUT, "Change paycheck", "Enter the new paycheck amount for this rank:", "Submit", "Back");
- }
- FactionInfo[factionid][fPaycheck][rankid] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO factionpay VALUES(%i, %i, %i) ON DUPLICATE KEY UPDATE amount = %i", factionid, rankid, amount, amount);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the paycheck for rank %i to $%i.", rankid, amount);
- Log_Write("log_faction", "%s (uid: %i) set %s's (id: %i) paycheck for rank %i to $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], FactionInfo[factionid][fName], factionid, rankid, amount);
- }
- ShowDialogToPlayer(playerid, DIALOG_FACTIONPAY1);
- }
- }
- case DIALOG_PHONEBOOK:
- {
- if(response)
- {
- if(!strcmp(inputtext, ">> Next page", true))
- {
- PlayerInfo[playerid][pPage]++;
- ShowDialogToPlayer(playerid, DIALOG_PHONEBOOK);
- }
- else if(!strcmp(inputtext, "<< Go back", true) && PlayerInfo[playerid][pPage] > 1)
- {
- PlayerInfo[playerid][pPage]--;
- ShowDialogToPlayer(playerid, DIALOG_PHONEBOOK);
- }
- }
- }
- case DIALOG_CREATEZONE:
- {
- if((response) && PlayerInfo[playerid][pAdmin] >= 5)
- {
- PlayerInfo[playerid][pMinX] = 0.0;
- PlayerInfo[playerid][pMinY] = 0.0;
- PlayerInfo[playerid][pMaxX] = 0.0;
- PlayerInfo[playerid][pMaxY] = 0.0;
- if(PlayerInfo[playerid][pZoneType] == ZONETYPE_LAND)
- {
- PlayerInfo[playerid][pZoneCreation] = ZONETYPE_LAND;
- SendClientMessage(playerid, COLOR_WHITE, "** Your land needs to be within a square or rectangle. /confirm to set the four boundary points.");
- }
- else if(PlayerInfo[playerid][pZoneType] == ZONETYPE_TURF)
- {
- PlayerInfo[playerid][pZoneCreation] = ZONETYPE_TURF;
- SendClientMessage(playerid, COLOR_WHITE, "** Your turf needs to be within a square or rectangle. /confirm to set the four boundary points.");
- }
- }
- }
- case DIALOG_CONFIRMZONE:
- {
- if(response)
- {
- if(PlayerInfo[playerid][pZoneCreation] == ZONETYPE_LAND)
- {
- for(new i = 0; i < MAX_LANDS; i ++)
- {
- if(!LandInfo[i][lExists])
- {
- new
- Float:minx = PlayerInfo[playerid][pMinX],
- Float:miny = PlayerInfo[playerid][pMinY],
- Float:maxx = PlayerInfo[playerid][pMaxX],
- Float:maxy = PlayerInfo[playerid][pMaxY],
- Float:z;
- GetPlayerPos(playerid, z, z, z);
- if(minx > maxx)
- {
- PlayerInfo[playerid][pMinX] = maxx;
- PlayerInfo[playerid][pMaxX] = minx;
- }
- if(miny > maxy)
- {
- PlayerInfo[playerid][pMinY] = maxy;
- PlayerInfo[playerid][pMaxY] = miny;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO lands (price, min_x, min_y, max_x, max_y, height) VALUES(%i, '%f', '%f', '%f', '%f', '%f')", PlayerInfo[playerid][pLandCost], PlayerInfo[playerid][pMinX], PlayerInfo[playerid][pMinY], PlayerInfo[playerid][pMaxX], PlayerInfo[playerid][pMaxY], z);
- mysql_tquery(connectionID, queryBuffer, "OnAdminCreateLand", "iiifffff", playerid, i, PlayerInfo[playerid][pLandCost], PlayerInfo[playerid][pMinX], PlayerInfo[playerid][pMinY], PlayerInfo[playerid][pMaxX], PlayerInfo[playerid][pMaxY], z);
- CancelZoneCreation(playerid);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Land slots are currently full. Ask Emmet to increase the internal limit.");
- CancelZoneCreation(playerid);
- }
- else if(PlayerInfo[playerid][pZoneCreation] == ZONETYPE_TURF)
- {
- for(new i = 0; i < MAX_TURFS; i ++)
- {
- if(!TurfInfo[i][tExists])
- {
- new
- Float:minx = PlayerInfo[playerid][pMinX],
- Float:miny = PlayerInfo[playerid][pMinY],
- Float:maxx = PlayerInfo[playerid][pMaxX],
- Float:maxy = PlayerInfo[playerid][pMaxY],
- Float:z;
- GetPlayerPos(playerid, z, z, z);
- if(minx > maxx)
- {
- PlayerInfo[playerid][pMinX] = maxx;
- PlayerInfo[playerid][pMaxX] = minx;
- }
- if(miny > maxy)
- {
- PlayerInfo[playerid][pMinY] = maxy;
- PlayerInfo[playerid][pMaxY] = miny;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO turfs (id, name, type, min_x, min_y, max_x, max_y, height) VALUES(%i, '%e', %i, '%f', '%f', '%f', '%f', '%f')", i, PlayerInfo[playerid][pTurfName], PlayerInfo[playerid][pTurfType], PlayerInfo[playerid][pMinX], PlayerInfo[playerid][pMinY], PlayerInfo[playerid][pMaxX], PlayerInfo[playerid][pMaxY], z);
- mysql_tquery(connectionID, queryBuffer, "OnAdminCreateTurf", "iisifffff", playerid, i, PlayerInfo[playerid][pTurfName], PlayerInfo[playerid][pTurfType], PlayerInfo[playerid][pMinX], PlayerInfo[playerid][pMinY], PlayerInfo[playerid][pMaxX], PlayerInfo[playerid][pMaxY], z);
- CancelZoneCreation(playerid);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Turf slots are currently full. Ask Emmet to increase the internal limit.");
- CancelZoneCreation(playerid);
- }
- }
- else
- {
- CancelZoneCreation(playerid);
- if(PlayerInfo[playerid][pZoneType] == ZONETYPE_LAND)
- {
- SendClientMessage(playerid, COLOR_WHITE, "** Your land needs to be within a square or rectangle. /confirm to set the four boundary points.");
- SendClientMessage(playerid, COLOR_WHITE, "** Note: You can use /landcancel to exit land creation mode.");
- PlayerInfo[playerid][pZoneCreation] = ZONETYPE_LAND;
- }
- else if(PlayerInfo[playerid][pZoneType] == ZONETYPE_TURF)
- {
- SendClientMessage(playerid, COLOR_WHITE, "** Your turf needs to be within a square or rectangle. /confirm to set the four boundary points.");
- SendClientMessage(playerid, COLOR_WHITE, "** Note: You can use /turfcancel to exit turf creation mode.");
- PlayerInfo[playerid][pZoneCreation] = ZONETYPE_TURF;
- }
- }
- }
- case DIALOG_LANDBUILD1:
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 0;
- }
- if(response)
- {
- PlayerInfo[playerid][pCategory] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_LANDBUILD2);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- }
- }
- case DIALOG_LANDBUILD2:
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 0;
- }
- if(response)
- {
- listitem += PlayerInfo[playerid][pFurnitureIndex];
- if(PlayerInfo[playerid][pCash] < furnitureArray[listitem][fPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't purchase this. You don't have enough money for it.");
- }
- else
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:a;
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- PlayerInfo[playerid][pEditType] = EDIT_LAND_OBJECT_PREVIEW;
- PlayerInfo[playerid][pEditObject] = CreateDynamicObject(furnitureArray[listitem][fModel], x + 2.0 * floatsin(-a, degrees), y + 2.0 * floatcos(-a, degrees), z + 1.0, 0.0, 0.0, ((19353 <= furnitureArray[listitem][fModel] <= 19417) || (19426 <= furnitureArray[listitem][fModel] <= 19465)) ? (a + 90.0) : (a), GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- PlayerInfo[playerid][pObjectLand] = landid;
- PlayerInfo[playerid][pSelected] = listitem;
- SendClientMessageEx(playerid, COLOR_AQUA, "You are now previewing {FF6347}%s{33CCFF}. This object costs {00AA00}$%i{33CCFF} to purchase.", furnitureArray[listitem][fName], furnitureArray[listitem][fPrice]);
- SendClientMessageEx(playerid, COLOR_AQUA, "Use your cursor to control the editor interface. Click the floppy disk to save changes.");
- EditDynamicObject(playerid, PlayerInfo[playerid][pEditObject]);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDBUILD1);
- }
- }
- case DIALOG_LANDMENU:
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDBUILD1);
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_LANDEDITOBJECT, DIALOG_STYLE_INPUT, "Edit object", "Please enter the object ID of the object to edit:\nYou can find out the ID of objects by toggling labels in the menu.", "Submit", "Back");
- }
- case 2:
- {
- if(!LandInfo[landid][lLabels])
- {
- LandInfo[landid][lLabels] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "You will now see labels appear above the objects in your land.");
- }
- else
- {
- LandInfo[landid][lLabels] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "You will no longer see any labels appear above your land objects.");
- }
- ReloadAllLandObjects(landid);
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- }
- case 3:
- {
- PlayerInfo[playerid][pPage] = 1;
- ShowDialogToPlayer(playerid, DIALOG_LANDOBJECTS);
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_LANDSELLALL, DIALOG_STYLE_MSGBOX, "Clear objects", "This option sells all the objects in your land. You will receive\n75 percent of the total cost of all your objects.\n\nPress {FF6347}Confirm{A9C4E4} to proceed with the operation.", "Confirm", "Back");
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_LANDPERMS, DIALOG_STYLE_INPUT, "Permissions", "Please enter the name or ID of the player to take or give permissions to:", "Submit", "Back");
- }
- }
- }
- }
- case DIALOG_LANDEDITOBJECT:
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 1;
- }
- if(response)
- {
- new objectid;
- if(sscanf(inputtext, "i", objectid))
- {
- return ShowPlayerDialog(playerid, DIALOG_LANDEDITOBJECT, DIALOG_STYLE_INPUT, "Edit object", "Please enter the object ID of the object to edit:\nYou can find out the ID of objects by toggling labels in the menu.", "Submit", "Back");
- }
- if(!IsValidDynamicObject(objectid) || Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) != E_OBJECT_LAND)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid object. You can find out an object's ID by enabling labels.");
- return ShowPlayerDialog(playerid, DIALOG_LANDEDITOBJECT, DIALOG_STYLE_INPUT, "Edit object", "Please enter the object ID of the object to edit:\nYou can find out the ID of objects by toggling labels in the menu.", "Submit", "Back");
- }
- if(Streamer_GetExtraInt(objectid, E_OBJECT_EXTRA_ID) != LandInfo[landid][lID])
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid object. This land object is not apart of your land.");
- return ShowPlayerDialog(playerid, DIALOG_LANDEDITOBJECT, DIALOG_STYLE_INPUT, "Edit object", "Please enter the object ID of the object to edit:\nYou can find out the ID of objects by toggling labels in the menu.", "Submit", "Back");
- }
- PlayerInfo[playerid][pSelected] = objectid;
- ShowDialogToPlayer(playerid, DIALOG_LANDOBJECTMENU);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- }
- }
- case DIALOG_LANDOBJECTMENU:
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 1;
- }
- if(response)
- {
- new objectid = PlayerInfo[playerid][pSelected];
- if(!strcmp(inputtext, "Edit object"))
- {
- if(Streamer_GetExtraInt(objectid, E_OBJECT_OPENED))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't edit your gate while it is opened.");
- }
- PlayerInfo[playerid][pEditType] = EDIT_LAND_OBJECT;
- PlayerInfo[playerid][pEditObject] = objectid;
- PlayerInfo[playerid][pObjectLand] = landid;
- EditDynamicObject(playerid, objectid);
- GameTextForPlayer(playerid, "~w~Editing Mode~n~~g~Click disk to save~n~~r~Press ESC to cancel", 5000, 1);
- }
- else if(!strcmp(inputtext, "Edit gate destination"))
- {
- if(Streamer_GetExtraInt(objectid, E_OBJECT_OPENED))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't edit your gate while it is opened.");
- }
- PlayerInfo[playerid][pEditType] = EDIT_LAND_GATE_MOVE;
- PlayerInfo[playerid][pEditObject] = objectid;
- PlayerInfo[playerid][pObjectLand] = landid;
- EditDynamicObject(playerid, objectid);
- SendClientMessage(playerid, COLOR_WHITE, "** You are now editing the move-to position for your gate.");
- GameTextForPlayer(playerid, "~w~Editing Mode~n~~g~Click disk to save~n~~r~Press ESC to cancel", 5000, 1);
- }
- else if(!strcmp(inputtext, "Duplicate object"))
- {
- PlayerInfo[playerid][pSelected] = objectid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT name, modelid, price, pos_x, pos_y, pos_z, rot_x, rot_y, rot_z FROM landobjects WHERE id = %i", Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_DUPLICATE_LANDOBJECT, playerid);
- }
- else if(!strcmp(inputtext, "Sell object"))
- {
- PlayerInfo[playerid][pSelected] = objectid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT name, price FROM landobjects WHERE id = %i", Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_SELL_LANDOBJECT, playerid);
- }
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_LANDEDITOBJECT, DIALOG_STYLE_INPUT, "Edit object", "Please enter the object ID of the object to edit:\nYou can find out the ID of objects by toggling labels in the menu.", "Submit", "Back");
- }
- }
- case DIALOG_LANDOBJECTS:
- {
- if(response)
- {
- if(!strcmp(inputtext, ">> Next page", true))
- {
- PlayerInfo[playerid][pPage]++;
- ShowDialogToPlayer(playerid, DIALOG_LANDOBJECTS);
- }
- else if(!strcmp(inputtext, "<< Go back", true) && PlayerInfo[playerid][pPage] > 1)
- {
- PlayerInfo[playerid][pPage]--;
- ShowDialogToPlayer(playerid, DIALOG_LANDOBJECTS);
- }
- else
- {
- new objectid = strval(inputtext);
- if(IsValidDynamicObject(objectid) && Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) == E_OBJECT_LAND)
- {
- PlayerInfo[playerid][pSelected] = objectid;
- ShowDialogToPlayer(playerid, DIALOG_LANDOBJECTMENU);
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- }
- }
- case DIALOG_LANDSELLALL:
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 1;
- }
- if(response)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT price FROM landobjects WHERE landid = %i", LandInfo[landid][lID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_CLEAR_LANDOBJECTS, playerid);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- }
- }
- case DIALOG_LANDPERMS:
- {
- new landid = GetNearbyLand(playerid), targetid;
- if(landid == -1 || !HasLandPerms(playerid, landid))
- {
- return 1;
- }
- if(response)
- {
- if(sscanf(inputtext, "u", targetid))
- {
- return ShowPlayerDialog(playerid, DIALOG_LANDPERMS, DIALOG_STYLE_INPUT, "Permissions", "Please enter the name or ID of the player to take or give permissions to:", "Submit", "Back");
- }
- if(!IsPlayerConnected(targetid))
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- return ShowPlayerDialog(playerid, DIALOG_LANDPERMS, DIALOG_STYLE_INPUT, "Permissions", "Please enter the name or ID of the player to take or give permissions to:", "Submit", "Back");
- }
- if(targetid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't give permissions to yourself.");
- return ShowPlayerDialog(playerid, DIALOG_LANDPERMS, DIALOG_STYLE_INPUT, "Permissions", "Please enter the name or ID of the player to take or give permissions to:", "Submit", "Back");
- }
- if(PlayerInfo[targetid][pLandPerms] == landid)
- {
- PlayerInfo[targetid][pLandPerms] = -1;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed your access to their land's objects.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s's access to your land's objects.", GetPlayerRPName(targetid));
- }
- else
- {
- PlayerInfo[targetid][pLandPerms] = landid;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has granted you access to their land's objects.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have granted %s access to your land's objects.", GetPlayerRPName(targetid));
- }
- }
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- }
- case DIALOG_MP3PLAYER:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, DIALOG_MP3URL, DIALOG_STYLE_INPUT, "Custom URL", "Please enter the URL of the stream you want to play:", "Submit", "Back");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_MP3MUSIC, DIALOG_STYLE_INPUT, "Uploaded Music", "Please enter the name of the .mp3 file to play:\n(Use /music for a list of all music uploaded to the server.)", "Submit", "Back");
- }
- case 2:
- {
- if(!radioConnectionID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The radio station database is currently unavailable.");
- }
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIO);
- }
- case 3:
- {
- switch(PlayerInfo[playerid][pMusicType])
- {
- case MUSIC_MP3PLAYER:
- {
- SetMusicStream(MUSIC_MP3PLAYER, playerid, "");
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off their MP3 player.", GetPlayerRPName(playerid));
- }
- case MUSIC_BOOMBOX:
- {
- SetMusicStream(MUSIC_BOOMBOX, playerid, "");
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off their boombox.", GetPlayerRPName(playerid));
- }
- case MUSIC_VEHICLE:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetMusicStream(MUSIC_VEHICLE, GetPlayerVehicleID(playerid), "");
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off the radio in the vehicle.", GetPlayerRPName(playerid));
- }
- }
- }
- }
- }
- }
- }
- case DIALOG_MP3MUSIC:
- {
- if(response)
- {
- new url[128];
- if(isnull(inputtext))
- {
- return ShowPlayerDialog(playerid, DIALOG_MP3MUSIC, DIALOG_STYLE_INPUT, "Uploaded Music", "Please enter the name of the .mp3 file to play:\n(Use /music for a list of all music uploaded to the server.)", "Submit", "Back");
- }
- for(new i = 0, l = strlen(inputtext); i < l; i ++)
- {
- switch(inputtext[i])
- {
- case 'A'..'Z', 'a'..'z', '0'..'9', '_', '.', '\'', ' ':
- {
- continue;
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "The name of the .mp3 contains invalid characters, please try again.");
- return ShowPlayerDialog(playerid, DIALOG_MP3MUSIC, DIALOG_STYLE_INPUT, "Uploaded Music", "Please enter the name of the .mp3 file to play:\n(Use /musicfor a list of all music uploaded to the server.)", "Submit", "Back");
- }
- }
- }
- format(url, sizeof(url), "http://%s/%s", SERVER_MUSIC_URL, inputtext);
- switch(PlayerInfo[playerid][pMusicType])
- {
- case MUSIC_MP3PLAYER:
- {
- SetMusicStream(MUSIC_MP3PLAYER, playerid, url);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the song on their MP3 player.", GetPlayerRPName(playerid));
- }
- case MUSIC_BOOMBOX:
- {
- SetMusicStream(MUSIC_BOOMBOX, playerid, url);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the song on their boombox.", GetPlayerRPName(playerid));
- }
- case MUSIC_VEHICLE:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetMusicStream(MUSIC_VEHICLE, GetPlayerVehicleID(playerid), url);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the song on the radio.", GetPlayerRPName(playerid));
- }
- }
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "You have started the playback of {00AA00}%s{33CCFF}.", inputtext);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3PLAYER);
- }
- }
- case DIALOG_MP3URL:
- {
- if(response)
- {
- if(isnull(inputtext))
- {
- return ShowPlayerDialog(playerid, DIALOG_MP3URL, DIALOG_STYLE_INPUT, "Custom URL", "Please enter the URL of the stream you want to play:", "Submit", "Back");
- }
- switch(PlayerInfo[playerid][pMusicType])
- {
- case MUSIC_MP3PLAYER:
- {
- SetMusicStream(MUSIC_MP3PLAYER, playerid, inputtext);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the song on their MP3 player.", GetPlayerRPName(playerid));
- }
- case MUSIC_BOOMBOX:
- {
- SetMusicStream(MUSIC_BOOMBOX, playerid, inputtext);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the song on their boombox.", GetPlayerRPName(playerid));
- }
- case MUSIC_VEHICLE:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetMusicStream(MUSIC_VEHICLE, GetPlayerVehicleID(playerid), inputtext);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes the song on the radio.", GetPlayerRPName(playerid));
- }
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3PLAYER);
- }
- }
- case DIALOG_MP3RADIO:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOGENRES);
- }
- case 1:
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOSEARCH);
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3PLAYER);
- }
- }
- case DIALOG_MP3RADIOGENRES:
- {
- if(response)
- {
- strcpy(PlayerInfo[playerid][pGenre], inputtext, 32);
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOSUBGENRES);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIO);
- }
- }
- case DIALOG_MP3RADIOSUBGENRES:
- {
- if(response)
- {
- PlayerInfo[playerid][pPage] = 1;
- PlayerInfo[playerid][pSearch] = 0;
- strcpy(PlayerInfo[playerid][pSubgenre], inputtext, 32);
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIORESULTS);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOGENRES);
- }
- }
- case DIALOG_MP3RADIORESULTS:
- {
- if(response)
- {
- if(!strcmp(inputtext, ">> Next page", true))
- {
- PlayerInfo[playerid][pPage]++;
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIORESULTS);
- }
- else if(!strcmp(inputtext, "<< Go back", true) && PlayerInfo[playerid][pPage] > 1)
- {
- PlayerInfo[playerid][pPage]--;
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIORESULTS);
- }
- else
- {
- listitem = ((PlayerInfo[playerid][pPage] - 1) * MAX_LISTED_STATIONS) + listitem;
- if(PlayerInfo[playerid][pSearch])
- {
- mysql_format(radioConnectionID, queryBuffer, sizeof(queryBuffer), "SELECT name, url FROM radiostations WHERE name LIKE '%%%e%%' OR subgenre LIKE '%%%e%%' ORDER BY name LIMIT %i, 1", PlayerInfo[playerid][pGenre], PlayerInfo[playerid][pGenre], listitem);
- mysql_tquery(radioConnectionID, queryBuffer, "Radio_PlayStation", "i", playerid);
- }
- else
- {
- mysql_format(radioConnectionID, queryBuffer, sizeof(queryBuffer), "SELECT name, url FROM radiostations WHERE genre = '%e' AND subgenre = '%e' ORDER BY name LIMIT %i, 1", PlayerInfo[playerid][pGenre], PlayerInfo[playerid][pSubgenre], listitem);
- mysql_tquery(radioConnectionID, queryBuffer, "Radio_PlayStation", "i", playerid);
- }
- }
- }
- else
- {
- if(PlayerInfo[playerid][pSearch])
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOSEARCH);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIOSUBGENRES);
- }
- }
- }
- case DIALOG_MP3RADIOSEARCH:
- {
- if(response)
- {
- if(strlen(inputtext) < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your search query must contain 3 characters or more.");
- return ShowDialogToPlayer(playerid, DIALOG_MP3RADIOSEARCH);
- }
- PlayerInfo[playerid][pPage] = 1;
- PlayerInfo[playerid][pSearch] = 1;
- strcpy(PlayerInfo[playerid][pGenre], inputtext, 32);
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIORESULTS);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_MP3RADIO);
- }
- }
- case DIALOG_USECOOKIES:
- {
- if(response)
- {
- /*
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, '%s', NOW(), '%e')", PlayerInfo[targetid][pID], GetPlayerNameEx(playerid), desc);
- mysql_tquery(connectionID, queryBuffer);
- */
- switch(listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pCookies] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- ShowPlayerDialog(playerid, DIALOG_COOKIESHOUTOUT, DIALOG_STYLE_INPUT, "Shoutout of choice", "Enter a shoutout to broadcast to the server:", "Submit", "Cancel");
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCookies] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SetScriptArmour(playerid, 100.0);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 1 cookie for {00AA00}Full armor{33CCFF}.");
- }
- case 2:
- {
- if(PlayerInfo[playerid][pCookies] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 2;
- PlayerInfo[playerid][pEXP] += 4;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, exp = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pEXP], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 2 cookies for {00AA00}+4 Respect points{33CCFF}.");
- }
- case 3:
- {
- if(PlayerInfo[playerid][pCookies] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- ShowPlayerDialog(playerid, DIALOG_COOKIEWEATHER, DIALOG_STYLE_LIST, "Choose your weather.", "Clear skies\nCloudy\nRainy weather\nFoggy\nDull\nHeatwave\nSandstorm", "Select", "Cancel");
- }
- case 4:
- {
- if(PlayerInfo[playerid][pCookies] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- if(PlayerInfo[playerid][pMaterials] + 5000 > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- }
- PlayerInfo[playerid][pCookies] -= 4;
- PlayerInfo[playerid][pMaterials] += 5000;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, materials = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 4 cookies for {00AA00}5000 materials{33CCFF}.");
- }
- case 5:
- {
- if(PlayerInfo[playerid][pCookies] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- if(PlayerInfo[playerid][pHours] < 2 || PlayerInfo[playerid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are either weapon restricted or you played less than two playing hours.");
- }
- PlayerInfo[playerid][pCookies] -= 5;
- GivePlayerWeaponEx(playerid, 24);
- GivePlayerWeaponEx(playerid, 27);
- GivePlayerWeaponEx(playerid, 29);
- GivePlayerWeaponEx(playerid, 31);
- GivePlayerWeaponEx(playerid, 34);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 5 cookies for a {00AA00}Full weapon set{33CCFF}.");
- }
- case 6:
- {
- if(PlayerInfo[playerid][pCookies] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- ShowPlayerDialog(playerid, DIALOG_COOKIENUMBER, DIALOG_STYLE_INPUT, "Number change", "Enter your phone number of choice:", "Submit", "Cancel");
- }
- case 7:
- {
- if(PlayerInfo[playerid][pCookies] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- ShowPlayerDialog(playerid, DIALOG_COOKIEJOB, DIALOG_STYLE_LIST, "Choose a job to 1x level up.", "Courier\nFisherman\nBodyguard\nMechanic\nWeapons Dealer\nDrug Dealer\nLawyer\nDetective", "Select", "Cancel");
- }
- case 8:
- {
- if(PlayerInfo[playerid][pCookies] < 10)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 10;
- PlayerInfo[playerid][pDoubleXP] += 8;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, doublexp = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pDoubleXP], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 10 cookies for {00AA00}8 hours of Double XP{33CCFF}.");
- }
- case 9:
- {
- if(PlayerInfo[playerid][pCookies] < 15)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 15;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, 'Cookie prize', NOW(), 'Free vehicle (up to $100k value)')", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 15 cookies for a {00AA00}Free vehicle ticket{33CCFF}. /report for your prize.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a pending flag for a vehicle ticket (up to $100k value).", GetPlayerRPName(playerid), playerid);
- }
- case 10:
- {
- if(PlayerInfo[playerid][pCookies] < 30)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 30;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, 'Cookie prize', NOW(), 'Free house (up to $100k value)')", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 30 cookies for a {00AA00}Free house ticket{33CCFF}. /report for your prize.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a pending flag for a house ticket (up to $100k value).", GetPlayerRPName(playerid), playerid);
- }
- case 11:
- {
- if(PlayerInfo[playerid][pCookies] < 40)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 40;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, 'Cookie prize', NOW(), 'Free business of any type')", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 40 cookies for a {00AA00}Free business ticket{33CCFF}. /report for your prize.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a pending flag for a business ticket (any type).", GetPlayerRPName(playerid), playerid);
- }
- case 12:
- {
- if(PlayerInfo[playerid][pCookies] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 50;
- PlayerInfo[playerid][pVIPPackage] = 1;
- PlayerInfo[playerid][pVIPTime] = gettime() + 2592000;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, vippackage = 1, viptime = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pVIPTime], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 50 cookies for {00AA00}1 month limited VIP{33CCFF}.");
- }
- }
- }
- }
- case DIALOG_COOKIESHOUTOUT:
- {
- if(response)
- {
- if(!(3 <= strlen(inputtext) <= 64))
- {
- SendClientMessage(playerid, COLOR_GREY, "Your shoutout may only contain 3 to 64 characters.");
- return ShowPlayerDialog(playerid, DIALOG_COOKIESHOUTOUT, DIALOG_STYLE_INPUT, "Shoutout of choice", "Enter a shoutout to broadcast to the server:", "Submit", "Cancel");
- }
- if(PlayerInfo[playerid][pCookies] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageToAllEx(COLOR_ORANGE, "Shoutout from %s: %s", GetPlayerRPName(playerid), inputtext);
- SendClientMessage(playerid, COLOR_AQUA, "You have redeemed 1 cookie for a {00AA00}Shoutout{33CCFF} to the entire server.");
- }
- }
- case DIALOG_COOKIEWEATHER:
- {
- if(response)
- {
- if(PlayerInfo[playerid][pCookies] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- switch(listitem)
- {
- case 0: gWeather = 1;
- case 1: gWeather = 4;
- case 2: gWeather = 8;
- case 3: gWeather = 9;
- case 4: gWeather = 12;
- case 5: gWeather = 18;
- case 6: gWeather = 19;
- }
- SetWeather(gWeather);
- PlayerInfo[playerid][pCookies] -= 3;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have redeemed 3 cookies for a weather change to {00AA00}%s{33CCFF}.", inputtext);
- }
- }
- case DIALOG_COOKIENUMBER:
- {
- if(response)
- {
- new number;
- if(sscanf(inputtext, "i", number))
- {
- return ShowPlayerDialog(playerid, DIALOG_COOKIENUMBER, DIALOG_STYLE_INPUT, "Number change", "Enter your phone number of choice:", "Submit", "Cancel");
- }
- if(number == 0 || number == 911 || number == 6397 || number == 6324 || number == 8294)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid number.");
- return ShowPlayerDialog(playerid, DIALOG_COOKIENUMBER, DIALOG_STYLE_INPUT, "Number change", "Enter your phone number of choice:", "Submit", "Cancel");
- }
- if(PlayerInfo[playerid][pCookies] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT phone FROM users WHERE phone = %i", number);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerChangeNumber", "ii", playerid, number);
- }
- }
- case DIALOG_COOKIEJOB:
- {
- new job, level;
- if(response)
- {
- switch(listitem)
- {
- case 0: job = JOB_COURIER;
- case 1: job = JOB_FISHERMAN;
- case 2: job = JOB_BODYGUARD;
- case 3: job = JOB_MECHANIC;
- case 4: job = JOB_WEAPONDEALER;
- case 5: job = JOB_DRUGDEALER;
- case 6: job = JOB_LAWYER;
- case 7: job = JOB_DETECTIVE;
- }
- if((level = GetJobLevel(playerid, job)) >= 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your level for this job is already at its maximum.");
- }
- if(PlayerInfo[playerid][pCookies] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cookies. You can't redeem this item.");
- }
- PlayerInfo[playerid][pCookies] -= 5;
- switch(job)
- {
- case JOB_COURIER:
- {
- if(0 <= PlayerInfo[playerid][pCourierSkill] <= 49) {
- PlayerInfo[playerid][pCourierSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pCourierSkill] <= 99) {
- PlayerInfo[playerid][pCourierSkill] = 100;
- } else if(100 <= PlayerInfo[playerid][pCourierSkill] <= 199) {
- PlayerInfo[playerid][pCourierSkill] = 200;
- } else if(200 <= PlayerInfo[playerid][pCourierSkill] <= 349) {
- PlayerInfo[playerid][pCourierSkill] = 350;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, courierskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pCourierSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_FISHERMAN:
- {
- if(0 <= PlayerInfo[playerid][pFishingSkill] <= 49) {
- PlayerInfo[playerid][pFishingSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pFishingSkill] <= 99) {
- PlayerInfo[playerid][pFishingSkill] = 100;
- } else if(100 <= PlayerInfo[playerid][pFishingSkill] <= 199) {
- PlayerInfo[playerid][pFishingSkill] = 200;
- } else if(200 <= PlayerInfo[playerid][pFishingSkill] <= 349) {
- PlayerInfo[playerid][pFishingSkill] = 350;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, fishingskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pFishingSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_BODYGUARD:
- {
- if(0 <= PlayerInfo[playerid][pGuardSkill] <= 24) {
- PlayerInfo[playerid][pGuardSkill] = 25;
- } else if(25 <= PlayerInfo[playerid][pGuardSkill] <= 49) {
- PlayerInfo[playerid][pGuardSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pGuardSkill] <= 99) {
- PlayerInfo[playerid][pGuardSkill] = 100;
- } else if(100 <= PlayerInfo[playerid][pGuardSkill] <= 199) {
- PlayerInfo[playerid][pGuardSkill] = 200;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, guardskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pGuardSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_MECHANIC:
- {
- if(0 <= PlayerInfo[playerid][pMechanicSkill] <= 24) {
- PlayerInfo[playerid][pMechanicSkill] = 25;
- } else if(25 <= PlayerInfo[playerid][pMechanicSkill] <= 49) {
- PlayerInfo[playerid][pMechanicSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pMechanicSkill] <= 99) {
- PlayerInfo[playerid][pMechanicSkill] = 100;
- } else if(100 <= PlayerInfo[playerid][pMechanicSkill] <= 199) {
- PlayerInfo[playerid][pMechanicSkill] = 200;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, mechanicskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pMechanicSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_WEAPONDEALER:
- {
- if(0 <= PlayerInfo[playerid][pWeaponSkill] <= 49) {
- PlayerInfo[playerid][pWeaponSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pWeaponSkill] <= 99) {
- PlayerInfo[playerid][pWeaponSkill] = 100;
- } else if(100 <= PlayerInfo[playerid][pWeaponSkill] <= 199) {
- PlayerInfo[playerid][pWeaponSkill] = 200;
- } else if(200 <= PlayerInfo[playerid][pWeaponSkill] <= 499) {
- PlayerInfo[playerid][pWeaponSkill] = 500;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, weaponskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pWeaponSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_DRUGDEALER:
- {
- if(0 <= PlayerInfo[playerid][pSmugglerSkill] <= 24) {
- PlayerInfo[playerid][pSmugglerSkill] = 25;
- } else if(25 <= PlayerInfo[playerid][pSmugglerSkill] <= 49) {
- PlayerInfo[playerid][pSmugglerSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pSmugglerSkill] <= 74) {
- PlayerInfo[playerid][pSmugglerSkill] = 75;
- } else if(75 <= PlayerInfo[playerid][pSmugglerSkill] <= 99) {
- PlayerInfo[playerid][pSmugglerSkill] = 100;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, smugglerskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pSmugglerSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_LAWYER:
- {
- if(0 <= PlayerInfo[playerid][pLawyerSkill] <= 24) {
- PlayerInfo[playerid][pLawyerSkill] = 25;
- } else if(25 <= PlayerInfo[playerid][pLawyerSkill] <= 49) {
- PlayerInfo[playerid][pLawyerSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pLawyerSkill] <= 99) {
- PlayerInfo[playerid][pLawyerSkill] = 100;
- } else if(75 <= PlayerInfo[playerid][pLawyerSkill] <= 199) {
- PlayerInfo[playerid][pLawyerSkill] = 200;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, lawyerskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pLawyerSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- case JOB_DETECTIVE:
- {
- if(0 <= PlayerInfo[playerid][pDetectiveSkill] <= 49) {
- PlayerInfo[playerid][pDetectiveSkill] = 50;
- } else if(50 <= PlayerInfo[playerid][pDetectiveSkill] <= 99) {
- PlayerInfo[playerid][pDetectiveSkill] = 100;
- } else if(100 <= PlayerInfo[playerid][pDetectiveSkill] <= 199) {
- PlayerInfo[playerid][pDetectiveSkill] = 200;
- } else if(200 <= PlayerInfo[playerid][pDetectiveSkill] <= 399) {
- PlayerInfo[playerid][pDetectiveSkill] = 400;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i, detectiveskill = %i WHERE uid = %i", PlayerInfo[playerid][pCookies], PlayerInfo[playerid][pDetectiveSkill], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "You have redeemed 5 cookies to advance your {00AA00}%s{33CCFF} level from %i to %i.", GetJobName(job), level, level + 1);
- }
- }
- case DIALOG_GANGSTASH:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHWEAPONS1);
- }
- case 1:
- {
- //SendClientMessage(playerid, COLOR_GREY, "This feature is under construction.");
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHAMMO1);
- }
- case 2:
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 1+ to craft kevlar vests.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe for kevlar vests.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 1000;
- SetScriptArmour(playerid, 100.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes a kevlar vest from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You crafted a kevlar vest using 1000 materials from the safe.");
- }
- case 3:
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHDRUGS1);
- }
- case 4:
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 5+ to craft weapons.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 5:
- {
- PlayerInfo[playerid][pSelected] = ITEM_MATERIALS;
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHMATS);
- }
- case 6:
- {
- PlayerInfo[playerid][pSelected] = ITEM_CASH;
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCASH);
- }
- }
- }
- }
- case DIALOG_GANGSTASHWEAPONS1:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowPlayerDialog(playerid, DIALOG_GANGSTASHWEAPONS2, DIALOG_STYLE_LIST, "Gang stash | Weapons", "Withdraw\nDeposit", "Select", "Back");
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- }
- }
- case DIALOG_GANGSTASHWEAPONS2:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 1+ in order to withdraw weapons.");
- }
- switch(PlayerInfo[playerid][pSelected])
- {
- case GANGWEAPON_9MM:
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_9MM] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 22))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_9MM]--;
- GivePlayerWeaponEx(playerid, 22);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_9mm = weapon_9mm - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a 9mm from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a 9mm from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SDPISTOL:
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SDPISTOL] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 23))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SDPISTOL]--;
- GivePlayerWeaponEx(playerid, 23);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_sdpistol = weapon_sdpistol - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a silenced pistol from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a silenced pistol from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_DEAGLE:
- {
- if(PlayerInfo[playerid][pGangRank] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_DEAGLE] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 24))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_DEAGLE]--;
- GivePlayerWeaponEx(playerid, 24);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_deagle = weapon_deagle - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a Desert Eagle from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a Desert Eagle from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SHOTGUN:
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SHOTGUN] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 25))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SHOTGUN]--;
- GivePlayerWeaponEx(playerid, 25);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_shotgun = weapon_shotgun - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a shotgun from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a shotgun from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SPAS12:
- {
- if(PlayerInfo[playerid][pGangRank] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SPAS12] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 27))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SPAS12]--;
- GivePlayerWeaponEx(playerid, 27);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_spas12 = weapon_spas12 - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a SPAS-12 from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a SPAS-12 from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SAWNOFF:
- {
- if(PlayerInfo[playerid][pGangRank] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SAWNOFF] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 26))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SAWNOFF]--;
- GivePlayerWeaponEx(playerid, 26);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_sawnoff = weapon_sawnoff - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a sawnoff shotgun from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a sawnoff shotgun from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_TEC9:
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_TEC9] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 32))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_TEC9]--;
- GivePlayerWeaponEx(playerid, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_tec9 = weapon_tec9 - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a Tec-9 from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a Tec-9 from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_UZI:
- {
- if(PlayerInfo[playerid][pGangRank] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_UZI] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 28))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_UZI]--;
- GivePlayerWeaponEx(playerid, 28);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_uzi = weapon_uzi - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a Micro Uzi from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a Micro Uzi from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_MP5:
- {
- if(PlayerInfo[playerid][pGangRank] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MP5] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 29))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MP5]--;
- GivePlayerWeaponEx(playerid, 29);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_mp5 = weapon_mp5 - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws an MP5 from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws an MP5 from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_AK47:
- {
- if(PlayerInfo[playerid][pGangRank] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_AK47] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 30))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_AK47]--;
- GivePlayerWeaponEx(playerid, 30);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_ak47 = weapon_ak47 - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws an AK-47 from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws an AK-47 from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_M4:
- {
- if(PlayerInfo[playerid][pGangRank] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_M4] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 31))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_M4]--;
- GivePlayerWeaponEx(playerid, 31);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_m4 = weapon_m4 - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws an M4 from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws an M4 from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_RIFLE:
- {
- if(PlayerInfo[playerid][pGangRank] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_RIFLE] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 33))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_RIFLE]--;
- GivePlayerWeaponEx(playerid, 33);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_rifle = weapon_rifle - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a rifle from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a rifle from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SNIPER:
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SNIPER] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 34))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SNIPER]--;
- GivePlayerWeaponEx(playerid, 34);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_sniper = weapon_sniper - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a sniper rifle from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a sniper rifle from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_MOLOTOV:
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your rank isn't high enough to withdraw this weapon.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MOLOTOV] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The gang stash doesn't have any of this weapon left.");
- }
- if(PlayerHasWeapon(playerid, 18))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this weapon already.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MOLOTOV]--;
- GivePlayerWeaponEx(playerid, 18);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_molotov = weapon_molotov - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws a molotov from the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) withdraws a molotov from the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- }
- }
- else if(listitem == 1)
- {
- switch(PlayerInfo[playerid][pSelected])
- {
- case GANGWEAPON_9MM:
- {
- if(!PlayerHasWeapon(playerid, 22))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_9MM]++;
- RemovePlayerWeapon(playerid, 22);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_9mm = weapon_9mm + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a 9mm in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a 9mm in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SDPISTOL:
- {
- if(!PlayerHasWeapon(playerid, 23))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SDPISTOL]++;
- RemovePlayerWeapon(playerid, 23);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_sdpistol = weapon_sdpistol + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a silenced pistol in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a silenced pistol in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_DEAGLE:
- {
- if(!PlayerHasWeapon(playerid, 24))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_DEAGLE]++;
- RemovePlayerWeapon(playerid, 24);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_deagle = weapon_deagle + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a Desert Eagle in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a Desert Eagle in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SHOTGUN:
- {
- if(!PlayerHasWeapon(playerid, 25))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SHOTGUN]++;
- RemovePlayerWeapon(playerid, 25);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_shotgun = weapon_shotgun + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a shotgun in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a shotgun in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SPAS12:
- {
- if(!PlayerHasWeapon(playerid, 27))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SPAS12]++;
- RemovePlayerWeapon(playerid, 27);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_spas12 = weapon_spas12 + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a SPAS-12 in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a SPAS-12 in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SAWNOFF:
- {
- if(!PlayerHasWeapon(playerid, 26))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SAWNOFF]++;
- RemovePlayerWeapon(playerid, 26);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_sawnoff = weapon_sawnoff + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a sawnoff shotgun in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a sawnoff shotgun in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_TEC9:
- {
- if(!PlayerHasWeapon(playerid, 32))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_TEC9]++;
- RemovePlayerWeapon(playerid, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_tec9 = weapon_tec9 + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a Tec-9 in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a Tec-9 in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_UZI:
- {
- if(!PlayerHasWeapon(playerid, 28))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_UZI]++;
- RemovePlayerWeapon(playerid, 28);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_uzi = weapon_uzi + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a Micro Uzi in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a Micro Uzi in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_MP5:
- {
- if(!PlayerHasWeapon(playerid, 29))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MP5]++;
- RemovePlayerWeapon(playerid, 29);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_mp5 = weapon_mp5 + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits an MP5 in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits an MP5 in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_AK47:
- {
- if(!PlayerHasWeapon(playerid, 30))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_AK47]++;
- RemovePlayerWeapon(playerid, 30);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_ak47 = weapon_ak47 + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits an AK-47 in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits an AK-47 in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_M4:
- {
- if(!PlayerHasWeapon(playerid, 31))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_M4]++;
- RemovePlayerWeapon(playerid, 31);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_m4 = weapon_m4 + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits an M4 in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits an M4 in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_RIFLE:
- {
- if(!PlayerHasWeapon(playerid, 33))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_RIFLE]++;
- RemovePlayerWeapon(playerid, 33);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_rifle = weapon_rifle + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a rifle in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a rifle in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_SNIPER:
- {
- if(!PlayerHasWeapon(playerid, 34))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SNIPER]++;
- RemovePlayerWeapon(playerid, 34);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_sniper = weapon_sniper + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a sniper rifle in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a sniper rifle in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case GANGWEAPON_MOLOTOV:
- {
- if(!PlayerHasWeapon(playerid, 18))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MOLOTOV]++;
- RemovePlayerWeapon(playerid, 18);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weapon_molotov = weapon_molotov + 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits a molotov in the gang stash.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) deposits a molotov in the %s (id: %i) gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHWEAPONS1);
- }
- }
- case DIALOG_GANGSTASHDRUGS1:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0: PlayerInfo[playerid][pSelected] = ITEM_WEED;
- case 1: PlayerInfo[playerid][pSelected] = ITEM_COCAINE;
- case 2: PlayerInfo[playerid][pSelected] = ITEM_METH;
- case 3: PlayerInfo[playerid][pSelected] = ITEM_PAINKILLERS;
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHDRUGS2);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- }
- }
- case DIALOG_GANGSTASHDRUGS2:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pGangRank] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 2+ in order to withdraw drugs.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- else if(listitem == 1)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHDRUGS1);
- }
- }
- case DIALOG_GANGSTASHAMMO1:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0: PlayerInfo[playerid][pSelected] = ITEM_HPAMMO;
- case 1: PlayerInfo[playerid][pSelected] = ITEM_POISONAMMO;
- case 2: PlayerInfo[playerid][pSelected] = ITEM_FMJAMMO;
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHAMMO2);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- }
- }
- case DIALOG_GANGSTASHAMMO2:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 5+ in order to withdraw ammo.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- else if(listitem == 1)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHAMMO1);
- }
- }
- case DIALOG_GANGWITHDRAW:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 3)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- switch(PlayerInfo[playerid][pSelected])
- {
- case ITEM_WEED:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gWeed])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pWeed] + amount > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeed] -= amount;
- PlayerInfo[playerid][pWeed] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weed = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gWeed], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some weed from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i grams of weed from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i grams of weed from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_COCAINE:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gCocaine])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pCocaine] + amount > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gCocaine] -= amount;
- PlayerInfo[playerid][pCocaine] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cocaine = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gCocaine], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some cocaine from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i grams of cocaine from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i grams of cocaine from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_METH:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gMeth])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pMeth] + amount > GetPlayerCapacity(playerid, CAPACITY_METH))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i meth. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMeth] -= amount;
- PlayerInfo[playerid][pMeth] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET meth = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMeth], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some meth from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i grams of meth from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i grams of meth from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_PAINKILLERS:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gPainkillers])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pPainkillers] + amount > GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i painkillers. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPainkillers], GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gPainkillers] -= amount;
- PlayerInfo[playerid][pPainkillers] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET painkillers = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPainkillers], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some painkillers from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i painkillers from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i painkillers from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_MATERIALS:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gMaterials])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pMaterials] + amount > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= amount;
- PlayerInfo[playerid][pMaterials] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some materials from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i materials from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i materials from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_CASH:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gCash])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gCash] -= amount;
- GivePlayerCash(playerid, amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gCash], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some cash from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn $%i from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws $%i from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_HPAMMO:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pHPAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_HPAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i HP ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo] -= amount;
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] + amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET hpammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some hollow point ammo from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i rounds of hollow point ammo from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i hollow point ammo from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_POISONAMMO:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pPoisonAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_POISONAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i poison ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo] -= amount;
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] + amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET poisonammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some poison tip ammo from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i rounds of poison tip ammo from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i poison tip ammo from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_FMJAMMO:
- {
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- if(PlayerInfo[playerid][pFMJAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_FMJAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i FMJ ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo] -= amount;
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] + amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET fmjammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s withdraws some full metal jacket ammo from the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn %i rounds of full metal jacket ammo from the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) withdraws %i FMJ ammo from the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- }
- }
- else
- {
- if(PlayerInfo[playerid][pSelected] == ITEM_MATERIALS) {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHMATS);
- } else if(PlayerInfo[playerid][pSelected] == ITEM_CASH) {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCASH);
- } else if(ITEM_HPAMMO <= PlayerInfo[playerid][pSelected] <= ITEM_FMJAMMO) {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHAMMO2);
- } else {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHDRUGS2);
- }
- }
- }
- case DIALOG_GANGDEPOSIT:
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- switch(PlayerInfo[playerid][pSelected])
- {
- case ITEM_WEED:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pWeed])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gWeed] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_WEED))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i grams of weed.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_WEED));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gWeed] += amount;
- PlayerInfo[playerid][pWeed] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weed = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gWeed], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some weed in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i grams of weed in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i grams of weed in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_COCAINE:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pCocaine])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gCocaine] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_COCAINE))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i grams of cocaine.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_COCAINE));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gCocaine] += amount;
- PlayerInfo[playerid][pCocaine] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cocaine = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gCocaine], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some cocaine in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i grams of cocaine in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i grams of cocaine in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_METH:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pMeth])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gMeth] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_METH))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i grams of meth.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_METH));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMeth] += amount;
- PlayerInfo[playerid][pMeth] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET meth = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMeth], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some meth in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i grams of meth in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i grams of meth in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_PAINKILLERS:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pPainkillers])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gPainkillers] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_PAINKILLERS))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i painkillers.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_PAINKILLERS));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gPainkillers] += amount;
- PlayerInfo[playerid][pPainkillers] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET painkillers = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPainkillers], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some painkillers in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i painkillers in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i painkillers in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_MATERIALS:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pMaterials])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_MATERIALS))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i materials.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_MATERIALS));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] += amount;
- PlayerInfo[playerid][pMaterials] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some materials in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i materials in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i materials in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_CASH:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pCash])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gCash] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_CASH))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than $%i.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_CASH));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gCash] += amount;
- GivePlayerCash(playerid, -amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gCash], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some cash in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited $%i in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposited $%i in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_HPAMMO:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pHPAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_HPAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i rounds of hollow point ammo.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_HPAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo] += amount;
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] - amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET hpammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gHPAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some hollow point ammo in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i rounds of hollow point ammo in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i hollow point ammo in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_POISONAMMO:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pPoisonAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_POISONAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i rounds of poison tip ammo.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_POISONAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo] += amount;
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] - amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET poisonammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPoisonAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some poison tip ammo in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i rounds of poison tip ammo in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i poison tip ammo in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- case ITEM_FMJAMMO:
- {
- if(amount < 1 || amount > PlayerInfo[playerid][pFMJAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo] + amount > GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_FMJAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "The gang stash can't contain more than %i rounds of FMJ ammo.", GetGangStashCapacity(PlayerInfo[playerid][pGang], STASH_CAPACITY_FMJAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo] += amount;
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] - amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET fmjammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gFMJAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s deposits some full metal jacket ammo in the gang stash.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited %i rounds of full metal jacket ammo in the gang stash.", amount);
- Log_Write("log_gang", "%s (uid: %i) deposits %i FMJ ammo in the gang stash.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- }
- }
- }
- else
- {
- if(PlayerInfo[playerid][pSelected] == ITEM_MATERIALS) {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHMATS);
- } else if(PlayerInfo[playerid][pSelected] == ITEM_CASH) {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCASH);
- } else if(ITEM_HPAMMO <= PlayerInfo[playerid][pSelected] <= ITEM_FMJAMMO) {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHAMMO2);
- } else {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHDRUGS2);
- }
- }
- }
- case DIALOG_GANGSTASHCRAFT:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 150)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 150;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_9MM]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_9mm = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_9MM], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a 9mm and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 150 materials from your gang stash to craft a 9mm.");
- Log_Write("log_gang", "%s (uid: %i) crafts a 9mm using 150 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 1:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 200)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 200;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SDPISTOL]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_sdpistol = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SDPISTOL], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a silenced pistol and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 200 materials from your gang stash to craft a silenced pistol.");
- Log_Write("log_gang", "%s (uid: %i) crafts a silenced pistol using 200 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 2:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 500;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SHOTGUN]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_shotgun = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SHOTGUN], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a shotgun and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 500 materials from your gang stash to craft a shotgun.");
- Log_Write("log_gang", "%s (uid: %i) crafts a shotgun using 500 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 3:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 500;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_UZI]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_uzi = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_UZI], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a Micro SMG and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 500 materials from your gang stash to craft a Micro SMG.");
- Log_Write("log_gang", "%s (uid: %i) crafts a Micro SMG using 500 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 4:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 500;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_TEC9]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_tec9 = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_TEC9], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a Tec-9 and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 500 materials from your gang stash to craft a Tec-9.");
- Log_Write("log_gang", "%s (uid: %i) crafts a Tec-9 using 500 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 5:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 1000;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MP5]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_mp5 = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MP5], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts an MP5 and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 1000 materials from your gang stash to craft an MP5.");
- Log_Write("log_gang", "%s (uid: %i) crafts an MP5 using 1000 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 6:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 1000;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_RIFLE]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_rifle = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_RIFLE], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a rifle and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 1000 materials from your gang stash to craft a rifle.");
- Log_Write("log_gang", "%s (uid: %i) crafts a rifle using 1000 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 7:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 2000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 2000;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_DEAGLE]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_deagle = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_DEAGLE], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a Desert Eagle and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 2000 materials from your gang stash to craft a Desert Eagle.");
- Log_Write("log_gang", "%s (uid: %i) crafts a Desert Eagle using 2000 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 8:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 5000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 5000;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MOLOTOV]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_molotov = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_MOLOTOV], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a molotov and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 5000 materials from your gang stash to craft a molotov.");
- Log_Write("log_gang", "%s (uid: %i) crafts a molotov using 5000 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 9:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 3000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 3000;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_AK47]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_ak47 = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_AK47], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts an AK-47 and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 3000 materials from your gang stash to craft an AK-47.");
- Log_Write("log_gang", "%s (uid: %i) crafts an AK-47 using 3000 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- case 10:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gMaterials] < 3000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't enough materials in the safe.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gMaterials] -= 3000;
- GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SAWNOFF]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET materials = %i, weapon_sawnoff = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gMaterials], GangInfo[PlayerInfo[playerid][pGang]][gWeapons][GANGWEAPON_SAWNOFF], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crafts a sawnoff shotgun and stores it to the gang stash.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You used 3000 materials from your gang stash to craft a sawnoff shotgun.");
- Log_Write("log_gang", "%s (uid: %i) crafts a sawnoff shotgun using 3000 materials from the gang stash.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID]);
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASHCRAFT);
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- }
- }
- case DIALOG_GANGSTASHMATS:
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 6+ in order to withdraw materials.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- else if(listitem == 1)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- }
- }
- case DIALOG_GANGSTASHCASH:
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least rank 6+ in order to withdraw cash.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGWITHDRAW);
- }
- else if(listitem == 1)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDEPOSIT);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- }
- }
- case DIALOG_GANGSKINS:
- {
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- if(response)
- {
- new index = PlayerInfo[playerid][pSkinSelected] + 1;
- if(index >= MAX_GANG_SKINS)
- {
- // When the player is shown the dialog for the first time, their skin isn't chnaged until they click >> Next.
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- PlayerInfo[playerid][pSkinSelected] = -1;
- }
- else
- {
- // Find the next skin in the array.
- for(new i = index; i < MAX_GANG_SKINS; i ++)
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gSkins][i] != 0)
- {
- SetPlayerSkin(playerid, GangInfo[PlayerInfo[playerid][pGang]][gSkins][i]);
- PlayerInfo[playerid][pSkinSelected] = i;
- break;
- }
- }
- if(index == PlayerInfo[playerid][pSkinSelected] + 1)
- {
- // Looks like there was no skin found. So, we'll go back to the very first valid skin in the skin array.
- for(new i = 0; i < MAX_GANG_SKINS; i ++)
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gSkins][i] != 0)
- {
- SetPlayerSkin(playerid, GangInfo[PlayerInfo[playerid][pGang]][gSkins][i]);
- PlayerInfo[playerid][pSkinSelected] = i;
- break;
- }
- }
- }
- }
- ShowPlayerDialog(playerid, DIALOG_GANGSKINS, DIALOG_STYLE_MSGBOX, "Skin selection", "Press {00AA00}>> Next{A9C4E4} to browse through available gang skins.", ">> Next", "Confirm");
- }
- else
- {
- PlayerInfo[playerid][pSkin] = GetPlayerSkin(playerid);
- PlayerInfo[playerid][pSkinSelected] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i WHERE uid = %i", PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s changes their clothes.", GetPlayerRPName(playerid));
- }
- }
- }
- case DIALOG_GANGFINDCAR:
- {
- if(response)
- {
- new count, garageid;
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if((VehicleInfo[i][vID] > 0 && VehicleInfo[i][vGang] == PlayerInfo[playerid][pGang]) && (count++ == listitem))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- if((garageid = GetVehicleGarage(i)) >= 0)
- {
- SetPlayerCheckpoint(playerid, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ], 3.0);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** This %s is located in a garage. Checkpoint marked at the garage's location.", GetVehicleName(i));
- }
- else
- {
- new
- Float:x,
- Float:y,
- Float:z;
- GetVehiclePos(i, x, y, z);
- SetPlayerCheckpoint(playerid, x, y, z, 3.0);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** This %s is located in %s. Checkpoint marked at the location.", GetVehicleName(i), GetZoneName(x, y, z));
- }
- return 1;
- }
- }
- }
- }
- case DIALOG_GANGPOINTSHOP:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 6)
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 50000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $50000 on hand to purchase this upgrade.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gDrugDealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang already has this upgrade.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugDealer] = 1;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugX] = 0.0;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugY] = 0.0;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugZ] = 0.0;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed] = 0;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth] = 0;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine] = 0;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][0] = 500;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][1] = 1000;
- GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][2] = 1500;
- GangInfo[PlayerInfo[playerid][pGang]][gPoints] -= 500;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugdealer = 1, drug_x = 0.0, drug_y = 0.0, drug_z = 0.0, drugweed = 0, drugcocaine = 0, drugmeth = 0, weed_price = 500, cocaine_price = 1000, meth_price = 1500, points = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPoints], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, -50000);
- SendClientMessage(playerid, COLOR_AQUA, "You have spent 500 GP & $50000 on an {00AA00}NPC drug dealer{33CCFF}. '/gang npc' to edit your drug dealer.");
- Log_Write("log_gang", "%s (uid: %i) spent 500 GP & $50000 on an NPC drug dealer for %s (id: %i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case 1:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 50000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $50000 on hand to purchase this upgrade.");
- }
- if(GangInfo[PlayerInfo[playerid][pGang]][gArmsDealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang already has this upgrade.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsDealer] = 1;
- GangInfo[PlayerInfo[playerid][pGang]][gArmsX] = 0.0;
- GangInfo[PlayerInfo[playerid][pGang]][gArmsY] = 0.0;
- GangInfo[PlayerInfo[playerid][pGang]][gArmsZ] = 0.0;
- GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials] = 0;
- GangInfo[PlayerInfo[playerid][pGang]][gPoints] -= 500;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsdealer = 1, arms_x = 0.0, arms_y = 0.0, arms_z = 0.0, armsmaterials = 0, points = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPoints], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, -50000);
- SendClientMessage(playerid, COLOR_AQUA, "You have spent 500 GP & $50000 on an {00AA00}NPC arms dealer{33CCFF}. '/gang npc' to edit your arms dealer.");
- Log_Write("log_gang", "%s (uid: %i) spent 500 GP & $50000 on an NPC arm dealer for %s (id: %i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case 2:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 400)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 75000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $75000 on hand to purchase this upgrade.");
- }
- GivePlayerCash(playerid, -75000);
- GiveGangPoints(PlayerInfo[playerid][pGang], -400);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, 'Gang point redemption', NOW(), 'Duel arena')", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have spent 400 GP & $75000 on a {00AA00}Duel arena{33CCFF}. /report for an admin to set it up.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a pending flag for a duel arena for their gang.", GetPlayerRPName(playerid), playerid);
- }
- case 3:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 4500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 100000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $100000 on hand to purchase this upgrade.");
- }
- GivePlayerCash(playerid, -100000);
- GiveGangPoints(PlayerInfo[playerid][pGang], -4500);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, 'Gang point redemption', NOW(), 'Gang mapping (up to 50 objects)')", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have spent 4500 GP & $100000 on {00AA00}Mapping{33CCFF}. /report for an admin to set it up.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a pending flag for mapping for their gang.", GetPlayerRPName(playerid), playerid);
- }
- case 4:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 5000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 100000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $100000 on hand to purchase this upgrade.");
- }
- GivePlayerCash(playerid, -100000);
- GiveGangPoints(PlayerInfo[playerid][pGang], -5000);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, 'Gang point redemption', NOW(), 'Custom gang interior')", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_AQUA, "You have spent 5000 GP & $100000 on {00AA00}Custom gang interior{33CCFF}. /report for an admin to set it up.");
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has a pending flag for a custom gang interior.", GetPlayerRPName(playerid), playerid);
- }
- case 5:
- {
- switch(GangInfo[PlayerInfo[playerid][pGang]][gLevel])
- {
- case 1:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 6000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 75000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $75000 on hand to purchase this upgrade.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gLevel] = 2;
- GangInfo[PlayerInfo[playerid][pGang]][gPoints] -= 6000;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET level = 2, points = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPoints], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, -75000);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have spent 6000 GP & $75000 for gang level 2/3. Your gang can now have %i members & %i gang vehicles.", GetGangMemberLimit(PlayerInfo[playerid][pGang]), GetGangVehicleLimit(PlayerInfo[playerid][pGang]));
- SendClientMessage(playerid, COLOR_GREEN, "Your capacity for items in your gang stash has also been increased. Access your gang stash to learn more!");
- Log_Write("log_gang", "%s (uid: %i) spent 6000 GP & $75000 for gang level 2/3 for %s (id: %i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- case 2:
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gPoints] < 12000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have enough points.");
- }
- if(PlayerInfo[playerid][pCash] < 100000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $100000 on hand to purchase this upgrade.");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gLevel] = 3;
- GangInfo[PlayerInfo[playerid][pGang]][gPoints] -= 12000;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET level = 3, points = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gPoints], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, -100000);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have spent 12000 GP & $100000 for gang level 3/3. Your gang can now have %i members & %i gang vehicles.", GetGangMemberLimit(PlayerInfo[playerid][pGang]), GetGangVehicleLimit(PlayerInfo[playerid][pGang]));
- SendClientMessage(playerid, COLOR_GREEN, "Your capacity for items in your gang stash has also been increased. Access your gang stash to learn more!");
- Log_Write("log_gang", "%s (uid: %i) spent 12000 GP & $100000 for gang level 3/3 for %s (id: %i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang]);
- }
- }
- }
- }
- }
- }
- case DIALOG_GANGARMSPRICES:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowPlayerDialog(playerid, DIALOG_GANGARMSPRICE, DIALOG_STYLE_INPUT, "Arms dealer | Prices", "Enter the new price for this item:", "Submit", "Back");
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSEDIT);
- }
- }
- case DIALOG_GANGARMSPRICE:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowPlayerDialog(playerid, DIALOG_GANGARMSPRICE, DIALOG_STYLE_INPUT, "Arms dealer | Prices", "Enter the new price for this item", "Submit", "Back");
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The amount can't be below $0.");
- return ShowPlayerDialog(playerid, DIALOG_GANGARMSPRICE, DIALOG_STYLE_INPUT, "Arms dealer | Prices", "Enter the new price for this item", "Submit", "Back");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsPrices][PlayerInfo[playerid][pSelected]] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsprice_%i = %i WHERE id = %i", PlayerInfo[playerid][pSelected] + 1, amount, PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- if(PlayerInfo[playerid][pSelected] == 0) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Micro Uzi{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Tec-9{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}MP5{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 3) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Desert Eagle{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 4) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Molotov{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 5) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}AK-47{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 6) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}M4{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 7) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Sniper{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 8) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Sawnoff Shotgun{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 9) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Hollow Point Ammo{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 10) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}Poison Tip Ammo{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 11) {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}FMJ Ammo{33CCFF} to $%i.", amount);
- }
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSPRICES);
- }
- case DIALOG_GANGARMSDEALER:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsX], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsY], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsZ]))
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSWEAPONS);
- }
- else if(listitem == 1)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSAMMO);
- }
- else if(listitem == 2)
- {
- if(PlayerInfo[playerid][pGang] != PlayerInfo[playerid][pDealerGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This arms dealer doesn't belong to your gang.");
- }
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be rank 6+ in order to edit.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSEDIT);
- }
- }
- }
- case DIALOG_GANGARMSWEAPONS:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsX], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsY], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsZ]))
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 500;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 28);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received a micro uzi.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased a {00AA00}micro uzi{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 1:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 500;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 32);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received a Tec-9.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased a {00AA00}Tec-9{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 2:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 1000;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 29);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received an MP5.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased an {00AA00}MP5{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 3:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 2000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 2000;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 24);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received a Desert Eagle.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased a {00AA00}Desert Eagle{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 4:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 5000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 5000;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 18);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received a molotov.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased a {00AA00}molotov{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 5:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 3000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 3000;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 30);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received an AK-47.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased an {00AA00}AK-47{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 6:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 4000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 4000;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 31);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received an M4.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased an {00AA00}M4{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 7:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 6500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 6500;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 34);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received a sniper.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased a {00AA00}sniper{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- case 8:
- {
- if(GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] < 3000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang's arms dealer doesn't have enough materials for this weapon.");
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this weapon.");
- }
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials] -= 3000;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsMaterials], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(playerid, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- GivePlayerWeaponEx(playerid, 26);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received a sawnoff shotgun.", GetPlayerRPName(playerid), GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased a {00AA00}sawnoff shotgun{33CCFF} for $%i.", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][listitem]);
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEALER);
- }
- }
- case DIALOG_GANGARMSAMMO:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsX], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsY], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsZ]))
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEALER);
- }
- }
- case DIALOG_GANGAMMOBUY:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsX], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsY], GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsZ]))
- {
- return 1;
- }
- if(response)
- {
- new amount;
- switch(PlayerInfo[playerid][pSelected])
- {
- case 0: // Hollow point ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsHPAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][9] * amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many rounds.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(PlayerInfo[playerid][pHPAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_HPAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i HP ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- new cost = GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][9] * amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsHPAmmo] -= amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += cost;
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] + amount);
- GivePlayerCash(playerid, -cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armshpammo = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsHPAmmo], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received %i rounds of hollow point ammo.", GetPlayerRPName(playerid), cost, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i rounds of {00AA00}hollow point ammo{33CCFF} for $%i.", amount, cost);
- }
- case 1: // Poison tip ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPoisonAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][10] * amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many rounds.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(PlayerInfo[playerid][pPoisonAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_POISONAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i poison ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- new cost = GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][10] * amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPoisonAmmo] -= amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += cost;
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] + amount);
- GivePlayerCash(playerid, -cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armspoisonammo = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPoisonAmmo], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received %i rounds of poison tip ammo.", GetPlayerRPName(playerid), cost, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i rounds of {00AA00}poison tip ammo{33CCFF} for $%i.", amount, cost);
- }
- case 2: // FMJ ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsFMJAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][11] * amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many rounds.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- if(PlayerInfo[playerid][pFMJAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_FMJAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i FMJ ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOBUY);
- }
- new cost = GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsPrices][11] * amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsFMJAmmo] -= amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += cost;
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] + amount);
- GivePlayerCash(playerid, -cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsfmjammo = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gArmsFMJAmmo], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the arms dealer and received %i rounds of FMJ ammo.", GetPlayerRPName(playerid), cost, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i rounds of {00AA00}FMJ ammo{33CCFF} for $%i.", amount, cost);
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSAMMO);
- }
- }
- case DIALOG_GANGARMSEDIT:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 6)
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0: ShowDialogToPlayer(playerid, DIALOG_GANGARMSPRICES);
- case 1: ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEPOSITMATS);
- case 2: ShowDialogToPlayer(playerid, DIALOG_GANGARMSWITHDRAWMATS);
- case 3: ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSITS);
- case 4: ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAWS);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEALER);
- }
- }
- case DIALOG_GANGARMSDEPOSITMATS:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 6)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEPOSITMATS);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pMaterials])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEPOSITMATS);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials] += amount;
- PlayerInfo[playerid][pMaterials] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i materials in your arms dealer NPC.", amount);
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSEDIT);
- }
- case DIALOG_GANGARMSWITHDRAWMATS:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 6)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGARMSWITHDRAWMATS);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGARMSWITHDRAWMATS);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials] -= amount;
- PlayerInfo[playerid][pMaterials] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsmaterials = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsMaterials], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i materials from your arms dealer NPC.", amount);
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSEDIT);
- }
- case DIALOG_GANGAMMODEPOSITS:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSEDIT);
- }
- }
- case DIALOG_GANGAMMOWITHDRAWS:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSEDIT);
- }
- }
- case DIALOG_GANGAMMODEPOSIT:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- switch(PlayerInfo[playerid][pSelected])
- {
- case 0: // HP ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pHPAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo] += amount;
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] - amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armshpammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i rounds of {00AA00}hollow point ammo{33CCFF} in your arms dealer NPC.", amount);
- }
- case 1: // Poison ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pPoisonAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo] += amount;
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] - amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armspoisonammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i rounds of {00AA00}poison tip ammo{33CCFF} in your arms dealer NPC.", amount);
- }
- case 2: // FMJ ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pFMJAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo] += amount;
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] - amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsfmjammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i rounds of {00AA00}FMJ ammo{33CCFF} in your arms dealer NPC.", amount);
- }
- }
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGAMMODEPOSITS);
- }
- case DIALOG_GANGAMMOWITHDRAW:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- switch(PlayerInfo[playerid][pSelected])
- {
- case 0: // HP ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- if(PlayerInfo[playerid][pHPAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_HPAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i HP ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo] -= amount;
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] + amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armshpammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsHPAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i rounds of {00AA00}hollow point ammo{33CCFF} from your arms dealer NPC.", amount);
- }
- case 1: // Poison ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- if(PlayerInfo[playerid][pPoisonAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_POISONAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i poison ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo] -= amount;
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] + amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armspoisonammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsPoisonAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i rounds of {00AA00}poison tip ammo{33CCFF} from your arms dealer NPC.", amount);
- }
- case 2: // FMJ ammo
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- if(PlayerInfo[playerid][pFMJAmmo] + amount > GetPlayerCapacity(playerid, CAPACITY_FMJAMMO))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i FMJ ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
- return ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo] -= amount;
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] + amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET armsfmjammo = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsFMJAmmo], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i rounds of {00AA00}FMJ ammo{33CCFF} from your arms dealer NPC.", amount);
- }
- }
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGAMMOWITHDRAWS);
- }
- case DIALOG_GANGDRUGDEALER:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugX], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugY], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugZ]))
- {
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGSHOP);
- }
- else if(listitem == 1)
- {
- if(PlayerInfo[playerid][pGang] != PlayerInfo[playerid][pDealerGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This drug dealer doesn't belong to your gang.");
- }
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be rank 6+ in order to edit.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGEDIT);
- }
- }
- }
- case DIALOG_GANGDRUGSHOP:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugX], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugY], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugZ]))
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEALER);
- }
- }
- case DIALOG_GANGDRUGBUY:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugX], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugY], GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugZ]))
- {
- return 1;
- }
- if(response)
- {
- new amount;
- switch(PlayerInfo[playerid][pSelected])
- {
- case 0: // Weed
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugWeed])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][0] * amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many grams.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(PlayerInfo[playerid][pWeed] + amount > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- new cost = GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][0] * amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugWeed] -= amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += cost;
- PlayerInfo[playerid][pWeed] += amount;
- GivePlayerCash(playerid, -cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugweed = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugWeed], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the drug dealer and received %i grams of weed.", GetPlayerRPName(playerid), cost, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i grams of {00AA00}weed{33CCFF} for $%i.", amount, cost);
- }
- case 1: // Cocaine
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugCocaine])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][1] * amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many grams.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(PlayerInfo[playerid][pCocaine] + amount > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- new cost = GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][1] * amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugCocaine] -= amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += cost;
- PlayerInfo[playerid][pCocaine] += amount;
- GivePlayerCash(playerid, -cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugcocaine = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugCocaine], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the drug dealer and received %i grams of cocaine.", GetPlayerRPName(playerid), cost, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i grams of {00AA00}cocaine{33CCFF} for $%i.", amount, cost);
- }
- case 2: // Meth
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugMeth])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(PlayerInfo[playerid][pCash] < GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][2] * amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many grams.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- if(PlayerInfo[playerid][pMeth] + amount > GetPlayerCapacity(playerid, CAPACITY_METH))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i meth. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGBUY);
- }
- new cost = GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugPrices][2] * amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugMeth] -= amount;
- GangInfo[PlayerInfo[playerid][pDealerGang]][gCash] += cost;
- PlayerInfo[playerid][pMeth] += amount;
- GivePlayerCash(playerid, -cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugmeth = %i, cash = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pDealerGang]][gDrugMeth], GangInfo[PlayerInfo[playerid][pDealerGang]][gCash], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paid $%i to the drug dealer and received %i grams of meth.", GetPlayerRPName(playerid), cost, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i grams of {00AA00}meth{33CCFF} for $%i.", amount, cost);
- }
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGSHOP);
- }
- }
- case DIALOG_GANGDRUGEDIT:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 6)
- {
- return 1;
- }
- if(response)
- {
- switch(listitem)
- {
- case 0: ShowDialogToPlayer(playerid, DIALOG_GANGDRUGPRICES);
- case 1: ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSITS);
- case 2: ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAWS);
- }
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEALER);
- }
- }
- case DIALOG_GANGDRUGPRICES:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowPlayerDialog(playerid, DIALOG_GANGDRUGPRICE, DIALOG_STYLE_INPUT, "Drug dealer | Prices", "Enter the new price for this drug:", "Submit", "Back");
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGEDIT);
- }
- }
- case DIALOG_GANGDRUGPRICE:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- if(sscanf(inputtext, "i", amount))
- {
- return ShowPlayerDialog(playerid, DIALOG_GANGDRUGPRICE, DIALOG_STYLE_INPUT, "Drug dealer | Prices", "Enter the new price for this drug:", "Submit", "Back");
- }
- if(amount < 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The amount can't be below $0.");
- return ShowPlayerDialog(playerid, DIALOG_GANGDRUGPRICE, DIALOG_STYLE_INPUT, "Drug dealer | Prices", "Enter the new price for this drug:", "Submit", "Back");
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugPrices][PlayerInfo[playerid][pSelected]] = amount;
- if(PlayerInfo[playerid][pSelected] == 0) {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET weed_price = %i WHERE id = %i", amount, PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}weed{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 1) {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET cocaine_price = %i WHERE id = %i", amount, PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}cocaine{33CCFF} to $%i.", amount);
- } else if(PlayerInfo[playerid][pSelected] == 2) {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET meth_price = %i WHERE id = %i", amount, PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the price of {00AA00}meth{33CCFF} to $%i.", amount);
- }
- mysql_tquery(connectionID, queryBuffer);
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGPRICES);
- }
- case DIALOG_GANGDRUGDEPOSITS:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGEDIT);
- }
- }
- case DIALOG_GANGDRUGWITHDRAWS:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- PlayerInfo[playerid][pSelected] = listitem;
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- else
- {
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGEDIT);
- }
- }
- case DIALOG_GANGDRUGDEPOSIT:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- switch(PlayerInfo[playerid][pSelected])
- {
- case 0: // Weed
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pWeed])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed] += amount;
- PlayerInfo[playerid][pWeed] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugweed = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i grams of {00AA00}weed{33CCFF} in your drug dealer NPC.", amount);
- }
- case 1: // Cocaine
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCocaine])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine] += amount;
- PlayerInfo[playerid][pCocaine] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugcocaine = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i grams of {00AA00}cocaine{33CCFF} in your drug dealer NPC.", amount);
- }
- case 2: // Meth
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pMeth])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSIT);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth] += amount;
- PlayerInfo[playerid][pMeth] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugmeth = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth], PlayerInfo[playerid][pDealerGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deposited %i grams of {00AA00}meth{33CCFF} in your drug dealer NPC.", amount);
- }
- }
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEPOSITS);
- }
- case DIALOG_GANGDRUGWITHDRAW:
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return 1;
- }
- if(response)
- {
- new amount;
- switch(PlayerInfo[playerid][pSelected])
- {
- case 0: // Weed
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- if(PlayerInfo[playerid][pWeed] + amount > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed] -= amount;
- PlayerInfo[playerid][pWeed] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugweed = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugWeed], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i grams of {00AA00}weed{33CCFF} from your drug dealer NPC.", amount);
- }
- case 1: // Cocaine
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- if(PlayerInfo[playerid][pCocaine] + amount > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine] -= amount;
- PlayerInfo[playerid][pCocaine] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugcocaine = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugCocaine], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i grams of {00AA00}cocaine{33CCFF} from your drug dealer NPC.", amount);
- }
- case 2: // Meth
- {
- if(sscanf(inputtext, "i", amount))
- {
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- if(amount < 1 || amount > GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth])
- {
- SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- if(PlayerInfo[playerid][pMeth] + amount > GetPlayerCapacity(playerid, CAPACITY_METH))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i meth. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH));
- return ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAW);
- }
- GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth] -= amount;
- PlayerInfo[playerid][pMeth] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drugmeth = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugMeth], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have withdrawn %i grams of {00AA00}meth{33CCFF} from your drug dealer NPC.", amount);
- }
- }
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGWITHDRAWS);
- }
- case DIALOG_FREENAMECHANGE:
- {
- if(response)
- {
- if(isnull(inputtext))
- {
- return ShowPlayerDialog(playerid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- }
- if(!(3 <= strlen(inputtext) <= 20))
- {
- SendClientMessage(playerid, COLOR_GREY, "Your name must contain 3 to 20 characters.");
- return ShowPlayerDialog(playerid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- }
- if(strfind(inputtext, "_") == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "The name needs to contain at least one underscore.");
- return ShowPlayerDialog(playerid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- }
- if(!IsValidName(inputtext))
- {
- SendClientMessage(playerid, COLOR_GREY, "That name is not supported by SA-MP.");
- return ShowPlayerDialog(playerid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- }
- PlayerInfo[playerid][pFreeNamechange] = 1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e'", inputtext);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerAttemptNameChange", "is", playerid, inputtext);
- }
- else
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has cancelled the free namechange dialog.", GetPlayerRPName(playerid), playerid);
- }
- }
- }
- return 1;
- }
- // ---------------------------------------
- /*CMD:makemeadmin(playerid, params[])
- {
- PlayerInfo[playerid][pAdmin] = 4;
- SendClientMessage(playerid, COLOR_AQUA, "You have received admin level 4 for testing.");
- return 1;
- }*/
- CMD:b(playerid, params[])
- {
- new
- string[144];
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /b [local OOC]");
- }
- format(string, sizeof(string), "%s: (( %s ))", GetPlayerRPName(playerid), params);
- SendProximityFadeMessage(playerid, 20.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
- return 1;
- }
- CMD:s(playerid, params[])
- {
- return cmd_shout(playerid, params);
- }
- CMD:shout(playerid, params[])
- {
- new
- string[144];
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(s)hout [text]");
- }
- SetPlayerBubbleText(playerid, 20.0, COLOR_WHITE, "shouts: %s!", params);
- format(string, sizeof(string), "%s shouts: %s!", GetPlayerRPName(playerid), params);
- SendProximityFadeMessage(playerid, 20.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
- return 1;
- }
- CMD:me(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /me [action]");
- }
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s %.*s...", GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** ...%s", params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s %s", GetPlayerRPName(playerid), params);
- }
- return 1;
- }
- CMD:do(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /do [describe]");
- }
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %.*s...", MAX_SPLIT_LENGTH, params);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** ...%s (( %s ))", params[MAX_SPLIT_LENGTH], GetPlayerRPName(playerid));
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s (( %s ))", params, GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:stats(playerid, params[])
- {
- DisplayStats(playerid);
- return 1;
- }
- CMD:l(playerid, params[])
- {
- return cmd_low(playerid, params);
- }
- CMD:low(playerid, params[])
- {
- new
- string[144];
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(l)ow [text]");
- }
- SetPlayerBubbleText(playerid, 5.0, COLOR_WHITE, "[low]: %s", params);
- format(string, sizeof(string), "%s says [low]: %s", GetPlayerRPName(playerid), params);
- SendProximityFadeMessage(playerid, 5.0, string, COLOR_GREY1, COLOR_GREY2, COLOR_GREY3, COLOR_GREY4, COLOR_GREY5);
- return 1;
- }
- CMD:w(playerid, params[])
- {
- return cmd_whisper(playerid, params);
- }
- CMD:whisper(playerid, params[])
- {
- new targetid, text[128];
- if(sscanf(params, "us[128]", targetid, text))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(w)hisper [playerid] [text]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, targetid, 5.0) && (!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be near that player to whisper them.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't whisper to yourself.");
- }
- SendClientMessageEx(targetid, COLOR_YELLOW, "** Whisper from %s: %s **", GetPlayerRPName(playerid), text);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** Whisper to %s: %s **", GetPlayerRPName(targetid), text);
-
- if(PlayerInfo[targetid][pWhisperFrom] == INVALID_PLAYER_ID)
- {
- SendClientMessage(targetid, COLOR_WHITE, "** You can use '/rw [message]' to reply to this whisper.");
- }
- PlayerInfo[targetid][pWhisperFrom] = playerid;
- return 1;
- }
- CMD:rw(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rw [text]");
- }
- if(PlayerInfo[playerid][pWhisperFrom] == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't been whispered by anyone since you joined the server.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, PlayerInfo[playerid][pWhisperFrom], 5.0) && (!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be near that player to whisper them.");
- }
-
- SendClientMessageEx(PlayerInfo[playerid][pWhisperFrom], COLOR_YELLOW, "** Whisper from %s: %s **", GetPlayerRPName(playerid), params);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** Whisper to %s: %s **", GetPlayerRPName(PlayerInfo[playerid][pWhisperFrom]), params);
- return 1;
- }
- CMD:engine(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), Float:health;
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be driving a vehicle to use this command.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no engine which can be turned on.");
- }
- if(vehicleFuel[vehicleid] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no fuel left in this vehicle.");
- }
- if(!GetVehicleParams(vehicleid, VEHICLE_ENGINE))
- {
- GetVehicleHealth(vehicleid, health);
- if(health <= 300.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The engine is totalled and cannot be started until it's repaired.");
- }
- SetVehicleParams(vehicleid, VEHICLE_ENGINE, true);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns on the engine of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- else
- {
- SetVehicleParams(vehicleid, VEHICLE_ENGINE, false);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off the engine of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- return 1;
- }
- CMD:lights(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be driving a vehicle to use this command.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no lights which can be turned on.");
- }
- if(!GetVehicleParams(vehicleid, VEHICLE_LIGHTS))
- {
- SetVehicleParams(vehicleid, VEHICLE_LIGHTS, true);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns on the headlights of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- else
- {
- SetVehicleParams(vehicleid, VEHICLE_LIGHTS, false);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off the headlights of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- return 1;
- }
- CMD:hood(playerid, params[])
- {
- new vehicleid = GetNearbyVehicle(playerid);
- if(vehicleid == INVALID_VEHICLE_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any vehicle.");
- }
- if(!VehicleHasWindows(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no hood.");
- }
- if(!GetVehicleParams(vehicleid, VEHICLE_BONNET))
- {
- SetVehicleParams(vehicleid, VEHICLE_BONNET, true);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s opens the hood of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- else
- {
- SetVehicleParams(vehicleid, VEHICLE_BONNET, false);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s closes the hood of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- return 1;
- }
- CMD:trunk(playerid, params[])
- {
- new vehicleid = GetNearbyVehicle(playerid);
- if(vehicleid == INVALID_VEHICLE_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any vehicle.");
- }
- if(!GetVehicleParams(vehicleid, VEHICLE_BOOT))
- {
- SetVehicleParams(vehicleid, VEHICLE_BOOT, true);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s opens the boot of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- else
- {
- SetVehicleParams(vehicleid, VEHICLE_BOOT, false);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s closes the boot of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- return 1;
- }
- CMD:resetupgrades(playerid, params[])
- {
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /resetupgrades [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command resets all of your upgrades and give you back %i upgrade points.", PlayerInfo[playerid][pLevel] * 2);
- return 1;
- }
- if(PlayerInfo[playerid][pLevel] == 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't level 2+.");
- }
- if(PlayerInfo[playerid][pInventoryUpgrade] == 0 && PlayerInfo[playerid][pTraderUpgrade] == 0 && PlayerInfo[playerid][pAddictUpgrade] == 0 && PlayerInfo[playerid][pAssetUpgrade] == 0 && PlayerInfo[playerid][pSpawnHealth] == 50.0 && PlayerInfo[playerid][pSpawnArmor] == 0.0 && PlayerInfo[playerid][pUpgradePoints] == (PlayerInfo[playerid][pLevel] - 1) * 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't spent any upgrade points on upgrades. Therefore you can't reset them.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_HOUSES) > 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You own %i/%i houses at the moment. Please sell %i of them before using this command.", GetPlayerAssetCount(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_HOUSES) - GetPlayerAssetCount(playerid, LIMIT_HOUSES));
- }
- if(GetPlayerAssetCount(playerid, LIMIT_BUSINESSES) > 1)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You own %i/%i businesses at the moment. Please sell %i of them before using this command.", GetPlayerAssetCount(playerid, LIMIT_BUSINESSES), GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES), GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES) - GetPlayerAssetCount(playerid, LIMIT_BUSINESSES));
- }
- if(GetPlayerAssetCount(playerid, LIMIT_GARAGES) > 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You own %i/%i garages at the moment. Please sell %i of them before using this command.", GetPlayerAssetCount(playerid, LIMIT_GARAGES), GetPlayerAssetLimit(playerid, LIMIT_GARAGES), GetPlayerAssetLimit(playerid, LIMIT_GARAGES) - GetPlayerAssetCount(playerid, LIMIT_GARAGES));
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM vehicles WHERE ownerid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerAttemptResetUpgrades", "i", playerid);
- return 1;
- }
- CMD:myupgrades(playerid, params[])
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "|____ %s's upgrades (%i points available) ____|", GetPlayerRPName(playerid), PlayerInfo[playerid][pUpgradePoints]);
- SendClientMessageEx(playerid, COLOR_YELLOW, "[Shealth: %.0f/100]{C8C8C8} You spawn with %.1f health at the hospital after death.", PlayerInfo[playerid][pSpawnHealth], PlayerInfo[playerid][pSpawnHealth]);
- SendClientMessageEx(playerid, COLOR_YELLOW, "[Sarmor: %.0f/100]{C8C8C8} You spawn with %.1f armor at the hospital after death.", PlayerInfo[playerid][pSpawnArmor], PlayerInfo[playerid][pSpawnArmor]);
- SendClientMessageEx(playerid, COLOR_YELLOW, "[Inventory: %i/5]{C8C8C8} This upgrade increases the capacity for your items. [/inv]", PlayerInfo[playerid][pInventoryUpgrade]);
- SendClientMessageEx(playerid, COLOR_YELLOW, "[Trader: %i/3]{C8C8C8} You save an extra %i percent on all items purchased in businesses.", PlayerInfo[playerid][pTraderUpgrade], PlayerInfo[playerid][pTraderUpgrade] * 5);
- SendClientMessageEx(playerid, COLOR_YELLOW, "[Addict: %i/3]{C8C8C8} You gain an extra %.1f health and armor when using drugs.", PlayerInfo[playerid][pAddictUpgrade], PlayerInfo[playerid][pAddictUpgrade] * 5.0);
- SendClientMessageEx(playerid, COLOR_YELLOW, "[Asset: %i/4]{C8C8C8} You can own %i houses, %i businesses, %i garages & %i vehicles.", PlayerInfo[playerid][pAssetUpgrade], GetPlayerAssetLimit(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES), GetPlayerAssetLimit(playerid, LIMIT_GARAGES), GetPlayerAssetLimit(playerid, LIMIT_VEHICLES));
- return 1;
- }
- CMD:buylevel(playerid, params[])
- {
- new
- exp = (PlayerInfo[playerid][pLevel] * 4),
- cost = (PlayerInfo[playerid][pLevel] + 1) * 5000,
- string[64];
- if(PlayerInfo[playerid][pEXP] < exp)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need %i more respect points in order to level up.", exp - PlayerInfo[playerid][pEXP]);
- }
- if(PlayerInfo[playerid][pCash] < cost)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to have at least $%i on hand to buy your next level.", cost);
- }
- PlayerInfo[playerid][pEXP] -= exp;
- PlayerInfo[playerid][pCash] -= cost;
- PlayerInfo[playerid][pLevel]++;
- PlayerInfo[playerid][pUpgradePoints] += 2;
- if(PlayerInfo[playerid][pLevel] == 3 && PlayerInfo[playerid][pReferralUID] > 0)
- {
- ReferralCheck(playerid);
- }
- format(string, sizeof(string), "~g~Level Up~n~~w~You are now level %i", PlayerInfo[playerid][pLevel]);
- GameTextForPlayer(playerid, string, 5000, 1);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET exp = exp - %i, cash = cash - %i, level = level + 1, upgradepoints = upgradepoints + 2 WHERE uid = %i", exp, cost, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have moved up to level %i. This costed you $%i.", PlayerInfo[playerid][pLevel], cost);
- SendClientMessageEx(playerid, COLOR_GREEN, "You now have %i upgrade points. Use /upgrade to learn more.", PlayerInfo[playerid][pUpgradePoints]);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- return 1;
- }
- CMD:help(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/stats, /buylevel, /b, /g, /me, /do, /(o)oc, /(s)hout, /(l)ow, /(w)hisper, /(n)ewbie.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/pay, /id, /time, /report, /upgrade, /charity, /stopmusic.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/dice, /flipcoin, /accent, /helpers, /helpme, /accept, /activity, /skill, /quitjob.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/give, /sell, /toggle, /cancelcp, /afk, /(ad)vertise, /buy, /refuel, /call, /sms.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/toys, /locate, /frisk, /contract, /number, /boombox, /switchspeedo, /stuck.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/shakehand, /dropgun, /grabgun, /usecookies, /usecigar, /usedrug, /showid.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/(inv)entory, /guninv, /loadammo, /drop, /eject, /dicebet, /gangs, /factions.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/calculate, /serverstats, /turfs, /lands, /changename, /watch, /gps, /fixvw.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/resetupgrades, /myupgrades, /pm, /rpm, /attach, /disattach , /tune.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/househelp, /garagehelp, /bizhelp, /jobhelp, /animhelp, /vehiclehelp, /viphelp.");
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "[FC:RP Commands] {C8C8C8}/bankhelp, /factionhelp, /ganghelp, /landhelp, /helperhelp.");
- if(PlayerInfo[playerid][pFactionMod])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "[Faction Mod]{C8C8C8} /createfaction, /editfaction, /setfaction, /purgefaction.");
- }
- if(PlayerInfo[playerid][pGangMod])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "[Gang Mod]{C8C8C8} /creategang, /editgang, /removegang, /gangstrike, /setgang.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "[Gang Mod]{C8C8C8} /createpoint, /editpoint, /removepoint.");
- }
- if(PlayerInfo[playerid][pBanAppealer])
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "[Ban Appealer]{C8C8C8} /banip, /baninfo, /banhistory, unbanip, /unban.");
- }
- if(PlayerInfo[playerid][pAdmin] > 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "[Admin Commands]{C8C8C8} /a, /adminhelp.");
- }
- return 1;
- }
- CMD:jobhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == JOB_NONE && PlayerInfo[playerid][pSecondJob] == JOB_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no job and therefore no job commands to view.");
- }
- switch(PlayerInfo[playerid][pJob])
- {
- //case JOB_NONE: SendClientMessage(playerid, COLOR_GREY, "You have no job and therefore no job commands to view.");
- case JOB_PIZZAMAN: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /getpizza, /cancelcp.");
- case JOB_COURIER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /load, /deliver, /cancelcp.");
- case JOB_FISHERMAN: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /fish, /myfish, /sellfish.");
- case JOB_BODYGUARD: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /sellvest, /frisk.");
- case JOB_WEAPONDEALER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /getmats, /sellgun.");
- case JOB_MECHANIC: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /buycomps, /repair, /refill, /nos, /hyd, /takecall.");
- case JOB_MINER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /mine, /cancelcp.");
- case JOB_SWEEPER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /startsweeping, /stopsweeping.");
- case JOB_TAXIDRIVER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /setfare, /takecall.");
- case JOB_DRUGDEALER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /buydrug, /planthelp, /cookmeth, /smuggledrugs.");
- case JOB_LAWYER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /defend, /free, /wanted.");
- case JOB_DETECTIVE: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /find.");
- }
-
- if(PlayerInfo[playerid][pSecondJob] != JOB_NONE)
- {
- switch(PlayerInfo[playerid][pSecondJob])
- {
- //case JOB_NONE: SendClientMessage(playerid, COLOR_GREY, "You have no job and therefore no job commands to view.");
- case JOB_PIZZAMAN: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /getpizza.");
- case JOB_COURIER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /load, /deliver.");
- case JOB_FISHERMAN: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /fish, /myfish, /sellfish.");
- case JOB_BODYGUARD: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /sellvest, /frisk.");
- case JOB_WEAPONDEALER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /getmats, /sellgun.");
- case JOB_MECHANIC: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /buycomps, /repair, /refill, /nos, /hyd.");
- case JOB_MINER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /mine.");
- case JOB_SWEEPER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /startsweeping, /stopsweeping.");
- case JOB_TAXIDRIVER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /setfare.");
- case JOB_DRUGDEALER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /buydrug, /planthelp, /cookmeth, /smuggledrugs.");
- case JOB_LAWYER: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /defend, /free, /wanted.");
- case JOB_DETECTIVE: SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Job Commands] /find.");
- }
- }
-
- return 1;
- }
- CMD:vehiclehelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Vehicle Commands] /engine, /lights, /hood, /trunk, /buyvehicle, /vst, /park, /lock.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Vehicle Commands] /vstash, /neon, /unmod, /colorcar, /paintcar, /upgradevehicle, /sellcar, /sellmycar.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Vehicle Commands] /findcar, /givekeys, /takekeys, /setradio, /paytickets, /carinfo, /gascan.");
- return 1;
- }
- CMD:bankhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Bank Commands] /withdraw, /deposit, /wiretransfer, /balance, /robbank, /robinvite, /bombvault.");
- return 1;
- }
- CMD:viphelp(playerid, params[])
- {
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- SendClientMessage(playerid, COLOR_VIP, "** [VIP Commands] /(v)ip, /vipinfo, /viptag, /vipcolor, /vipinvite, /vipnumber.");
- if(PlayerInfo[playerid][pVIPPackage] == 3)
- {
- SendClientMessage(playerid, COLOR_VIP, "** [VIP Commands] /repair, /nos, /hyd.");
- }
- return 1;
- }
- CMD:members(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] != -1)
- {
- cmd_gmembers(playerid, params);
- }
- if(PlayerInfo[playerid][pFaction] != -1)
- {
- cmd_fmembers(playerid, params);
- }
- return 1;
- }
- CMD:fmembers(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not apart of any faction.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|____ Faction Members Online ____|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s %s", i, FactionRanks[PlayerInfo[i][pFaction]][PlayerInfo[i][pFactionRank]], GetPlayerRPName(i));
- }
- }
- return 1;
- }
- CMD:factionhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not apart of any faction.");
- }
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /fc, /d, /(r)adio, /div, /faction, /division, /locker, /showbadge, /(m)egaphone.");
- switch(FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- case FACTION_POLICE, FACTION_FEDERAL:
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /gate, /door, /cell, /tazer, /cuff, /uncuff, /drag, /detain, /charge, /arrest.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /wanted, /frisk, /take, /ticket, /gov, /ram, /deploy, /undeploy, /backup.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /mdc, /clearwanted, /siren, /badge, /vticket, /vfrisk, /vtake, /seizeplant.");
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fType] == FACTION_FEDERAL)
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /listcallers, /trackcall, /passport.");
- else
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /listcallers, /trackcall.");
- }
- case FACTION_MEDIC:
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /firstaid, /stretcher, /deliverpatient, /injuries, /mrevive, /deploy, /undeploy.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /badge, /gov, /backup, /listcallers, /trackcall.");
- }
- case FACTION_NEWS:
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /news, /live, /endlive, /liveban , /livebroadcast (/lb) , /faction.");
- }
- case FACTION_GOVERNMENT:
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /gov, /settax, /factionpay, /tazer, /cuff, /uncuff, /detain, /taxdeposit, /taxwithdraw.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /backup, /badge.");
- }
- case FACTION_HITMAN:
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Faction Commands] /contracts, /takehit, /profile, /passport, /plantbomb, /defusebomb, /detonate.");
- }
- }
- return 1;
- }
- CMD:ganghelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a gang member.");
- }
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Gang Commands] /f, /gang, /gstash, /bandana, /clothes, /capture, /claim, /reclaim, /turfinfo, /points.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Gang Commands] /gbuyvehicle, /gpark, /gfindcar, /grespawncars, /gsellcar, /lock , [NEW] /gbackup.");
- return 1;
- }
- CMD:landhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Land Commands] /buyland, /lock, /door, /landinfo, /land, /sellmyland, /sellland.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Land Commands] '/toggle lands' to show or hide lands on your mini-map.");
- return 1;
- }
- CMD:planthelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Plant Commands] /plantweed, /plantinfo, /pickplant, /seizeplant.");
- return 1;
- }
- CMD:g(playerid, params[])
- {
- new string[64];
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /g [global chat]");
- }
- if(!enabledGlobal && PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The global channel is disabled at the moment.");
- }
- if(PlayerInfo[playerid][pGlobalMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are muted from speaking in this channel.");
- }
- if(PlayerInfo[playerid][pToggleGlobal])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the global chat as you have it toggled.");
- }
- if(gettime() - PlayerInfo[playerid][pLastGlobal] < 3)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only speak in this channel every 3 seconds. Please wait %i more seconds.", 3 - (gettime() - PlayerInfo[playerid][pLastGlobal]));
- }
- if(PlayerInfo[playerid][pAdmin] > 1) {
- format(string, sizeof(string), "%s", GetAdminRank(playerid));
- } else if(PlayerInfo[playerid][pHelper] > 0) {
- format(string, sizeof(string), "%s", GetHelperRank(playerid));
- } else if(PlayerInfo[playerid][pVIPPackage] > 0) {
- format(string, sizeof(string), "{A028AD}%s VIP{FFA500}", GetVIPRank(PlayerInfo[playerid][pVIPPackage]));
- } else if(PlayerInfo[playerid][pLevel] >= 2) {
- format(string, sizeof(string), "Level %i Player", PlayerInfo[playerid][pLevel]);
- } else {
- string = "Level 1 Newbie";
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleGlobal])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_GLOBAL, "(( %s %s: %.*s...))", string, GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_GLOBAL, "(( %s %s: ...%s ))", string, GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_GLOBAL, "(( %s %s: %s ))", string, GetPlayerRPName(playerid), params);
- }
- }
- }
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pLastGlobal] = gettime();
- }
- return 1;
- }
- CMD:ooc(playerid, params[])
- {
- new string[64];
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(o)oc [global OOC]");
- }
- if(!enabledOOC && PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The global OOC channel is disabled at the moment.");
- }
- if(PlayerInfo[playerid][pToggleOOC])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the OOC chat as you have it toggled.");
- }
- if(PlayerInfo[playerid][pAdmin] > 1) {
- format(string, sizeof(string), "%s %s", GetAdminRank(playerid), GetPlayerRPName(playerid));
- } else if(PlayerInfo[playerid][pHelper] > 0) {
- format(string, sizeof(string), "%s %s", GetHelperRank(playerid), GetPlayerRPName(playerid));
- } else if(PlayerInfo[playerid][pVIPPackage] > 0) {
- format(string, sizeof(string), "{A028AD}%s VIP{FFFFFF} %s", GetVIPRank(PlayerInfo[playerid][pVIPPackage]), GetPlayerRPName(playerid));
- } else {
- format(string, sizeof(string), "%s", GetPlayerRPName(playerid));
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleOOC])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_WHITE, "(( %s: %.*s... ))", string, MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_WHITE, "(( %s: ...%s ))", string, params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_WHITE, "(( %s: %s ))", string, params);
- }
- }
- }
- return 1;
- }
- CMD:newb(playerid, params[])
- {
- return cmd_newbie(playerid, params);
- }
- CMD:newbie(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(n)ewbie [newbie chat]");
- }
- if(!enabledNewbie && PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The newbie channel is disabled at the moment.");
- }
- if(PlayerInfo[playerid][pNewbieMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are muted from speaking in this channel. /report for an unmute.");
- }
- if(gettime() - PlayerInfo[playerid][pLastNewbie] < 60)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only speak in this channel every 60 seconds. Please wait %i more seconds.", 60 - (gettime() - PlayerInfo[playerid][pLastNewbie]));
- }
- if(PlayerInfo[playerid][pToggleNewbie])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the newbie chat as you have it toggled.");
- }
- SendNewbieChatMessage(playerid, params);
- return 1;
- }
- CMD:id(playerid, params[])
- {
- new count, color, name[MAX_PLAYER_NAME], targetid = strval(params);
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /id [playerid/partial name]");
- }
- if(IsNumeric(params))
- {
- if(IsPlayerConnected(targetid))
- {
- if((color = GetPlayerColor(targetid)) == 0xFFFFFF00) {
- color = 0xAAAAAAFF;
- }
-
- GetPlayerName(targetid, name, sizeof(name));
- SendClientMessageEx(playerid, COLOR_GREY3, "(ID: %i) {%06x}%s{AAAAAA} - (Level: %i) - (Ping: %i)", targetid, color >>> 8, name, PlayerInfo[targetid][pLevel], GetPlayerPing(targetid));
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- }
- else if(strlen(params) < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "Please input at least two characters to search.");
- }
- else
- {
- foreach(new i : Player)
- {
- GetPlayerName(i, name, sizeof(name));
- if(strfind(name, params, true) != -1)
- {
- if((color = GetPlayerColor(i)) == 0xFFFFFF00) {
- color = 0xAAAAAAFF;
- }
-
- SendClientMessageEx(playerid, COLOR_GREY3, "(ID: %i) {%06x}%s{AAAAAA} - (Level: %i) - (Ping: %i)", i, color >>> 8, name, PlayerInfo[i][pLevel], GetPlayerPing(i));
- count++;
- }
- }
- if(!count)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "No results found for \"%s\". Please narrow your search.", params);
- }
- }
- return 1;
- }
- CMD:pay(playerid, params[])
- {
- new targetid, amount;
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /pay [playerid] [amount]");
- }
- if(gettime() - PlayerInfo[playerid][pLastPay] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Please wait three seconds between each transaction.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't pay yourself.");
- }
- if(amount > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that much.");
- }
- if(amount > 1000 && PlayerInfo[playerid][pLevel] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can only pay up to $1,000 at a time as a level 1.");
- }
- if(amount > 100000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are only allowed to pay up to $100,000 at a time.");
- }
- PlayerInfo[playerid][pLastPay] = gettime();
- GivePlayerCash(playerid, -amount);
- GivePlayerCash(targetid, amount);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerPlaySound(targetid, 1052, 0.0, 0.0, 0.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes out $%i and gives it to %s.", GetPlayerRPName(playerid), amount, GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) (IP: %s) gives $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid), amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], GetPlayerIP(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "You have been given {00AA00}$%i{33CCFF} by %s.", amount, GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given {FF6347}$%i{33CCFF} to %s.", amount, GetPlayerRPName(targetid));
- if(!strcmp(GetPlayerIP(playerid), GetPlayerIP(targetid)))
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s (IP: %s) has given $%i to %s (IP: %s).", GetPlayerRPName(playerid), GetPlayerIP(playerid), amount, GetPlayerRPName(targetid), GetPlayerIP(targetid));
- }
- return 1;
- }
- CMD:give(playerid, params[])
- {
- new targetid, option[14], param[32], amount;
- if(sscanf(params, "us[14]S()[32]", targetid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Weapon, Materials, Weed, Cocaine, Meth, Painkillers, Cigars, Spraycans");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: GasCan, Seeds, Ephedrine, HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(!strcmp(option, "weapon", true))
- {
- new weaponid = GetScriptWeapon(playerid);
- if(!weaponid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be holding the weapon you're willing to give away.");
- }
- if(PlayerInfo[targetid][pWeapons][weaponSlotIDs[weaponid]] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player already has a weapon in that slot.");
- }
- if(PlayerInfo[targetid][pHours] < 2 || PlayerInfo[targetid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is either weapon restricted or played less than two playing hours.");
- }
- if(PlayerInfo[playerid][pFaction] >= 0 && PlayerInfo[targetid][pFaction] != PlayerInfo[playerid][pFaction])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can only give away weapons to your own faction members.");
- }
- GivePlayerWeaponEx(targetid, weaponid);
- RemovePlayerWeapon(playerid, weaponid);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you their %s.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %s your %s.", GetPlayerRPName(targetid), GetWeaponNameEx(weaponid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s passes over their %s to %s.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives their %s to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetWeaponNameEx(weaponid), GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [materials] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pMaterials] + amount > GetPlayerCapacity(targetid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more materials.");
- }
- PlayerInfo[playerid][pMaterials] -= amount;
- PlayerInfo[targetid][pMaterials] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[targetid][pMaterials], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i materials.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i materials to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some materials to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i materials to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [weed] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pWeed] + amount > GetPlayerCapacity(targetid, CAPACITY_WEED))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more weed.");
- }
- PlayerInfo[playerid][pWeed] -= amount;
- PlayerInfo[targetid][pWeed] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[targetid][pWeed], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i grams of weed.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i grams of weed to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some weed to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i grams of weed to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [cocaine] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pCocaine] + amount > GetPlayerCapacity(targetid, CAPACITY_COCAINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more cocaine.");
- }
- PlayerInfo[playerid][pCocaine] -= amount;
- PlayerInfo[targetid][pCocaine] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[targetid][pCocaine], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i grams of cocaine.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i grams of cocaine to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some cocaine to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i grams of cocaine to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [meth] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pMeth] + amount > GetPlayerCapacity(targetid, CAPACITY_METH))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more meth.");
- }
- PlayerInfo[playerid][pMeth] -= amount;
- PlayerInfo[targetid][pMeth] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[targetid][pMeth], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i grams of meth.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i grams of meth to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some meth to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i grams of meth to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [painkillers] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pPainkillers] + amount > GetPlayerCapacity(targetid, CAPACITY_PAINKILLERS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more painkillers.");
- }
- PlayerInfo[playerid][pPainkillers] -= amount;
- PlayerInfo[targetid][pPainkillers] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[targetid][pPainkillers], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i painkillers.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i painkillers to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some painkillers to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i painkillers to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "cigars", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [cigars] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCigars])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- PlayerInfo[playerid][pCigars] -= amount;
- PlayerInfo[targetid][pCigars] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cigars = %i WHERE uid = %i", PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cigars = %i WHERE uid = %i", PlayerInfo[targetid][pCigars], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i cigars.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i cigars to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some cigars to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i cigars to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "spraycans", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [spraycans] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pSpraycans])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- PlayerInfo[playerid][pSpraycans] -= amount;
- PlayerInfo[targetid][pSpraycans] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spraycans = %i WHERE uid = %i", PlayerInfo[playerid][pSpraycans], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spraycans = %i WHERE uid = %i", PlayerInfo[targetid][pSpraycans], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i spraycans.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i spraycans to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some spraycans to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i spraycans to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "gascan", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [gascan] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pGasCan])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- PlayerInfo[playerid][pGasCan] -= amount;
- PlayerInfo[targetid][pGasCan] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gascan = %i WHERE uid = %i", PlayerInfo[playerid][pGasCan], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gascan = %i WHERE uid = %i", PlayerInfo[targetid][pGasCan], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i liters of gasoline.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i liters of gasoline to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some gasoline to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i liters of gasoline to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "seeds", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [seeds] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pSeeds])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pSeeds] + amount > GetPlayerCapacity(targetid, CAPACITY_SEEDS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more seeds.");
- }
- PlayerInfo[playerid][pSeeds] -= amount;
- PlayerInfo[targetid][pSeeds] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i WHERE uid = %i", PlayerInfo[playerid][pSeeds], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i WHERE uid = %i", PlayerInfo[targetid][pSeeds], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i seeds.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i seeds to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some seeds to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i seeds to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "ephedrine", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [ephedrine] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pEphedrine])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pEphedrine] + amount > GetPlayerCapacity(targetid, CAPACITY_EPHEDRINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more ephedrine.");
- }
- PlayerInfo[playerid][pEphedrine] -= amount;
- PlayerInfo[targetid][pEphedrine] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i WHERE uid = %i", PlayerInfo[playerid][pEphedrine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i WHERE uid = %i", PlayerInfo[targetid][pEphedrine], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i grams of ephedrine.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i grams of ephedrine to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some ephedrine to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i grams of ephedrine to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [hpammo] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pHPAmmo] + amount > GetPlayerCapacity(targetid, CAPACITY_HPAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more HP ammo.");
- }
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] - amount);
- SetWeaponAmmo(targetid, AMMO_HP, PlayerInfo[targetid][pHPAmmo] + amount);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i rounds of hollow point ammo.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i rounds of hollow point ammo to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some hollow point ammo to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i rounds of hollow point ammo to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [poisonammo] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pPoisonAmmo] + amount > GetPlayerCapacity(targetid, CAPACITY_POISONAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more poison tip ammo.");
- }
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] - amount);
- SetWeaponAmmo(targetid, AMMO_POISON, PlayerInfo[targetid][pPoisonAmmo] + amount);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i rounds of poison tip ammo.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i rounds of poison tip ammo to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some poison tip ammo to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i rounds of poison tip ammo to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /give [playerid] [fmjammo] [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "Insufficient amount.");
- }
- if(PlayerInfo[targetid][pFMJAmmo] + amount > GetPlayerCapacity(targetid, CAPACITY_FMJAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "That player can't carry that much more FMJ ammo.");
- }
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] - amount);
- SetWeaponAmmo(targetid, AMMO_FMJ, PlayerInfo[targetid][pFMJAmmo] + amount);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you %i rounds of full metal jacket ammo.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %i rounds of full metal jacket ammo to %s.", amount, GetPlayerRPName(targetid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives some full metal jacket ammo to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_give", "%s (uid: %i) gives %i rounds of full metal jacket ammo to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- return 1;
- }
- CMD:sell(playerid, params[])
- {
- new targetid, option[14], param[32], amount, price;
- if(sscanf(params, "us[14]S()[32]", targetid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Weapon, Materials, Weed, Cocaine, Meth, Painkillers, Seeds, Ephedrine");
- return 1;
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(gettime() - PlayerInfo[playerid][pLastSell] < 10)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only use this command every 10 seconds. Please wait %i more seconds.", 10 - (gettime() - PlayerInfo[playerid][pLastSell]));
- }
- if(!strcmp(option, "weapon", true))
- {
- new weaponid;
- if(sscanf(param, "ii", weaponid, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [weapon] [weaponid] [price] (/guninv for weapon IDs)");
- }
- if(!(1 <= weaponid <= 46) || PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] != weaponid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon. /guninv for a list of your weapons.");
- }
- if(PlayerInfo[targetid][pWeapons][weaponSlotIDs[weaponid]] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player already has a weapon in that slot.");
- }
- if(PlayerInfo[targetid][pHours] < 2 || PlayerInfo[targetid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is either weapon restricted or played less than two playing hours.");
- }
- if(PlayerInfo[playerid][pFaction] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell weapons as a faction member.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_WEAPON;
- PlayerInfo[targetid][pSellExtra] = weaponid;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you their %s for $%i. (/accept item)", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %s for $%i.", GetPlayerRPName(targetid), GetWeaponNameEx(weaponid), price);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [materials] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_MATERIALS;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i materials for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i materials for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [weed] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_WEED;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i grams of weed for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i grams of weed for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [cocaine] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_COCAINE;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i grams of cocaine for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i grams of cocaine for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [meth] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_METH;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i grams of meth for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i grams of meth for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [painkillers] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_PAINKILLERS;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i painkillers for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i painkillers for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- else if(!strcmp(option, "seeds", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [seeds] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pSeeds])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SEEDS;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i seeds for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i seeds for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- else if(!strcmp(option, "ephedrine", true))
- {
- if(sscanf(param, "ii", amount, price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sell [playerid] [ephedrine] [amount] [price]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pEphedrine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_EPHEDRINE;
- PlayerInfo[targetid][pSellExtra] = amount;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you %i grams of ephedrine for $%i. (/accept item)", GetPlayerRPName(playerid), amount, price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s your %i grams of ephedrine for $%i.", GetPlayerRPName(targetid), amount, price);
- }
- return 1;
- }
- CMD:accent(playerid, params[])
- {
- new type;
- if(sscanf(params, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /accent [type]");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (0) None - (1) English - (2) American - (3) British - (4) Chinese - (5) Korean - (6) Japanese - (7) Asian");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (8) Canadian - (9) Australian - (10) Southern - (11) Russian - (12) Ukrainian - (13) German - (14) French");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (15) Portguese - (16) Polish - (17) Estonian - (18) Latvian - (19) Dutch - (20) Jamaican - (21) Turkish");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (22) Mexican - (23) Spanish - (24) Arabic - (25) Israeli - (26) Romanian - (27) Italian - (28) Gangsta");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (29) Greek - (30) Serbian - (31) Balkin - (32) Danish - (33) Scottish - (34) Irish - (35) Indian");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (36) Norwegian - (37) Swedish - (38) Finnish - (39) Hungarian - (40) Bulgarian - (41) Pakistani");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (42) Cuban - (43) Slavic - (44) Indonesian - (45) Filipino - (46) Hawaiian - (47) Somalian");
- SendClientMessage(playerid, COLOR_GREY3, "List of accents: (48) Armenian - (49) Persian - (50) Vietnamese - (51) Slovenian - (52) Kiwi - (53) Brazilian");
- return 1;
- }
- switch(type)
- {
- case 0: strcpy(PlayerInfo[playerid][pAccent], "None", 16);
- case 1: strcpy(PlayerInfo[playerid][pAccent], "English", 16);
- case 2: strcpy(PlayerInfo[playerid][pAccent], "American", 16);
- case 3: strcpy(PlayerInfo[playerid][pAccent], "British", 16);
- case 4: strcpy(PlayerInfo[playerid][pAccent], "Chinese", 16);
- case 5: strcpy(PlayerInfo[playerid][pAccent], "Korean", 16);
- case 6: strcpy(PlayerInfo[playerid][pAccent], "Japanese", 16);
- case 7: strcpy(PlayerInfo[playerid][pAccent], "Asian", 16);
- case 8: strcpy(PlayerInfo[playerid][pAccent], "Canadian", 16);
- case 9: strcpy(PlayerInfo[playerid][pAccent], "Australian", 16);
- case 10: strcpy(PlayerInfo[playerid][pAccent], "Southern", 16);
- case 11: strcpy(PlayerInfo[playerid][pAccent], "Russian", 16);
- case 12: strcpy(PlayerInfo[playerid][pAccent], "Ukrainian", 16);
- case 13: strcpy(PlayerInfo[playerid][pAccent], "German", 16);
- case 14: strcpy(PlayerInfo[playerid][pAccent], "French", 16);
- case 15: strcpy(PlayerInfo[playerid][pAccent], "Portuguese", 16);
- case 16: strcpy(PlayerInfo[playerid][pAccent], "Polish", 16);
- case 17: strcpy(PlayerInfo[playerid][pAccent], "Estonian", 16);
- case 18: strcpy(PlayerInfo[playerid][pAccent], "Latvian", 16);
- case 19: strcpy(PlayerInfo[playerid][pAccent], "Dutch", 16);
- case 20: strcpy(PlayerInfo[playerid][pAccent], "Jamaican", 16);
- case 21: strcpy(PlayerInfo[playerid][pAccent], "Turkish", 16);
- case 22: strcpy(PlayerInfo[playerid][pAccent], "Mexican", 16);
- case 23: strcpy(PlayerInfo[playerid][pAccent], "Spanish", 16);
- case 24: strcpy(PlayerInfo[playerid][pAccent], "Arabic", 16);
- case 25: strcpy(PlayerInfo[playerid][pAccent], "Israeli", 16);
- case 26: strcpy(PlayerInfo[playerid][pAccent], "Romanian", 16);
- case 27: strcpy(PlayerInfo[playerid][pAccent], "Italian", 16);
- case 28: strcpy(PlayerInfo[playerid][pAccent], "Gangsta", 16);
- case 29: strcpy(PlayerInfo[playerid][pAccent], "Greek", 16);
- case 30: strcpy(PlayerInfo[playerid][pAccent], "Serbian", 16);
- case 31: strcpy(PlayerInfo[playerid][pAccent], "Balkin", 16);
- case 32: strcpy(PlayerInfo[playerid][pAccent], "Danish", 16);
- case 33: strcpy(PlayerInfo[playerid][pAccent], "Scottish", 16);
- case 34: strcpy(PlayerInfo[playerid][pAccent], "Irish", 16);
- case 35: strcpy(PlayerInfo[playerid][pAccent], "Indian", 16);
- case 36: strcpy(PlayerInfo[playerid][pAccent], "Norwegian", 16);
- case 37: strcpy(PlayerInfo[playerid][pAccent], "Swedish", 16);
- case 38: strcpy(PlayerInfo[playerid][pAccent], "Finnish", 16);
- case 39: strcpy(PlayerInfo[playerid][pAccent], "Hungarian", 16);
- case 40: strcpy(PlayerInfo[playerid][pAccent], "Bulgarian", 16);
- case 41: strcpy(PlayerInfo[playerid][pAccent], "Pakistani", 16);
- case 42: strcpy(PlayerInfo[playerid][pAccent], "Cuban", 16);
- case 43: strcpy(PlayerInfo[playerid][pAccent], "Slavic", 16);
- case 44: strcpy(PlayerInfo[playerid][pAccent], "Indonesian", 16);
- case 45: strcpy(PlayerInfo[playerid][pAccent], "Filipino", 16);
- case 46: strcpy(PlayerInfo[playerid][pAccent], "Hawaiian", 16);
- case 47: strcpy(PlayerInfo[playerid][pAccent], "Somalian", 16);
- case 48: strcpy(PlayerInfo[playerid][pAccent], "Armenian", 16);
- case 49: strcpy(PlayerInfo[playerid][pAccent], "Persian", 16);
- case 50: strcpy(PlayerInfo[playerid][pAccent], "Vietnamese", 16);
- case 51: strcpy(PlayerInfo[playerid][pAccent], "Slovenian", 16);
- case 52: strcpy(PlayerInfo[playerid][pAccent], "Kiwi", 16);
- case 53: strcpy(PlayerInfo[playerid][pAccent], "Brazilian", 16);
- default: SendClientMessage(playerid, COLOR_GREY, "Invalid accent. Valid types range from 0 to 53.");
- }
- SendClientMessageEx(playerid, COLOR_WHITE, "** You set your accent to '%s'.", PlayerInfo[playerid][pAccent]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET accent = '%e' WHERE uid = %i", PlayerInfo[playerid][pAccent], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:dice(playerid, params[])
- {
- SendProximityMessage(playerid, 20.0, COLOR_WHITE, "** %s rolls a dice which lands on the number %i.", GetPlayerRPName(playerid), random(6) + 1);
- return 1;
- }
- CMD:flipcoin(playerid, params[])
- {
- SendProximityMessage(playerid, 20.0, COLOR_WHITE, "** %s flips a coin which lands on %s.", GetPlayerRPName(playerid), (random(2)) ? ("Heads") : ("Tails"));
- return 1;
- }
- CMD:time(playerid, params[])
- {
- new
- string[128],
- date[6];
- getdate(date[0], date[1], date[2]);
- gettime(date[3], date[4], date[5]);
- switch(date[1])
- {
- case 1: string = "January";
- case 2: string = "February";
- case 3: string = "March";
- case 4: string = "April";
- case 5: string = "May";
- case 6: string = "June";
- case 7: string = "July";
- case 8: string = "August";
- case 9: string = "September";
- case 10: string = "October";
- case 11: string = "November";
- case 12: string = "December";
- }
- format(string, sizeof(string), "~y~%s %02d, %i~n~~g~|~w~%02d:%02d:%02d~g~|", string, date[2], date[0], date[3], date[4], date[5]);
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- format(string, sizeof(string), "%s~n~~w~Jail Time: ~y~%i seconds", string, PlayerInfo[playerid][pJailTime]);
- }
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Paychecks occur at every hour. The next paycheck is at %02d:00 which is in %i minutes.", date[3], (60 - date[4]));
- return 1;
- }
- CMD:report(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /report [playerid (optional)] [text]");
- }
- if(PlayerInfo[playerid][pAdmin] > 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Use /a, nabs.");
- }
- if(!enabledReports)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The report channel is disabled at the moment.");
- }
- if(PlayerInfo[playerid][pReportMuted])
- {
- if(PlayerInfo[playerid][pReportMuted] > 1000) {
- return SendClientMessageEx(playerid, COLOR_GREY, "You are indefinitely muted from submitting reports.");
- } else {
- return SendClientMessageEx(playerid, COLOR_GREY, "You are muted from submitting reports. Your mute is lifted in %i hours.", PlayerInfo[playerid][pReportMuted]);
- }
- }
- if(gettime() - PlayerInfo[playerid][pLastReport] < 50)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only submit one report every 50 seconds. Please wait %i more seconds.", 50 - (gettime() - PlayerInfo[playerid][pLastReport]));
- }
- if(PlayerInfo[playerid][pActiveReport] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have an active report which needs to be closed first. Use /cr to close it.");
- }
- if(!AddReportToQueue(playerid, params))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The report queue is currently full. Please try again later.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "Your report was sent to all online admins. Please wait for a response.");
- return 1;
- }
- CMD:helpme(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /helpme [help request]");
- }
- if(PlayerInfo[playerid][pHelper] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are a helper and therefore can't use this command.");
- }
- if(PlayerInfo[playerid][pHelpMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are muted from submitting help requests.");
- }
- if(gettime() - PlayerInfo[playerid][pLastRequest] < 30)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only submit one help request every 30 seconds. Please wait %i more seconds.", 30 - (gettime() - PlayerInfo[playerid][pLastRequest]));
- }
- strcpy(PlayerInfo[playerid][pHelpRequest], params, 128);
- SendHelperMessage(COLOR_AQUA, "** Help Request from %s[%i]: %s **", GetPlayerRPName(playerid), playerid, params);
- PlayerInfo[playerid][pLastRequest] = gettime();
- SendClientMessage(playerid, COLOR_GREEN, "Your help request was sent to all helpers. Please wait for a response.");
- return 1;
- }
- CMD:accept(playerid, params[])
- {
- if(!strcmp(params, "house", true))
- {
- new
- offeredby = PlayerInfo[playerid][pHouseOffer],
- houseid = PlayerInfo[playerid][pHouseOffered],
- price = PlayerInfo[playerid][pHousePrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a house.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(!IsHouseOwner(offeredby, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player no longer is the owner of this house.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy this player's house.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_HOUSES) >= GetPlayerAssetLimit(playerid, LIMIT_HOUSES))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i houses. You can't own anymore unless you upgrade your asset perk.", GetPlayerAssetCount(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_HOUSES));
- }
- SetHouseOwner(houseid, playerid);
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's house offer and paid $%i for their house.", GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your house offer and paid $%i for your house.", GetPlayerRPName(playerid), price);
- Log_Write("log_property", "%s (uid: %i) (IP: %s) sold their house (id: %i) for $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerIP(offeredby), HouseInfo[houseid][hID], price, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid));
- PlayerInfo[playerid][pHouseOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "garage", true))
- {
- new
- offeredby = PlayerInfo[playerid][pGarageOffer],
- garageid = PlayerInfo[playerid][pGarageOffered],
- price = PlayerInfo[playerid][pGaragePrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a garage.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(!IsGarageOwner(offeredby, garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player no longer is the owner of this garage.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy this player's garage.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_GARAGES) >= GetPlayerAssetLimit(playerid, LIMIT_GARAGES))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i garages. You can't own anymore unless you upgrade your asset perk.", GetPlayerAssetCount(playerid, LIMIT_GARAGES), GetPlayerAssetLimit(playerid, LIMIT_GARAGES));
- }
- SetGarageOwner(garageid, playerid);
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's garage offer and paid $%i for their garage.", GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your garage offer and paid $%i for your garage.", GetPlayerRPName(playerid), price);
- Log_Write("log_property", "%s (uid: %i) (IP: %s) sold their %s garage (id: %i) for $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerIP(offeredby), garageInteriors[GarageInfo[garageid][gType]][intName], GarageInfo[garageid][gID], price, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid));
- PlayerInfo[playerid][pGarageOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "business", true))
- {
- new
- offeredby = PlayerInfo[playerid][pBizOffer],
- businessid = PlayerInfo[playerid][pBizOffered],
- price = PlayerInfo[playerid][pBizPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a business.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(!IsBusinessOwner(offeredby, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player no longer is the owner of this business.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy this player's business.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_BUSINESSES) >= GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i businesses. You can't own anymore unless you upgrade your asset perk.", GetPlayerAssetCount(playerid, LIMIT_BUSINESSES), GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES));
- }
- SetBusinessOwner(businessid, playerid);
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's business offer and paid $%i for their %s.", GetPlayerRPName(offeredby), price, bizInteriors[BusinessInfo[businessid][bType]][intType]);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your business offer and paid $%i for your %s.", GetPlayerRPName(playerid), price, bizInteriors[BusinessInfo[businessid][bType]][intType]);
- Log_Write("log_property", "%s (uid: %i) (IP: %s) sold their %s business (id: %i) for $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerIP(offeredby), bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bID], price, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid));
- PlayerInfo[playerid][pBizOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "land", true))
- {
- new
- offeredby = PlayerInfo[playerid][pLandOffer],
- landid = PlayerInfo[playerid][pLandOffered],
- price = PlayerInfo[playerid][pLandPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a land.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(!IsLandOwner(offeredby, landid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player no longer is the owner of this land.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy this player's land.");
- }
- SetLandOwner(landid, playerid);
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's land offer and paid $%i for their land.", GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your land offer and paid $%i for your land.", GetPlayerRPName(playerid), price);
- Log_Write("log_property", "%s (uid: %i) (IP: %s) sold their land (id: %i) for $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerIP(offeredby), LandInfo[landid][lID], price, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid));
- PlayerInfo[playerid][pLandOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "death", true))
- {
- if(!PlayerInfo[playerid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not injured and can't accept your death.");
- }
- SendClientMessage(playerid, COLOR_GREY, "You have given up and accepted your fate.");
- SetPlayerHealth(playerid, 0.0);
- }
- else if(!strcmp(params, "vest", true))
- {
- new
- offeredby = PlayerInfo[playerid][pVestOffer],
- price = PlayerInfo[playerid][pVestPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a vest.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy the vest.");
- }
- new Float:armor = 50.0 + (GetJobLevel(offeredby, JOB_BODYGUARD) * 5);
- SetScriptArmour(playerid, armor);
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's vest and paid $%i for %.1f armor points.", GetPlayerRPName(offeredby), price, armor);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your vest offer and paid $%i for %.1f armor points.", GetPlayerRPName(playerid), price, armor);
- TurfTaxCheck(offeredby, price);
- IncreaseJobSkill(offeredby, JOB_BODYGUARD);
-
- PlayerInfo[playerid][pVestOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "vehicle", true))
- {
- new
- offeredby = PlayerInfo[playerid][pCarOffer],
- vehicleid = PlayerInfo[playerid][pCarOffered],
- price = PlayerInfo[playerid][pCarPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a vehicle.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(!IsVehicleOwner(offeredby, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player no longer is the owner of this vehicle.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy this player's vehicle.");
- }
- GetPlayerName(playerid, VehicleInfo[vehicleid][vOwner], MAX_PLAYER_NAME);
- VehicleInfo[vehicleid][vOwnerID] = PlayerInfo[playerid][pID];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET ownerid = %i, owner = '%s' WHERE id = %i", VehicleInfo[vehicleid][vOwnerID], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- GivePlayerCash(offeredby, price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's vehicle offer and paid $%i for their %s.", GetPlayerRPName(offeredby), price, GetVehicleName(vehicleid));
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your vehicle offer and paid $%i for your %s.", GetPlayerRPName(playerid), price, GetVehicleName(vehicleid));
- Log_Write("log_property", "%s (uid: %i) (IP: %s) sold their %s (id: %i) for $%i to %s (uid: %i) (IP: %s)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerIP(offeredby), GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID], price, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid));
- PlayerInfo[playerid][pCarOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "faction", true))
- {
- new
- offeredby = PlayerInfo[playerid][pFactionOffer],
- factionid = PlayerInfo[playerid][pFactionOffered];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any invites to a faction.");
- }
- if(PlayerInfo[offeredby][pFaction] != factionid || PlayerInfo[offeredby][pFactionRank] < FactionInfo[factionid][fRankCount] - 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is no longer allowed to invite you.");
- }
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pFactionRank] = 0;
- PlayerInfo[playerid][pDivision] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = %i, factionrank = 0, division = -1 WHERE uid = %i", factionid, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's faction offer to join {00AA00}%s{33CCFF}.", GetPlayerRPName(offeredby), FactionInfo[factionid][fName]);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your faction offer and is now apart of your faction.", GetPlayerRPName(playerid));
- Log_Write("log_faction", "%s (uid: %i) has invited %s (uid: %i) to %s (id: %i).", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], FactionInfo[factionid][fName], factionid);
- PlayerInfo[playerid][pFactionOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "gang", true))
- {
- new
- offeredby = PlayerInfo[playerid][pGangOffer],
- gangid = PlayerInfo[playerid][pGangOffered];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any invites to a gang.");
- }
- if(PlayerInfo[offeredby][pGang] != gangid || PlayerInfo[offeredby][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is no longer allowed to invite you.");
- }
- PlayerInfo[playerid][pGang] = gangid;
- PlayerInfo[playerid][pGangRank] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = %i, gangrank = 0 WHERE uid = %i", gangid, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's gang offer to join {00AA00}%s{33CCFF}.", GetPlayerRPName(offeredby), GangInfo[gangid][gName]);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s accepted your gang offer and is now apart of your gang.", GetPlayerRPName(playerid));
- Log_Write("log_gang", "%s (uid: %i) has invited %s (uid: %i) to %s (id: %i).", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[gangid][gName], gangid);
- PlayerInfo[playerid][pGangOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "frisk", true))
- {
- new offeredby = PlayerInfo[playerid][pFriskOffer];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers to be frisked.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- FriskPlayer(offeredby, playerid);
- PlayerInfo[playerid][pFriskOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "ticket", true))
- {
- new
- offeredby = PlayerInfo[playerid][pTicketOffer],
- price = PlayerInfo[playerid][pTicketPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a ticket.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to pay this ticket.");
- }
- //GivePlayerCash(offeredby, price);
- AddToTaxVault(price);
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have paid the $%i ticket written by %s.", price, GetPlayerRPName(offeredby));
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has paid the $%i ticket which was written to them.", GetPlayerRPName(playerid), price);
- Log_Write("log_faction", "%s (uid: %i) has given %s (uid: %i) a ticket for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- PlayerInfo[playerid][pTicketOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "live", true))
- {
- new offeredby = PlayerInfo[playerid][pLiveOffer];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a live interview.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(PlayerInfo[playerid][pCallLine] != INVALID_PLAYER_ID || PlayerInfo[offeredby][pCallLine] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You or the offerer can't be on a phone call during a live interview.");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's live interview offer. Speak in IC chat to begin the interview!", GetPlayerRPName(offeredby));
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has accepted your live interview offer. Speak in IC chat to begin the interview!", GetPlayerRPName(playerid));
- Log_Write("log_faction", "%s (uid: %i) has started a live interview with %s (uid: %i)", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetPlayerNameEx(playerid), PlayerInfo[playerid][pID]);
- PlayerInfo[playerid][pLiveBroadcast] = offeredby;
- PlayerInfo[offeredby][pLiveBroadcast] = playerid;
- PlayerInfo[playerid][pLiveOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "handshake", true))
- {
- new offeredby = PlayerInfo[playerid][pShakeOffer];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a handshake.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- ClearAnimations(playerid);
- ClearAnimations(offeredby);
- SetPlayerToFacePlayer(playerid, offeredby);
- SetPlayerToFacePlayer(offeredby, playerid);
- switch(PlayerInfo[playerid][pShakeType])
- {
- case 1:
- {
- ApplyAnimation(playerid, "GANGS", "hndshkaa", 4.0, 0, 0, 0, 0, 0, 1);
- ApplyAnimation(offeredby, "GANGS", "hndshkaa", 4.0, 0, 0, 0, 0, 0, 1);
- }
- case 2:
- {
- ApplyAnimation(playerid, "GANGS", "hndshkba", 4.0, 0, 0, 0, 0, 0, 1);
- ApplyAnimation(offeredby, "GANGS", "hndshkba", 4.0, 0, 0, 0, 0, 0, 1);
- }
- case 3:
- {
- ApplyAnimation(playerid, "GANGS", "hndshkda", 4.0, 0, 0, 0, 0, 0, 1);
- ApplyAnimation(offeredby, "GANGS", "hndshkda", 4.0, 0, 0, 0, 0, 0, 1);
- }
- case 4:
- {
- ApplyAnimation(playerid, "GANGS", "hndshkea", 4.0, 0, 0, 0, 0, 0, 1);
- ApplyAnimation(offeredby, "GANGS", "hndshkea", 4.0, 0, 0, 0, 0, 0, 1);
- }
- case 5:
- {
- ApplyAnimation(playerid, "GANGS", "hndshkfa", 4.0, 0, 0, 0, 0, 0, 1);
- ApplyAnimation(offeredby, "GANGS", "hndshkfa", 4.0, 0, 0, 0, 0, 0, 1);
- }
- case 6:
- {
- ApplyAnimation(playerid, "GANGS", "prtial_hndshk_biz_01", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(offeredby, "GANGS", "prtial_hndshk_biz_01", 4.0, 0, 0, 0, 0, 0);
- }
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's handshake offer.", GetPlayerRPName(offeredby));
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has accepted your handshake offer.", GetPlayerRPName(playerid));
- PlayerInfo[playerid][pShakeOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "item", true))
- {
- new
- offeredby = PlayerInfo[playerid][pSellOffer],
- type = PlayerInfo[playerid][pSellType],
- amount = PlayerInfo[playerid][pSellExtra],
- price = PlayerInfo[playerid][pSellPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for an item.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to accept the offer.");
- }
- switch(type)
- {
- case ITEM_WEAPON:
- {
- new weaponid = PlayerInfo[playerid][pSellExtra];
- if(!PlayerHasWeapon(offeredby, weaponid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- GivePlayerWeaponEx(playerid, weaponid);
- RemovePlayerWeapon(offeredby, weaponid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %s's %s for $%i.", GetPlayerRPName(offeredby), GetWeaponNameEx(weaponid), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %s for $%i.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid), price);
- Log_Write("log_give", "%s (uid: %i) has sold their %s to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], GetWeaponNameEx(weaponid), GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_MATERIALS:
- {
- if(PlayerInfo[offeredby][pMaterials] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pMaterials] + amount > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pMaterials] += amount;
- PlayerInfo[offeredby][pMaterials] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[offeredby][pMaterials], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i materials from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i materials for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i materials to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_WEED:
- {
- if(PlayerInfo[offeredby][pWeed] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pWeed] + amount > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pWeed] += amount;
- PlayerInfo[offeredby][pWeed] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[offeredby][pWeed], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i grams of weed from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i grams of weed for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i grams of weed to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_COCAINE:
- {
- if(PlayerInfo[offeredby][pCocaine] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pCocaine] + amount > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pCocaine] += amount;
- PlayerInfo[offeredby][pCocaine] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[offeredby][pCocaine], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i grams of cocaine from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i grams of cocaine for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i grams of cocaine to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_METH:
- {
- if(PlayerInfo[offeredby][pMeth] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pMeth] + amount > GetPlayerCapacity(playerid, CAPACITY_METH))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i meth. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pMeth] += amount;
- PlayerInfo[offeredby][pMeth] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[offeredby][pMeth], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i grams of meth from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i grams of meth for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i grams of meth to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_PAINKILLERS:
- {
- if(PlayerInfo[offeredby][pPainkillers] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pPainkillers] + amount > GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i painkillers. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPainkillers], GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pPainkillers] += amount;
- PlayerInfo[offeredby][pPainkillers] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[offeredby][pPainkillers], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i painkillers from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i painkillers for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i painkillers to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_SEEDS:
- {
- if(PlayerInfo[offeredby][pSeeds] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pSeeds] + amount > GetPlayerCapacity(playerid, CAPACITY_SEEDS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i seeds. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pSeeds], GetPlayerCapacity(playerid, CAPACITY_SEEDS));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pSeeds] += amount;
- PlayerInfo[offeredby][pSeeds] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i WHERE uid = %i", PlayerInfo[playerid][pSeeds], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i WHERE uid = %i", PlayerInfo[offeredby][pSeeds], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i seeds from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i seeds for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i seeds to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- case ITEM_EPHEDRINE:
- {
- if(PlayerInfo[offeredby][pEphedrine] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer no longer has that item.");
- }
- if(PlayerInfo[playerid][pEphedrine] + amount > GetPlayerCapacity(playerid, CAPACITY_EPHEDRINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i ephedrine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pEphedrine], GetPlayerCapacity(playerid, CAPACITY_EPHEDRINE));
- }
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- PlayerInfo[playerid][pEphedrine] += amount;
- PlayerInfo[offeredby][pEphedrine] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i WHERE uid = %i", PlayerInfo[playerid][pEphedrine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i WHERE uid = %i", PlayerInfo[offeredby][pEphedrine], PlayerInfo[offeredby][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i grams of ephedrine from %s for $%i.", amount, GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has purchased your %i grams of ephedrine for $%i.", GetPlayerRPName(playerid), amount, price);
- Log_Write("log_give", "%s (uid: %i) has sold their %i grams of ephedrine to %s (uid: %i) for $%i.", GetPlayerNameEx(offeredby), PlayerInfo[offeredby][pID], amount, GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], price);
- TurfTaxCheck(offeredby, price);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- }
- }
- else if(!strcmp(params, "weapon", true))
- {
- if(PlayerInfo[playerid][pSellOffer] == INVALID_PLAYER_ID || PlayerInfo[playerid][pSellType] != ITEM_SELLGUN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for a weapon.");
- }
- if(PlayerInfo[playerid][pCash] < PlayerInfo[playerid][pSellPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase the weapon.");
- }
- SellWeapon(PlayerInfo[playerid][pSellOffer], playerid, PlayerInfo[playerid][pSellExtra], PlayerInfo[playerid][pSellPrice]);
- PlayerInfo[playerid][pSellOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "lawyer", true))
- {
- new
- offeredby = PlayerInfo[playerid][pDefendOffer],
- price = PlayerInfo[playerid][pDefendPrice];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers from a lawyer.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to accept the offer.");
- }
- if(!PlayerInfo[playerid][pWantedLevel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are no longer wanted. You can't accept this offer anymore.");
- }
- PlayerInfo[playerid][pWantedLevel]--;
- GivePlayerCash(playerid, -price);
- GivePlayerCash(offeredby, price);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = wantedlevel - 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's offer to reduce your wanted level for $%i.", GetPlayerRPName(offeredby), price);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has accepted your offer to reduce their wanted level for $%i.", GetPlayerRPName(playerid), price);
- IncreaseJobSkill(offeredby, JOB_LAWYER);
- PlayerInfo[playerid][pDefendOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "dicebet", true))
- {
- new
- offeredby = PlayerInfo[playerid][pDiceOffer],
- amount = PlayerInfo[playerid][pDiceBet];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any offers for dice betting.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(PlayerInfo[playerid][pCash] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to accept this bet.");
- }
- if(PlayerInfo[offeredby][pCash] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player can't afford to accept this bet.");
- }
- new
- rand[2];
- rand[0] = random(6) + 1;
- rand[1] = random(6) + 1;
- SendProximityMessage(offeredby, 20.0, COLOR_WHITE, "** %s rolls a dice which lands on the number %i.", GetPlayerRPName(offeredby), rand[0]);
- SendProximityMessage(playerid, 20.0, COLOR_WHITE, "** %s rolls a dice which lands on the number %i.", GetPlayerRPName(playerid), rand[1]);
- if(rand[0] > rand[1])
- {
- GivePlayerCash(offeredby, amount);
- GivePlayerCash(playerid, -amount);
- SendClientMessageEx(offeredby, COLOR_AQUA, "** You have won $%i from your dice bet with %s.", amount, GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_RED, "** You have lost $%i from your dice bet with %s.", amount, GetPlayerRPName(offeredby));
- if(amount > 10000 && !strcmp(GetPlayerIP(offeredby), GetPlayerIP(playerid)))
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s (IP: %s) won a $%i dice bet against %s (IP: %s).", GetPlayerRPName(offeredby), GetPlayerIP(offeredby), amount, GetPlayerRPName(playerid), GetPlayerIP(playerid));
- }
- }
- else if(rand[0] == rand[1])
- {
- SendClientMessageEx(offeredby, COLOR_AQUA, "** The bet of $%i was a tie. You kept your money as a result!", amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** The bet of $%i was a tie. You kept your money as a result!", amount);
- }
- else
- {
- GivePlayerCash(offeredby, -amount);
- GivePlayerCash(playerid, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have won $%i from your dice bet with %s.", amount, GetPlayerRPName(offeredby));
- SendClientMessageEx(offeredby, COLOR_RED, "** You have lost $%i from your dice bet with %s.", amount, GetPlayerRPName(playerid));
- if(amount > 10000 && !strcmp(GetPlayerIP(offeredby), GetPlayerIP(playerid)))
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s (IP: %s) won a $%i dice bet against %s (IP: %s).", GetPlayerRPName(playerid), GetPlayerIP(playerid), amount, GetPlayerRPName(offeredby), GetPlayerIP(offeredby));
- }
- }
- PlayerInfo[playerid][pDiceOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "invite", true))
- {
- new
- offeredby = PlayerInfo[playerid][pInviteOffer],
- houseid = PlayerInfo[playerid][pInviteHouse];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any invitations to a house.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_HOUSE;
- SetPlayerCheckpoint(playerid, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ], 3.0);
-
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's invitation to their house.", GetPlayerRPName(offeredby));
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has accepted your invitation to your house.", GetPlayerRPName(playerid));
- PlayerInfo[playerid][pInviteOffer] = INVALID_PLAYER_ID;
- }
- else if(!strcmp(params, "robbery", true))
- {
- new offeredby = PlayerInfo[playerid][pRobberyOffer];
- if(offeredby == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received any invitations to a bank heist.");
- }
- if(!IsPlayerInRangeOfPlayer(playerid, offeredby, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player who initiated the offer is out of range.");
- }
- if(RobberyInfo[rRobbers][0] != offeredby || RobberyInfo[rStarted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The robbery invite is no longer available.");
- }
- if(GetBankRobbers() >= MAX_BANK_ROBBERS)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "This bank robbery has reached its limit of %i robbers.", MAX_BANK_ROBBERS);
- }
- AddToBankRobbery(playerid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's bank robbery invitation.", GetPlayerRPName(offeredby));
- SendClientMessageEx(offeredby, COLOR_AQUA, "** %s has accepted your bank robbery invitation.", GetPlayerRPName(playerid));
- PlayerInfo[playerid][pRobberyOffer] = INVALID_PLAYER_ID;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /accept [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: House, Garage, Business, Land, Death, Vest, Vehicle, Faction, Gang, Ticket, Live");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Item, Frisk, Handshake, Weapon, Lawyer, Dicebet, Invite, Robbery");
- }
- return 1;
- }
- CMD:e(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /e [executive chat]");
- }
- if(PlayerInfo[playerid][pToggleAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the executive chat as you have admin chats toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pAdmin] > 5 && !PlayerInfo[i][pToggleAdmin])
- {
- SendClientMessageEx(i, 0xA077BFFF, "** [%s] %s: %s **", GetAdminRank(playerid), GetPlayerRPName(playerid), params);
- }
- }
- return 1;
- }
- CMD:ha(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ha [head admin chat]");
- }
- if(PlayerInfo[playerid][pToggleAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the head administrator chat as you have admin chats toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pAdmin] > 4 && !PlayerInfo[i][pToggleAdmin])
- {
- SendClientMessageEx(i, 0x5C80FFFF, "** [%s] %s: %s **", GetAdminRank(playerid), GetPlayerRPName(playerid), params);
- }
- }
- return 1;
- }
- CMD:a(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /a [admin chat]");
- }
- if(PlayerInfo[playerid][pToggleAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the admin chat as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pAdmin] > 0 && !PlayerInfo[i][pToggleAdmin])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_ADMINCHAT, "** [%s] %s: %.*s... **", GetAdminRank(playerid), GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_ADMINCHAT, "** [%s] %s: ...%s **", GetAdminRank(playerid), GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_ADMINCHAT, "** [%s] %s: %s **", GetAdminRank(playerid), GetPlayerRPName(playerid), params);
- }
- }
- }
- return 1;
- }
- CMD:ah(playerid, params[])
- {
- return cmd_adminhelp(playerid, params);
- }
- CMD:o(playerid, params[])
- {
- return cmd_ooc(playerid, params);
- }
- CMD:tow(playerid, params[])
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 525)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be in a tow truck to use this command.");
- }
- new Float:pX, Float:pY, Float:pZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- new Float:vX, Float:vY, Float:vZ;
- new Found = 0;
- new vid = 0;
- while ((vid<MAX_VEHICLES) && (!Found)) {
- vid++;
- GetVehiclePos(vid, vX, vY, vZ);
- if ((floatabs(pX - vX)<7.0) && (floatabs(pY - vY)<7.0) && (floatabs(pZ - vZ)<7.0) && (vid != GetPlayerVehicleID(playerid))) {
- Found = 1;
- if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) {
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- }
- AttachTrailerToVehicle(vid, GetPlayerVehicleID(playerid));
- }
- }
- if (!Found) {
- SendClientMessage(playerid, COLOR_GREY, "There is no vehicle in range that you can tow.");
- }
- return 1;
- }
- CMD:ahelp(playerid, params[])
- {
- return cmd_adminhelp(playerid, params);
- }
- CMD:adminhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Moderator:{DDDDDD} /a, /skick, /sban, /sjail, /pinfo, /spec, /reports, /admins, /flag, /removeflag, /listflags, /check, /dm.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Moderator:{DDDDDD} /ocheck, /oflag, /listflagged.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Junior Admin:{DDDDDD} /aduty, /adminname, /kick, /ban, /warn, /slap, /ar, /tr, /rr, /cr, /getip, /iplookup, /ogetip, /setint, /setvw.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Junior Admin:{DDDDDD} /setskin, /revive, /heject, /goto, /gethere, /gotocar, /getcar, /gotocoords, /gotoint, /listen, /jetpack, /sendto.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Junior Admin:{DDDDDD} /freeze, /unfreeze, /rwarn, /runmute, /nmute, /admute, /hmute, /gmute, /listguns, /disarm.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Junior Admin:{DDDDDD} /jail, /heal, /listjailed, /lastactive, /checkinv, /afklist, /acceptname, /denyname, /namechanges, /nrn.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Junior Admin:{DDDDDD} /prisoninfo, /arelog, /rtnc, /sth, /nro, /nao, /nor, /post, /contracts, /denyhit, /undercover.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "General Admin:{DDDDDD} /prison, /sprison, /oprison, /release, /fine, /pfine, /ofine, /sethp, /setarmor, /mark, /gotomark.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "General Admin:{DDDDDD} /veh, /destroyveh, /respawncars, /broadcast, /fixveh, /clearchat, /healrange, /shots, /damages.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "General Admin:{DDDDDD} /resetadtimer, /baninfo, /banhistory, /kills, /togooc, /tognewbie, /togglobal, /listpvehs, /despawnpveh.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "General Admin:{DDDDDD} /aclearwanted, /removedm, /savevehicle, /editvehicle, /removevehicle, /refillcars, /refilldrug, /duel.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "General Admin:{DDDDDD} /startchat, /invitechat, /kickchat, /endchat.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Senior Admin:{DDDDDD} /givegun, /setname, /permaban, /oban, /unban, /unbanip, /banip, /lockaccount, /unlockaccount.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Senior Admin:{DDDDDD} /explode, /gplay, /gplayurl, /gstop, /sethpall, /setarmorall, /setweather, /settime.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Head Admin:{DDDDDD} /setstat, /givemoney, /givemoneyall, /givecookie, /givecookieall, /setvip, /forcepayday.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Head Admin:{DDDDDD} /removevip, /rangeban, /deleteaccount, /fws, /fwsall, /previewint, /nearest, /dynamichelp.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Head Admin:{DDDDDD} /saveaccounts, /adestroyboombox, /setbanktimer, /resetrobbery, /givepayday, /givepveh, /givedoublexp.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Assistant Management:{DDDDDD} /makehelper, /omakehelper, /setmotd, /forceaduty.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Assistant Management:{DDDDDD} /olisthelpers, /changelist, /fixplayerid.");
- }
- if(PlayerInfo[playerid][pAdmin] >= 7)
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Management:{DDDDDD} /makeadmin, /omakeadmin, /setstaff, /gmx, /sellinactive, /anticheat , /doublexp.");
- }
- return 1;
- }
- CMD:reports(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|_________ Pending Reports _________|");
- for(new i = 0; i < MAX_REPORTS; i ++)
- {
- if(ReportInfo[i][rExists] && !ReportInfo[i][rAccepted])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(RID: %i) %s[%i] reports: %s", i, GetPlayerRPName(ReportInfo[i][rReporter]), ReportInfo[i][rReporter], ReportInfo[i][rText]);
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "** Use /ar [rid] or /tr [rid] to handle these reports.");
- return 1;
- }
- CMD:rtnc(playerid, params[])
- {
- new reportid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", reportid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rtnc [reportid] (Sends to newbie chat)");
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid report ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The report specified is being handled by another admin.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has sent report %i to newbie chat.", GetPlayerRPName(playerid), reportid);
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_GREEN, "%s has redirected your report to the newbie chat.", GetPlayerRPName(playerid));
- SendNewbieChatMessage(ReportInfo[reportid][rReporter], ReportInfo[reportid][rText]);
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:sth(playerid, params[])
- {
- new reportid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", reportid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sth [reportid] (Sends to helpers)");
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid report ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The report specified is being handled by another admin.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has sent report %i to helpers.", GetPlayerRPName(playerid), reportid);
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_GREEN, "%s has redirected your report to all helpers online.", GetPlayerRPName(playerid));
-
- strcpy(PlayerInfo[ReportInfo[reportid][rReporter]][pHelpRequest], ReportInfo[reportid][rText], 128);
- SendHelperMessage(COLOR_AQUA, "** Help Request from %s[%i]: %s **", GetPlayerRPName(ReportInfo[reportid][rReporter]), ReportInfo[reportid][rReporter], ReportInfo[reportid][rText]);
- PlayerInfo[playerid][pLastRequest] = gettime();
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:pm(playerid, params[])
- {
- new targetid, text[128];
- if(sscanf(params, "us[128]", targetid, text))
- {
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /(pm) [playerid] [text]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't pm to yourself.");
- }
- SendClientMessageEx(targetid, COLOR_YELLOW, "(( PM from %s: %s ))", GetPlayerRPName(playerid), text);
- SendClientMessageEx(playerid, COLOR_YELLOW, "(( PM to %s: %s ))", GetPlayerRPName(targetid), text);
- if(PlayerInfo[targetid][pWhisperFrom] == INVALID_PLAYER_ID)
- {
- SendClientMessage(targetid, COLOR_WHITE, "* You can use '/rpm [message]' to reply to this private message.");
- }
- PlayerInfo[targetid][pWhisperFrom] = playerid;
- return 1;
- }
- CMD:rpm(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /rpm [text]");
- }
- if(PlayerInfo[playerid][pWhisperFrom] == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't been private messaged by anyone since you joined the server.");
- }
- SendClientMessageEx(PlayerInfo[playerid][pWhisperFrom], COLOR_YELLOW, "(( PM from %s: %s ))", GetPlayerRPName(playerid), params);
- SendClientMessageEx(playerid, COLOR_YELLOW, "(( PM to %s: %s ))", GetPlayerRPName(PlayerInfo[playerid][pWhisperFrom]), params);
- return 1;
- }
- CMD:ar(playerid, params[])
- {
- new reportid, chat;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "iI(1)", reportid, chat))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ar [reportid] [chat (optional - 0/1)]");
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid report ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The report specified is being handled by another admin.");
- }
- if(PlayerInfo[playerid][pActiveReport] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a report active already. Use /cr to close it.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has accepted report %i from %s.", GetPlayerRPName(playerid), reportid, GetPlayerRPName(ReportInfo[reportid][rReporter]));
-
- if(chat)
- {
- SendClientMessage(playerid, COLOR_WHITE, "** You can use /rr to speak with the reporter and /cr to close the report.");
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_GREEN, "%s has accepted your report and is now reviewing it.", GetPlayerRPName(playerid));
- SendClientMessage(ReportInfo[reportid][rReporter], COLOR_GREEN, "You can use /rr to reply to the admin handling your report.");
-
- PlayerInfo[playerid][pActiveReport] = reportid;
- PlayerInfo[ReportInfo[reportid][rReporter]][pActiveReport] = reportid;
- ReportInfo[reportid][rHandledBy] = playerid;
- ReportInfo[reportid][rAccepted] = 1;
- }
- else
- {
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_GREEN, "%s has accepted your report and is now reviewing it.", GetPlayerRPName(playerid));
- ReportInfo[reportid][rExists] = 0;
- }
- PlayerInfo[playerid][pReports]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET reports = %i WHERE uid = %i", PlayerInfo[playerid][pReports], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:tr(playerid, params[])
- {
- new reportid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "iS(N/A)[128]", reportid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /tr [reportid] [reason (optional)]");
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid report ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The report specified is being handled by another admin.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has trashed report %i from %s, reason: %s", GetPlayerRPName(playerid), reportid, GetPlayerRPName(ReportInfo[reportid][rReporter]), reason);
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "** %s has trashed your report, reason: %s", GetPlayerRPName(playerid), reason);
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:nro(playerid, params[])
- {
- new reportid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", reportid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /nro [reportid]");
- SendClientMessage(playerid, COLOR_GREY3, "This command will clear a report for not being a rulebreaking offense.");
- return 1;
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There's not a report that currently exists with this ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This report is already being handled by another administrator.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has trashed report %i from %s as their report involves a non-rulebreaking offense.", GetPlayerRPName(playerid), reportid, GetPlayerRPName(ReportInfo[reportid][rReporter]));
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "%s has trashed your report as it involves a non-rulebreaking offense", GetPlayerRPName(playerid));
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "Please visit our rules page at www.coming-soon.com for a full list of rulebreaking offenses.");
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:nao(playerid, params[])
- {
- new reportid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", reportid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /nao [reportid]");
- SendClientMessage(playerid, COLOR_GREY3, "This command will clear a report if there isn't a high enough administrator online.");
- return 1;
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There's not a report that currently exists with this ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This report is already being handled by another administrator.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has trashed report %i from %s as there are no admins online to handle it.", GetPlayerRPName(playerid), reportid, GetPlayerRPName(ReportInfo[reportid][rReporter]));
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "%s has trashed your report as there no admins online with the authority to handle it.", GetPlayerRPName(playerid));
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:nor(playerid, params[])
- {
- new reportid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", reportid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /nor [reportid]");
- SendClientMessage(playerid, COLOR_GREY3, "This command will clear a report if the reporters revive request is invalid.");
- return 1;
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There's not a report that currently exists with this ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This report is already being handled by another administrator.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has trashed report %i from %s as their request for a revive is invalid.", GetPlayerRPName(playerid), reportid, GetPlayerRPName(ReportInfo[reportid][rReporter]));
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "%s has trashed your report as your request for a revive is invalid. (/call 911)", GetPlayerRPName(playerid));
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:post(playerid, params[])
- {
- new reportid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", reportid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /nor [reportid]");
- SendClientMessage(playerid, COLOR_GREY3, "This command will clear a report and notify the player to post an admin request.");
- return 1;
- }
- if(!(0 <= reportid < MAX_REPORTS) || !ReportInfo[reportid][rExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There's not a report that currently exists with this ID.");
- }
- if(ReportInfo[reportid][rAccepted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This report is already being handled by another administrator.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has trashed report %i from %s as it needs to be handled on the forums.", GetPlayerRPName(playerid), reportid, GetPlayerRPName(ReportInfo[reportid][rReporter]));
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "%s has trashed your report as your issue at hand must be handled on our forums.", GetPlayerRPName(playerid));
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_LIGHTRED, "Please visit our website at www.coming-soon.com in order to to resolve this issue.");
- ReportInfo[reportid][rExists] = 0;
- return 1;
- }
- CMD:norevive(playerid, params[])
- {
- return cmd_nor(playerid, params);
- }
- CMD:er(playerid, params[])
- {
- return cmd_cr(playerid, params);
- }
- CMD:bigears(playerid, params[])
- {
- return cmd_listen(playerid, params);
- }
- CMD:rr(playerid, params[])
- {
- new reportid = PlayerInfo[playerid][pActiveReport];
- if(reportid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no active report to reply to.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rr [reply text]");
- }
- if(ReportInfo[reportid][rReporter] == playerid)
- {
- SendClientMessageEx(ReportInfo[reportid][rHandledBy], COLOR_YELLOW, "** Player %s (ID %i): %s **", GetPlayerRPName(playerid), playerid, params);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** Reply to %s (ID %i): %s **", GetPlayerRPName(ReportInfo[reportid][rHandledBy]), ReportInfo[reportid][rHandledBy], params);
- }
- else
- {
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_YELLOW, "** Admin %s (ID %i): %s **", GetPlayerRPName(playerid), playerid, params);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** Reply to %s (ID %i): %s **", GetPlayerRPName(ReportInfo[reportid][rReporter]), ReportInfo[reportid][rReporter], params);
- }
- return 1;
- }
- CMD:cr(playerid, params[])
- {
- new reportid = PlayerInfo[playerid][pActiveReport];
- if(reportid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no active report which you can close.");
- }
- if(ReportInfo[reportid][rReporter] == playerid)
- {
- SendClientMessageEx(ReportInfo[reportid][rHandledBy], COLOR_YELLOW, "** Player %s has closed the report. **", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have closed the report and ended your conversation with the admin.");
- }
- else
- {
- SendClientMessageEx(ReportInfo[reportid][rReporter], COLOR_YELLOW, "** Administrator %s has closed the report. **", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have closed the report and ended your conversation with the reporter.");
- }
-
- if(ReportInfo[reportid][rReporter] != INVALID_PLAYER_ID)
- {
- PlayerInfo[ReportInfo[reportid][rReporter]][pActiveReport] = -1;
- }
- if(ReportInfo[reportid][rHandledBy] != INVALID_PLAYER_ID)
- {
- PlayerInfo[ReportInfo[reportid][rHandledBy]][pActiveReport] = -1;
- }
- ReportInfo[reportid][rExists] = 0;
- ReportInfo[reportid][rAccepted] = 0;
- ReportInfo[reportid][rReporter] = INVALID_PLAYER_ID;
- ReportInfo[reportid][rHandledBy] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pActiveReport] = -1;
- return 1;
- }
- CMD:skick(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /skick [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be kicked.");
- }
- Log_Write("log_punishments", "%s (uid: %i) silently kicked %s (uid: %i), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has silently kicked %s, reason: %s", GetPlayerRPName(playerid), GetPlayerRPName(targetid), reason);
- KickPlayer(targetid);
- return 1;
- }
- CMD:sban(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sban [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be banned.");
- }
- Log_Write("log_punishments", "%s (uid: %i) silently banned %s (uid: %i), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was silently banned by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- BanPlayer(targetid, "Secret Admin", reason, true);
- return 1;
- }
- CMD:sjail(playerid, params[])
- {
- new targetid, minutes, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uis[128]", targetid, minutes, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sjail [playerid] [minutes] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be jailed.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(minutes < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of minutes specified cannot be below zero.");
- }
- PlayerInfo[targetid][pJailType] = 1;
- PlayerInfo[targetid][pJailTime] = minutes * 60;
- ResetPlayerWeaponsEx(targetid);
- ResetPlayer(targetid);
- SetPlayerInJail(targetid);
- Log_Write("log_punishments", "%s (uid: %i) silently jailed %s (uid: %i) for %i minutes, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], minutes, reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was jailed for %i minutes by an Admin, reason: %s", GetPlayerRPName(targetid), minutes, reason);
- SendClientMessageEx(targetid, COLOR_AQUA, "** You have been jailed for %i minutes by an admin.", minutes);
- return 1;
- }
- /*
- CMD:sitonchair(playerid, params[])
- {
- //if(!IsAblePedAnimation(playerid)) return 1;
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "Attractors", "Stepsit_in", 4.0, 0, 0, 0, 1, 0, 1);
- case 2: ApplyAnimationEx(playerid, "CRIB", "PED_Console_Loop", 4.0, 1, 0, 0, 0, 0, 1);
- case 3: ApplyAnimationEx(playerid, "INT_HOUSE", "LOU_In", 4.0, 0, 0, 0, 1, 1, 1);
- case 4: ApplyAnimationEx(playerid, "MISC", "SEAT_LR", 4.0, 1, 0, 0, 0, 0, 1);
- case 5: ApplyAnimationEx(playerid, "MISC", "Seat_talk_01", 4.0, 1, 0, 0, 0, 0, 1);
- case 6: ApplyAnimationEx(playerid, "MISC", "Seat_talk_02", 4.0, 1, 0, 0, 0, 0, 1);
- case 7: ApplyAnimationEx(playerid, "ped", "SEAT_down", 4.0, 0, 0, 0, 1, 1, 1);
- default: SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sitonchair [1-7]");
- }
- return 1;
- }
- */
- CMD:pinfo(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /pinfo [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendClientMessageEx(playerid, COLOR_GREY1, "(ID: %i) - (Name: %s) - (Ping: %i) - (FPS: %i) - (Packet Loss: %.1f%c)", targetid, GetPlayerRPName(targetid), GetPlayerPing(targetid), PlayerInfo[targetid][pFPS], NetStats_PacketLossPercent(targetid), '%');
- return 1;
- }
- CMD:admins(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|________ Admins Online ________|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pAdmin] > 0)
- {
- if(!strcmp(PlayerInfo[i][pAdminName], "None", true))
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s %s - Status: %s{C8C8C8} - Tabbed: %s", i, GetAdminRank(i), PlayerInfo[i][pUsername], (PlayerInfo[i][pAdminDuty]) ? ("{00AA00}On Duty") : ("Off Duty"), (PlayerInfo[i][pAFK]) ? ("Yes") : ("No"));
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s %s (%s) - Status: %s{C8C8C8} - Tabbed: %s", i, GetAdminRank(i), PlayerInfo[i][pUsername], PlayerInfo[i][pAdminName], (PlayerInfo[i][pAdminDuty]) ? ("{00AA00}On Duty") : ("Off Duty"), (PlayerInfo[i][pAFK]) ? ("Yes") : ("No"));
- }
- }
- return 1;
- }
- CMD:helpers(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "|________ Helpers Online ________|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pHelper] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s %s", i, GetHelperRank(i), GetPlayerRPName(i));
- }
- }
- return 1;
- }
- CMD:flag(playerid, params[])
- {
- new targetid, desc[128];
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, desc))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /flag [playerid] [description]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO flags VALUES(null, %i, '%s', NOW(), '%e')", PlayerInfo[targetid][pID], GetPlayerNameEx(playerid), desc);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s flagged %s's account for '%s'.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), desc);
- return 1;
- }
- CMD:oflag(playerid, params[])
- {
- new name[24], desc[128];
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]s[128]", name, desc))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /oflag [username] [description]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e'", name);
- mysql_tquery(connectionID, queryBuffer, "OnAdminOfflineFlag", "iss", playerid, name, desc);
- return 1;
- }
- CMD:listflagged(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
-
- mysql_tquery(connectionID, "SELECT b.username FROM flags a, users b WHERE a.uid = b.uid ORDER BY b.username", "OnQueryFinished", "ii", THREAD_LIST_FLAGGED, playerid);
- return 1;
- }
- CMD:ocheck(playerid, params[])
- {
- new name[24];
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ocheck [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM users WHERE username = '%e'", name);
- mysql_tquery(connectionID, queryBuffer, "OnAdminOfflineCheck", "is", playerid, name);
- return 1;
- }
- CMD:removeflag(playerid, params[])
- {
- new targetid, slot;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, slot))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removeflag [playerid] [slot]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(slot < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot specified.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id FROM flags WHERE uid = %i ORDER BY id LIMIT %i, 1", PlayerInfo[targetid][pID], slot-1);
- mysql_tquery(connectionID, queryBuffer, "OnVerifyRemoveFlag", "iii", playerid, targetid, slot);
- return 1;
- }
- CMD:listflags(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /listflags [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM flags WHERE uid = %i ORDER BY date DESC", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnListPlayerFlags", "ii", playerid, targetid);
- return 1;
- }
- CMD:spec(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!strcmp(params, "off", true) && GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessageEx(playerid, COLOR_ORANGE, "You are no longer spectating %s (ID %i).", GetPlayerRPName(PlayerInfo[playerid][pSpectating]), PlayerInfo[playerid][pSpectating]);
- PlayerInfo[playerid][pSpectating] = INVALID_PLAYER_ID;
- SetPlayerToSpawn(playerid);
- return 1;
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /spec [playerid/off]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't spectate yourself.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is either not spawned, or spectating.");
- }
- SavePlayerVariables(playerid);
- TogglePlayerSpectating(playerid, 1);
- SetPlayerInterior(playerid, GetPlayerInterior(targetid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(targetid));
- if(IsPlayerInAnyVehicle(targetid))
- {
- PlayerSpectateVehicle(playerid, GetPlayerVehicleID(targetid));
- }
- else
- {
- PlayerSpectatePlayer(playerid, targetid);
- }
- PlayerInfo[playerid][pSpectating] = targetid;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s is currently spectaing %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(playerid, COLOR_ORANGE, "You are now spectating %s (ID %i).", GetPlayerRPName(PlayerInfo[playerid][pSpectating]), PlayerInfo[playerid][pSpectating]);
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /kick [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be kicked.");
- }
- Log_Write("log_punishments", "%s (uid: %i) kicked %s (uid: %i), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was kicked by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- KickPlayer(targetid);
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ban [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be banned.");
- }
- Log_Write("log_punishments", "%s (uid: %i) banned %s (uid: %i), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was banned by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- BanPlayer(targetid, GetPlayerNameEx(playerid), reason);
- return 1;
- }
- CMD:warn(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /warn [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be warned.");
- }
- PlayerInfo[targetid][pWarnings]++;
- Log_Write("log_punishments", "%s (uid: %i) warned %s (uid: %i), reason: %s (%i/3)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason, PlayerInfo[targetid][pWarnings]);
- if(PlayerInfo[targetid][pWarnings] < 3)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was warned by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- SendClientMessageEx(targetid, COLOR_YELLOW, "** %s issued a warning to your account, reason: %s", GetPlayerRPName(playerid), reason);
- }
- else
- {
- PlayerInfo[targetid][pWarnings] = 0;
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was kicked by %s, reason: %s (3/3 warnings)", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- KickPlayer(targetid);
- }
- return 1;
- }
- CMD:check(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /check [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- DisplayStats(targetid, playerid);
- return 1;
- }
- CMD:checkinv(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /checkinv [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- DisplayInventory(targetid, playerid);
- return 1;
- }
- CMD:slap(playerid, params[])
- {
- new targetid, Float:height;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uF(5.0)", targetid, height))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /slap [playerid] [height (optional)]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is not spawned and therefore cannot be slapped.");
- }
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(targetid, x, y, z);
- SetPlayerPos(targetid, x, y, z + height);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was slapped by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- PlayerPlaySound(targetid, 1130, 0.0, 0.0, 0.0);
- return 1;
- }
- CMD:upgrade(playerid, params[])
- {
- if(PlayerInfo[playerid][pUpgradePoints] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "You have no upgrade points available which you can spend.");
- }
- if(!strcmp(params, "inventory", true))
- {
- if(PlayerInfo[playerid][pInventoryUpgrade] >= 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your inventory skill is already upgraded to its maximum level of 5.");
- }
- PlayerInfo[playerid][pInventoryUpgrade]++;
- PlayerInfo[playerid][pUpgradePoints]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET inventoryupgrade = %i, upgradepoints = %i WHERE uid = %i", PlayerInfo[playerid][pInventoryUpgrade], PlayerInfo[playerid][pUpgradePoints], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You upgraded your inventory skill to %i/5. Your inventory capacity was increased.", PlayerInfo[playerid][pInventoryUpgrade]);
- }
- else if(!strcmp(params, "addict", true))
- {
- if(PlayerInfo[playerid][pAddictUpgrade] >= 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your addict skill is already upgraded to its maximum level of 3.");
- }
- PlayerInfo[playerid][pAddictUpgrade]++;
- PlayerInfo[playerid][pUpgradePoints]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET addictupgrade = %i, upgradepoints = %i WHERE uid = %i", PlayerInfo[playerid][pAddictUpgrade], PlayerInfo[playerid][pUpgradePoints], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You upgraded your addict skill to level %i/3. You now gain %.1f more health & armor when using drugs.", PlayerInfo[playerid][pAddictUpgrade], PlayerInfo[playerid][pAddictUpgrade] * 5.0);
- }
- else if(!strcmp(params, "trader", true))
- {
- if(PlayerInfo[playerid][pTraderUpgrade] >= 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your trader skill is already upgraded to its maximum level of 3.");
- }
- PlayerInfo[playerid][pTraderUpgrade]++;
- PlayerInfo[playerid][pUpgradePoints]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET traderupgrade = %i, upgradepoints = %i WHERE uid = %i", PlayerInfo[playerid][pTraderUpgrade], PlayerInfo[playerid][pUpgradePoints], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You upgraded your trader skill to level %i/3. You now pay %i percent less for items in shops.", PlayerInfo[playerid][pTraderUpgrade], PlayerInfo[playerid][pTraderUpgrade] * 5);
- }
- else if(!strcmp(params, "asset", true))
- {
- if(PlayerInfo[playerid][pAssetUpgrade] >= 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your asset skill is already upgraded to its maximum level of 4.");
- }
- PlayerInfo[playerid][pAssetUpgrade]++;
- PlayerInfo[playerid][pUpgradePoints]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET assetupgrade = %i, upgradepoints = %i WHERE uid = %i", PlayerInfo[playerid][pAssetUpgrade], PlayerInfo[playerid][pUpgradePoints], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You upgraded your asset skill to level %i/4. You can now own %i/%i houses and garages and %i/%i businesses and vehicles.", PlayerInfo[playerid][pAssetUpgrade], GetPlayerAssetLimit(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_GARAGES), GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES), GetPlayerAssetLimit(playerid, LIMIT_VEHICLES));
- }
- else if(!strcmp(params, "spawnhealth", true))
- {
- if(PlayerInfo[playerid][pSpawnHealth] >= 100)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your spawn health is at maximum (100).");
- }
- PlayerInfo[playerid][pSpawnHealth] += 5.0;
- PlayerInfo[playerid][pUpgradePoints]--;
- SendClientMessageEx(playerid, COLOR_GREEN, "You have upgraded your spawn health. You will now spawn with %.1f health after death.", PlayerInfo[playerid][pSpawnHealth]);
- }
- else if(!strcmp(params, "spawnarmor", true))
- {
- if(PlayerInfo[playerid][pSpawnArmor] > 100 && PlayerInfo[playerid][pVIPPackage] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your spawn armor is at maximum (100).");
- }
- else if(PlayerInfo[playerid][pSpawnArmor] > 125 && PlayerInfo[playerid][pVIPPackage] <= 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your spawn armor is at maximum (125).");
- }
- else if(PlayerInfo[playerid][pSpawnArmor] > 150 && PlayerInfo[playerid][pVIPPackage] == 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your spawn armor is at maximum (150).");
- }
- PlayerInfo[playerid][pSpawnArmor] += 2.0;
- PlayerInfo[playerid][pUpgradePoints]--;
- SendClientMessageEx(playerid, COLOR_GREEN, "You have upgraded your spawn armor. You will now spawn with %.1f armor after death.", PlayerInfo[playerid][pSpawnArmor]);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /upgrade [option] (%i points available)", PlayerInfo[playerid][pUpgradePoints]);
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Inventory, Addict, Trader, Asset, SpawnHealth, SpawnArmor");
- }
- return 1;
- }
- CMD:charity(playerid, params[])
- {
- new option[10], param[64];
- if(PlayerInfo[playerid][pLevel] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "You cannot donate to charity if you're under level 5. /buylevel to level up.");
- }
- if(sscanf(params, "s[10]S()[64]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /charity [info | health | armor | song]");
- }
- if(!strcmp(option, "info", true))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|______ Charity ______|");
- SendClientMessage(playerid, COLOR_GREY3, "If you have at least $1,000 on hand you can donate to charity.");
- SendClientMessage(playerid, COLOR_GREY3, "You can donate to give health or armor for the entire server using '{FFD700}/charity health/armor{AAAAAA}'.");
- SendClientMessage(playerid, COLOR_GREY3, "You can also donate to globally play a song of your choice using '{FFD700}/charity song{AAAAAA}'.");
- SendClientMessage(playerid, COLOR_GREY3, "You can also donate your money the traditional way using '{FFD700}/charity [amount]{AAAAAA}'.");
- SendClientMessage(playerid, COLOR_GREY3, "Once the charity bank hits a milestone, some of it will be given back to the community!");
- SendClientMessageEx(playerid, COLOR_AQUA, "** $%i has been donated to charity so far.", gCharity);
- return 1;
- }
- else if(!strcmp(option, "health", true))
- {
- if(PlayerInfo[playerid][pCash] < 150000)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "You need at least $150,000 on hand for this option.");
- }
- if(gCharityHealth)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Players can only donate for this perk each hour. Try again after payday.");
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pAdminDuty])
- {
- SetPlayerHealth(i, 150.0);
- }
- }
- gCharity += 150000;
- gCharityHealth = 1;
- AddToTaxVault(150000);
- SendClientMessageToAllEx(COLOR_ROYALBLUE, "Charity: %s has generously donated $150,000 to heal everyone to 150 health!", GetPlayerRPName(playerid));
- GivePlayerCash(playerid, -150000);
- }
- else if(!strcmp(option, "armor", true))
- {
- if(PlayerInfo[playerid][pCash] < 200000)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "You need at least $200,000 on hand for this option.");
- }
- if(gCharityArmor)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Players can only donate for this perk each hour. Try again after payday.");
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pAdminDuty])
- {
- SetScriptArmour(i, 100.0);
- }
- }
- gCharity += 200000;
- gCharityArmor = 1;
- AddToTaxVault(200000);
- SendClientMessageToAllEx(COLOR_ROYALBLUE, "Charity: %s has generously donated $200,000 to give full armor to everyone!", GetPlayerRPName(playerid));
- GivePlayerCash(playerid, -10000);
- }
- else if(!strcmp(option, "song", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /charity [song] [songfolder/name.mp3]");
- }
- if(PlayerInfo[playerid][pCash] < 25000)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "You need at least $25,000 on hand for this option.");
- }
- new
- url[144];
- format(url, sizeof(url), "http://%s/%s", SERVER_MUSIC_URL, param);
- foreach(new i : Player)
- {
- PlayAudioStreamForPlayer(i, url);
- }
- gCharity += 25000;
- AddToTaxVault(25000);
- SendClientMessageToAllEx(COLOR_ROYALBLUE, "Charity: %s has generously donated $25,000 to play %s for the entire server!", GetPlayerRPName(playerid), param);
- GivePlayerCash(playerid, -25000);
- }
- else if(IsNumeric(option))
- {
- new amount = strval(option);
- if(amount < 1 || amount > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- gCharity += amount;
- AddToTaxVault(amount);
- GivePlayerCash(playerid, -amount);
- SendClientMessageEx(playerid, COLOR_ROYALBLUE, "Charity: Thank you for your generous donation of $%i.", amount);
- }
- return 1;
- }
- CMD:music(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "|____________________ List of Music ____________________|");
- HTTP(playerid, HTTP_GET, SERVER_FETCH_URL, "", "HTTP_OnMusicFetchResponse");
- return 1;
- }
- CMD:stopmusic(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You have stopped all active audio streams playing for yourself.");
- PlayerInfo[playerid][pStreamType] = MUSIC_NONE;
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- CMD:gplay(playerid, params[])
- {
- new url[144];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gplay [songfolder/name.mp3]");
- }
- format(url, sizeof(url), "http://%s/%s", SERVER_MUSIC_URL, params);
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleMusic])
- {
- PlayAudioStreamForPlayer(i, url);
- SendClientMessageEx(i, COLOR_LIGHTRED, "AdmCmd: %s has started the global playback of %s.", GetPlayerRPName(playerid), params);
- SendClientMessageEx(i, COLOR_YELLOW, "Use /stopmusic to stop playback and '/toggle streams' to disable global playback.");
- }
- }
- return 1;
- }
- CMD:gplayurl(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gplayurl [link]");
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleMusic])
- {
- PlayAudioStreamForPlayer(i, params);
- SendClientMessageEx(i, COLOR_LIGHTRED, "AdmCmd: %s has started the global playback of a custom URL.", GetPlayerRPName(playerid));
- SendClientMessageEx(i, COLOR_YELLOW, "Use /stopmusic to stop playback and '/toggle streams' to disable global playback.");
- }
- }
- return 1;
- }
- CMD:gstop(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- foreach(new i: Player)
- {
- if(!PlayerInfo[i][pToggleMusic])
- {
- StopAudioStreamForPlayer(i);
- SendClientMessageEx(i, COLOR_LIGHTRED, "AdmCmd: %s has stopped all active audio streams.", GetPlayerRPName(playerid));
- }
- }
- return 1;
- }
- CMD:dm(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /dm [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be punished.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet. You can wait until they login or use /oprison.");
- }
- PlayerInfo[targetid][pDMWarnings]++;
- if(PlayerInfo[targetid][pDMWarnings] < 5)
- {
- new minutes = PlayerInfo[targetid][pDMWarnings] * 60;
- PlayerInfo[targetid][pJailType] = 2;
- PlayerInfo[targetid][pJailTime] = PlayerInfo[targetid][pDMWarnings] * 3600;
- PlayerInfo[targetid][pWeaponRestricted] = PlayerInfo[targetid][pDMWarnings] * 4;
- ResetPlayer(targetid);
- ResetPlayerWeapons(targetid);
- SetPlayerInJail(targetid);
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was DM Warned & Prisoned for %i minutes by an Admin, reason: DM (%i/5)", GetPlayerRPName(targetid), minutes, PlayerInfo[targetid][pDMWarnings]);
- strcpy(PlayerInfo[targetid][pPrisonedBy], "Secret Admin", MAX_PLAYER_NAME);
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was DM Warned & Prisoned for %i minutes by %s, reason: DM (%i/5)", GetPlayerRPName(targetid), minutes, GetPlayerRPName(playerid), PlayerInfo[targetid][pDMWarnings]);
- GetPlayerName(playerid, PlayerInfo[targetid][pPrisonedBy], MAX_PLAYER_NAME);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET prisonedby = '%e', prisonreason = 'DM' WHERE uid = %i", PlayerInfo[targetid][pPrisonedBy], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- strcpy(PlayerInfo[targetid][pPrisonReason], "DM", 128);
- GameTextForPlayer(targetid, "~w~Welcome to~n~~r~admin jail", 5000, 3);
- SendClientMessageEx(targetid, COLOR_WHITE, "** You have been admin prisoned for %i minutes, reason: DM.", minutes);
- SendClientMessageEx(targetid, COLOR_WHITE, "** Your punishment is %i hours of weapon restriction and %i/5 DM warning.", PlayerInfo[targetid][pWeaponRestricted], PlayerInfo[targetid][pDMWarnings]);
- Log_Write("log_punishments", "%s (uid: %i) prisoned %s (uid: %i) for %i minutes, reason: DM [/dm]", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], minutes);
- }
- else
- {
- Log_Write("log_punishments", "%s (uid: %i) banned %s (uid: %i), reason: DM (5/5 warnings)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- BanPlayer(targetid, "Secret Admin", "DM (5/5 warnings)");
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was banned by an Admin, reason: DM (5/5 warnings)", GetPlayerRPName(targetid));
- }
- else
- {
- BanPlayer(targetid, GetPlayerNameEx(playerid), "DM (5/5 warnings)");
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was banned by %s, reason: DM (5/5 warnings)", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET jailtype = %i, jailtime = %i, dmwarnings = %i, weaponrestricted = %i WHERE uid = %i", PlayerInfo[targetid][pJailType], PlayerInfo[targetid][pJailTime], PlayerInfo[targetid][pDMWarnings], PlayerInfo[targetid][pWeaponRestricted], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:aduty(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty])
- {
- SetPlayerSpecialTag(playerid, TAG_ADMIN);
- SavePlayerVariables(playerid);
- ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 32767);
- SetScriptArmour(playerid, 0.0);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s is now on admin duty.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, "** You are now on admin duty. Your stats will not be saved until you're off duty.");
- PlayerInfo[playerid][pAdminDuty] = 1;
- if(strcmp(PlayerInfo[playerid][pAdminName], "None", true) != 0)
- {
- SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);
- }
- }
- else
- {
- //TogglePlayerSpectating(playerid, 1);
- SetPlayerSpecialTag(playerid, TAG_NONE);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM users WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_PROCESS_LOGIN, playerid);
- }
- return 1;
- }
- CMD:adminname(playerid, params[])
- {
- new name[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /adminname [name ('none' to reset)]");
- }
- if(!IsValidName(name))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The name specified is not supported by the SA-MP client.");
- }
- strcpy(PlayerInfo[playerid][pAdminName], name, MAX_PLAYER_NAME);
- if(PlayerInfo[playerid][pAdminDuty])
- {
- SetPlayerName(playerid, name);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET adminname = '%e' WHERE uid = %i", name, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s changed their administrator name to %s.", PlayerInfo[playerid][pUsername], name);
- return 1;
- }
- CMD:getip(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /getip [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s[%i]'s IP: %s **", GetPlayerRPName(targetid), targetid, GetPlayerIP(targetid));
- return 1;
- }
- CMD:ogetip(playerid, params[])
- {
- new name[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ogetip [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, ip FROM users WHERE username = '%e'", name);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_OFFLINE_IP, playerid);
- return 1;
- }
- CMD:iplookup(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!IsAnIP(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /iplookup [ip address]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, lastlogin FROM users WHERE ip = '%s' ORDER BY lastlogin DESC", params);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_TRACE_IP, playerid);
- return 1;
- }
- CMD:lastactive(playerid, params[])
- {
- new username[24], specifiers[] = "%D of %M, %Y @ %k:%i";
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /lastactive [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT DATE_FORMAT(lastlogin, '%s') FROM users WHERE username = '%e'", specifiers, username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminCheckLastActive", "is", playerid, username);
- return 1;
- }
- CMD:listjailed(playerid, params[])
- {
- new type[14];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Jailed Players _____|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJailType] > 0)
- {
- switch(PlayerInfo[i][pJailType])
- {
- case 1: type = "OOC jailed";
- case 2: type = "OOC prisoned";
- case 3: type = "IC prisoned";
- }
- SendClientMessageEx(playerid, COLOR_GREY1, "(ID: %i) %s - Status: %s - Time: %i seconds", i, GetPlayerRPName(i), type, PlayerInfo[i][pJailTime]);
- }
- }
- return 1;
- }
- CMD:prisoninfo(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /prisoninfo [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pJailType] != 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not in OOC prison.");
- }
-
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s was prisoned by %s, reason: %s (%i seconds left.) **", GetPlayerRPName(targetid), PlayerInfo[targetid][pPrisonedBy], PlayerInfo[targetid][pPrisonReason], PlayerInfo[targetid][pJailTime]);
- return 1;
- }
- CMD:arelog(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /arelog [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
-
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has forced %s to relog.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SavePlayerVariables(targetid);
- ResetPlayer(targetid);
- PlayerInfo[targetid][pLogged] = 0;
- CallLocalFunction("OnPlayerRequestClass", "ii", playerid, 0);
- return 1;
- }
- CMD:relog(playerid, params[])
- {
- SendProximityMessage(playerid, 20.0, COLOR_YELLOW, "((%s has just used /relog, they'll be respawned in a few.))", GetPlayerRPName(playerid));
- SavePlayerVariables(playerid);
- ResetPlayer(playerid);
- PlayerInfo[playerid][pLogged] = 0;
- CallLocalFunction("OnPlayerRequestClass", "ii", playerid, 0);
- return 1;
- }
- CMD:setint(playerid, params[])
- {
- new targetid, interiorid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, interiorid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setint [playerid] [int]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!(0 <= interiorid <= 19))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid interior. Valid interiors range from 0 to 19.");
- }
- SetPlayerInterior(targetid, interiorid);
- SendClientMessageEx(playerid, COLOR_GREY2, "%s's interior set to ID %i.", GetPlayerRPName(targetid), interiorid);
- return 1;
- }
- CMD:setvw(playerid, params[])
- {
- new targetid, worldid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, worldid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setvw [playerid] [vw]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SetPlayerVirtualWorld(targetid, worldid);
- SendClientMessageEx(playerid, COLOR_GREY2, "%s's virtual world set to ID %i.", GetPlayerRPName(targetid), worldid);
- return 1;
- }
- CMD:setskin(playerid, params[])
- {
- new targetid, skinid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, skinid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setskin [playerid] [skinid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!(0 <= skinid <= 311))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin specified.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is either not spawned, or spectating.");
- }
- PlayerInfo[targetid][pSkin] = skinid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET skin = %i WHERE uid = %i", skinid, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SetPlayerSkin(targetid, skinid);
- SendClientMessageEx(playerid, COLOR_GREY2, "%s's skin set to ID %i.", GetPlayerRPName(targetid), skinid);
- return 1;
- }
- CMD:revive(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /revive [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is not injured.");
- }
- PlayerInfo[targetid][pInjured] = 0;
- SetPlayerHealth(targetid, 100.0);
- ClearAnimations(targetid, 1);
- SendClientMessage(targetid, COLOR_YELLOW, "You have been revived by an admin!");
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has revived %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:heject(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /heject [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pHospital])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is not in hospital.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s ejected %s from the hospital.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- PlayerInfo[targetid][pHospitalTime] = 1;
- SendClientMessage(targetid, COLOR_YELLOW, "You have been ejected from hospital by an admin!");
- return 1;
- }
- CMD:goto(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "u", targetid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /goto [playerid/location]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: LS, SF, LV, Grove, Idlewood, Unity, Jefferson, Market, Airport, Bank");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Dealership, VIP, Paintball, DMV, Casino , Sheriff.");
- return 1;
- }
- if(!strcmp(params, "ls", true))
- {
- TeleportToCoords(playerid, 1544.4407, -1675.5522, 13.5584, 90.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Los Santos.");
- }
- else if(!strcmp(params, "sheriff", true))
- {
- TeleportToCoords(playerid, 633.5168,-572.1016,16.3359,269.8317, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Sheriff Department.");
- }
- else if(!strcmp(params, "sf", true))
- {
- TeleportToCoords(playerid, -1421.5629, -288.9972, 14.1484, 135.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to San Fierro.");
- }
- else if(!strcmp(params, "lv", true))
- {
- TeleportToCoords(playerid, 1670.6908, 1423.5240, 10.7811, 270.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Las Venturas.");
- }
- else if(!strcmp(params, "grove", true))
- {
- TeleportToCoords(playerid, 2497.8274, -1668.9033, 13.3438, 90.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Grove Street.");
- }
- else if(!strcmp(params, "idlewood", true))
- {
- TeleportToCoords(playerid, 2090.0664, -1816.9071, 13.3904, 90.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Idlewood.");
- }
- else if(!strcmp(params, "unity", true))
- {
- TeleportToCoords(playerid, 1782.2683, -1865.5726, 13.5725, 0.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Unity Station.");
- }
- else if(!strcmp(params, "jefferson", true))
- {
- TeleportToCoords(playerid, 2222.3438, -1164.5013, 25.7331, 0.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Jefferson Motel.");
- }
- else if(!strcmp(params, "market", true))
- {
- TeleportToCoords(playerid, 1182.8157,-1321.8223,13.5780,268.1925, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Market.");
- }
- else if(!strcmp(params, "airport", true))
- {
- TeleportToCoords(playerid, 1938.7185, -2370.6375, 13.5469, 0.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to LS airport.");
- }
- else if(!strcmp(params, "bank", true))
- {
- TeleportToCoords(playerid, 1463.8929, -1026.6189, 23.8281, 180.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Mulholland bank.");
- }
- else if(!strcmp(params, "dealership", true))
- {
- TeleportToCoords(playerid, 546.7000, -1281.5160, 17.2482, 180.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Grotti dealership.");
- }
- else if(!strcmp(params, "vip", true))
- {
- TeleportToCoords(playerid, 1024.2438, -1553.4551, 13.5691, 90.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to VIP lounge.");
- }
- else if(!strcmp(params, "paintball", true))
- {
- TeleportToCoords(playerid, 1309.8982,-1372.4384,13.6015,176.5527, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Paintball.");
- }
- else if(!strcmp(params, "dmv", true))
- {
- TeleportToCoords(playerid, 1224.1537, -1824.5253, 13.5900, 180.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to DMV.");
- }
- else if(!strcmp(params, "casino", true))
- {
- TeleportToCoords(playerid, 1022.5992, -1122.8069, 23.8710, 180.0000, 0, 0);
- SendClientMessage(playerid, COLOR_GREY2, "Teleported to Casino.");
- }
- else
- {
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is either not spawned, or spectating.");
- }
- TeleportToPlayer(playerid, targetid);
- SendClientMessageEx(playerid, COLOR_GREY2, "Teleported to %s's position.", GetPlayerRPName(targetid));
- }
- return 1;
- }
- CMD:gethere(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gethere [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is either not spawned, or spectating.");
- }
- if(PlayerInfo[targetid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently in the paintball arena.");
- }
- TeleportToPlayer(targetid, playerid);
- SendClientMessageEx(playerid, COLOR_GREY2, "Teleported %s to your position.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:gotocar(playerid, params[])
- {
- new vehicleid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotocar [vehicleid]");
- }
- if(!IsValidVehicle(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle specified.");
- }
- TeleportToVehicle(playerid, vehicleid);
- SendClientMessageEx(playerid, COLOR_GREY2, "Teleported to vehicle ID %i.", vehicleid);
- return 1;
- }
- CMD:getcar(playerid, params[])
- {
- new vehicleid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /getcar [vehicleid]");
- }
- if(!IsValidVehicle(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle specified.");
- }
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetVehiclePos(vehicleid, x + 1, y + 1, z + 2.0);
- SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
- LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
- SendClientMessageEx(playerid, COLOR_GREY2, "Teleported vehicle ID %i to your position.", vehicleid);
- return 1;
- }
- CMD:gotocoords(playerid, params[])
- {
- new Float:x, Float:y, Float:z, interiorid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "fffI(0)", x, y, z, interiorid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotocoords [x] [y] [z] [int (optional)]");
- }
- SetPlayerPos(playerid, x, y, z);
- SetPlayerInterior(playerid, interiorid);
- return 1;
- }
- CMD:gotoint(playerid, params[])
- {
- static list[4096];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(isnull(list))
- {
- for(new i = 0; i < sizeof(interiorArray); i ++)
- {
- format(list, sizeof(list), "%s\n%s", list, interiorArray[i][intName]);
- }
- }
- ShowPlayerDialog(playerid, DIALOG_INTERIORS, DIALOG_STYLE_LIST, "Choose an interior to teleport to.", list, "Select", "Cancel");
- return 1;
- }
- CMD:jetpack(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- PlayerInfo[playerid][pJetpack] = 1;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
- GameTextForPlayer(playerid, "~g~Jetpack", 3000, 3);
- switch(random(4))
- {
- case 0: SendClientMessage(playerid, COLOR_WHITE, "** Random Fact: The jetpack is part of an experiment conducted at the Area 69 facility.");
- case 1: SendClientMessage(playerid, COLOR_WHITE, "** Random Fact: You stole this from Area 69 in that one single player mission. Remember?");
- case 2: SendClientMessage(playerid, COLOR_WHITE, "** Random Fact: You probably don't need this anyway. All you admins seem to do is airbreak around the map.");
- case 3: SendClientMessage(playerid, COLOR_WHITE, "** Random Fact: You probably aren't reading this anyway. Fuck you.");
- }
- return 1;
- }
- CMD:sendto(playerid, params[])
- {
- new targetid, option[12], param[32];
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[12]S()[32]", targetid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sendto [playerid] [location]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Player, Vehicle, LS, SF, LV, Grove, Idlewood, Unity, Jefferson, Market, Bank");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Dealership, VIP, Paintball, DMV, Casino, Sheriff.");
- return 1;
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is either not spawned, or spectating.");
- }
- if(PlayerInfo[targetid][pJailType])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player is in jail so you can't teleport them.");
- }
- if(PlayerInfo[targetid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently in the paintball arena.");
- }
- if(PlayerInfo[playerid][pAdmin] < 2 && isnull(PlayerInfo[targetid][pHelpRequest]) && PlayerInfo[playerid][pAcceptedHelp] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't submitted a help request. Therefore you can't teleport them.");
- }
- if(!strcmp(option, "ls", true))
- {
- TeleportToCoords(targetid, 1544.4407, -1675.5522, 13.5584, 90.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Los Santos.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Los Santos.", GetPlayerRPName(playerid));
- }
- if(!strcmp(option, "sheriff", true))
- {
- TeleportToCoords(targetid, 633.5168,-572.1016,16.3359,269.8317, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Sheriff Department", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Sheriff Department.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "sf", true))
- {
- TeleportToCoords(targetid, -1421.5629, -288.9972, 14.1484, 135.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to San Fierro.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to San Fierro.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "lv", true))
- {
- TeleportToCoords(targetid, 1670.6908, 1423.5240, 10.7811, 270.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Las Venturas.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Las Venturas.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "grove", true))
- {
- TeleportToCoords(targetid, 2497.8274, -1668.9033, 13.3438, 90.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Grove Street.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Grove Street.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "idlewood", true))
- {
- TeleportToCoords(targetid, 2090.0664, -1816.9071, 13.3904, 90.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Idlewood.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Idlewood.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "unity", true))
- {
- TeleportToCoords(targetid, 1782.2683, -1865.5726, 13.5725, 0.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Unity Station.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Unity Station.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "jefferson", true))
- {
- TeleportToCoords(targetid, 2222.3438, -1164.5013, 25.7331, 0.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Jefferson Motel.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Jefferson Motel.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "market", true))
- {
- TeleportToCoords(targetid, 1182.8157,-1321.8223,13.5780,268.1925, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Market.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Market.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "bank", true))
- {
- TeleportToCoords(targetid, 1463.8929, -1026.6189, 23.8281, 180.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to the Bank.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to the Bank.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "dealership", true))
- {
- TeleportToCoords(targetid, 546.7000, -1281.5160, 17.2482, 180.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Grotti car dealership.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Grotti car dealership.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "vip", true))
- {
- TeleportToCoords(targetid, 1024.2438, -1553.4551, 13.5691, 90.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to the VIP lounge.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to the VIP lounge.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "paintball", true))
- {
- TeleportToCoords(targetid, 1309.8982,-1372.4384,13.6015,176.5527, 0, 0);
-
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Paintball.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Paintball.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "dmv", true))
- {
- TeleportToCoords(targetid, 1224.1537, -1824.5253, 13.5900, 180.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to the DMV.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to the DMV.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "casino", true))
- {
- TeleportToCoords(targetid, 1022.5992, -1122.8069, 23.8710, 180.0000, 0, 0);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to Casino.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to Casino.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "player", true))
- {
- new sendtargetid;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Only level 2+ admins can do this.");
- }
- if(sscanf(param, "u", sendtargetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sendto [playerid] [player] [targetid]");
- }
- if(!IsPlayerConnected(sendtargetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The target specified is disconnected.");
- }
- if(!IsPlayerSpawned(sendtargetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The target specified is either not spawned, or spectating.");
- }
- TeleportToPlayer(targetid, sendtargetid);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to %s's location.", GetPlayerRPName(targetid), GetPlayerRPName(sendtargetid));
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to %s's location.", GetPlayerRPName(playerid), GetPlayerRPName(sendtargetid));
- }
- else if(!strcmp(option, "vehicle", true))
- {
- new vehicleid;
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Only level 2+ admins can do this.");
- }
- if(sscanf(param, "i", vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sendto [playerid] [vehicle] [vehicleid]");
- }
- if(!IsValidVehicle(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle specified.");
- }
- TeleportToVehicle(targetid, vehicleid);
- SendClientMessageEx(playerid, COLOR_GREY2, "You have sent %s to vehicle ID %i.", GetPlayerRPName(targetid), vehicleid);
- SendClientMessageEx(targetid, COLOR_GREY2, "%s has sent you to vehicle ID %i.", GetPlayerRPName(playerid), vehicleid);
- }
- return 1;
- }
- CMD:listen(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(!PlayerInfo[playerid][pListen])
- {
- PlayerInfo[playerid][pListen] = 1;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has enabled the bigears system.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You are now listening to all IC & local OOC chats.");
- }
- else
- {
- PlayerInfo[playerid][pListen] = 0;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s is no longer enabling the bigears system.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You are no longer listening to IC & local OOC chats.");
- }
- return 1;
- }
- CMD:jail(playerid, params[])
- {
- new targetid, minutes, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uis[128]", targetid, minutes, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /jail [playerid] [minutes] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be jailed.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet. You can wait until they login or use /ojail.");
- }
- if(minutes < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of minutes cannot be below one. /unjail to release a player.");
- }
- PlayerInfo[targetid][pJailType] = 1;
- PlayerInfo[targetid][pJailTime] = minutes * 60;
- ResetPlayerWeaponsEx(targetid);
- ResetPlayer(targetid);
- SetPlayerInJail(targetid);
- Log_Write("log_punishments", "%s (uid: %i) jailed %s (uid: %i) for %i minutes, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], minutes, reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was jailed for %i minutes by %s, reason: %s", GetPlayerRPName(targetid), minutes, GetPlayerRPName(playerid), reason);
- SendClientMessageEx(targetid, COLOR_AQUA, "** You have been admin jailed for %i minutes by %s.", minutes, GetPlayerRPName(playerid));
- return 1;
- }
- CMD:rwarn(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rwarn [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pReportMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is muted from reports.");
- }
- PlayerInfo[targetid][pReportWarns]++;
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** %s issued you a report warning, reason: %s (%i/3)", GetPlayerRPName(playerid), reason, PlayerInfo[targetid][pReportWarns]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was given a report warning by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- if(PlayerInfo[targetid][pReportWarns] >= 3)
- {
- PlayerInfo[targetid][pReportMuted] = 12;
- SendClientMessage(targetid, COLOR_LIGHTRED, "** You have been muted from reports for 12 playing hours.");
- }
- return 1;
- }
- CMD:runmute(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /runmute [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pReportMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is not muted from reports.");
- }
- PlayerInfo[targetid][pReportWarns] = 0;
- PlayerInfo[targetid][pReportMuted] = 0;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was unmuted from reports by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "** Your report mute has been lifted by %s. Your report warnings were reset.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:nmute(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /nmute [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pNewbieMuted])
- {
- PlayerInfo[targetid][pNewbieMuted] = 1;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was muted from newbie chat by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** You have been muted from newbie chat by %s.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[targetid][pNewbieMuted] = 0;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was unmuted from newbie chat by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "** You have been unmuted from newbie chat by %s.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:hmute(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2 && PlayerInfo[playerid][pHelper] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /hmute [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pHelpMuted])
- {
- PlayerInfo[targetid][pHelpMuted] = 1;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was muted from help requests by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** You have been muted from help requests by %s.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[targetid][pHelpMuted] = 0;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was unmuted from help requests by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "** You have been unmuted from help requests by %s.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:admute(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /admute [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pAdMuted])
- {
- PlayerInfo[targetid][pAdMuted] = 1;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was muted from advertisements by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** You have been muted from advertisements by %s.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[targetid][pAdMuted] = 0;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was unmuted from advertisements by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "** You have been unmuted from advertisements by %s.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:gmute(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gmute [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pGlobalMuted])
- {
- PlayerInfo[targetid][pGlobalMuted] = 1;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was muted from global chat by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** You have been muted from global chat by %s.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[targetid][pGlobalMuted] = 0;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was unmuted from global chat by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "** You have been unmuted from global chat by %s.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:rmute(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rmute [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pReportMuted])
- {
- PlayerInfo[targetid][pReportMuted] = 99999;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was muted from submitting reports by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** You have been muted from submitting reports by %s.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[targetid][pReportMuted] = 0;
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s was unmuted from submitting reports by %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "** You have been unmuted from submitting reports by %s.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:freeze(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /freeze [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- TogglePlayerControllable(targetid, 0);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was frozen by %s.", GetPlayerNameEx(targetid), GetPlayerNameEx(playerid));
- return 1;
- }
- CMD:unfreeze(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unfreeze [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pTazedTime])
- {
- ClearAnimations(targetid, 1);
- PlayerInfo[targetid][pTazedTime] = 0;
- }
- TogglePlayerControllable(targetid, 1);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s was unfrozen by %s.", GetPlayerNameEx(targetid), GetPlayerNameEx(playerid));
- return 1;
- }
- /*
- CMD:skiptut(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /skiptut [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pTutorial])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player isn't currently watching the tutorial.");
- }
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s has forced you out of the tutorial.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s forced %s out of the tutorial.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- KillTimer(PlayerInfo[targetid][pTutorialTimer]);
- TutorialTimer(targetid, 11);
- return 1;
- }
- */
- CMD:listguns(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /listguns [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|______ %s's Weapons ______|", GetPlayerRPName(targetid));
- for(new i = 0; i < 13; i ++)
- {
- new
- weapon,
- ammo;
- GetPlayerWeaponData(targetid, i, weapon, ammo);
- if(weapon)
- {
- if(PlayerInfo[targetid][pAmmoType] != AMMOTYPE_NORMAL && PlayerInfo[targetid][pAmmoWeapon] == weapon) {
- if(PlayerInfo[targetid][pAmmoType] == AMMOTYPE_HP) {
- SendClientMessageEx(playerid, COLOR_GREY2, "-> %s (%i ammo) (Hollow point ammo)", GetWeaponNameEx(weapon), PlayerInfo[targetid][pHPAmmo]);
- } else if(PlayerInfo[targetid][pAmmoType] == AMMOTYPE_POISON) {
- SendClientMessageEx(playerid, COLOR_GREY2, "-> %s (%i ammo) (Poison tip ammo)", GetWeaponNameEx(weapon), PlayerInfo[targetid][pPoisonAmmo]);
- } else if(PlayerInfo[targetid][pAmmoType] == AMMOTYPE_FMJ) {
- SendClientMessageEx(playerid, COLOR_GREY2, "-> %s (%i ammo) (FMJ ammo)", GetWeaponNameEx(weapon), PlayerInfo[targetid][pFMJAmmo]);
- }
- }
- else if(!PlayerHasWeapon(targetid, weapon)) {
- SendClientMessageEx(playerid, COLOR_GREY2, "-> %s {FFD700}(Desynced){C8C8C8}", GetWeaponNameEx(weapon));
- } else {
- SendClientMessageEx(playerid, COLOR_GREY2, "-> %s", GetWeaponNameEx(weapon));
- }
- }
- }
- return 1;
- }
- CMD:disarm(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /disarm [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- ResetPlayerWeaponsEx(targetid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has disarmed %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:nrn(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /nrn [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- /*if(PlayerInfo[targetid][pLevel] > 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is level 3 or above and doesn't need a free namechange.");
- }*/
- ShowPlayerDialog(targetid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has forced %s to change their name for being Non-RP.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:prison(playerid, params[])
- {
- new targetid, minutes, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uis[128]", targetid, minutes, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /prison [playerid] [minutes] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be prisoned.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet. You can wait until they login or use /oprison.");
- }
- if(minutes < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of minutes cannot be below one. /unjail to release a player.");
- }
- PlayerInfo[targetid][pJailType] = 2;
- PlayerInfo[targetid][pJailTime] = minutes * 60;
- ResetPlayerWeaponsEx(targetid);
- ResetPlayer(targetid);
- SetPlayerInJail(targetid);
- GameTextForPlayer(targetid, "~w~Welcome to~n~~r~admin jail", 5000, 3);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET prisonedby = '%e', prisonreason = '%e' WHERE uid = %i", GetPlayerNameEx(playerid), reason, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- GetPlayerName(playerid, PlayerInfo[targetid][pPrisonedBy], MAX_PLAYER_NAME);
- strcpy(PlayerInfo[targetid][pPrisonReason], reason, 128);
- Log_Write("log_punishments", "%s (uid: %i) prisoned %s (uid: %i) for %i minutes, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], minutes, reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was prisoned for %i minutes by %s, reason: %s", GetPlayerRPName(targetid), minutes, GetPlayerRPName(playerid), reason);
- SendClientMessageEx(targetid, COLOR_AQUA, "** You have been admin prisoned for %i minutes by %s.", minutes, GetPlayerRPName(playerid));
- return 1;
- }
- CMD:oprison(playerid, params[])
- {
- new username[MAX_PLAYERS], minutes, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]is[128]", username, minutes, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /oprison [username] [minutes] [reason]");
- }
- if(minutes < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of minutes cannot be below one. /unjail to release a player.");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use /prison instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT adminlevel, uid FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminOfflinePrison", "isis", playerid, username, minutes, reason);
- return 1;
- }
- CMD:release(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /release [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pJailType])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not jailed.");
- }
- PlayerInfo[targetid][pJailTime] = 1;
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was released from jail/prison by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- return 1;
- }
- CMD:fine(playerid, params[])
- {
- new targetid, amount, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uis[128]", targetid, amount, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /fine [playerid] [amount] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be fined.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid amount.");
- }
- GivePlayerCash(targetid, -amount);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was fined $%i by %s, reason: %s", GetPlayerRPName(targetid), amount, GetPlayerRPName(playerid), reason);
- Log_Write("log_admin", "%s (uid: %i) fined %s (uid: %i) for $%i, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], amount, reason);
- return 1;
- }
- CMD:pfine(playerid, params[])
- {
- new targetid, percent, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uis[128]", targetid, percent, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /pfine [playerid] [percent] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!(1 <= percent <= 100))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The percentage value must be between 1 and 100.");
- }
- new amount = ((PlayerInfo[targetid][pCash] + PlayerInfo[targetid][pBank]) / 100) * percent;
- GivePlayerCash(targetid, -amount);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was fined $%i by %s, reason: %s", GetPlayerRPName(targetid), amount, GetPlayerRPName(playerid), reason);
- Log_Write("log_admin", "%s (uid: %i) fined %s (uid: %i) for $%i (%i percent), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], amount, percent, reason);
- return 1;
- }
- CMD:ofine(playerid, params[])
- {
- new username[MAX_PLAYERS], amount, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]is[128]", username, amount, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ofine [username] [amount] [reason]");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid amount.");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use /fine instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT adminlevel FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminOfflineFine", "isis", playerid, username, amount, reason);
- return 1;
- }
- CMD:sethp(playerid, params[])
- {
- new targetid, Float:amount;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "uf", targetid, amount))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sethp [playerid] [amount]");
- SendClientMessage(playerid, COLOR_GREY3, "Warning: Values above 255.0 may not work properly with the server-sided damage system.");
- return 1;
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SetPlayerHealth(targetid, amount);
- SendClientMessageEx(playerid, COLOR_GREY2, "%s's health set to %.1f.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:setarmor(playerid, params[])
- {
- new targetid, Float:amount;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "uf", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setarmor [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SetScriptArmour(targetid, amount);
- SendClientMessageEx(playerid, COLOR_GREY2, "%s's armor set to %.1f.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:refillcars(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i))
- {
- vehicleFuel[i] = 100;
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s refilled all vehicles to maximum fuel.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:refilldrug(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /refilldrug [seeds | cocaine | ephedrine]");
- SendClientMessage(playerid, COLOR_GREY3, "This command refills the specified drug stock to maximum value.");
- return 1;
- }
- if(!strcmp(params, "seeds", true))
- {
- gSeedsStock = 1000;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has refilled the seeds in the drug den.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(params, "cocaine", true))
- {
- gCocaineStock = 500;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has refilled the cocaine in the crack house.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(params, "ephedrine", true))
- {
- gEphedrineStock = 250;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has refilled the ephedrine in the drug den.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:togooc(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!enabledOOC)
- {
- enabledOOC = 1;
- SendClientMessageToAllEx(COLOR_WHITE, "(( Administrator %s enabled the OOC channel. ))", GetPlayerRPName(playerid));
- }
- else
- {
- enabledOOC = 0;
- SendClientMessageToAllEx(COLOR_WHITE, "(( Administrator %s disabled the OOC channel. ))", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:tognewbie(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!enabledNewbie)
- {
- enabledNewbie = 1;
- SendClientMessageToAllEx(COLOR_NEWBIE, "** Administrator %s enabled the newbie channel.", GetPlayerRPName(playerid));
- }
- else
- {
- enabledNewbie = 0;
- SendClientMessageToAllEx(COLOR_NEWBIE, "** Administrator %s disabled the newbie channel.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:togglobal(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!enabledGlobal)
- {
- enabledGlobal = 1;
- SendClientMessageToAllEx(COLOR_GLOBAL, "(( Administrator %s enabled the global channel. ))", GetPlayerRPName(playerid));
- }
- else
- {
- enabledGlobal = 0;
- SendClientMessageToAllEx(COLOR_GLOBAL, "(( Administrator %s disabled the global channel. ))", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:togreports(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!enabledReports)
- {
- enabledReports = 1;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has enabled the report channel.", GetPlayerRPName(playerid));
- }
- else
- {
- enabledReports = 0;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has disabled the report channel.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:listpvehs(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /listpvehs [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|____ %s's Vehicles ____|", GetPlayerRPName(targetid));
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && IsVehicleOwner(targetid, i))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "ID: %i | Model: %s | Location: %s", i, GetVehicleName(i), GetVehicleZoneName(i));
- }
- }
- return 1;
- }
- CMD:despawnpveh(playerid, params[])
- {
- new vehicleid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /despawnpveh [vehicleid]");
- }
- if(!IsValidVehicle(vehicleid) || !VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The vehicle specified is invalid or not owned by any player.");
- }
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have despawned %s's %s.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid));
- DespawnVehicle(vehicleid);
- return 1;
- }
- CMD:veh(playerid, params[])
- {
- new model[20], modelid, color1, color2, Float:x, Float:y, Float:z, Float:a, vehicleid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "s[20]I(-1)I(-1)", model, color1, color2))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /veh [modelid/name] [color1 (optional)] [color2 (optional)]");
- }
- if((modelid = GetVehicleModelByName(model)) == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model.");
- }
- if(!(-1 <= color1 <= 255) || !(-1 <= color2 <= 255))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid color. Valid colors range from -1 to 255.");
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- vehicleid = AddStaticVehicleEx(modelid, x, y, z, a, color1, color2, -1);
- if(vehicleid == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Cannot spawn vehicle. The vehicle pool is currently full.");
- }
- adminVehicle{vehicleid} = true;
- vehicleFuel[vehicleid] = 100;
- vehicleColors[vehicleid][0] = color1;
- vehicleColors[vehicleid][1] = color2;
- SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
- LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s spawned a %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s (ID %i) spawned. Use '/savevehicle %i' to save this vehicle to the database.", GetVehicleName(vehicleid), vehicleid, vehicleid);
- return 1;
- }
- CMD:savevehicle(playerid, params[])
- {
- new vehicleid, gangid, type, delay, Float:x, Float:y, Float:z, Float:a;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "iiii", vehicleid, gangid, type, delay))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /savevehicle [vehicleid] [gangid (-1 = none)] [faction type] [respawn delay (seconds)]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (0) None (1) Police (2) Medic (3) News (4) Government (5) Hitman (6) Federal");
- return 1;
- }
- if(!IsValidVehicle(vehicleid) || !adminVehicle{vehicleid})
- {
- return SendClientMessage(playerid, COLOR_GREY, "The vehicle specified is either invalid or not an admin spawned vehicle.");
- }
- if(!(-1 <= gangid < MAX_GANGS) || (gangid >= 0 && !GangInfo[gangid][gSetup]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- if(!(0 <= type <= 7))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s saved. This vehicle will now spawn here from now on.", GetVehicleName(vehicleid));
- GetVehiclePos(vehicleid, x, y, z);
- GetVehicleZAngle(vehicleid, a);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (modelid, pos_x, pos_y, pos_z, pos_a, color1, color2, gangid, factiontype, respawndelay) VALUES(%i, '%f', '%f', '%f', '%f', %i, %i, %i, %i, %i)", GetVehicleModel(vehicleid), x, y, z, a, vehicleColors[vehicleid][0], vehicleColors[vehicleid][1], gangid, type, delay);
- mysql_tquery(connectionID, queryBuffer);
- mysql_tquery(connectionID, "SELECT * FROM vehicles WHERE id = LAST_INSERT_ID()", "OnQueryFinished", "ii", THREAD_LOAD_VEHICLES, 0);
- adminVehicle{vehicleid} = false;
- DestroyVehicle(vehicleid);
- return 1;
- }
- CMD:editvehicle(playerid, params[])
- {
- new vehicleid, option[14], param[32], value;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[14]S()[32]", vehicleid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Spawn, Price, Tickets, Locked, Plate, Color, Paintjob, Neon, Trunk, Health");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Gang, Faction, Job, Respawndelay");
- return 1;
- }
- if(!IsValidVehicle(vehicleid) || !VehicleInfo[vehicleid][vID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The vehicle specified is invalid or a static vehicle.");
- }
- if(!strcmp(option, "spawn", true))
- {
- new id = VehicleInfo[vehicleid][vID];
- if(VehicleInfo[vehicleid][vFactionType] > 0 && GetPlayerInterior(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't set the spawn of a faction vehicle indoors.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ]);
- GetVehicleZAngle(vehicleid, VehicleInfo[vehicleid][vPosA]);
- }
- else
- {
- GetPlayerPos(playerid, VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ]);
- GetPlayerFacingAngle(playerid, VehicleInfo[vehicleid][vPosA]);
- }
- if(VehicleInfo[vehicleid][vGang] >= 0 || VehicleInfo[vehicleid][vOwnerID] > 0)
- {
- VehicleInfo[vehicleid][vInterior] = GetPlayerInterior(playerid);
- VehicleInfo[vehicleid][vWorld] = GetPlayerVirtualWorld(playerid);
- SaveVehicleModifications(vehicleid);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', interior = %i, world = %i WHERE id = %i", VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ], VehicleInfo[vehicleid][vPosA], VehicleInfo[vehicleid][vInterior], VehicleInfo[vehicleid][vWorld], id);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have moved the spawn point for %s (ID %i).", GetVehicleName(vehicleid), vehicleid);
- SendClientMessage(playerid, COLOR_WHITE, "Note: The vehicle's ID may have changed in the mean time.");
- DespawnVehicle(vehicleid, false);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM vehicles WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_VEHICLES, -1);
- }
- else if(!strcmp(option, "price", true))
- {
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option can only be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [price] [value]");
- }
- VehicleInfo[vehicleid][vPrice] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET price = %i WHERE id = %i", VehicleInfo[vehicleid][vPrice], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the price of %s's %s (ID %i) to $%i.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid), vehicleid, value);
- }
- else if(!strcmp(option, "tickets", true))
- {
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option can only be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [tickets] [value]");
- }
- VehicleInfo[vehicleid][vTickets] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET tickets = %i WHERE id = %i", VehicleInfo[vehicleid][vTickets], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the tickets of %s's %s (ID %i) to $%i.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid), vehicleid, value);
- }
- else if(!strcmp(option, "locked", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [locked] [0/1]");
- }
- if(VehicleInfo[vehicleid][vFactionType] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Faction vehicles can't be locked.");
- }
- VehicleInfo[vehicleid][vLocked] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET locked = %i WHERE id = %i", VehicleInfo[vehicleid][vLocked], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SetVehicleParams(vehicleid, VEHICLE_DOORS, value);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the locked state of %s (ID %i) to %i.", GetVehicleName(vehicleid), vehicleid, value);
- }
- else if(!strcmp(option, "plate", true))
- {
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option can only be adjusted on player owned vehicles.");
- }
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [plate] [text]");
- }
- strcpy(VehicleInfo[vehicleid][vPlate], param, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET plate = '%e' WHERE id = %i", VehicleInfo[vehicleid][vPlate], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ResyncVehicle(vehicleid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the license plate of %s's %s (ID %i) to %s.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid), vehicleid, param);
- SendClientMessage(playerid, COLOR_WHITE, "Note: The vehicle will need to be respawned for changes to take effect.");
- }
- else if(!strcmp(option, "color", true))
- {
- new color1, color2;
- if(sscanf(param, "ii", color1, color2))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [color] [color 1] [color 2]");
- }
- if(!(0 <= color1 <= 255) || !(0 <= color2 <= 255))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The colors must range from 0 to 255.");
- }
- VehicleInfo[vehicleid][vColor1] = color1;
- VehicleInfo[vehicleid][vColor2] = color2;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET color1 = %i, color2 = %i WHERE id = %i", VehicleInfo[vehicleid][vColor1], VehicleInfo[vehicleid][vColor2], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ChangeVehicleColor(vehicleid, color1, color2);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the colors of %s (ID %i) to %i, %i.", GetVehicleName(vehicleid), vehicleid, color1, color2);
- }
- else if(!strcmp(option, "paintjob", true))
- {
- new paintjobid;
- if(sscanf(param, "i", paintjobid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [paintjobid] [value (-1 = none)]");
- }
- if(!(-1 <= paintjobid <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The paintjob must range from -1 to 5.");
- }
- if(VehicleInfo[vehicleid][vFactionType] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't change the paintjob on a faction vehicle.");
- }
- VehicleInfo[vehicleid][vPaintjob] = paintjobid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET paintjob = %i WHERE id = %i", VehicleInfo[vehicleid][vPaintjob], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ChangeVehiclePaintjob(vehicleid, paintjobid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the paintjob of %s (ID %i) to %i.", GetVehicleName(vehicleid), vehicleid, paintjobid);
- }
- else if(!strcmp(option, "neon", true))
- {
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option can only be adjusted on player owned vehicles.");
- }
- if(isnull(param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [neon] [color]");
- SendClientMessage(playerid, COLOR_GREY3, "List of colors: None, Red, Blue, Green, Yellow, Pink, White");
- return 1;
- }
- if(!strcmp(param, "neon", true)) {
- SetVehicleNeon(vehicleid, 0);
- } else if(!strcmp(param, "red", true)) {
- SetVehicleNeon(vehicleid, 18647);
- } else if(!strcmp(param, "blue", true)) {
- SetVehicleNeon(vehicleid, 18648);
- } else if(!strcmp(param, "green", true)) {
- SetVehicleNeon(vehicleid, 18649);
- } else if(!strcmp(param, "yellow", true)) {
- SetVehicleNeon(vehicleid, 18650);
- } else if(!strcmp(param, "pink", true)) {
- SetVehicleNeon(vehicleid, 18651);
- } else if(!strcmp(param, "white", true)) {
- SetVehicleNeon(vehicleid, 18652);
- } else {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid color.");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the neon type of %s's %s (ID %i) to %s.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid), vehicleid, param);
- }
- else if(!strcmp(option, "trunk", true))
- {
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option can only be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", value) || !(0 <= value <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [trunk] [level (0-3)]");
- }
- VehicleInfo[vehicleid][vTrunk] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET trunk = %i WHERE id = %i", VehicleInfo[vehicleid][vTrunk], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the trunk of %s's %s (ID %i) to level %i/3.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid), vehicleid, value);
- }
- else if(!strcmp(option, "health", true))
- {
- new Float:amount;
- if(sscanf(param, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [health] [amount]");
- }
- if(!(300.0 <= amount <= 10000.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The health value must range from 300.0 to 10000.0.");
- }
- VehicleInfo[vehicleid][vHealth] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET health = '%f' WHERE id = %i", VehicleInfo[vehicleid][vHealth], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SetVehicleHealth(vehicleid, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the health of %s (ID %i) to %.2f.", GetVehicleName(vehicleid), vehicleid, amount);
- }
- else if(!strcmp(option, "gang", true))
- {
- new gangid;
- if(VehicleInfo[vehicleid][vOwnerID] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option cannot be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", gangid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [gang] [gangid (-1 = none)]");
- }
- if(!(-1 <= gangid < MAX_GANGS) || (gangid >= 0 && !GangInfo[gangid][gSetup]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- VehicleInfo[vehicleid][vGang] = gangid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET gangid = %i WHERE id = %i", VehicleInfo[vehicleid][vGang], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- if(gangid == -1)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have reset the gang for %s (ID %i).", GetVehicleName(vehicleid), vehicleid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the gang of %s (ID %i) to %s (%i).", GetVehicleName(vehicleid), vehicleid, GangInfo[gangid][gName], gangid);
- }
- else if(!strcmp(option, "faction", true))
- {
- new type;
- if(VehicleInfo[vehicleid][vOwnerID] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option cannot be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [faction] [type]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (0) None (1) Police (2) Medic (3) News (4) Government (5) Hitman (6) Federal");
- return 1;
- }
- if(!(0 <= type <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- VehicleInfo[vehicleid][vFactionType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET factiontype = %i WHERE id = %i", VehicleInfo[vehicleid][vFactionType], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- if(type == FACTION_NONE)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've reset the faction type for %s (ID %i).", GetVehicleName(vehicleid), vehicleid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've set the faction type of %s (ID %i) to %s (%i).", GetVehicleName(vehicleid), vehicleid, factionTypes[type], type);
- }
- else if(!strcmp(option, "job", true))
- {
- if(VehicleInfo[vehicleid][vOwnerID] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option cannot be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", value))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [job] [type]");
- SendClientMessage(playerid, COLOR_GREY3, "List of jobs: (-1) None (0) Pizzaman (1) Courier (2) Fisherman (3) Bodyguard (4) Weapon Dealer (5) Mechanic");
- SendClientMessage(playerid, COLOR_GREY3, "List of jobs: (6) Miner (7) Sweeper (8) Taxi Driver (9) Drug Dealer (10) Lawyer (11) Detective");
- return 1;
- }
- if(!(-1 <= value <= 11))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid job.");
- }
-
- VehicleInfo[vehicleid][vJob] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET job = %i WHERE id = %i", VehicleInfo[vehicleid][vJob], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- if(value == JOB_NONE)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've reset the job type for %s (ID %i).", GetVehicleName(vehicleid), vehicleid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've set the job type of %s (ID %i) to %s (%i).", GetVehicleName(vehicleid), vehicleid, GetJobName(value), value);
- }
- else if(!strcmp(option, "respawndelay", true))
- {
- new id = VehicleInfo[vehicleid][vID];
- if(VehicleInfo[vehicleid][vOwnerID] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This option cannot be adjusted on player owned vehicles.");
- }
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editvehicle [vehicleid] [respawndelay] [seconds (-1 = none)]");
- }
- VehicleInfo[vehicleid][vRespawnDelay] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET respawndelay = %i WHERE id = %i", VehicleInfo[vehicleid][vRespawnDelay], id);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the respawn delay of %s (ID %i) to %i seconds.", GetVehicleName(vehicleid), vehicleid, value);
- SendClientMessage(playerid, COLOR_WHITE, "Note: The vehicle's ID may have changed in the mean time.");
- DespawnVehicle(vehicleid, false);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM vehicles WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_VEHICLES, -1);
- }
- return 1;
- }
- CMD:removevehicle(playerid, params[])
- {
- new vehicleid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removevehicle [vehicleid]");
- }
- if(!IsValidVehicle(vehicleid) || !VehicleInfo[vehicleid][vID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The vehicle specified is invalid or a static vehicle.");
- }
- if(VehicleInfo[vehicleid][vOwnerID]) {
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have deleted %s's %s.", VehicleInfo[vehicleid][vOwner], GetVehicleName(vehicleid));
- } else {
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have deleted %s (ID %i).", GetVehicleName(vehicleid), vehicleid);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM vehicles WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- DespawnVehicle(vehicleid, false);
- return 1;
- }
- CMD:aclearwanted(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /aclearwanted [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pWantedLevel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no active charges to clear.");
- }
- PlayerInfo[targetid][pWantedLevel] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM charges WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_WHITE, "** Your crimes were cleared by %s.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has cleared %s's crimes and wanted level.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:removedm(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removedm [playerid]");
- }
- if(!PlayerInfo[targetid][pDMWarnings] && !PlayerInfo[targetid][pWeaponRestricted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't been punished for DM recently.");
- }
- PlayerInfo[targetid][pDMWarnings]--;
- PlayerInfo[targetid][pWeaponRestricted] = 0;
- if(PlayerInfo[targetid][pJailType] == 2)
- {
- PlayerInfo[targetid][pJailType] = 0;
- PlayerInfo[targetid][pJailTime] = 0;
- SetPlayerPos(targetid, 1544.4407, -1675.5522, 13.5584);
- SetPlayerFacingAngle(targetid, 90.0000);
- SetPlayerInterior(targetid, 0);
- SetPlayerVirtualWorld(targetid, 0);
- SetCameraBehindPlayer(targetid);
- SetPlayerWeapons(targetid);
- }
- SendClientMessageEx(targetid, COLOR_AQUA, "** Your DM punishment has been reversed by %s.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has reversed %s's DM punishment.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) reversed %s's (uid: %i) DM punishment.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET jailtype = 0, jailtime = 0, dmwarnings = %i, weaponrestricted = 0 WHERE uid = %i", PlayerInfo[targetid][pDMWarnings], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:destroyveh(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(adminVehicle{vehicleid})
- {
- DestroyVehicle(vehicleid);
- adminVehicle{vehicleid} = false;
- return SendClientMessage(playerid, COLOR_GREY, "Admin vehicle destroyed.");
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(adminVehicle{i})
- {
- DestroyVehicle(i);
- adminVehicle{i} = false;
- }
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s destroyed all admin spawned vehicles.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:respawncars(playerid, params[])
- {
- new option[10], param[12];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[10]S()[12]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /respawncars [job | faction | nearby | all]");
- }
- if(!strcmp(option, "job", true))
- {
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && !IsVehicleOccupied(i) && !adminVehicle{i})
- {
- if((pizzaVehicles[0] <= i <= pizzaVehicles[5]) || (courierVehicles[0] <= i <= courierVehicles[6]) || (sweeperVehicles[0] <= i <= sweeperVehicles[3]) || (taxiVehicles[0] <= i <= taxiVehicles[3]) || (VehicleInfo[i][vJob] != JOB_NONE))
- {
- SetVehicleToRespawn(i);
- }
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s respawned all unoccupied job vehicles.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "faction", true))
- {
- new type;
-
- if(sscanf(param, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /respawncars [faction] [type]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (1) Police (2) Medic (3) News (4) Government (5) Hitman (6) Federal");
- return 1;
- }
- if(!(1 <= type <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction type.");
- }
-
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && !IsVehicleOccupied(i) && !adminVehicle{i} && VehicleInfo[i][vFactionType] == type)
- {
- SetVehicleToRespawn(i);
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s respawned all unoccupied {F7A763}%s{FF6347} vehicles.", GetPlayerRPName(playerid), factionTypes[type]);
- }
- else if(!strcmp(option, "nearby", true))
- {
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && !IsVehicleOccupied(i) && !adminVehicle{i} && IsVehicleStreamedIn(i, playerid))
- {
- SetVehicleToRespawn(i);
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s respawned all unoccupied vehicles in %s.", GetPlayerRPName(playerid), GetPlayerZoneName(playerid));
- }
- else if(!strcmp(option, "all", true))
- {
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && !IsVehicleOccupied(i) && !adminVehicle{i})
- {
- SetVehicleToRespawn(i);
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s respawned all unoccupied vehicles.", GetPlayerRPName(playerid));
- }
-
- return 1;
- }
- CMD:broadcast(playerid, params[])
- {
- new style, text[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[128]", style, text))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /broadcast [style (0-6)] [text]");
- }
- if(!(0 <= style <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid style.");
- }
- if(style == 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Style 2 only disappears after death and is therefore disabled.");
- }
- GameTextForAll(text, 6000, style);
- return 1;
- }
- CMD:fixveh(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't fix a vehicle if you're not sitting in one.");
- }
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, COLOR_GREY, "Vehicle fixed.");
- return 1;
- }
- CMD:clearchat(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- foreach(new i : Player)
- {
- ClearChat(i);
- }
- return 1;
- }
- CMD:healrange(playerid, params[])
- {
- new Float:radius;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "f", radius))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /healrange [radius]");
- }
- if(!(1.0 <= radius <= 50.0))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "The radius can't be below 1.0 or above 50.0.");
- }
- foreach(new i : Player)
- {
- if(IsPlayerInRangeOfPlayer(i, playerid, radius))
- {
- if(!PlayerInfo[i][pAdminDuty])
- {
- SetPlayerHealth(i, 100.0);
-
- if(GetPlayerArmourEx(i) < 100.0)
- {
- SetScriptArmour(i, 100.0);
- }
- }
- SendClientMessage(i, COLOR_WHITE, "** An admin has healed everyone nearby.");
- }
- }
- return 1;
- }
- CMD:shots(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /shots [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM shots WHERE playerid = %i ORDER BY id DESC LIMIT 20", targetid);
- mysql_tquery(connectionID, queryBuffer, "OnAdminListShots", "ii", playerid, targetid);
- return 1;
- }
- CMD:damages(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /damages [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT weaponid, playerid, timestamp FROM shots WHERE hitid = %i AND hittype = 1 ORDER BY id DESC LIMIT 20", targetid);
- mysql_tquery(connectionID, queryBuffer, "OnAdminListDamages", "ii", playerid, targetid);
- return 1;
- }
- CMD:kills(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /kills [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM kills WHERE killer_uid = %i OR target_uid = %i ORDER BY date DESC LIMIT 20", PlayerInfo[targetid][pID], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnAdminListKills", "ii", playerid, targetid);
- return 1;
- }
- CMD:resetadtimer(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- gLastAd = 0;
- SendClientMessage(playerid, COLOR_GREY, "Advertisement timer reset.");
- return 1;
- }
- CMD:setname(playerid, params[])
- {
- new targetid, name[24];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[24]", targetid, name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setname [playerid] [name]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(PlayerInfo[targetid][pAdminDuty] && strcmp(PlayerInfo[targetid][pAdminName], "None", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't change the name of a player on admin duty. They're using their admin name.");
- }
- if(!IsValidName(name))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The name specified is not supported by the SA-MP client.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e'", name);
- mysql_tquery(connectionID, queryBuffer, "OnAdminChangeName", "iis", playerid, targetid, name);
- return 1;
- }
- CMD:explode(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /explode [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(targetid, x, y, z);
- CreateExplosionForPlayer(targetid, x, y, z, 6, 20.0);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You exploded %s for their client only.", GetPlayerRPName(targetid));
- return 1;
- }
- /*CMD:event(playerid, params[])
- {
- new option[10], param[128];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "s[10]S()[128]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Position, JoinText, Type, Health, Armor, Weapon, Skin, Rules");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Ready, Start, Lock, Countdown, Balance, End");
- return 1;
- }
- if(!strcmp(option, "position", true))
- {
- if(EventInfo[eType] == 2)
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [position] [red/blue]");
- }
- else if(!strcmp(param, "red", true))
- {
- GetPlayerPos(playerid, EventInfo[ePosX][RED_TEAM], EventInfo[ePosY][RED_TEAM], EventInfo[ePosZ][RED_TEAM]);
- GetPlayerFacingAngle(playerid, EventInfo[ePosA][RED_TEAM]);
- EventInfo[eInterior] = GetPlayerInterior(playerid);
- EventInfo[eWorld] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_AQUA, "You have set the spawn point for {FF0000}Red{33CCFF} team.");
- }
- else if(!strcmp(param, "blue", true))
- {
- GetPlayerPos(playerid, EventInfo[ePosX][BLUE_TEAM], EventInfo[ePosY][BLUE_TEAM], EventInfo[ePosZ][BLUE_TEAM]);
- GetPlayerFacingAngle(playerid, EventInfo[ePosA][BLUE_TEAM]);
- EventInfo[eInterior] = GetPlayerInterior(playerid);
- EventInfo[eWorld] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_AQUA, "You have set the spawn point for {0000FF}Blue{33CCFF} team.");
- }
- }
- else
- {
- GetPlayerPos(playerid, EventInfo[ePosX][0], EventInfo[ePosY][0], EventInfo[ePosZ][0]);
- GetPlayerFacingAngle(playerid, EventInfo[ePosA][0]);
- EventInfo[eInterior] = GetPlayerInterior(playerid);
- EventInfo[eWorld] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_AQUA, "You have set the event spawn point.");
- }
- }
- else if(!strcmp(option, "type", true))
- {
- new type;
- if(sscanf(param, "i", type))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [type] [1=DM 2=TDM 3=Race 4=Other]");
- }
- if(!(1 <= type <= 4))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- if(EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY3, "The type can only be adjusted during event setup.");
- }
- EventInfo[eType] = type;
- switch(type)
- {
- case 1:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You have set the event type to {FF6347}Deathmatch{33CCFF}.");
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You have set the event type to {FF6347}Team Deathmatch{33CCFF}.");
- EventInfo[eNext] = RED_TEAM;
- if(EventInfo[ePosX][RED_TEAM] == 0.0 && EventInfo[ePosY][RED_TEAM] == 0.0 && EventInfo[ePosZ][RED_TEAM] == 0.0)
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Red Team position not set. '/event position red' to set position.");
- if(EventInfo[ePosX][BLUE_TEAM] == 0.0 && EventInfo[ePosY][BLUE_TEAM] == 0.0 && EventInfo[ePosZ][BLUE_TEAM] == 0.0)
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Blue Team position not set. '/event position blue' to set position.");
- }
- case 3:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You have set the event type to {FF6347}Race{33CCFF}. /veh to spawn the vehicles.");
- }
- case 4:
- {
- SendClientMessage(playerid, COLOR_AQUA, "You have set the event type to {FF6347}Other{33CCFF}.");
- }
- }
- }
- else if(!strcmp(option, "health", true))
- {
- new Float:amount;
- if(sscanf(param, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [health] [amount]");
- }
- EventInfo[eHealth] = amount;
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the event health to %.1f.", amount);
- }
- else if(!strcmp(option, "armor", true))
- {
- new Float:amount;
- if(sscanf(param, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [armor] [amount]");
- }
- EventInfo[eArmor] = amount;
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the event armor to %.1f.", amount);
- }
- else if(!strcmp(option, "jointext", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [jointext] [text]");
- }
- strcpy(EventInfo[eJoinText], param, 128);
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the join text to '%s'.", param);
- }
- else if(!strcmp(option, "weapon", true))
- {
- new slot, weaponid;
- if(sscanf(param, "ii", slot, weaponid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [weapon] [slot (1-5)] [weaponid]");
- }
- if(!(1 <= slot <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- if(!(2 <= weaponid <= 46))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid weapon.");
- }
- EventInfo[eWeapons][slot-1] = weaponid;
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the weapon in slot %i to %s.", slot, GetWeaponNameEx(weaponid));
- }
- else if(!strcmp(option, "skin", true))
- {
- new team[6], skinid;
- if(EventInfo[eType] == 2)
- {
- if(sscanf(param, "s[6]i", team, skinid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [skin] [red/blue] [skinid]");
- }
- if(!(0 <= skinid <= 311))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin ID.");
- }
- if(!strcmp(team, "red", true))
- {
- EventInfo[eSkin][RED_TEAM] = skinid;
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the skin for {FF0000}Red{33CCFF} team to %i.", skinid);
- }
- else if(!strcmp(team, "blue", true))
- {
- EventInfo[eSkin][BLUE_TEAM] = skinid;
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the skin for {0000FF}Blue{33CCFF} team to %i.", skinid);
- }
- }
- else
- {
- if(sscanf(param, "i", skinid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [skin] [skinid (0 = reset)]");
- }
- if(!(0 <= skinid <= 311))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin ID.");
- }
- EventInfo[eSkin][0] = skinid;
- SendClientMessageEx(playerid, COLOR_AQUA, "You set the event skin to %i.", skinid);
- }
- }
- else if(!strcmp(option, "rules", true))
- {
- new rule[8], toggle;
- if(sscanf(param, "s[8]i", rule, toggle) || !(0 <= toggle <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [rules] [cs/qs/healing] [0/1]");
- }
- if(EventInfo[eType] != 1 && EventInfo[eType] != 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can only set rules for DM & TDM events.");
- }
- if(!strcmp(rule, "cs", true))
- {
- EventInfo[eCS] = toggle;
- if(toggle)
- SendClientMessage(playerid, COLOR_AQUA, "You have {00AA00}allowed{33CCFF} crackshooting in the event.");
- else
- SendClientMessage(playerid, COLOR_AQUA, "You have {FF6347}disallowed{33CCFF} crackshooting in the event.");
- }
- else if(!strcmp(rule, "qs", true))
- {
- EventInfo[eQS] = toggle;
- if(toggle)
- SendClientMessage(playerid, COLOR_AQUA, "You have {00AA00}allowed{33CCFF} quickswapping in the event.");
- else
- SendClientMessage(playerid, COLOR_AQUA, "You have {FF6347}disallowed{33CCFF} quickswapping in the event.");
- }
- else if(!strcmp(rule, "healing", true))
- {
- EventInfo[eHeal] = toggle;
- if(toggle)
- SendClientMessage(playerid, COLOR_AQUA, "You have {00AA00}allowed{33CCFF} healing in the event.");
- else
- SendClientMessage(playerid, COLOR_AQUA, "You have {FF6347}disallowed{33CCFF} healing in the event.");
- }
- }
- else if(!strcmp(option, "ready", true))
- {
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /event [ready] [confirm]");
- SendClientMessage(playerid, COLOR_GREY3, "This command will announce to the whole server that an event is ready to join.");
- return 1;
- }
- if(EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The event is already marked as ready.");
- }
- if(EventInfo[eType] == 2)
- {
- if(EventInfo[ePosX][RED_TEAM] == 0.0 && EventInfo[ePosY][RED_TEAM] == 0.0 && EventInfo[ePosZ][RED_TEAM] == 0.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no spawn point set for red team.");
- }
- if(EventInfo[ePosX][BLUE_TEAM] == 0.0 && EventInfo[ePosY][BLUE_TEAM] == 0.0 && EventInfo[ePosZ][BLUE_TEAM] == 0.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no spawn point set for blue team.");
- }
- if(!EventInfo[eSkin][RED_TEAM])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no skin set for red team.");
- }
- if(!EventInfo[eSkin][BLUE_TEAM])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no skin set for blue team.");
- }
- }
- else
- {
- if(!EventInfo[eType])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The event type has not been set.");
- }
- if(EventInfo[ePosX][0] == 0.0 && EventInfo[ePosY][0] == 0.0 && EventInfo[ePosZ][0] == 0.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The spawn point has not been set.");
- }
- }
- EventInfo[eReady] = 1;
- switch(EventInfo[eType])
- {
- case 1: SendClientMessageToAllEx(COLOR_AQUA, "%s has started a DM event, use /joinevent to join!", GetPlayerRPName(playerid));
- case 2: SendClientMessageToAllEx(COLOR_AQUA, "%s has started a TDM event, use /joinevent to join!", GetPlayerRPName(playerid));
- case 3: SendClientMessageToAllEx(COLOR_AQUA, "%s has started a Race event, use /joinevent to join!", GetPlayerRPName(playerid));
- case 4: SendClientMessageToAllEx(COLOR_AQUA, "%s has started an event, use /joinevent to join!", GetPlayerRPName(playerid));
- }
- SendClientMessage(playerid, COLOR_WHITE, "** Use '/event lock' to lock the event and '/event start' to start.");
- }
- else if(!strcmp(option, "lock", true))
- {
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no event ready. Please set one up first.");
- }
- if(!EventInfo[eLocked])
- {
- EventInfo[eLocked] = 1;
- SendClientMessageToAllEx(COLOR_AQUA, "The event has been locked by %s.", GetPlayerRPName(playerid));
- }
- else
- {
- EventInfo[eLocked] = 0;
- SendClientMessageToAllEx(COLOR_AQUA, "The event was unlocked by %s.", GetPlayerRPName(playerid));
- }
- }
- else if(!strcmp(option, "start", true))
- {
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no event ready. Please set one up first.");
- }
- if(EventInfo[eStarted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The event has already started.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- SendClientMessage(i, COLOR_AQUA, "The event has started. Good luck!");
- else
- SendClientMessage(i, COLOR_AQUA, "The event has started. Better luck next time!");
- }
- EventInfo[eStarted] = 1;
- }
- else if(!strcmp(option, "countdown", true))
- {
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no event ready. Please set one up first.");
- }
- SetTimerEx("Countdown", 1000, false, "ii", playerid, 3);
- SendClientMessage(playerid, COLOR_AQUA, "You have initiated a countdown for all players in the event.");
- }
- else if(!strcmp(option, "balance", true))
- {
- new teamid = RED_TEAM;
-
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no event ready. Please set one up first.");
- }
- if(EventInfo[eType] != 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The event currently active is not a TDM event.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- {
- PlayerInfo[i][pEventTeam] = teamid;
-
- SetPlayerSkin(i, EventInfo[eSkin][teamid]);
- SetPlayerPos(i, EventInfo[ePosX][teamid], EventInfo[ePosY][teamid], EventInfo[ePosZ][teamid]);
- SetPlayerFacingAngle(i, EventInfo[ePosA][teamid]);
- teamid = teamid == RED_TEAM ? BLUE_TEAM : RED_TEAM;
-
- if(PlayerInfo[i][pEventTeam] == RED_TEAM) {
- GameTextForPlayer(i, "~w~You are on~n~~r~Red Team", 3000, 4);
- } else if(PlayerInfo[i][pEventTeam] == BLUE_TEAM) {
- GameTextForPlayer(i, "~w~You are on~n~~b~Blue Team", 3000, 6);
- }
-
- SendClientMessageEx(i, COLOR_AQUA, "%s has balanced the teams. You are now in %s{33CCFF} team.", GetPlayerRPName(playerid), (PlayerInfo[i][pEventTeam] == RED_TEAM) ? ("{FF0000}Red") : ("{0000FF}Blue"));
- }
- }
-
- SendClientMessage(playerid, COLOR_AQUA, "You have balanced the event teams.");
- }
- else if(!strcmp(option, "end", true))
- {
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no event ready. Please set one up first.");
- }
- ResetEvent();
- SendClientMessageToAllEx(COLOR_AQUA, "The event was ended by %s.", GetPlayerRPName(playerid));
- }
- return 1;
- }*/
- CMD:oban(playerid, params[])
- {
- new username[MAX_PLAYERS], reason[128];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]s[128]", username, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /oban [username] [reason]");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use /ban instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT adminlevel, ip, uid FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminOfflineBan", "iss", playerid, username, reason);
- return 1;
- }
- /*CMD:joinevent(playerid, params[])
- {
- if(PlayerInfo[playerid][pJailType])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are in jail and therefore cannot participate in an event.");
- }
- if(PlayerInfo[playerid][pJoinedEvent])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already joined the event. /quitevent to leave.");
- }
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no events you can join at the moment.");
- }
- if(EventInfo[eLocked])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The event is locked. Better luck next time!");
- }
- if(PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't join the event while you are playing paintball.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pAcceptedHelp] || GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't join the event at the moment.");
- }
- if((PlayerInfo[playerid][pWeaponRestricted] > 0) && (1 <= EventInfo[eType] <= 2))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are restricted from weapons and therefore can't join this type of event.");
- }
- SetPlayerInEvent(playerid);
- return 1;
- }
- CMD:quitevent(playerid, params[])
- {
- if(!PlayerInfo[playerid][pJoinedEvent])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in an event which you can quit.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pJoinedEvent])
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s has left the event. ))", GetPlayerNameEx(playerid));
- }
- }
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pJoinedEvent] = 0;
- SetPlayerToSpawn(playerid);
- return 1;
- }*/
- CMD:permaban(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /permaban [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be banned.");
- }
- Log_Write("log_punishments", "%s (uid: %i) permabanned %s (uid: %i), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was permanently banned by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- BanPlayer(targetid, GetPlayerNameEx(playerid), reason, true);
- return 1;
- }
- CMD:baninfo(playerid, params[])
- {
- new string[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 3 && !PlayerInfo[playerid][pBanAppealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", string))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /baninfo [username/ip]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM bans WHERE username = '%e' OR ip = '%e'", string, string);
- mysql_tquery(connectionID, queryBuffer, "OnAdminCheckBan", "is", playerid, string);
- return 1;
- }
- CMD:banhistory(playerid, params[])
- {
- new name[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 3 && !PlayerInfo[playerid][pBanAppealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /banhistory [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT a.date, a.description FROM log_bans a, users b WHERE a.uid = b.uid AND b.username = '%e' ORDER BY a.date DESC", name);
- mysql_tquery(connectionID, queryBuffer, "OnAdminCheckBanHistory", "is", playerid, name);
- return 1;
- }
- CMD:unban(playerid, params[])
- {
- new username[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 4 && !PlayerInfo[playerid][pBanAppealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unban [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id, permanent FROM bans WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminUnbanUser", "is", playerid, username);
- return 1;
- }
- CMD:unbanip(playerid, params[])
- {
- new string[25];
- if(PlayerInfo[playerid][pAdmin] < 4 && !PlayerInfo[playerid][pBanAppealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!IsAnIP(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unbanip [ip address]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM bans WHERE ip = '%s'", params);
- mysql_tquery(connectionID, queryBuffer);
- format(string, sizeof(string), "unbanip %s", params);
- SendRconCommand(string);
- SendRconCommand("reloadbans");
- UnBlockIpAddress(params);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has unbanned IP '%s'.", GetPlayerRPName(playerid), params);
- return 1;
- }
- CMD:banip(playerid, params[])
- {
- new ip[16], reason[128];
- if(PlayerInfo[playerid][pAdmin] < 4 && !PlayerInfo[playerid][pBanAppealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[16]S(N/A)[128]", ip, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /banip [ip address] [reason (optional)]");
- }
- if(!IsAnIP(ip))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid IP address.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id FROM bans WHERE ip = '%s'", ip);
- mysql_tquery(connectionID, queryBuffer, "OnAdminBanIP", "iss", playerid, ip, reason);
- return 1;
- }
- CMD:lockaccount(playerid, params[])
- {
- new username[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /lockaccount [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT locked, adminlevel FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminLockAccount", "is", playerid, username);
- return 1;
- }
- CMD:unlockaccount(playerid, params[])
- {
- new username[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unlockaccount [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e' AND locked = 1", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminUnlockAccount", "is", playerid, username);
- return 1;
- }
- CMD:sprison(playerid, params[])
- {
- new targetid, minutes, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uis[128]", targetid, minutes, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sprison [playerid] [minutes] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be prisoned.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet. You can wait until they login or use /oprison.");
- }
- if(minutes < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of minutes cannot be below one. /unjail to release a player.");
- }
- PlayerInfo[targetid][pJailType] = 2;
- PlayerInfo[targetid][pJailTime] = minutes * 60;
- ResetPlayerWeaponsEx(targetid);
- ResetPlayer(targetid);
- SetPlayerInJail(targetid);
- Log_Write("log_punishments", "%s (uid: %i) silently prisoned %s (uid: %i) for %i minutes, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], minutes, reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was prisoned for %i minutes by an Admin, reason: %s", GetPlayerRPName(targetid), minutes, reason);
- SendClientMessageEx(targetid, COLOR_AQUA, "** You have been admin prisoned for %i minutes by an admin.", minutes);
- return 1;
- }
- CMD:sethpall(playerid, params[])
- {
- new Float:amount;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sethpall [amount]");
- }
- if(amount < 1.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Health can't be under 1.0.");
- }
- foreach(new i : Player)
- {
- SetPlayerHealth(i, amount);
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s set everyone's health to %.1f.", GetPlayerRPName(playerid), amount);
- return 1;
- }
- CMD:setarmorall(playerid, params[])
- {
- new Float:amount;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setarmorall [amount]");
- }
- if(amount < 0.0 || amount > 150.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Armor can't be under 0.0 or above 150.0.");
- }
- foreach(new i : Player)
- {
- SetScriptArmour(i, amount);
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s set everyone's armor to %.1f.", GetPlayerRPName(playerid), amount);
- return 1;
- }
- CMD:fws(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /fws [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- GivePlayerWeaponEx(targetid, 24, false);
- GivePlayerWeaponEx(targetid, 27, false);
- GivePlayerWeaponEx(targetid, 29, false);
- GivePlayerWeaponEx(targetid, 31, false);
- GivePlayerWeaponEx(targetid, 34, false);
- SendClientMessageEx(targetid, COLOR_AQUA, "You have received a {00AA00}full weapon set{33CCFF} from %s.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given a full weapon set to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:fwsall(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- foreach(new i : Player)
- {
- GivePlayerWeaponEx(i, 24, false);
- GivePlayerWeaponEx(i, 27, false);
- GivePlayerWeaponEx(i, 34, false);
- GivePlayerWeaponEx(i, 31, false);
- GivePlayerWeaponEx(i, 29, false);
- SendClientMessageEx(i, COLOR_AQUA, "You have received a {00AA00}full weapon set{33CCFF} from %s.", GetPlayerRPName(playerid));
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given a full weapon set to everyone online.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:heal(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /heal [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- SetPlayerHealth(targetid, 100);
- SetScriptArmour(targetid, 100);
- SendClientMessageEx(targetid, COLOR_AQUA, "Administrator %s has just healed you.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has healed %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:givegun(playerid, params[])
- {
- new targetid, weaponid;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "ui", targetid, weaponid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givegun [playerid] [weaponid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pHours] < 2 || PlayerInfo[targetid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is either weapon restricted or played less than two playing hours.");
- }
- if(!(1 <= weaponid <= 46))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid weapon.");
- }
- GivePlayerWeaponEx(targetid, weaponid);
- SendClientMessageEx(targetid, COLOR_AQUA, "You have received a {00AA00}%s{33CCFF} from %s.", GetWeaponNameEx(weaponid), GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given a %s to %s.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) gives a %s to %s (uid: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetWeaponNameEx(weaponid), GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- return 1;
- }
- CMD:setweather(playerid, params[])
- {
- new weatherid;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", weatherid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setweather [weatherid]");
- }
- gWeather = weatherid;
- SetWeather(weatherid);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Weather changed to %i.", weatherid);
- return 1;
- }
- CMD:settime(playerid, params[])
- {
- new hour;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", hour))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /settime [hour]");
- }
- if(!(0 <= hour <= 23))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The hour must range from 0 to 23.");
- }
- gWorldTime = hour;
- SetWorldTime(hour);
- SendClientMessageToAllEx(COLOR_GREY2, "Time of day changed to %i hours.", hour);
- return 1;
- }
- CMD:setstat(playerid, params[])
- {
- new targetid, option[24], param[32], value;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "us[24]S()[32]", targetid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [option]");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: Gender, Age, Cash, Bank, Level, Respect, UpgradePoints, Hours, Warnings");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: SpawnHealth, SpawnArmor, FightStyle, Accent, Cookies, Phone, Crimes, Arrested");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: WantedLevel, Materials, Weed, Cocaine, Meth, Painkillers, Cigars, WalkieTalkie");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: Channel, Spraycans, Boombox, Phonebook, Paycheck, CarLicense, Seeds, Ephedrine");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: InventoryUpgrade, AddictUpgrade, TraderUpgrade, AssetUpgrade, MP3Player, Job");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: MuriaticAcid, BakingSoda, HPAmmo, PoisonAmmo, FMJAmmo, DMWarnings, WeaponRestricted");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: Components, Watch, GPS, GasCan, CourierSkill, FishingSkill, GuardSkill, WeaponSkill");
- SendClientMessageEx(playerid, COLOR_GREY3, "List of options: MechanicSkill, LawyerSkill, SmugglerSkill, DetectiveSkill");
- return 1;
- }
- if(!strcmp(option, "gender", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [gender] [male | female]");
- }
- if(!strcmp(param, "male", true))
- {
- PlayerInfo[targetid][pGender] = 1;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's gender to Male.", GetPlayerRPName(targetid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gender = 1 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(param, "female", true))
- {
- PlayerInfo[targetid][pGender] = 2;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's gender to Female.", GetPlayerRPName(targetid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gender = 2 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- else if(!strcmp(option, "age", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [age] [value]");
- }
- if(!(0 <= value <= 128))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "The value specified can't be under 0 or above 128.");
- }
- PlayerInfo[targetid][pAge] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's age to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET age = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "cash", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [cash] [value]");
- }
- PlayerInfo[targetid][pCash] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's cash to $%i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cash = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "bank", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [bank] [value]");
- }
- PlayerInfo[targetid][pBank] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's bank money to $%i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bank = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "level", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [level] [value]");
- }
- PlayerInfo[targetid][pLevel] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's level to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET level = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "respect", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [respect] [value]");
- }
- PlayerInfo[targetid][pEXP] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's respect points to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET exp = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "upgradepoints", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [upgradepoints] [value]");
- }
- PlayerInfo[targetid][pUpgradePoints] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's upgrade points to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET upgradepoints = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "hours", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [hours] [value]");
- }
- PlayerInfo[targetid][pHours] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's playing hours to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET hours = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "warnings", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [warnings] [value]");
- }
- if(!(0 <= value <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "The value specified can't be under 0 or above 3.");
- }
- PlayerInfo[targetid][pWarnings] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's warnings to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET warnings = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "spawnhealth", true))
- {
- new Float:amount;
- if(sscanf(param, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [spawnhealth] [value]");
- }
- PlayerInfo[targetid][pSpawnHealth] = amount;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's spawn health to %.1f.", GetPlayerRPName(targetid), amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spawnhealth = '%f' WHERE uid = %i", amount, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "spawnarmor", true))
- {
- new Float:amount;
- if(sscanf(param, "f", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [spawnarmor] [value]");
- }
- PlayerInfo[targetid][pSpawnArmor] = amount;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's spawn armor to %.1f.", GetPlayerRPName(targetid), amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spawnarmor = '%f' WHERE uid = %i", amount, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "fightstyle", true))
- {
- if(isnull(param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [fightstyle] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Normal, Boxing, Kungfu, Kneehead, Grabkick, Elbow");
- return 1;
- }
- if(!strcmp(param, "normal", true))
- {
- PlayerInfo[targetid][pFightStyle] = FIGHT_STYLE_NORMAL;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fight style to Normal.", GetPlayerRPName(targetid));
- SetPlayerFightingStyle(targetid, PlayerInfo[targetid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[targetid][pFightStyle], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(param, "boxing", true))
- {
- PlayerInfo[targetid][pFightStyle] = FIGHT_STYLE_BOXING;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fight style to Boxing.", GetPlayerRPName(targetid));
- SetPlayerFightingStyle(targetid, PlayerInfo[targetid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[targetid][pFightStyle], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(param, "kungfu", true))
- {
- PlayerInfo[targetid][pFightStyle] = FIGHT_STYLE_KUNGFU;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fight style to Kung Fu.", GetPlayerRPName(targetid));
- SetPlayerFightingStyle(targetid, PlayerInfo[targetid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[targetid][pFightStyle], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(param, "kneehead", true))
- {
- PlayerInfo[targetid][pFightStyle] = FIGHT_STYLE_KNEEHEAD;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fight style to Kneehead.", GetPlayerRPName(targetid));
- SetPlayerFightingStyle(targetid, PlayerInfo[targetid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[targetid][pFightStyle], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(param, "grabkick", true))
- {
- PlayerInfo[targetid][pFightStyle] = FIGHT_STYLE_GRABKICK;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fight style to Grabkick.", GetPlayerRPName(targetid));
- SetPlayerFightingStyle(targetid, PlayerInfo[targetid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[targetid][pFightStyle], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(param, "elbow", true))
- {
- PlayerInfo[targetid][pFightStyle] = FIGHT_STYLE_ELBOW;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fight style to Elbow.", GetPlayerRPName(targetid));
- SetPlayerFightingStyle(targetid, PlayerInfo[targetid][pFightStyle]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fightstyle = %i WHERE uid = %i", PlayerInfo[targetid][pFightStyle], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- else if(!strcmp(option, "accent", true))
- {
- new accent[16];
- if(sscanf(param, "s[16]", accent))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [accent] [text]");
- }
- strcpy(PlayerInfo[targetid][pAccent], accent, 16);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's accent to '%s'.", GetPlayerRPName(targetid), accent);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET accent = '%e' WHERE uid = %i", accent, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "cookies", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [cookies] [value]");
- }
- PlayerInfo[targetid][pCookies] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's cookies to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cookies = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "phone", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [phone] [number]");
- }
- if(value == 911 || value == 6397 || value == 6324 || value == 8294)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid number.");
- }
- PlayerInfo[targetid][pPhone] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's phone number to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET phone = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "crimes", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [crimes] [value]");
- }
- PlayerInfo[targetid][pCrimes] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's commited crimes to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET crimes = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "arrested", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [arrested] [value]");
- }
- PlayerInfo[targetid][pArrested] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's arrested count to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET arrested = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "wantedlevel", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [wantedlevel] [value]");
- }
- if(!(0 <= value <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "The value specified can't be under 0 or above 6.");
- }
- PlayerInfo[targetid][pWantedLevel] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's wanted level to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [materials] [value]");
- }
- PlayerInfo[targetid][pMaterials] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's materials to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [weed] [value]");
- }
- PlayerInfo[targetid][pWeed] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's weed to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [cocaine] [value]");
- }
- PlayerInfo[targetid][pCocaine] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's cocaine to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [meth] [value]");
- }
- PlayerInfo[targetid][pMeth] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's meth to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [painkillers] [value]");
- }
- PlayerInfo[targetid][pPainkillers] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's painkillers to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "cigars", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [cigars] [value]");
- }
- PlayerInfo[targetid][pCigars] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's cigars to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cigars = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "walkietalkie", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [walkietalkie] [0/1]");
- }
- PlayerInfo[targetid][pWalkieTalkie] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's walkie talkie to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET walkietalkie = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "channel", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [channel] [value]");
- }
- PlayerInfo[targetid][pChannel] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's radio channel to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET channel = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "spraycans", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [spraycans] [value]");
- }
- PlayerInfo[targetid][pSpraycans] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's spraycans to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spraycans = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "boombox", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [boombox] [0/1]");
- }
- if((value == 0) && PlayerInfo[targetid][pBoomboxPlaced])
- {
- DestroyBoombox(targetid);
- }
- PlayerInfo[targetid][pBoombox] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's boombox to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET boombox = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "phonebook", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [phonebook] [0/1]");
- }
- PlayerInfo[targetid][pPhonebook] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's phonebook to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET phonebook = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "paycheck", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [paycheck] [value]");
- }
- PlayerInfo[targetid][pPaycheck] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's paycheck to $%i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET paycheck = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "carlicense", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [carlicense] [0/1]");
- }
- PlayerInfo[targetid][pCarLicense] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's car license to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET carlicense = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "seeds", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [seeds] [value]");
- }
- PlayerInfo[targetid][pSeeds] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's seeds to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "ephedrine", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [ephedrine] [value]");
- }
- PlayerInfo[targetid][pEphedrine] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's ephedrine to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "job", true))
- {
- if(sscanf(param, "i", value))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [job] [value (-1 = none)]");
- SendClientMessage(playerid, COLOR_GREY3, "List of jobs: (0) Pizzaman (1) Courier (2) Fisherman (3) Bodyguard (4) Weapon Dealer (5) Mechanic (6) Miner");
- SendClientMessage(playerid, COLOR_GREY3, "List of jobs: (7) Sweeper (8) Taxi Driver (9) Drug Dealer (10) Lawyer (11) Detective");
- return 1;
- }
- if(!(-1 <= value <= 11))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid job.");
- }
- PlayerInfo[targetid][pJob] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's job to %s.", GetPlayerRPName(targetid), GetJobName(value));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET job = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "inventoryupgrade", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [inventoryupgrade] [value]");
- }
- if(!(0 <= value <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The value must range from 0 to 5.");
- }
- PlayerInfo[targetid][pInventoryUpgrade] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's inventory upgrade to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET inventoryupgrade = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "addictupgrade", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [addictupgrade] [value]");
- }
- if(!(0 <= value <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The value must range from 0 to 3.");
- }
- PlayerInfo[targetid][pAddictUpgrade] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's addict upgrade to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET addictupgrade = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "traderupgrade", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [traderupgrade] [value]");
- }
- if(!(0 <= value <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The value must range from 0 to 3.");
- }
- PlayerInfo[targetid][pTraderUpgrade] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's trader upgrade to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET traderupgrade = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "assetupgrade", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [assetupgrade] [value]");
- }
- if(!(0 <= value <= 4))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The value must range from 0 to 4.");
- }
- PlayerInfo[targetid][pAssetUpgrade] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's asset upgrade to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET assetupgrade = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "mp3player", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [mp3player] [0/1]");
- }
- PlayerInfo[targetid][pMP3Player] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's MP3 player to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET mp3player = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "muriaticacid", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [muriaticacid] [value]");
- }
- PlayerInfo[targetid][pMuriaticAcid] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's muriatic acid to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET muriaticacid = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "bakingsoda", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [bakingsoda] [value]");
- }
- PlayerInfo[targetid][pBakingSoda] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's baking soda to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bakingsoda = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [hpammo] [value]");
- }
- SetWeaponAmmo(targetid, AMMO_HP, value);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's hollow point ammunition to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET hpammo = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [poisonammo] [value]");
- }
- SetWeaponAmmo(targetid, AMMO_POISON, value);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's poison tip ammunition to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET poisonammo = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [fmjammo] [value]");
- }
- SetWeaponAmmo(targetid, AMMO_FMJ, value);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's full metal jacket ammunition to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fmjammo = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "dmwarnings", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [dmwarnings] [value]");
- }
- if(!(0 <= value <= 4))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The value must range from 0 to 4.");
- }
- PlayerInfo[targetid][pDMWarnings] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's DM warnings to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET dmwarnings = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "weaponrestricted", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [weaponrestricted] [hours]");
- }
- PlayerInfo[targetid][pWeaponRestricted] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's weapon restriction to %i hours.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weaponrestricted = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "components", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [components] [value]");
- }
- PlayerInfo[targetid][pComponents] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's components to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET components = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "watch", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [watch] [0/1]");
- }
- PlayerInfo[targetid][pWatch] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's watch to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET watch = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "gps", true))
- {
- if(sscanf(param, "i", value) || !(0 <= value <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [gps] [0/1]");
- }
- PlayerInfo[targetid][pGPS] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's GPS to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gps = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "gascan", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [gascan] [value]");
- }
- PlayerInfo[targetid][pGasCan] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's gas can to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gascan = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "courierskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [courierskill] [value]");
- }
- PlayerInfo[targetid][pCourierSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's courier skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET courierskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "fishingskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [fishingskill] [value]");
- }
- PlayerInfo[targetid][pFishingSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's fishing skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishingskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "guardskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [guardskill] [value]");
- }
- PlayerInfo[targetid][pGuardSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's bodyguard skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET guardskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "weaponskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [weaponskill] [value]");
- }
- PlayerInfo[targetid][pWeaponSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's weapon skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weaponskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "mechanicskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [mechanicskill] [value]");
- }
- PlayerInfo[targetid][pMechanicSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's mechanic skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET mechanicskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "lawyerskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [lawyerskill] [value]");
- }
- PlayerInfo[targetid][pLawyerSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's lawyer skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET lawyerskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "detectiveskill", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstat [playerid] [detectiveskill] [value]");
- }
- PlayerInfo[targetid][pDetectiveSkill] = value;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set %s's detective skill to %i.", GetPlayerRPName(targetid), value);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET detectiveskill = %i WHERE uid = %i", value, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- return 1;
- }
- Log_Write("log_admin", "%s (uid: %i) set %s's (uid: %i) %s to %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], option, param);
- return 1;
- }
- CMD:givemoney(playerid, params[])
- {
- new targetid, amount;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givemoney [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- GivePlayerCash(targetid, amount);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given $%i to %s.", GetPlayerRPName(playerid), amount, GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has used /givemoney to give $%i to %s (uid: %i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- return 1;
- }
- CMD:givemoneyall(playerid, params[])
- {
- new amount;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givemoneyall [amount]");
- }
- if(amount < 1 || amount > 100000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount specified must range between $1 and $100000.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged])
- {
- GivePlayerCash(i, amount);
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s has given $%i to every player online.", GetPlayerRPName(playerid), amount);
- return 1;
- }
- CMD:givecookie(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givecookie [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- PlayerInfo[targetid][pCookies]++;
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s has given a cookie to %s, reason: %s", GetPlayerRPName(playerid), GetPlayerRPName(targetid), reason);
- return 1;
- }
- CMD:givecookieall(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged])
- {
- PlayerInfo[i][pCookies]++;
- }
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s has given a cookie to every player online.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:setvip(playerid, params[])
- {
- new targetid, rank, days;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uii", targetid, rank, days))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setvip [playerid] [rank] [days]");
- SendClientMessage(playerid, COLOR_GREY3, "List of ranks: (1) Limited (2) Limitless (3) Legendary");
- return 1;
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!(1 <= rank <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- if(!(1 <= days <= 365))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of days must range from 1 to 365.");
- }
- PlayerInfo[targetid][pVIPPackage] = rank;
- PlayerInfo[targetid][pVIPTime] = gettime() + (days * 86400);
- PlayerInfo[targetid][pVIPCooldown] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET vippackage = %i, viptime = %i, vipcooldown = 0 WHERE uid = %i", PlayerInfo[targetid][pVIPPackage], PlayerInfo[targetid][pVIPTime], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(days >= 30)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given a {A028AD}%s{FF6347} donator package to %s for %i months.", GetPlayerRPName(playerid), GetVIPRank(rank), GetPlayerRPName(targetid), days / 30);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have given %s a {A028AD}%s{33CCFF} donator package for %i months.", GetPlayerRPName(targetid), GetVIPRank(rank), days / 30);
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has given you a {A028AD}%s{33CCFF} donator package for %i months.", GetPlayerRPName(playerid), GetVIPRank(rank), days / 30);
- }
- else
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given a {A028AD}%s{FF6347} donator package to %s for %i days.", GetPlayerRPName(playerid), GetVIPRank(rank), GetPlayerRPName(targetid), days);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have given %s a {A028AD}%s{33CCFF} donator package for %i days.", GetPlayerRPName(targetid), GetVIPRank(rank), days);
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has given you a {A028AD}%s{33CCFF} donator package for %i days.", GetPlayerRPName(playerid), GetVIPRank(rank), days);
- }
- Log_Write("log_vip", "%s (uid: %i) has given %s (uid: %i) a %s donator package for %i days.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], GetVIPRank(rank), days);
- return 1;
- }
- CMD:removevip(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removevip [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!PlayerInfo[targetid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player doesn't have a VIP subscription which you can remove.");
- }
- if(PlayerInfo[targetid][pTagType] == TAG_VIP)
- {
- SetPlayerSpecialTag(targetid, TAG_NONE);
- }
- Log_Write("log_vip", "%s (uid: %i) has removed %s's (uid: %i) %s donator package.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], GetVIPRank(PlayerInfo[targetid][pVIPPackage]));
- PlayerInfo[targetid][pVIPPackage] = 0;
- PlayerInfo[targetid][pVIPTime] = 0;
- PlayerInfo[targetid][pVIPColor] = 0;
- PlayerInfo[targetid][pSecondJob] = JOB_NONE;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET vippackage = 0, viptime = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has revoked %s's VIP subscription.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has revoked your VIP subscription.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:rangeban(playerid, params[])
- {
- new targetid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rangeban [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be banned.");
- }
- Log_Write("log_punishments", "%s (uid: %i) rangebanned %s (uid: %i), reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was rangebanned by %s, reason: %s", GetPlayerRPName(targetid), GetPlayerRPName(playerid), reason);
- Rangeban(targetid, GetPlayerNameEx(playerid), reason);
- return 1;
- }
- CMD:forcepayday(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- foreach(new i : Player)
- {
- SendPaycheck(i);
- }
- return 1;
- }
- CMD:deleteaccount(playerid, params[])
- {
- new username[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /deleteaccount [username]");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. You can't delete their account.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT adminlevel FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminDeleteAccount", "is", playerid, username);
- return 1;
- }
- CMD:doublexp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!gDoubleXP)
- {
- SetDoubleXP(true);
- SendClientMessageToAllEx(COLOR_AQUA, "** %s enabled double XP. You will now gain double the respect points and job skill points.", GetPlayerRPName(playerid));
- }
- else
- {
- SetDoubleXP(false);
- SendClientMessageToAllEx(COLOR_AQUA, "** %s disabled double XP.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:createhouse(playerid, params[])
- {
- new type, Float:x, Float:y, Float:z, Float:a;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", type))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /createhouse [type (1-%i)]", sizeof(houseInteriors));
- }
- if(!(1 <= type <= sizeof(houseInteriors)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- if(GetNearbyHouse(playerid) >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a house in range. Find somewhere else to create this one.");
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- type--;
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(!HouseInfo[i][hExists])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO houses (type, price, pos_x, pos_y, pos_z, pos_a, int_x, int_y, int_z, int_a, interior, outsideint, outsidevw) VALUES(%i, %i, '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f', %i, %i, %i)", type, houseInteriors[type][intPrice], x, y, z, a - 180.0,
- houseInteriors[type][intX], houseInteriors[type][intY], houseInteriors[type][intZ], houseInteriors[type][intA], houseInteriors[type][intID], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
- mysql_tquery(connectionID, queryBuffer, "OnAdminCreateHouse", "iiiffff", playerid, i, type, x, y, z, a);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "House slots are currently full. Ask Emmet to increase the internal limit.");
- return 1;
- }
- CMD:edithouse(playerid, params[])
- {
- new houseid, option[10], param[32];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[10]S()[32]", houseid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Entrance, Exit, World, Type, Owner, Price, RentPrice, Level, Locked");
- return 1;
- }
- if(!(0 <= houseid < MAX_HOUSES) || !HouseInfo[houseid][hExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid house.");
- }
- if(!strcmp(option, "entrance", true))
- {
- GetPlayerPos(playerid, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ]);
- GetPlayerFacingAngle(playerid, HouseInfo[houseid][hPosA]);
- HouseInfo[houseid][hOutsideInt] = GetPlayerInterior(playerid);
- HouseInfo[houseid][hOutsideVW] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', outsideint = %i, outsidevw = %i WHERE id = %i", HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ], HouseInfo[houseid][hPosA], HouseInfo[houseid][hOutsideInt], HouseInfo[houseid][hOutsideVW], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the entrance of house %i.", houseid);
- }
- else if(!strcmp(option, "exit", true))
- {
- new type = -1;
- for(new i = 0; i < sizeof(houseInteriors); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 100.0, houseInteriors[i][intX], houseInteriors[i][intY], houseInteriors[i][intZ]))
- {
- type = i;
- }
- }
- GetPlayerPos(playerid, HouseInfo[houseid][hIntX], HouseInfo[houseid][hIntY], HouseInfo[houseid][hIntZ]);
- GetPlayerFacingAngle(playerid, HouseInfo[houseid][hIntA]);
- HouseInfo[houseid][hInterior] = GetPlayerInterior(playerid);
- HouseInfo[houseid][hType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET type = %i, int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i WHERE id = %i", type, HouseInfo[houseid][hIntX], HouseInfo[houseid][hIntY], HouseInfo[houseid][hIntZ], HouseInfo[houseid][hIntA], HouseInfo[houseid][hInterior], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the exit of house %i.", houseid);
- }
- else if(!strcmp(option, "world", true))
- {
- new worldid;
- if(sscanf(param, "i", worldid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [world] [vw]");
- }
- HouseInfo[houseid][hWorld] = worldid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET world = %i WHERE id = %i", HouseInfo[houseid][hWorld], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the virtual world of house %i to %i.", houseid, worldid);
- }
- else if(!strcmp(option, "type", true))
- {
- new type;
- if(sscanf(param, "i", type))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [type] [value (1-%i)]", sizeof(houseInteriors));
- }
- if(!(1 <= type <= sizeof(houseInteriors)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- type--;
- HouseInfo[houseid][hType] = type;
- HouseInfo[houseid][hInterior] = houseInteriors[type][intID];
- HouseInfo[houseid][hIntX] = houseInteriors[type][intX];
- HouseInfo[houseid][hIntY] = houseInteriors[type][intY];
- HouseInfo[houseid][hIntZ] = houseInteriors[type][intZ];
- HouseInfo[houseid][hIntA] = houseInteriors[type][intA];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET type = %i, int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i, world = %i WHERE id = %i", type, HouseInfo[houseid][hIntX], HouseInfo[houseid][hIntY], HouseInfo[houseid][hIntZ], HouseInfo[houseid][hIntA], HouseInfo[houseid][hInterior], HouseInfo[houseid][hWorld], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the type of house %i to %i.", houseid, type + 1);
- }
- else if(!strcmp(option, "owner", true))
- {
- new targetid;
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [owner] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- SetHouseOwner(houseid, targetid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the owner of house %i to %s.", houseid, GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "price", true))
- {
- new price;
- if(sscanf(param, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [price] [value]");
- }
- if(price < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $0.");
- }
- HouseInfo[houseid][hPrice] = price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET price = %i WHERE id = %i", HouseInfo[houseid][hPrice], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the price of house %i to $%i.", houseid, price);
- }
- else if(!strcmp(option, "rentprice", true))
- {
- new price;
- if(sscanf(param, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [rentprice] [value]");
- }
- if(price < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $0.");
- }
- HouseInfo[houseid][hRentPrice] = price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET rentprice = %i WHERE id = %i", HouseInfo[houseid][hRentPrice], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the rent price of house %i to $%i.", houseid, price);
- }
- else if(!strcmp(option, "level", true))
- {
- new level;
- if(sscanf(param, "i", level))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [level] [value (0-5)]");
- }
- if(!(0 <= level <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level. Valid levels range from 0 to 5.");
- }
- HouseInfo[houseid][hLevel] = level;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET level = %i WHERE id = %i", HouseInfo[houseid][hLevel], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the level of house %i to %i.", houseid, level);
- }
- else if(!strcmp(option, "locked", true))
- {
- new locked;
- if(sscanf(param, "i", locked) || !(0 <= locked <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /edithouse [houseid] [locked] [0/1]");
- }
- HouseInfo[houseid][hLocked] = locked;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET locked = %i WHERE id = %i", HouseInfo[houseid][hLocked], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the lock state of house %i to %i.", houseid, locked);
- }
- return 1;
- }
- CMD:removefurniture(playerid, params[])
- {
- new houseid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removefurniture [houseid]");
- }
- if(!(0 <= houseid < MAX_HOUSES) || !HouseInfo[houseid][hExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid house.");
- }
- RemoveAllFurniture(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed all furniture for house %i.", houseid);
- return 1;
- }
- CMD:removehouse(playerid, params[])
- {
- new houseid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removehouse [houseid]");
- }
- if(!(0 <= houseid < MAX_HOUSES) || !HouseInfo[houseid][hExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid house.");
- }
- RemoveAllFurniture(houseid);
- DestroyDynamic3DTextLabel(HouseInfo[houseid][hText]);
- DestroyDynamicPickup(HouseInfo[houseid][hPickup]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM houses WHERE id = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- HouseInfo[houseid][hExists] = 0;
- HouseInfo[houseid][hID] = 0;
- HouseInfo[houseid][hOwnerID] = 0;
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed house %i.", houseid);
- return 1;
- }
- CMD:gotohouse(playerid, params[])
- {
- new houseid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotohouse [houseid]");
- }
- if(!(0 <= houseid < MAX_HOUSES) || !HouseInfo[houseid][hExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid house.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ]);
- SetPlayerFacingAngle(playerid, HouseInfo[houseid][hPosA]);
- SetPlayerInterior(playerid, HouseInfo[houseid][hOutsideInt]);
- SetPlayerVirtualWorld(playerid, HouseInfo[houseid][hOutsideVW]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:previewint(playerid, params[])
- {
- new type, string[32];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", type))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /previewint [1-%i]", sizeof(houseInteriors));
- }
- if(!(1 <= type <= sizeof(houseInteriors)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- type--;
- format(string, sizeof(string), "~w~%s", houseInteriors[type][intClass]);
- GameTextForPlayer(playerid, string, 5000, 1);
- SetPlayerPos(playerid, houseInteriors[type][intX], houseInteriors[type][intY], houseInteriors[type][intZ]);
- SetPlayerFacingAngle(playerid, houseInteriors[type][intA]);
- SetPlayerInterior(playerid, houseInteriors[type][intID]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:nearest(playerid, params[])
- {
- new id;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|______ Nearest Items ______|");
- if((id = GetNearbyHouse(playerid)) >= 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "You are in range of house ID %i.", id);
- }
- if((id = GetNearbyGarage(playerid)) >= 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "You are in range of garage ID %i.", id);
- }
- if((id = GetNearbyBusiness(playerid)) >= 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "You are in range of business ID %i.", id);
- }
- if((id = GetNearbyEntrance(playerid)) >= 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "You are in range of entrance ID %i.", id);
- }
- if((id = GetNearbyLand(playerid)) >= 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "You are in range of land ID %i.", id);
- }
- if((id = GetNearbyTurf(playerid)) >= 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "You are in range of turf ID %i.", id);
- }
- return 1;
- }
- CMD:dynamichelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "HOUSES:{DDDDDD} /createhouse, /edithouse, /removehouse, /gotohouse, /asellhouse, /removefurniture.");
- SendClientMessage(playerid, COLOR_GREEN, "GARAGES:{DDDDDD} /creategarage, /editgarage, /removegarage, /gotogarage, /asellgarage.");
- SendClientMessage(playerid, COLOR_GREEN, "BUSINESSES:{DDDDDD} /createbiz, /editbiz, /removebiz, /gotobiz, /asellbiz.");
- SendClientMessage(playerid, COLOR_GREEN, "ENTRANCES:{DDDDDD} /createentrance, /editentrance, /removeentrance, /gotoentrance.");
- SendClientMessage(playerid, COLOR_GREEN, "LANDS:{DDDDDD} /createland, /landcancel, /removeland, /gotoland, /asellland, /removelandobjects.");
- SendClientMessage(playerid, COLOR_GREEN, "FACTIONS:{DDDDDD} /createfaction, /editfaction, /removefaction, /setfaction, /purgefaction.");
- SendClientMessage(playerid, COLOR_GREEN, "GANGS:{DDDDDD} /creategang, /editgang, /removegang, /gangstrike, /setgang.");
- SendClientMessage(playerid, COLOR_GREEN, "POINTS:{DDDDDD} /createpoint, /editpoint, /removepoint, /gotopoint.");
- SendClientMessage(playerid, COLOR_GREEN, "TURFS:{DDDDDD} /createturf, /turfcancel, /editturf, /removeturf, /gototurf.");
- SendClientMessage(playerid, COLOR_GREEN, "FIRES:{DDDDDD} /randomfire, /killfire, /spawnfire.");
- return 1;
- }
- CMD:asellhouse(playerid, params[])
- {
- new houseid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /asellhouse [houseid]");
- }
- if(!(0 <= houseid < MAX_HOUSES) || !HouseInfo[houseid][hExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid house.");
- }
- SetHouseOwner(houseid, INVALID_PLAYER_ID);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have admin sold house %i.", houseid);
- return 1;
- }
- CMD:asellgarage(playerid, params[])
- {
- new garageid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /asellgarage [garageid]");
- }
- if(!(0 <= garageid < MAX_GARAGES) || !GarageInfo[garageid][gExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid garage.");
- }
- SetGarageOwner(garageid, INVALID_PLAYER_ID);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have admin sold garage %i.", garageid);
- return 1;
- }
- CMD:asellbiz(playerid, params[])
- {
- new businessid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /asellbiz [businessid]");
- }
- if(!(0 <= businessid < MAX_BUSINESSES) || !BusinessInfo[businessid][bExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid business.");
- }
- SetBusinessOwner(businessid, INVALID_PLAYER_ID);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have admin sold business %i.", businessid);
- return 1;
- }
- CMD:asellland(playerid, params[])
- {
- new landid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", landid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /asellland [landid]");
- }
- if(!(0 <= landid < MAX_LANDS) || !LandInfo[landid][lExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid land.");
- }
- SetLandOwner(landid, INVALID_PLAYER_ID);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have admin sold land %i.", landid);
- return 1;
- }
- CMD:getboombox(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, -2653.1162,1410.2180,906.2734))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in the VIP lounge at the moment, try to /locate vip it.");
- }
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- PlayerInfo[playerid][pBoombox] = 1;
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET boombox = %i WHERE uid = %i", 1, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- SendClientMessage(playerid, COLOR_VIP, "You have successfully took a boombox of free charge!");
- return 1;
- }
- CMD:enter(playerid, params[])
- {
- if(PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pCuffed] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1311.4474,-1366.9341,13.5145))
- {
- if(PlayerInfo[playerid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are restricted from weapons and therefore can't join paintball.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s has entered the paintball arena.", GetPlayerRPName(playerid));
- SetPlayerInPaintball(playerid);
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pPaintball])
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s has entered the paintball arena. ))", GetPlayerRPName(playerid));
- }
- }
- }
- else
- {
- EnterCheck(playerid);
- }
- return 1;
- }
- CMD:exit(playerid, params[])
- {
- if(PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pCuffed] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(PlayerInfo[playerid][pPaintball])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pPaintball])
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "(( %s has left the paintball arena. ))", GetPlayerRPName(playerid));
- }
- }
- ResetPlayerWeapons(playerid);
- SetPlayerArmedWeapon(playerid, 0);
- PlayerInfo[playerid][pPaintball] = 0;
- SetPlayerToSpawn(playerid);
- }
- else
- {
- ExitCheck(playerid);
- }
- return 1;
- }
- CMD:buyhouse(playerid, params[])
- {
- new houseid, type[16];
- if((houseid = GetNearbyHouse(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no house in range. You must be near a house.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /buyhouse [confirm]");
- }
- if(HouseInfo[houseid][hOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This house already has an owner.");
- }
- if(PlayerInfo[playerid][pCash] < HouseInfo[houseid][hPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this house.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_HOUSES) >= GetPlayerAssetLimit(playerid, LIMIT_HOUSES))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i houses. You can't own anymore unless you upgrade your asset perk.", GetPlayerAssetCount(playerid, LIMIT_HOUSES), GetPlayerAssetLimit(playerid, LIMIT_HOUSES));
- }
- if(HouseInfo[houseid][hType]) {
- type = "House";
- } else {
- strcpy(type, houseInteriors[HouseInfo[houseid][hType]][intClass]);
- }
- SetHouseOwner(houseid, playerid);
- GivePlayerCash(playerid, -HouseInfo[houseid][hPrice]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You paid $%i to make this house yours! /househelp for a list of commands.", HouseInfo[houseid][hPrice]);
- Log_Write("log_property", "%s (uid: %i) purchased %s (id: %i) for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], type, HouseInfo[houseid][hID], HouseInfo[houseid][hPrice]);
- return 1;
- }
- CMD:lock(playerid, params[])
- {
- new id;
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && IsPlayerInRangeOfDynamicObject(playerid, i, 2.5) && IsDoorObject(i))
- {
- if((id = GetInsideHouse(playerid)) >= 0 && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_FURNITURE && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == HouseInfo[id][hID])
- {
- if(!(IsHouseOwner(playerid, id) || PlayerInfo[playerid][pRentingHouse] == HouseInfo[id][hID] || PlayerInfo[playerid][pFurniturePerms] == id))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have permission from the house owner to lock this door.");
- }
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT door_locked FROM furniture WHERE id = %i", Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnPlayerLockFurnitureDoor", "ii", playerid, Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- return 1;
- }
- else if((id = GetNearbyLand(playerid)) >= 0 && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_LAND && Streamer_GetExtraInt(i, E_OBJECT_EXTRA_ID) == LandInfo[id][lID])
- {
- if(!(IsLandOwner(playerid, id) || PlayerInfo[playerid][pLandPerms] == id))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have permission from the land owner to lock this door.");
- }
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT door_locked FROM landobjects WHERE id = %i", Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnPlayerLockLandDoor", "ii", playerid, Streamer_GetExtraInt(i, E_OBJECT_INDEX_ID));
- return 1;
- }
- }
- }
- if((id = GetNearbyVehicle(playerid)) != INVALID_VEHICLE_ID && (IsVehicleOwner(playerid, id) || PlayerInfo[playerid][pVehicleKeys] == id || (VehicleInfo[id][vGang] >= 0 && VehicleInfo[id][vGang] == PlayerInfo[playerid][pGang])))
- {
- if(!VehicleInfo[id][vLocked])
- {
- VehicleInfo[id][vLocked] = 1;
- GameTextForPlayer(playerid, "~r~Vehicle locked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks their %s.", GetPlayerRPName(playerid), GetVehicleName(id));
- }
- else
- {
- VehicleInfo[id][vLocked] = 0;
- GameTextForPlayer(playerid, "~g~Vehicle unlocked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks their %s.", GetPlayerRPName(playerid), GetVehicleName(id));
- }
- SetVehicleParams(id, VEHICLE_DOORS, VehicleInfo[id][vLocked]);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET locked = %i WHERE id = %i", VehicleInfo[id][vLocked], VehicleInfo[id][vID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- else if((id = GetNearbyHouseEx(playerid)) >= 0 && (IsHouseOwner(playerid, id) || PlayerInfo[playerid][pRentingHouse] == HouseInfo[id][hID]))
- {
- if(!HouseInfo[id][hLocked])
- {
- HouseInfo[id][hLocked] = 1;
- GameTextForPlayer(playerid, "~r~House locked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks their house door.", GetPlayerRPName(playerid));
- }
- else
- {
- HouseInfo[id][hLocked] = 0;
- GameTextForPlayer(playerid, "~g~House unlocked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks their house door.", GetPlayerRPName(playerid));
- }
-
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET locked = %i WHERE id = %i", HouseInfo[id][hLocked], HouseInfo[id][hID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- else if((id = GetNearbyGarageEx(playerid)) >= 0 && IsGarageOwner(playerid, id))
- {
- if(!GarageInfo[id][gLocked])
- {
- GarageInfo[id][gLocked] = 1;
- GameTextForPlayer(playerid, "~r~Garage locked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks their garage door.", GetPlayerRPName(playerid));
- }
- else
- {
- GarageInfo[id][gLocked] = 0;
- GameTextForPlayer(playerid, "~g~Garage unlocked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks their garage door.", GetPlayerRPName(playerid));
- }
-
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET locked = %i WHERE id = %i", GarageInfo[id][gLocked], GarageInfo[id][gID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- else if((id = GetNearbyBusinessEx(playerid)) >= 0 && IsBusinessOwner(playerid, id))
- {
- if(!BusinessInfo[id][bLocked])
- {
- BusinessInfo[id][bLocked] = 1;
- GameTextForPlayer(playerid, "~r~Business locked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks their business door.", GetPlayerRPName(playerid));
- }
- else
- {
- BusinessInfo[id][bLocked] = 0;
- GameTextForPlayer(playerid, "~g~Business unlocked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks their business door.", GetPlayerRPName(playerid));
- }
-
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET locked = %i WHERE id = %i", BusinessInfo[id][bLocked], BusinessInfo[id][bID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- else if((id = GetNearbyEntranceEx(playerid)) >= 0)
- {
- new correct_pass;
- if(!IsEntranceOwner(playerid, id) && strcmp(EntranceInfo[id][ePassword], "None", true) != 0)
- {
- if(isnull(params)) {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /lock [password]");
- } else if(strcmp(params, EntranceInfo[id][ePassword]) != 0) {
- return SendClientMessage(playerid, COLOR_GREY, "Incorrect password.");
- } else {
- correct_pass = true;
- }
- }
- if((correct_pass) || IsEntranceOwner(playerid, id))
- {
- if(!EntranceInfo[id][eLocked])
- {
- EntranceInfo[id][eLocked] = 1;
- GameTextForPlayer(playerid, "~r~Entrance locked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s locks their entrance door.", GetPlayerRPName(playerid));
- }
- else
- {
- EntranceInfo[id][eLocked] = 0;
- GameTextForPlayer(playerid, "~g~Entrance unlocked", 3000, 6);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s unlocks their entrance door.", GetPlayerRPName(playerid));
- }
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET locked = %i WHERE id = %i", EntranceInfo[id][eLocked], EntranceInfo[id][eID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not close to anything which you can lock.");
- return 1;
- }
- CMD:househelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [House Commands] /buyhouse, /lock, /stash, /furniture, /upgradehouse, /sellhouse, /sellmyhouse.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [House Commands] /door, /renthouse, /unrent, /setrent, /tenants, /evict, /evictall, /houseinfo.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [House Commands] /houseinvite");
- return 1;
- }
- CMD:stash(playerid, params[])
- {
- new houseid;
- if((houseid = GetInsideHouse(playerid)) >= 0 && IsHouseOwner(playerid, houseid))
- {
- new option[14], param[32];
- if(!HouseInfo[houseid][hLevel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This house has no stash upgrade. '/upgradehouse level' to purchase one.");
- }
- if(sscanf(params, "s[14]S()[32]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [balance | deposit | withdraw]");
- }
- if(!strcmp(option, "balance", true))
- {
- new count;
- for(new i = 0; i < 10; i ++)
- {
- if(HouseInfo[houseid][hWeapons][i])
- {
- count++;
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Stash Balance _____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "Cash: $%i/$%i", HouseInfo[houseid][hCash], GetHouseStashCapacity(houseid, STASH_CAPACITY_CASH));
- SendClientMessageEx(playerid, COLOR_GREY2, "Materials: %i/%i | Weapons: %i/%i", HouseInfo[houseid][hMaterials], GetHouseStashCapacity(houseid, STASH_CAPACITY_MATERIALS), count, GetHouseStashCapacity(houseid, STASH_CAPACITY_WEAPONS));
- SendClientMessageEx(playerid, COLOR_GREY2, "Weed: %i/%i grams | Cocaine: %i/%i grams", HouseInfo[houseid][hWeed], GetHouseStashCapacity(houseid, STASH_CAPACITY_WEED), HouseInfo[houseid][hCocaine], GetHouseStashCapacity(houseid, STASH_CAPACITY_COCAINE));
- SendClientMessageEx(playerid, COLOR_GREY2, "Meth: %i/%i grams | Painkillers: %i/%i pills", HouseInfo[houseid][hMeth], GetHouseStashCapacity(houseid, STASH_CAPACITY_METH), HouseInfo[houseid][hPainkillers], GetHouseStashCapacity(houseid, STASH_CAPACITY_PAINKILLERS));
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Stash Ammunition_____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "HP Ammo: %i/%i | Poison Ammo: %i/%i", HouseInfo[houseid][hHPAmmo], GetHouseStashCapacity(houseid, STASH_CAPACITY_HPAMMO), HouseInfo[houseid][hPoisonAmmo], GetHouseStashCapacity(houseid, STASH_CAPACITY_POISONAMMO));
- SendClientMessageEx(playerid, COLOR_GREY2, "FMJ Ammo: %i/%i", HouseInfo[houseid][hFMJAmmo], GetHouseStashCapacity(houseid, STASH_CAPACITY_FMJAMMO));
- if(count > 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Stash Weapons _____|");
- for(new i = 0; i < 10; i ++)
- {
- if(HouseInfo[houseid][hWeapons][i])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "[%i] Weapon: %s", i + 1, GetWeaponNameEx(HouseInfo[houseid][hWeapons][i]));
- }
- }
- }
- }
- else if(!strcmp(option, "deposit", true))
- {
- new value;
- if(sscanf(param, "s[14]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Cash, Materials, Weed, Cocaine, Meth, Painkillers, Weapon");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(!strcmp(option, "cash", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [cash] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_CASH) < HouseInfo[houseid][hCash] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to $%i at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_CASH));
- }
- GivePlayerCash(playerid, -value);
- HouseInfo[houseid][hCash] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET cash = %i WHERE id = %i", HouseInfo[houseid][hCash], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored $%i in your house stash.", value);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [materials] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_MATERIALS) < HouseInfo[houseid][hMaterials] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i materials at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_MATERIALS));
- }
- PlayerInfo[playerid][pMaterials] -= value;
- HouseInfo[houseid][hMaterials] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET materials = %i WHERE id = %i", HouseInfo[houseid][hMaterials], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i materials in your house stash.", value);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [weed] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_WEED) < HouseInfo[houseid][hWeed] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i grams of weed at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_WEED));
- }
- PlayerInfo[playerid][pWeed] -= value;
- HouseInfo[houseid][hWeed] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET weed = %i WHERE id = %i", HouseInfo[houseid][hWeed], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %ig of weed in your house stash.", value);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [cocaine] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_COCAINE) < HouseInfo[houseid][hCocaine] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i grams of cocaine at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_COCAINE));
- }
- PlayerInfo[playerid][pCocaine] -= value;
- HouseInfo[houseid][hCocaine] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET cocaine = %i WHERE id = %i", HouseInfo[houseid][hCocaine], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %ig of cocaine in your house stash.", value);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [meth] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_METH) < HouseInfo[houseid][hMeth] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i grams of meth at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_METH));
- }
- PlayerInfo[playerid][pMeth] -= value;
- HouseInfo[houseid][hMeth] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET meth = %i WHERE id = %i", HouseInfo[houseid][hMeth], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %ig of meth in your house stash.", value);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [painkillers] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_PAINKILLERS) < HouseInfo[houseid][hPainkillers] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i painkillers at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_PAINKILLERS));
- }
- PlayerInfo[playerid][pPainkillers] -= value;
- HouseInfo[houseid][hPainkillers] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET painkillers = %i WHERE id = %i", HouseInfo[houseid][hPainkillers], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i painkillers in your house stash.", value);
- }
- else if(!strcmp(option, "weapon", true))
- {
- new weaponid;
- if(sscanf(param, "i", weaponid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [weapon] [weaponid] (/guninv for weapon IDs)");
- }
- if(!(1 <= weaponid <= 46) || PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] != weaponid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon. /guninv for a list of your weapons.");
- }
- if(GetPlayerHealthEx(playerid) < 60)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't store weapons as your health is below 60.");
- }
- for(new i = 0; i < GetHouseStashCapacity(houseid, STASH_CAPACITY_WEAPONS); i ++)
- {
- if(!HouseInfo[houseid][hWeapons][i])
- {
- HouseInfo[houseid][hWeapons][i] = weaponid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET weapon_%i = %i WHERE id = %i", i + 1, HouseInfo[houseid][hWeapons][i], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- RemovePlayerWeapon(playerid, weaponid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored a %s in slot %i of your house stash.", GetWeaponNameEx(HouseInfo[houseid][hWeapons][i]), value + 1);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Your house stash has no more slots available for weapons.");
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [hpammo] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_HPAMMO) < HouseInfo[houseid][hHPAmmo] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i hollow point ammo at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_HPAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] - value);
- HouseInfo[houseid][hHPAmmo] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET hpammo = %i WHERE id = %i", HouseInfo[houseid][hHPAmmo], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i rounds of hollow point ammo in your house stash.", value);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [poisonammo] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_POISONAMMO) < HouseInfo[houseid][hPoisonAmmo] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i poison tip ammo at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_POISONAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] - value);
- HouseInfo[houseid][hPoisonAmmo] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET poisonammo = %i WHERE id = %i", HouseInfo[houseid][hPoisonAmmo], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i rounds of poison tip ammo in your house stash.", value);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [deposit] [fmjammo] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(GetHouseStashCapacity(houseid, STASH_CAPACITY_FMJAMMO) < HouseInfo[houseid][hFMJAmmo] + value)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your stash can only hold up to %i FMJ ammo at your house's level.", GetHouseStashCapacity(houseid, STASH_CAPACITY_FMJAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] - value);
- HouseInfo[houseid][hFMJAmmo] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET fmjammo = %i WHERE id = %i", HouseInfo[houseid][hFMJAmmo], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i rounds of full metal jacket ammo in your house stash.", value);
- }
- }
- else if(!strcmp(option, "withdraw", true))
- {
- new value;
- if(sscanf(param, "s[14]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Cash, Weed, Cocaine, Meth, Painkillers, Weapon");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(!strcmp(option, "cash", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [cash] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- GivePlayerCash(playerid, value);
- HouseInfo[houseid][hCash] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET cash = %i WHERE id = %i", HouseInfo[houseid][hCash], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken $%i from your house stash.", value);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [materials] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pMaterials] + value > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- }
- PlayerInfo[playerid][pMaterials] += value;
- HouseInfo[houseid][hMaterials] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET materials = %i WHERE id = %i", HouseInfo[houseid][hMaterials], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i materials from your house stash.", value);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [weed] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pWeed] + value > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- }
- PlayerInfo[playerid][pWeed] += value;
- HouseInfo[houseid][hWeed] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET weed = %i WHERE id = %i", HouseInfo[houseid][hWeed], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %ig of weed from your house stash.", value);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [cocaine] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pCocaine] + value > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- }
- PlayerInfo[playerid][pCocaine] += value;
- HouseInfo[houseid][hCocaine] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET cocaine = %i WHERE id = %i", HouseInfo[houseid][hCocaine], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %ig of cocaine from your house stash.", value);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [meth] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pMeth] + value > GetPlayerCapacity(playerid, CAPACITY_METH))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i meth. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH));
- }
- PlayerInfo[playerid][pMeth] += value;
- HouseInfo[houseid][hMeth] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET meth = %i WHERE id = %i", HouseInfo[houseid][hMeth], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %ig of meth from your house stash.", value);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [painkillers] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pPainkillers] + value > GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i painkillers. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPainkillers], GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS));
- }
- PlayerInfo[playerid][pPainkillers] += value;
- HouseInfo[houseid][hPainkillers] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET painkillers = %i WHERE id = %i", HouseInfo[houseid][hPainkillers], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i painkillers from your house stash.", value);
- }
- else if(!strcmp(option, "weapon", true))
- {
- new slots = GetHouseStashCapacity(houseid, STASH_CAPACITY_WEAPONS);
- if(sscanf(param, "i", value))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [weapon] [slot (1-%i)]", slots);
- }
- if(value < 1 || value > slots)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot, or the slot specified is locked.");
- }
- if(!HouseInfo[houseid][hWeapons][value-1])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The slot specified contains no weapon which you can take.");
- }
- GivePlayerWeaponEx(playerid, HouseInfo[houseid][hWeapons][value-1]);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken a %s from slot %i of your house stash.", GetWeaponNameEx(HouseInfo[houseid][hWeapons][value-1]), value);
- HouseInfo[houseid][hWeapons][value-1] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET weapon_%i = 0 WHERE id = %i", value, HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [hpammo] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pHPAmmo] + value > GetPlayerCapacity(playerid, CAPACITY_HPAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i HP ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] + value);
- HouseInfo[houseid][hHPAmmo] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET hpammo = %i WHERE id = %i", HouseInfo[houseid][hHPAmmo], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i rounds of hollow point ammo from your house stash.", value);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [poisonammo] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pPoisonAmmo] + value > GetPlayerCapacity(playerid, CAPACITY_POISONAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i poison ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] + value);
- HouseInfo[houseid][hPoisonAmmo] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET poisonammo = %i WHERE id = %i", HouseInfo[houseid][hPoisonAmmo], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i rounds of poison tip ammo from your house stash.", value);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stash [withdraw] [fmjammo] [amount]");
- }
- if(value < 1 || value > HouseInfo[houseid][hFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pFMJAmmo] + value > GetPlayerCapacity(playerid, CAPACITY_FMJAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i FMJ ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] + value);
- HouseInfo[houseid][hFMJAmmo] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET fmjammo = %i WHERE id = %i", HouseInfo[houseid][hFMJAmmo], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i rounds of full metal jacket ammo from your house stash.", value);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any stash which you can use.");
- }
- return 1;
- }
- CMD:upgradehouse(playerid, params[])
- {
- new
- houseid = GetNearbyHouseEx(playerid),
- option[10],
- param[12],
- string[20];
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- if(sscanf(params, "s[10]S()[12]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradehouse [level/interior]");
- }
- if(!strcmp(option, "level", true))
- {
- new cost = (HouseInfo[houseid][hLevel] * 25000) + 25000;
- if(HouseInfo[houseid][hLevel] >= 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your house is already at the maximum level possible.");
- }
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradehouse [level] [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "You are about to upgrade to level %i/5 which will cost you $%i.", HouseInfo[houseid][hLevel] + 1, cost);
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < cost)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that much cash.");
- }
- HouseInfo[houseid][hLevel]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET level = level + 1 WHERE id = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- format(string, sizeof(string), "~r~-$%i", cost);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid, -cost);
- ReloadHouse(houseid);
- if(HouseInfo[houseid][hLevel] == 1)
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "You have upgraded your house to level %i/5. You unlocked a stash for your house! (/stash)", HouseInfo[houseid][hLevel]);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "You have upgraded your house to level %i/5. Your stash capacity was increased.", HouseInfo[houseid][hLevel]);
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "Your tenant and furniture capacity were also both increased to %i/%i.", GetHouseTenantCapacity(houseid), GetHouseFurnitureCapacity(houseid));
- Log_Write("log_property", "%s (uid: %i) upgraded their house (id: %i) to level %i for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], HouseInfo[houseid][hID], HouseInfo[houseid][hLevel], cost);
- }
- else if(!strcmp(option, "interior", true))
- {
- for(new i = HouseInfo[houseid][hType] + 1; i < sizeof(houseInteriors); i ++)
- {
- if(!strcmp(houseInteriors[i][intClass], houseInteriors[HouseInfo[houseid][hType]][intClass]))
- {
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradehouse [interior] [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "You are about to upgrade your interior to the next one in the class for $%i.", houseInteriors[i][intPrice]);
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < houseInteriors[i][intPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford the upgrade.");
- }
- foreach(new x : Player)
- {
- if(GetInsideHouse(x) == houseid)
- {
- SetPlayerPos(x, houseInteriors[i][intX], houseInteriors[i][intY], houseInteriors[i][intZ]);
- SetPlayerFacingAngle(x, houseInteriors[i][intA]);
- SetPlayerInterior(x, houseInteriors[i][intID]);
- SetCameraBehindPlayer(x);
- }
- }
- GivePlayerCash(playerid, -houseInteriors[i][intPrice]);
- HouseInfo[houseid][hType] = i;
- HouseInfo[houseid][hPrice] = houseInteriors[i][intPrice];
- HouseInfo[houseid][hInterior] = houseInteriors[i][intID];
- HouseInfo[houseid][hIntX] = houseInteriors[i][intX];
- HouseInfo[houseid][hIntY] = houseInteriors[i][intY];
- HouseInfo[houseid][hIntZ] = houseInteriors[i][intZ];
- HouseInfo[houseid][hIntA] = houseInteriors[i][intA];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET type = %i, price = %i, int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i, world = %i WHERE id = %i", i, HouseInfo[houseid][hPrice], HouseInfo[houseid][hIntX], HouseInfo[houseid][hIntY], HouseInfo[houseid][hIntZ], HouseInfo[houseid][hIntA], HouseInfo[houseid][hInterior], HouseInfo[houseid][hWorld], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have upgraded to the next interior in the class for $%i.", houseInteriors[i][intPrice]);
- Log_Write("log_property", "%s (uid: %i) upgraded their house interior (id: %i) to interior %i for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], HouseInfo[houseid][hID], i, houseInteriors[i][intPrice]);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Your house's interior is already at its maximum in its class. You cannot upgrade it any further.");
- }
- return 1;
- }
- CMD:sellhouse(playerid, params[])
- {
- new houseid = GetNearbyHouseEx(playerid), targetid, amount;
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellhouse [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell to yourself.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must specify an amount above zero.");
- }
- PlayerInfo[targetid][pHouseOffer] = playerid;
- PlayerInfo[targetid][pHouseOffered] = houseid;
- PlayerInfo[targetid][pHousePrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you their house for $%i (/accept house).", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered %s to buy your house for $%i.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:sellmyhouse(playerid, params[])
- {
- new houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellmyhouse [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command sells your house back to the state. You will receive $%i back.", percent(HouseInfo[houseid][hPrice], 75));
- return 1;
- }
- SetHouseOwner(houseid, INVALID_PLAYER_ID);
- GivePlayerCash(playerid, percent(HouseInfo[houseid][hPrice], 75));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have sold your house to the state and received $%i back.", percent(HouseInfo[houseid][hPrice], 75));
- Log_Write("log_property", "%s (uid: %i) sold their house (id: %i) to the state for $%i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], HouseInfo[houseid][hID], percent(HouseInfo[houseid][hPrice], 75));
- return 1;
- }
- CMD:houseinfo(playerid, params[])
- {
- new houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT (SELECT COUNT(*) FROM furniture WHERE houseid = %i) AS furnitureCount, (SELECT COUNT(*) FROM users WHERE rentinghouse = %i) AS tenantCount", HouseInfo[houseid][hID], HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_HOUSE_INFORMATION, playerid);
- return 1;
- }
- CMD:makeadmin(playerid, params[])
- {
- new targetid, level;
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, level))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /makeadmin [playerid] [level]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!(0 <= level <= 7))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level. Valid levels range from 0 to 6.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin] && level < PlayerInfo[targetid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be demoted.");
- }
- if(level == 0 && PlayerInfo[targetid][pAdminDuty])
- {
- SetPlayerName(targetid, PlayerInfo[targetid][pUsername]);
- SetPlayerSpecialTag(targetid, TAG_NONE);
- PlayerInfo[targetid][pAdminDuty] = 0;
- }
- PlayerInfo[targetid][pAdmin] = level;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a %s (%i).", GetPlayerRPName(playerid), GetPlayerRPName(targetid), GetAdminRank(targetid), level);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET adminlevel = %i WHERE uid = %i", level, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(level == 0)
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s's administrator powers.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed your administrator powers.", GetPlayerRPName(playerid));
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set %s's admin level to {FF6347}%s{33CCFF} (%i).", GetPlayerRPName(targetid), GetAdminRank(targetid), level);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has set your admin level to {FF6347}%s{33CCFF} (%i).", GetPlayerRPName(playerid), GetAdminRank(targetid), level);
- }
- Log_Write("log_admin", "%s (uid: %i) set %s's (uid: %i) admin level to %i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], level);
- return 1;
- }
- CMD:makehelper(playerid, params[])
- {
- new targetid, level;
- if(PlayerInfo[playerid][pAdmin] < 6 && PlayerInfo[playerid][pHelper] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, level))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /makehelper [playerid] [level]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!(0 <= level <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level. Valid levels range from 0 to 5.");
- }
- if((PlayerInfo[playerid][pAdmin] < 6) && PlayerInfo[targetid][pHelper] > PlayerInfo[playerid][pHelper] && level < PlayerInfo[targetid][pHelper])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher helper level than you. They cannot be demoted.");
- }
- if(level == 0 && PlayerInfo[targetid][pTagType] == TAG_HELPER)
- {
- SetPlayerSpecialTag(targetid, TAG_NONE);
- }
- SendStaffMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a level %i helper.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), level);
- PlayerInfo[targetid][pHelper] = level;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET helperlevel = %i WHERE uid = %i", level, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have made %s a {00AA00}%s{33CCFF} (%i).", GetPlayerRPName(targetid), GetHelperRank(targetid), level);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has made you a {00AA00}%s{33CCFF} (%i).", GetPlayerRPName(playerid), GetHelperRank(targetid), level);
- Log_Write("log_admin", "%s (uid: %i) set %s's (uid: %i) helper level to %i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], level);
- return 1;
- }
- CMD:omakeadmin(playerid, params[])
- {
- new username[MAX_PLAYER_NAME], level;
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]i", username, level))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /omakeadmin [username] [level]");
- }
- if(!(0 <= level <= 7))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level. Valid levels range from 0 to 6.");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use /makeadmin instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT adminlevel FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminSetAdminLevel", "isi", playerid, username, level);
- return 1;
- }
- CMD:omakehelper(playerid, params[])
- {
- new username[MAX_PLAYER_NAME], level;
- if(PlayerInfo[playerid][pAdmin] < 6 && PlayerInfo[playerid][pHelper] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[24]i", username, level))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /omakehelper [username] [level]");
- }
- if(!(0 <= level <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level. Valid levels range from 0 to 5.");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use /makehelper instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT helperlevel FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnAdminSetHelperLevel", "isi", playerid, username, level);
- return 1;
- }
- /*CMD:addtoevent(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /addtoevent [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerSpawned(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is either not spawned, or spectating.");
- }
- if(!EventInfo[eReady])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no active events which you can add this player to.");
- }
- if(PlayerInfo[targetid][pJoinedEvent])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player is already in the event.");
- }
- if(PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently playing paintball.");
- }
- SetPlayerInEvent(targetid);
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s has added you to the event.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has added %s to the event.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }*/
- CMD:olisthelpers(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6 && PlayerInfo[playerid][pHelper] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- mysql_tquery(connectionID, "SELECT username, lastlogin, helperlevel FROM users WHERE helperlevel > 0 ORDER BY lastlogin DESC", "OnQueryFinished", "ii", THREAD_LIST_HELPERS, playerid);
- return 1;
- }
- CMD:sellinactive(playerid, params[])
- {
- new houses, garages, businesses;
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && HouseInfo[i][hOwnerID] > 0 && (gettime() - HouseInfo[i][hTimestamp]) > 1209600)
- {
- SetHouseOwner(i, INVALID_PLAYER_ID);
- houses++;
- }
- }
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && GarageInfo[i][gOwnerID] > 0 && (gettime() - GarageInfo[i][gTimestamp]) > 1209600)
- {
- SetGarageOwner(i, INVALID_PLAYER_ID);
- garages++;
- }
- }
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && BusinessInfo[i][bOwnerID] > 0 && (gettime() - BusinessInfo[i][bTimestamp]) > 1209600)
- {
- SetBusinessOwner(i, INVALID_PLAYER_ID);
- businesses++;
- }
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has sold all inactive properties.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have sold %i inactive houses, %i inactive garages and %i inactive businesses.", houses, garages, businesses);
- return 1;
- }
- CMD:setmotd(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setmotd [text ('none' to reset)]");
- }
- if(strfind(params, "|") != -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You may not include the '|' character in the MOTD.");
- }
- if(!strcmp(params, "none", true))
- {
- gServerMOTD[0] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "** You have reset the MOTD text.");
- }
- else
- {
- strcpy(gServerMOTD, params, 128);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have changed the MOTD text to '%s'.", gServerMOTD);
- }
- SaveServerInfo();
- return 1;
- }
- CMD:setstaff(playerid, params[])
- {
- new targetid, option[16], status;
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[16]i", targetid, option, status) || !(0 <= status <= 1))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setstaff [playerid] [option] [status (0/1)]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: FactionMod, GangMod, BanAppealer");
- return 1;
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!strcmp(option, "factionmod", true))
- {
- PlayerInfo[targetid][pFactionMod] = status;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET factionmod = %i WHERE uid = %i", PlayerInfo[targetid][pFactionMod], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(status)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a faction moderator.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has made %s (uid: %i) a faction moderator.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have made %s a {FF6347}faction moderator{33CCFF}.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has made you a {FF6347}faction moderator{33CCFF}.", GetPlayerRPName(playerid));
- }
- else
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has removed %s's faction moderator status.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has removed %s's (uid: %i) faction moderator status.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s's {FF6347}faction moderator{33CCFF} status.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed your {FF6347}faction moderator{33CCFF} status.", GetPlayerRPName(playerid));
- }
- }
- else if(!strcmp(option, "gangmod", true))
- {
- PlayerInfo[targetid][pGangMod] = status;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gangmod = %i WHERE uid = %i", PlayerInfo[targetid][pGangMod], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(status)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a gang moderator.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has made %s (uid: %i) a gang moderator.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have made %s a {FF6347}gang moderator{33CCFF}.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has made you a {FF6347}gang moderator{33CCFF}.", GetPlayerRPName(playerid));
- }
- else
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has removed %s's gang moderator status.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has removed %s's (uid: %i) gang moderator status.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s's {FF6347}gang moderator{33CCFF} status.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed your {FF6347}gang moderator{33CCFF} status.", GetPlayerRPName(playerid));
- }
- }
- else if(!strcmp(option, "banappealer", true))
- {
- PlayerInfo[targetid][pBanAppealer] = status;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET banappealer = %i WHERE uid = %i", PlayerInfo[targetid][pBanAppealer], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(status)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a ban appealer.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has made %s (uid: %i) a ban appealer.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have made %s a {FF6347}ban appealer{33CCFF}.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has made you a {FF6347}ban appealer{33CCFF}.", GetPlayerRPName(playerid));
- }
- else
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has removed %s's ban appealer status.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- Log_Write("log_admin", "%s (uid: %i) has removed %s's (uid: %i) ban appealer status.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s's {FF6347}ban appealer{33CCFF} status.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed your {FF6347}ban appealer{33CCFF} status.", GetPlayerRPName(playerid));
- }
- }
- return 1;
- }
- CMD:changelist(playerid, params[])
- {
- new slot, option[10], param[64];
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[10]S()[64]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /changelist [view | edit | clear]");
- }
- if(!strcmp(option, "view", true))
- {
- mysql_tquery(connectionID, "SELECT * FROM changes ORDER BY slot", "OnQueryFinished", "ii", THREAD_LIST_CHANGES, playerid);
- }
- else if(!strcmp(option, "edit", true))
- {
- if(sscanf(param, "is[64]", slot, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /changelist [edit] [slot (1-10)] [text]");
- }
- if(!(1 <= slot <= 10))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO changes VALUES(%i, '%e') ON DUPLICATE KEY UPDATE text = '%e'", slot, param, param);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** Change text for slot %i changed to '%s'.", slot, param);
- }
- else if(!strcmp(option, "clear", true))
- {
- if(sscanf(param, "i", slot))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /changelist [clear] [slot (1-10)]");
- }
- if(!(1 <= slot <= 10))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM changes WHERE slot = %i", slot);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** Change text for slot %i cleared.", slot);
- }
- return 1;
- }
- CMD:forceaduty(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /forceaduty [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player needs to be at least a level 2 administrator.");
- }
- if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has a higher admin level than you. They cannot be forced into admin duty.");
- }
- if(!PlayerInfo[targetid][pAdminDuty])
- {
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s has forced you to be on admin duty.", GetPlayerRPName(playerid));
- }
- else
- {
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s has forced you to be off admin duty.", GetPlayerRPName(playerid));
- }
- cmd_aduty(targetid, "\1");
- return 1;
- }
- CMD:listhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
-
- SendClientMessage(playerid, COLOR_GREEN, "|____ Help Requests ____|");
-
- foreach(new i : Player)
- {
- if(!isnull(PlayerInfo[i][pHelpRequest]))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "** %s[%i] asks: %s", GetPlayerRPName(i), i, PlayerInfo[i][pHelpRequest]);
- }
- }
- SendClientMessage(playerid, COLOR_AQUA, "** Use /accepthelp [id] or /denyhelp [id] to handle help requests.");
- SendClientMessage(playerid, COLOR_AQUA, "** Use /answerhelp [id] [msg] to PM an answer without the need to teleport.");
- return 1;
- }
- CMD:accepthelp(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /accepthelp [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(isnull(PlayerInfo[targetid][pHelpRequest]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't requested any help since they connected.");
- }
- if(PlayerInfo[playerid][pTagType] == TAG_NONE)
- {
- SetPlayerSpecialTag(playerid, TAG_HELPER);
- }
- if(!PlayerInfo[playerid][pAcceptedHelp])
- {
- SavePlayerVariables(playerid);
- }
- TeleportToPlayer(playerid, targetid, false);
- TogglePlayerControllable(targetid, 0);
- SetTimerEx("UnfreezeNewbie", 5000, false, "i", targetid);
- SetPlayerHealth(playerid, 32767);
- //SetScriptArmour(playerid, 0.0);
- PlayerInfo[playerid][pHelpRequests]++;
- PlayerInfo[playerid][pAcceptedHelp] = 1;
- PlayerInfo[targetid][pHelpRequest][0] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET helprequests = %i WHERE uid = %i", PlayerInfo[playerid][pHelpRequests], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You accepted %s's help request and were sent to their position. /return to go back.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_GREEN, "%s has accepted your help request. They are now assisting you.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:denyhelp(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /denyhelp [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(isnull(PlayerInfo[targetid][pHelpRequest]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't requested any help since they connected.");
- }
- PlayerInfo[targetid][pHelpRequest][0] = 0;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You denied %s's help request.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** %s has denied your help request.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:sta(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sta [playerid] (Sends /helpme to admins)");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(isnull(PlayerInfo[targetid][pHelpRequest]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't requested any help since they connected.");
- }
- AddReportToQueue(targetid, PlayerInfo[targetid][pHelpRequest]);
- PlayerInfo[targetid][pHelpRequest][0] = 0;
- SendClientMessageEx(playerid, COLOR_WHITE, "** You sent %s's help request to all online admins.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has sent your help request to all online admins.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:return(playerid, params[])
- {
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAcceptedHelp])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't accepted any help requests.");
- }
- if(PlayerInfo[playerid][pTagType] == TAG_HELPER)
- {
- SetPlayerSpecialTag(playerid, TAG_NONE);
- }
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetScriptArmour(playerid, PlayerInfo[playerid][pArmor]);
- SetPlayerPos(playerid, PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ]);
- SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPosA]);
- SetPlayerInterior(playerid, PlayerInfo[playerid][pInterior]);
- SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pWorld]);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "** You were returned to your previous position.");
- PlayerInfo[playerid][pAcceptedHelp] = 0;
- return 1;
- }
- CMD:answerhelp(playerid, params[])
- {
- new targetid, msg[128];
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[128]", targetid, msg))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /answerhelp [playerid] [message]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(isnull(PlayerInfo[targetid][pHelpRequest]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't requested any help since they connected.");
- }
- PlayerInfo[playerid][pHelpRequests]++;
- PlayerInfo[targetid][pHelpRequest][0] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET helprequests = %i WHERE uid = %i", PlayerInfo[playerid][pHelpRequests], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(strlen(msg) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(targetid, COLOR_YELLOW, "** PM from Helper %s: %.*s... **", GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, msg);
- SendClientMessageEx(targetid, COLOR_YELLOW, "** PM from Helper %s: ...%s **", GetPlayerRPName(playerid), msg[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(targetid, COLOR_YELLOW, "** PM from Helper %s: %s **", GetPlayerRPName(playerid), msg);
- }
-
- return 1;
- }
- CMD:hc(playerid, params[])
- {
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /hc [helper chat]");
- }
- if(PlayerInfo[playerid][pToggleHelper])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the helper chat as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pHelper] > 0 && !PlayerInfo[i][pToggleHelper])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_AQUA, "** %s %s: %.*s... **", GetHelperRank(playerid), GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_AQUA, "** %s %s: ...%s **", GetHelperRank(playerid), GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_AQUA, "** %s %s: %s **", GetHelperRank(playerid), GetPlayerRPName(playerid), params);
- }
- }
- }
- return 1;
- }
- CMD:hh(playerid, params[])
- {
- return cmd_helperhelp(playerid, params);
- }
- CMD:hhelp(playerid, params[])
- {
- return cmd_helperhelp(playerid, params);
- }
- CMD:helperhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pHelper] < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(PlayerInfo[playerid][pHelper] >= 1)
- {
- SendClientMessage(playerid, COLOR_AQUA, "LEVEL 1:{DDDDDD} /hc, /listhelp, /accepthelp, /answerhelp, /denyhelp, /sta, /return.");
- }
- if(PlayerInfo[playerid][pHelper] >= 2)
- {
- SendClientMessage(playerid, COLOR_AQUA, "LEVEL 2:{DDDDDD} /nmute, /hmute.");
- }
- if(PlayerInfo[playerid][pHelper] >= 3)
- {
- SendClientMessage(playerid, COLOR_AQUA, "LEVEL 3:{DDDDDD} /makehelper, /omakehelper, /olisthelpers, /jail.");
- }
- if(PlayerInfo[playerid][pHelper] >= 4)
- {
- SendClientMessage(playerid, COLOR_AQUA, "LEVEL 4:{DDDDDD} /kick, /ban, /spec.");
- }
- return 1;
- }
- CMD:listassets(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /listassets [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "_____ %s's Assets _____", GetPlayerRPName(targetid));
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && IsHouseOwner(targetid, i))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "* {33CC33}House{C8C8C8} | ID: %i | Location: %s | Status: %s", i, GetZoneName(HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ]), (gettime() - HouseInfo[i][hTimestamp]) > 2592000 ? ("{FF6347}Inactive") : ("{00AA00}Active"));
- }
- }
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && IsBusinessOwner(targetid, i))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "* {FFD700}Business{C8C8C8} | ID: %i | Location: %s | Status: %s", i, GetZoneName(BusinessInfo[i][bPosX], BusinessInfo[i][bPosY], BusinessInfo[i][bPosZ]), (gettime() - BusinessInfo[i][bTimestamp]) > 2592000 ? ("{FF6347}Inactive") : ("{00AA00}Active"));
- }
- }
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && IsGarageOwner(targetid, i))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "* {004CFF}Garage{C8C8C8} | ID: %i | Location: %s | Status: %s", i, GetZoneName(GarageInfo[i][gPosX], GarageInfo[i][gPosY], GarageInfo[i][gPosZ]), (gettime() - GarageInfo[i][gTimestamp]) > 2592000 ? ("{FF6347}Inactive") : ("{00AA00}Active"));
- }
- }
- for(new i = 0; i < MAX_LANDS; i ++)
- {
- if(LandInfo[i][lExists] && IsLandOwner(targetid, i))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "* {33CCFF}Land{C8C8C8} | ID: %i | Location: %s", i, GetZoneName(LandInfo[i][lHeight], LandInfo[i][lMaxX], LandInfo[i][lMaxY]));
- }
- }
- return 1;
- }
- CMD:activity(playerid, params[])
- {
- new type[16];
- SendClientMessage(playerid, COLOR_GREEN, "|______ My Properties ______|");
- for(new i = 0; i < MAX_HOUSES; i ++)
- {
- if(HouseInfo[i][hExists] && IsHouseOwner(playerid, i))
- {
- if(HouseInfo[i][hType] == -1)
- {
- type = "Other";
- }
- else
- {
- strcpy(type, houseInteriors[HouseInfo[i][hType]][intClass]);
- }
- if((gettime() - HouseInfo[i][hTimestamp]) > 1209600)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Your %s house in %s is currently marked as {FF6347}Inactive{C8C8C8}.", type, GetZoneName(HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ]));
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Your %s house in %s is currently marked as {00AA00}Active{C8C8C8}.", type, GetZoneName(HouseInfo[i][hPosX], HouseInfo[i][hPosY], HouseInfo[i][hPosZ]));
- }
- }
- }
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(GarageInfo[i][gExists] && IsGarageOwner(playerid, i))
- {
- if((gettime() - GarageInfo[i][gTimestamp]) > 1209600)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Your %s garage in %s is currently marked as {FF6347}Inactive{C8C8C8}.", garageInteriors[GarageInfo[i][gType]][intName], GetZoneName(GarageInfo[i][gPosX], GarageInfo[i][gPosY], GarageInfo[i][gPosZ]));
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Your %s garage in %s is currently marked as {00AA00}Active{C8C8C8}.", garageInteriors[GarageInfo[i][gType]][intName], GetZoneName(GarageInfo[i][gPosX], GarageInfo[i][gPosY], GarageInfo[i][gPosZ]));
- }
- }
- }
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(BusinessInfo[i][bExists] && IsBusinessOwner(playerid, i))
- {
- if((gettime() - BusinessInfo[i][bTimestamp]) > 1209600)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Your %s business in %s is currently marked as {FF6347}Inactive{C8C8C8}.", bizInteriors[BusinessInfo[i][bType]][intType], GetZoneName(BusinessInfo[i][bPosX], BusinessInfo[i][bPosY], BusinessInfo[i][bPosZ]));
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Your %s business in %s is currently marked as {00AA00}Active{C8C8C8}.", bizInteriors[BusinessInfo[i][bType]][intType], GetZoneName(BusinessInfo[i][bPosX], BusinessInfo[i][bPosY], BusinessInfo[i][bPosZ]));
- }
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "** Your properties become inactive if you don't enter them for 14+ days.");
- return 1;
- }
- CMD:setrent(playerid, params[])
- {
- new price, houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- if(sscanf(params, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setrent [price ('0' to disable)]");
- }
- if(!(0 <= price <= 10000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid price. The price must range between $0 and $10,000.");
- }
- HouseInfo[houseid][hRentPrice] = price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET rentprice = %i WHERE id = %i", price, HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadHouse(houseid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've set the rental price to $%i.", price);
- return 1;
- }
- CMD:renthouse(playerid, params[])
- {
- new houseid;
- if((houseid = GetNearbyHouse(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no house in range. You must be near a house.");
- }
- /*if(strcmp(params, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /renthouse [confirm]");
- }*/
- if(!HouseInfo[houseid][hOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This house is not owned and therefore cannot be rented.");
- }
- if(!HouseInfo[houseid][hRentPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This house's owner has chosen to disable renting for this house.");
- }
- if(PlayerInfo[playerid][pCash] < HouseInfo[houseid][hRentPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to rent here.");
- }
- if(IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are the owner of this house. You can't rent here.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM users WHERE rentinghouse = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerRentHouse", "ii", playerid, houseid);
- return 1;
- }
- CMD:unrent(playerid, params[])
- {
- if(!PlayerInfo[playerid][pRentingHouse])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not renting at any property. You can't use this command.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET rentinghouse = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pRentingHouse] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "** You have ripped up your rental contract.");
- return 1;
- }
- CMD:tenants(playerid, params[])
- {
- new houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, lastlogin FROM users WHERE rentinghouse = %i ORDER BY lastlogin DESC", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LIST_TENANTS, playerid);
- return 1;
- }
- CMD:evict(playerid, params[])
- {
- new username[MAX_PLAYER_NAME], houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- if(sscanf(params, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /evict [username]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e' AND rentinghouse = %i", username, HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerEvict", "is", playerid, username);
- return 1;
- }
- CMD:evictall(playerid, params[])
- {
- new houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pRentingHouse] == HouseInfo[houseid][hID])
- {
- PlayerInfo[i][pRentingHouse] = 0;
- SendClientMessage(i, COLOR_RED, "You have been evicted from your home by the owner.");
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET rentinghouse = 0 WHERE rentinghouse = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** You have evicted all tenants from your home.");
- return 1;
- }
- CMD:houseinvite(playerid, params[])
- {
- new targetid, houseid = GetNearbyHouseEx(playerid);
- if(houseid == -1 || !IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any house of yours.");
- }
- if(sscanf(params, "i", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /houseinvite [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- //return SendClientMessage(playerid, COLOR_GREY, "You can't invite yourself to your own home.");
- }
-
- PlayerInfo[targetid][pInviteOffer] = playerid;
- PlayerInfo[targetid][pInviteHouse] = houseid;
-
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has offered you an invitation to their house in %s. (/accept invite)", GetPlayerRPName(playerid), GetZoneName(HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ]));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered %s an invitation to your house.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:furniture(playerid, params[])
- {
- new houseid = GetInsideHouse(playerid), option[10], param[32];
- if(houseid == -1 || !HasFurniturePerms(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any house of yours.");
- }
- if(sscanf(params, "s[10]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /furniture [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Buy, Edit, Sell, Clear, Allow, Disallow, Labels");
- return 1;
- }
- if(!strcmp(option, "buy", true))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM furniture WHERE houseid = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_COUNT_FURNITURE, playerid);
- }
- else if(!strcmp(option, "edit", true))
- {
- new objectid;
- if(sscanf(param, "i", objectid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /furniture [edit] [objectid]");
- }
- if(!IsValidDynamicObject(objectid) || Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) != E_OBJECT_FURNITURE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid object. You can find the object IDs for your furniture by enabling labels. [/furniture labels]");
- }
- if(Streamer_GetExtraInt(objectid, E_OBJECT_EXTRA_ID) != HouseInfo[houseid][hID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid object. This furniture object is not inside of your house.");
- }
- PlayerInfo[playerid][pEditType] = EDIT_FURNITURE;
- PlayerInfo[playerid][pEditObject] = objectid;
- PlayerInfo[playerid][pFurnitureHouse] = houseid;
- EditDynamicObject(playerid, objectid);
- GameTextForPlayer(playerid, "~w~Editing Mode~n~~g~Click disk to save~n~~r~Press ESC to cancel", 5000, 1);
- }
- else if(!strcmp(option, "sell", true))
- {
- new objectid;
- if(sscanf(param, "i", objectid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /furniture [sell] [objectid] (75%% refund)");
- }
- if(!IsValidDynamicObject(objectid) || Streamer_GetExtraInt(objectid, E_OBJECT_TYPE) != E_OBJECT_FURNITURE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid object. You can find the object IDs for your furniture by enabling labels. [/furniture labels]");
- }
- if(Streamer_GetExtraInt(objectid, E_OBJECT_EXTRA_ID) != HouseInfo[houseid][hID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid object. This furniture object is not inside of your house.");
- }
- PlayerInfo[playerid][pSelected] = objectid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT name, price FROM furniture WHERE id = %i", Streamer_GetExtraInt(objectid, E_OBJECT_INDEX_ID));
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_SELL_FURNITURE, playerid);
- }
- else if(!strcmp(option, "clear", true))
- {
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /furniture [clear] [confirm]");
- SendClientMessage(playerid, COLOR_GREY3, "This sells all of your furniture in your house. This action is irreversible.");
- return 1;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT price FROM furniture WHERE houseid = %i", HouseInfo[houseid][hID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_CLEAR_FURNITURE, playerid);
- }
- else if(!strcmp(option, "allow", true))
- {
- new targetid;
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /furniture [allow] [playerid]");
- }
- if(!IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This can only be done by the house owner.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(PlayerInfo[targetid][pFurniturePerms] == houseid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You already allowed that player to access your furniture.");
- }
- PlayerInfo[targetid][pFurniturePerms] = houseid;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has allowed you to access their home's furniture.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have allowed %s to access your home's furniture.", GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "disallow", true))
- {
- new targetid;
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /furniture [disallow] [playerid]");
- }
- if(!IsHouseOwner(playerid, houseid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This can only be done by the house owner.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(PlayerInfo[targetid][pFurniturePerms] != houseid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't allowed that player to access your furniture.");
- }
- PlayerInfo[targetid][pFurniturePerms] = -1;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed your access to their home's furniture.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s's access to your home's furniture.", GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "labels", true))
- {
- if(!HouseInfo[houseid][hLabels])
- {
- HouseInfo[houseid][hLabels] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "You will now see labels appear above all of your furniture.");
- }
- else
- {
- HouseInfo[houseid][hLabels] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "You will no longer see any labels appear above your furniture.");
- }
- ReloadAllFurniture(houseid);
- }
- return 1;
- }
- CMD:creategarage(playerid, params[])
- {
- new size[8], type = -1, Float:x, Float:y, Float:z, Float:a;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[8]", size))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /creategarage [small/medium/large]");
- }
- if(GetNearbyGarage(playerid) >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a garage in range. Find somewhere else to create this one.");
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot create garages indoors.");
- }
- if(!strcmp(size, "small", true)) {
- type = 0;
- } else if(!strcmp(size, "medium", true)) {
- type = 1;
- } else if(!strcmp(size, "large", true)) {
- type = 2;
- }
- if(type == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid size. Valid sizes range from Small, Medium and Large.");
- }
- else
- {
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- for(new i = 0; i < MAX_GARAGES; i ++)
- {
- if(!GarageInfo[i][gExists])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO garages (type, price, pos_x, pos_y, pos_z, pos_a, exit_x, exit_y, exit_z, exit_a) VALUES(%i, %i, '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f')", type, garageInteriors[type][intPrice], x, y, z, a, x - 3.0 * floatsin(-a, degrees), y - 3.0 * floatcos(-a, degrees), z, a - 180.0);
- mysql_tquery(connectionID, queryBuffer, "OnAdminCreateGarage", "iiiffff", playerid, i, type, x, y, z, a);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Garage slots are currently full. Ask Emmet to increase the internal limit.");
- }
- return 1;
- }
- CMD:editgarage(playerid, params[])
- {
- new garageid, option[10], param[32];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[10]S()[32]", garageid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgarage [garageid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Entrance, Exit, Type, Owner, Price, Locked");
- return 1;
- }
- if(!(0 <= garageid < MAX_GARAGES) || !GarageInfo[garageid][gExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid garage.");
- }
- if(!strcmp(option, "entrance", true))
- {
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot create garages indoors.");
- }
- GetPlayerPos(playerid, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ]);
- GetPlayerFacingAngle(playerid, GarageInfo[garageid][gPosA]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f' WHERE id = %i", GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ], GarageInfo[garageid][gPosA], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the entrance of garage %i.", garageid);
- }
- else if(!strcmp(option, "exit", true))
- {
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot create garages indoors.");
- }
- GetPlayerPos(playerid, GarageInfo[garageid][gExitX], GarageInfo[garageid][gExitY], GarageInfo[garageid][gExitZ]);
- GetPlayerFacingAngle(playerid, GarageInfo[garageid][gExitA]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET exit_x = '%f', exit_y = '%f', exit_z = '%f', exit_a = '%f' WHERE id = %i", GarageInfo[garageid][gExitX], GarageInfo[garageid][gExitY], GarageInfo[garageid][gExitZ], GarageInfo[garageid][gExitA], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the vehicle exit spawn of garage %i.", garageid);
- }
- else if(!strcmp(option, "type", true))
- {
- new size[8], type = -1;
- if(sscanf(param, "s[8]", size))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgarage [garageid] [type] [small/medium/large]");
- }
- if(!strcmp(size, "small", true)) {
- type = 0;
- } else if(!strcmp(size, "medium", true)) {
- type = 1;
- } else if(!strcmp(size, "large", true)) {
- type = 2;
- }
- if(type == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- GarageInfo[garageid][gType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET type = %i WHERE id = %i", type, GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the type of garage %i to %s.", garageid, size);
- }
- else if(!strcmp(option, "owner", true))
- {
- new targetid;
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editgarage [garageid] [owner] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- SetGarageOwner(garageid, targetid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the owner of garage %i to %s.", garageid, GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "price", true))
- {
- new price;
- if(sscanf(param, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgarage [garageid] [price] [value]");
- }
- if(price < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $0.");
- }
- GarageInfo[garageid][gPrice] = price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET price = %i WHERE id = %i", GarageInfo[garageid][gPrice], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the price of garage %i to $%i.", garageid, price);
- }
- else if(!strcmp(option, "locked", true))
- {
- new locked;
- if(sscanf(param, "i", locked) || !(0 <= locked <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgarage [garageid] [locked] [0/1]");
- }
- GarageInfo[garageid][gLocked] = locked;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET locked = %i WHERE id = %i", GarageInfo[garageid][gLocked], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGarage(garageid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the lock state of garage %i to %i.", garageid, locked);
- }
- return 1;
- }
- CMD:removegarage(playerid, params[])
- {
- new garageid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removegarage [garageid]");
- }
- if(!(0 <= garageid < MAX_GARAGES) || !GarageInfo[garageid][gExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid garage.");
- }
- DestroyDynamic3DTextLabel(GarageInfo[garageid][gText]);
- DestroyDynamicPickup(GarageInfo[garageid][gPickup]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM garages WHERE id = %i", GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- GarageInfo[garageid][gExists] = 0;
- GarageInfo[garageid][gID] = 0;
- GarageInfo[garageid][gOwnerID] = 0;
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed garage %i.", garageid);
- return 1;
- }
- CMD:gotogarage(playerid, params[])
- {
- new garageid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotogarage [garageid]");
- }
- if(!(0 <= garageid < MAX_GARAGES) || !GarageInfo[garageid][gExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid garage.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ]);
- SetPlayerFacingAngle(playerid, GarageInfo[garageid][gPosA]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:garagehelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Garage Commands] /buygarage, /lock, /upgradegarage, /sellgarage, /sellmygarage, /garageinfo.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Garage Commands] /repair, /refuel, /tune.");
- return 1;
- }
- CMD:buygarage(playerid, params[])
- {
- new garageid;
- if((garageid = GetNearbyGarage(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no garage in range. You must be near a garage.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /buygarage [confirm]");
- }
- if(GarageInfo[garageid][gOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This garage already has an owner.");
- }
- if(PlayerInfo[playerid][pCash] < GarageInfo[garageid][gPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this garage.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_GARAGES) >= GetPlayerAssetLimit(playerid, LIMIT_GARAGES))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i garages. You can't own anymore unless you upgrade your asset perk.", GetPlayerAssetCount(playerid, LIMIT_GARAGES), GetPlayerAssetLimit(playerid, LIMIT_GARAGES));
- }
- SetGarageOwner(garageid, playerid);
- GivePlayerCash(playerid, -GarageInfo[garageid][gPrice]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You paid $%i to make this garage yours! /garagehelp for a list of commands.", GarageInfo[garageid][gPrice]);
- Log_Write("log_property", "%s (uid: %i) purchased %s garage (id: %i) for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], garageInteriors[GarageInfo[garageid][gType]][intName], GarageInfo[garageid][gID], GarageInfo[garageid][gPrice]);
- return 1;
- }
- CMD:upgradegarage(playerid, params[])
- {
- new garageid = GetNearbyGarageEx(playerid);
- if(garageid == -1 || !IsGarageOwner(playerid, garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any garage of yours.");
- }
- if(GarageInfo[garageid][gType] >= 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your garage is already at its maximum possible size. You cannot upgrade it further.");
- }
- if(isnull(params) || strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradegarage [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "The next garage size available is %s and costs $%i to upgrade to.", garageInteriors[GarageInfo[garageid][gType] + 1][intName], garageInteriors[GarageInfo[garageid][gType] + 1][intPrice]);
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < garageInteriors[GarageInfo[garageid][gType] + 1][intPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to upgrade your garage.");
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && IsVehicleInGarage(i, garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must remove all vehicles from your garage before proceeding.");
- }
- }
- foreach(new i : Player)
- {
- if(GetInsideGarage(i) == garageid)
- {
- SetPlayerPos(i, garageInteriors[GarageInfo[garageid][gType] + 1][intVX], garageInteriors[GarageInfo[garageid][gType] + 1][intVY], garageInteriors[GarageInfo[garageid][gType] + 1][intVZ]);
- SetPlayerFacingAngle(i, garageInteriors[GarageInfo[garageid][gType] + 1][intVA]);
- SetPlayerInterior(i, garageInteriors[GarageInfo[garageid][gType] + 1][intID]);
- SetCameraBehindPlayer(i);
- }
- }
- GarageInfo[garageid][gType]++;
- GarageInfo[garageid][gPrice] = garageInteriors[GarageInfo[garageid][gType]][intPrice];
- GivePlayerCash(playerid, -garageInteriors[GarageInfo[garageid][gType]][intPrice]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have upgraded your garage's size to %s for $%i.", garageInteriors[GarageInfo[garageid][gType]][intName], garageInteriors[GarageInfo[garageid][gType]][intPrice]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET type = %i, price = %i WHERE id = %i", GarageInfo[garageid][gType], GarageInfo[garageid][gPrice], GarageInfo[garageid][gID]);
- mysql_tquery(connectionID, queryBuffer);
- Log_Write("log_property", "%s (uid: %i) upgraded their garage (id: %i) to %s size for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GarageInfo[garageid][gID], garageInteriors[GarageInfo[garageid][gType]][intName], garageInteriors[GarageInfo[garageid][gType]][intPrice]);
- return 1;
- }
- CMD:sellgarage(playerid, params[])
- {
- new garageid = GetNearbyGarageEx(playerid), targetid, amount;
- if(garageid == -1 || !IsGarageOwner(playerid, garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any garage of yours.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellgarage [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell to yourself.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must specify an amount above zero.");
- }
- PlayerInfo[targetid][pGarageOffer] = playerid;
- PlayerInfo[targetid][pGarageOffered] = garageid;
- PlayerInfo[targetid][pGaragePrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you their garage for $%i (/accept garage).", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered %s to buy your garage for $%i.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:sellmygarage(playerid, params[])
- {
- new garageid = GetNearbyGarageEx(playerid);
- if(garageid == -1 || !IsGarageOwner(playerid, garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any garage of yours.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellmygarage [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command sells your garage back to the state. You will receive $%i back.", percent(GarageInfo[garageid][gPrice], 75));
- return 1;
- }
- SetGarageOwner(garageid, INVALID_PLAYER_ID);
- GivePlayerCash(playerid, percent(GarageInfo[garageid][gPrice], 75));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have sold your garage to the state and received $%i back.", percent(GarageInfo[garageid][gPrice], 75));
- Log_Write("log_property", "%s (uid: %i) sold their %s garage (id: %i) to the state for $%i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], garageInteriors[GarageInfo[garageid][gType]][intName], GarageInfo[garageid][gID], percent(GarageInfo[garageid][gPrice], 75));
- return 1;
- }
- CMD:garageinfo(playerid, params[])
- {
- new garageid = GetNearbyGarageEx(playerid);
- if(garageid == -1 || !IsGarageOwner(playerid, garageid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any garage of yours.");
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|______ Garage ID %i ______|", garageid);
- SendClientMessageEx(playerid, COLOR_GREY2, "(Value: $%i) - (Size: %s) - (Location: %s) - (Active: %s) - (Locked: %s)", GarageInfo[garageid][gPrice], garageInteriors[GarageInfo[garageid][gType]][intName], GetZoneName(GarageInfo[garageid][gPosX], GarageInfo[garageid][gPosY], GarageInfo[garageid][gPosZ]), (gettime() - GarageInfo[garageid][gTimestamp] > 1209600) ? ("{FF6347}No{C8C8C8}") : ("Yes"), (GarageInfo[garageid][gLocked]) ? ("Yes") : ("No"));
- return 1;
- }
- CMD:createbiz(playerid, params[])
- {
- new type, Float:x, Float:y, Float:z, Float:a;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /createbiz [type]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: (1) 24/7 (2) Gun Shop (3) Clothes Shop (4) Gym (5) Restaurant (6) Ad Agency (7) Club/Bar");
- return 1;
- }
- if(!(1 <= type <= sizeof(bizInteriors)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- if(GetNearbyBusiness(playerid) >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a business in range. Find somewhere else to create this one.");
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- type--;
- for(new i = 0; i < MAX_BUSINESSES; i ++)
- {
- if(!BusinessInfo[i][bExists])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO businesses (type, price, pos_x, pos_y, pos_z, pos_a, int_x, int_y, int_z, int_a, interior, outsideint, outsidevw) VALUES(%i, %i, '%f', '%f', '%f', '%f', '%f', '%f', '%f', '%f', %i, %i, %i)", type, bizInteriors[type][intPrice], x, y, z, a - 180.0,
- bizInteriors[type][intX], bizInteriors[type][intY], bizInteriors[type][intZ], bizInteriors[type][intA], bizInteriors[type][intID], GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
- mysql_tquery(connectionID, queryBuffer, "OnAdminCreateBusiness", "iiiffff", playerid, i, type, x, y, z, a);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Business slots are currently full. Ask Emmet to increase the internal limit.");
- return 1;
- }
- CMD:editbiz(playerid, params[])
- {
- new businessid, option[10], param[32];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[10]S()[32]", businessid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Entrance, Exit, Interior, World, Type, Owner, Price, EntryFee, Products, Locked");
- return 1;
- }
- if(!(0 <= businessid < MAX_BUSINESSES) || !BusinessInfo[businessid][bExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid business.");
- }
- if(!strcmp(option, "entrance", true))
- {
- GetPlayerPos(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ]);
- GetPlayerFacingAngle(playerid, BusinessInfo[businessid][bPosA]);
- BusinessInfo[businessid][bOutsideInt] = GetPlayerInterior(playerid);
- BusinessInfo[businessid][bOutsideVW] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', outsideint = %i, outsidevw = %i WHERE id = %i", BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], BusinessInfo[businessid][bPosA], BusinessInfo[businessid][bOutsideInt], BusinessInfo[businessid][bOutsideVW], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the entrance of business %i.", businessid);
- }
- else if(!strcmp(option, "exit", true))
- {
- new type = -1;
- for(new i = 0; i < sizeof(bizInteriors); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 100.0, bizInteriors[i][intX], bizInteriors[i][intY], bizInteriors[i][intZ]))
- {
- type = i;
- }
- }
- GetPlayerPos(playerid, BusinessInfo[businessid][bIntX], BusinessInfo[businessid][bIntY], BusinessInfo[businessid][bIntZ]);
- GetPlayerFacingAngle(playerid, BusinessInfo[businessid][bIntA]);
- BusinessInfo[businessid][bInterior] = GetPlayerInterior(playerid);
- BusinessInfo[businessid][bType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET type = %i, int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i WHERE id = %i", type, BusinessInfo[businessid][bIntX], BusinessInfo[businessid][bIntY], BusinessInfo[businessid][bIntZ], BusinessInfo[businessid][bIntA], BusinessInfo[businessid][bInterior], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the exit of business %i.", businessid);
- }
- else if(!strcmp(option, "interior", true))
- {
- new string[1024];
- for(new i = 0; i < sizeof(bizInteriorArray); i ++)
- {
- format(string, sizeof(string), "%s\n%s", string, bizInteriorArray[i][intName]);
- }
- PlayerInfo[playerid][pSelected] = businessid;
- ShowPlayerDialog(playerid, DIALOG_BIZINTERIOR, DIALOG_STYLE_LIST, "Choose an interior to set for this business.", string, "Select", "Cancel");
- }
- else if(!strcmp(option, "world", true))
- {
- new worldid;
- if(sscanf(param, "i", worldid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [world] [vw]");
- }
- BusinessInfo[businessid][bWorld] = worldid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET world = %i WHERE id = %i", BusinessInfo[businessid][bWorld], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the virtual world of business %i to %i.", businessid, worldid);
- }
- else if(!strcmp(option, "type", true))
- {
- new type;
- if(sscanf(param, "i", type))
- {
- SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [type] [value (1-%i)]", sizeof(bizInteriors));
- SendClientMessage(playerid, COLOR_GREY3, "List of options: (1) 24/7 (2) Gun Shop (3) Clothes Shop (4) Gym (5) Restaurant (6) Ad Agency (7) Club/Bar");
- return 1;
- }
- if(!(1 <= type <= sizeof(bizInteriors)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- BusinessInfo[businessid][bType] = type;
- BusinessInfo[businessid][bInterior] = bizInteriors[type][intID];
- BusinessInfo[businessid][bIntX] = bizInteriors[type][intX];
- BusinessInfo[businessid][bIntY] = bizInteriors[type][intY];
- BusinessInfo[businessid][bIntZ] = bizInteriors[type][intZ];
- BusinessInfo[businessid][bIntA] = bizInteriors[type][intA];
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET type = %i, int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i, world = %i WHERE id = %i", type, BusinessInfo[businessid][bIntX], BusinessInfo[businessid][bIntY], BusinessInfo[businessid][bIntZ], BusinessInfo[businessid][bIntA], BusinessInfo[businessid][bInterior], BusinessInfo[businessid][bWorld], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the type of business %i to %i.", businessid, type);
- }
- else if(!strcmp(option, "owner", true))
- {
- new targetid;
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [owner] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- SetBusinessOwner(businessid, targetid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the owner of business %i to %s.", businessid, GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "price", true))
- {
- new price;
- if(sscanf(param, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [price] [value]");
- }
- if(price < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $0.");
- }
- BusinessInfo[businessid][bPrice] = price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET price = %i WHERE id = %i", BusinessInfo[businessid][bPrice], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the price of business %i to $%i.", businessid, price);
- }
- else if(!strcmp(option, "entryfee", true))
- {
- new price;
- if(sscanf(param, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [entryfee] [value]");
- }
- if(price < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $0.");
- }
- BusinessInfo[businessid][bEntryFee] = price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET entryfee = %i WHERE id = %i", BusinessInfo[businessid][bEntryFee], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the entry fee of business %i to $%i.", businessid, price);
- }
- else if(!strcmp(option, "products", true))
- {
- new amount;
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [products] [value]");
- }
- BusinessInfo[businessid][bProducts] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET products = %i WHERE id = %i", BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the products amount of business %i to %i.", businessid, amount);
- }
- else if(!strcmp(option, "locked", true))
- {
- new locked;
- if(sscanf(param, "i", locked) || !(0 <= locked <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editbiz [businessid] [locked] [0/1]");
- }
- BusinessInfo[businessid][bLocked] = locked;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET locked = %i WHERE id = %i", BusinessInfo[businessid][bLocked], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the lock state of business %i to %i.", businessid, locked);
- }
- return 1;
- }
- CMD:removebiz(playerid, params[])
- {
- new businessid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removebiz [businessid]");
- }
- if(!(0 <= businessid < MAX_HOUSES) || !BusinessInfo[businessid][bExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid business.");
- }
- RemoveAllFurniture(businessid);
- DestroyDynamic3DTextLabel(BusinessInfo[businessid][bText]);
- DestroyDynamicPickup(BusinessInfo[businessid][bPickup]);
- DestroyDynamicMapIcon(BusinessInfo[businessid][bMapIcon]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM businesses WHERE id = %i", BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- BusinessInfo[businessid][bExists] = 0;
- BusinessInfo[businessid][bID] = 0;
- BusinessInfo[businessid][bOwnerID] = 0;
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed business %i.", businessid);
- return 1;
- }
- CMD:gotobiz(playerid, params[])
- {
- new businessid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotobiz [businessid]");
- }
- if(!(0 <= businessid < MAX_HOUSES) || !BusinessInfo[businessid][bExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid business.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ]);
- SetPlayerFacingAngle(playerid, BusinessInfo[businessid][bPosA]);
- SetPlayerInterior(playerid, BusinessInfo[businessid][bOutsideInt]);
- SetPlayerVirtualWorld(playerid, BusinessInfo[businessid][bOutsideVW]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:bizhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Business Commands] /buybiz, /lock, /bwithdraw, /bdeposit, /sellbiz, /sellmybiz, /bizinfo.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Business Commands] /entryfee.");
- return 1;
- }
- CMD:buybiz(playerid, params[])
- {
- new businessid;
- if((businessid = GetNearbyBusiness(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no business in range. You must be near a business.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /buybiz [confirm]");
- }
- if(BusinessInfo[businessid][bOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This business already has an owner.");
- }
- if(PlayerInfo[playerid][pCash] < BusinessInfo[businessid][bPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this business.");
- }
- if(GetPlayerAssetCount(playerid, LIMIT_BUSINESSES) >= GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently own %i/%i businesses. You can't own anymore unless you upgrade your asset perk.", GetPlayerAssetCount(playerid, LIMIT_BUSINESSES), GetPlayerAssetLimit(playerid, LIMIT_BUSINESSES));
- }
- SetBusinessOwner(businessid, playerid);
- GivePlayerCash(playerid, -BusinessInfo[businessid][bPrice]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You paid $%i for this %s. /bizhelp for a list of commands.", BusinessInfo[businessid][bPrice], bizInteriors[BusinessInfo[businessid][bType]][intType]);
- Log_Write("log_property", "%s (uid: %i) purchased %s (id: %i) for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bID], BusinessInfo[businessid][bPrice]);
- return 1;
- }
- CMD:bwithdraw(playerid, params[])
- {
- new businessid = GetInsideBusiness(playerid), amount;
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any business of yours.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /bwithdraw [amount] ($%i available)", BusinessInfo[businessid][bCash]);
- }
- if(amount < 1 || amount > BusinessInfo[businessid][bCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- BusinessInfo[businessid][bCash] -= amount;
- GivePlayerCash(playerid, amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn $%i from the business vault. There is now $%i remaining.", amount, BusinessInfo[businessid][bCash]);
- return 1;
- }
- CMD:bdeposit(playerid, params[])
- {
- new businessid = GetInsideBusiness(playerid), amount;
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any business of yours.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /bdeposit [amount] ($%i available)", BusinessInfo[businessid][bCash]);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- BusinessInfo[businessid][bCash] += amount;
- GivePlayerCash(playerid, -amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited $%i in the business vault. There is now $%i available.", amount, BusinessInfo[businessid][bCash]);
- return 1;
- }
- CMD:sellbiz(playerid, params[])
- {
- new businessid = GetNearbyBusinessEx(playerid), targetid, amount;
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any business of yours.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellbiz [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell to yourself.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must specify an amount above zero.");
- }
- PlayerInfo[targetid][pBizOffer] = playerid;
- PlayerInfo[targetid][pBizOffered] = businessid;
- PlayerInfo[targetid][pBizPrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you their business for $%i (/accept business).", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered %s to buy your business for $%i.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:sellmybiz(playerid, params[])
- {
- new businessid = GetNearbyBusinessEx(playerid);
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any business of yours.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellmybiz [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command sells your business back to the state. You will receive $%i back.", percent(BusinessInfo[businessid][bPrice], 75));
- return 1;
- }
- SetBusinessOwner(businessid, INVALID_PLAYER_ID);
- GivePlayerCash(playerid, percent(BusinessInfo[businessid][bPrice], 75));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have sold your business to the state and received $%i back.", percent(BusinessInfo[businessid][bPrice], 75));
- Log_Write("log_property", "%s (uid: %i) sold their %s business (id: %i) to the state for $%i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bID], percent(BusinessInfo[businessid][bPrice], 75));
- return 1;
- }
- CMD:bizinfo(playerid, params[])
- {
- new businessid = GetNearbyBusinessEx(playerid);
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any business of yours.");
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|______ Business ID %i ______|", businessid);
- SendClientMessageEx(playerid, COLOR_GREY2, "(Value: $%i) - (Type: %s) - (Location: %s) - (Active: %s) - (Status: %s)", BusinessInfo[businessid][bPrice], bizInteriors[BusinessInfo[businessid][bType]][intType], GetZoneName(BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ]), (gettime() - BusinessInfo[businessid][bTimestamp] > 1209600) ? ("{FF6347}No{C8C8C8}") : ("Yes"), (BusinessInfo[businessid][bLocked]) ? ("Closed") : ("Opened"));
- SendClientMessageEx(playerid, COLOR_GREY2, "(Vault: $%i) - (Entry Fee: $%i) - (Products: %i)", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bEntryFee], BusinessInfo[businessid][bProducts]);
- return 1;
- }
- CMD:entryfee(playerid, params[])
- {
- new businessid = GetNearbyBusinessEx(playerid), amount;
- if(businessid == -1 || !IsBusinessOwner(playerid, businessid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any business of yours.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /entryfee [amount]");
- }
- if(amount < 0 || amount > 5000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The entry fee can't be below $0 or above $5,000.");
- }
- BusinessInfo[businessid][bEntryFee] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET entryfee = %i WHERE id = %i", BusinessInfo[businessid][bEntryFee], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadBusiness(businessid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have set the entry fee to $%i.", amount);
- return 1;
- }
- CMD:buy(playerid, params[])
- {
- new businessid = GetInsideBusiness(playerid), title[64];
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any business where you can buy stuff.");
- }
- if(BusinessInfo[businessid][bProducts] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This business is out of stock.");
- }
- format(title, sizeof(title), "%s's %s [%i products]", BusinessInfo[businessid][bOwner], bizInteriors[BusinessInfo[businessid][bType]][intType], BusinessInfo[businessid][bProducts]);
- switch(BusinessInfo[businessid][bType])
- {
- case BUSINESS_STORE:
- {
- ShowPlayerDialog(playerid, DIALOG_BUY, DIALOG_STYLE_LIST, title, "Mobile phone ($525)\nWalkie talkie ($5000)\nCigars ($125)\nSpraycans ($400)\nPhonebook ($125)\nCamera ($200)\nMP3 player ($2400)\nFishing rod ($1000)\nFish bait ($790)\nMuriatic acid ($1500)\nBaking soda ($1290)\nPocket watch ($1000)\nGPS system ($750)\nGasoline can ($500)", "Select", "Cancel");
- }
- case BUSINESS_GUNSHOP:
- {
- ShowPlayerDialog(playerid, DIALOG_BUY, DIALOG_STYLE_LIST, title, "9mm pistol ($1500)\nShotgun ($2000)\nRifle ($4000)\nLight armor ($1500)", "Select", "Cancel");
- }
- case BUSINESS_CLOTHES:
- {
- ShowPlayerDialog(playerid, DIALOG_BUY, DIALOG_STYLE_LIST, title, "Clothes ($2000)\nGlasses ($500)\nBandanas & masks ($375)\nHats & caps ($240)\nMisc clothing ($500)", "Select", "Cancel");
- }
- case BUSINESS_GYM:
- {
- ShowPlayerDialog(playerid, DIALOG_BUY, DIALOG_STYLE_LIST, title, "Normal (Free)\nBoxing ($4725)\nKung Fu ($7650)\nKneehead ($9275)\nGrabkick ($1250)\nElbow ($2950)", "Select", "Cancel");
- }
- case BUSINESS_RESTAURANT:
- {
- ShowPlayerDialog(playerid, DIALOG_BUY, DIALOG_STYLE_LIST, title, "Water ($50)\nSprunk ($100)\nFrench fries ($250)\nHamburger ($400)\nCheeseburger ($450)\nMac & cheese ($525)\nClub sandwich ($600)\nFish & chips ($925)\nPan pizza ($1200)", "Select", "Cancel");
- }
- case BUSINESS_BARCLUB:
- {
- ShowPlayerDialog(playerid, DIALOG_BUY, DIALOG_STYLE_LIST, title, "Water ($50)\nSprunk ($100)\nBeer ($200)\nWine ($350)\nWhiskey ($475)", "Select", "Cancel");
- }
- }
- return 1;
- }
- CMD:advertise(playerid, params[])
- {
- return cmd_ad(playerid, params);
- }
- CMD:ad(playerid, params[])
- {
- new businessid = GetInsideBusiness(playerid), price = strlen(params) * 25;
- if((PlayerInfo[playerid][pVIPPackage] == 0) && (businessid == -1 || BusinessInfo[businessid][bType] != 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any advertisement business.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(ad)vertise [advertisement] ($25/char)");
- }
- if(PlayerInfo[playerid][pAdMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are muted from submitting advertisements. /report for an unmute.");
- }
- if(!PlayerInfo[playerid][pPhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a mobile phone. You need a phone so people can contact you.");
- }
- if(PlayerInfo[playerid][pHours] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to play at least 2 hours in order to post an advertisement.");
- }
- if(gettime() - gLastAd < 30)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Advertisements can only be posted every 30 seconds.");
- }
- if(PlayerInfo[playerid][pCash] < price)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need $%i in order to place the advertisement. You can't afford that.", price);
- }
- new
- string[20];
- gLastAd = gettime();
- if(PlayerInfo[playerid][pVIPPackage] == 3)
- {
- SendClientMessage(playerid, COLOR_VIP, "** VIP perk: Your advertisement was posted free of charge!");
- }
- else
- {
- format(string, sizeof(string), "~r~-$%i", price);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid, -price);
- if(businessid >= 0)
- {
- BusinessInfo[businessid][bCash] += price;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET cash = %i WHERE id = %i", BusinessInfo[businessid][bCash], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- SendClientMessageToAllEx((PlayerInfo[playerid][pVIPPackage] > 0) ? (COLOR_LIGHTGREEN) : (COLOR_LIGHTGREEN), "Advertissement: %s, Contact: %s, Ph: %i", params, GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- return 1;
- }
- CMD:mark(playerid, params[])
- {
- new slot;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", slot))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /mark [slot (1-3)]");
- }
- if(!(1 <= slot <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- slot--;
- GetPlayerPos(playerid, MarkedPositions[playerid][slot][mPosX], MarkedPositions[playerid][slot][mPosY], MarkedPositions[playerid][slot][mPosZ]);
- GetPlayerFacingAngle(playerid, MarkedPositions[playerid][slot][mPosA]);
- MarkedPositions[playerid][slot][mInterior] = GetPlayerInterior(playerid);
- MarkedPositions[playerid][slot][mWorld] = GetPlayerVirtualWorld(playerid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** Position saved in slot %i.", slot + 1);
- return 1;
- }
- CMD:gotomark(playerid, params[])
- {
- new slot;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", slot))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotomark [slot (1-3)]");
- }
- if(!(1 <= slot <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- if(MarkedPositions[playerid][slot-1][mPosX] == 0.0 && MarkedPositions[playerid][slot-1][mPosY] == 0.0 && MarkedPositions[playerid][slot-1][mPosZ] == 0.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no position in the slot selected.");
- }
- slot--;
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, MarkedPositions[playerid][slot][mPosX], MarkedPositions[playerid][slot][mPosY], MarkedPositions[playerid][slot][mPosZ]);
- SetPlayerFacingAngle(playerid, MarkedPositions[playerid][slot][mPosA]);
- SetPlayerInterior(playerid, MarkedPositions[playerid][slot][mInterior]);
- SetPlayerVirtualWorld(playerid, MarkedPositions[playerid][slot][mWorld]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:createentrance(playerid, params[])
- {
- new name[40], Float:x, Float:y, Float:z, Float:a;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[40]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /createentrance [name]");
- }
- if(GetNearbyEntrance(playerid) >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is an entrance in range. Find somewhere else to create this one.");
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- for(new i = 0; i < MAX_ENTRANCES; i ++)
- {
- if(!EntranceInfo[i][eExists])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO entrances (name, pos_x, pos_y, pos_z, pos_a, outsideint, outsidevw) VALUES('%e', '%f', '%f', '%f', '%f', %i, %i)", name, x, y, z, a - 180.0, GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
- mysql_tquery(connectionID, queryBuffer, "OnAdminCreateEntrance", "iisffff", playerid, i, name, x, y, z, a);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Entrance slots are currently full. Ask Emmet to increase the internal limit.");
- return 1;
- }
- CMD:editentrance(playerid, params[])
- {
- new entranceid, option[14], param[64];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[14]S()[64]", entranceid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Entrance, Exit, Name, Icon, World, Owner, Locked, Radius, AdminLevel");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Faction, VIP, Vehicles, Freeze, Label, Password");
- return 1;
- }
- if(!(0 <= entranceid < MAX_ENTRANCES) || !EntranceInfo[entranceid][eExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid entrance.");
- }
- if(!strcmp(option, "entrance", true))
- {
- GetPlayerPos(playerid, EntranceInfo[entranceid][ePosX], EntranceInfo[entranceid][ePosY], EntranceInfo[entranceid][ePosZ]);
- GetPlayerFacingAngle(playerid, EntranceInfo[entranceid][ePosA]);
- EntranceInfo[entranceid][eOutsideInt] = GetPlayerInterior(playerid);
- EntranceInfo[entranceid][eOutsideVW] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', outsideint = %i, outsidevw = %i WHERE id = %i", EntranceInfo[entranceid][ePosX], EntranceInfo[entranceid][ePosY], EntranceInfo[entranceid][ePosZ], EntranceInfo[entranceid][ePosA], EntranceInfo[entranceid][eOutsideInt], EntranceInfo[entranceid][eOutsideVW], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the entrance of entrance %i.", entranceid);
- }
- else if(!strcmp(option, "exit", true))
- {
- GetPlayerPos(playerid, EntranceInfo[entranceid][eIntX], EntranceInfo[entranceid][eIntY], EntranceInfo[entranceid][eIntZ]);
- GetPlayerFacingAngle(playerid, EntranceInfo[entranceid][eIntA]);
- EntranceInfo[entranceid][eInterior] = GetPlayerInterior(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET int_x = '%f', int_y = '%f', int_z = '%f', int_a = '%f', interior = %i WHERE id = %i", EntranceInfo[entranceid][eIntX], EntranceInfo[entranceid][eIntY], EntranceInfo[entranceid][eIntZ], EntranceInfo[entranceid][eIntA], EntranceInfo[entranceid][eInterior], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the exit of entrance %i.", entranceid);
- }
- else if(!strcmp(option, "name", true))
- {
- new name[32];
- if(sscanf(param, "s[32]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [name] [text]");
- }
- strcpy(EntranceInfo[entranceid][eName], name, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET name = '%e' WHERE id = %i", EntranceInfo[entranceid][eName], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the name of entrance %i to '%s'.", entranceid, name);
- }
- else if(!strcmp(option, "icon", true))
- {
- new iconid;
- if(sscanf(param, "i", iconid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [icon] [iconid (19300 = hide)]");
- }
- if(!IsValidModel(iconid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid model ID.");
- }
- EntranceInfo[entranceid][eIcon] = iconid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET iconid = %i WHERE id = %i", EntranceInfo[entranceid][eIcon], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the pickup icon model of entrance %i to %i.", entranceid, iconid);
- }
- else if(!strcmp(option, "world", true))
- {
- new worldid;
- if(sscanf(param, "i", worldid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [world] [vw]");
- }
- EntranceInfo[entranceid][eWorld] = worldid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET world = %i WHERE id = %i", EntranceInfo[entranceid][eWorld], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the virtual world of entrance %i to %i.", entranceid, worldid);
- }
- else if(!strcmp(option, "owner", true))
- {
- new targetid;
- if(!isnull(param) && !strcmp(param, "none", true))
- {
- SetEntranceOwner(entranceid, INVALID_PLAYER_ID);
- return SendClientMessageEx(playerid, COLOR_AQUA, "** You've reset the owner of entrance %i.", entranceid);
- }
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [owner] [playerid/none]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- SetEntranceOwner(entranceid, targetid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the owner of entrance %i to %s.", entranceid, GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "locked", true))
- {
- new locked;
- if(sscanf(param, "i", locked) || !(0 <= locked <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [locked] [0/1]");
- }
- EntranceInfo[entranceid][eLocked] = locked;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET locked = %i WHERE id = %i", EntranceInfo[entranceid][eLocked], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the lock state of entrance %i to %i.", entranceid, locked);
- }
- else if(!strcmp(option, "radius", true))
- {
- new Float:radius;
- if(sscanf(param, "f", radius))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [radius] [range]");
- }
- if(!(1.0 <= radius <= 20.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The entry radius must range between 1.0 and 20.0.");
- }
- EntranceInfo[entranceid][eRadius] = radius;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET radius = '%f' WHERE id = %i", EntranceInfo[entranceid][eRadius], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the entry radius of entrance %i to %.1f.", entranceid, radius);
- }
- else if(!strcmp(option, "adminlevel", true))
- {
- new level;
- if(sscanf(param, "i", level))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [adminlevel] [level]");
- }
- if(!(0 <= level <= 7))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level. Valid levels range from 0 to 7.");
- }
- EntranceInfo[entranceid][eAdminLevel] = level;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET adminlevel = %i WHERE id = %i", EntranceInfo[entranceid][eAdminLevel], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the admin level of entrance %i to %i.", entranceid, level);
- }
- else if(!strcmp(option, "faction", true))
- {
- new type;
- if(sscanf(param, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [faction] [type]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (0) None (1) Police (2) Medic (3) News (4) Government (5) Hitman (6) Federal");
- return 1;
- }
- if(!(0 <= type <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- EntranceInfo[entranceid][eFactionType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET factiontype = %i WHERE id = %i", EntranceInfo[entranceid][eFactionType], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- if(type == FACTION_NONE)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've reset the faction type of entrance %i.", entranceid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the faction type of entrance %i to %s (%i).", entranceid, factionTypes[type], type);
- }
- else if(!strcmp(option, "vip", true))
- {
- new rankid;
- if(sscanf(param, "i", rankid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [vip] [rankid]");
- SendClientMessage(playerid, COLOR_GREY3, "List of ranks: (0) None (1) Limited (2) Limitless (3) Legendary");
- return 1;
- }
- if(!(0 <= rankid <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid VIP rank.");
- }
- EntranceInfo[entranceid][eVIP] = rankid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET vip = %i WHERE id = %i", EntranceInfo[entranceid][eVIP], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the VIP rank of entrance %i to {A028AD}%s{33CCFF} (%i).", entranceid, GetVIPRank(rankid), rankid);
- }
- else if(!strcmp(option, "vehicles", true))
- {
- new status;
- if(sscanf(param, "i", status) || !(0 <= status <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [vehicles] [0/1]");
- }
- EntranceInfo[entranceid][eVehicles] = status;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET vehicles = %i WHERE id = %i", EntranceInfo[entranceid][eVehicles], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- if(status)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've allowed vehicle entry for entrance %i.", entranceid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've disallowed vehicle entry for entrance %i.", entranceid);
- }
- else if(!strcmp(option, "freeze", true))
- {
- new status;
- if(sscanf(param, "i", status) || !(0 <= status <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [freeze] [0/1]");
- }
- EntranceInfo[entranceid][eFreeze] = status;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET freeze = %i WHERE id = %i", EntranceInfo[entranceid][eFreeze], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- if(status)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've enabled freeze & object loading for entrance %i.", entranceid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've disabled freeze & object loading for entrance %i.", entranceid);
- }
- else if(!strcmp(option, "label", true))
- {
- new status;
- if(sscanf(param, "i", status) || !(0 <= status <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [label] [0/1]");
- }
- EntranceInfo[entranceid][eLabel] = status;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET label = %i WHERE id = %i", EntranceInfo[entranceid][eLabel], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- if(status)
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've enabled the 3D text label for entrance %i.", entranceid);
- else
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've disabled the 3D text label for entrance %i.", entranceid);
- }
- else if(!strcmp(option, "password", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editentrance [entranceid] [password] [text ('none' to reset)]");
- }
- strcpy(EntranceInfo[entranceid][ePassword], param, 64);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE entrances SET password = '%e' WHERE id = %i", EntranceInfo[entranceid][ePassword], EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadEntrance(entranceid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've changed the password of entrance %i to '%s'.", entranceid, param);
- }
- return 1;
- }
- CMD:removeentrance(playerid, params[])
- {
- new entranceid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", entranceid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removeentrance [entranceid]");
- }
- if(!(0 <= entranceid < MAX_ENTRANCES) || !EntranceInfo[entranceid][eExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid entrance.");
- }
- DestroyDynamic3DTextLabel(EntranceInfo[entranceid][eText]);
- DestroyDynamicPickup(EntranceInfo[entranceid][ePickup]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM entrances WHERE id = %i", EntranceInfo[entranceid][eID]);
- mysql_tquery(connectionID, queryBuffer);
- EntranceInfo[entranceid][eExists] = 0;
- EntranceInfo[entranceid][eID] = 0;
- EntranceInfo[entranceid][eOwnerID] = 0;
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed entrance %i.", entranceid);
- return 1;
- }
- CMD:gotoentrance(playerid, params[])
- {
- new entranceid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", entranceid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotoentrance [entranceid]");
- }
- if(!(0 <= entranceid < MAX_ENTRANCES) || !EntranceInfo[entranceid][eExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid entrance.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, EntranceInfo[entranceid][ePosX], EntranceInfo[entranceid][ePosY], EntranceInfo[entranceid][ePosZ]);
- SetPlayerFacingAngle(playerid, EntranceInfo[entranceid][ePosA]);
- SetPlayerInterior(playerid, EntranceInfo[entranceid][eOutsideInt]);
- SetPlayerVirtualWorld(playerid, EntranceInfo[entranceid][eOutsideVW]);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:join(playerid, params[])
- {
- for(new i = 0; i < sizeof(jobLocations); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, jobLocations[i][jobX], jobLocations[i][jobY], jobLocations[i][jobZ]))
- {
- if(PlayerInfo[playerid][pJob] != JOB_NONE)
- {
- if(PlayerInfo[playerid][pVIPPackage] >= 2)
- {
- if(PlayerInfo[playerid][pSecondJob] != JOB_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have two jobs already. Please quit one of them before getting another one.");
- }
- if(PlayerInfo[playerid][pJob] == i)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have this job already.");
- }
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET secondjob = %i WHERE uid = %i", i, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pSecondJob] = i;
- SendClientMessageEx(playerid, COLOR_AQUA, "You are now a {FF6347}%s{33CCFF}. Use /jobhelp for a list of commands related to your new job.", jobLocations[i][jobName]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You have a job already. Please quit your current job before getting another one.");
- }
-
- return 1;
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET job = %i WHERE uid = %i", i, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pJob] = i;
- SendClientMessageEx(playerid, COLOR_AQUA, "You are now a {FF6347}%s{33CCFF}. Use /jobhelp for a list of commands related to your new job.", jobLocations[i][jobName]);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any job icon.");
- return 1;
- }
- CMD:quitjob(playerid, params[])
- {
- new slot;
- if(PlayerInfo[playerid][pVIPPackage] >= 2 && sscanf(params, "i", slot))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /quitjob [1/2]");
- }
- if((PlayerInfo[playerid][pVIPPackage] < 2) || (PlayerInfo[playerid][pVIPPackage] >= 2 && slot == 1))
- {
- if(PlayerInfo[playerid][pJob] == JOB_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a job which you can quit.");
- }
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET job = -1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have quit your job as a {00AA00}%s{33CCFF}.", GetJobName(PlayerInfo[playerid][pJob]));
- PlayerInfo[playerid][pJob] = JOB_NONE;
- }
- else if(slot == 2 && PlayerInfo[playerid][pVIPPackage] >= 2)
- {
- if(PlayerInfo[playerid][pSecondJob] == JOB_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a job in this slot which you can quit.");
- }
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET secondjob = -1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have quit your secondary job as a {00AA00}%s{33CCFF}.", GetJobName(PlayerInfo[playerid][pSecondJob]));
- PlayerInfo[playerid][pSecondJob] = JOB_NONE;
- }
-
- return 1;
- }
- CMD:getpizza(playerid, params[])
- {
- new houseid;
- if(!PlayerHasJob(playerid, JOB_PIZZAMAN))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you are not a Pizzaman.");
- }
- if(PlayerInfo[playerid][pPizzaCooldown] > 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to wait %i more seconds before you can load another pizza.", PlayerInfo[playerid][pPizzaCooldown]);
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 448)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be driving a pizza bike.");
- }
- /*if(PlayerInfo[playerid][pPizzas] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have pizzas already. Deliver them first.");
- }*/
- if(!IsPlayerInRangeOfPoint(playerid, 6.0, jobLocations[JOB_PIZZAMAN][jobX], jobLocations[JOB_PIZZAMAN][jobY], jobLocations[JOB_PIZZAMAN][jobZ]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be closer to the job icon at the pizza stacks.");
- }
- if((houseid = GetRandomHouse(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no houses in the server to deliver pizza to. Ask an admin to set them up.");
- }
- PlayerInfo[playerid][pDistance] = GetPlayerDistanceFromPoint(playerid, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ]);
- PlayerInfo[playerid][pPizzas] = 1;
- PlayerInfo[playerid][pLastPizza] = gettime();
- PlayerInfo[playerid][pPizzaTime] = 0;
- PlayerInfo[playerid][pPizzaCooldown] = 60;
- SetPlayerCheckpoint(playerid, HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ], 2.0);
- PlayerInfo[playerid][pCP] = CHECKPOINT_PIZZA;
- GameTextForPlayer(playerid, "~w~Deliver to ~r~marker", 5000, 1);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You loaded your bike with a hot and ready pizza. Deliver it to %s.", GetZoneName(HouseInfo[houseid][hPosX], HouseInfo[houseid][hPosY], HouseInfo[houseid][hPosZ]));
- return 1;
- }
- CMD:load(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_COURIER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you are not a Courier.");
- }
- if(PlayerInfo[playerid][pCourierCooldown] > 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to wait %i more seconds before you can load another delivery.", PlayerInfo[playerid][pCourierCooldown]);
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 414 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 498 && GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be driving a Mule or a Boxville.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, -63.4372, -1121.4932, 1.1103))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not at the loading dock.");
- }
- if(PlayerInfo[playerid][pShipment] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a shipment loaded already. You need to deliver it first.");
- }
- ShowPlayerDialog(playerid, DIALOG_PICKLOAD, DIALOG_STYLE_LIST, "Choose the load you want to deliver.", "Grocery supplies\nAmmunition\nClothing items\nFood & drinks\nBeverages", "Select", "Cancel");
- return 1;
- }
- CMD:deliver(playerid, params[])
- {
- new businessid, products, amount;
- if(!PlayerHasJob(playerid, JOB_COURIER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you are not a Courier.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 414 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 498 && GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be driving a Mule or a Boxville.");
- }
- if(PlayerInfo[playerid][pShipment] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no shipment loaded which you can deliver.");
- }
- if((businessid = GetNearbyBusiness(playerid, 7.0)) == -1 || BusinessInfo[businessid][bType] != PlayerInfo[playerid][pShipment])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of a business which accepts this type of load.");
- }
-
- if(gettime() - PlayerInfo[playerid][pLastLoad] < 20 && PlayerInfo[playerid][pAdmin] < 2 && !PlayerInfo[playerid][pKicked])
- {
- PlayerInfo[playerid][pACWarns]++;
- if(PlayerInfo[playerid][pACWarns] < MAX_ANTICHEAT_WARNINGS)
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] is possibly teleport delivering (time: %i).", GetPlayerRPName(playerid), playerid, gettime() - PlayerInfo[playerid][pLastLoad]);
- }
- else
- {
- SendClientMessageToAllEx(COLOR_LIGHTRED, "AdmCmd: %s was autobanned by %s, reason: Teleport delivering", GetPlayerRPName(playerid), SERVER_ANTICHEAT);
- BanPlayer(playerid, SERVER_ANTICHEAT, "Teleport delivering");
- }
- }
- products = (GetJobLevel(playerid, JOB_COURIER) * 5) + 5;
- if(PlayerInfo[playerid][pShipment] == BUSINESS_STORE) {
- amount = (GetJobLevel(playerid, JOB_COURIER) * 200) + 270;
- } else if(PlayerInfo[playerid][pShipment] == BUSINESS_GUNSHOP) {
- amount = (GetJobLevel(playerid, JOB_COURIER) * 200) + 325;
- } else if(PlayerInfo[playerid][pShipment] == BUSINESS_CLOTHES) {
- amount = (GetJobLevel(playerid, JOB_COURIER) * 200) + 345;
- } else if(PlayerInfo[playerid][pShipment] == BUSINESS_RESTAURANT) {
- amount = (GetJobLevel(playerid, JOB_COURIER) * 200) + 390;
- } else if(PlayerInfo[playerid][pShipment] == BUSINESS_BARCLUB) {
- amount = (GetJobLevel(playerid, JOB_COURIER) * 200) + 240;
- }
- amount += floatround(GetPlayerDistanceFromPoint(playerid, -63.4372, -1121.4932, 1.1103) / 2.0);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have earned {00AA00}$%i{33CCFF} on your paycheck for delivering %i products.", amount, products);
- AddToPaycheck(playerid, amount);
- BusinessInfo[businessid][bProducts] += products;
- PlayerInfo[playerid][pShipment] = -1;
- PlayerInfo[playerid][pCourierCooldown] = 120;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET products = %i WHERE id = %i", BusinessInfo[businessid][bProducts], BusinessInfo[businessid][bID]);
- mysql_tquery(connectionID, queryBuffer);
- IncreaseJobSkill(playerid, JOB_COURIER);
- return 1;
- }
- CMD:skill(playerid, params[])
- {
- if(!strcmp(params, "courier", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your courier skill level is %i/5.", GetJobLevel(playerid, JOB_COURIER));
- if(GetJobLevel(playerid, JOB_COURIER) < 5)
- {
- if(PlayerInfo[playerid][pCourierSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to deliver %i more shipments in order to level up.", 50 - PlayerInfo[playerid][pCourierSkill]);
- } else if(PlayerInfo[playerid][pCourierSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to deliver %i more shipments in order to level up.", 100 - PlayerInfo[playerid][pCourierSkill]);
- } else if(PlayerInfo[playerid][pCourierSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to deliver %i more shipments in order to level up.", 200 - PlayerInfo[playerid][pCourierSkill]);
- } else if(PlayerInfo[playerid][pCourierSkill] < 350) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to deliver %i more shipments in order to level up.", 350 - PlayerInfo[playerid][pCourierSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "fishing", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your fishing skill level is %i/5.", GetJobLevel(playerid, JOB_FISHERMAN));
- if(GetJobLevel(playerid, JOB_FISHERMAN) < 5)
- {
- if(PlayerInfo[playerid][pFishingSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to catch %i more fish in order to level up.", 50 - PlayerInfo[playerid][pFishingSkill]);
- } else if(PlayerInfo[playerid][pFishingSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to catch %i more fish in order to level up.", 100 - PlayerInfo[playerid][pFishingSkill]);
- } else if(PlayerInfo[playerid][pFishingSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to catch %i more fish in order to level up.", 200 - PlayerInfo[playerid][pFishingSkill]);
- } else if(PlayerInfo[playerid][pFishingSkill] < 350) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to catch %i more fish in order to level up.", 350 - PlayerInfo[playerid][pFishingSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "bodyguard", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your bodyguard skill level is %i/5.", GetJobLevel(playerid, JOB_BODYGUARD));
- if(GetJobLevel(playerid, JOB_BODYGUARD) < 5)
- {
- if(PlayerInfo[playerid][pGuardSkill] < 25) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more vests in order to level up.", 25 - PlayerInfo[playerid][pGuardSkill]);
- } else if(PlayerInfo[playerid][pGuardSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more vests in order to level up.", 50 - PlayerInfo[playerid][pGuardSkill]);
- } else if(PlayerInfo[playerid][pGuardSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more vests in order to level up.", 100 - PlayerInfo[playerid][pGuardSkill]);
- } else if(PlayerInfo[playerid][pGuardSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more vests in order to level up.", 200 - PlayerInfo[playerid][pGuardSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "weapondealer", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your weapons dealer skill level is %i/5.", GetJobLevel(playerid, JOB_WEAPONDEALER));
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 5)
- {
- if(PlayerInfo[playerid][pWeaponSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more weapons in order to level up.", 50 - PlayerInfo[playerid][pWeaponSkill]);
- } else if(PlayerInfo[playerid][pWeaponSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more weapons in order to level up.", 100 - PlayerInfo[playerid][pWeaponSkill]);
- } else if(PlayerInfo[playerid][pWeaponSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more weapons in order to level up.", 200 - PlayerInfo[playerid][pWeaponSkill]);
- } else if(PlayerInfo[playerid][pWeaponSkill] < 500) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to sell %i more weapons in order to level up.", 500 - PlayerInfo[playerid][pWeaponSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "mechanic", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your mechanic skill level is %i/5.", GetJobLevel(playerid, JOB_MECHANIC));
- if(GetJobLevel(playerid, JOB_MECHANIC) < 5)
- {
- if(PlayerInfo[playerid][pMechanicSkill] < 25) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to fix & refuel %i more vehicles in order to level up.", 25 - PlayerInfo[playerid][pMechanicSkill]);
- } else if(PlayerInfo[playerid][pMechanicSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to fix & refuel %i more vehicles in order to level up.", 50 - PlayerInfo[playerid][pMechanicSkill]);
- } else if(PlayerInfo[playerid][pMechanicSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to fix & refuel %i more vehicles in order to level up.", 100 - PlayerInfo[playerid][pMechanicSkill]);
- } else if(PlayerInfo[playerid][pMechanicSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to fix & refuel %i more vehicles in order to level up.", 200 - PlayerInfo[playerid][pMechanicSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "drugsmuggler", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your drug smuggler skill level is %i/5.", GetJobLevel(playerid, JOB_DRUGDEALER));
- if(GetJobLevel(playerid, JOB_DRUGDEALER) < 5)
- {
- if(PlayerInfo[playerid][pSmugglerSkill] < 25) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to smuggle %i more packages in order to level up.", 25 - PlayerInfo[playerid][pSmugglerSkill]);
- } else if(PlayerInfo[playerid][pSmugglerSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to smuggle %i more packages in order to level up.", 50 - PlayerInfo[playerid][pSmugglerSkill]);
- } else if(PlayerInfo[playerid][pSmugglerSkill] < 75) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to smuggle %i more packages in order to level up.", 75 - PlayerInfo[playerid][pSmugglerSkill]);
- } else if(PlayerInfo[playerid][pSmugglerSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to smuggle %i more packages in order to level up.", 100 - PlayerInfo[playerid][pSmugglerSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "lawyer", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your lawyer skill level is %i/5.", GetJobLevel(playerid, JOB_LAWYER));
- if(GetJobLevel(playerid, JOB_LAWYER) < 5)
- {
- if(PlayerInfo[playerid][pLawyerSkill] < 25) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to defend %i more clients in order to level up.", 25 - PlayerInfo[playerid][pLawyerSkill]);
- } else if(PlayerInfo[playerid][pLawyerSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to defend %i more clients in order to level up.", 50 - PlayerInfo[playerid][pLawyerSkill]);
- } else if(PlayerInfo[playerid][pLawyerSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to defend %i more clients in order to level up.", 100 - PlayerInfo[playerid][pLawyerSkill]);
- } else if(PlayerInfo[playerid][pLawyerSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to defend %i more clients in order to level up.", 200 - PlayerInfo[playerid][pLawyerSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else if(!strcmp(params, "detective", true))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "Your detective skill level is %i/5.", GetJobLevel(playerid, JOB_DETECTIVE));
- if(GetJobLevel(playerid, JOB_DETECTIVE) < 5)
- {
- if(PlayerInfo[playerid][pDetectiveSkill] < 50) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to find %i more people in order to level up.", 50 - PlayerInfo[playerid][pDetectiveSkill]);
- } else if(PlayerInfo[playerid][pDetectiveSkill] < 100) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to find %i more people in order to level up.", 100 - PlayerInfo[playerid][pDetectiveSkill]);
- } else if(PlayerInfo[playerid][pDetectiveSkill] < 200) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to find %i more people in order to level up.", 200 - PlayerInfo[playerid][pDetectiveSkill]);
- } else if(PlayerInfo[playerid][pDetectiveSkill] < 400) {
- SendClientMessageEx(playerid, COLOR_GREEN, "You need to find %i more people in order to level up.", 400 - PlayerInfo[playerid][pDetectiveSkill]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "You have reached the maximum skill level for this job.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /skill [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Courier, Fishing, Bodyguard, WeaponDealer, Mechanic, DrugSmuggler, Lawyer, Detective");
- }
- return 1;
- }
- CMD:fish(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_FISHERMAN))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Fisherman.");
- }
- if(!IsPlayerAtFishingPlace(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not close to anywhere where you can fish.");
- }
- if(!PlayerInfo[playerid][pFishingRod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a fishing rod. You need a fishing rod to fish!");
- }
- if(PlayerInfo[playerid][pFishTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are fishing already. Wait for your line to be reeled in first.");
- }
- if(PlayerInfo[playerid][pFishWeight] >= 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have too much fish and can't fish any longer.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be onfoot in order to use this command.");
- }
- ApplyAnimation(playerid, "SAMP", "FishingIdle", 4.1, 0, 0, 0, 1, 0, 1);
- SetPlayerAttachedObject(playerid, 9, 18632, 6, 0.112999, 0.024000, 0.000000, -172.999954, 28.499994, 0.000000);
- //SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s reels the line of their fishing rod into the water.", GetPlayerRPName(playerid));
- GameTextForPlayer(playerid, "~w~Fishing...", 6000, 3);
- PlayerInfo[playerid][pFishTime] = 6;
- if(PlayerInfo[playerid][pFishingBait] > 0)
- {
- PlayerInfo[playerid][pFishingBait]--;
- PlayerInfo[playerid][pUsedBait] = 1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishingbait = fishingbait - 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- //SendClientMessage(playerid, COLOR_AQUA, "** You used one fish bait. Your odds of catching a bigger fish are increased!");
- }
- else
- {
- PlayerInfo[playerid][pUsedBait] = 0;
- }
- return 1;
- }
- CMD:sellfish(playerid, params[])
- {
- new businessid;
- if(!PlayerHasJob(playerid, JOB_FISHERMAN))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Fisherman.");
- }
- if((businessid = GetInsideBusiness(playerid)) == -1 || BusinessInfo[businessid][bType] != BUSINESS_STORE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any Supermarket business.");
- }
- if(!PlayerInfo[playerid][pFishWeight])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no fish which you can sell.");
- }
- new amount = (PlayerInfo[playerid][pFishWeight] * 1) + random(200);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You earned {00AA00}$%i{33CCFF} on your paycheck for selling %i kg of fish.", amount, PlayerInfo[playerid][pFishWeight]);
- AddToPaycheck(playerid, amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET fishweight = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[playerid][pFishWeight] = 0;
- return 1;
- }
- CMD:myfish(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_FISHERMAN))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Fisherman.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|______ My Fish ______|");
- SendClientMessageEx(playerid, COLOR_GREY2, "You have %i/1000 kg of fish in your inventory.", PlayerInfo[playerid][pFishWeight]);
- return 1;
- }
- CMD:sellvest(playerid, params[])
- {
- new targetid, amount;
- if(!PlayerHasJob(playerid, JOB_BODYGUARD))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Bodyguard.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellvest [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell to yourself.");
- }
- if(amount < 1000 || amount > 5000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount specified must range between $1000 and $5000.");
- }
- if(gettime() - PlayerInfo[playerid][pLastSell] < 10)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only use this command every 10 seconds. Please wait %i more seconds.", 10 - (gettime() - PlayerInfo[playerid][pLastSell]));
- }
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pVestOffer] = playerid;
- PlayerInfo[targetid][pVestPrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you a vest with %.1f points of armor for $%i (/accept vest).", GetPlayerRPName(playerid), 50.0 + (GetJobLevel(playerid, JOB_BODYGUARD) * 5), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You offered %s a vest with %.1f points of armor for $%i.", GetPlayerRPName(targetid), 50.0 + (GetJobLevel(playerid, JOB_BODYGUARD) * 5), amount);
- return 1;
- }
- CMD:smugglemats(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_WEAPONDEALER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Weapons Dealer.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1421.6913, -1318.4719, 13.5547) && !IsPlayerInRangeOfPoint(playerid, 3.0, 2393.4885, -2008.5726, 13.3467))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any materials pickup.");
- }
- if(PlayerInfo[playerid][pCP] != CHECKPOINT_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must cancel your active checkpoint first. /cancelcp to cancel it.");
- }
- if(PlayerInfo[playerid][pCash] < 150)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least $300 in cash to smuggle materials.");
- }
- if(PlayerInfo[playerid][pMaterials] + 250 > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MATS;
- PlayerInfo[playerid][pSmuggleTime] = gettime();
- GivePlayerCash(playerid, -150);
- SendClientMessage(playerid, COLOR_AQUA, "** You paid $150 for a load of materials. Smuggle them to the depot to collect them.");
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1421.6913, -1318.4719, 13.5547))
- {
- AddPointMoney(POINT_MATPICKUP1, 75);
- SetPlayerCheckpoint(playerid, 2173.2129, -2264.1548, 13.3467, 3.0);
- PlayerInfo[playerid][pSmuggleMats] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2393.4885, -2008.5726, 13.3467))
- {
- AddPointMoney(POINT_MATPICKUP2, 75);
- SetPlayerCheckpoint(playerid, 2288.0918, -1105.6555, 37.9766, 3.0);
- PlayerInfo[playerid][pSmuggleMats] = 2;
- }
- return 1;
- }
- CMD:getmats(playerid, params[])
- {
- return cmd_smugglemats(playerid, params);
- }
- CMD:sellgun(playerid, params[])
- {
- new targetid, weapon[10], price;
- if(!PlayerHasJob(playerid, JOB_WEAPONDEALER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Weapons Dealer.");
- }
- if(PlayerInfo[playerid][pHours] < 2 || PlayerInfo[playerid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are either weapon restricted or you played less than two playing hours.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell weapons from within a vehicle.");
- }
- if(sscanf(params, "us[10]I(0)", targetid, weapon, price))
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "|______ Weapons Crafting ______|");
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) >= 1) {
- SendClientMessage(playerid, COLOR_GREY2, "Level 1: Bat [50], Shovel [50], Golfclub [50], Poolcue [50]");
- SendClientMessage(playerid, COLOR_GREY2, "Level 1: Katana [50], Dildo [50], Flowers [50], Cane [50]");
- SendClientMessage(playerid, COLOR_GREY2, "Level 1: 9mm [100], Sdpistol [150], Shotgun [200]");
- } if(GetJobLevel(playerid, JOB_WEAPONDEALER) >= 2) {
- SendClientMessage(playerid, COLOR_GREY2, "Level 2: MP5 [1000], Deagle [2000]");
- } if(GetJobLevel(playerid, JOB_WEAPONDEALER) >= 3) {
- SendClientMessage(playerid, COLOR_GREY2, "Level 3: Uzi [500], Tec9 [500]");
- } if(GetJobLevel(playerid, JOB_WEAPONDEALER) >= 4) {
- SendClientMessage(playerid, COLOR_GREY2, "Level 4: Ak47 [3500]");
- } if(GetJobLevel(playerid, JOB_WEAPONDEALER) >= 5) {
- SendClientMessage(playerid, COLOR_GREY2, "Level 5: M4 [4500]");
- }
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellgun [playerid] [name] [price]");
- return 1;
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(PlayerInfo[targetid][pHours] < 2 || PlayerInfo[targetid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is either weapon restricted or played less than two playing hours.");
- }
- if(gettime() - PlayerInfo[playerid][pLastSell] < 10)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only use this command every 10 seconds. Please wait %i more seconds.", 10 - (gettime() - PlayerInfo[playerid][pLastSell]));
- }
- if(!strcmp(weapon, "bat", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 5);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 5;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a baseball bat for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a baseball bat for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "shovel", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 6);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 6;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a shovel for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a shovel for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "golfclub", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 2))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 2);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 2;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a golf club for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a golf club for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "poolcue", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 7))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 7);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 7;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a pool cue for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a pool cue for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "katana", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 8))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 8);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 8;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a katana for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a katana for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "dildo", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 10))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 10);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 10;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a dildo for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a dildo for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "flowers", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 14))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 14);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 14;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you flowers for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s flowers for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "cane", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 50)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 15))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 15);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 15;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a cane for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a cane for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "9mm", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 100)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 22))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 22);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[playerid][pLastSell] = gettime();
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 22;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a 9mm for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a 9mm for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "sdpistol", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 150)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 23))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 23);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 23;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a silenced pistol for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a silenced pistol for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "shotgun", true))
- {
- if(PlayerInfo[playerid][pMaterials] < 200)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 25))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 25);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 25;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a shotgun for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a shotgun for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "mp5", true))
- {
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your skill level is not high enough to craft this weapon.");
- }
- if(PlayerInfo[playerid][pMaterials] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 29))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 29);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 29;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you an MP5 for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s an MP5 for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "deagle", true))
- {
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your skill level is not high enough to craft this weapon.");
- }
- if(PlayerInfo[playerid][pMaterials] < 2000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 24))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 24);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 24;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a Desert Eagle for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a Desert Eagle for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "uzi", true))
- {
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your skill level is not high enough to craft this weapon.");
- }
- if(PlayerInfo[playerid][pMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 28))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 28);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 28;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a Micro Uzi for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a Micro Uzi for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "tec9", true))
- {
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your skill level is not high enough to craft this weapon.");
- }
- if(PlayerInfo[playerid][pMaterials] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 32))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 32);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 32;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you a Tec-9 for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s a Tec-9 for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "ak47", true))
- {
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your skill level is not high enough to craft this weapon.");
- }
- if(PlayerInfo[playerid][pMaterials] < 3500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 30))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 30);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 30;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you an AK-47 for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s an AK-47 for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- else if(!strcmp(weapon, "m4", true))
- {
- if(GetJobLevel(playerid, JOB_WEAPONDEALER) < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your skill level is not high enough to craft this weapon.");
- }
- if(PlayerInfo[playerid][pMaterials] < 4500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough materials to craft this weapon.");
- }
- if(PlayerHasWeapon(targetid, 31))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has this weapon already.");
- }
- if(targetid == playerid)
- {
- SellWeapon(playerid, targetid, 31);
- }
- else if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- else
- {
- PlayerInfo[targetid][pSellOffer] = playerid;
- PlayerInfo[targetid][pSellType] = ITEM_SELLGUN;
- PlayerInfo[targetid][pSellExtra] = 31;
- PlayerInfo[targetid][pSellPrice] = price;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered to sell you an M4 for $%i. (/accept weapon)", GetPlayerRPName(playerid), price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to sell %s an M4 for $%i.", GetPlayerRPName(targetid), price);
- }
- }
- return 1;
- }
- CMD:buycomps(playerid, params[])
- {
- new amount, price, cost = 1200 - (GetJobLevel(playerid, JOB_MECHANIC) * 200);
- if(!PlayerHasJob(playerid, JOB_MECHANIC))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Mechanic.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2330.0369, -2315.4553, 13.5469))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the component shop.");
- }
- if(sscanf(params, "i", amount))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /buycomps [amount]");
- SendClientMessageEx(playerid, COLOR_GREY3, "You are paying $%i per component at your current skill level.", cost);
- return 1;
- }
- if(!(1 <= amount <= 10))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount must range between 1 and 10.");
- }
- if(PlayerInfo[playerid][pComponents] + amount > 20)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't carry more than 20 components.");
- }
- price = amount * cost;
- if(PlayerInfo[playerid][pCash] < price)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You can't afford to purchase %i components for $%i.", amount, price);
- }
- else
- {
- PlayerInfo[playerid][pComponents] += amount;
- GivePlayerCash(playerid, -price);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have purchased %i components for $%i.", amount, price);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET components = %i WHERE uid = %i", PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- return 1;
- }
- CMD:repair(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), Float:health;
- if(GetInsideGarage(playerid) >= 0)
- {
- if(gettime() - PlayerInfo[playerid][pLastRepair] < 20)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only repair a vehicle every 20 seconds. Please wait %i more seconds.", 20 - (gettime() - PlayerInfo[playerid][pLastRepair]));
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no engine which can be repaired.");
- }
- GetVehicleHealth(vehicleid, health);
- if(health >= 1000.0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need to be repaired.");
- }
- else
- {
- PlayerInfo[playerid][pLastRepair] = gettime();
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s repairs the vehicle.", GetPlayerRPName(playerid));
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- }
- }
- else if(PlayerHasJob(playerid, JOB_MECHANIC) || PlayerInfo[playerid][pVIPPackage] == 3)
- {
- if(PlayerInfo[playerid][pVIPPackage] < 3 && !PlayerInfo[playerid][pComponents])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no components left.");
- }
- if(gettime() - PlayerInfo[playerid][pLastRepair] < 20)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only repair a vehicle every 20 seconds. Please wait %i more seconds.", 20 - (gettime() - PlayerInfo[playerid][pLastRepair]));
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no engine which can be repaired.");
- }
- GetVehicleHealth(vehicleid, health);
- if(health >= 1000.0)
- {
- SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need to be repaired.");
- }
- else
- {
- if(PlayerInfo[playerid][pVIPPackage] < 3)
- {
- PlayerInfo[playerid][pComponents]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET components = %i WHERE uid = %i", PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- SendClientMessage(playerid, COLOR_VIP, "** VIP perk: You repaired this vehicle free of charge.");
- }
- PlayerInfo[playerid][pLastRepair] = gettime();
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s repairs the vehicle.", GetPlayerRPName(playerid));
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- IncreaseJobSkill(playerid, JOB_MECHANIC);
- }
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be either inside a garage or a Mechanic.");
- }
- return 1;
- }
- CMD:refill(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!PlayerHasJob(playerid, JOB_MECHANIC))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Mechanic.");
- }
- if(!PlayerInfo[playerid][pComponents])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no components left.");
- }
- if(gettime() - PlayerInfo[playerid][pLastRefuel] < 20)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only refuel a vehicle every 20 seconds. Please wait %i more seconds.", 20 - (gettime() - PlayerInfo[playerid][pLastRefuel]));
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no engine which can be refueled.");
- }
- if(vehicleFuel[vehicleid] >= 100)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need to be refueled.");
- }
- if(vehicleFuel[vehicleid] + 10 >= 100)
- {
- vehicleFuel[vehicleid] = 100;
- }
- else
- {
- vehicleFuel[vehicleid] += 10;
- }
- PlayerInfo[playerid][pComponents]--;
- PlayerInfo[playerid][pLastRefuel] = gettime();
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s pours some gasoline to the vehicle.", GetPlayerRPName(playerid));
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET components = %i WHERE uid = %i", PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- IncreaseJobSkill(playerid, JOB_MECHANIC);
- return 1;
- }
- CMD:nos(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!PlayerHasJob(playerid, JOB_MECHANIC) && PlayerInfo[playerid][pVIPPackage] != 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Mechanic.");
- }
- if(PlayerInfo[playerid][pVIPPackage] == 0 && !PlayerInfo[playerid][pComponents])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no components left.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- switch(GetVehicleModel(vehicleid))
- {
- case 581, 523, 462, 521, 463, 522, 461, 448, 468, 586, 509, 481, 510, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 590, 569, 537, 538, 570, 449:
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle can't be modified with nitrous.");
- }
- if(PlayerInfo[playerid][pVIPPackage] < 3)
- {
- PlayerInfo[playerid][pComponents]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET components = %i WHERE uid = %i", PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- SendClientMessage(playerid, COLOR_VIP, "** VIP perk: You added nitrous to this vehicle free of charge.");
- }
- AddVehicleComponent(vehicleid, 1009);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s attaches a 2x NOS Canister on the engine feed.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:hyd(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!PlayerHasJob(playerid, JOB_MECHANIC) && PlayerInfo[playerid][pVIPPackage] != 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Mechanic.");
- }
- if(PlayerInfo[playerid][pVIPPackage] == 0 && !PlayerInfo[playerid][pComponents])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no components left.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- if(PlayerInfo[playerid][pVIPPackage] < 3)
- {
- PlayerInfo[playerid][pComponents]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET components = %i WHERE uid = %i", PlayerInfo[playerid][pComponents], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else
- {
- SendClientMessage(playerid, COLOR_VIP, "** VIP perk: You added hydraulics to this vehicle free of charge.");
- }
- AddVehicleComponent(vehicleid, 1087);
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s attaches a set of hydraulics to the vehicle.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:fill(playerid, params[])
- {
- return cmd_refuel(playerid, params);
- }
- CMD:refuel(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsPlayerAtFuelStation(playerid) && GetInsideGarage(playerid) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at a gas station or inside of a garage.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any vehicle.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no engine and can't be refilled.");
- }
- if(vehicleFuel[vehicleid] >= 100)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The fuel tank in this vehicle is already full.");
- }
- if(PlayerInfo[playerid][pCash] < (100 - vehicleFuel[vehicleid]) * 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You don't have enough cash. It will cost you at least $%i.", (100 - vehicleFuel[vehicleid]) * 2);
- }
- if(PlayerInfo[playerid][pRefuel] != INVALID_VEHICLE_ID)
- {
- GivePlayerCash(playerid, -PlayerInfo[playerid][pRefuelAmount]);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You've refilled your vehicle's gas tank for $%i.", PlayerInfo[playerid][pRefuelAmount]);
- PlayerInfo[playerid][pRefuel] = INVALID_VEHICLE_ID;
- PlayerInfo[playerid][pRefuelAmount] = 0;
- }
- else
- {
- if(GetVehicleParams(vehicleid, VEHICLE_ENGINE))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The engine needs to be shut down before proceeding.");
- }
- PlayerInfo[playerid][pRefuel] = vehicleid;
- PlayerInfo[playerid][pRefuelAmount] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s begins to refuel their vehicle's gas tank.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_WHITE, "** This will take about %i seconds. You will be notified once completed.", 100 - vehicleFuel[vehicleid]);
- }
- return 1;
- }
- CMD:withdraw(playerid, params[])
- {
- new amount;
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1667.4260, -972.6691, 683.6873))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage] /withdraw [amount] ($%i available)", PlayerInfo[playerid][pBank]);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pBank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- PlayerInfo[playerid][pBank] -= amount;
- GivePlayerCash(playerid, amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bank = %i WHERE uid = %i", PlayerInfo[playerid][pBank], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn $%i from your bank account. Your new balance is $%i.", amount, PlayerInfo[playerid][pBank]);
- return 1;
- }
- CMD:deposit(playerid, params[])
- {
- new amount;
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1667.4260, -972.6691, 683.6873))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage] /deposit [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- PlayerInfo[playerid][pBank] += amount;
- GivePlayerCash(playerid, -amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bank = %i WHERE uid = %i", PlayerInfo[playerid][pBank], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited $%i into your bank account. Your new balance is $%i.", amount, PlayerInfo[playerid][pBank]);
- return 1;
- }
- CMD:wiretransfer(playerid, params[])
- {
- new targetid, amount;
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1667.4260, -972.6691, 683.6873))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- if(PlayerInfo[playerid][pLevel] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can only use this command if you are level 2+.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage] /wiretransfer [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or hasn't logged in yet.");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pBank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't transfer funds to yourself.");
- }
- PlayerInfo[targetid][pBank] += amount;
- PlayerInfo[playerid][pBank] -= amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bank = %i WHERE uid = %i", PlayerInfo[playerid][pBank], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bank = %i WHERE uid = %i", PlayerInfo[targetid][pBank], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have transferred $%i to %s. Your new balance is $%i.", amount, GetPlayerRPName(targetid), PlayerInfo[playerid][pBank]);
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has transferred $%i to your bank account.", GetPlayerRPName(playerid), amount);
- Log_Write("log_give", "%s (uid: %i) (IP: %s) transferred $%i to %s (uid: %i) (IP: %s)", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], GetPlayerIP(playerid), amount, GetPlayerRPName(targetid), PlayerInfo[targetid][pID], GetPlayerIP(targetid));
- if(!strcmp(GetPlayerIP(playerid), GetPlayerIP(targetid)))
- {
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s (IP: %s) has transferred $%i to %s (IP: %s).", GetPlayerRPName(playerid), GetPlayerIP(playerid), amount, GetPlayerRPName(targetid), GetPlayerIP(targetid));
- }
- return 1;
- }
- CMD:balance(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1667.4260, -972.6691, 683.6873))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "Your bank account balance is $%i.", PlayerInfo[playerid][pBank]);
- return 1;
- }
- CMD:rt(playerid, params[])
- {
- return cmd_rsms(playerid, params);
- }
- //CMD:rs(playerid, params[])
- //{
- //return cmd_rsms(playerid, params);
- //}
- CMD:rsms(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rsms [text]");
- }
- if(PlayerInfo[playerid][pTextFrom] == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't received a text by anyone since you joined the server.");
- }
- if(PlayerInfo[PlayerInfo[playerid][pTextFrom]][pJailType] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently imprisoned and cannot use their phone.");
- }
- if(PlayerInfo[PlayerInfo[playerid][pTextFrom]][pTogglePhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has their mobile phone switched off.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to use your cellphone at the moment.");
- }
- PlayerInfo[PlayerInfo[playerid][pTextFrom]][pTextFrom] = playerid;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes out a cellphone and sends a message.", GetPlayerRPName(playerid));
- SendClientMessageEx(PlayerInfo[playerid][pTextFrom], COLOR_YELLOW, "** SMS from %s (%i): %s **", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone], params);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** SMS to %s (%i): %s **", GetPlayerRPName(PlayerInfo[playerid][pTextFrom]), PlayerInfo[PlayerInfo[playerid][pTextFrom]][pPhone], params);
- GivePlayerCash(playerid, -1);
- GameTextForPlayer(playerid, "~w~Text sent!~n~~r~-$1", 5000, 1);
- return 1;
- }
- CMD:t(playerid, params[])
- {
- return cmd_sms(playerid, params);
- }
- CMD:sms(playerid, params[])
- {
- new number, msg[128];
- if(sscanf(params, "is[128]", number, msg))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sms [number] [message]");
- }
- if(!PlayerInfo[playerid][pPhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a cellphone and therefore can't use this command.");
- }
- if(PlayerInfo[playerid][pTogglePhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use your mobile phone right now as you have it toggled.");
- }
- if(number == 0 || number == PlayerInfo[playerid][pPhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid number.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to use your cellphone at the moment.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pPhone] == number)
- {
- if(PlayerInfo[i][pJailType] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently imprisoned and cannot use their phone.");
- }
- if(PlayerInfo[i][pTogglePhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has their mobile phone switched off.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes out a cellphone and sends a message.", GetPlayerRPName(playerid));
- if(strlen(msg) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_YELLOW, "** SMS from %s (%i): %.*s... **", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone], MAX_SPLIT_LENGTH, msg);
- SendClientMessageEx(i, COLOR_YELLOW, "** SMS from %s (%i): ...%s **", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone], msg[MAX_SPLIT_LENGTH]);
-
- SendClientMessageEx(playerid, COLOR_YELLOW, "** SMS to %s (%i): %.*s... **", GetPlayerRPName(i), PlayerInfo[i][pPhone], MAX_SPLIT_LENGTH, msg);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** SMS to %s (%i): ...%s **", GetPlayerRPName(i), PlayerInfo[i][pPhone], msg[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_YELLOW, "** SMS from %s (%i): %s **", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone], msg);
- SendClientMessageEx(playerid, COLOR_YELLOW, "** SMS to %s (%i): %s **", GetPlayerRPName(i), PlayerInfo[i][pPhone], msg);
- }
- if(PlayerInfo[i][pTextFrom] == INVALID_PLAYER_ID)
- {
- SendClientMessage(i, COLOR_WHITE, "** You can use '/rsms [message]' to reply to this text message.");
- }
-
- PlayerInfo[i][pTextFrom] = playerid;
- GivePlayerCash(playerid, -1);
- GameTextForPlayer(playerid, "~w~Text sent!~n~~r~-$1", 5000, 1);
- return 1;
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, jailtype, togglephone FROM users WHERE phone = %i", number);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerSendTextMessage", "iis", playerid, number, msg);
- return 1;
- }
- CMD:texts(playerid, params[])
- {
- if(!PlayerInfo[playerid][pPhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a cellphone and therefore can't use this command.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM texts WHERE recipient_number = %i ORDER BY date DESC", PlayerInfo[playerid][pPhone]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_VIEW_TEXTS, playerid);
- return 1;
- }
- CMD:call(playerid, params[])
- {
- new number;
- if(sscanf(params, "i", number))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /call [number]");
- SendClientMessage(playerid, COLOR_GREY3, "Special numbers: 911 = Emergency hotline, 6397 = News, 6324 = Mechanic, 8294 = Taxi");
- return 1;
- }
- if(!PlayerInfo[playerid][pPhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a cellphone and therefore can't use this command.");
- }
- if(PlayerInfo[playerid][pTogglePhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use your mobile phone right now as you have it toggled.");
- }
- if(PlayerInfo[playerid][pCallLine] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have a call in session. /(h)angup to end that call.");
- }
- if(number == 0 || number == PlayerInfo[playerid][pPhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid number.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to use your cellphone at the moment.");
- }
- if(number == 911)
- {
- PlayerInfo[playerid][pCallLine] = playerid;
- PlayerInfo[playerid][pCallStage] = 911;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s dials a number on their keypad and begins a call.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch: 911, what is your emergency? Enter 'police' or 'medic'.");
- return 1;
- }
- else if(number == 6397)
- {
- PlayerInfo[playerid][pCallLine] = playerid;
- PlayerInfo[playerid][pCallStage] = 6397;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s dials a number on their keypad and begins a call.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_LIMITLESSBLUE, "News Team: This is SANews here. Leave a message and we'll get back to you! *BEEP*");
- return 1;
- }
- else if(number == 6324)
- {
- PlayerInfo[playerid][pCallLine] = playerid;
- PlayerInfo[playerid][pCallStage] = 6324;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s dials a number on their keypad and begins a call.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "Dispatch: This is the mechanic hotline. Please explain your situation to us.");
- return 1;
- }
- else if(number == 8294)
- {
- PlayerInfo[playerid][pCallLine] = playerid;
- PlayerInfo[playerid][pCallStage] = 8294;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s dials a number on their keypad and begins a call.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_YELLOW, "Dispatch: This is the cab company. Please state your location and destination.");
- return 1;
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pPhone] == number)
- {
- if(PlayerInfo[i][pJailType] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently imprisoned and cannot use their phone.");
- }
- if(PlayerInfo[i][pCallLine] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player is currently in a call. Wait until they hang up.");
- }
- if(PlayerInfo[i][pTogglePhone])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has their mobile phone switched off.");
- }
- if(PlayerInfo[i][pLiveBroadcast] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently in a live interview and can't talk on the phone.");
- }
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- PlayerInfo[playerid][pCallLine] = i;
- PlayerInfo[playerid][pCallStage] = 0;
- PlayerInfo[i][pCallLine] = playerid;
- PlayerInfo[i][pCallStage] = 1;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s dials a number on their keypad and begins a call.", GetPlayerRPName(playerid));
- SendProximityMessage(i, 20.0, COLOR_PURPLE, "** %s's mobile phone begins to ring.", GetPlayerRPName(i));
- SendClientMessageEx(playerid, COLOR_YELLOW, "** You've placed a call to number: %i. Please wait for your call to be answered.", number);
- SendClientMessageEx(i, COLOR_YELLOW, "** Incoming call from %s [%i]. Use /pickup to take this call.", GetPlayerRPName(playerid), PlayerInfo[playerid][pPhone]);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "That number is either not in service or the owner is offline.");
- return 1;
- }
- CMD:p(playerid, params[])
- {
- return cmd_pickup(playerid, params);
- }
- CMD:pickup(playerid, params[])
- {
- if(PlayerInfo[playerid][pCallStage] != 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no incoming calls which you can answer right now.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to use your cellphone at the moment.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s presses a button and answers their mobile phone.", GetPlayerRPName(playerid));
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- PlayerInfo[PlayerInfo[playerid][pCallLine]][pCallStage] = 2;
- PlayerInfo[playerid][pCallStage] = 2;
- SendClientMessage(playerid, COLOR_WHITE, "** You have answered the call. You can now speak in chat to talk to the caller.");
- SendClientMessage(PlayerInfo[playerid][pCallLine], COLOR_WHITE, "** They answered the call. You can now speak in chat to talk to them.");
- return 1;
- }
- CMD:h(playerid, params[])
- {
- return cmd_hangup(playerid, params);
- }
- CMD:hangup(playerid, params[])
- {
- if(PlayerInfo[playerid][pCallLine] == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no calls in session which you can hangup.");
- }
- HangupCall(playerid, HANGUP_USER);
- return 1;
- }
- CMD:tog(playerid, params[])
- {
- return cmd_toggle(playerid, params);
- }
- CMD:toggle(playerid, params[])
- {
- if(!strcmp(params, "textdraws", true))
- {
- if(!PlayerInfo[playerid][pToggleTextdraws])
- {
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][0]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][1]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][2]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][3]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][4]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][5]);
- TextDrawHideForPlayer(playerid, WebsiteTD);
- TextDrawHideForPlayer(playerid, TimeTD);
- PlayerInfo[playerid][pToggleTextdraws] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Textdraws toggled. You will no longer see any textdraws.");
- }
- else
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && VehicleHasEngine(GetPlayerVehicleID(playerid)))
- {
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][1]);
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][2]);
- }
- if(PlayerInfo[playerid][pGPSOn])
- {
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][0]);
- }
- if(PlayerInfo[playerid][pWatchOn])
- {
- TextDrawShowForPlayer(playerid, TimeTD);
- }
- if(!PlayerInfo[playerid][pToggleHUD])
- {
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][3]);
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][4]);
- }
- TextDrawShowForPlayer(playerid, WebsiteTD);
- PlayerInfo[playerid][pToggleTextdraws] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Textdraws enabled. You will now see textdraws again.");
- }
- }
- else if(!strcmp(params, "ooc", true))
- {
- if(!PlayerInfo[playerid][pToggleOOC])
- {
- PlayerInfo[playerid][pToggleOOC] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "OOC chat toggled. You will no longer see any messages in /o.");
- }
- else
- {
- PlayerInfo[playerid][pToggleOOC] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "OOC chat enabled. You will now see messages in /o again.");
- }
- }
- else if(!strcmp(params, "global", true))
- {
- if(!PlayerInfo[playerid][pToggleGlobal])
- {
- PlayerInfo[playerid][pToggleGlobal] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Global chat toggled. You will no longer see any messages in /g.");
- }
- else
- {
- PlayerInfo[playerid][pToggleGlobal] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Global chat enabled. You can now speak to other players in /g.");
- }
- }
- else if(!strcmp(params, "phone", true))
- {
- if(!PlayerInfo[playerid][pTogglePhone])
- {
- if(PlayerInfo[playerid][pCallLine] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't do this while in a call.");
- }
- PlayerInfo[playerid][pTogglePhone] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Phone toggled. You will no longer receive calls or texts.");
- }
- else
- {
- PlayerInfo[playerid][pTogglePhone] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Phone enabled. You can now receive calls and texts again.");
- }
- }
- else if(!strcmp(params, "admin", true))
- {
- if(!PlayerInfo[playerid][pAdmin])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not an admin and therefore cannot toggle this feature.");
- }
- if(!PlayerInfo[playerid][pToggleAdmin])
- {
- PlayerInfo[playerid][pToggleAdmin] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Admin chat toggled. You will no longer see any messages in admin chat.");
- }
- else
- {
- PlayerInfo[playerid][pToggleAdmin] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Admin chat enabled. You will now see messages in admin chat again.");
- }
- }
- else if(!strcmp(params, "helper", true))
- {
- if(!PlayerInfo[playerid][pHelper])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a helper and therefore cannot toggle this feature.");
- }
- if(!PlayerInfo[playerid][pToggleHelper])
- {
- PlayerInfo[playerid][pToggleHelper] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Helper chat toggled. You will no longer see any messages in helper chat.");
- }
- else
- {
- PlayerInfo[playerid][pToggleHelper] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Helper chat enabled. You will now see messages in helper chat again.");
- }
- }
- else if(!strcmp(params, "newbie", true))
- {
- if(!PlayerInfo[playerid][pToggleNewbie])
- {
- PlayerInfo[playerid][pToggleNewbie] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Newbie chat toggled. You will no longer see any messages in newbie chat.");
- }
- else
- {
- PlayerInfo[playerid][pToggleNewbie] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Newbie chat enabled. You will now see messages in newbie chat again.");
- }
- }
- else if(!strcmp(params, "walkietalkie", true))
- {
- if(!PlayerInfo[playerid][pWalkieTalkie])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a walkie talkie.");
- }
- if(!PlayerInfo[playerid][pToggleWT])
- {
- PlayerInfo[playerid][pToggleWT] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Walkie talkie toggled. You will no longer receive any messages on your walkie talkie.");
- }
- else
- {
- PlayerInfo[playerid][pToggleWT] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Walkie talkie enabled. You will now receive messages on your walkie talkie again.");
- }
- }
- else if(!strcmp(params, "radio", true))
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a faction and therefore can't toggle your radio.");
- }
- if(!PlayerInfo[playerid][pToggleRadio])
- {
- PlayerInfo[playerid][pToggleRadio] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Radio chat toggled. You will no longer receive any messages on your radio.");
- }
- else
- {
- PlayerInfo[playerid][pToggleRadio] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Radio chat enabled. You will now receive messages on your radio again.");
- }
- }
- else if(!strcmp(params, "streams", true))
- {
- if(!PlayerInfo[playerid][pToggleMusic])
- {
- PlayerInfo[playerid][pToggleMusic] = 1;
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, COLOR_AQUA, "Music streams toggled. You will no longer hear any music played locally & globally.");
- }
- else
- {
- PlayerInfo[playerid][pToggleMusic] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Music streams enabled. You will now hear music played locally & globally again.");
- }
- }
- else if(!strcmp(params, "vip", true))
- {
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a VIP member and therefore cannot toggle this feature.");
- }
- if(!PlayerInfo[playerid][pToggleVIP])
- {
- PlayerInfo[playerid][pToggleVIP] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "VIP chat toggled. You will no longer see any messages in VIP chat.");
- }
- else
- {
- PlayerInfo[playerid][pToggleVIP] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "VIP chat enabled. You will now see messages in VIP chat again.");
- }
- }
- else if(!strcmp(params, "faction", true))
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a faction and therefore can't toggle this chat.");
- }
- if(!PlayerInfo[playerid][pToggleFaction])
- {
- PlayerInfo[playerid][pToggleFaction] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Faction chat toggled. You will no longer see any messages in faction chat.");
- }
- else
- {
- PlayerInfo[playerid][pToggleFaction] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Faction chat enabled. You will now see messages in faction chat again.");
- }
- }
- else if(!strcmp(params, "gang", true))
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a gang member and therefore can't toggle this chat.");
- }
- if(!PlayerInfo[playerid][pToggleGang])
- {
- PlayerInfo[playerid][pToggleGang] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Gang chat toggled. You will no longer see any messages in gang chat.");
- }
- else
- {
- PlayerInfo[playerid][pToggleGang] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Gang chat enabled. You will now see messages in gang chat again.");
- }
- }
- else if(!strcmp(params, "news", true))
- {
- if(!PlayerInfo[playerid][pToggleNews])
- {
- PlayerInfo[playerid][pToggleNews] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "News chat toggled. You will no longer see any news broadcasts.");
- }
- else
- {
- PlayerInfo[playerid][pToggleNews] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "News chat enabled. You will now see news broadcasts again.");
- }
- }
- else if(!strcmp(params, "lands", true))
- {
- cmd_lands(playerid, "\1");
- }
- else if(!strcmp(params, "turfs", true))
- {
- cmd_turfs(playerid, "\1");
- }
- else if(!strcmp(params, "spawncam", true))
- {
- if(!PlayerInfo[playerid][pToggleCam])
- {
- PlayerInfo[playerid][pToggleCam] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Spawn camera toggled. You will no longer see the camera effects upon spawning.");
- }
- else
- {
- PlayerInfo[playerid][pToggleCam] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "Spawn camera enabled. You will now see the camera effects when you spawn again.");
- }
- }
- else if(!strcmp(params, "hud", true))
- {
- if(!PlayerInfo[playerid][pToggleHUD])
- {
- PlayerInfo[playerid][pToggleHUD] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "HUD toggled. You will no longer see your health & armor indicators.");
-
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][3]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][4]);
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][5]);
- }
- else
- {
- PlayerInfo[playerid][pToggleHUD] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "HUD enabled. You will now see your health & armor indicators again.");
-
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][3]);
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][4]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(tog)gle [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Textdraws, OOC, Global, Phone, Newbie, WalkieTalkie, Radio, Streams, News, Lands, Turfs");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: SpawnCam, HUD, Admin, Helper, VIP, Faction, Gang");
- }
- return 1;
- }
- CMD:locate(playerid, params[])
- {
- if(!strcmp(params, "dmv", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1219.2590, -1812.1093, 16.5938, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of DMV.");
- }
- else if(!strcmp(params, "dealership", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 542.0433, -1293.5909, 17.2422, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the dealership.");
- }
- else if(!strcmp(params, "bank", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1465.1348, -1010.5063, 26.8438, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the bank.");
- }
- else if(!strcmp(params, "paintball", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1738.7400, -1269.8062, 13.5433, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of paintball.");
- }
- else if(!strcmp(params, "casino", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1022.5992, -1122.8069, 23.8710, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the casino.");
- }
- else if(!strcmp(params, "vip", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1015.6364, -1550.5270, 14.8594, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the VIP lounge.");
- }
- else if(!strcmp(params, "smuggledrugs", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 52.0937, -292.2513, 1.7001, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the drug smuggling spot.");
- }
- else if(!strcmp(params, "matpickup1", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1421.6913, -1318.4719, 13.5547, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the 1st materials pickup.");
- }
- else if(!strcmp(params, "matpickup2", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 2393.4885, -2008.5726, 13.3467, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the 2nd materials pickup.");
- }
- else if(!strcmp(params, "matfactory1", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 2173.2129, -2264.1548, 13.3467, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the 1st materials factory.");
- }
- else if(!strcmp(params, "matfactory2", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 2288.0918, -1105.6555, 37.9766, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the 2nd materials factory.");
- }
- else if(!strcmp(params, "tuning", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 2138.1621,-2198.0967,14.6381, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the tuning garage in Willowfield.");
- }
- else if(!strcmp(params, "heisenbergs", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, -65.0972, -1574.3820, 2.6107, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of Heisenberg's meth cooking trailer.");
- }
- else if(!strcmp(params, "pizzaman", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_PIZZAMAN][jobX], jobLocations[JOB_PIZZAMAN][jobY], jobLocations[JOB_PIZZAMAN][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Pizzaman job.");
- }
- else if(!strcmp(params, "courier", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_COURIER][jobX], jobLocations[JOB_COURIER][jobY], jobLocations[JOB_COURIER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Courier job.");
- }
- else if(!strcmp(params, "fisherman", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_FISHERMAN][jobX], jobLocations[JOB_FISHERMAN][jobY], jobLocations[JOB_FISHERMAN][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Fisherman job.");
- }
- else if(!strcmp(params, "bodyguard", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_BODYGUARD][jobX], jobLocations[JOB_BODYGUARD][jobY], jobLocations[JOB_BODYGUARD][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Bodyguard job.");
- }
- else if(!strcmp(params, "weapondealer", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_WEAPONDEALER][jobX], jobLocations[JOB_WEAPONDEALER][jobY], jobLocations[JOB_WEAPONDEALER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Weapons Dealer job.");
- }
- else if(!strcmp(params, "mechanic", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_MECHANIC][jobX], jobLocations[JOB_MECHANIC][jobY], jobLocations[JOB_MECHANIC][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Mechanic job.");
- }
- else if(!strcmp(params, "miner", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_MINER][jobX], jobLocations[JOB_MINER][jobY], jobLocations[JOB_MINER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Miner job.");
- }
- else if(!strcmp(params, "sweeper", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_SWEEPER][jobX], jobLocations[JOB_SWEEPER][jobY], jobLocations[JOB_SWEEPER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Sweeper job.");
- }
- else if(!strcmp(params, "taxidriver", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_TAXIDRIVER][jobX], jobLocations[JOB_TAXIDRIVER][jobY], jobLocations[JOB_TAXIDRIVER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Taxi Driver job.");
- }
- else if(!strcmp(params, "drugdealer", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_DRUGDEALER][jobX], jobLocations[JOB_DRUGDEALER][jobY], jobLocations[JOB_DRUGDEALER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Drug Dealer job.");
- }
- else if(!strcmp(params, "lawyer", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, jobLocations[JOB_LAWYER][jobX], jobLocations[JOB_LAWYER][jobY], jobLocations[JOB_LAWYER][jobZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Lawyer job.");
- }
- else if(!strcmp(params, "detective", true))
- {
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1554.8918, -1675.6486, 16.1953, 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the Detective job.");
- }
- else if(!strcmp(params, "supermarket", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_STORE);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest supermarket to you.");
- }
- else if(!strcmp(params, "gunshop", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_GUNSHOP);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest gun shop to you.");
- }
- else if(!strcmp(params, "clothesshop", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_CLOTHES);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest clothes shop to you.");
- }
- else if(!strcmp(params, "gym", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_GYM);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest gym to you.");
- }
- else if(!strcmp(params, "restaurant", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_RESTAURANT);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest restaurant to you.");
- }
- else if(!strcmp(params, "adagency", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_AGENCY);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest advertisement agency to you.");
- }
- else if(!strcmp(params, "club", true))
- {
- new businessid = GetClosestBusiness(playerid, BUSINESS_BARCLUB);
- if(businessid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no businesses of this type to be found.");
- }
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY], BusinessInfo[businessid][bPosZ], 3.0);
- SendClientMessage(playerid, COLOR_WHITE, "** Checkpoint marked at the location of the closest club/bar to you.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /locate [option]");
- SendClientMessage(playerid, COLOR_GREY3, "Business Types: Supermarket, GunShop, ClothesShop, Gym, Restaurant, AdAgency, Club");
- SendClientMessage(playerid, COLOR_GREY3, "General Locations: DMV, Dealership, Bank, Paintball, Casino, VIP, Smuggledrugs, MatPickup1, MatPickup2");
- SendClientMessage(playerid, COLOR_GREY3, "General Locations: MatFactory1, MatFactory2, Heisenbergs");
- SendClientMessage(playerid, COLOR_GREY3, "Scripted Jobs: Pizzaman, Courier, Fisherman, Bodyguard, WeaponDealer, Mechanic, Miner, Sweeper");
- SendClientMessage(playerid, COLOR_GREY3, "Scripted Jobs: TaxiDriver, DrugDealer, Lawyer, Detective");
- }
- return 1;
- }
- CMD:ccp(playerid, params[])
- {
- return cmd_cancelcp(playerid, params);
- }
- CMD:kcp(playerid, params[])
- {
- return cmd_cancelcp(playerid, params);
- }
- CMD:killcp(playerid, params[])
- {
- return cmd_cancelcp(playerid, params);
- }
- CMD:killcheckpoint(playerid, params[])
- {
- return cmd_cancelcp(playerid, params);
- }
- CMD:cancelcp(playerid, params[])
- {
- CancelActiveCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have cancelled all active checkpoints.");
- return 1;
- }
- CMD:afk(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /afk [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pAFK])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s has been marked as Away from keyboard for %i minutes.", GetPlayerRPName(targetid), PlayerInfo[targetid][pAFKTime] / 60);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s is currently not marked as Away from keyboard.", GetPlayerRPName(targetid));
- }
- return 1;
- }
- CMD:setforsale(playerid, params[])
- {
- new askingprice, forsale[264], vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(VehicleInfo[vehicleid][vForSale]) return SendClientMessage(playerid, COLOR_GREY, "This vehicle is already for sale.");
- if(!PlayerInfo[playerid][pPhone]) return SendClientMessage(playerid, COLOR_GREY, "You don't have any phone setup.");
- if(sscanf(params, "i", askingprice)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /setforsale [price]");
- if(askingprice < 1 || askingprice > 50000000) return SendClientMessage(playerid, COLOR_GREY, "Price must be between $1 and $50,000,000.");
- VehicleInfo[vehicleid][vForSale] = true;
- VehicleInfo[vehicleid][vForSalePrice] = askingprice;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET forsale = 1, forsaleprice = %i WHERE id = %i", askingprice, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- format(forsale, sizeof(forsale), "FOR SALE\n%s - %s\nPh: %i.", GetVehicleName(vehicleid), FormatNumber(VehicleInfo[vehicleid][vForSalePrice]), PlayerInfo[playerid][pPhone]);
- VehicleInfo[vehicleid][vForSaleLabel] = CreateDynamic3DTextLabel(forsale, COLOR_GREY2, 0.0, 0.0, 0.0, 10.0, INVALID_PLAYER_ID, vehicleid, 1, -1, 0, -1, 30.0);
- SendClientMessageEx(playerid, COLOR_WHITE, "You have set your %s for sale with an asking price of $%s.", GetVehicleName(vehicleid), FormatNumber(VehicleInfo[vehicleid][vForSalePrice]));
- return 1;
- }
- CMD:cancelforsale(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(!VehicleInfo[vehicleid][vForSale]) return SendClientMessage(playerid, COLOR_GREY, "This vehicle is not for sale.");
- VehicleInfo[vehicleid][vForSale] = false;
- VehicleInfo[vehicleid][vForSalePrice] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET forsale = 0, forsaleprice = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- DestroyDynamic3DTextLabel(VehicleInfo[vehicleid][vForSaleLabel]);
- SendClientMessageEx(playerid, COLOR_WHITE, "You have cancelled the sale of your %s.", GetVehicleName(vehicleid));
- return true;
- }
- CMD:afklist(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|______ Away from Keyboard ______|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pAFK])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s - Time: %i seconds", i, GetPlayerRPName(i), PlayerInfo[i][pAFKTime]);
- }
- }
- return 1;
- }
- CMD:atm(playerid, params[])
- {
- for(new i = 0; i < sizeof(atmMachines); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, atmMachines[i][atmX], atmMachines[i][atmY], atmMachines[i][atmZ]))
- {
- ShowDialogToPlayer(playerid, DIALOG_ATM);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any ATM machines.");
- return 1;
- }
- CMD:fixplayerid(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", targetid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /fixplayerid [playerid]");
- SendClientMessage(playerid, COLOR_GREY3, "Sometimes player IDs can become bugged causing sscanf to not identify that ID until server restart.");
- SendClientMessage(playerid, COLOR_GREY3, "(e.g. a command used upon a valid player ID saying the player is disconnected, invalid or offline.)");
- return 1;
- }
- if(!IsPlayerConnected(targetid))
- {
- SSCANF_Leave(targetid);
- }
- else
- {
- SSCANF_Join(targetid, GetPlayerNameEx(targetid), IsPlayerNPC(targetid));
- }
- SendClientMessageEx(playerid, COLOR_WHITE, "** Player ID %i has been fixed.", targetid);
- return 1;
- }
- CMD:anticheat(playerid, params[])
- {
- new status;
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", status) || !(0 <= status <= 1))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /anticheat [0/1]");
- }
- if(status) {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has enabled the server anticheat.", GetPlayerRPName(playerid));
- } else {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has disabled the server anticheat.", GetPlayerRPName(playerid));
- }
- gAnticheat = status;
- return 1;
- }
- CMD:animhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Animation Commands] /dance, /wave, /point, /salute, /laugh, /cry, /deal, /sit, /lay, /fall, /handsup.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Animation Commands] /tired, /cower, /crack, /injured, /fishing, /reload, /aim, /bomb, /checktime.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Animation Commands] /dodge, /stop, /scratch, /what, /wash, /come, /hitch, /cpr, /slapass, /drunk.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Animation Commands] /vomit, /fucku, /taichi, /shifty, /smoke, /chat, /lean, /wank, /crossarms.");
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "** [Animation Commands] /ghands, /rap, /dj, /walk, /fuckme, /bj, /kiss, /piss, /robman, /stopanim.");
- return 1;
- }
- CMD:dance(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1..4: SetPlayerSpecialAction(playerid, (SPECIAL_ACTION_DANCE1 + (strval(params) - 1)));
- case 5: ApplyAnimationEx(playerid, "DANCING", "DAN_Down_A", 4.1, 1, 0, 0, 0, 0);
- case 6: ApplyAnimationEx(playerid, "DANCING", "DAN_Left_A", 4.1, 1, 0, 0, 0, 0);
- case 7: ApplyAnimationEx(playerid, "DANCING", "DAN_Loop_A", 4.1, 1, 0, 0, 0, 0);
- case 8: ApplyAnimationEx(playerid, "DANCING", "DAN_Right_A", 4.1, 1, 0, 0, 0, 0);
- case 9: ApplyAnimationEx(playerid, "DANCING", "DAN_Up_A", 4.1, 1, 0, 0, 0, 0);
- case 10: ApplyAnimationEx(playerid, "DANCING", "dnce_M_a", 4.1, 1, 0, 0, 0, 0);
- case 11: ApplyAnimationEx(playerid, "DANCING", "dnce_M_b", 4.1, 1, 0, 0, 0, 0);
- case 12: ApplyAnimationEx(playerid, "DANCING", "dnce_M_c", 4.1, 1, 0, 0, 0, 0);
- case 13: ApplyAnimationEx(playerid, "DANCING", "dnce_M_d", 4.1, 1, 0, 0, 0, 0);
- case 14: ApplyAnimationEx(playerid, "DANCING", "dnce_M_e", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /dance [1-14]");
- }
- return 1;
- }
- CMD:wave(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "ON_LOOKERS", "wave_loop", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "PED", "endchat_03", 4.1, 0, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "KISSING", "gfwave2", 4.1, 0, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /wave [1-3]");
- }
- return 1;
- }
- CMD:point(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "ON_LOOKERS", "panic_point", 4.1, 0, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "ON_LOOKERS", "point_loop", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /point [1-2]");
- }
- return 1;
- }
- CMD:salute(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "ON_LOOKERS", "Pointup_loop", 4.1, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:laugh(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "RAPPING", "Laugh_01", 4.1, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:cry(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "GRAVEYARD", "mrnF_loop", 4.1, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:deal(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:sit(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "BEACH", "ParkSit_M_loop", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "BEACH", "ParkSit_W_loop", 4.1, 1, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "MISC", "SEAT_LR", 4.1, 0, 0, 0, 1, 0);
- case 4: ApplyAnimationEx(playerid, "MISC", "Seat_talk_01", 4.1, 1, 0, 0, 0, 0);
- case 5: ApplyAnimationEx(playerid, "PED", "SEAT_down", 4.1, 0, 0, 0, 1, 0);
- case 6: ApplyAnimationEx(playerid, "INT_OFFICE", "OFF_Sit_Bored_Loop", 4.1, 1, 0, 0, 0, 0);
- case 7: ApplyAnimationEx(playerid, "INT_OFFICE", "OFF_Sit_Read", 4.1, 1, 0, 0, 0, 0);
- case 8: ApplyAnimationEx(playerid, "INT_OFFICE", "OFF_Sit_Crash", 4.1, 1, 0, 0, 0, 0);
- case 9: ApplyAnimationEx(playerid, "FOOD", "FF_Sit_Eat1", 4.1, 1, 0, 0, 0, 0);
- case 10: ApplyAnimationEx(playerid, "CRIB", "PED_Console_Loop", 4.1, 0, 0, 0, 1, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sit [1-10]");
- }
- return 1;
- }
- CMD:lay(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "BEACH", "bather", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "BEACH", "Lay_Bac_Loop", 4.1, 1, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "BEACH", "SitnWait_loop_W", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /lay [1-3]");
- }
- return 1;
- }
- CMD:fall(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "PED", "KO_skid_front", 4.1, 0, 0, 0, 1, 0);
- case 2: ApplyAnimationEx(playerid, "PED", "KO_skid_back", 4.1, 0, 0, 0, 1, 0);
- case 3: ApplyAnimationEx(playerid, "PED", "KO_shot_face", 4.1, 0, 1, 1, 1, 0);
- case 4: ApplyAnimationEx(playerid, "PED", "KO_shot_front", 4.1, 0, 1, 1, 1, 0);
- case 5: ApplyAnimationEx(playerid, "PED", "KO_shot_stom", 4.1, 0, 1, 1, 1, 0);
- case 6: ApplyAnimationEx(playerid, "PED", "BIKE_fallR", 4.1, 0, 1, 1, 1, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /fall [1-6]");
- }
- return 1;
- }
- CMD:handsup(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "SHOP", "SHP_HandsUp_Scr", 4.1, 0, 0, 0, 1, 0);
- return 1;
- }
- CMD:tired(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "PED", "IDLE_tired", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "FAT", "IDLE_tired", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /tired [1-2]");
- }
- return 1;
- }
- CMD:hide(playerid, params[])
- {
- return cmd_cower(playerid, params);
- }
- CMD:cover(playerid, params[])
- {
- return cmd_cower(playerid, params);
- }
- CMD:cower(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "PED", "cower", 4.1, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:crack(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "CRACK", "crckdeth1", 4.1, 0, 0, 0, 1, 0);
- case 2: ApplyAnimationEx(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "CRACK", "crckdeth3", 4.1, 0, 0, 0, 1, 0);
- case 4: ApplyAnimationEx(playerid, "CRACK", "crckdeth4", 4.1, 0, 0, 0, 1, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /crack [1-4]");
- }
- return 1;
- }
- CMD:injured(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "SWAT", "gnstwall_injurd", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "SWEET", "Sweet_injuredloop", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /injured [1-2]");
- }
- return 1;
- }
- CMD:fishing(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "SAMP", "FishingIdle", 4.1, 0, 0, 0, 1, 0);
- return 1;
- }
- CMD:reload(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "BUDDY", "buddy_reload", 4.1, 0, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "PYTHON", "python_reload", 4.1, 0, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "UZI", "UZI_reload", 4.1, 0, 0, 0, 0, 0);
- case 4: ApplyAnimationEx(playerid, "RIFLE", "RIFLE_load", 4.1, 0, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /reload [1-4]");
- }
- return 1;
- }
- CMD:aim(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "SHOP", "ROB_loop", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "PED", "ARRESTgun", 4.1, 0, 0, 0, 1, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /aim [1-2]");
- }
- return 1;
- }
- CMD:bomb(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:checktime(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "COP_AMBIENT", "Coplook_watch", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:dodge(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "DODGE", "Crush_Jump", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:stop(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "PED", "endchat_01", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:scratch(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "MISC", "Scratchballs_01", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:what(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "RIOT", "RIOT_ANGRY", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:wash(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "BD_FIRE", "wash_up", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:come(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "WUZI", "Wuzi_follow", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:hitch(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "MISC", "Hiker_Pose", 4.1, 0, 0, 0, 1, 0);
- return 1;
- }
- CMD:cpr(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "MEDIC", "CPR", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:slapass(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "SWEET", "sweet_ass_slap", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:drunk(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1);
- return 1;
- }
- CMD:vomit(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "FOOD", "EAT_Vomit_P", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:fucku(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "PED", "fucku", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:taichi(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "PARK", "Tai_Chi_Loop", 4.1, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:shifty(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "SHOP", "ROB_Shifty", 4.1, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:smoke(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "SMOKING", "M_smklean_loop", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "SMOKING", "M_smk_in", 4.1, 0, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /smoke [1-2]");
- }
- return 1;
- }
- CMD:chat(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "PED", "IDLE_CHAT", 4.1, 1, 1, 1, 1, 1);
- case 2: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkA", 4.1, 1, 1, 1, 1, 1);
- case 3: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkB", 4.1, 1, 1, 1, 1, 1);
- case 4: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkC", 4.1, 1, 1, 1, 1, 1);
- case 5: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkD", 4.1, 1, 1, 1, 1, 1);
- case 6: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkE", 4.1, 1, 1, 1, 1, 1);
- case 7: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkF", 4.1, 1, 1, 1, 1, 1);
- case 8: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkG", 4.1, 1, 1, 1, 1, 1);
- case 9: ApplyAnimationEx(playerid, "GANGS", "prtial_gngtlkH", 4.1, 1, 1, 1, 1, 1);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /chat [1-9]");
- }
- return 1;
- }
- CMD:lean(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "GANGS", "leanIDLE", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "MISC", "Plyrlean_loop", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /lean [1-2]");
- }
- return 1;
- }
- CMD:wank(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "PAULNMAC", "wank_loop", 4.1, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:traffic(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "POLICE", "CopTraf_Stop", 4.1, 0, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "POLICE", "CopTraf_Come", 4.1, 0, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /traffic [1-2]");
- }
- return 1;
- }
- CMD:rap(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "RAPPING", "RAP_A_LOOP", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "RAPPING", "RAP_B_LOOP", 4.1, 1, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "RAPPING", "RAP_C_LOOP", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /rap [1-3]");
- }
- return 1;
- }
- CMD:dj(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "SCRATCHING", "scdldlp", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "SCRATCHING", "scdlulp", 4.1, 1, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "SCRATCHING", "scdrdlp", 4.1, 1, 0, 0, 0, 0);
- case 4: ApplyAnimationEx(playerid, "SCRATCHING", "scdrulp", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /dj [1-4]");
- }
- return 1;
- }
- CMD:crossarms(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "COP_AMBIENT", "Coplook_loop", 4.1, 1, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "DEALER", "DEALER_IDLE", 4.1, 1, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "GRAVEYARD", "mrnM_loop", 4.1, 1, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /crossarms [1-3]");
- }
- return 1;
- }
- CMD:ghands(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "GHANDS", "gsign1", 4.1, 0, 0, 0, 0, 0);
- case 2: ApplyAnimationEx(playerid, "GHANDS", "gsign1LH", 4.1, 0, 0, 0, 0, 0);
- case 3: ApplyAnimationEx(playerid, "GHANDS", "gsign2", 4.1, 0, 0, 0, 0, 0);
- case 4: ApplyAnimationEx(playerid, "GHANDS", "gsign2LH", 4.1, 0, 0, 0, 0, 0);
- case 5: ApplyAnimationEx(playerid, "GHANDS", "gsign3", 4.1, 0, 0, 0, 0, 0);
- case 6: ApplyAnimationEx(playerid, "GHANDS", "gsign3LH", 4.1, 0, 0, 0, 0, 0);
- case 7: ApplyAnimationEx(playerid, "GHANDS", "gsign4", 4.1, 0, 0, 0, 0, 0);
- case 8: ApplyAnimationEx(playerid, "GHANDS", "gsign4LH", 4.1, 0, 0, 0, 0, 0);
- case 9: ApplyAnimationEx(playerid, "GHANDS", "gsign5", 4.1, 0, 0, 0, 0, 0);
- case 10: ApplyAnimationEx(playerid, "GHANDS", "gsign5LH", 4.1, 0, 0, 0, 0, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ghands [1-10]");
- }
- return 1;
- }
- CMD:walk(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "PED", "WALK_gang1", 4.1, 1, 1, 1, 1, 1);
- case 2: ApplyAnimationEx(playerid, "PED", "WALK_gang2", 4.1, 1, 1, 1, 1, 1);
- case 3: ApplyAnimationEx(playerid, "PED", "WALK_civi", 4.1, 1, 1, 1, 1, 1);
- case 4: ApplyAnimationEx(playerid, "PED", "WALK_armed", 4.1, 1, 1, 1, 1, 1);
- case 5: ApplyAnimationEx(playerid, "PED", "WALK_fat", 4.1, 1, 1, 1, 1, 1);
- case 6: ApplyAnimationEx(playerid, "PED", "WALK_fatold", 4.1, 1, 1, 1, 1, 1);
- case 7: ApplyAnimationEx(playerid, "PED", "WALK_old", 4.1, 1, 1, 1, 1, 1);
- case 8: ApplyAnimationEx(playerid, "PED", "WALK_player", 4.1, 1, 1, 1, 1, 1);
- case 9: ApplyAnimationEx(playerid, "PED", "WALK_shuffle", 4.1, 1, 1, 1, 1, 1);
- case 10: ApplyAnimationEx(playerid, "PED", "WALK_Wuzi", 4.1, 1, 1, 1, 1, 1);
- case 11: ApplyAnimationEx(playerid, "PED", "WOMAN_walkbusy", 4.1, 1, 1, 1, 1, 1);
- case 12: ApplyAnimationEx(playerid, "PED", "WOMAN_walkfatold", 4.1, 1, 1, 1, 1, 1);
- case 13: ApplyAnimationEx(playerid, "PED", "WOMAN_walknorm", 4.1, 1, 1, 1, 1, 1);
- case 14: ApplyAnimationEx(playerid, "PED", "WOMAN_walksexy", 4.1, 1, 1, 1, 1, 1);
- case 15: ApplyAnimationEx(playerid, "PED", "WOMAN_walkpro", 4.1, 1, 1, 1, 1, 1);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /walk [1-15]");
- }
- return 1;
- }
- CMD:fuckme(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "SNM", "SPANKING_IDLEW", 4.1, 0, 1, 1, 1, 0);
- case 2: ApplyAnimationEx(playerid, "SNM", "SPANKING_IDLEP", 4.1, 0, 1, 1, 1, 0);
- case 3: ApplyAnimationEx(playerid, "SNM", "SPANKINGW", 4.1, 0, 1, 1, 1, 0);
- case 4: ApplyAnimationEx(playerid, "SNM", "SPANKINGP", 4.1, 0, 1, 1, 1, 0);
- case 5: ApplyAnimationEx(playerid, "SNM", "SPANKEDW", 4.1, 0, 1, 1, 1, 0);
- case 6: ApplyAnimationEx(playerid, "SNM", "SPANKEDP", 4.1, 0, 1, 1, 1, 0);
- case 7: ApplyAnimationEx(playerid, "SNM", "SPANKING_ENDW", 4.1, 0, 1, 1, 1, 0);
- case 8: ApplyAnimationEx(playerid, "SNM", "SPANKING_ENDP", 4.1, 0, 1, 1, 1, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /fuckme [1-8]");
- }
- return 1;
- }
- CMD:bj(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- switch(strval(params))
- {
- case 1: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_COUCH_START_P", 4.1, 0, 1, 1, 1, 0);
- case 2: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_COUCH_START_W", 4.1, 0, 1, 1, 1, 0);
- case 3: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_COUCH_LOOP_P", 4.1, 0, 1, 1, 1, 0);
- case 4: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_COUCH_LOOP_W", 4.1, 0, 1, 1, 1, 0);
- case 5: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_COUCH_END_P", 4.1, 0, 1, 1, 1, 0);
- case 6: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_COUCH_END_W", 4.1, 0, 1, 1, 1, 0);
- case 7: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_STAND_START_P", 4.1, 0, 1, 1, 1, 0);
- case 8: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_STAND_START_W", 4.1, 0, 1, 1, 1, 0);
- case 9: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_STAND_LOOP_P", 4.1, 1, 0, 0, 0, 0);
- case 10: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_STAND_LOOP_W", 4.1, 1, 0, 0, 0, 0);
- case 11: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_STAND_END_P", 4.1, 0, 1, 1, 1, 0);
- case 12: ApplyAnimationEx(playerid, "BLOWJOBZ", "BJ_STAND_END_W", 4.1, 0, 1, 1, 1, 0);
- default: SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /bj [1-12]");
- }
- return 1;
- }
- CMD:kiss(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "KISSING", "Playa_Kiss_01", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- CMD:piss(playerid, params[])
- {
- if(!PlayerUseAnims(playerid) || GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
-
- SetPlayerSpecialAction(playerid, 68);
- return 1;
- }
- CMD:robman(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use animations at this moment.");
- }
- ApplyAnimationEx(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- CMD:stopani(playerid, params[])
- {
- return cmd_stopanim(playerid, params);
- }
- CMD:stopanim(playerid, params[])
- {
- if(!PlayerUseAnims(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're currently unable to use this command at this moment.");
- }
- PlayerInfo[playerid][pLoopAnim] = 0;
- ClearAnimations(playerid, 1);
- TextDrawHideForPlayer(playerid, AnimationTD);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
- SendClientMessage(playerid, COLOR_GREY, "Animations cleared.");
- return 1;
- }
- CMD:gmx(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gmx [confirm]");
- SendClientMessage(playerid, COLOR_GREY3, "This command save all player accounts and restarts the server.");
- return 1;
- }
- if(gGMX)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have already called for a server restart. You can't cancel it.");
- }
- gGMX = 1;
- foreach(new i : Player)
- {
- if(i != playerid)
- {
- TogglePlayerControllable(i, 0);
- SendClientMessageEx(i, COLOR_AQUA, "** %s has initated a server restart. You have been frozen.", GetPlayerRPName(playerid));
- }
- SavePlayerVariables(i);
- GameTextForPlayer(i, "~w~Restarting server...", 100000, 3);
- }
- SendClientMessage(playerid, COLOR_WHITE, "** The server will restart once all accounts have been saved.");
- return 1;
- }
- CMD:changepass(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_CHANGEPASS, DIALOG_STYLE_INPUT, "Change password", "Enter your new password:", "Submit", "Cancel");
- return 1;
- }
- CMD:usecookies(playerid, params[])
- {
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command from within the vehicle.");
- }
- new string[1536] = "Perk\tDescription\tCost", title[64];
- strcat(string, "\nShoutout\tBroadcast your message of choice globally.\t{F7A763}1 cookie{FFFFFF}");
- strcat(string, "\nArmor\tReplenishes you with full armor.\t{F7A763}1 cookie{FFFFFF}");
- strcat(string, "\nRespect\tGives you 4 respect points.\t{F7A763}2 cookies{FFFFFF}");
- strcat(string, "\nWeather\tOne time use: change weather globally.\t{F7A763}3 cookies{FFFFFF}");
- strcat(string, "\nMaterials\tGives you 5000 materials.\t{F7A763}4 cookies{FFFFFF}");
- strcat(string, "\nWeapons\tGives you a full weapon set.\t{F7A763}5 cookies{FFFFFF}");
- strcat(string, "\nNumber\tChoose a phone number of your choice.\t{F7A763}5 cookies{FFFFFF}");
- strcat(string, "\nJob\tChoose a job to 1x level up.\t{F7A763}5 cookies{FFFFFF}");
- strcat(string, "\nDouble XP\tAwards you with 8 hours of double XP.\t{F7A763}10 cookies{FFFFFF}");
- strcat(string, "\nVehicle\tFree vehicle ticket under $100k value.\t{F7A763}15 cookies{FFFFFF}");
- strcat(string, "\nHouse\tFree house ticket under $100k value.\t{F7A763}30 cookies{FFFFFF}");
- strcat(string, "\nBusiness\tFree business ticket of any type.\t{F7A763}40 cookies{FFFFFF}");
- strcat(string, "\nVIP\t1 month Limited VIP subscription\t{F7A763}50 cookies{FFFFFF}");
- format(title, sizeof(title), "Cookie rewards (You have %i cookies.)", PlayerInfo[playerid][pCookies]);
- ShowPlayerDialog(playerid, DIALOG_USECOOKIES, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Redeem", "Cancel");
- return 1;
- }
- CMD:toys(playerid, params[])
- {
- new string[MAX_PLAYER_CLOTHING * 64];
- for(new i = 0; i < MAX_PLAYER_CLOTHING; i ++)
- {
- if(ClothingInfo[playerid][i][cExists])
- {
- if(ClothingInfo[playerid][i][cAttached]) {
- format(string, sizeof(string), "%s\n{C8C8C8}%i) {00AA00}%s {FFD700}(Attached)", string, i + 1, ClothingInfo[playerid][i][cName]);
- } else {
- format(string, sizeof(string), "%s\n{C8C8C8}%i) {00AA00}%s{FFFFFF}", string, i + 1, ClothingInfo[playerid][i][cName]);
- }
- }
- else
- {
- format(string, sizeof(string), "%s\n{C8C8C8}%i) {AFAFAF}Empty Slot{FFFFFF}", string, i + 1);
- }
- }
- ShowPlayerDialog(playerid, DIALOG_CLOTHING, DIALOG_STYLE_LIST, "My clothing items", string, "Select", "Cancel");
- return 1;
- }
- CMD:taketest(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, -2033.2953, -117.4508, 1035.1719))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not at the desk in the Licensing department.");
- }
- if(PlayerInfo[playerid][pCarLicense])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have your drivers license already.");
- }
- if(PlayerInfo[playerid][pDrivingTest])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are already taking your drivers test.");
- }
- if(PlayerInfo[playerid][pCash] < 400)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need $400 to pay the licensing fee if you pass the test.");
- }
- SendClientMessage(playerid, COLOR_WHITE, "** You've taken on the drivers test. Go outside and enter one of the vehicles to begin.");
- SendClientMessage(playerid, COLOR_WHITE, "** Once you have passed the test, you will receive your license and pay a $500 licensing fee.");
- PlayerInfo[playerid][pTestVehicle] = INVALID_VEHICLE_ID;
- PlayerInfo[playerid][pDrivingTest] = 1;
- PlayerInfo[playerid][pTestCP] = 0;
- return 1;
- }
- CMD:buyvehicle(playerid, params[])
- {
- static string[4096];
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 542.0433, -1293.5909, 17.2422))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the Grotti car dealership.");
- }
- if(GetSpawnedVehicles(playerid) >= MAX_SPAWNED_VEHICLES)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can't have more than %i vehicles spawned at a time.", MAX_SPAWNED_VEHICLES);
- }
- if(isnull(string))
- {
- string = "Category\tVehicle\tPrice";
- for(new i = 0; i < sizeof(vehicleArray); i ++)
- {
- format(string, sizeof(string), "%s\n%s\t%s\t{00AA00}$%i{FFFFFF}", string, vehicleArray[i][carCategory], vehicleNames[vehicleArray[i][carModel] - 400], vehicleArray[i][carPrice]);
- }
- }
- PlayerInfo[playerid][pGangCar] = 0;
- ShowPlayerDialog(playerid, DIALOG_BUYVEHICLE, DIALOG_STYLE_TABLIST_HEADERS, "Grotti Dealership", string, "Buy", "Cancel");
- return 1;
- }
- CMD:vst(playerid, params[])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT id, modelid, pos_x, pos_y, pos_z, world FROM vehicles WHERE ownerid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_CAR_STORAGE, playerid);
- return 1;
- }
- CMD:park(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), id = VehicleInfo[vehicleid][vID];
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any vehicle of yours.");
- }
- if(!IsVehicleOwner(playerid, vehicleid) && PlayerInfo[playerid][pVehicleKeys] != vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't park this vehicle as it doesn't belong to you.");
- }
-
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s parks their %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have parked your {00AA00}%s{33CCFF} which will spawn in this spot from now on.", GetVehicleName(vehicleid));
- // Save the vehicle's information.
- GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ]);
- GetVehicleZAngle(vehicleid, VehicleInfo[vehicleid][vPosA]);
- VehicleInfo[vehicleid][vInterior] = GetPlayerInterior(playerid);
- VehicleInfo[vehicleid][vWorld] = GetPlayerVirtualWorld(playerid);
- // Update the database record with the new information, then despawn the vehicle.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', interior = %i, world = %i WHERE id = %i", VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ], VehicleInfo[vehicleid][vPosA], VehicleInfo[vehicleid][vInterior], VehicleInfo[vehicleid][vWorld], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- DespawnVehicle(vehicleid);
- // Finally, we reload the vehicle from the database.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM vehicles WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerSpawnVehicle", "ii", playerid, true);
- return 1;
- }
- CMD:givekeys(playerid, params[])
- {
- new targetid, vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givekeys [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't give keys to yourself.");
- }
- if(PlayerInfo[targetid][pVehicleKeys] == vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player already has keys to your vehicle.");
- }
- PlayerInfo[targetid][pVehicleKeys] = vehicleid;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s gives %s the keys to their %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), GetVehicleName(vehicleid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you the keys to their {00AA00}%s{33CCFF}.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %s the keys to your {00AA00}%s{33CCFF}.", GetPlayerRPName(targetid), GetVehicleName(vehicleid));
- return 1;
- }
- CMD:takekeys(playerid, params[])
- {
- new targetid, vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /takekeys [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't take keys from yourself.");
- }
- if(PlayerInfo[targetid][pVehicleKeys] != vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player doesn't have the keys to your vehicle.");
- }
- PlayerInfo[targetid][pVehicleKeys] = INVALID_VEHICLE_ID;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes back the keys to their %s from %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), GetVehicleName(vehicleid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken back the keys to their {00AA00}%s{33CCFF}.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have taken back the keys to your {00AA00}%s{33CCFF} from %s.", GetPlayerRPName(targetid), GetVehicleName(vehicleid));
- return 1;
- }
- /*CMD:despawncar(playerid, params[])
- {
- new string[MAX_SPAWNED_VEHICLES * 64], count;
- string = "#\tModel\tLocation";
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && IsVehicleOwner(playerid, i))
- {
- format(string, sizeof(string), "%s\n%i\t%s\t%s", string, count + 1, GetVehicleName(i), GetVehicleZoneName(i));
- count++;
- }
- }
- if(!count)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have no vehicles spawned at the moment.");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_DESPAWNCAR, DIALOG_STYLE_TABLIST_HEADERS, "Choose a vehicle to despawn.", string, "Select", "Cancel");
- }
- return 1;
- }*/
- CMD:findcar(playerid, params[])
- {
- new string[MAX_SPAWNED_VEHICLES * 64], count;
- string = "#\tModel\tLocation";
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && IsVehicleOwner(playerid, i))
- {
- format(string, sizeof(string), "%s\n%i\t%s\t%s", string, count + 1, GetVehicleName(i), GetVehicleZoneName(i));
- count++;
- }
- }
- if(!count)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have no vehicles spawned at the moment.");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_FINDCAR, DIALOG_STYLE_TABLIST_HEADERS, "Choose a vehicle to track.", string, "Select", "Cancel");
- }
- return 1;
- }
- CMD:upgradevehicle(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), option[8], param[32];
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, 542.0433, -1293.5909, 17.2422))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the Grotti car dealership.");
- }
- if(sscanf(params, "s[8]S()[32]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradevehicle [stash | neon | plate]");
- }
- if(!strcmp(option, "stash", true))
- {
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradevehicle [stash] [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "Your vehicle's stash level is at %i/3. Upgrading your stash will cost you $10,000.", VehicleInfo[vehicleid][vTrunk]);
- return 1;
- }
- if(VehicleInfo[vehicleid][vTrunk] >= 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle's stash is already at its maximum level.");
- }
- if(PlayerInfo[playerid][pCash] < 10000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to upgrade your trunk.");
- }
- VehicleInfo[vehicleid][vTrunk]++;
- GivePlayerCash(playerid, -10000);
- GameTextForPlayer(playerid, "~r~-$10000", 5000, 1);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET trunk = %i WHERE id = %i", VehicleInfo[vehicleid][vTrunk], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have paid $10000 for stash level %i/3. '/vstash balance' to see your new capacities.", VehicleInfo[vehicleid][vTrunk]);
- Log_Write("log_property", "%s (uid: %i) upgraded the stash of their %s (id: %i) to level %i/3.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID], VehicleInfo[vehicleid][vTrunk]);
- }
- else if(!strcmp(option, "neon", true))
- {
- if(isnull(param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradevehicle [neon] [color] (costs $30,000)");
- SendClientMessage(playerid, COLOR_GREY3, "List of colors: Red, Blue, Green, Yellow, Pink, White");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 30000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least $30,000 to upgrade your neon.");
- }
- if(!VehicleHasWindows(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't support neon.");
- }
- if(!strcmp(param, "red", true))
- {
- SetVehicleNeon(vehicleid, 18647);
- GivePlayerCash(playerid, -30000);
- GameTextForPlayer(playerid, "~r~-$30000", 5000, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have paid $30000 for red neon. You can use /neon to toggle your neon.");
- Log_Write("log_property", "%s (uid: %i) purchased red neon for their %s (id: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(param, "blue", true))
- {
- SetVehicleNeon(vehicleid, 18648);
- GivePlayerCash(playerid, -30000);
- GameTextForPlayer(playerid, "~r~-$30000", 5000, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have paid $30000 for blue neon. You can use /neon to toggle your neon.");
- Log_Write("log_property", "%s (uid: %i) purchased blue neon for their %s (id: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(param, "green", true))
- {
- SetVehicleNeon(vehicleid, 18649);
- GivePlayerCash(playerid, -30000);
- GameTextForPlayer(playerid, "~r~-$30000", 5000, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have paid $30000 for green neon. You can use /neon to toggle your neon.");
- Log_Write("log_property", "%s (uid: %i) purchased green neon for their %s (id: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(param, "yellow", true))
- {
- SetVehicleNeon(vehicleid, 18650);
- GivePlayerCash(playerid, -30000);
- GameTextForPlayer(playerid, "~r~-$30000", 5000, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have paid $30000 for yellow neon. You can use /neon to toggle your neon.");
- Log_Write("log_property", "%s (uid: %i) purchased yellow neon for their %s (id: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(param, "pink", true))
- {
- SetVehicleNeon(vehicleid, 18651);
- GivePlayerCash(playerid, -30000);
- GameTextForPlayer(playerid, "~r~-$30000", 5000, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have paid $30000 for pink neon. You can use /neon to toggle your neon.");
- Log_Write("log_property", "%s (uid: %i) purchased pink neon for their %s (id: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(param, "white", true))
- {
- SetVehicleNeon(vehicleid, 18652);
- GivePlayerCash(playerid, -30000);
- GameTextForPlayer(playerid, "~r~-$30000", 5000, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have paid $30000 for white neon. You can use /neon to toggle your neon.");
- Log_Write("log_property", "%s (uid: %i) purchased white neon for their %s (id: %i)", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- }
- else if(!strcmp(option, "plate", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /upgradevehicle [plate] [text] (costs $20,000)");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no license plate. Therefore you can't buy this upgrade.");
- }
- strcpy(VehicleInfo[vehicleid][vPlate], param, 32);
- SetVehicleNumberPlate(vehicleid, param);
- ResyncVehicle(vehicleid);
- GivePlayerCash(playerid, -20000);
- GameTextForPlayer(playerid, "~r~-$20000", 5000, 1);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET plate = '%e' WHERE id = %i", param, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_GREEN, "You have paid $20000 for license plate '%s'. Changes will take effect once vehicle is parked.", param);
- Log_Write("log_property", "%s (uid: %i) paid $20000 to set the license plate of their %s (id: %i) to %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID], param);
- }
- return 1;
- }
- CMD:neon(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any vehicle of yours.");
- }
- if(!IsVehicleOwner(playerid, vehicleid) && PlayerInfo[playerid][pVehicleKeys] != vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as this vehicle doesn't belong to you.");
- }
- if(!VehicleInfo[vehicleid][vNeon])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no neon installed.");
- }
- if(!VehicleInfo[vehicleid][vNeonEnabled])
- {
- VehicleInfo[vehicleid][vNeonEnabled] = 1;
- GameTextForPlayer(playerid, "~g~Neon activated", 3000, 3);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s presses a button to activate their neon tubes.", GetPlayerRPName(playerid));
- //SendClientMessage(playerid, COLOR_AQUA, "** Neon enabled. The tubes appear under your vehicle.");
- }
- else
- {
- VehicleInfo[vehicleid][vNeonEnabled] = 0;
- GameTextForPlayer(playerid, "~r~Neon deactivated", 3000, 3);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s presses a button to deactivate their neon tubes.", GetPlayerRPName(playerid));
- //SendClientMessage(playerid, COLOR_AQUA, "** Neon disabled.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET neonenabled = %i WHERE id = %i", VehicleInfo[vehicleid][vNeonEnabled], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadVehicleNeon(vehicleid);
- return 1;
- }
- CMD:vstash(playerid, params[])
- {
- new vehicleid = GetNearbyVehicle(playerid);
- if(vehicleid != INVALID_VEHICLE_ID && IsVehicleOwner(playerid, vehicleid))
- {
- new option[14], param[32];
- if(!VehicleInfo[vehicleid][vTrunk])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no trunk installed. /upgradevehicle to purchase one.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command from within the vehicle.");
- }
- if(sscanf(params, "s[14]S()[32]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [balance | deposit | withdraw]");
- }
- if(!strcmp(option, "balance", true))
- {
- new count;
- for(new i = 0; i < 3; i ++)
- {
- if(VehicleInfo[vehicleid][vWeapons][i])
- {
- count++;
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Stash Balance _____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "Cash: $%i/$%i", VehicleInfo[vehicleid][vCash], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_CASH));
- SendClientMessageEx(playerid, COLOR_GREY2, "Materials: %i/%i | Weapons: %i/%i", VehicleInfo[vehicleid][vMaterials], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_MATERIALS), count, GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEAPONS));
- SendClientMessageEx(playerid, COLOR_GREY2, "Weed: %i/%i grams | Cocaine: %i/%i grams", VehicleInfo[vehicleid][vWeed], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEED), VehicleInfo[vehicleid][vCocaine], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_COCAINE));
- SendClientMessageEx(playerid, COLOR_GREY2, "Meth: %i/%i grams | Painkillers: %i/%i pills", VehicleInfo[vehicleid][vMeth], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_METH), VehicleInfo[vehicleid][vPainkillers], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_PAINKILLERS));
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Stash Ammunition_____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "HP Ammo: %i/%i | Poison Ammo: %i/%i", VehicleInfo[vehicleid][vHPAmmo], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_HPAMMO), VehicleInfo[vehicleid][vPoisonAmmo], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_POISONAMMO));
- SendClientMessageEx(playerid, COLOR_GREY2, "FMJ Ammo: %i/%i", VehicleInfo[vehicleid][vFMJAmmo], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_FMJAMMO));
- if(count > 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Stash Weapons _____|");
- for(new i = 0; i < 3; i ++)
- {
- if(VehicleInfo[vehicleid][vWeapons][i])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "[%i] Weapon: %s", i + 1, GetWeaponNameEx(VehicleInfo[vehicleid][vWeapons][i]));
- }
- }
- }
- }
- else if(!strcmp(option, "deposit", true))
- {
- new value;
- if(sscanf(param, "s[14]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Cash, Materials, Weed, Cocaine, Meth, Painkillers, Weapon");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(!strcmp(option, "cash", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [cash] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vCash] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_CASH))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to $%i at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_CASH));
- }
- GivePlayerCash(playerid, -value);
- VehicleInfo[vehicleid][vCash] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET cash = %i WHERE id = %i", VehicleInfo[vehicleid][vCash], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored $%i in your vehicle stash.", value);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [materials] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vMaterials] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i materials at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_MATERIALS));
- }
- PlayerInfo[playerid][pMaterials] -= value;
- VehicleInfo[vehicleid][vMaterials] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET materials = %i WHERE id = %i", VehicleInfo[vehicleid][vMaterials], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i materials in your vehicle stash.", value);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [weed] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vWeed] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEED))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i grams of weed at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEED));
- }
- PlayerInfo[playerid][pWeed] -= value;
- VehicleInfo[vehicleid][vWeed] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET weed = %i WHERE id = %i", VehicleInfo[vehicleid][vWeed], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %ig of weed in your vehicle stash.", value);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [cocaine] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vCocaine] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_COCAINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i grams of cocaine at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_COCAINE));
- }
- PlayerInfo[playerid][pCocaine] -= value;
- VehicleInfo[vehicleid][vCocaine] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET cocaine = %i WHERE id = %i", VehicleInfo[vehicleid][vCocaine], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %ig of cocaine in your vehicle stash.", value);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [meth] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vMeth] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_METH))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i grams of meth at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_METH));
- }
- PlayerInfo[playerid][pMeth] -= value;
- VehicleInfo[vehicleid][vMeth] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET meth = %i WHERE id = %i", VehicleInfo[vehicleid][vMeth], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %ig of meth in your vehicle stash.", value);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [painkillers] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vPainkillers] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_PAINKILLERS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i painkillers at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_PAINKILLERS));
- }
- PlayerInfo[playerid][pPainkillers] -= value;
- VehicleInfo[vehicleid][vPainkillers] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET painkillers = %i WHERE id = %i", VehicleInfo[vehicleid][vPainkillers], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i painkillers in your vehicle stash.", value);
- }
- else if(!strcmp(option, "weapon", true))
- {
- new weaponid;
- if(sscanf(param, "i", weaponid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [weapon] [weaponid] (/guninv for weapon IDs)");
- }
- if(!(1 <= weaponid <= 46) || PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] != weaponid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon. /guninv for a list of your weapons.");
- }
- if(GetPlayerHealthEx(playerid) < 60)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't store weapons as your health is below 60.");
- }
- for(new i = 0; i < GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEAPONS); i ++)
- {
- if(!VehicleInfo[vehicleid][vWeapons][i])
- {
- VehicleInfo[vehicleid][vWeapons][i] = weaponid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET weapon_%i = %i WHERE id = %i", i + 1, VehicleInfo[vehicleid][vWeapons][i], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- RemovePlayerWeapon(playerid, weaponid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored a %s in slot %i of your vehicle stash.", GetWeaponNameEx(VehicleInfo[vehicleid][vWeapons][i]), i + 1);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "This vehicle has no more slots available for weapons.");
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [vpammo] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vHPAmmo] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_HPAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i HP ammo at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_HPAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] - value);
- VehicleInfo[vehicleid][vHPAmmo] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET hpammo = %i WHERE id = %i", VehicleInfo[vehicleid][vHPAmmo], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i rounds of hollow point ammo in your vehicle stash.", value);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [poisonammo] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vPoisonAmmo] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_POISONAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_POISONAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] - value);
- VehicleInfo[vehicleid][vPoisonAmmo] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET poisonammo = %i WHERE id = %i", VehicleInfo[vehicleid][vPoisonAmmo], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i rounds of poison tip ammo in your vehicle stash.", value);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [deposit] [fmjammo] [amount]");
- }
- if(value < 1 || value > PlayerInfo[playerid][pFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(VehicleInfo[vehicleid][vFMJAmmo] + value > GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_FMJAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your vehicle's stash can only hold up to %i FMJ ammo at its level.", GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_FMJAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] - value);
- VehicleInfo[vehicleid][vFMJAmmo] += value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET fmjammo = %i WHERE id = %i", VehicleInfo[vehicleid][vFMJAmmo], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have stored %i rounds of full metal jacket ammo in your vehicle stash.", value);
- }
- }
- else if(!strcmp(option, "withdraw", true))
- {
- new value;
- if(sscanf(param, "s[14]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Cash, Weed, Cocaine, Meth, Painkillers, Weapon");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(!strcmp(option, "cash", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [cash] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- GivePlayerCash(playerid, value);
- VehicleInfo[vehicleid][vCash] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET cash = %i WHERE id = %i", VehicleInfo[vehicleid][vCash], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken $%i from your vehicle stash.", value);
- }
- else if(!strcmp(option, "materials", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [materials] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pMaterials] + value > GetPlayerCapacity(playerid, CAPACITY_MATERIALS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i materials. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMaterials], GetPlayerCapacity(playerid, CAPACITY_MATERIALS));
- }
- PlayerInfo[playerid][pMaterials] += value;
- VehicleInfo[vehicleid][vMaterials] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET materials = %i WHERE id = %i", VehicleInfo[vehicleid][vMaterials], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = %i WHERE uid = %i", PlayerInfo[playerid][pMaterials], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i materials from your vehicle stash.", value);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [weed] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pWeed] + value > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- }
- PlayerInfo[playerid][pWeed] += value;
- VehicleInfo[vehicleid][vWeed] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET weed = %i WHERE id = %i", VehicleInfo[vehicleid][vWeed], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %ig of weed from your vehicle stash.", value);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [cocaine] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pCocaine] + value > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- }
- PlayerInfo[playerid][pCocaine] += value;
- VehicleInfo[vehicleid][vCocaine] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET cocaine = %i WHERE id = %i", VehicleInfo[vehicleid][vCocaine], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %ig of cocaine from your vehicle stash.", value);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [meth] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pMeth] + value > GetPlayerCapacity(playerid, CAPACITY_METH))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i meth. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pMeth], GetPlayerCapacity(playerid, CAPACITY_METH));
- }
- PlayerInfo[playerid][pMeth] += value;
- VehicleInfo[vehicleid][vMeth] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET meth = %i WHERE id = %i", VehicleInfo[vehicleid][vMeth], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %ig of meth from your vehicle stash.", value);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [painkillers] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pPainkillers] + value > GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i painkillers. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPainkillers], GetPlayerCapacity(playerid, CAPACITY_PAINKILLERS));
- }
- PlayerInfo[playerid][pPainkillers] += value;
- VehicleInfo[vehicleid][vPainkillers] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET painkillers = %i WHERE id = %i", VehicleInfo[vehicleid][vPainkillers], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i painkillers from your vehicle stash.", value);
- }
- else if(!strcmp(option, "weapon", true))
- {
- new slots = GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEAPONS);
-
- if(sscanf(param, "i", value))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [weapon] [slot (1-%i)]", slots);
- }
- if(!(1 <= value <= slots))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot, or the slot specified is locked.");
- }
- if(!VehicleInfo[vehicleid][vWeapons][value-1])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The slot specified contains no weapon which you can take.");
- }
- GivePlayerWeaponEx(playerid, VehicleInfo[vehicleid][vWeapons][value-1]);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken a %s from slot %i of your vehicle stash.", GetWeaponNameEx(VehicleInfo[vehicleid][vWeapons][value-1]), value);
- VehicleInfo[vehicleid][vWeapons][value-1] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET weapon_%i = 0 WHERE id = %i", value, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [vpammo] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pHPAmmo] + value > GetPlayerCapacity(playerid, CAPACITY_HPAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i HP ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pHPAmmo], GetPlayerCapacity(playerid, CAPACITY_HPAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_HP, PlayerInfo[playerid][pHPAmmo] + value);
- VehicleInfo[vehicleid][vHPAmmo] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET hpammo = %i WHERE id = %i", VehicleInfo[vehicleid][vHPAmmo], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i rounds of hollow point ammo from your vehicle stash.", value);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [poisonammo] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pPoisonAmmo] + value > GetPlayerCapacity(playerid, CAPACITY_POISONAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i poison ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pPoisonAmmo], GetPlayerCapacity(playerid, CAPACITY_POISONAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_POISON, PlayerInfo[playerid][pPoisonAmmo] + value);
- VehicleInfo[vehicleid][vPoisonAmmo] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET poisonammo = %i WHERE id = %i", VehicleInfo[vehicleid][vPoisonAmmo], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i rounds of poison tip ammo from your vehicle stash.", value);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vstash [withdraw] [fmjammo] [amount]");
- }
- if(value < 1 || value > VehicleInfo[vehicleid][vFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(PlayerInfo[playerid][pFMJAmmo] + value > GetPlayerCapacity(playerid, CAPACITY_FMJAMMO))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i FMJ ammo. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pFMJAmmo], GetPlayerCapacity(playerid, CAPACITY_FMJAMMO));
- }
- SetWeaponAmmo(playerid, AMMO_FMJ, PlayerInfo[playerid][pFMJAmmo] + value);
- VehicleInfo[vehicleid][vFMJAmmo] -= value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET fmjammo = %i WHERE id = %i", VehicleInfo[vehicleid][vFMJAmmo], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have taken %i rounds of full metal jacket ammo from your vehicle stash.", value);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any vehicle of yours.");
- }
- return 1;
- }
- CMD:unmod(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any vehicle of yours.");
- }
- /*if(!IsVehicleOwner(playerid, vehicleid) && PlayerInfo[playerid][pVehicleKeys] != vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as this vehicle doesn't belong to you.");
- }*/
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /unmod [color | paintjob | mods | neon]");
- }
- if(!strcmp(params, "color", true))
- {
- VehicleInfo[vehicleid][vColor1] = 0;
- VehicleInfo[vehicleid][vColor2] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET color1 = 0, color2 = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ChangeVehicleColor(vehicleid, 0, 0);
- SendClientMessage(playerid, COLOR_WHITE, "** Vehicle color has been set back to default.");
- }
- else if(!strcmp(params, "paintjob", true))
- {
- VehicleInfo[vehicleid][vPaintjob] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET paintjob = -1 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- ChangeVehiclePaintjob(vehicleid, -1);
- SendClientMessage(playerid, COLOR_WHITE, "** Vehicle paintjob has been set back to default.");
- }
- else if(!strcmp(params, "mods", true))
- {
- for(new i = 0; i < 14; i ++)
- {
- if(VehicleInfo[vehicleid][vMods][i] >= 1000)
- {
- RemoveVehicleComponent(vehicleid, VehicleInfo[vehicleid][vMods][i]);
- }
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET mod_1 = 0, mod_2 = 0, mod_3 = 0, mod_4 = 0, mod_5 = 0, mod_6 = 0, mod_7 = 0, mod_8 = 0, mod_9 = 0, mod_10 = 0, mod_11 = 0, mod_12 = 0, mod_13 = 0, mod_14 = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** All vehicle modifications have been removed.");
- }
- else if(!strcmp(params, "neon", true))
- {
- if(!VehicleInfo[vehicleid][vNeon])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no neon which you can remove.");
- }
- if(VehicleInfo[vehicleid][vNeonEnabled])
- {
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][0]);
- DestroyDynamicObject(VehicleInfo[vehicleid][vObjects][1]);
- }
- VehicleInfo[vehicleid][vNeon] = 0;
- VehicleInfo[vehicleid][vNeonEnabled] = 0;
- VehicleInfo[vehicleid][vObjects][0] = INVALID_OBJECT_ID;
- VehicleInfo[vehicleid][vObjects][1] = INVALID_OBJECT_ID;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET neon = 0, neonenabled = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** Neon has been removed from vehicle.");
- }
- return 1;
- }
- CMD:colorcar(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), color1, color2;
- if(sscanf(params, "ii", color1, color2))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /colorcar [color1] [color2]");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1041.3689,-1030.2717,32.0837))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of Temple's modding garage.");
- }
- if(PlayerInfo[playerid][pCash] <= 200)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford money for this operation.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not sitting inside any vehicle.");
- }
- if(VehicleInfo[vehicleid][vOwnerID] > 0 && !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't belong to you, therefore you can't respray it.");
- }
- if(!(0 <= color1 <= 255) || !(0 <= color2 <= 255))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The color specified must range between 0 and 255.");
- }
- if(VehicleInfo[vehicleid][vOwnerID] > 0 || VehicleInfo[vehicleid][vGang] >= 0)
- {
- VehicleInfo[vehicleid][vColor1] = color1;
- VehicleInfo[vehicleid][vColor2] = color2;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET color1 = %i, color2 = %i WHERE id = %i", color1, color2, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- ChangeVehicleColor(vehicleid, color1, color2);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paints their vehicle with a different color.", GetPlayerRPName(playerid));
- GivePlayerCash(playerid, -200);
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Vehicle resprayed.");
- return 1;
- }
- CMD:paintcar(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), paintjobid;
- if(sscanf(params, "i", paintjobid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /paintcar [paintjobid (-1 = none)]");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1041.3689,-1030.2717,32.0837))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of Temple's modding garage.");
- }
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford money for this operation.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not sitting inside any vehicle.");
- }
- if(VehicleInfo[vehicleid][vOwnerID] > 0 && !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't belong to you, therefore you can't respray it.");
- }
- if(!(-1 <= paintjobid <= 5))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The paintjob specified must range between -1 and 5.");
- }
- if(VehicleInfo[vehicleid][vOwnerID] > 0 || VehicleInfo[vehicleid][vGang] >= 0)
- {
- VehicleInfo[vehicleid][vPaintjob] = paintjobid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET paintjob = %i WHERE id = %i", paintjobid, VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- ChangeVehiclePaintjob(vehicleid, paintjobid);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s paints their vehicle with a different paintjob.", GetPlayerRPName(playerid));
- GivePlayerCash(playerid, -1000);
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- SendClientMessageEx(playerid, COLOR_WHITE, "** Vehicle painted.");
- return 1;
- }
- CMD:sellcar(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), targetid, amount;
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellcar [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell to yourself.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must specify an amount above zero.");
- }
- PlayerInfo[targetid][pCarOffer] = playerid;
- PlayerInfo[targetid][pCarOffered] = vehicleid;
- PlayerInfo[targetid][pCarPrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you their %s for $%i (/accept vehicle).", GetPlayerRPName(playerid), GetVehicleName(vehicleid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered %s to buy your %s for $%i.", GetPlayerRPName(targetid), GetVehicleName(vehicleid), amount);
- return 1;
- }
- CMD:sellmycar(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, 542.0433, -1293.5909, 17.2422))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the Grotti car dealership.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellmycar [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command permanently deletes your vehicle. You will receive $%i back.", percent(VehicleInfo[vehicleid][vPrice], 75));
- return 1;
- }
- GivePlayerCash(playerid, percent(VehicleInfo[vehicleid][vPrice], 75));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have sold your %s to the dealership and received $%i back.", GetVehicleName(vehicleid), percent(VehicleInfo[vehicleid][vPrice], 75));
- Log_Write("log_property", "%s (uid: %i) sold their %s (id: %i) to the dealership for $%i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID], percent(VehicleInfo[vehicleid][vPrice], 75));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM vehicles WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- DespawnVehicle(vehicleid, false);
- return 1;
- }
- CMD:mine(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_MINER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Miner.");
- }
- if(PlayerInfo[playerid][pMiningTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are mining already. Wait until you are done.");
- }
- if(PlayerInfo[playerid][pMiningRock] > 0 && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to drop off your current rock first.");
- }
- if(!IsPlayerInMiningArea(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the mining area.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be onfoot in order to use this command.");
- }
- GameTextForPlayer(playerid, "~w~Mining...", 6000, 3);
- ApplyAnimation(playerid, "BASEBALL", "BAT_4", 4.1, 1, 0, 0, 0, 0, 1);
- DisablePlayerCheckpoint(playerid);
- SetPlayerAttachedObject(playerid, 9, 337, 6);
- PlayerInfo[playerid][pMiningTime] = 6;
- return 1;
- }
- CMD:startsweeping(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_SWEEPER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Street Sweeper.");
- }
- if(PlayerInfo[playerid][pSweeping])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are sweeping already. /stopsweeping to stop.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 574)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not sitting inside a Sweeper.");
- }
- PlayerInfo[playerid][pSweeping] = 1;
- PlayerInfo[playerid][pSweepTime] = 30;
- PlayerInfo[playerid][pSweepEarnings] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "** You are now sweeping. Drive around with your sweeper to earn money towards your paycheck.");
- SendClientMessage(playerid, COLOR_WHITE, "** When you are finished your sweeping shift, use /stopsweeping in order to end your shift.");
- return 1;
- }
- CMD:stopsweeping(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_SWEEPER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Street Sweeper.");
- }
- if(!PlayerInfo[playerid][pSweeping])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not sweeping right now.");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "** You are no longer sweeping. You earned a total of {00AA00}$%i{33CCFF} towards your paycheck during your shift.", PlayerInfo[playerid][pSweepEarnings]);
- PlayerInfo[playerid][pSweeping] = 0;
- PlayerInfo[playerid][pSweepTime] = 0;
- PlayerInfo[playerid][pSweepEarnings] = 0;
- return 1;
- }
- CMD:v(playerid, params[])
- {
- return cmd_vip(playerid, params);
- }
- CMD:vip(playerid, params[])
- {
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(v)ip [vip chat]");
- }
- if(PlayerInfo[playerid][pToggleVIP])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the VIP chat as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pVIPPackage] > 0 && !PlayerInfo[i][pToggleVIP])
- {
- SendClientMessageEx(i, COLOR_VIP, "** %s VIP %s: %s **", GetVIPRank(PlayerInfo[playerid][pVIPPackage]), GetPlayerRPName(playerid), params);
- }
- }
- return 1;
- }
- CMD:viptag(playerid, params[])
- {
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- if(PlayerInfo[playerid][pAcceptedHelp])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't enable your VIP tag until you stop assisting. (/return)");
- }
- if(PlayerInfo[playerid][pAdminDuty])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't enable your VIP tag until you are off admin duty.");
- }
- if(PlayerInfo[playerid][pTagType] != TAG_VIP)
- {
- if(PlayerInfo[playerid][pAdminDuty])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't enable your VIP tag while on admin duty.");
- }
- if(PlayerInfo[playerid][pAcceptedHelp])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't enable your VIP tag while assisting someone.");
- }
- SetPlayerSpecialTag(playerid, TAG_VIP);
- SendClientMessage(playerid, COLOR_AQUA, "** You have enabled the VIP tag above your head.");
- }
- else
- {
- SetPlayerSpecialTag(playerid, TAG_NONE);
- SendClientMessage(playerid, COLOR_AQUA, "** You have removed the VIP tag from above your head.");
- }
- return 1;
- }
- CMD:vipcolor(playerid, params[])
- {
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- if(!PlayerInfo[playerid][pVIPColor])
- {
- PlayerInfo[playerid][pVIPColor] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "** You have enabled the VIP nametag color.");
- }
- else
- {
- PlayerInfo[playerid][pVIPColor] = 0;
- SendClientMessage(playerid, COLOR_AQUA, "** You have disabled the VIP nametag color.");
- }
- return 1;
- }
- CMD:vipinvite(playerid, params[])
- {
- new targetid;
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- if((PlayerInfo[playerid][pVIPTime] - gettime()) < 259200)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your VIP subscription expires in less than 3 days. You can't do this now.");
- }
- if(sscanf(params, "u", targetid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vipinvite [playerid]");
- SendClientMessage(playerid, COLOR_GREY3, "This command grants a temporary VIP subscription which lasts one hour to a player of your choice.");
- if(PlayerInfo[playerid][pVIPCooldown] > gettime()) {
- SendClientMessageEx(playerid, COLOR_GREY3, "You can only use this command once every 24 hours. You have %i hours left until you can use it again.", (PlayerInfo[playerid][pVIPCooldown] - gettime()) / 3600);
- } else {
- SendClientMessage(playerid, COLOR_GREY3, "You can only use this command once every 24 hours. You currently have no cooldown for this command.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pVIPCooldown] > gettime())
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You have already used this command today. Please wait another %i hours.", (PlayerInfo[playerid][pVIPCooldown] - gettime()) / 3600);
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(PlayerInfo[targetid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player already has a VIP subscription.");
- }
- PlayerInfo[targetid][pVIPPackage] = 1;
- PlayerInfo[targetid][pVIPTime] = gettime() + 3600;
- PlayerInfo[playerid][pVIPCooldown] = gettime() + 86400;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET vippackage = 1, viptime = 3600 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET vipcooldown = %i WHERE uid = %i", PlayerInfo[playerid][pVIPCooldown], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has given you a temporary one hour VIP package.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have given %s a temporary one hour VIP package.", GetPlayerRPName(targetid));
- Log_Write("log_vip", "%s VIP %s (uid: %i) has given %s (uid: %i) a temporary one hour package.", GetVIPRank(PlayerInfo[playerid][pVIPPackage]), GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- return 1;
- }
- CMD:vipinfo(playerid, params[])
- {
- new time = PlayerInfo[playerid][pVIPTime] - gettime(), cooldown[24] = "{33CC33}No cooldown", string[32];
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- SendClientMessage(playerid, COLOR_LIGHTORANGE, "|____ My Package ____|");
- if(1 <= time <= 3599)
- {
- format(string, sizeof(string), "{AA3333}%i minutes", time / 60);
- }
- else if(3600 <= time <= 86399)
- {
- format(string, sizeof(string), "{FF6347}%i hours", time / 3600);
- }
- else
- {
- if(time / 86400 <= 7)
- {
- format(string, sizeof(string), "{FFD700}%i days", time / 86400);
- }
- else
- {
- format(string, sizeof(string), "{33CC33}%i days", time / 86400);
- }
- }
- if(PlayerInfo[playerid][pVIPCooldown] > gettime())
- {
- time = PlayerInfo[playerid][pVIPCooldown] - gettime();
- if(time > 3600) {
- format(cooldown, sizeof(cooldown), "{F7A763}%i hours", time / 3600);
- } else {
- format(cooldown, sizeof(cooldown), "{F7A763}%i minutes", time / 60);
- }
- }
- SendClientMessageEx(playerid, COLOR_GREY3, "Package: {A028AD}%s VIP", GetVIPRank(PlayerInfo[playerid][pVIPPackage]));
- SendClientMessageEx(playerid, COLOR_GREY3, "Expires In: %s", string);
- SendClientMessageEx(playerid, COLOR_GREY3, "Next Invite: %s", cooldown);
- return 1;
- }
- CMD:vipnumber(playerid, params[])
- {
- new number;
- if(!PlayerInfo[playerid][pVIPPackage])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a VIP subscription.");
- }
- if(sscanf(params, "i", number))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vipnumber [phone number]");
- SendClientMessage(playerid, COLOR_GREY3, "This command costs $10,000 and changes your phone number to your chosen one.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] < 10000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least $10,000 for pay for this.");
- }
- if(number == 0 || number == 911 || number == 6397 || number == 6324 || number == 8294)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid number.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE phone = %i", number);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerBuyPhoneNumber", "ii", playerid, number);
- return 1;
- }
- CMD:setfare(playerid, params[])
- {
- new amount;
- if(!PlayerHasJob(playerid, JOB_TAXIDRIVER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Taxi Driver.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setfare [amount]");
- }
- if(!(0 <= amount <= 500))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The fare must range between $0 and $500.");
- }
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 420 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 438)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in a taxi type vehicle.");
- }
- if(amount == 0)
- {
- if(PlayerInfo[playerid][pTaxiFare] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The fare is already set to zero.");
- }
- PlayerInfo[playerid][pTaxiFare] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "** You have set the fare to $0 and went off duty.");
- }
- else
- {
- if(PlayerInfo[playerid][pTaxiFare] == amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The fare is already set to this amount.");
- }
- PlayerInfo[playerid][pTaxiFare] = amount;
- SendClientMessageToAllEx(COLOR_YELLOW, "** Taxi driver %s is now on duty, fare: $%i. /call 8294 for a ride.", GetPlayerRPName(playerid), amount);
- }
- return 1;
- }
- CMD:createfaction(playerid, params[])
- {
- new type[12], name[48], type_id = -1;
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pFactionMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[12]s[48]", type, name))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /createfaction [type] [name]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: Police, Medic, News, Government, Hitman, Federal");
- return 1;
- }
- if(!strcmp(type, "police", true)) {
- type_id = FACTION_POLICE;
- } else if(!strcmp(type, "medic", true)) {
- type_id = FACTION_MEDIC;
- } else if(!strcmp(type, "news", true)) {
- type_id = FACTION_NEWS;
- } else if(!strcmp(type, "government", true)) {
- type_id = FACTION_GOVERNMENT;
- } else if(!strcmp(type, "hitman", true)) {
- type_id = FACTION_HITMAN;
- } else if(!strcmp(type, "federal", true)) {
- type_id = FACTION_FEDERAL;
- }
- if(type_id == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- for(new i = 0; i < MAX_FACTIONS; i ++)
- {
- if(!FactionInfo[i][fType])
- {
- SetupFaction(i, name, type_id);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has created a {F7A763}%s{FF6347} faction named '%s'.", GetPlayerRPName(playerid), factionTypes[type_id], name);
- SendClientMessageEx(playerid, COLOR_WHITE, "** This faction's ID is %i. /editfaction to edit.", i);
- return 1;
- }
- }
- return 1;
- }
- CMD:editfaction(playerid, params[])
- {
- new factionid, option[12], param[48];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pFactionMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[12]S()[48]", factionid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Name, Type, Color, RankCount, RankName, Skin, Paycheck, Leader, Locker, TurfTokens");
- return 1;
- }
- if(!(0 <= factionid < MAX_FACTIONS) || FactionInfo[factionid][fType] == FACTION_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction.");
- }
- if(!strcmp(option, "name", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [name] [text]");
- }
- strcpy(FactionInfo[factionid][fName], param, 48);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET name = '%e' WHERE id = %i", param, factionid);
- mysql_tquery(connectionID, queryBuffer);
- ReloadFaction(factionid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the name of faction ID %i to '%s'.", GetPlayerRPName(playerid), factionid, param);
- }
- else if(!strcmp(option, "type", true))
- {
- new type_id;
- if(isnull(param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [type] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: Police, Medic, News, Government, Hitman, Federal");
- return 1;
- }
- if(!strcmp(param, "police", true)) {
- type_id = FACTION_POLICE;
- } else if(!strcmp(param, "medic", true)) {
- type_id = FACTION_MEDIC;
- } else if(!strcmp(param, "news", true)) {
- type_id = FACTION_NEWS;
- } else if(!strcmp(param, "government", true)) {
- type_id = FACTION_GOVERNMENT;
- } else if(!strcmp(param, "hitman", true)) {
- type_id = FACTION_HITMAN;
- } else if(!strcmp(param, "federal", true)) {
- type_id = FACTION_FEDERAL;
- }
- if(type_id == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- FactionInfo[factionid][fType] = type_id;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET type = %i WHERE id = %i", type_id, factionid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the type of faction ID %i to %s.", GetPlayerRPName(playerid), factionid, factionTypes[type_id]);
- }
- else if(!strcmp(option, "color", true))
- {
- new color;
- if(sscanf(param, "h", color))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [color] [0xRRGGBBAA]");
- }
- FactionInfo[factionid][fColor] = color & ~0xff;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET color = %i WHERE id = %i", FactionInfo[factionid][fColor], factionid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the {%06x}color{FF6347} of faction ID %i.", GetPlayerRPName(playerid), color >>> 8, factionid);
- }
- else if(!strcmp(option, "rankcount", true))
- {
- new ranks;
- if(sscanf(param, "i", ranks))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [rankcount] [amount]");
- }
- if(!(1 <= ranks <= MAX_FACTION_RANKS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "The amount of ranks must range from 1 to %i.", MAX_FACTION_RANKS);
- }
- FactionInfo[factionid][fRankCount] = ranks;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET rankcount = %i WHERE id = %i", ranks, factionid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the rank count of faction ID %i to %i.", GetPlayerRPName(playerid), factionid, ranks);
- }
- else if(!strcmp(option, "rankname", true))
- {
- new rankid, rank[32];
- if(sscanf(param, "is[32]", rankid, rank))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Rank Names _____|");
- for(new i = 0; i < FactionInfo[factionid][fRankCount]; i ++)
- {
- if(isnull(FactionRanks[factionid][i]))
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: (empty)", i);
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: %s", i, FactionRanks[factionid][i]);
- }
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [rankname] [slot (0-%i)] [name]", FactionInfo[factionid][fRankCount] - 1);
- }
- if(!(0 <= rankid < FactionInfo[factionid][fRankCount]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- strcpy(FactionRanks[factionid][rankid], rank, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO factionranks VALUES(%i, %i, '%e') ON DUPLICATE KEY UPDATE name = '%e'", factionid, rankid, rank, rank);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set rank %i's name of faction ID %i to '%s'.", GetPlayerRPName(playerid), rankid, factionid, rank);
- }
- else if(!strcmp(option, "skin", true))
- {
- new slot, skinid;
- if(sscanf(param, "ii", slot, skinid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Faction Skins _____|");
- for(new i = 0; i < MAX_FACTION_SKINS; i ++)
- {
- if(FactionInfo[factionid][fSkins][i] == 0)
- SendClientMessageEx(playerid, COLOR_GREY2, "Skin %i: (none)", i + 1);
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "Skin %i: %i", i + 1, FactionInfo[factionid][fSkins][i]);
- }
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [skin] [slot (1-%i)] [skinid]", MAX_FACTION_SKINS);
- }
- if(!(1 <= slot <= MAX_FACTION_SKINS))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- if(!(0 <= skinid <= 311))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin.");
- }
- slot--;
- FactionInfo[factionid][fSkins][slot] = skinid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO factionskins VALUES(%i, %i, %i) ON DUPLICATE KEY UPDATE skinid = %i", factionid, slot, skinid, skinid);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set the skin in slot %i to ID %i.", slot + 1, skinid);
- }
- else if(!strcmp(option, "paycheck", true))
- {
- new rankid, amount;
- if(FactionInfo[factionid][fType] == FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't set the paychecks for hitman factions.");
- }
- if(sscanf(param, "ii", rankid, amount))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Rank Paychecks _____|");
- for(new i = 0; i < FactionInfo[factionid][fRankCount]; i ++)
- {
- if(isnull(FactionRanks[factionid][i]))
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: (empty)", i);
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: %s ($%i)", i, FactionRanks[factionid][i], FactionInfo[factionid][fPaycheck][i]);
- }
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [paycheck] [slot (0-%i)] [amount]", FactionInfo[factionid][fRankCount] - 1);
- }
- if(!(0 <= rankid < FactionInfo[factionid][fRankCount]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- if(!(0 <= amount <= 100000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount must range from $0 to $100000.");
- }
- FactionInfo[factionid][fPaycheck][rankid] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO factionpay VALUES(%i, %i, %i) ON DUPLICATE KEY UPDATE amount = %i", factionid, rankid, amount, amount);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set rank %i's paycheck of faction ID %i to $%i.", GetPlayerRPName(playerid), rankid, factionid, amount);
- }
- else if(!strcmp(option, "leader", true))
- {
- new leader[MAX_PLAYER_NAME];
- if(sscanf(param, "s[24]", leader))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Usage]: /editfaction [factionid] [leader] [name]");
- SendClientMessage(playerid, COLOR_GREY, "This only updates the text for the leader's name in /factions. Use /setfaction to appoint someone as faction leader.");
- return 1;
- }
- strcpy(FactionInfo[factionid][fLeader], leader, MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET leader = '%e' WHERE id = %i", leader, factionid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the leader of faction ID %i to %s.", GetPlayerRPName(playerid), factionid, leader);
- }
- else if(!strcmp(option, "locker", true))
- {
- GetPlayerPos(playerid, FactionInfo[factionid][fLockerX], FactionInfo[factionid][fLockerY], FactionInfo[factionid][fLockerZ]);
- FactionInfo[factionid][fLockerInterior] = GetPlayerInterior(playerid);
- FactionInfo[factionid][fLockerWorld] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET lockerx = '%f', lockery = '%f', lockerz = '%f', lockerinterior = %i, lockerworld = %i WHERE id = %i", FactionInfo[factionid][fLockerX], FactionInfo[factionid][fLockerY], FactionInfo[factionid][fLockerZ], FactionInfo[factionid][fLockerInterior], FactionInfo[factionid][fLockerWorld], factionid);
- mysql_tquery(connectionID, queryBuffer);
- ReloadFaction(factionid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has adjusted the locker point of faction ID %i.", GetPlayerRPName(playerid), factionid);
- }
- else if(!strcmp(option, "turftokens", true))
- {
- new amount;
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editfaction [factionid] [turftokens] [amount]");
- }
- if(FactionInfo[factionid][fType] != FACTION_POLICE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can only set the turf tokens for police factions.");
- }
- FactionInfo[factionid][fTurfTokens] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET turftokens = %i WHERE id = %i", amount, factionid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the turf tokens of faction ID %i to %i.", GetPlayerRPName(playerid), factionid, amount);
- }
- return 1;
- }
- CMD:purgefaction(playerid, params[])
- {
- new factionid;
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pFactionMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", factionid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /purgefaction [factionid]");
- }
- if(!(0 <= factionid < MAX_FACTIONS) || FactionInfo[factionid][fType] == FACTION_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == factionid)
- {
- //ResetPlayerWeaponsEx(i);
- SendClientMessageEx(i, COLOR_LIGHTRED, "The faction you were apart of has been purged by an administrator.");
- //SetPlayerSkin(i, 230);
- PlayerInfo[i][pFaction] = -1;
- PlayerInfo[i][pFactionRank] = 0;
- PlayerInfo[i][pDivision] = -1;
- PlayerInfo[i][pDuty] = 0;
- }
- }
- strcpy(FactionInfo[factionid][fLeader], "No-one", MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE faction = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET leader = 'No-one' WHERE id = %i", factionid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has purged faction %s.", GetPlayerRPName(playerid), FactionInfo[factionid][fName]);
- return 1;
- }
- CMD:removefaction(playerid, params[])
- {
- new factionid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", factionid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removefaction [factionid]");
- }
- if(!(0 <= factionid < MAX_FACTIONS) || FactionInfo[factionid][fType] == FACTION_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has deleted faction %s.", GetPlayerRPName(playerid), FactionInfo[factionid][fName]);
- RemoveFaction(factionid);
- return 1;
- }
- CMD:setfaction(playerid, params[])
- {
- new targetid, factionid, rankid;
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pFactionMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uiI(-1)", targetid, factionid, rankid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setfaction [playerid] [factionid (-1 = none)] [rank (optional)]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!(-1 <= factionid < MAX_FACTIONS) || (factionid >= 0 && FactionInfo[factionid][fType] == FACTION_NONE))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction.");
- }
- if((factionid != -1 && !(-1 <= rankid < FactionInfo[factionid][fRankCount])))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- if(factionid == -1)
- {
- /*ResetPlayerWeaponsEx(targetid);
- SetPlayerSkin(targetid, 230);*/
- PlayerInfo[targetid][pFaction] = -1;
- PlayerInfo[targetid][pFactionRank] = 0;
- PlayerInfo[targetid][pDivision] = -1;
- PlayerInfo[targetid][pDuty] = 0;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed you from your faction.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has removed %s from their faction.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- else
- {
- if(rankid == -1)
- {
- rankid = FactionInfo[factionid][fRankCount] - 1;
- }
- /*if(rankid == FactionInfo[factionid][fRankCount] - 1)
- {
- GetPlayerName(targetid, FactionInfo[factionid][fLeader], MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET leader = '%e' WHERE id = %i", FactionInfo[factionid][fLeader], factionid);
- mysql_tquery(connectionID, queryBuffer);
- }*/
- PlayerInfo[targetid][pFaction] = factionid;
- PlayerInfo[targetid][pFactionRank] = rankid;
- PlayerInfo[targetid][pDivision] = -1;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has made you a {00AA00}%s{33CCFF} in %s.", GetPlayerRPName(playerid), FactionRanks[factionid][rankid], FactionInfo[factionid][fName]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a %s in %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), FactionRanks[factionid][rankid], FactionInfo[factionid][fName]);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = %i, factionrank = %i, division = %i WHERE uid = %i", factionid, rankid, PlayerInfo[playerid][pDivision], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:factions(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "____________________________________");
- for(new i = 0; i < MAX_FACTIONS; i ++)
- {
- if(FactionInfo[i][fType] != FACTION_NONE)
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM users WHERE faction = %i", i);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerListFactions", "ii", playerid, i);
- }
- }
- return 1;
- }
- CMD:channel(playerid, params[])
- {
- new channel;
- if(!PlayerInfo[playerid][pWalkieTalkie])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a walkie talkie.");
- }
- if(sscanf(params, "i", channel))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /channel [freq]");
- }
- if(!(0 <= channel <= 9999999))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The channel must range from 0 to 9999999.");
- }
- PlayerInfo[playerid][pChannel] = channel;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET channel = %i WHERE uid = %i", channel, PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- if(channel == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "** You have set the channel to 0 and disabled your walkie talkie.");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "** Channel set to %i, use /wt to broadcast over this channel.", channel);
- }
- return 1;
- }
- CMD:wt(playerid, params[])
- {
- if(!PlayerInfo[playerid][pWalkieTalkie])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a walkie talkie.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /wt [walkie talkie]");
- }
- if(!PlayerInfo[playerid][pChannel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your walkie talkie is not tuned into any channel. /channel to set one.");
- }
- if(PlayerInfo[playerid][pToggleWT])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in your walkie talkie as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWalkieTalkie] && PlayerInfo[i][pChannel] == PlayerInfo[playerid][pChannel] && !PlayerInfo[i][pToggleWT])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_WALKIETALKIE, "** [CH: %i] %s: %.*s... **", PlayerInfo[playerid][pChannel], GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_WALKIETALKIE, "** [CH: %i] %s: ...%s **", PlayerInfo[playerid][pChannel], GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_WALKIETALKIE, "** [CH: %i] %s: %s **", PlayerInfo[playerid][pChannel], GetPlayerRPName(playerid), params);
- }
- }
- }
- SetPlayerBubbleText(playerid, 20.0, COLOR_WHITE, "[WT]: %s", params);
- //SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s speaks into their walkie talkie.", GetPlayerRPName(playerid));
- return 1;
- }
- /*
- CMD:g(playerid, params[])
- {
- new string[64];
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /g [global chat]");
- }
- if(!enabledGlobal && PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The global channel is disabled at the moment.");
- }
- if(PlayerInfo[playerid][pGlobalMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are muted from speaking in this channel.");
- }
- if(PlayerInfo[playerid][pToggleGlobal])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the global chat as you have it toggled.");
- }
- if(gettime() - PlayerInfo[playerid][pLastGlobal] < 3)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only speak in this channel every 3 seconds. Please wait %i more seconds.", 3 - (gettime() - PlayerInfo[playerid][pLastGlobal]));
- }
- if(PlayerInfo[playerid][pAdmin] > 1) {
- format(string, sizeof(string), "%s", GetAdminRank(playerid));
- } else if(PlayerInfo[playerid][pHelper] > 0) {
- format(string, sizeof(string), "%s", GetHelperRank(playerid));
- } else if(PlayerInfo[playerid][pVIPPackage] > 0) {
- format(string, sizeof(string), "{A028AD}%s VIP{FFA500}", GetVIPRank(PlayerInfo[playerid][pVIPPackage]));
- } else if(PlayerInfo[playerid][pLevel] >= 2) {
- format(string, sizeof(string), "Level %i Player", PlayerInfo[playerid][pLevel]);
- } else {
- string = "Level 1 Newbie";
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleGlobal])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_GLOBAL, "(( %s %s: %.*s...))", string, GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_GLOBAL, "(( %s %s: ...%s ))", string, GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_GLOBAL, "(( %s %s: %s ))", string, GetPlayerRPName(playerid), params);
- }
- }
- }
-
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- PlayerInfo[playerid][pLastGlobal] = gettime();
- }
- return 1;
- }
- */
- CMD:fc(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /fc [faction chat]");
- }
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(PlayerInfo[playerid][pToggleFaction])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the faction chat as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && !PlayerInfo[i][pToggleFaction])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_AQUA, "(( %s %s: %.*s... ))", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_AQUA, "(( %s %s: ...%s ))", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_AQUA, "(( %s %s: %s ))", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- }
- }
- return 1;
- }
- CMD:div(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /div [division chat]");
- }
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(PlayerInfo[playerid][pDivision] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any divisions in your faction.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pDivision] == PlayerInfo[playerid][pDivision])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "** [%s] %s %s: %.*s... **", FactionDivisions[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pDivision]], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "** [%s] %s %s: ...%s **", FactionDivisions[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pDivision]], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "** [%s] %s %s: %s **", FactionDivisions[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pDivision]], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- }
- }
- return 1;
- }
- CMD:r(playerid, params[])
- {
- return cmd_radio(playerid, params);
- }
- CMD:radio(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(r)adio [faction radio]");
- }
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(PlayerInfo[playerid][pToggleRadio])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in your radio as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && !PlayerInfo[i][pToggleRadio])
- {
- new color = (FactionInfo[PlayerInfo[playerid][pFaction]][fType] == FACTION_MEDIC) ? (COLOR_DOCTOR) : (COLOR_ROYALBLUE);
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, color, "** %s %s: %.*s... **", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, color, "** %s %s: ...%s **", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, color, "** %s %s: %s **", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- }
- }
-
- SetPlayerBubbleText(playerid, 20.0, COLOR_WHITE, "[Radio]: %s", params);
- return 1;
- }
- CMD:d(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /d [department radio]");
- }
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(PlayerInfo[playerid][pToggleRadio])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in your radio as you have it toggled.");
- }
- switch(FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- case FACTION_POLICE, FACTION_MEDIC, FACTION_GOVERNMENT, FACTION_FEDERAL:
- {
- foreach(new i : Player)
- {
- if((!PlayerInfo[i][pToggleRadio]) && (GetFactionType(i) == FACTION_POLICE || GetFactionType(i) == FACTION_MEDIC || GetFactionType(i) == FACTION_GOVERNMENT || GetFactionType(i) == FACTION_FEDERAL))
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_YELLOW, "** [%s] %s %s: %.*s... **", FactionInfo[PlayerInfo[playerid][pFaction]][fName], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_YELLOW, "** [%s] %s %s: ...%s **", FactionInfo[PlayerInfo[playerid][pFaction]][fName], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_YELLOW, "** [%s] %s %s: %s **", FactionInfo[PlayerInfo[playerid][pFaction]][fName], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- }
- }
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Your faction is not authorized to speak in department radio.");
- }
- }
- SetPlayerBubbleText(playerid, 20.0, COLOR_WHITE, "[Radio]: %s", params);
- return 1;
- }
- CMD:faction(playerid, params[])
- {
- new targetid, option[14], param[32];
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(sscanf(params, "s[14]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /faction [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Invite, Kick, Rank, Roster, Online, Quit, Offlinekick , Respawncars.");
- return 1;
- }
- if(!strcmp(option, "invite", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /faction [invite] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pFaction] != -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already apart of a faction.");
- }
- /*if(PlayerInfo[targetid][pGang] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is apart of a gang and therefore can't join a faction.");
- }*/
- PlayerInfo[targetid][pFactionOffer] = playerid;
- PlayerInfo[targetid][pFactionOffered] = PlayerInfo[playerid][pFaction];
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has invited you to join {00AA00}%s{33CCFF} (/accept faction).", GetPlayerRPName(playerid), FactionInfo[PlayerInfo[playerid][pFaction]][fName]);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have invited %s to join your faction.", GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "kick", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /faction [kick] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pFaction] != PlayerInfo[playerid][pFaction])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your faction.");
- }
- if(PlayerInfo[targetid][pFactionRank] > PlayerInfo[playerid][pFactionRank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has a higher rank than you.");
- }
- Log_Write("log_faction", "%s (uid: %i) kicked %s (uid: %i) from %s (id: %i) as rank %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], FactionInfo[PlayerInfo[playerid][pFaction]][fName], PlayerInfo[playerid][pFaction], FactionRanks[PlayerInfo[targetid][pFaction]][PlayerInfo[targetid][pFactionRank]], PlayerInfo[targetid][pFactionRank]);
- ResetPlayerWeaponsEx(targetid);
- SetPlayerSkin(targetid, 230);
- PlayerInfo[targetid][pFaction] = -1;
- PlayerInfo[targetid][pFactionRank] = 0;
- PlayerInfo[targetid][pDivision] = -1;
- PlayerInfo[targetid][pDuty] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has kicked you from the faction.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have kicked %s from your faction.", GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "rank", true))
- {
- new rankid;
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "ui", targetid, rankid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /faction [rank] [playerid] [rankid (0-%i)]", PlayerInfo[playerid][pFactionRank]);
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(rankid < 0 || rankid > PlayerInfo[playerid][pFactionRank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The rank specified is either invalid or higher than your rank.");
- }
- if(PlayerInfo[targetid][pFaction] != PlayerInfo[playerid][pFaction])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your faction.");
- }
- if(PlayerInfo[targetid][pFactionRank] > PlayerInfo[playerid][pFactionRank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has a higher rank than you.");
- }
- PlayerInfo[targetid][pFactionRank] = rankid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET factionrank = %i WHERE uid = %i", rankid, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has set your rank to {00AA00}%s{33CCFF} (%i).", GetPlayerRPName(playerid), FactionRanks[PlayerInfo[playerid][pFaction]][rankid], rankid);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set %s's rank to {00AA00}%s{33CCFF} (%i).", GetPlayerRPName(targetid), FactionRanks[PlayerInfo[playerid][pFaction]][rankid], rankid);
- Log_Write("log_faction", "%s (uid: %i) has set %s's (uid: %i) rank in %s (id: %i) to %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], FactionInfo[PlayerInfo[playerid][pFaction]][fName], PlayerInfo[playerid][pFaction], FactionRanks[PlayerInfo[playerid][pFaction]][rankid], rankid);
- }
- else if(!strcmp(option, "roster", true))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, lastlogin, factionrank FROM users WHERE faction = %i ORDER BY factionrank DESC", PlayerInfo[playerid][pFaction]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_FACTION_ROSTER, playerid);
- }
- else if(!strcmp(option, "online", true))
- {
- cmd_fmembers(playerid, "\1");
- }
- else if(!strcmp(option, "quit", true))
- {
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /faction [quit] [confirm]");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "You have quit %s as a {00AA00}%s{33CCFF} (%i).", FactionInfo[PlayerInfo[playerid][pFaction]][fName], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], PlayerInfo[playerid][pFactionRank]);
- Log_Write("log_faction", "%s (uid: %i) has quit %s (id: %i) has rank %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], FactionInfo[PlayerInfo[playerid][pFaction]][fName], PlayerInfo[playerid][pFaction], FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], PlayerInfo[playerid][pFactionRank]);
- /*ResetPlayerWeaponsEx(playerid);
- SetPlayerSkin(playerid, 230);*/
- PlayerInfo[playerid][pFaction] = -1;
- PlayerInfo[playerid][pFactionRank] = 0;
- PlayerInfo[playerid][pDivision] = -1;
- PlayerInfo[playerid][pDuty] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET faction = -1, factionrank = 0, division = -1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "respawncars", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(!IsVehicleOccupied(i) && VehicleInfo[i][vFactionType] == FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- SetVehicleToRespawn(i);
- }
- }
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_FACTIONCHAT, "(( %s %s has respawned all unoccupied faction vehicles. ))", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has respawned their faction vehicles.", GetPlayerRPName(playerid), playerid);
- }
- else if(!strcmp(option, "offlinekick", true))
- {
- new username[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /faction [offlinekick] [username]");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use '/faction kick' instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid, faction, factionrank FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerOfflineKickFaction", "is", playerid, username);
- }
- return 1;
- }
- CMD:division(playerid, params[])
- {
- new targetid, divisionid, option[10], param[32];
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fType] == FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Hitman factions do not have access to the division system.");
- }
- if(sscanf(params, "s[10]S()[32]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /division [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Create, Remove, List, Assign, Kick");
- return 1;
- }
- if(!strcmp(option, "create", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /division [create] [name]");
- }
- for(new i = 0; i < MAX_FACTION_DIVISIONS; i ++)
- {
- if(isnull(FactionDivisions[PlayerInfo[playerid][pFaction]][i]))
- {
- strcpy(FactionDivisions[PlayerInfo[playerid][pFaction]][i], param, 32);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have created division {FFA763}%s{33CCFF}. The ID of this division is %i.", param, i);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO divisions VALUES(%i, %i, '%e')", PlayerInfo[playerid][pFaction], i, param);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- }
- SendClientMessageEx(playerid, COLOR_GREY, "Your faction can only have up to %i divisions.", MAX_FACTION_DIVISIONS);
- }
- else if(!strcmp(option, "remove", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "i", divisionid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /division [remove] [divisionid]");
- }
- if(!(0 <= divisionid < MAX_FACTION_DIVISIONS) || isnull(FactionDivisions[PlayerInfo[playerid][pFaction]][divisionid]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid division ID.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pFaction] == PlayerInfo[playerid][pFaction] && PlayerInfo[i][pDivision] == divisionid)
- {
- PlayerInfo[i][pDivision] = -1;
- SendClientMessage(i, COLOR_LIGHTRED, "The division you were apart of has been deleted by the faction owner.");
- }
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deleted division {F7A763}%s{33CCFF} (%i).", FactionDivisions[PlayerInfo[playerid][pFaction]][divisionid], divisionid);
- FactionDivisions[PlayerInfo[playerid][pFaction]][divisionid][0] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM divisions WHERE id = %i AND divisionid = %i", PlayerInfo[playerid][pFaction], divisionid);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET division = -1 WHERE faction = %i", PlayerInfo[playerid][pFaction]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "list", true))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|____ Divisions List ____|");
- for(new i = 0; i < MAX_FACTION_DIVISIONS; i ++)
- {
- if(isnull(FactionDivisions[PlayerInfo[playerid][pFaction]][i]))
- {
- SendClientMessageEx(playerid, COLOR_GREY1, "ID: %i | Name: Empty Slot", i);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY1, "ID: %i | Name: %s", i, FactionDivisions[PlayerInfo[playerid][pFaction]][i]);
- }
- }
- }
- else if(!strcmp(option, "assign", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "ui", targetid, divisionid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /division [assign] [playerid] [divisionid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pFaction] != PlayerInfo[playerid][pFaction])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your faction.");
- }
- if(!(0 <= divisionid < MAX_FACTION_DIVISIONS) || isnull(FactionDivisions[PlayerInfo[playerid][pFaction]][divisionid]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid division ID.");
- }
- if(PlayerInfo[targetid][pDivision] == divisionid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already apart of that division.");
- }
- if(PlayerInfo[targetid][pDivision] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already apart of another division.");
- }
- PlayerInfo[targetid][pDivision] = divisionid;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has assigned you to the {F7A763}%s{33CCFF} division.", GetPlayerRPName(playerid), FactionDivisions[PlayerInfo[playerid][pFaction]][divisionid]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have assigned %s to the {F7A763}%s{33CCFF} division.", GetPlayerRPName(targetid), FactionDivisions[PlayerInfo[playerid][pFaction]][divisionid]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET division = %i WHERE uid = %i", divisionid, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "kick", true))
- {
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /division [kick] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pFaction] != PlayerInfo[playerid][pFaction])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your faction.");
- }
- if(PlayerInfo[targetid][pDivision] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of any division.");
- }
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed you from the {F7A763}%s{33CCFF} division.", GetPlayerRPName(playerid), FactionDivisions[PlayerInfo[playerid][pFaction]][PlayerInfo[targetid][pDivision]]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have removed %s from the {F7A763}%s{33CCFF} division.", GetPlayerRPName(targetid), FactionDivisions[PlayerInfo[playerid][pFaction]][PlayerInfo[targetid][pDivision]]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET division = -1 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[targetid][pDivision] = -1;
- }
- return 1;
- }
- CMD:cell(playerid, params[])
- {
- for(new i = 0; i < sizeof(gPrisonCells); i ++)
- {
- if(IsPlayerInRangeOfDynamicObject(playerid, gPrisonCells[i], 2.0))
- {
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to open this cell.");
- }
- if(!Streamer_GetExtraInt(gPrisonCells[i], E_OBJECT_OPENED))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their key to open the cell door.", GetPlayerRPName(playerid));
- MoveDynamicObject(gPrisonCells[i], cellPositions[i][3], cellPositions[i][4], cellPositions[i][5], 2.0);
- Streamer_SetExtraInt(gPrisonCells[i], E_OBJECT_OPENED, 1);
- }
- else
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s uses their key to close the cell door.", GetPlayerRPName(playerid));
- MoveDynamicObject(gPrisonCells[i], cellPositions[i][0], cellPositions[i][1], cellPositions[i][2], 2.0);
- Streamer_SetExtraInt(gPrisonCells[i], E_OBJECT_OPENED, 0);
- }
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any prison cells.");
- return 1;
- }
- CMD:door(playerid, params[])
- {
- if(!DoorCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any door which you can open.");
- }
- return 1;
- }
- CMD:gate(playerid, params[])
- {
- if(!GateCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any gates which you can open.");
- }
- return 1;
- }
- CMD:locker(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, FactionInfo[PlayerInfo[playerid][pFaction]][fLockerX], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerY], FactionInfo[PlayerInfo[playerid][pFaction]][fLockerZ]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of your faction locker.");
- }
- switch(FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- case FACTION_POLICE, FACTION_MEDIC, FACTION_FEDERAL:
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONLOCKER, DIALOG_STYLE_LIST, "Locker", "Toggle duty\nEquipment\nUniforms", "Select", "Cancel");
- }
- case FACTION_GOVERNMENT, FACTION_NEWS:
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONLOCKER, DIALOG_STYLE_LIST, "Locker", "Equipment\nUniforms", "Select", "Cancel");
- }
- case FACTION_HITMAN:
- {
- ShowPlayerDialog(playerid, DIALOG_FACTIONLOCKER, DIALOG_STYLE_LIST, "Locker", "Order weapons\nChange clothes", "Select", "Cancel");
- }
- }
- return 1;
- }
- CMD:showbadge(playerid, params[])
- {
- new targetid, factionid, rankid;
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(GetFactionType(playerid) == FACTION_HITMAN)
- {
- if(sscanf(params, "uii", targetid, factionid, rankid))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /showbadge [playerid] [factionid] [rankid]");
- SendClientMessage(playerid, COLOR_GREY3, "Use /factions for a list of factions to use with factionid parameter.");
- return 1;
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(!(0 <= factionid < MAX_FACTIONS) || FactionInfo[factionid][fType] == FACTION_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction.");
- }
- if(!(0 <= rankid < FactionInfo[factionid][fRankCount]))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Invalid rank. Valid ranks for this faction range from 0 to %i.", FactionInfo[factionid][fRankCount] - 1);
- }
- if(FactionInfo[factionid][fType] == FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this faction for your fake badge.");
- }
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s is rank %s (%i) in %s. **", GetPlayerRPName(playerid), FactionRanks[factionid][rankid], rankid, FactionInfo[factionid][fName]);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s shows their badge to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- else
- {
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /showbadge [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- SendClientMessageEx(targetid, COLOR_WHITE, "** %s is rank %s (%i) in %s. **", GetPlayerRPName(playerid), FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], PlayerInfo[playerid][pFactionRank], FactionInfo[PlayerInfo[playerid][pFaction]][fName]);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s shows their badge to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- return 1;
- }
- CMD:m(playerid, params[])
- {
- return cmd_megaphone(playerid, params);
- }
- CMD:megaphone(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fType] == FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your faction is not authorized to use the megaphone.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /(m)egaphone [text]");
- }
- SendProximityMessage(playerid, 50.0, COLOR_YELLOW, "[%s %s:o< %s]", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- return 1;
- }
- CMD:tazer(playerid, params[])
- {
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(!PlayerInfo[playerid][pTazer])
- {
- PlayerInfo[playerid][pTazer] = 1;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s reaches for their tazer.", GetPlayerRPName(playerid));
-
- GivePlayerWeaponEx(playerid, 23, true);
- SetPlayerArmedWeapon(playerid, 23);
- }
- else
- {
- PlayerInfo[playerid][pTazer] = 0;
- SetPlayerWeapons(playerid);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s puts their tazer back in their duty belt.", GetPlayerRPName(playerid));
-
- if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- SetPlayerArmedWeapon(playerid, PlayerInfo[playerid][pWeapons][2]);
- }
- }
- return 1;
- }
- CMD:cuff(playerid, params[])
- {
- new targetid;
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /cuff [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't cuff yourself.");
- }
- if(PlayerInfo[targetid][pCuffed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already handcuffed.");
- }
- if(PlayerInfo[targetid][pTazedTime] == 0 && GetPlayerSpecialAction(targetid) != SPECIAL_ACTION_DUCK && GetPlayerAnimationIndex(playerid) != 1437)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player must either be tazed, crouched, or hands up.");
- }
- if(PlayerInfo[targetid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't handcuff an injured player.");
- }
- if(PlayerInfo[targetid][pCallLine] != INVALID_PLAYER_ID)
- {
- HangupCall(PlayerInfo[targetid][pCallLine], HANGUP_DROPPED);
- }
- PlayerInfo[targetid][pCuffed] = 1;
- SetPlayerSpecialAction(targetid, SPECIAL_ACTION_CUFFED);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s tightens a pair of handcuffs around %s's wrists.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- GameTextForPlayer(targetid, "~r~Cuffed", 3000, 3);
- return 1;
- }
- CMD:uncuff(playerid, params[])
- {
- new targetid;
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_GOVERNMENT && PlayerInfo[playerid][pAdminDuty] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /uncuff [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid && PlayerInfo[playerid][pAdminDuty] == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't uncuff yourself.");
- }
- if(!PlayerInfo[targetid][pCuffed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not handcuffed.");
- }
- PlayerInfo[targetid][pCuffed] = 0;
- PlayerInfo[targetid][pDraggedBy] = INVALID_PLAYER_ID;
- SetPlayerSpecialAction(targetid, SPECIAL_ACTION_NONE);
- TogglePlayerControllable(targetid, 1);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s loosens the pair of handcuffs from around %s's wrists.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- GameTextForPlayer(targetid, "~g~Uncuffed", 3000, 3);
- return 1;
- }
- CMD:drag(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /drag [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't drag yourself.");
- }
- if(!PlayerInfo[targetid][pCuffed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not handcuffed.");
- }
- if(PlayerInfo[targetid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't drag an injured player.");
- }
- if(PlayerInfo[targetid][pDraggedBy] == INVALID_PLAYER_ID)
- {
- PlayerInfo[targetid][pDraggedBy] = playerid;
- TogglePlayerControllable(targetid, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s grabs onto %s and begins to drag them.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- else
- {
- PlayerInfo[targetid][pDraggedBy] = INVALID_PLAYER_ID;
- TogglePlayerControllable(targetid, 1);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s stops dragging %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- return 1;
- }
- CMD:detain(playerid, params[])
- {
- new targetid, vehicleid = GetPlayerVehicleID(playerid);
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /detain [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 15.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't detain yourself.");
- }
- if(!PlayerInfo[targetid][pCuffed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not handcuffed.");
- }
- if(IsPlayerInAnyVehicle(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already in a vehicle.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any vehicle.");
- }
- for(new i = (GetVehicleSeatCount(vehicleid) == 4) ? 2 : 1; i < GetVehicleSeatCount(vehicleid); i ++)
- {
- if(!IsSeatOccupied(vehicleid, i))
- {
- PlayerInfo[targetid][pDraggedBy] = INVALID_PLAYER_ID;
- PlayerInfo[targetid][pVehicleCount] = 0;
- TogglePlayerControllable(targetid, 0);
- PutPlayerInVehicle(targetid, vehicleid, i);
- SetPlayerSpecialAction(targetid, SPECIAL_ACTION_NONE);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws %s into their vehicle.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "There are no unoccupied back seats left. Find another vehicle.");
- return 1;
- }
- CMD:charge(playerid, params[])
- {
- new targetid, reason[128];
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "us[128]", targetid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /charge [playerid] [reason]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't charge yourself.");
- }
- if(PlayerInfo[targetid][pWantedLevel] >= 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player is already at the maximum wanted level (6).");
- }
- PlayerInfo[targetid][pWantedLevel]++;
- PlayerInfo[targetid][pCrimes]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = %i, crimes = %i WHERE uid = %i", PlayerInfo[targetid][pWantedLevel], PlayerInfo[targetid][pCrimes], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO charges VALUES(null, %i, '%s', NOW(), '%e')", PlayerInfo[targetid][pID], GetPlayerNameEx(playerid), reason);
- mysql_tquery(connectionID, queryBuffer);
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s has charged %s with {FF6347}%s{9999FF}. **", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), GetPlayerRPName(targetid), reason);
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "** Officer %s has charged you with %s.", GetPlayerRPName(playerid), reason);
- Log_Write("log_faction", "%s (uid: %i) has charged %s (uid: %i) with %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], reason);
- return 1;
- }
- CMD:arrest(playerid, params[])
- {
- new targetid, minutes, fine;
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /arrest [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't arrest yourself.");
- }
- if(!PlayerInfo[targetid][pCuffed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not handcuffed.");
- }
- if(!PlayerInfo[targetid][pWantedLevel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't arrest a player with no active charges. /charge to add them.");
- }
- for(new i = 0; i < sizeof(arrestPoints); i ++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, arrestPoints[i][0], arrestPoints[i][1], arrestPoints[i][2]))
- {
- minutes = PlayerInfo[targetid][pWantedLevel] * 15;
- fine = PlayerInfo[targetid][pWantedLevel] * 1000;
- if(PlayerInfo[targetid][pVIPPackage] == 1)
- {
- SendClientMessageEx(targetid, COLOR_VIP, "** VIP perk: Your %i minutes of jail time has been reduced by 50 percent to %i minutes.", minutes, percent(minutes, 50));
- minutes = percent(minutes, 50);
- }
- else if(PlayerInfo[targetid][pVIPPackage] >= 2)
- {
- SendClientMessageEx(targetid, COLOR_VIP, "** VIP perk: Your %i minutes of jail time has been reduced by 75 percent to %i minutes.", minutes, percent(minutes, 75));
- minutes = percent(minutes, 25);
- }
- PlayerInfo[targetid][pJailType] = 3;
- PlayerInfo[targetid][pJailTime] = minutes * 60;
- PlayerInfo[targetid][pWantedLevel] = 0;
- PlayerInfo[targetid][pArrested]++;
- ResetPlayerWeaponsEx(targetid);
- ResetPlayer(targetid);
- SetPlayerInJail(targetid);
- GivePlayerCash(targetid, -fine);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = 0, arrested = %i WHERE uid = %i", PlayerInfo[targetid][pArrested], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM charges WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageToAllEx(COLOR_LIGHTRED, "<< %s %s has completed their arrest. %s has been sent to jail for %i days. >>", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), GetPlayerRPName(targetid), minutes);
- //SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s has arrested %s for %i minutes, fine: $%i.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), GetPlayerRPName(targetid), minutes, fine);
- SendClientMessageEx(targetid, COLOR_AQUA, "** You've been arrested for %i minutes, fine: $%i.", minutes, fine);
- Log_Write("log_faction", "%s (uid: %i) has arrested %s (uid: %i) for %i minutes, fine: $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], minutes, fine);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any arrest points.");
- return 1;
- }
- CMD:wanted(playerid, params[])
- {
- if(!IsLawEnforcement(playerid) && !PlayerHasJob(playerid, JOB_LAWYER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement or a lawyer.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|____ Wanted Players ____|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWantedLevel] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s - Wanted Level: %i", i, GetPlayerRPName(i), PlayerInfo[i][pWantedLevel]);
- }
- }
- return 1;
- }
- CMD:find(playerid, params[])
- {
- new targetid;
- if(!PlayerHasJob(playerid, JOB_DETECTIVE))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Detective.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /find [playerid]");
- }
- if(PlayerInfo[playerid][pDetectiveCooldown] > 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to wait %i more seconds to use this command again.", PlayerInfo[playerid][pDetectiveCooldown]);
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(GetPlayerInterior(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player is an interior. You can't find them at the moment.");
- }
- if(PlayerInfo[targetid][pAdminDuty])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on an on duty administrator.");
- }
- switch(GetJobLevel(playerid, JOB_DETECTIVE))
- {
- case 1:
- {
- PlayerInfo[playerid][pFindTime] = 6;
- PlayerInfo[playerid][pDetectiveCooldown] = 120;
- }
- case 2:
- {
- PlayerInfo[playerid][pFindTime] = 8;
- PlayerInfo[playerid][pDetectiveCooldown] = 90;
- }
- case 3:
- {
- PlayerInfo[playerid][pFindTime] = 10;
- PlayerInfo[playerid][pDetectiveCooldown] = 60;
- }
- case 4:
- {
- PlayerInfo[playerid][pFindTime] = 12;
- PlayerInfo[playerid][pDetectiveCooldown] = 30;
- }
- case 5:
- {
- PlayerInfo[playerid][pFindTime] = 14;
- PlayerInfo[playerid][pDetectiveCooldown] = 15;
- }
- }
- SetPlayerMarkerForPlayer(playerid, targetid, 0xFF0000FF);
- SendClientMessageEx(playerid, COLOR_WHITE, "** %s's location marked on your radar. %i seconds remain until the marker disappears.", GetPlayerRPName(targetid), PlayerInfo[playerid][pFindTime]);
- IncreaseJobSkill(playerid, JOB_DETECTIVE);
- PlayerInfo[playerid][pFindPlayer] = targetid;
- return 1;
- }
- CMD:frisk(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /frisk [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(PlayerHasJob(playerid, JOB_BODYGUARD) || IsLawEnforcement(playerid))
- {
- FriskPlayer(playerid, targetid);
- }
- else
- {
- PlayerInfo[targetid][pFriskOffer] = playerid;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s is attempting to frisk you for illegal items. (/accept frisk)", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have sent a frisk offer to %s.", GetPlayerRPName(targetid));
- }
- return 1;
- }
- CMD:take(playerid, params[])
- {
- new targetid, option[14];
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "us[14]", targetid, option))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /take [playerid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Weapons, Weed, Cocaine, Meth, Painkillers, CarLicense");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(!strcmp(option, "weapons", true))
- {
- ResetPlayerWeaponsEx(targetid);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's weapons.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your weapons.", GetPlayerRPName(playerid));
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) weapons.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(!PlayerInfo[targetid][pWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no weed on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's weed.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i grams of weed.", GetPlayerRPName(playerid), PlayerInfo[targetid][pWeed]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i grams of weed.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pWeed]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[targetid][pWeed] = 0;
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(!PlayerInfo[targetid][pCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no cocaine on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's cocaine.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i grams of cocaine.", GetPlayerRPName(playerid), PlayerInfo[targetid][pWeed]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i grams of cocaine.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pCocaine]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[targetid][pCocaine] = 0;
- }
- else if(!strcmp(option, "meth", true))
- {
- if(!PlayerInfo[targetid][pMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no meth on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's meth.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i grams of meth.", GetPlayerRPName(playerid), PlayerInfo[targetid][pWeed]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i grams of meth.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pMeth]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[targetid][pMeth] = 0;
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(!PlayerInfo[targetid][pPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no painkillers on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's painkillers.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i painkillers.", GetPlayerRPName(playerid), PlayerInfo[targetid][pWeed]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i painkillers.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pPainkillers]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[targetid][pPainkillers] = 0;
- }
- else if(!strcmp(option, "carlicense", true))
- {
- if(!PlayerInfo[targetid][pCarLicense])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no driving license on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's drivers license.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your drivers license.", GetPlayerRPName(playerid));
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) drivers license.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET carlicense = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- PlayerInfo[targetid][pCarLicense] = 0;
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(!PlayerInfo[targetid][pHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no hollow point ammo on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's hollow point ammo.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i rounds of hollow point ammo.", GetPlayerRPName(playerid), PlayerInfo[targetid][pHPAmmo]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i hollow point ammunition.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pHPAmmo]);
- SetWeaponAmmo(targetid, AMMO_HP, 0);
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(!PlayerInfo[targetid][pPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no poison tip ammo on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's poison tip ammo.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i rounds of poison tip ammo.", GetPlayerRPName(playerid), PlayerInfo[targetid][pPoisonAmmo]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i poison tip ammunition.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pPoisonAmmo]);
- SetWeaponAmmo(targetid, AMMO_POISON, 0);
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(!PlayerInfo[targetid][pFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no FMJ ammo on them.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes away %s's full metal jacket ammo.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has taken your %i rounds of full metal jacket ammo.", GetPlayerRPName(playerid), PlayerInfo[targetid][pFMJAmmo]);
- Log_Write("log_faction", "%s (uid: %i) has taken %s's (uid: %i) %i FMJ ammunition.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pFMJAmmo]);
- SetWeaponAmmo(targetid, AMMO_FMJ, 0);
- }
- return 1;
- }
- CMD:ticket(playerid, params[])
- {
- new targetid, amount, reason[128];
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "uis[128]", targetid, amount, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /ticket [playerid] [amount] [reason]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't ticket yourself.");
- }
- if(!(1000 <= amount <= 10000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The ticket amount must range between $1000 and $10000.");
- }
- PlayerInfo[targetid][pTicketOffer] = playerid;
- PlayerInfo[targetid][pTicketPrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s writes you a $%i ticket for %s. (/accept ticket)", GetPlayerRPName(playerid), amount, reason);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered a $%i ticket to %s for %s.", amount, GetPlayerRPName(targetid), reason);
- return 1;
- }
- CMD:gov(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any faction at the moment.");
- }
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gov [text]");
- }
- switch(FactionInfo[PlayerInfo[playerid][pFaction]][fType])
- {
- case FACTION_MEDIC:
- {
- SendClientMessageToAll(COLOR_GREY1, "|___________ Public Service Announcement ___________|");
- SendClientMessageToAllEx(COLOR_DOCTOR, "** %s %s: %s", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- case FACTION_POLICE:
- {
- SendClientMessageToAll(COLOR_GREY1, "|___________ Public Service Announcement ___________|");
- SendClientMessageToAllEx(COLOR_BLUE, "** %s %s: %s", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- case FACTION_GOVERNMENT:
- {
- SendClientMessageToAll(COLOR_GREY1, "|___________ Government News Announcement ___________|");
- SendClientMessageToAllEx(COLOR_YELLOW2, "** %s %s: %s", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- case FACTION_FEDERAL:
- {
- SendClientMessageToAll(COLOR_GREY1, "|___________ Public Service Announcement ___________|");
- SendClientMessageToAllEx(COLOR_ROYALBLUE, "** %s %s: %s", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), params);
- }
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Your faction is not authorized to use this command.");
- }
- }
- return 1;
- }
- CMD:ram(playerid, params[])
- {
- new id;
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if((id = GetNearbyHouse(playerid)) >= 0)
- {
- if(!HouseInfo[id][hLocked])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This house is unlocked. You don't need to ram the door.");
- }
- HouseInfo[id][hLocked] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE houses SET locked = 0 WHERE id = %i", HouseInfo[id][hID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s rams down %s's house door.", GetPlayerRPName(playerid), HouseInfo[id][hOwner]);
- }
- else if((id = GetNearbyBusiness(playerid)) >= 0)
- {
- if(!BusinessInfo[id][bLocked])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This business is unlocked. You don't need to ram the door.");
- }
- BusinessInfo[id][bLocked] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE businesses SET locked = 0 WHERE id = %i", BusinessInfo[id][bID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s rams down %s's business door.", GetPlayerRPName(playerid), BusinessInfo[id][bOwner]);
- }
- else if((id = GetNearbyGarage(playerid)) >= 0)
- {
- if(!GarageInfo[id][gLocked])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This garage is unlocked. You don't need to ram the door.");
- }
- GarageInfo[id][gLocked] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE garages SET locked = 0 WHERE id = %i", GarageInfo[id][gID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s rams down %s's garage door.", GetPlayerRPName(playerid), GarageInfo[id][gOwner]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any door which can be rammed.");
- }
- return 1;
- }
- CMD:deploy(playerid, params[])
- {
- new type[12], type_id = -1, Float:x, Float:y, Float:z, Float:a;
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- if(sscanf(params, "s[12]", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /deploy [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Spikestrip, Cone, Roadblock, Barrel, Flare");
- return 1;
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't deploy objects inside.");
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- if(!strcmp(type, "spikestrip", true)) {
- type_id = DEPLOY_SPIKESTRIP;
- } else if(!strcmp(type, "cone", true)) {
- type_id = DEPLOY_CONE;
- } else if(!strcmp(type, "roadblock", true)) {
- type_id = DEPLOY_ROADBLOCK;
- } else if(!strcmp(type, "barrel", true)) {
- type_id = DEPLOY_BARREL;
- } else if(!strcmp(type, "flare", true)) {
- type_id = DEPLOY_FLARE;
- }
- if(type_id == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- if(DeployObject(type_id, x, y, z, a) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The deployable objects pool is full. Try deleting some first.");
- }
- if(IsLawEnforcement(playerid))
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s has deployed a %s in %s.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), deployableItems[type_id], GetZoneName(x, y, z));
- else
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_DOCTOR, "** HQ: %s %s has deployed a %s in %s.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), deployableItems[type_id], GetZoneName(x, y, z));
- return 1;
- }
- CMD:undeploy(playerid, params[])
- {
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- for(new i = 0; i < MAX_DEPLOYABLES; i ++)
- {
- if(DeployInfo[i][dExists])
- {
- new Float:range;
- if(DeployInfo[i][dType] == DEPLOY_SPIKESTRIP || DeployInfo[i][dType] == DEPLOY_BARREL || DeployInfo[i][dType] == DEPLOY_FLARE || DeployInfo[i][dType] == DEPLOY_CONE) {
- range = 2.0;
- } else if(DeployInfo[i][dType] == DEPLOY_ROADBLOCK) {
- range = 5.0;
- }
- if(IsPlayerInRangeOfPoint(playerid, range, DeployInfo[i][dPosX], DeployInfo[i][dPosY], DeployInfo[i][dPosZ]))
- {
- SendFactionMessage(PlayerInfo[playerid][pFaction], (IsLawEnforcement(playerid)) ? (COLOR_ROYALBLUE) : (COLOR_DOCTOR), "** HQ: %s %s has removed a %s in %s.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), deployableItems[DeployInfo[i][dType]], GetZoneName(DeployInfo[i][dPosX], DeployInfo[i][dPosY], DeployInfo[i][dPosZ]));
- DestroyDynamicObject(DeployInfo[i][dObject]);
- DeployInfo[i][dExists] = 0;
- DeployInfo[i][dType] = -1;
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any deployed objects.");
- return 1;
- }
- CMD:bk(playerid, params[])
- {
- return cmd_backup(playerid, params);
- }
- CMD:gbackup(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any gang at the moment.");
- }
- if(PlayerInfo[playerid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot call for backup when you are dead.");
- }
- if(PlayerInfo[playerid][pCuffed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot use this command while cuffed.");
- }
- if(!PlayerInfo[playerid][pBackup])
- {
- PlayerInfo[playerid][pBackup] = 1;
- }
- else
- {
- PlayerInfo[playerid][pBackup] = 0;
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang])
- {
- if(PlayerInfo[playerid][pBackup])
- {
- SendClientMessageEx(i, COLOR_AQUA, "* %s %s is requesting backup in %s (marked on map). *", GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], GetPlayerRPName(playerid), GetPlayerZoneName(playerid));
- SetPlayerMarkerForPlayer(i, playerid, (GangInfo[PlayerInfo[playerid][pGang]][gColor] & ~0xff) + 0xFF);
- }
- else
- {
- SendClientMessageEx(i, COLOR_AQUA, "* %s %s has cancelled their backup request. *", GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], GetPlayerRPName(playerid), GetPlayerZoneName(playerid));
- SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid));
- }
- }
- }
- return 1;
- }
- CMD:backup(playerid, params[])
- {
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC && GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- if(!PlayerInfo[playerid][pBackup])
- {
- PlayerInfo[playerid][pBackup] = 1;
-
- if(GetFactionType(playerid) != FACTION_MEDIC)
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s is requesting backup in %s (marked on map).", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), GetPlayerZoneName(playerid));
- else
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_DOCTOR, "** HQ: %s %s is requesting backup in %s (marked on map).", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), GetPlayerZoneName(playerid));
- }
- else
- {
- PlayerInfo[playerid][pBackup] = 0;
-
- if(GetFactionType(playerid) != FACTION_MEDIC)
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s has cancelled their backup request.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid));
- else
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_DOCTOR, "** HQ: %s %s has cancelled their backup request.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid));
- }
- foreach(new i : Player)
- {
- switch(GetFactionType(i))
- {
- case FACTION_POLICE, FACTION_MEDIC, FACTION_FEDERAL, FACTION_GOVERNMENT:
- {
- if(PlayerInfo[playerid][pBackup])
- SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
- else
- SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid));
- }
- }
- }
- return 1;
- }
- CMD:mdc(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in any vehicles at the moment.");
- }
- ShowPlayerDialog(playerid, DIALOG_MDC, DIALOG_STYLE_LIST, "Mobile Data Computer", "Wanted suspects\nPlayer lookup\nVehicle lookup", "Select", "Cancel");
- return 1;
- }
- CMD:clearwanted(playerid, params[])
- {
- new targetid;
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /clearwanted [playerid]");
- }
- if((!IsPlayerInRangeOfPoint(playerid, 50.0, 1229.3544, -1311.8627, 796.7859)) && !(596 <= GetVehicleModel(GetPlayerVehicleID(playerid)) <= 599))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside a police car or the police station.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't clear yourself.");
- }
- if(!PlayerInfo[targetid][pWantedLevel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has no active charges to clear.");
- }
- PlayerInfo[targetid][pWantedLevel] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM charges WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET wantedlevel = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_WHITE, "** Your crimes were cleared by %s.", GetPlayerRPName(playerid));
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_ROYALBLUE, "** HQ: %s %s has cleared %s's charges and wanted level.", FactionRanks[PlayerInfo[playerid][pFaction]][PlayerInfo[playerid][pFactionRank]], GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:vticket(playerid, params[])
- {
- new amount, vehicleid;
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vticket [amount]");
- }
- if((vehicleid = GetNearbyVehicle(playerid)) == INVALID_VEHICLE_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any vehicle.");
- }
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle isn't owned by any particular person.");
- }
- if(!(1000 <= amount <= 5000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount must range from $1000 to $5000.");
- }
- if(VehicleInfo[vehicleid][vTickets] >= 50000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has over $50000 in tickets. You can't add anymore.");
- }
- VehicleInfo[vehicleid][vTickets] += amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET tickets = %i WHERE id = %i", VehicleInfo[vehicleid][vTickets], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s writes up a $%i ticket and attaches it to the %s.", GetPlayerRPName(playerid), amount, GetVehicleName(vehicleid));
- return 1;
- }
- CMD:siren(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), Float:x, Float:y, Float:z, Float:tmp;
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC && GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- /*if(!VehicleHasWindows(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle cannot have a siren attached to it.");
- }*/
- if(!IsValidDynamicObject(vehicleSiren[vehicleid]))
- {
- GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_SIZE, z, z, z);
- GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_FRONTSEAT, x, y, tmp);
- vehicleSiren[vehicleid] = CreateDynamicObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachDynamicObjectToVehicle(vehicleSiren[vehicleid], vehicleid, -x, y, z / 1.9, 0.0, 0.0, 0.0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s places a detachable siren on the roof of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- else
- {
- DestroyDynamicObject(vehicleSiren[vehicleid]);
- vehicleSiren[vehicleid] = INVALID_OBJECT_ID;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s detaches the siren from the roof of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- }
- return 1;
- }
- CMD:vfrisk(playerid, params[])
- {
- new vehicleid;
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if((vehicleid = GetNearbyVehicle(playerid)) == INVALID_VEHICLE_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any vehicle.");
- }
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle isn't owned by any particular person.");
- }
- new count;
- for(new i = 0; i < 3; i ++)
- {
- if(VehicleInfo[vehicleid][vWeapons][i])
- {
- count++;
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Trunk Balance _____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "Cash: $%i/$%i", VehicleInfo[vehicleid][vCash], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_CASH));
- SendClientMessageEx(playerid, COLOR_GREY2, "Materials: %i/%i | Weapons: %i/%i", VehicleInfo[vehicleid][vMaterials], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_MATERIALS), count, GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEAPONS));
- SendClientMessageEx(playerid, COLOR_GREY2, "Weed: %i/%i grams | Cocaine: %i/%i grams", VehicleInfo[vehicleid][vWeed], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_WEED), VehicleInfo[vehicleid][vCocaine], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_COCAINE));
- SendClientMessageEx(playerid, COLOR_GREY2, "Meth: %i/%i grams | Painkillers: %i/%i pills", VehicleInfo[vehicleid][vMeth], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_METH), VehicleInfo[vehicleid][vPainkillers], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_PAINKILLERS));
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Trunk Ammunition_____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "HP Ammo: %i/%i | Poison Ammo: %i/%i", VehicleInfo[vehicleid][vHPAmmo], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_HPAMMO), VehicleInfo[vehicleid][vPoisonAmmo], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_POISONAMMO));
- SendClientMessageEx(playerid, COLOR_GREY2, "FMJ Ammo: %i/%i", VehicleInfo[vehicleid][vFMJAmmo], GetVehicleStashCapacity(vehicleid, STASH_CAPACITY_FMJAMMO));
- if(count > 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Trunk Weapons _____|");
- for(new i = 0; i < 3; i ++)
- {
- if(VehicleInfo[vehicleid][vWeapons][i])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "[%i] Weapon: %s", i + 1, GetWeaponNameEx(VehicleInfo[vehicleid][vWeapons][i]));
- }
- }
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s prys open the trunk of the %s and takes a look inside.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- return 1;
- }
- CMD:vtake(playerid, params[])
- {
- new vehicleid, option[14];
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- if(sscanf(params, "s[14]", option))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /vtake [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Weapons, Ammo, Weed, Cocaine, Meth, Painkillers");
- return 1;
- }
- if((vehicleid = GetNearbyVehicle(playerid)) == INVALID_VEHICLE_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any vehicle.");
- }
- if(!VehicleInfo[vehicleid][vOwnerID])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle isn't owned by any particular person.");
- }
- if(!strcmp(option, "weapons", true))
- {
- VehicleInfo[vehicleid][vWeapons][0] = 0;
- VehicleInfo[vehicleid][vWeapons][1] = 0;
- VehicleInfo[vehicleid][vWeapons][2] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET weapon_1 = 0, weapon_2 = 0, weapon_3 = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes the weapons from the trunk of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_AQUA, "You have taken the weapons from the trunk.");
- Log_Write("log_faction", "%s (uid: %i) has taken the weapons from %s's (uid: %i) %s trunk (id: %i).", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vOwnerID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(option, "ammo", true))
- {
- VehicleInfo[vehicleid][vHPAmmo] = 0;
- VehicleInfo[vehicleid][vPoisonAmmo] = 0;
- VehicleInfo[vehicleid][vFMJAmmo] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET hpammo = 0, poisonammo = 0, fmjammo = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes the ammunition from the trunk of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessage(playerid, COLOR_AQUA, "You have taken the ammunition from the trunk.");
- Log_Write("log_faction", "%s (uid: %i) has taken the ammunition from %s's (uid: %i) %s trunk (id: %i).", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vOwnerID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- }
- else if(!strcmp(option, "weed", true))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes the weed from the trunk of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have taken the %i grams of weed from the trunk.", VehicleInfo[vehicleid][vWeed]);
- Log_Write("log_faction", "%s (uid: %i) has taken the %i grams of weed from %s's (uid: %i) %s trunk (id: %i).", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], VehicleInfo[vehicleid][vWeed], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vOwnerID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET weed = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- VehicleInfo[vehicleid][vWeed] = 0;
- }
- else if(!strcmp(option, "cocaine", true))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes the cocaine from the trunk of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have taken the %i grams of cocaine from the trunk.", VehicleInfo[vehicleid][vCocaine]);
- Log_Write("log_faction", "%s (uid: %i) has taken the %i grams of cocaine from %s's (uid: %i) %s trunk (id: %i).", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], VehicleInfo[vehicleid][vCocaine], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vOwnerID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET cocaine = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- VehicleInfo[vehicleid][vCocaine] = 0;
- }
- else if(!strcmp(option, "meth", true))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes the meth from the trunk of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have taken the %i grams of meth from the trunk.", VehicleInfo[vehicleid][vMeth]);
- Log_Write("log_faction", "%s (uid: %i) has taken the %i grams of meth from %s's (uid: %i) %s trunk (id: %i).", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], VehicleInfo[vehicleid][vMeth], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vOwnerID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET meth = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- VehicleInfo[vehicleid][vMeth] = 0;
- }
- else if(!strcmp(option, "painkillers", true))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes the painkillers from the trunk of the %s.", GetPlayerRPName(playerid), GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have taken the %i painkillers from the trunk.", VehicleInfo[vehicleid][vPainkillers]);
- Log_Write("log_faction", "%s (uid: %i) has taken the %i painkillers from %s's (uid: %i) %s trunk (id: %i).", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], VehicleInfo[vehicleid][vPainkillers], VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vOwnerID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET painkillers = 0 WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- VehicleInfo[vehicleid][vPainkillers] = 0;
- }
- return 1;
- }
- CMD:firstaid(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /firstaid [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't heal yourself.");
- }
- if(PlayerInfo[targetid][pFirstAid])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This player already has first aid effects.");
- }
- PlayerInfo[targetid][pFirstAid] = 1;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s administers first aid to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "You have received first aid from %s. Your health will now regenerate until full.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have administered first aid to %s.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:stretcher(playerid, params[])
- {
- new targetid, vehicleid = GetPlayerVehicleID(playerid);
- if(GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /stretcher [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 15.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(!PlayerInfo[targetid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not injured.");
- }
- if(IsPlayerInAnyVehicle(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already in a vehicle.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetVehicleModel(GetPlayerVehicleID(playerid)) != 416 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 490)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be driving an ambulance.");
- }
- for(new i = 2; i < GetVehicleSeatCount(vehicleid); i ++)
- {
- if(!IsSeatOccupied(vehicleid, i))
- {
- PlayerInfo[targetid][pVehicleCount] = 0;
-
- ClearAnimations(targetid, 1);
- ApplyAnimation(targetid, "CARRY", "crry_prtial", 4.1, 0, 0, 0, 0, 0, 1);
- TogglePlayerControllable(targetid, 0);
- PutPlayerInVehicle(targetid, vehicleid, i);
-
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s places %s on a stretcher in the Ambulance.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "There are no unoccupied seats left. Find another vehicle.");
- return 1;
- }
- CMD:deliverpatient(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /deliverpatient [playerid]");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2007.6256, -1410.2455, 16.9922) && !IsPlayerInRangeOfPoint(playerid, 5.0, 1147.3577, -1345.3729, 13.6328))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any delivery points at the hospital.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 7.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(!PlayerInfo[targetid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not injured.");
- }
- PlayerInfo[targetid][pInjured] = 0;
- PlayerInfo[targetid][pDelivered] = 1;
- SetPlayerInHospital(targetid, 5);
- AddToPaycheck(playerid, 2000);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s delivered you to the hospital.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have delivered %s to the hospital and earned {00AA00}$2000{33CCFF} on your paycheck.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:injuries(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /injuries [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT weaponid, timestamp FROM shots WHERE hitid = %i AND hittype = 1 ORDER BY id DESC LIMIT 20", targetid);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerListInjuries", "ii", playerid, targetid);
- return 1;
- }
- CMD:mrevive(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /mrevive [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't revive yourself.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(!PlayerInfo[targetid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is not injured.");
- }
- PlayerInfo[targetid][pInjured] = 0;
- SetPlayerHealth(targetid, 20.0);
- ClearAnimations(targetid, 1);
- SendClientMessageEx(targetid, COLOR_AQUA, "Medic %s has revived you.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s was revived by medic %s.", GetPlayerRPName(targetid), GetPlayerRPName(playerid));
- return 1;
- }
- CMD:news(playerid, params[])
- {
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a news reporter.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /news [text]");
- }
- if(PlayerInfo[playerid][pToggleNews])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't make news broadcasts as you have it toggled.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 20.0, 255.7870,1762.5150,701.0929))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside the Los Angeles News Department recording studio at the moment.");
- }
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleNews])
- {
- SendClientMessageEx(i, COLOR_LIGHTGREEN, "[News] - Reporter %s: %s", GetPlayerRPName(playerid), params);
- }
- }
- return 1;
- }
- CMD:lb(playerid, params[])
- {
- return cmd_livebroadcast(playerid, params);
- }
- CMD:livebroadcast(playerid, params[])
- {
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a news reporter.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /lb [text] (Notice : This command allows you to broadcast anywhere, and requires you to have a Camera on you.)");
- }
- if(PlayerInfo[playerid][pToggleNews])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't make news broadcasts as you have it toggled.");
- }
- if(GetPlayerWeapon(playerid) == 43)
- {
- foreach(new i : Player)
- {
- if(!PlayerInfo[i][pToggleNews])
- {
- SendClientMessageEx(i, COLOR_LIGHTGREEN, "[News] - Reporter %s: %s", GetPlayerRPName(playerid), params);
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GREY3, "You don't have a Camera at the moment therefore you can't go on a live broadcast.");
- return 1;
- }
- CMD:live(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a news reporter.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /live [playerid]");
- }
- if(PlayerInfo[playerid][pLiveMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are banned from live interviews. Ask a higher rank to lift your ban.");
- }
- if(PlayerInfo[playerid][pLiveBroadcast] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are already doing a live interview. /endlive to finish it.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't interview yourself.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(PlayerInfo[targetid][pLiveMuted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is banned from live interviews.");
- }
- if(PlayerInfo[targetid][pCallLine] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is on a phone call at the moment.");
- }
- PlayerInfo[targetid][pLiveOffer] = playerid;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you a live interview. (/accept live)", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered %s a live interview.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:endlive(playerid, params[])
- {
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a news reporter.");
- }
- if(PlayerInfo[playerid][pLiveBroadcast] == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are currently not doing a live interview.");
- }
- SendClientMessage(playerid, COLOR_AQUA, "You have ended the live interview.");
- SendClientMessageEx(PlayerInfo[playerid][pLiveBroadcast], COLOR_AQUA, "%s has ended the live interview.", GetPlayerRPName(playerid));
- PlayerInfo[PlayerInfo[playerid][pLiveBroadcast]][pLiveBroadcast] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pLiveBroadcast] = INVALID_PLAYER_ID;
- return 1;
- }
- CMD:liveban(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a news reporter.");
- }
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 2);
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /liveban [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(!PlayerInfo[targetid][pLiveMuted])
- {
- if(PlayerInfo[targetid][pLiveBroadcast] != INVALID_PLAYER_ID)
- {
- PlayerInfo[PlayerInfo[targetid][pLiveBroadcast]][pLiveBroadcast] = INVALID_PLAYER_ID;
- PlayerInfo[targetid][pLiveBroadcast] = INVALID_PLAYER_ID;
- }
- PlayerInfo[targetid][pLiveMuted] = 1;
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "%s has banned you from live interviews.", GetPlayerNameEx(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have banned %s from live interviews.", GetPlayerNameEx(targetid));
- }
- else
- {
- PlayerInfo[targetid][pLiveMuted] = 0;
- SendClientMessageEx(targetid, COLOR_YELLOW, "%s has unbanned you from live interviews.", GetPlayerNameEx(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have unbanned %s from live interviews.", GetPlayerNameEx(targetid));
- }
- return 1;
- }
- CMD:settax(playerid, params[])
- {
- new amount;
- if(GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of government.");
- }
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1);
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /settax [rate]");
- }
- if(!(10 <= amount <= 50))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The tax percentage must range from 10 to 50.");
- }
- gTax = amount;
- SaveServerInfo();
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s has adjusted the income tax rate to %i percent.", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the income tax rate to %i percent.", amount);
- Log_Write("log_faction", "%s (uid: %i) set the income tax rate to %i percent.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- return 1;
- }
- CMD:factionpay(playerid, params[])
- {
- new factionid;
- if(GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of government.");
- }
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1);
- }
- if(sscanf(params, "i", factionid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /factionpay [factionid] (Use /factions for list.)");
- }
- if(!(0 <= factionid < MAX_FACTIONS) || !FactionInfo[factionid][fType])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction.");
- }
- if(FactionInfo[factionid][fType] == FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't set the paychecks for hitman factions.");
- }
- PlayerInfo[playerid][pFactionEdit] = factionid;
- ShowDialogToPlayer(playerid, DIALOG_FACTIONPAY1);
- return 1;
- }
- CMD:taxwithdraw(playerid, params[])
- {
- new amount, reason[64];
- if(GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of government.");
- }
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1);
- }
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 1667.4260, -972.6691, 683.6873))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- if(sscanf(params, "is[64]", amount, reason))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage] /taxwithdraw [amount] [reason] ($%i available)", gVault);
- }
- if(amount < 1 || amount > gVault)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- AddToTaxVault(-amount);
- GivePlayerCash(playerid, amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have withdrawn $%i from the tax vault. The new balance is $%i.", amount, gVault);
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s has withdrawn $%i from the tax vault, reason: %s", GetPlayerRPName(playerid), amount, reason);
- Log_Write("log_faction", "%s (uid: %i) has withdrawn $%i from the tax vault, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount, reason);
- return 1;
- }
- CMD:taxdeposit(playerid, params[])
- {
- new amount;
- if(GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of government.");
- }
- if(PlayerInfo[playerid][pFactionRank] < FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need to be at least rank %i+ to use this command.", FactionInfo[PlayerInfo[playerid][pFaction]][fRankCount] - 1);
- }
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, 2312.5769, -8.0526, 26.7422))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage] /taxdeposit [amount] ($%i available)", gVault);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- AddToTaxVault(amount);
- GivePlayerCash(playerid, -amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have deposited $%i in the tax vault. The new balance is $%i.", amount, gVault);
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s has deposited $%i in the tax vault.", GetPlayerRPName(playerid), amount);
- Log_Write("log_faction", "%s (uid: %i) has deposited $%i in the tax vault.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], amount);
- return 1;
- }
- CMD:contract(playerid, params[])
- {
- new targetid, amount, reason[64];
- if(sscanf(params, "iis[64]", targetid, amount, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /contract [playerid] [amount] [reason]");
- }
- if(PlayerInfo[playerid][pLevel] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least level 5+ to contract players.");
- }
- if(GetFactionType(playerid) == FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are a hitman and therefore can't contract other players.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't contract yourself.");
- }
- if(PlayerInfo[targetid][pLevel] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can only contract level 5+ players.");
- }
- if(!(1000 <= amount <= 10000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount must range from $1000 to $10000.");
- }
- if(PlayerInfo[playerid][pCash] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- foreach(new i : Player)
- {
- if(GetFactionType(i) == FACTION_HITMAN)
- {
- SendClientMessageEx(i, COLOR_YELLOW, "** %s has contracted %s for $%i, reason: %s [/contracts]", GetPlayerRPName(playerid), GetPlayerRPName(targetid), amount, reason);
- }
- }
- GivePlayerCash(playerid, -amount);
- PlayerInfo[targetid][pContracted] += amount;
- GetPlayerName(playerid, PlayerInfo[targetid][pContractBy], MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = %i, contractby = '%e' WHERE uid = %i", PlayerInfo[targetid][pContracted], PlayerInfo[targetid][pContractBy], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have placed a contract on %s for $%i, reason: %s", GetPlayerRPName(targetid), amount, reason);
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s placed a contract on %s for $%i, reason: %s", GetPlayerRPName(playerid), GetPlayerRPName(targetid), amount, reason);
- Log_Write("log_contracts", "%s (uid: %i) placed a contract on %s (uid: %i) for $%i, reason: %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], amount, reason);
- return 1;
- }
- CMD:contracts(playerid, params[])
- {
- if(GetFactionType(playerid) != FACTION_HITMAN && PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|______ Pending Contracts ______|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pContracted] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "ID: %i | Target: %s | Bounty price: $%i | Last contracter: %s", i, GetPlayerRPName(i), PlayerInfo[i][pContracted], PlayerInfo[i][pContractBy]);
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "** Use /takehit [id] or /denyhit [id] to handle contracts.");
- return 1;
- }
- CMD:denyhit(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_HITMAN && PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a hitman.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /denyhit [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pContracted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't been contracted.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has cancelled the contract on %s for $%i.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), PlayerInfo[targetid][pContracted]);
- if(GetFactionType(playerid) == FACTION_HITMAN)
- {
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_YELLOW, "** Hitman %s has cancelled the contract on %s for $%i. **", GetPlayerRPName(playerid), GetPlayerRPName(targetid), PlayerInfo[targetid][pContracted]);
- }
- PlayerInfo[targetid][pContracted] = 0;
- strcpy(PlayerInfo[targetid][pContractBy], "No-one", MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'No-one' WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:takehit(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a hitman.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /takehit [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(!PlayerInfo[targetid][pContracted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't been contracted.");
- }
- PlayerInfo[playerid][pContractTaken] = targetid;
- SendFactionMessage(PlayerInfo[playerid][pFaction], COLOR_YELLOW, "** Hitman %s has accepted the contract to kill %s for $%i. **", GetPlayerRPName(playerid), GetPlayerRPName(targetid), PlayerInfo[targetid][pContracted]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have taken the hit. You will receive $%i once you have assassinated {00AA00}%s{33CCFF}.", PlayerInfo[targetid][pContracted], GetPlayerRPName(targetid));
- return 1;
- }
- CMD:profile(playerid, params[])
- {
- new targetid;
- if(GetFactionType(playerid) != FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a hitman.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /profile [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|____ %s ____|", GetPlayerRPName(targetid));
- SendClientMessageEx(playerid, COLOR_GREY2, "Gender: %s", (PlayerInfo[targetid][pGender] == 2) ? ("Female") : ("Male"));
- SendClientMessageEx(playerid, COLOR_GREY2, "Age: %i years old", PlayerInfo[targetid][pAge]);
- if(PlayerInfo[targetid][pFaction] != -1)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Faction: %s", FactionInfo[PlayerInfo[targetid][pFaction]][fName]);
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank: %s (%i)", FactionRanks[PlayerInfo[targetid][pFaction]][PlayerInfo[targetid][pFactionRank]], PlayerInfo[targetid][pFactionRank]);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Faction: None");
- }
- if(PlayerInfo[targetid][pContracted] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "Contract: $%i", PlayerInfo[targetid][pContracted]);
- SendClientMessageEx(playerid, COLOR_GREY2, "Last Contracter: %s", PlayerInfo[targetid][pContractBy]);
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "Completed Hits: %i", PlayerInfo[targetid][pCompletedHits]);
- SendClientMessageEx(playerid, COLOR_GREY2, "Failed Hits: %i", PlayerInfo[targetid][pFailedHits]);
- return 1;
- }
- CMD:passport(playerid, params[])
- {
- new name[24], level, skinid;
- if(GetFactionType(playerid) != FACTION_HITMAN && GetFactionType(playerid) != FACTION_FEDERAL)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a hitman or federal agent.");
- }
- if(sscanf(params, "s[24]ii", name, level, skinid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /passport [name] [level] [skinid]");
- }
- if(!(3 <= strlen(name) <= 20))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your name must range from 3 to 20 characters.");
- }
- if(strfind(name, "_") == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your name needs to contain at least one underscore.");
- }
- if(!IsValidName(name))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid characters. Your name may only contain letters and underscores.");
- }
- if(PlayerInfo[playerid][pAdminDuty])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You aren't allowed to change your name while on admin duty,");
- }
- if(!(1 <= level <= 10))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your level must range from 1 to 10.");
- }
- if(!(0 <= skinid <= 311))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The skin ID must range from 0 to 311.");
- }
- PlayerInfo[playerid][pFreeNamechange] = 1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e'", name);
- mysql_tquery(connectionID, queryBuffer, "OnHitmanPassport", "isii", playerid, name, level, skinid);
- return 1;
- }
- CMD:plantbomb(playerid, params[])
- {
- if(GetFactionType(playerid) != FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a hitman.");
- }
- if(!PlayerInfo[playerid][pBombs])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have any bombs.");
- }
- if(PlayerInfo[playerid][pPlantedBomb])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have planted a bomb already.");
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't plant a bomb inside.");
- }
- GetPlayerPos(playerid, PlayerInfo[playerid][pBombX], PlayerInfo[playerid][pBombY], PlayerInfo[playerid][pBombZ]);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0);
- PlayerInfo[playerid][pPlantedBomb] = 1;
- PlayerInfo[playerid][pBombObject] = CreateDynamicObject(19602, PlayerInfo[playerid][pBombX], PlayerInfo[playerid][pBombY], PlayerInfo[playerid][pBombZ] - 1.0, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pBombs]--;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bombs = %i WHERE uid = %i", PlayerInfo[playerid][pBombs], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** Bomb has been planted, use /detonate to make it go BOOM!");
- return 1;
- }
- CMD:pickupbomb(playerid, params[])
- {
- if(GetFactionType(playerid) != FACTION_HITMAN)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a hitman.");
- }
- if(!PlayerInfo[playerid][pPlantedBomb])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't planted a bomb which you can pickup.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, PlayerInfo[playerid][pBombX], PlayerInfo[playerid][pBombY], PlayerInfo[playerid][pBombZ]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of your planted bomb.");
- }
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0);
- DestroyDynamicObject(PlayerInfo[playerid][pBombObject]);
- PlayerInfo[playerid][pBombObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pPlantedBomb] = 0;
- PlayerInfo[playerid][pBombs]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET bombs = %i WHERE uid = %i", PlayerInfo[playerid][pBombs], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessage(playerid, COLOR_WHITE, "** You have picked up your bomb.");
- return 1;
- }
- CMD:detonate(playerid, params[])
- {
- if(!PlayerInfo[playerid][pPlantedBomb])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't planted a bomb which you can detonate.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 50.0, PlayerInfo[playerid][pBombX], PlayerInfo[playerid][pBombY], PlayerInfo[playerid][pBombZ]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are too far away from your planted bomb.");
- }
- CreateExplosion(PlayerInfo[playerid][pBombX], PlayerInfo[playerid][pBombY], PlayerInfo[playerid][pBombZ], 11, 10.0);
- DestroyDynamicObject(PlayerInfo[playerid][pBombObject]);
- if(PlayerInfo[playerid][pContractTaken] != INVALID_PLAYER_ID && IsPlayerInRangeOfPoint(PlayerInfo[playerid][pContractTaken], 5.0, PlayerInfo[playerid][pBombX], PlayerInfo[playerid][pBombY], PlayerInfo[playerid][pBombZ]))
- {
- SetPlayerHealth(PlayerInfo[playerid][pContractTaken], 0.0);
- HandleContract(PlayerInfo[playerid][pContractTaken], playerid);
- }
- PlayerInfo[playerid][pBombObject] = INVALID_OBJECT_ID;
- PlayerInfo[playerid][pPlantedBomb] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "** You have detonated your bomb!");
- return 1;
- }
- CMD:saveaccounts(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- foreach(new i : Player)
- {
- SavePlayerVariables(i);
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has saved all player accounts.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:adestroyboombox(playerid, params[])
- {
- new boomboxid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if((boomboxid = GetNearbyBoombox(playerid)) == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is no boombox in range.");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "You have destroyed {00AA00}%s{33CCFF}'s boombox.", GetPlayerRPName(boomboxid));
- DestroyBoombox(boomboxid);
- return 1;
- }
- CMD:setbanktimer(playerid, params[])
- {
- new hours;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", hours))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setbanktimer [hours]");
- }
- if(hours < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Hours can't be below 0.");
- }
-
- RobberyInfo[rTime] = hours;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has reset the bank robbery timer to %i hours.", GetPlayerRPName(playerid), hours);
- return 1;
- }
- CMD:resetrobbery(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- ResetRobbery();
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has reset the active bank robbery.", GetPlayerRPName(playerid));
- return 1;
- }
- CMD:givepayday(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givepayday [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendPaycheck(targetid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has forced a payday for %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:givepveh(playerid, params[])
- {
- new model[20], modelid, targetid, color1, color2, Float:x, Float:y, Float:z, Float:a;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "us[20]ii", targetid, model, color1, color2))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givepveh [playerid] [modelid/name] [color1] [color2]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if((modelid = GetVehicleModelByName(model)) == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid vehicle model.");
- }
- if(!(0 <= color1 <= 255) || !(0 <= color2 <= 255))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid color. Valid colors range from 0 to 255.");
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO vehicles (ownerid, owner, modelid, pos_x, pos_y, pos_z, pos_a, color1, color2) VALUES(%i, '%s', %i, '%f', '%f', '%f', '%f', %i, %i)", PlayerInfo[targetid][pID], GetPlayerNameEx(targetid), modelid, x + 2.0 * floatsin(-a, degrees), y + 2.0 * floatcos(-a, degrees), z, a, color1, color2);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has given you your own {00AA00}%s{33CCFF}. /vst to spawn it.", GetPlayerRPName(playerid), vehicleNames[modelid - 400]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have given %s their own {00AA00}%s{33CCFF}.", GetPlayerRPName(targetid), vehicleNames[modelid - 400]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given %s their own %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), vehicleNames[modelid - 400]);
- Log_Write("log_admin", "%s (uid: %i) has given %s (uid: %i) their own %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], vehicleNames[modelid - 400]);
- return 1;
- }
- CMD:givedoublexp(playerid, params[])
- {
- new targetid, hours;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "ui", targetid, hours))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /givedoublexp [playerid] [hours]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(hours < 1 && PlayerInfo[targetid][pDoubleXP] - hours < 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player can't have under 0 hours of double XP.");
- }
- PlayerInfo[targetid][pDoubleXP] += hours;
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has given %i hours of double XP to %s.", GetPlayerRPName(playerid), hours, GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_YELLOW, "%s has given you %i hours of double XP.", GetPlayerRPName(playerid), hours);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET doublexp = %i WHERE uid = %i", PlayerInfo[targetid][pDoubleXP], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:randomfire(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(IsFireActive())
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a fire active already. /killfire to kill it!");
- }
- new
- Float:x,
- Float:y,
- Float:z;
- RandomFire(0);
- GetDynamicObjectPos(gFireObjects[0], x, y, z);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has started a random fire in %s.", GetPlayerRPName(playerid), GetZoneName(x, y, z));
- return 1;
- }
- CMD:killfire(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!IsFireActive())
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is currently no fire active.");
- }
- for(new i = 0; i < MAX_FIRES; i ++)
- {
- DestroyDynamicObject(gFireObjects[i]);
- gFireObjects[i] = INVALID_OBJECT_ID;
- gFireHealth[i] = 0.0;
- }
- gFires = 0;
- SendClientMessage(playerid, COLOR_GREY, "Active fire killed.");
- return 1;
- }
- CMD:spawnfire(playerid, params[])
- {
- new Float:px, Float:py, Float:pz;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't create fires indoors.");
- }
- for(new x = 0; x < MAX_FIRES; x ++)
- {
- if(gFireObjects[x] == INVALID_OBJECT_ID)
- {
- GetPlayerPos(playerid, px, py, pz);
- if(!IsFireActive())
- {
- foreach(new i : Player)
- {
- if(GetFactionType(i) == FACTION_MEDIC)
- {
- PlayerInfo[i][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(i, px, py, pz, 3.0);
- SendClientMessageEx(i, COLOR_DOCTOR, "** All units, a fire has been reported in %s. Please head to the beacon on your map. **", GetZoneName(px, py, pz));
- }
- }
- }
- gFireObjects[x] = CreateDynamicObject(18691, px, py, pz - 2.4, 0.0, 0.0, 0.0, .streamdistance = 50.0);
- gFireHealth[x] = 50.0;
- gFires++;
- return SendClientMessage(playerid, COLOR_GREY, "Fire created!");
- }
- }
- SendClientMessageEx(playerid, COLOR_GREY, "You can't create anymore fires. The limit is %i fires.", MAX_FIRES);
- return 1;
- }
- CMD:number(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /number [playerid]");
- }
- if(!PlayerInfo[playerid][pPhonebook])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a phonebook.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "Name: %s, Ph: %i", GetPlayerRPName(targetid), PlayerInfo[targetid][pPhone]);
- return 1;
- }
- CMD:phonebook(playerid, params[])
- {
- new option[10], param[32];
- if(!PlayerInfo[playerid][pPhonebook])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you don't have a phonebook.");
- }
- if(sscanf(params, "s[10]S()[32]", option, param))
- {
- if(GetFactionType(playerid) == FACTION_NEWS)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /phonebook [view | add | remove]");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /phonebook [view]");
- SendClientMessage(playerid, COLOR_GREY3, "Want your number shown in the phonebook? Ask the news team to add it to the directory.");
- }
- return 1;
- }
- if(!strcmp(option, "view", true))
- {
- PlayerInfo[playerid][pPage] = 1;
- ShowDialogToPlayer(playerid, DIALOG_PHONEBOOK);
- }
- else if(!strcmp(option, "add", true))
- {
- new number, name[24];
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a news reporter.");
- }
- if(sscanf(param, "is[24]", number, name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /phonebook [add] [number] [name]");
- }
- if(number == 0 || number == 911)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid number.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT number FROM phonebook WHERE number = %i", number);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerAddToPhonebook", "iis", playerid, number, name);
- }
- else if(!strcmp(option, "remove", true))
- {
- new number;
- if(GetFactionType(playerid) != FACTION_NEWS)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a news reporter.");
- }
- if(sscanf(param, "i", number))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /phonebook [remove] [number]");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT name FROM phonebook WHERE number = %i", number);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerRemoveFromPhonebook", "ii", playerid, number);
- }
- return 1;
- }
- CMD:boombox(playerid, params[])
- {
- new option[10], param[128];
- if(!PlayerInfo[playerid][pBoombox])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no boombox and therefore can't use this command.");
- }
- if(sscanf(params, "s[10]S()[128]", option, param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /boombox [place | pickup | play]");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command from within the vehicle.");
- }
- if(!strcmp(option, "place", true))
- {
- if(PlayerInfo[playerid][pBoomboxPlaced])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have placed down a boombox already.");
- }
- if(GetNearbyBoombox(playerid) != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is already a boombox nearby. Place this one somewhere else.");
- }
- new
- Float:x,
- Float:y,
- Float:z,
- Float:a,
- string[128];
- format(string, sizeof(string), "Boombox placed by:\n{00AA00}%s{F7A763}\n/boombox for more options.", GetPlayerNameEx(playerid));
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- PlayerInfo[playerid][pBoomboxPlaced] = 1;
- PlayerInfo[playerid][pBoomboxObject] = CreateDynamicObject(2102, x, y, z - 1.0, 0.0, 0.0, a, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
- PlayerInfo[playerid][pBoomboxText] = CreateDynamic3DTextLabel(string, COLOR_LIGHTORANGE, x, y, z - 0.8, 10.0, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid));
- PlayerInfo[playerid][pBoomboxURL] = 0;
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s places a boombox on the ground.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "pickup", true))
- {
- if(!PlayerInfo[playerid][pBoomboxPlaced])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have not placed down a boombox.");
- }
- if(!IsPlayerInRangeOfDynamicObject(playerid, PlayerInfo[playerid][pBoomboxObject], 3.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of your boombox.");
- }
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s picks up their boombox and switches it off.", GetPlayerRPName(playerid));
- DestroyBoombox(playerid);
- }
- else if(!strcmp(option, "play", true))
- {
- if(!PlayerInfo[playerid][pBoomboxPlaced])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have not placed down a boombox.");
- }
- if(!IsPlayerInRangeOfDynamicObject(playerid, PlayerInfo[playerid][pBoomboxObject], 3.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of your boombox.");
- }
- PlayerInfo[playerid][pMusicType] = MUSIC_BOOMBOX;
- ShowDialogToPlayer(playerid, DIALOG_MP3PLAYER);
- }
- return 1;
- }
- CMD:switchspeedo(playerid, params[])
- {
- if(!strcmp(params, "kmh", true))
- {
- PlayerInfo[playerid][pSpeedometer] = 1;
- SendClientMessage(playerid, COLOR_AQUA, "Your speedometer will now display speed as {00AA00}Kilometers per hour{33CCFF}.");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET speedometer = 1 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(params, "mph", true))
- {
- PlayerInfo[playerid][pSpeedometer] = 2;
- SendClientMessage(playerid, COLOR_AQUA, "Your speedometer will now display speed as {00AA00}Miles per hour{33CCFF}.");
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET speedometer = 2 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /switchspeedo [kmh/mph]");
- }
- return 1;
- }
- CMD:shakehand(playerid, params[])
- {
- new targetid, type;
- if(sscanf(params, "ui", targetid, type))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /shakehand [playerid] [type (1-6)]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't shake your own hand.");
- }
- if(!(1 <= type <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type. Valid types range from 1 to 6.");
- }
- PlayerInfo[targetid][pShakeOffer] = playerid;
- PlayerInfo[targetid][pShakeType] = type;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has offered to shake your hand. (/accept handshake)", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have sent %s a handshake offer.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:dropgun(playerid, params[])
- {
- new weaponid = GetScriptWeapon(playerid), objectid, Float:x, Float:y, Float:z;
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be onfoot in order to drop weapons.");
- }
- if(!weaponid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be holding the weapon you're willing to drop.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball] > 0 || PlayerInfo[playerid][pDueling] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(GetPlayerHealthEx(playerid) < 60)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't drop weapons as your health is below 60.");
- }
- GetPlayerPos(playerid, x, y, z);
- objectid = CreateDynamicObject(weaponModelIDs[weaponid], x, y, z - 1.0, 93.7, 93.7, 120.0);
- Streamer_SetExtraInt(objectid, E_OBJECT_TYPE, E_OBJECT_WEAPON);
- Streamer_SetExtraInt(objectid, E_OBJECT_WEAPONID, weaponid);
- Streamer_SetExtraInt(objectid, E_OBJECT_FACTION, PlayerInfo[playerid][pFaction]);
- RemovePlayerWeapon(playerid, weaponid);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s drops their %s on the ground.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have dropped your {00AA00}%s{33CCFF}.", GetWeaponNameEx(weaponid));
- return 1;
- }
- CMD:grabgun(playerid, params[])
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be onfoot in order to pickup weapons.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(PlayerInfo[playerid][pHours] < 2 || PlayerInfo[playerid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are either weapon restricted or you played less than two playing hours.");
- }
- for(new i = 0; i <= Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i ++)
- {
- if(IsValidDynamicObject(i) && IsPlayerInRangeOfDynamicObject(playerid, i, 2.0) && Streamer_GetExtraInt(i, E_OBJECT_TYPE) == E_OBJECT_WEAPON)
- {
- if(Streamer_GetExtraInt(i, E_OBJECT_FACTION) >= 0 && PlayerInfo[playerid][pFaction] != Streamer_GetExtraInt(i, E_OBJECT_FACTION))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This weapon belongs to a specific faction. You may not pick it up.");
- }
- new weaponid = Streamer_GetExtraInt(i, E_OBJECT_WEAPONID);
- GivePlayerWeaponEx(playerid, weaponid);
- DestroyDynamicObject(i);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s picks up a %s from the ground.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have picked up a {00AA00}%s{33CCFF}.", GetWeaponNameEx(weaponid));
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any dropped weapons.");
- return 1;
- }
- CMD:createland(playerid, params[])
- {
- new price;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", price))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /createland [price]");
- }
- if(price < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The price can't be below $1.");
- }
- if(GetNearbyLand(playerid) >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a land in range. Find somewhere else to create this one.");
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot create lands indoors.");
- }
- PlayerInfo[playerid][pLandCost] = price;
- PlayerInfo[playerid][pZoneType] = ZONETYPE_LAND;
- ShowPlayerDialog(playerid, DIALOG_CREATEZONE, DIALOG_STYLE_MSGBOX, "Land creation system", "You have entered land creation mode. In order to create a land you need\nto mark four points around the area you want your land to be in, forming\na square. You must make a square or your outcome won't be as expected.\n\nPress {00AA00}Confirm{A9C4E4} to begin land creation.", "Confirm", "Cancel");
- return 1;
- }
- CMD:confirm(playerid, params[])
- {
- new Float:x, Float:y, Float:z;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pZoneCreation])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not creating any land or turf at the moment.");
- }
- if(PlayerInfo[playerid][pMinX] == 0.0)
- {
- GetPlayerPos(playerid, PlayerInfo[playerid][pMinX], y, z);
- PlayerInfo[playerid][pZonePickups][0] = CreateDynamicPickup(1239, 1, PlayerInfo[playerid][pMinX], y, z, .playerid = playerid);
- SendClientMessage(playerid, COLOR_WHITE, "** Boundary 1/4 set (min X).");
- }
- else if(PlayerInfo[playerid][pMinY] == 0.0)
- {
- GetPlayerPos(playerid, x, PlayerInfo[playerid][pMinY], z);
- PlayerInfo[playerid][pZonePickups][1] = CreateDynamicPickup(1239, 1, x, PlayerInfo[playerid][pMinY], z, .playerid = playerid);
- SendClientMessage(playerid, COLOR_WHITE, "** Boundary 2/4 set (min Y).");
- }
- else if(PlayerInfo[playerid][pMaxX] == 0.0)
- {
- GetPlayerPos(playerid, PlayerInfo[playerid][pMaxX], y, z);
- PlayerInfo[playerid][pZonePickups][2] = CreateDynamicPickup(1239, 1, PlayerInfo[playerid][pMaxX], y, z, .playerid = playerid);
- SendClientMessage(playerid, COLOR_WHITE, "** Boundary 3/4 set (max X).");
- }
- else if(PlayerInfo[playerid][pMaxY] == 0.0)
- {
- GetPlayerPos(playerid, x, PlayerInfo[playerid][pMaxY], z);
- SendClientMessage(playerid, COLOR_WHITE, "** Boundary 4/4 set (max Y).");
- PlayerInfo[playerid][pZonePickups][3] = CreateDynamicPickup(1239, 1, x, PlayerInfo[playerid][pMaxY], z, .playerid = playerid);
- PlayerInfo[playerid][pZoneID] = GangZoneCreate(PlayerInfo[playerid][pMinX], PlayerInfo[playerid][pMinY], PlayerInfo[playerid][pMaxX], PlayerInfo[playerid][pMaxY]);
- GangZoneShowForPlayer(playerid, PlayerInfo[playerid][pZoneID], 0x33CC33FF);
- if(PlayerInfo[playerid][pZoneCreation] == ZONETYPE_LAND) {
- ShowPlayerDialog(playerid, DIALOG_CONFIRMZONE, DIALOG_STYLE_MSGBOX, "Land creation system", "You have set the four boundary points. The green zone on your mini-map\nrepresents the area of your land. You can choose to start over or complete\nthe creation of your land.\n\nWhat would you like to do now?", "Create", "Restart");
- } else if(PlayerInfo[playerid][pZoneCreation] == ZONETYPE_TURF) {
- ShowPlayerDialog(playerid, DIALOG_CONFIRMZONE, DIALOG_STYLE_MSGBOX, "Turf creation system", "You have set the four boundary points. The green zone on your mini-map\nrepresents the area of your turf. You can choose to start over or complete\nthe creation of your turf.\n\nWhat would you like to do now?", "Create", "Restart");
- }
- }
- return 1;
- }
- CMD:landcancel(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(PlayerInfo[playerid][pZoneCreation] != ZONETYPE_LAND)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not creating a land at the moment.");
- }
- CancelZoneCreation(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Land creation cancelled.");
- return 1;
- }
- CMD:gotoland(playerid, params[])
- {
- new landid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", landid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotoland [landid]");
- }
- if(!(0 <= landid < MAX_LANDS) || !LandInfo[landid][lExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid land.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, LandInfo[landid][lMinX], LandInfo[landid][lMinY], LandInfo[landid][lHeight]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:removelandobjects(playerid, params[])
- {
- new landid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", landid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removelandobjects [landid]");
- }
- if(!(0 <= landid < MAX_LANDS) || !LandInfo[landid][lExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid land.");
- }
- RemoveAllLandObjects(landid);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed all land objects for land %i.", landid);
- return 1;
- }
- CMD:removeland(playerid, params[])
- {
- new landid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", landid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removeland [landid]");
- }
- if(!(0 <= landid < MAX_LANDS) || !LandInfo[landid][lExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid land.");
- }
- RemoveAllLandObjects(landid);
- GangZoneDestroy(LandInfo[landid][lGangZone]);
- DestroyDynamicArea(LandInfo[landid][lArea]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM lands WHERE id = %i", LandInfo[landid][lID]);
- mysql_tquery(connectionID, queryBuffer);
- LandInfo[landid][lID] = 0;
- LandInfo[landid][lExists] = 0;
- LandInfo[landid][lOwnerID] = 0;
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed land %i.", landid);
- return 1;
- }
- CMD:buyland(playerid, params[])
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any lands.");
- }
- if(LandInfo[landid][lOwnerID] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This land is already owned.");
- }
- if(strcmp(params, "confirm", true))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /buyland [confirm] (This land costs $%i.)", LandInfo[landid][lPrice]);
- }
- if(PlayerInfo[playerid][pCash] < LandInfo[landid][lPrice])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to purchase this land.");
- }
- SetLandOwner(landid, playerid);
- GivePlayerCash(playerid, -LandInfo[landid][lPrice]);
- SendClientMessageEx(playerid, COLOR_GREEN, "You paid $%i for this land! /landhelp to see the available commands for your land.", LandInfo[landid][lPrice]);
- Log_Write("log_property", "%s (uid: %i) purchased a land (id: %i) in %s for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], LandInfo[landid][lID], GetPlayerZoneName(playerid), LandInfo[landid][lPrice]);
- return 1;
- }
- CMD:sellland(playerid, params[])
- {
- new landid = GetNearbyLand(playerid), targetid, amount;
- if(landid == -1 || !IsLandOwner(playerid, landid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any lands of yours.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellland [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell to yourself.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must specify an amount above zero.");
- }
- PlayerInfo[targetid][pLandOffer] = playerid;
- PlayerInfo[targetid][pLandOffered] = landid;
- PlayerInfo[targetid][pLandPrice] = amount;
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s offered you to buy their land for $%i. (/accept land)", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You offered %s to buy your land for $%i.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:sellmyland(playerid, params[])
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1 || !IsLandOwner(playerid, landid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any lands of yours.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /sellmyland [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command sells your land back to the state. You will receive $%i back.", percent(LandInfo[landid][lPrice], 75));
- return 1;
- }
- SetLandOwner(landid, INVALID_PLAYER_ID);
- GivePlayerCash(playerid, percent(LandInfo[landid][lPrice], 75));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have sold your land to the state and received $%i back.", percent(LandInfo[landid][lPrice], 75));
- Log_Write("log_property", "%s (uid: %i) sold their land (id: %i) to the state for $%i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], LandInfo[landid][lID], percent(LandInfo[landid][lPrice], 75));
- return 1;
- }
- CMD:landinfo(playerid, params[])
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any lands.");
- }
- if(!LandInfo[landid][lOwnerID])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "** This land is currently not owned and is for sale, price: {00AA00}$%i{FFFFFF}.", LandInfo[landid][lPrice]);
- }
- else if(!IsLandOwner(playerid, landid))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "** This land is owned by %s.", LandInfo[landid][lOwner]);
- }
- else
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM landobjects WHERE landid = %i", LandInfo[landid][lID]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LAND_INFORMATION, playerid);
- }
- return 1;
- }
- CMD:land(playerid, params[])
- {
- new landid = GetNearbyLand(playerid);
- if(landid == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any lands of yours.");
- }
- if(!HasLandPerms(playerid, landid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have permission to build in this land.");
- }
- ShowDialogToPlayer(playerid, DIALOG_LANDMENU);
- return 1;
- }
- CMD:mp3(playerid, params[])
- {
- if(!PlayerInfo[playerid][pMP3Player])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have an MP3 player.");
- }
- PlayerInfo[playerid][pMusicType] = MUSIC_MP3PLAYER;
- ShowDialogToPlayer(playerid, DIALOG_MP3PLAYER);
- return 1;
- }
- CMD:setradio(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in any vehicle.");
- }
- PlayerInfo[playerid][pMusicType] = MUSIC_VEHICLE;
- ShowDialogToPlayer(playerid, DIALOG_MP3PLAYER);
- return 1;
- }
- CMD:changename(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1477.1705,-1806.1858,2349.6851))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the desk at city hall.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /changename [new name]");
- }
- if(!(3 <= strlen(params) <= 20))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your name must range from 3 to 20 characters.");
- }
- if(strfind(params, "_") == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your name needs to contain at least one underscore.");
- }
- if(!IsValidName(params))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid characters. Your name may only contain letters and underscores.");
- }
- if(PlayerInfo[playerid][pCash] < PlayerInfo[playerid][pLevel] * 7500)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You need at least $%i to change your name at your level.", PlayerInfo[playerid][pLevel] * 7500);
- }
- if(PlayerInfo[playerid][pAdminDuty])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You aren't allowed to change your name while on admin duty,");
- }
- PlayerInfo[playerid][pFreeNamechange] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid FROM users WHERE username = '%e'", params);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerAttemptNameChange", "is", playerid, params);
- return 1;
- }
- CMD:acceptname(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /acceptname [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(isnull(PlayerInfo[targetid][pNameChange]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't requested a namechange.");
- }
- if(PlayerInfo[targetid][pFreeNamechange] == 0 && PlayerInfo[targetid][pCash] < PlayerInfo[targetid][pLevel] * 7500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player can't afford the namechange.");
- }
- new cost = PlayerInfo[targetid][pLevel] * 7500;
- if(PlayerInfo[targetid][pFreeNamechange])
- {
- if(PlayerInfo[targetid][pFreeNamechange] == 2 && (GetFactionType(targetid) == FACTION_HITMAN || GetFactionType(targetid) == FACTION_FEDERAL))
- {
- PlayerInfo[targetid][pLevel] = PlayerInfo[targetid][pPassportLevel];
- PlayerInfo[targetid][pSkin] = PlayerInfo[targetid][pPassportSkin];
- SetPlayerSkin(targetid, PlayerInfo[targetid][pSkin]);
- Log_Write("log_faction", "%s (uid: %i) used the /passport command to change their name to %s, level to %i and skin to %i.", GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pNameChange], PlayerInfo[targetid][pLevel], PlayerInfo[targetid][pSkin]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET level = %i, skin = %i WHERE uid = %i", PlayerInfo[targetid][pLevel], PlayerInfo[targetid][pSkin], PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
-
- Log_Write("log_admin", "%s (uid: %i) accepted %s's (uid: %i) free namechange to %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pNameChange]);
- Log_Write("log_namechanges", "%s (uid: %i) accepted %s's (uid: %i) free namechange to %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pNameChange]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has accepted %s's free namechange to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), PlayerInfo[targetid][pNameChange]);
- SendClientMessageEx(targetid, COLOR_YELLOW, "Your namechange request to %s was approved for free.", PlayerInfo[targetid][pNameChange]);
- }
- else
- {
- Log_Write("log_admin", "%s (uid: %i) accepted %s's (uid: %i) namechange to %s for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pNameChange], cost);
- Log_Write("log_namechanges", "%s (uid: %i) accepted %s's (uid: %i) namechange to %s for $%i.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pNameChange], cost);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has accepted %s's namechange to %s for $%i.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), PlayerInfo[targetid][pNameChange], cost);
- SendClientMessageEx(targetid, COLOR_YELLOW, "Your namechange request to %s was approved for $%i.", PlayerInfo[targetid][pNameChange], cost);
- GivePlayerCash(targetid, -cost);
- }
- Namechange(targetid, GetPlayerNameEx(targetid), PlayerInfo[targetid][pNameChange]);
- PlayerInfo[targetid][pNameChange] = 0;
- PlayerInfo[targetid][pFreeNamechange] = 0;
- return 1;
- }
- CMD:denyname(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /denyname [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(isnull(PlayerInfo[targetid][pNameChange]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't requested a namechange.");
- }
- if(PlayerInfo[targetid][pFreeNamechange])
- {
- ShowPlayerDialog(targetid, DIALOG_FREENAMECHANGE, DIALOG_STYLE_INPUT, "Non-RP Name", "An administrator has came to the conclusion that your name is non-RP.\nTherefore you have been given this free namechange in order to correct it.\n\nEnter a name in the Firstname_Lastname format in the box below:", "Submit", "Cancel");
- }
- Log_Write("log_admin", "%s (uid: %i) denied %s's (uid: %i) namechange to %s.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], PlayerInfo[targetid][pNameChange]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has denied %s's namechange to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), PlayerInfo[targetid][pNameChange]);
- SendClientMessageEx(targetid, COLOR_LIGHTRED, "Your namechange request to %s was denied.", PlayerInfo[targetid][pNameChange]);
- PlayerInfo[targetid][pNameChange] = 0;
- PlayerInfo[targetid][pFreeNamechange] = 0;
- return 1;
- }
- CMD:namechanges(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Pending Namechanges _____|");
- foreach(new i : Player)
- {
- if(!isnull(PlayerInfo[i][pNameChange]))
- {
- SendClientMessageEx(playerid, COLOR_GREY1, "(ID: %i) %s - Requested name: %s", i, GetPlayerRPName(i), PlayerInfo[i][pNameChange]);
- }
- }
- return 1;
- }
- CMD:paytickets(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), amount;
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle of yours.");
- }
- if(!IsVehicleOwner(playerid, vehicleid) && PlayerInfo[playerid][pVehicleKeys] != vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as this vehicle doesn't belong to you.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /paytickets [amount] (There is $%i in unpaid tickets.)", VehicleInfo[vehicleid][vTickets]);
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pCash])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(amount > VehicleInfo[vehicleid][vTickets])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There isn't that much in unpaid tickets to pay.");
- }
- VehicleInfo[vehicleid][vTickets] -= amount;
- GivePlayerCash(playerid, -amount);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET tickets = %i WHERE id = %i", VehicleInfo[vehicleid][vTickets], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have paid $%i in unpaid tickets. This vehicle now has $%i left in unpaid tickets.", amount, VehicleInfo[vehicleid][vTickets]);
- return 1;
- }
- CMD:carinfo(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!vehicleid || !IsVehicleOwner(playerid, vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside any vehicle of yours.");
- }
- new neon[12], Float:health;
- GetVehicleHealth(vehicleid, health);
- switch(VehicleInfo[vehicleid][vNeon])
- {
- case 18647: neon = "Red";
- case 18648: neon = "Blue";
- case 18649: neon = "Green";
- case 18650: neon = "Yellow";
- case 18651: neon = "Pink";
- case 18652: neon = "White";
- default: neon = "None";
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|______ %s Stats ______|", GetVehicleName(vehicleid));
- SendClientMessageEx(playerid, COLOR_GREY2, "(Owner: %s) - (Value: $%i) - (Tickets: $%i) - (Plate: %s)", VehicleInfo[vehicleid][vOwner], VehicleInfo[vehicleid][vPrice], VehicleInfo[vehicleid][vTickets], VehicleInfo[vehicleid][vPlate]);
- SendClientMessageEx(playerid, COLOR_GREY2, "(Neon: %s) - (Trunk: %i/3) - (Health: %.1f) - (Fuel: %i)", neon, VehicleInfo[vehicleid][vTrunk], health, vehicleFuel[vehicleid]);
- return 1;
- }
- CMD:smuggle(playerid, params[])
- {
- return cmd_smuggledrugs(playerid, params);
- }
- CMD:smuggledrugs(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_DRUGDEALER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Drug Dealer.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 52.0937, -292.2513, 1.7001))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the smuggle point.");
- }
- if(PlayerInfo[playerid][pCP] != CHECKPOINT_NONE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must cancel your active checkpoint first. /cancelcp to cancel it.");
- }
- if(PlayerInfo[playerid][pCash] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money.");
- }
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /smuggledrugs [seeds | cocaine | ephedrine]");
- }
- if(!strcmp(params, "seeds", true))
- {
- PlayerInfo[playerid][pSmuggleDrugs] = 1;
- PlayerInfo[playerid][pSmuggleTime] = gettime();
- PlayerInfo[playerid][pCP] = CHECKPOINT_DRUGS;
- GivePlayerCash(playerid, -500);
- AddPointMoney(POINT_DRUGFACTORY, 500);
- SetPlayerCheckpoint(playerid, 2167.7371, -1670.6298, 15.0804, 3.0);
- SendClientMessage(playerid, COLOR_AQUA, "You have paid $500 for a package of {00AA00}marijuana seeds{33CCFF}. Deliver it to the marker.");
- }
- else if(!strcmp(params, "cocaine", true))
- {
- PlayerInfo[playerid][pSmuggleDrugs] = 2;
- PlayerInfo[playerid][pSmuggleTime] = gettime();
- PlayerInfo[playerid][pCP] = CHECKPOINT_DRUGS;
- GivePlayerCash(playerid, -500);
- AddPointMoney(POINT_DRUGFACTORY, 500);
- SetPlayerCheckpoint(playerid, 2349.7727, -1169.6304, 28.0243, 3.0);
- SendClientMessage(playerid, COLOR_AQUA, "You have paid $500 for a package of {00AA00}cocaine{33CCFF}. Deliver it to the marker.");
- }
- else if(!strcmp(params, "ephedrine", true))
- {
- PlayerInfo[playerid][pSmuggleDrugs] = 3;
- PlayerInfo[playerid][pSmuggleTime] = gettime();
- PlayerInfo[playerid][pCP] = CHECKPOINT_DRUGS;
- GivePlayerCash(playerid, -500);
- AddPointMoney(POINT_DRUGFACTORY, 500);
- SetPlayerCheckpoint(playerid, 2167.7371, -1670.6298, 15.0804, 3.0);
- SendClientMessage(playerid, COLOR_AQUA, "You have paid $500 for a package of {00AA00}raw ephedrine{33CCFF}. Deliver it to the marker.");
- }
- return 1;
- }
- CMD:buydrug(playerid, params[])
- {
- new option[10], amount, cost;
- if(!PlayerHasJob(playerid, JOB_DRUGDEALER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Drug Dealer.");
- }
- if(sscanf(params, "s[10]i", option, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /buydrug [seeds | cocaine | ephedrine] [amount]");
- }
- if(!strcmp(option, "seeds", true))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 321.8347, 1117.1797, 1083.8828))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of the drug den.");
- }
- if(amount < 1 || amount > 10)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't buy less than 1 or more than 10 seeds at a time.");
- }
- if(amount > gSeedsStock)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There aren't that many seeds left in stock.");
- }
- if(PlayerInfo[playerid][pCash] < (cost = amount * 750))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many seeds.");
- }
- if(PlayerInfo[playerid][pSeeds] + amount > GetPlayerCapacity(playerid, CAPACITY_SEEDS))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i seeds. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pSeeds], GetPlayerCapacity(playerid, CAPACITY_SEEDS));
- }
- gSeedsStock -= amount;
- PlayerInfo[playerid][pSeeds] += amount;
- GivePlayerCash(playerid, -cost);
- AddPointMoney(POINT_DRUGDEN, cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i WHERE uid = %i", PlayerInfo[playerid][pSeeds], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i marijuana seeds for {00AA00}$%i{33CCFF}. /planthelp for more help.", amount, cost);
- }
- else if(!strcmp(option, "ephedrine", true))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 323.7289, 1117.4187, 1083.8828))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of the drug den.");
- }
- if(amount < 1 || amount > 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't buy less than 1 or more than 5 grams at a time.");
- }
- if(amount > gEphedrineStock)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There isn't that much ephedrine left in stock.");
- }
- if(PlayerInfo[playerid][pCash] < (cost = amount * 2000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many grams.");
- }
- if(PlayerInfo[playerid][pEphedrine] + amount > GetPlayerCapacity(playerid, CAPACITY_EPHEDRINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i ephedrine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pEphedrine], GetPlayerCapacity(playerid, CAPACITY_EPHEDRINE));
- }
- gEphedrineStock -= amount;
- PlayerInfo[playerid][pEphedrine] += amount;
- GivePlayerCash(playerid, -cost);
- AddPointMoney(POINT_DRUGDEN, cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = %i WHERE uid = %i", PlayerInfo[playerid][pEphedrine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i grams of raw ephedrine for {00AA00}$%i{33CCFF}.", amount, cost);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2342.7766, -1187.0839, 1027.9766))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of the crack house.");
- }
- if(amount < 1 || amount > 10)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't buy less than 1 or more than 10 grams at a time.");
- }
- if(amount > gCocaineStock)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There isn't that much cocaine left in stock.");
- }
- if(PlayerInfo[playerid][pCash] < (cost = amount * 1000))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy that many grams.");
- }
- if(PlayerInfo[playerid][pCocaine] + amount > GetPlayerCapacity(playerid, CAPACITY_COCAINE))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i cocaine. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pCocaine], GetPlayerCapacity(playerid, CAPACITY_COCAINE));
- }
- gCocaineStock -= amount;
- PlayerInfo[playerid][pCocaine] += amount;
- GivePlayerCash(playerid, -cost);
- AddPointMoney(POINT_CRACKHOUSE, cost);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have purchased %i grams of cocaine for {00AA00}$%i{33CCFF}.", amount, cost);
- }
- return 1;
- }
- CMD:plantweed(playerid, params[])
- {
- if(PlayerInfo[playerid][pWeedPlanted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have an active weed plant already.");
- }
- if(PlayerInfo[playerid][pSeeds] < 10)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough seeds. You need at least 10 seeds in order to plant them.");
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't plant indoors.");
- }
- GetPlayerPos(playerid, PlayerInfo[playerid][pWeedX], PlayerInfo[playerid][pWeedY], PlayerInfo[playerid][pWeedZ]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pWeedA]);
- PlayerInfo[playerid][pSeeds] -= 10;
- PlayerInfo[playerid][pWeedPlanted] = 1;
- PlayerInfo[playerid][pWeedTime] = 60;
- PlayerInfo[playerid][pWeedGrams] = 0;
- PlayerInfo[playerid][pWeedObject] = CreateDynamicObject(3409, PlayerInfo[playerid][pWeedX], PlayerInfo[playerid][pWeedY], PlayerInfo[playerid][pWeedZ] - 1.8, 0.0, 0.0, PlayerInfo[playerid][pWeedA]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = %i, weedplanted = 1, weedtime = %i, weedgrams = %i, weed_x = '%f', weed_y = '%f', weed_z = '%f', weed_a = '%f' WHERE uid = %i", PlayerInfo[playerid][pSeeds], PlayerInfo[playerid][pWeedTime], PlayerInfo[playerid][pWeedGrams], PlayerInfo[playerid][pWeedX], PlayerInfo[playerid][pWeedY], PlayerInfo[playerid][pWeedZ], PlayerInfo[playerid][pWeedA], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s plants some seeds into the ground.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_GREEN, "You have planted a weed plant. Every two minutes your plant will grow one gram of weed.");
- SendClientMessage(playerid, COLOR_GREEN, "Your plant will be ready in 60 minutes. Be careful, as anyone who sees your plant can pick it!");
- return 1;
- }
- CMD:plantinfo(playerid, params[])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWeedPlanted] && IsPlayerInRangeOfPoint(playerid, 3.0, PlayerInfo[i][pWeedX], PlayerInfo[i][pWeedY], PlayerInfo[i][pWeedZ]))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s inspects the plant.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_WHITE, "** This plant has so far grown %i grams of weed. It will be ready in %i/60 minutes.", PlayerInfo[i][pWeedGrams], PlayerInfo[i][pWeedTime]);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any plants.");
- return 1;
- }
- CMD:pickplant(playerid, params[])
- {
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWeedPlanted] && IsPlayerInRangeOfPoint(playerid, 3.0, PlayerInfo[i][pWeedX], PlayerInfo[i][pWeedY], PlayerInfo[i][pWeedZ]))
- {
- if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be crouched in order to pick a plant.");
- }
- if(PlayerInfo[i][pWeedGrams] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This plant hasn't grown that much yet. Wait a little while first.");
- }
- if(PlayerInfo[playerid][pWeed] + PlayerInfo[i][pWeedGrams] > GetPlayerCapacity(playerid, CAPACITY_WEED))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You currently have %i/%i weed. You can't carry anymore until you upgrade your inventory skill.", PlayerInfo[playerid][pWeed], GetPlayerCapacity(playerid, CAPACITY_WEED));
- }
- PlayerInfo[playerid][pPickPlant] = i;
- PlayerInfo[playerid][pPickTime] = 5;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s crouches down and starts picking at the weed plant.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, "** Allow up to five seconds for you to pick the plant.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any plants.");
- return 1;
- }
- CMD:seizeplant(playerid, params[])
- {
- if(!IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't apart of law enforcement.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pWeedPlanted] && IsPlayerInRangeOfPoint(playerid, 3.0, PlayerInfo[i][pWeedX], PlayerInfo[i][pWeedY], PlayerInfo[i][pWeedZ]))
- {
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s seizes a weed plant weighing %i grams.", GetPlayerRPName(playerid), PlayerInfo[i][pWeedGrams]);
- DestroyWeedPlant(i);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any plants.");
- return 1;
- }
- CMD:cookmeth(playerid, params[])
- {
- if(!PlayerHasJob(playerid, JOB_DRUGDEALER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you're not a Drug Dealer.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1.2179, 2.8095, 999.4284))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in Heisenberg's trailer. You can't use this command.");
- }
- if(!PlayerInfo[playerid][pCookMeth])
- {
- if(!PlayerInfo[playerid][pEphedrine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have any raw ephedrine which you could turn into meth.");
- }
- if(!PlayerInfo[playerid][pMuriaticAcid])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need muriatic acid in order to cook meth. Go buy some at 24/7.");
- }
- PlayerInfo[playerid][pCookMeth] = 1;
- PlayerInfo[playerid][pCookTime] = 15;
- PlayerInfo[playerid][pCookGrams] = 0;
- SendClientMessage(playerid, COLOR_GREEN, "You have started cooking meth. One gram of ephedrine will turn into 2 grams of meth every 15 seconds.");
- SendClientMessage(playerid, COLOR_GREEN, "Type the /cookmeth command again in order to stop cooking.");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_AQUA, "You have stopped cooking. You converted %i grams of ephedrine into %i grams of meth.", PlayerInfo[playerid][pCookGrams] / 2, PlayerInfo[playerid][pCookGrams]);
- ResetCooking(playerid);
- }
- return 1;
- }
- CMD:usecigar(playerid, params[])
- {
- if(!PlayerInfo[playerid][pCigars])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have any cigars left.");
- }
- PlayerInfo[playerid][pCigars]--;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s lights up a cigar and starts to smoke it.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cigars = %i WHERE uid = %i", PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:usedrug(playerid, params[])
- {
- if(gettime() - PlayerInfo[playerid][pLastDrug] < 10)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only consume drugs every 10 seconds. Please wait %i more seconds.", 10 - (gettime() - PlayerInfo[playerid][pLastDrug]));
- }
- if(PlayerInfo[playerid][pDrugsUsed] >= 4)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are stoned and therefore can't consume anymore drugs right now.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- /*if(PlayerInfo[playerid][pJoinedEvent] > 0 && !EventInfo[eHeal])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The administrator has chosen to disable healing in this event.");
- }*/
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /usedrug [weed | cocaine | meth | painkillers]");
- }
- if(!strcmp(params, "weed", true))
- {
- if(PlayerInfo[playerid][pWeed] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least two grams of weed.");
- }
- if(PlayerInfo[playerid][pAddictUpgrade] > 0)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Addict perk: Your level %i/3 addict perk gave you %.1f extra health.", PlayerInfo[playerid][pAddictUpgrade], (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- }
- GivePlayerHealth(playerid, 20.0 + (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- PlayerInfo[playerid][pWeed] -= 2;
- PlayerInfo[playerid][pDrugsUsed]++;
- PlayerInfo[playerid][pLastDrug] = gettime();
- if(PlayerInfo[playerid][pDrugsUsed] >= 4)
- {
- GameTextForPlayer(playerid, "~p~shit... you stoned as hell duuuude...", 5000, 1);
- PlayerInfo[playerid][pDrugsTime] = 30;
- }
- ApplyAnimation(playerid, "SMOKING", "M_smk_in", 4.1, 0, 0, 0, 0, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s smokes two grams of weed.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = %i WHERE uid = %i", PlayerInfo[playerid][pWeed], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(params, "cocaine", true))
- {
- if(PlayerInfo[playerid][pCocaine] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least two grams of cocaine.");
- }
- if(PlayerInfo[playerid][pAddictUpgrade] > 0)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Addict perk: Your level %i/3 addict perk gave you %.1f extra armor.", PlayerInfo[playerid][pAddictUpgrade], (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- }
- GivePlayerArmour(playerid, 10.0 + (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- PlayerInfo[playerid][pCocaine] -= 2;
- PlayerInfo[playerid][pDrugsUsed]++;
- PlayerInfo[playerid][pLastDrug] = gettime();
- if(PlayerInfo[playerid][pDrugsUsed] >= 4)
- {
- GameTextForPlayer(playerid, "~p~shit... you stoned as hell duuuude...", 5000, 1);
- PlayerInfo[playerid][pDrugsTime] = 30;
- }
- ApplyAnimation(playerid, "SMOKING", "M_smk_in", 4.1, 0, 0, 0, 0, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s snorts two grams of cocaine.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = %i WHERE uid = %i", PlayerInfo[playerid][pCocaine], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(params, "meth", true))
- {
- if(PlayerInfo[playerid][pMeth] < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least two grams of meth.");
- }
- if(PlayerInfo[playerid][pAddictUpgrade] > 0)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Addict perk: Your level %i/3 addict perk gave you %.1f/%.1f extra health & armor.", PlayerInfo[playerid][pAddictUpgrade], (PlayerInfo[playerid][pAddictUpgrade] * 5.0), (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- }
- GivePlayerHealth(playerid, 10.0 + (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- GivePlayerArmour(playerid, 10.0 + (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- PlayerInfo[playerid][pMeth] -= 2;
- PlayerInfo[playerid][pDrugsUsed] += 2;
- PlayerInfo[playerid][pLastDrug] = gettime();
- if(PlayerInfo[playerid][pDrugsUsed] >= 4)
- {
- GameTextForPlayer(playerid, "~p~shit... you stoned as hell duuuude...", 5000, 1);
- PlayerInfo[playerid][pDrugsTime] = 30;
- }
- ApplyAnimation(playerid, "SMOKING", "M_smk_in", 4.1, 0, 0, 0, 0, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s smokes two grams of meth.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = %i WHERE uid = %i", PlayerInfo[playerid][pMeth], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(params, "painkillers", true))
- {
- if(PlayerInfo[playerid][pPainkillers] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have any painkillers left.");
- }
-
- if(PlayerInfo[playerid][pAddictUpgrade] > 0)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTORANGE, "** Addict perk: Your level %i/3 addict perk gave you %.1f extra health.", PlayerInfo[playerid][pAddictUpgrade], (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- }
- GivePlayerHealth(playerid, 30.0 + (PlayerInfo[playerid][pAddictUpgrade] * 5.0));
- PlayerInfo[playerid][pPainkillers] -= 1;
- PlayerInfo[playerid][pFirstAid] = 1;
- PlayerInfo[playerid][pDrugsUsed] += 2;
- PlayerInfo[playerid][pLastDrug] = gettime();
- if(PlayerInfo[playerid][pDrugsUsed] >= 4)
- {
- GameTextForPlayer(playerid, "~p~shit... you stoned as hell duuuude...", 5000, 1);
- PlayerInfo[playerid][pDrugsTime] = 30;
- }
- ApplyAnimation(playerid, "SMOKING", "M_smk_in", 4.1, 0, 0, 0, 0, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s pops a painkiller in their mouth.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = %i WHERE uid = %i", PlayerInfo[playerid][pPainkillers], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- return 1;
- }
- CMD:showid(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /showid [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- SendClientMessage(targetid, COLOR_GREEN, "|_____ ID Card _____|");
- SendClientMessageEx(targetid, COLOR_GREY1, "Name: %s", GetPlayerRPName(playerid));
- SendClientMessageEx(targetid, COLOR_GREY1, "Gender: %s", (PlayerInfo[playerid][pGender] == 2) ? ("Female") : ("Male"));
- SendClientMessageEx(targetid, COLOR_GREY1, "Age: %i years old", PlayerInfo[playerid][pAge]);
- SendClientMessageEx(targetid, COLOR_GREY1, "Drivers License: %s", (PlayerInfo[playerid][pCarLicense]) ? ("{00AA00}Yes") : ("{FF6347}No"));
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s shows their ID card to %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:inv(playerid, params[])
- {
- return cmd_inventory(playerid, params);
- }
- CMD:inventory(playerid, params[])
- {
- DisplayInventory(playerid);
- return 1;
- }
- CMD:drop(playerid, params[])
- {
- new option[12], confirm[10];
- if(sscanf(params, "s[12]S()[10]", option, confirm))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /drop [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Weapons, Materials, Weed, Cocaine, Meth, Painkillers, Cigars, Spraycans");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Seeds, Ephedrine, HPAmmo, PoisonAmmo, FMJAmmo");
- return 1;
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(!strcmp(option, "weapons", true))
- {
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /drop [weapons] [confirm]");
- }
- ResetPlayerWeaponsEx(playerid);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their weapons.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "materials", true))
- {
- if(!PlayerInfo[playerid][pMaterials])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no materials which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [materials] [confirm] (You have %i materials.)", PlayerInfo[playerid][pMaterials]);
- }
- PlayerInfo[playerid][pMaterials] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their materials.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET materials = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "weed", true))
- {
- if(!PlayerInfo[playerid][pWeed])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no weed which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [weed] [confirm] (You have %i grams of weed.)", PlayerInfo[playerid][pWeed]);
- }
- PlayerInfo[playerid][pWeed] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their weed.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET weed = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "cocaine", true))
- {
- if(!PlayerInfo[playerid][pCocaine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no cocaine which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [cocaine] [confirm] (You have %i grams of cocaine.)", PlayerInfo[playerid][pCocaine]);
- }
- PlayerInfo[playerid][pCocaine] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their cocaine.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cocaine = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "meth", true))
- {
- if(!PlayerInfo[playerid][pMeth])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no meth which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [meth] [confirm] (You have %i grams of meth.)", PlayerInfo[playerid][pMeth]);
- }
- PlayerInfo[playerid][pMeth] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their meth.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET meth = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "painkillers", true))
- {
- if(!PlayerInfo[playerid][pPainkillers])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no painkillers which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [cocaine] [confirm] (You have %i painkillers.)", PlayerInfo[playerid][pPainkillers]);
- }
- PlayerInfo[playerid][pPainkillers] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their painkillers.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET painkillers = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "cigars", true))
- {
- if(!PlayerInfo[playerid][pCigars])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no cigars which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [cigars] [confirm] (You have %i cigars.)", PlayerInfo[playerid][pCigars]);
- }
- PlayerInfo[playerid][pCigars] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their cigars.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET cigars = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "spraycans", true))
- {
- if(!PlayerInfo[playerid][pSpraycans])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no spraycans which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [spraycans] [confirm] (You have %i spraycans.)", PlayerInfo[playerid][pSpraycans]);
- }
- PlayerInfo[playerid][pSpraycans] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their spraycanss.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET spraycans = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "seeds", true))
- {
- if(!PlayerInfo[playerid][pSeeds])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no seeds which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [seeds] [confirm] (You have %i seeds.)", PlayerInfo[playerid][pSeeds]);
- }
- PlayerInfo[playerid][pSeeds] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their seeds.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET seeds = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "ephedrine", true))
- {
- if(!PlayerInfo[playerid][pEphedrine])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no ephedrine which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [ephedrine] [confirm] (You have %i grams of ephedrine.)", PlayerInfo[playerid][pEphedrine]);
- }
- PlayerInfo[playerid][pEphedrine] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their ephedrine.", GetPlayerRPName(playerid));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET ephedrine = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "hpammo", true))
- {
- if(!PlayerInfo[playerid][pHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no hollow point ammo which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [hpammo] [confirm] (You have %i rounds of HP ammo.)", PlayerInfo[playerid][pHPAmmo]);
- }
- SetWeaponAmmo(playerid, AMMO_HP, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their hollow point ammo.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "poisonammo", true))
- {
- if(!PlayerInfo[playerid][pPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no poison tip ammo which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [poisonammo] [confirm] (You have %i rounds of poison ammo.)", PlayerInfo[playerid][pPoisonAmmo]);
- }
- SetWeaponAmmo(playerid, AMMO_POISON, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their poison tip ammo.", GetPlayerRPName(playerid));
- }
- else if(!strcmp(option, "fmjammo", true))
- {
- if(!PlayerInfo[playerid][pFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no FMJ ammo which you can throw away.");
- }
- if(isnull(confirm) || strcmp(confirm, "confirm", true) != 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /drop [fmjammo] [confirm] (You have %i rounds of FMJ ammo.)", PlayerInfo[playerid][pFMJAmmo]);
- }
- SetWeaponAmmo(playerid, AMMO_FMJ, 0);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s throws away their full metal jacket ammo.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:creategang(playerid, params[])
- {
- new name[32];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "s[32]", name))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /creategang [name]");
- }
- for(new i = 0; i < MAX_GANGS; i ++)
- {
- if(!GangInfo[i][gSetup])
- {
- SetupGang(i, name);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has setup gang {F7A763}%s{FF6347} in slot ID %i.", GetPlayerRPName(playerid), name, i);
- SendClientMessageEx(playerid, COLOR_WHITE, "** This gang's ID is %i. /editgang to edit.", i);
- return 1;
- }
- }
- return 1;
- }
- CMD:editgang(playerid, params[])
- {
- new gangid, option[14], param[128];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[14]S()[128]", gangid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Name, MOTD, Leader, Level, Color, Points, TurfTokens, RankName, Skin, Strikes");
- return 1;
- }
- if(!(0 <= gangid < MAX_GANGS) || !GangInfo[gangid][gSetup])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- if(!strcmp(option, "name", true))
- {
- if(isnull(param) || strlen(params) > 32)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [name] [text]");
- }
- strcpy(GangInfo[gangid][gName], param, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET name = '%e' WHERE id = %i", param, gangid);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(gangid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the name of gang ID %i to '%s'.", GetPlayerRPName(playerid), gangid, param);
- }
- else if(!strcmp(option, "motd", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [motd] [text]");
- }
- strcpy(GangInfo[gangid][gMOTD], param, 128);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET motd = '%e' WHERE id = %i", param, gangid);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(gangid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has adjusted the MOTD of gang ID %i.", GetPlayerRPName(playerid), gangid);
- }
- else if(!strcmp(option, "leader", true))
- {
- new leader[MAX_PLAYER_NAME];
- if(sscanf(param, "s[24]", leader))
- {
- SendClientMessage(playerid, COLOR_GREY, "[Usage]: /editgang [gangid] [leader] [name]");
- SendClientMessage(playerid, COLOR_GREY, "This only updates the text for the leader's name in /gangs. Use /setgang to appoint someone as gang leader.");
- return 1;
- }
- strcpy(GangInfo[gangid][gLeader], leader, MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET leader = '%e' WHERE id = %i", leader, gangid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the leader of gang ID %i to %s.", GetPlayerRPName(playerid), gangid, leader);
- }
- else if(!strcmp(option, "level", true))
- {
- new value;
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [level] [value (1-3)]");
- }
- if(!(1 <= value <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid level.");
- }
- GangInfo[gangid][gLevel] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET level = %i WHERE id = %i", GangInfo[gangid][gLevel], gangid);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(gangid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the level of gang ID %i to %i/3.", GetPlayerRPName(playerid), gangid, value);
- }
- else if(!strcmp(option, "color", true))
- {
- new color;
- if(sscanf(param, "h", color))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [color] [0xRRGGBBAA]");
- }
- GangInfo[gangid][gColor] = color & ~0xff;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET color = %i WHERE id = %i", GangInfo[gangid][gColor], gangid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the {%06x}color{FF6347} of gang ID %i.", GetPlayerRPName(playerid), color >>> 8, gangid);
- }
- else if(!strcmp(option, "points", true))
- {
- new value;
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [points] [value]");
- }
- GangInfo[gangid][gPoints] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET points = %i WHERE id = %i", GangInfo[gangid][gPoints], gangid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the gang points of gang ID %i to %i.", GetPlayerRPName(playerid), gangid, value);
- }
- else if(!strcmp(option, "turftokens", true))
- {
- new value;
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [turftokens] [value]");
- }
- GangInfo[gangid][gTurfTokens] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET turftokens = %i WHERE id = %i", GangInfo[gangid][gTurfTokens], gangid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the turf tokens of gang ID %i to %i.", GetPlayerRPName(playerid), gangid, value);
- }
- else if(!strcmp(option, "rankname", true))
- {
- new rankid, rank[32];
- if(sscanf(param, "is[32]", rankid, rank))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Rank Names _____|");
- for(new i = 0; i < 7; i ++)
- {
- if(isnull(GangRanks[gangid][i]))
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: (empty)", i);
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: %s", i, GangRanks[gangid][i]);
- }
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [rankname] [slot (0-6)] [name]");
- }
- if(!(0 <= rankid <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- strcpy(GangRanks[gangid][rankid], rank, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO gangranks VALUES(%i, %i, '%e') ON DUPLICATE KEY UPDATE name = '%e'", gangid, rankid, rank, rank);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set rank %i's name of gang ID %i to '%s'.", GetPlayerRPName(playerid), rankid, gangid, rank);
- }
- else if(!strcmp(option, "skin", true))
- {
- new slot, skinid;
- if(sscanf(param, "ii", slot, skinid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Gang Skins _____|");
- for(new i = 0; i < MAX_GANG_SKINS; i ++)
- {
- if(GangInfo[gangid][gSkins][i] == 0)
- SendClientMessageEx(playerid, COLOR_GREY2, "Skin %i: (none)", i + 1);
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "Skin %i: %i", i + 1, GangInfo[gangid][gSkins][i]);
- }
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [skin] [slot (1-%i)] [skinid]", MAX_GANG_SKINS);
- }
- if(!(1 <= slot <= MAX_GANG_SKINS))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- }
- if(!(0 <= skinid <= 311))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin.");
- }
- slot--;
- GangInfo[gangid][gSkins][slot] = skinid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO gangskins VALUES(%i, %i, %i) ON DUPLICATE KEY UPDATE skinid = %i", gangid, slot, skinid, skinid);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_WHITE, "** You have set the skin in slot %i to ID %i.", slot + 1, skinid);
- }
- else if(!strcmp(option, "strikes", true))
- {
- new amount;
- if(sscanf(param, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editgang [gangid] [strikes] [amount]");
- }
- if(!(0 <= amount <= 3))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount must range from 0 to 3.");
- }
- GangInfo[gangid][gStrikes] = amount;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET strikes = %i WHERE id = %i", amount, gangid);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(gangid);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the strikes of gang ID %i to %i.", GetPlayerRPName(playerid), gangid, amount);
- }
- return 1;
- }
- CMD:removegang(playerid, params[])
- {
- new gangid;
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", gangid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removegang [gangid]");
- }
- if(!(0 <= gangid < MAX_GANGS) || !GangInfo[gangid][gSetup])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has deleted gang %s.", GetPlayerRPName(playerid), GangInfo[gangid][gName]);
- SendClientMessageEx(playerid, COLOR_LIGHTRED, "You have permanently deleted the {F7A763}%s{FF6347} gang slot.", GangInfo[gangid][gName]);
- RemoveGang(gangid);
- return 1;
- }
- CMD:gangstrike(playerid, params[])
- {
- new gangid, reason[128];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[128]", gangid, reason))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gangstrike [gangid] [reason]");
- }
- if(!(0 <= gangid < MAX_GANGS) || !GangInfo[gangid][gSetup])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- if(GangInfo[gangid][gStrikes] >= 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This gang already has 3 strikes.");
- }
- GangInfo[gangid][gStrikes]++;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET strikes = %i WHERE id = %i", GangInfo[gangid][gStrikes], gangid);
- mysql_tquery(connectionID, queryBuffer);
- switch(GangInfo[gangid][gStrikes])
- {
- case 1: SendClientMessageToAllEx(COLOR_WHITE, "(( Gang News: %s has received their 1st strike, reason: %s ))", GangInfo[gangid][gName], reason);
- case 2: SendClientMessageToAllEx(COLOR_WHITE, "(( Gang News: %s has received their 2nd strike, reason: %s ))", GangInfo[gangid][gName], reason);
- case 3: SendClientMessageToAllEx(COLOR_WHITE, "(( Gang News: %s has received their 3rd strike, reason: %s ))", GangInfo[gangid][gName], reason);
- }
- return 1;
- }
- CMD:setgang(playerid, params[])
- {
- new targetid, gangid, rankid;
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "uiI(-1)", targetid, gangid, rankid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /setgang [playerid] [gangid (-1 = none)] [rank (optional)]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pLogged])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't logged in yet.");
- }
- if(!(-1 <= gangid < MAX_GANGS) || (gangid >= 0 && !GangInfo[gangid][gSetup]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- if((gangid != -1 && !(-1 <= rankid <= 6)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- if(gangid == -1)
- {
- PlayerInfo[targetid][pGang] = -1;
- PlayerInfo[targetid][pGangRank] = 0;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has removed you from your gang.", GetPlayerRPName(playerid));
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has removed %s from their gang.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- }
- else
- {
- if(rankid == -1)
- {
- rankid = 6;
- }
- /*if(rankid == 6)
- {
- GetPlayerName(targetid, GangInfo[gangid][gLeader], MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET leader = '%e' WHERE id = %i", GangInfo[gangid][gLeader], gangid);
- mysql_tquery(connectionID, queryBuffer);
- }*/
- PlayerInfo[targetid][pGang] = gangid;
- PlayerInfo[targetid][pGangRank] = rankid;
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has made you a {00AA00}%s{33CCFF} in %s.", GetPlayerRPName(playerid), GangRanks[gangid][rankid], GangInfo[gangid][gName]);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has made %s a %s in %s.", GetPlayerRPName(playerid), GetPlayerRPName(targetid), GangRanks[gangid][rankid], GangInfo[gangid][gName]);
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = %i, gangrank = %i WHERE uid = %i", gangid, rankid, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- return 1;
- }
- CMD:families(playerid, params[])
- {
- return cmd_gangs(playerid, params);
- }
- CMD:gangs(playerid, params[])
- {
- new gangid;
-
- if(sscanf(params, "i", gangid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "____________________________________");
- for(new i = 0; i < MAX_GANGS; i ++)
- {
- if(GangInfo[i][gSetup])
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM users WHERE gang = %i", i);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerListGangs", "ii", playerid, i);
- }
- }
- return 1;
- }
- if(!(0 <= gangid < MAX_GANGS) || !GangInfo[gangid][gSetup])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
-
- SendClientMessage(playerid, COLOR_GREEN, "|____ Members Online ____|");
-
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pLogged] && PlayerInfo[i][pGang] == gangid)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(%i) %s %s", PlayerInfo[i][pGangRank], GangRanks[gangid][PlayerInfo[i][pGangRank]], GetPlayerRPName(i));
- }
- }
- return 1;
- }
- CMD:points(playerid, params[])
- {
- new name[32], pointid;
- if(sscanf(params, "i", pointid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists])
- {
- if(PointInfo[i][pCapturedGang] == -1) {
- name = "None";
- } else {
- strcpy(name, GangInfo[PointInfo[i][pCapturedGang]][gName]);
- }
- SendClientMessageEx(playerid, COLOR_GREY2, "ID: %i | Name: %s | Owner: %s | Captured by: %s | Profits: $%i | Time: %ih", i, PointInfo[i][pName], name, PointInfo[i][pCapturedBy], PointInfo[i][pProfits], PointInfo[i][pTime]);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /points [pointid]");
- return 1;
- }
- if(!(0 <= pointid < MAX_POINTS) || !PointInfo[pointid][pExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid point.");
- }
- if(PointInfo[pointid][pCapturedGang] >= 0)
- {
- strcpy(name, GangInfo[PointInfo[pointid][pCapturedGang]][gName]);
- }
- else
- {
- name = "None";
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|____ %s ____|", PointInfo[pointid][pName]);
- SendClientMessageEx(playerid, COLOR_GREY2, "(Profits: $%i) - (Available in: %ih) - (Gang: %s) - (Captured by: %s)", PointInfo[pointid][pProfits], PointInfo[pointid][pTime], name, PointInfo[pointid][pCapturedBy]);
- if(PointInfo[pointid][pCapturer] != INVALID_PLAYER_ID)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(Capturing: %s) - (Captured in: %i minutes)", GetPlayerRPName(PointInfo[pointid][pCapturer]), PointInfo[pointid][pCaptureTime]);
- }
- return 1;
- }
- CMD:turfs(playerid, params[])
- {
- if(!PlayerInfo[playerid][pShowTurfs])
- {
- ShowTurfsOnMap(playerid, true);
- SendClientMessage(playerid, COLOR_AQUA, "You will now see turfs on your mini-map.");
- }
- else
- {
- ShowTurfsOnMap(playerid, false);
- SendClientMessage(playerid, COLOR_AQUA, "You will no longer see any turfs on your mini-map.");
- }
- return 1;
- }
- CMD:lands(playerid, params[])
- {
- if(!PlayerInfo[playerid][pShowLands])
- {
- ShowLandsOnMap(playerid, true);
- SendClientMessage(playerid, COLOR_AQUA, "You will now see lands on your mini-map.");
- }
- else
- {
- ShowLandsOnMap(playerid, false);
- SendClientMessage(playerid, COLOR_AQUA, "You will no longer see any lands on your mini-map.");
- }
- return 1;
- }
- CMD:f(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /f [gang chat]");
- }
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any gang at the moment.");
- }
- if(PlayerInfo[playerid][pToggleGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't speak in the gang chat as you have it toggled.");
- }
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang] && !PlayerInfo[i][pToggleGang])
- {
- if(strlen(params) > MAX_SPLIT_LENGTH)
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "** [%i] %s %s: %.*s... **", PlayerInfo[playerid][pGangRank], GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], GetPlayerRPName(playerid), MAX_SPLIT_LENGTH, params);
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "** [%i] %s %s: ...%s **", PlayerInfo[playerid][pGangRank], GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], GetPlayerRPName(playerid), params[MAX_SPLIT_LENGTH]);
- }
- else
- {
- SendClientMessageEx(i, COLOR_LIGHTORANGE, "** [%i] %s %s: %s **", PlayerInfo[playerid][pGangRank], GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], GetPlayerRPName(playerid), params);
- }
- }
- }
- return 1;
- }
- CMD:gmembers(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a gang at the moment.");
- }
- SendClientMessage(playerid, COLOR_GREEN, "|____ Gang Members Online ____|");
- foreach(new i : Player)
- {
- if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang])
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(%i) %s %s", PlayerInfo[i][pGangRank], GangRanks[PlayerInfo[i][pGang]][PlayerInfo[i][pGangRank]], GetPlayerRPName(i));
- }
- }
-
- return 1;
- }
- CMD:gang(playerid, params[])
- {
- new targetid, option[16], param[128];
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any gang at the moment.");
- }
- if(sscanf(params, "s[16]S()[128]", option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Invite, Kick, Rank, Roster, Online, Quit, Offlinekick");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: MOTD, Stash, Stats, Rankname, NPC, Upgrade, Respawncars.");
- return 1;
- }
- if(!strcmp(option, "invite", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 5+ to use this command.");
- }
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [invite] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pGang] != -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already apart of a gang.");
- }
- /*if(PlayerInfo[targetid][pFaction] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is apart of a faction and therefore can't join your gang.");
- }*/
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM users WHERE gang = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerAttemptInviteGang", "ii", playerid, targetid);
- }
- if(!strcmp(option, "respawncars", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're either not in a gang or not at least rank 5.");
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && VehicleInfo[i][vGang] == PlayerInfo[playerid][pGang] && !IsVehicleOccupied(i))
- {
- SetVehicleToRespawn(i);
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "You have respawned all of your unoccupied gang vehicles.");
- return 1;
- }
- else if(!strcmp(option, "kick", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 5+ to use this command.");
- }
- if(sscanf(param, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [kick] [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(PlayerInfo[targetid][pGang] != PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your gang.");
- }
- if(PlayerInfo[targetid][pGangRank] > PlayerInfo[playerid][pGangRank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has a higher rank than you.");
- }
- Log_Write("log_gang", "%s (uid: %i) kicked %s (uid: %i) from %s (id: %i) as rank %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang], GangRanks[PlayerInfo[targetid][pGang]][PlayerInfo[targetid][pGangRank]], PlayerInfo[targetid][pGangRank]);
- PlayerInfo[targetid][pGang] = -1;
- PlayerInfo[targetid][pGangRank] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = -1, gangrank = 0 WHERE uid = %i", PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has kicked you from the gang.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "You have kicked %s from your gang.", GetPlayerRPName(targetid));
- }
- else if(!strcmp(option, "rank", true))
- {
- new rankid;
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 5+ to use this command.");
- }
- if(sscanf(param, "ui", targetid, rankid))
- {
- return SendClientMessageEx(playerid, COLOR_GREY3, "[Usage]: /gang [rank] [playerid] [rankid (0-6)]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(rankid < 0 || rankid > PlayerInfo[playerid][pGangRank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "The rank specified is either invalid or higher than your rank.");
- }
- if(PlayerInfo[targetid][pGang] != PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not apart of your gang.");
- }
- if(PlayerInfo[targetid][pGangRank] > PlayerInfo[playerid][pGangRank])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player has a higher rank than you.");
- }
- PlayerInfo[targetid][pGangRank] = rankid;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gangrank = %i WHERE uid = %i", rankid, PlayerInfo[targetid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(targetid, COLOR_AQUA, "%s has set your rank to {00AA00}%s{33CCFF} (%i).", GetPlayerRPName(playerid), GangRanks[PlayerInfo[playerid][pGang]][rankid], rankid);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set %s's rank to {00AA00}%s{33CCFF} (%i).", GetPlayerRPName(targetid), GangRanks[PlayerInfo[playerid][pGang]][rankid], rankid);
- Log_Write("log_gang", "%s (uid: %i) has set %s's (uid: %i) rank in %s (id: %i) to %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetPlayerNameEx(targetid), PlayerInfo[targetid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang], GangRanks[PlayerInfo[playerid][pGang]][rankid], rankid);
- }
- else if(!strcmp(option, "stash", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 6+ to use this command.");
- }
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [stash] [confirm] (Moves the gang stash.)");
- }
- GetPlayerPos(playerid, GangInfo[PlayerInfo[playerid][pGang]][gStashX], GangInfo[PlayerInfo[playerid][pGang]][gStashY], GangInfo[PlayerInfo[playerid][pGang]][gStashZ]);
- GangInfo[PlayerInfo[playerid][pGang]][gStashInterior] = GetPlayerInterior(playerid);
- GangInfo[PlayerInfo[playerid][pGang]][gStashWorld] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET stash_x = '%f', stash_y = '%f', stash_z = '%f', stashinterior = %i, stashworld = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gStashX], GangInfo[PlayerInfo[playerid][pGang]][gStashY], GangInfo[PlayerInfo[playerid][pGang]][gStashZ], GangInfo[PlayerInfo[playerid][pGang]][gStashInterior], GangInfo[PlayerInfo[playerid][pGang]][gStashWorld], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have moved the gang stash to your location. /gstash to access your stash.");
- }
- else if(!strcmp(option, "stats", true))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT COUNT(*) FROM users WHERE gang = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_GANG_INFORMATION, playerid);
- }
- else if(!strcmp(option, "roster", true))
- {
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT username, lastlogin, gangrank FROM users WHERE gang = %i ORDER BY gangrank DESC", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_GANG_ROSTER, playerid);
- }
- else if(!strcmp(option, "online", true))
- {
- cmd_gmembers(playerid, "\1");
- }
- else if(!strcmp(option, "quit", true))
- {
- if(isnull(param) || strcmp(param, "confirm", true) != 0)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [quit] [confirm]");
- }
- SendClientMessageEx(playerid, COLOR_AQUA, "You have quit %s as a {00AA00}%s{33CCFF} (%i).", GangInfo[PlayerInfo[playerid][pGang]][gName], GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], PlayerInfo[playerid][pGangRank]);
- Log_Write("log_gang", "%s (uid: %i) has quit %s (id: %i) has rank %s (%i).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GangInfo[PlayerInfo[playerid][pGang]][gName], PlayerInfo[playerid][pGang], GangRanks[PlayerInfo[playerid][pGang]][PlayerInfo[playerid][pGangRank]], PlayerInfo[playerid][pGangRank]);
- PlayerInfo[playerid][pGang] = -1;
- PlayerInfo[playerid][pGangRank] = 0;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gang = -1, gangrank = 0 WHERE uid = %i", PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
- }
- else if(!strcmp(option, "offlinekick", true))
- {
- new username[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 5+ to use this command.");
- }
- if(sscanf(param, "s[24]", username))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [offlinekick] [username]");
- }
- if(IsPlayerOnline(username))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already online and logged in. Use '/gang kick' instead.");
- }
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT uid, gang, gangrank FROM users WHERE username = '%e'", username);
- mysql_tquery(connectionID, queryBuffer, "OnPlayerOfflineKickGang", "is", playerid, username);
- }
- /* else if(!strcmp(option, "name", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 6+ to use this command.");
- }
- if(isnull(param) || strlen(params) > 32)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [name] [text]");
- }
- strcpy(GangInfo[PlayerInfo[playerid][pGang]][gName], param, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET name = '%e' WHERE id = %i", param, PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the name of your gang to {00AA00}%s{33CCFF}.", param);
- }*/
- else if(!strcmp(option, "motd", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 6+ to use this command.");
- }
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [motd] [text]");
- }
- strcpy(GangInfo[PlayerInfo[playerid][pGang]][gMOTD], param, 128);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET motd = '%e' WHERE id = %i", param, PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessage(playerid, COLOR_AQUA, "You have changed the MOTD for your gang.");
- }
- else if(!strcmp(option, "rankname", true))
- {
- new rankid, rank[32];
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 6+ to use this command.");
- }
- if(sscanf(param, "is[32]", rankid, rank))
- {
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Rank Names _____|");
- for(new i = 0; i < 7; i ++)
- {
- if(isnull(GangRanks[PlayerInfo[playerid][pGang]][i]))
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: (empty)", i);
- else
- SendClientMessageEx(playerid, COLOR_GREY2, "Rank %i: %s", i, GangRanks[PlayerInfo[playerid][pGang]][i]);
- }
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [rankname] [slot (0-6)] [name]");
- }
- if(!(0 <= rankid <= 6))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid rank.");
- }
- strcpy(GangRanks[PlayerInfo[playerid][pGang]][rankid], rank, 32);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO gangranks VALUES(%i, %i, '%e') ON DUPLICATE KEY UPDATE name = '%e'", PlayerInfo[playerid][pGang], rankid, rank, rank);
- mysql_tquery(connectionID, queryBuffer);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the name of rank %i to {00AA00}%s{33CCFF}.", rankid, rank);
- }
- else if(!strcmp(option, "npc", true))
- {
- new type, confirm[10];
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 6+ to use this command.");
- }
- if(sscanf(param, "is[10]", type, confirm))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gang [npc] [slot] [confirm]");
- SendClientMessage(playerid, COLOR_GREY3, "List of slots: (1) Arms Dealer (2) Drug Dealer");
- return 1;
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command from within the vehicle.");
- }
- if(!isnull(confirm) && !strcmp(confirm, "confirm", true))
- {
- if(type == 1)
- {
- if(!GangInfo[PlayerInfo[playerid][pGang]][gArmsDealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have the arms dealer upgrade. (/gang upgrade)");
- }
- GetPlayerPos(playerid, GangInfo[PlayerInfo[playerid][pGang]][gArmsX], GangInfo[PlayerInfo[playerid][pGang]][gArmsY], GangInfo[PlayerInfo[playerid][pGang]][gArmsZ]);
- SetPlayerPos(playerid, GangInfo[PlayerInfo[playerid][pGang]][gArmsX] + 1.0, GangInfo[PlayerInfo[playerid][pGang]][gArmsY], GangInfo[PlayerInfo[playerid][pGang]][gArmsZ] + 1.0);
- GetPlayerFacingAngle(playerid, GangInfo[PlayerInfo[playerid][pGang]][gArmsA]);
- GangInfo[PlayerInfo[playerid][pGang]][gArmsWorld] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET arms_x = '%f', arms_y = '%f', arms_z = '%f', arms_a = '%f', armsworld = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gArmsX], GangInfo[PlayerInfo[playerid][pGang]][gArmsY], GangInfo[PlayerInfo[playerid][pGang]][gArmsZ], GangInfo[PlayerInfo[playerid][pGang]][gArmsA], GangInfo[PlayerInfo[playerid][pGang]][gArmsWorld], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessage(playerid, COLOR_AQUA, "You have moved the position of the arms dealer for your gang.");
- }
- else if(type == 2)
- {
- if(!GangInfo[PlayerInfo[playerid][pGang]][gDrugDealer])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have the drug dealer upgrade. (/gang upgrade)");
- }
- GetPlayerPos(playerid, GangInfo[PlayerInfo[playerid][pGang]][gDrugX], GangInfo[PlayerInfo[playerid][pGang]][gDrugY], GangInfo[PlayerInfo[playerid][pGang]][gDrugZ]);
- SetPlayerPos(playerid, GangInfo[PlayerInfo[playerid][pGang]][gDrugX] + 1.0, GangInfo[PlayerInfo[playerid][pGang]][gDrugY], GangInfo[PlayerInfo[playerid][pGang]][gDrugZ] + 1.0);
- GetPlayerFacingAngle(playerid, GangInfo[PlayerInfo[playerid][pGang]][gDrugA]);
- GangInfo[PlayerInfo[playerid][pGang]][gDrugWorld] = GetPlayerVirtualWorld(playerid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET drug_x = '%f', drug_y = '%f', drug_z = '%f', drug_a = '%f', drugworld = %i WHERE id = %i", GangInfo[PlayerInfo[playerid][pGang]][gDrugX], GangInfo[PlayerInfo[playerid][pGang]][gDrugY], GangInfo[PlayerInfo[playerid][pGang]][gDrugZ], GangInfo[PlayerInfo[playerid][pGang]][gDrugA], GangInfo[PlayerInfo[playerid][pGang]][gDrugWorld], PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadGang(PlayerInfo[playerid][pGang]);
- SendClientMessage(playerid, COLOR_AQUA, "You have moved the position of the drug dealer for your gang.");
- }
- }
- }
- else if(!strcmp(option, "upgrade", true))
- {
- if(PlayerInfo[playerid][pGangRank] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 6+ to use this command.");
- }
- new
- title[48],
- string[1024] = "Perk\tDescription\tCost";
- strcat(string, "\nDrug dealer\tAn NPC which sells individually stocked drugs\t{F7A763}500 GP {FFFFFF}+{00AA00} $50,000");
- strcat(string, "\nArms dealer\tAn NPC which sells individually stocked weapons\t{F7A763}500 GP {FFFFFF}+{00AA00} $50,000");
- strcat(string, "\nDuel arena\tAn OOC 1v1 duel arena for your gang.\t{F7A763}400 GP {FFFFFF}+{00AA00} $75,000");
- strcat(string, "\nMapping\tUp to 50 mapped objects for your gang.\t{F7A763}4500 GP {FFFFFF}+{00AA00} $100,000");
- strcat(string, "\nInterior\tCustom interior exclusively for your gang.\t{F7A763}5000 GP {FFFFFF}+{00AA00} $100,000");
- if(GangInfo[PlayerInfo[playerid][pGang]][gLevel] == 1)
- {
- strcat(string, "\nLevel Up\tAdvance your gang's level to 2/3.\t{F7A763}6000 GP {FFFFFF}+{00AA00} $75,000");
- }
- else if(GangInfo[PlayerInfo[playerid][pGang]][gLevel] == 2)
- {
- strcat(string, "\nLevel Up\tAdvance your gang's level to 3/3.\t{F7A763}12000 GP {FFFFFF}+{00AA00} $100,000");
- }
- format(title, sizeof(title), "Gang upgrades (Your gang has %i GP.)", GangInfo[PlayerInfo[playerid][pGang]][gPoints]);
- ShowPlayerDialog(playerid, DIALOG_GANGPOINTSHOP, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Select", "Cancel");
- }
- return 1;
- }
- CMD:gstash(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a gang at the moment.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, GangInfo[PlayerInfo[playerid][pGang]][gStashX], GangInfo[PlayerInfo[playerid][pGang]][gStashY], GangInfo[PlayerInfo[playerid][pGang]][gStashZ]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of your gang stash.");
- }
- ShowDialogToPlayer(playerid, DIALOG_GANGSTASH);
- return 1;
- }
- CMD:bandana(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a gang at the moment.");
- }
- if(!PlayerInfo[playerid][pBandana])
- {
- PlayerInfo[playerid][pBandana] = 1;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s digs out a bandana from their pocket and puts it around their head.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You have enabled your bandana. Your nametag color has been set to your gang color.");
- }
- else
- {
- PlayerInfo[playerid][pBandana] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes off their bandana putting it back in their pocket.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_AQUA, "You have disabled your bandana. Your nametag color was reset back to normal.");
- }
- return 1;
- }
- CMD:clothes(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a gang at the moment.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, GangInfo[PlayerInfo[playerid][pGang]][gStashX], GangInfo[PlayerInfo[playerid][pGang]][gStashY], GangInfo[PlayerInfo[playerid][pGang]][gStashZ]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of your gang stash.");
- }
- if(!GetGangSkinCount(PlayerInfo[playerid][pGang]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "There are no skins setup for your gang.");
- }
- PlayerInfo[playerid][pSkinSelected] = -1;
- ShowPlayerDialog(playerid, DIALOG_GANGSKINS, DIALOG_STYLE_MSGBOX, "Skin selection", "Press {00AA00}>> Next{A9C4E4} to browse through available gang skins.", ">> Next", "Confirm");
- return 1;
- }
- CMD:gbuyvehicle(playerid, params[])
- {
- static string[4096];
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in any gang at the moment.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 542.0433, -1293.5909, 17.2422))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the Grotti car dealership.");
- }
- if(GetGangVehicles(PlayerInfo[playerid][pGang]) >= GetGangVehicleLimit(PlayerInfo[playerid][pGang]))
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "Your gang can't have more than %i vehicles at its level.", GetGangVehicleLimit(PlayerInfo[playerid][pGang]));
- }
- if(isnull(string))
- {
- string = "Category\tVehicle\tPrice";
- for(new i = 0; i < sizeof(vehicleArray); i ++)
- {
- format(string, sizeof(string), "%s\n%s\t%s\t{00AA00}$%i{FFFFFF}", string, vehicleArray[i][carCategory], vehicleNames[vehicleArray[i][carModel] - 400], vehicleArray[i][carPrice]);
- }
- }
- PlayerInfo[playerid][pGangCar] = 1;
- ShowPlayerDialog(playerid, DIALOG_BUYVEHICLE, DIALOG_STYLE_TABLIST_HEADERS, "Grotti Dealership", string, "Buy", "Cancel");
- return 1;
- }
- CMD:gpark(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), id = VehicleInfo[vehicleid][vID];
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in any gang at the moment.");
- }
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any of your gang vehicles.");
- }
- if(VehicleInfo[vehicleid][vGang] != PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't park this vehicle as it doesn't belong to your gang.");
- }
- // Save the vehicle's information.
- GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ]);
- GetVehicleZAngle(vehicleid, VehicleInfo[vehicleid][vPosA]);
- VehicleInfo[vehicleid][vInterior] = GetPlayerInterior(playerid);
- VehicleInfo[vehicleid][vWorld] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_AQUA, "** Gang vehicle parked. It will now spawn here.");
- // Update the database record with the new information, then despawn the vehicle.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE vehicles SET pos_x = '%f', pos_y = '%f', pos_z = '%f', pos_a = '%f', interior = %i, world = %i WHERE id = %i", VehicleInfo[vehicleid][vPosX], VehicleInfo[vehicleid][vPosY], VehicleInfo[vehicleid][vPosZ], VehicleInfo[vehicleid][vPosA], VehicleInfo[vehicleid][vInterior], VehicleInfo[vehicleid][vWorld], VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- SaveVehicleModifications(vehicleid);
- DespawnVehicle(vehicleid, false);
- // Finally, we reload the vehicle from the database.
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "SELECT * FROM vehicles WHERE id = %i", id);
- mysql_tquery(connectionID, queryBuffer, "OnQueryFinished", "ii", THREAD_LOAD_VEHICLES, -1);
- return 1;
- }
- CMD:gfindcar(playerid, params[])
- {
- new string[512], count;
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of a gang at the moment.");
- }
- string = "#\tModel\tLocation";
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && VehicleInfo[i][vGang] == PlayerInfo[playerid][pGang])
- {
- format(string, sizeof(string), "%s\n%i\t%s\t%s", string, count + 1, GetVehicleName(i), GetVehicleZoneName(i));
- count++;
- }
- }
- if(!count)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang has no vehicles which you can track.");
- }
- ShowPlayerDialog(playerid, DIALOG_GANGFINDCAR, DIALOG_STYLE_TABLIST_HEADERS, "Gang vehicles", string, "Track", "Cancel");
- return 1;
- }
- /*
- CMD:grespawncars(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in any gang at the moment.");
- }
- for(new i = 1; i < MAX_VEHICLES; i ++)
- {
- if(IsValidVehicle(i) && VehicleInfo[i][vID] > 0 && VehicleInfo[i][vGang] == PlayerInfo[playerid][pGang] && !IsVehicleOccupied(i))
- {
- SetVehicleToRespawn(i);
- }
- }
- SendAdminMessage(COLOR_YELLOW, "AdmWarning: %s[%i] has respawned their gang vehicles.", GetPlayerRPName(playerid), playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "You have respawned all of your unoccupied gang vehicles.");
- return 1;
- }
- */
- CMD:gsellcar(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in any gang at the moment.");
- }
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any of your gang vehicles.");
- }
- if(VehicleInfo[vehicleid][vGang] != PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't sell this vehicle as it doesn't belong to your gang.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 8.0, 542.0433, -1293.5909, 17.2422))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the Grotti car dealership.");
- }
- if(strcmp(params, "confirm", true) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gsellcar [confirm]");
- SendClientMessageEx(playerid, COLOR_GREY3, "This command permanently deletes your gang vehicle. You will receive $%i back.", percent(VehicleInfo[vehicleid][vPrice], 75));
- return 1;
- }
- GivePlayerCash(playerid, percent(VehicleInfo[vehicleid][vPrice], 75));
- SendClientMessageEx(playerid, COLOR_GREEN, "You have sold your %s to the dealership and received $%i back.", GetVehicleName(vehicleid), percent(VehicleInfo[vehicleid][vPrice], 75));
- Log_Write("log_gang", "%s (uid: %i) sold their gang owned %s (id: %i) to the dealership for $%i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pID], GetVehicleName(vehicleid), VehicleInfo[vehicleid][vID], percent(VehicleInfo[vehicleid][vPrice], 75));
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM vehicles WHERE id = %i", VehicleInfo[vehicleid][vID]);
- mysql_tquery(connectionID, queryBuffer);
- DespawnVehicle(vehicleid, false);
- return 1;
- }
- CMD:createpoint(playerid, params[])
- {
- new type, name[32];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[32]", type, name))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /createpoint [type] [name]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (1) Drug factory (2) Drug den (3) Crack house (4) Auto export (5) Fuel");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (6) Mat pickup 1 (7) Mat pickup 2 (8) Mat factory 1 (9) Mat factory 2");
- return 1;
- }
- if(!(0 <= type <= 9))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(!PointInfo[i][pExists])
- {
- GetPlayerPos(playerid, PointInfo[i][pPointX], PointInfo[i][pPointY], PointInfo[i][pPointZ]);
- strcpy(PointInfo[i][pName], name, 32);
- strcpy(PointInfo[i][pCapturedBy], "No-one", MAX_PLAYER_NAME);
- PointInfo[i][pExists] = 1;
- PointInfo[i][pType] = type;
- PointInfo[i][pProfits] = 0;
- PointInfo[i][pCapturedGang] = -1;
- PointInfo[i][pTime] = 24;
- PointInfo[i][pPointInterior] = GetPlayerInterior(playerid);
- PointInfo[i][pPointWorld] = GetPlayerVirtualWorld(playerid);
- PointInfo[i][pCaptureTime] = 0;
- PointInfo[i][pCapturer] = INVALID_PLAYER_ID;
- PointInfo[i][pText] = Text3D:INVALID_3DTEXT_ID;
- PointInfo[i][pPickup] = -1;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "INSERT INTO points (id, name, type, point_x, point_y, point_z, pointinterior, pointworld) VALUES(%i, '%e', %i, '%f', '%f', '%f', %i, %i)", i, name, type, PointInfo[i][pPointX], PointInfo[i][pPointY], PointInfo[i][pPointZ], PointInfo[i][pPointInterior], PointInfo[i][pPointWorld]);
- mysql_tquery(connectionID, queryBuffer);
- ReloadPoint(i);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has created point {F7A763}%s{FF6347}.", GetPlayerRPName(playerid), name);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have created point {F7A763}%s{33CCFF}. /editpoint %i to edit this point.", name, i);
- return 1;
- }
- }
- return 1;
- }
- CMD:gotopoint(playerid, params[])
- {
- new pointid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", pointid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gotopoint [pointid]");
- }
- if(!(0 <= pointid < MAX_POINTS) || !PointInfo[pointid][pExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid point.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, PointInfo[pointid][pPointX], PointInfo[pointid][pPointY], PointInfo[pointid][pPointZ]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:editpoint(playerid, params[])
- {
- new pointid, option[14], param[32];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[14]S()[32]", pointid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Name, Location, CapturedBy, Gang, Type, Profits, Time");
- return 1;
- }
- if(!(0 <= pointid < MAX_POINTS) || !PointInfo[pointid][pExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid point.");
- }
- if(!strcmp(option, "name", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [name] [text]");
- }
- strcpy(PointInfo[pointid][pName], param, 32);
- ReloadPoint(pointid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET name = '%e' WHERE id = %i", PointInfo[pointid][pName], pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the name of point %i to %s.", GetPlayerRPName(playerid), pointid, param);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the name of point %i to {F7A763}%s{33CCFF}.", pointid, param);
- }
- else if(!strcmp(option, "location", true))
- {
- GetPlayerPos(playerid, PointInfo[pointid][pPointX], PointInfo[pointid][pPointY], PointInfo[pointid][pPointZ]);
- PointInfo[pointid][pPointInterior] = GetPlayerInterior(playerid);
- PointInfo[pointid][pPointWorld] = GetPlayerVirtualWorld(playerid);
- ReloadPoint(pointid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET point_x = '%f', point_y = '%f', point_z = '%f', pointinterior = %i, pointworld = %i WHERE id = %i", PointInfo[pointid][pPointX], PointInfo[pointid][pPointY], PointInfo[pointid][pPointZ], PointInfo[pointid][pPointInterior], PointInfo[pointid][pPointWorld], pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has moved the location of point %i.", GetPlayerRPName(playerid), pointid);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have moved the location of point %i.", pointid);
- }
- else if(!strcmp(option, "capturedby", true))
- {
- if(isnull(param) || strlen(params) > 24)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [capturedby] [name]");
- }
- strcpy(PointInfo[pointid][pCapturedBy], param, MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET capturedby = '%e' WHERE id = %i", PointInfo[pointid][pCapturedBy], pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the capturer of point %i to %s.", GetPlayerRPName(playerid), pointid, param);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the capturer of point %i to {F7A763}%s{33CCFF}.", pointid, param);
- }
- else if(!strcmp(option, "gang", true))
- {
- new gangid;
- if(sscanf(param, "i", gangid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [gang] [gangid (-1 = none)]");
- }
- if(!(-1 <= gangid < MAX_GANGS) || (gangid >= 0 && !GangInfo[gangid][gSetup]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- PointInfo[pointid][pCapturedGang] = gangid;
- ReloadPoint(pointid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET capturedgang = %i WHERE id = %i", PointInfo[pointid][pCapturedBy], pointid);
- mysql_tquery(connectionID, queryBuffer);
- if(gangid == -1)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has reset the capturing gang of point %i.", GetPlayerRPName(playerid), pointid);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have reset the capturing gang of point %i.", pointid);
- }
- else
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the capturing gang of point %i to %s.", GetPlayerRPName(playerid), pointid, GangInfo[gangid][gName]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the capturing gang of point %i to {00AA00}%s{33CCFF}.", pointid, GangInfo[gangid][gName]);
- }
- }
- else if(!strcmp(option, "type", true))
- {
- new type;
- if(sscanf(param, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [type] [value]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (1) Drug factory (2) Drug den (3) Crack house (4) Auto export (5) Fuel");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (6) Mat pickup 1 (7) Mat pickup 2 (8) Mat factory 1 (9) Mat factory 2");
- return 1;
- }
- if(!(0 <= type <= 9))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- PointInfo[pointid][pType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET type = %i WHERE id = %i", PointInfo[pointid][pType], pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the type of point %i to %i.", GetPlayerRPName(playerid), pointid, type);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the type of point %i to %i.", pointid, type);
- }
- else if(!strcmp(option, "profits", true))
- {
- new value;
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [profits] [value]");
- }
- PointInfo[pointid][pProfits] = value;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET profits = %i WHERE id = %i", PointInfo[pointid][pProfits], pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the profits of point %i to $%i.", GetPlayerRPName(playerid), pointid, value);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the profits of point %i to $%i.", pointid, value);
- }
- else if(!strcmp(option, "time", true))
- {
- new value;
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editpoint [pointid] [time] [hours (0-24)]");
- }
- if(!(0 <= value <= 24))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of hours must range from 0 to 24.");
- }
- PointInfo[pointid][pTime] = value;
- if(PointInfo[pointid][pTime] == 0)
- {
- SendClientMessageToAllEx(COLOR_YELLOW, "Point wars: %s is now available to capture.", PointInfo[pointid][pName]);
- }
- else
- {
- PointInfo[pointid][pCapturer] = INVALID_PLAYER_ID;
- PointInfo[pointid][pCaptureTime] = 0;
- }
- ReloadPoint(pointid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE points SET time = %i WHERE id = %i", PointInfo[pointid][pTime], pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the time of point %i to %i hours.", GetPlayerRPName(playerid), pointid, value);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the time of point %i to %i hours.", pointid, value);
- }
- return 1;
- }
- CMD:removepoint(playerid, params[])
- {
- new pointid;
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", pointid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removepoint [pointid]");
- }
- if(!(0 <= pointid < MAX_POINTS) || !PointInfo[pointid][pExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid point.");
- }
- DestroyDynamic3DTextLabel(PointInfo[pointid][pText]);
- DestroyDynamicPickup(PointInfo[pointid][pPickup]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM points WHERE id = %i", pointid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has deleted point %s.", GetPlayerRPName(playerid), PointInfo[pointid][pName]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have deleted point {F7A763}%s{33CCFF}.", PointInfo[pointid][pName]);
- PointInfo[pointid][pExists] = 0;
- PointInfo[pointid][pCapturedGang] = -1;
- PointInfo[pointid][pTime] = 0;
- return 1;
- }
- CMD:capture(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in any gang at the moment.");
- }
- if(PlayerInfo[playerid][pCapturingPoint] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are already attempting to capture the point.");
- }
- if(PlayerInfo[playerid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't capture a point while injured.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be onfoot in order to use this command.");
- }
- for(new i = 0; i < MAX_POINTS; i ++)
- {
- if(PointInfo[i][pExists] && IsPlayerInRangeOfPoint(playerid, 1.0, PointInfo[i][pPointX], PointInfo[i][pPointY], PointInfo[i][pPointZ]) && GetPlayerInterior(playerid) == PointInfo[i][pPointInterior] && GetPlayerVirtualWorld(playerid) == PointInfo[i][pPointWorld])
- {
- if(PointInfo[i][pTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This point is not available to capture yet.");
- }
- if(PointInfo[i][pCapturer] == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This point is already being captured by you.");
- }
- if(PointInfo[i][pCapturer] != INVALID_PLAYER_ID && PlayerInfo[PointInfo[i][pCapturer]][pGang] == PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This point is already being captured by your gang.");
- }
- foreach(new x : Player)
- {
- if(PlayerInfo[x][pCapturingPoint] == i && PlayerInfo[x][pCaptureTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Someone else is already attempting to capture. Please wait until they're done.");
- }
- }
- PlayerInfo[playerid][pCapturingPoint] = i;
- PlayerInfo[playerid][pCaptureTime] = 10;
- GetPlayerPos(playerid, PlayerInfo[playerid][pPointX], PlayerInfo[playerid][pPointY], PlayerInfo[playerid][pPointZ]);
- SendProximityMessage(playerid, 20.0, COLOR_RED, "(( %s is attempting to capture %s. ))", GetPlayerRPName(playerid), PointInfo[i][pName]);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any points.");
- return 1;
- }
- CMD:claim(playerid, params[])
- {
- new turfid, count;
- if((PlayerInfo[playerid][pGang] == -1 || PlayerInfo[playerid][pGangRank] < 5) && GetFactionType(playerid) != FACTION_POLICE)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not rank 5+ in a gang or apart of law enforcement.");
- }
- if((turfid = GetNearbyTurf(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any turfs which you can claim.");
- }
- if(GetFactionType(playerid) == FACTION_POLICE && PlayerInfo[playerid][pGang] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're not allowed to claim turfs as a law enforcer and a gang member.");
- }
- if(PlayerInfo[playerid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't claim a turf while injured.");
- }
- if(TurfInfo[turfid][tTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This turf is not yet available to claim.");
- }
- if(TurfInfo[turfid][tType] == 8)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This is a locked turf and therefore cannot be claimed.");
- }
- if(TurfInfo[turfid][tCapturer] == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This turf is already being captured by you.");
- }
- if(GetFactionType(playerid) != FACTION_POLICE && TurfInfo[turfid][tCapturer] != INVALID_PLAYER_ID && PlayerInfo[TurfInfo[turfid][tCapturer]][pGang] == PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This turf is already being claimed by your gang.");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be onfoot in order to use this command.");
- }
- foreach(new i : Player)
- {
- if(i != playerid && GetNearbyTurf(i) == turfid && !PlayerInfo[i][pInjured] && !PlayerInfo[i][pAdminDuty] && !PlayerInfo[i][pAcceptedHelp] && GetPlayerState(i) != PLAYER_STATE_SPECTATING) {
- if(GetFactionType(playerid) != FACTION_POLICE && GetFactionType(i) == FACTION_POLICE && !PlayerInfo[i][pInjured]) {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to claim right now. There are cops still alive in your turf.");
- } else if(PlayerInfo[i][pGang] >= 0 && PlayerInfo[i][pGang] != PlayerInfo[playerid][pGang] && !PlayerInfo[i][pInjured]) {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to claim right now. There are rival gang members still alive in your turf.");
- }
- }
- }
- if(PlayerInfo[playerid][pGang] >= 0)
- {
- if(GangInfo[PlayerInfo[playerid][pGang]][gTurfTokens] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your gang doesn't have any turf tokens left.");
- }
- foreach(new i : Player)
- {
- if(GetNearbyTurf(i) == turfid && PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang])
- {
- count++;
- }
- }
- if(count < 2)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least 2 members of your gang in this turf to claim it.");
- }
- else
- {
- GangInfo[PlayerInfo[playerid][pGang]][gTurfTokens]--;
- SendTurfMessage(turfid, COLOR_YELLOW, "Turf wars: %s has attempted to claim %s for %s. It will be their turf in 10 minutes!", GetPlayerRPName(playerid), TurfInfo[turfid][tName], GangInfo[PlayerInfo[playerid][pGang]][gName]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE gangs SET turftokens = turftokens - 1 WHERE id = %i", PlayerInfo[playerid][pGang]);
- mysql_tquery(connectionID, queryBuffer);
- }
- }
- else if(GetFactionType(playerid) == FACTION_POLICE && PlayerInfo[playerid][pGang] == -1)
- {
- if(FactionInfo[PlayerInfo[playerid][pFaction]][fTurfTokens] <= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your faction doesn't have any turf tokens left.");
- }
-
- FactionInfo[PlayerInfo[playerid][pFaction]][fTurfTokens]--;
- SendTurfMessage(turfid, COLOR_YELLOW, "Turf wars: Officer %s has attempted to claim back %s. It will be civilian owned in 10 minutes!", GetPlayerRPName(playerid), TurfInfo[turfid][tName]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE factions SET turftokens = turftokens - 1 WHERE id = %i", PlayerInfo[playerid][pFaction]);
- mysql_tquery(connectionID, queryBuffer);
- }
- TurfInfo[turfid][tCapturer] = playerid;
- TurfInfo[turfid][tCaptureTime] = 10;
- ReloadTurf(turfid);
- return 1;
- }
- CMD:reclaim(playerid, params[])
- {
- new turfid;
- if(PlayerInfo[playerid][pGang] == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of any gang at the moment.");
- }
- if((turfid = GetNearbyTurf(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any turfs.");
- }
- if(GetFactionType(playerid) == FACTION_POLICE && PlayerInfo[playerid][pGang] >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're not allowed to claim turfs as a law enforcer and a gang member.");
- }
- if(PlayerInfo[playerid][pInjured])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't reclaim a turf while injured.");
- }
- if(TurfInfo[turfid][tCapturedGang] != PlayerInfo[playerid][pGang])
- {
- return SendClientMessage(playerid, COLOR_GREY, "This turf does not belong to your gang. Therefore you can't reclaim it.");
- }
- if(TurfInfo[turfid][tType] == 8)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This is a locked turf and therefore cannot be claimed.");
- }
- if(TurfInfo[turfid][tCapturer] == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This turf is not being claimed by anyone. Therefore you can't reclaim it.");
- }
- foreach(new i : Player)
- {
- if(i != playerid && GetNearbyTurf(i) == turfid) {
- if(GetFactionType(playerid) != FACTION_POLICE && GetFactionType(i) == FACTION_POLICE && !PlayerInfo[i][pInjured]) {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to claim right now. There are cops still alive in your turf.");
- } else if(PlayerInfo[i][pGang] >= 0 && PlayerInfo[i][pGang] != PlayerInfo[playerid][pGang] && !PlayerInfo[i][pInjured]) {
- return SendClientMessage(playerid, COLOR_GREY, "You are unable to claim right now. There are rival gang members still alive in your turf.");
- }
- }
- }
- SendTurfMessage(turfid, COLOR_YELLOW, "Turf wars: %s has reclaimed %s for %s and ended the turf war.", GetPlayerRPName(playerid), TurfInfo[turfid][tName], GangInfo[PlayerInfo[playerid][pGang]][gName]);
- TurfInfo[turfid][tCapturer] = INVALID_PLAYER_ID;
- TurfInfo[turfid][tCaptureTime] = 0;
- ReloadTurf(turfid);
- return 1;
- }
- CMD:guninv(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "|____ My Weapons ____|");
- for(new i = 0; i < 13; i ++)
- {
- if(PlayerInfo[playerid][pWeapons][i] > 0)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(ID: %i) %s", PlayerInfo[playerid][pWeapons][i], GetWeaponNameEx(PlayerInfo[playerid][pWeapons][i]));
- }
- }
- return 1;
- }
- CMD:armsdealer(playerid, params[])
- {
- if(PlayerInfo[playerid][pHours] < 2 || PlayerInfo[playerid][pWeaponRestricted] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are either weapon restricted or you played less than two playing hours.");
- }
- for(new i = 0; i < MAX_GANGS; i ++)
- {
- if(GangInfo[i][gArmsDealer] && IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[i][gArmsX], GangInfo[i][gArmsY], GangInfo[i][gArmsZ]) && GetPlayerVirtualWorld(playerid) == GangInfo[i][gArmsWorld])
- {
- PlayerInfo[playerid][pDealerGang] = i;
- ShowDialogToPlayer(playerid, DIALOG_GANGARMSDEALER);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any gang owned arms dealers.");
- return 1;
- }
- CMD:drugdealer(playerid, params[])
- {
- for(new i = 0; i < MAX_GANGS; i ++)
- {
- if(GangInfo[i][gDrugDealer] && IsPlayerInRangeOfPoint(playerid, 3.0, GangInfo[i][gDrugX], GangInfo[i][gDrugY], GangInfo[i][gDrugZ]) && GetPlayerVirtualWorld(playerid) == GangInfo[i][gDrugWorld])
- {
- PlayerInfo[playerid][pDealerGang] = i;
- ShowDialogToPlayer(playerid, DIALOG_GANGDRUGDEALER);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You are not in range of any gang owned drug dealers.");
- return 1;
- }
- CMD:loadammo(playerid, params[])
- {
- new weaponid, type[14];
- if(sscanf(params, "is[14]", weaponid, type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /loadammo [weaponid] [type] (/guninv for weapon IDs)");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: Normal, HollowPoint, PoisonTip, FMJ");
- return 1;
- }
- if(!(1 <= weaponid <= 46) || PlayerInfo[playerid][pWeapons][weaponSlotIDs[weaponid]] != weaponid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon. /guninv for a list of your weapons.");
- }
- if(!(22 <= weaponid <= 34))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That weapon can't be loaded with ammunition.");
- }
- /*if(PlayerInfo[playerid][pJoinedEvent] > 0 || PlayerInfo[playerid][pPaintball] > 0 || PlayerInfo[playerid][pDueling] != INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }*/
- if(!strcmp(type, "normal", true))
- {
- PlayerInfo[playerid][pAmmoType] = AMMOTYPE_NORMAL;
- PlayerInfo[playerid][pAmmoWeapon] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s loads their %s with normal ammunition.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessage(playerid, COLOR_AQUA, "You have loaded this weapon with {00AA00}Normal{33CCFF} ammunition.");
- ApplyAnimation(playerid, "PYTHON", "python_reload", 4.1, 0, 0, 0, 0, 0);
- }
- else if(!strcmp(type, "hollowpoint", true))
- {
- if(!PlayerInfo[playerid][pHPAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no hollow point ammunition to load this weapon with.");
- }
- PlayerInfo[playerid][pAmmoType] = AMMOTYPE_HP;
- PlayerInfo[playerid][pAmmoWeapon] = weaponid;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s loads their %s with hollow point ammunition.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessage(playerid, COLOR_AQUA, "You have loaded this weapon with {00AA00}Hollow point{33CCFF} ammunition.");
- ApplyAnimation(playerid, "PYTHON", "python_reload", 4.1, 0, 0, 0, 0, 0);
- }
- else if(!strcmp(type, "poisontip", true))
- {
- if(!PlayerInfo[playerid][pPoisonAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no poison tip ammunition to load this weapon with.");
- }
- PlayerInfo[playerid][pAmmoType] = AMMOTYPE_POISON;
- PlayerInfo[playerid][pAmmoWeapon] = weaponid;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s loads their %s with poison tip ammunition.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessage(playerid, COLOR_AQUA, "You have loaded this weapon with {00AA00}Poison tip{33CCFF} ammunition.");
- ApplyAnimation(playerid, "PYTHON", "python_reload", 4.1, 0, 0, 0, 0, 0);
- }
- else if(!strcmp(type, "fmj", true))
- {
- if(!PlayerInfo[playerid][pFMJAmmo])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have no full metal jacket ammunition to load this weapon with.");
- }
- PlayerInfo[playerid][pAmmoType] = AMMOTYPE_FMJ;
- PlayerInfo[playerid][pAmmoWeapon] = weaponid;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s loads their %s with full metal jacket ammunition.", GetPlayerRPName(playerid), GetWeaponNameEx(weaponid));
- SendClientMessage(playerid, COLOR_AQUA, "You have loaded this weapon with {00AA00}Full metal jacket{33CCFF} ammunition.");
- ApplyAnimation(playerid, "PYTHON", "python_reload", 4.1, 0, 0, 0, 0, 0);
- }
- SetPlayerWeapons(playerid);
- return 1;
- }
- CMD:createturf(playerid, params[])
- {
- new type, name[32];
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[32]", type, name))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /createturf [special type] [name]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (0) None (1) Hollow point (2) Poison tip (3) FMJ ammo (4) Weapon pipeline");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (5) Traphouse (6) Crackhouse (7) Sales taxing (8) Locked");
- return 1;
- }
- if(!(0 <= type <= 8))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- if(GetNearbyTurf(playerid) >= 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a turf in range. Find somewhere else to create this one.");
- }
- if(GetPlayerInterior(playerid) > 0 || GetPlayerVirtualWorld(playerid) > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You cannot create turfs indoors.");
- }
- PlayerInfo[playerid][pTurfType] = type;
- PlayerInfo[playerid][pZoneType] = ZONETYPE_TURF;
- strcpy(PlayerInfo[playerid][pTurfName], name, 32);
- ShowPlayerDialog(playerid, DIALOG_CREATEZONE, DIALOG_STYLE_MSGBOX, "Turf creation system", "You have entered turf creation mode. In order to create a turf you need\nto mark four points around the area you want your turf to be in, forming\na square. You must make a square or your outcome won't be as expected.\n\nPress {00AA00}Confirm{A9C4E4} to begin turf creation.", "Confirm", "Cancel");
- return 1;
- }
- CMD:turfcancel(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(PlayerInfo[playerid][pZoneCreation] != ZONETYPE_TURF)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not creating a turf at the moment.");
- }
- CancelZoneCreation(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "** Land creation cancelled.");
- return 1;
- }
- CMD:gototurf(playerid, params[])
- {
- new turfid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "i", turfid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gototurf [turfid]");
- }
- if(!(0 <= turfid < MAX_TURFS) || !TurfInfo[turfid][tExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid turf.");
- }
- GameTextForPlayer(playerid, "~w~Teleported", 5000, 1);
- SetPlayerPos(playerid, TurfInfo[turfid][tMinX], TurfInfo[turfid][tMinY], TurfInfo[turfid][tHeight]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- CMD:removeturf(playerid, params[])
- {
- new turfid;
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "i", turfid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /removeturf [turfid]");
- }
- if(!(0 <= turfid < MAX_TURFS) || !TurfInfo[turfid][tExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid turf.");
- }
- GangZoneDestroy(TurfInfo[turfid][tGangZone]);
- DestroyDynamicArea(TurfInfo[turfid][tArea]);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "DELETE FROM turfs WHERE id = %i", turfid);
- mysql_tquery(connectionID, queryBuffer);
- TurfInfo[turfid][tExists] = 0;
- TurfInfo[turfid][tCapturedGang] = 0;
- TurfInfo[turfid][tType] = 0;
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have removed turf %i.", turfid);
- return 1;
- }
- CMD:editturf(playerid, params[])
- {
- new turfid, option[14], param[32];
- if(PlayerInfo[playerid][pAdmin] < 5 && !PlayerInfo[playerid][pGangMod])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "is[14]S()[32]", turfid, option, param))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editturf [turfid] [option]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: Name, CapturedBy, Gang, Type, Time");
- return 1;
- }
- if(!(0 <= turfid < MAX_TURFS) || !TurfInfo[turfid][tExists])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid turf.");
- }
- if(!strcmp(option, "name", true))
- {
- if(isnull(param))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editturf [turfid] [name] [text]");
- }
- strcpy(TurfInfo[turfid][tName], param, 32);
- ReloadTurf(turfid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET name = '%e' WHERE id = %i", TurfInfo[turfid][tName], turfid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the name of turf %i to %s.", GetPlayerRPName(playerid), turfid, param);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the name of turf %i to {F7A763}%s{33CCFF}.", turfid, param);
- }
- else if(!strcmp(option, "capturedby", true))
- {
- if(isnull(param) || strlen(params) > 24)
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editturf [turfid] [capturedby] [name]");
- }
- strcpy(TurfInfo[turfid][tCapturedBy], param, MAX_PLAYER_NAME);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET capturedby = '%e' WHERE id = %i", TurfInfo[turfid][tCapturedBy], turfid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the capturer of turf %i to %s.", GetPlayerRPName(playerid), turfid, param);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the capturer of turf %i to {F7A763}%s{33CCFF}.", turfid, param);
- }
- else if(!strcmp(option, "gang", true))
- {
- new gangid;
- if(sscanf(param, "i", gangid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editturf [turfid] [gang] [gangid (-1 = none)]");
- }
- if(!(-1 <= gangid < MAX_GANGS) || (gangid >= 0 && !GangInfo[gangid][gSetup]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid gang.");
- }
- TurfInfo[turfid][tCapturedGang] = gangid;
- ReloadTurf(turfid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET capturedgang = %i WHERE id = %i", TurfInfo[turfid][tCapturedGang], turfid);
- mysql_tquery(connectionID, queryBuffer);
- if(gangid == -1)
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has reset the capturing gang of turf %i.", GetPlayerRPName(playerid), turfid);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have reset the capturing gang of turf %i.", turfid);
- }
- else
- {
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the capturing gang of turf %i to %s.", GetPlayerRPName(playerid), turfid, GangInfo[gangid][gName]);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the capturing gang of turf %i to {00AA00}%s{33CCFF}.", turfid, GangInfo[gangid][gName]);
- }
- }
- else if(!strcmp(option, "type", true))
- {
- new type;
- if(sscanf(param, "i", type))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editturf [turfid] [type] [value]");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (0) None (1) Hollow point (2) Poison tip (3) FMJ ammo (4) Weapon pipeline");
- SendClientMessage(playerid, COLOR_GREY3, "List of types: (5) Traphouse (6) Crackhouse (7) Sales taxing (8) Locked");
- return 1;
- }
- if(!(0 <= type <= 8))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid type.");
- }
- TurfInfo[turfid][tType] = type;
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET type = %i WHERE id = %i", TurfInfo[turfid][tType], turfid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the type of turf %i to %i.", GetPlayerRPName(playerid), turfid, type);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the type of turf %i to %i.", turfid, type);
- }
- else if(!strcmp(option, "time", true))
- {
- new value;
- if(sscanf(param, "i", value))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /editturf [turfid] [time] [hours (0-24)]");
- }
- if(!(0 <= value <= 24))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount of hours must range from 0 to 24.");
- }
- TurfInfo[turfid][tTime] = value;
- if(TurfInfo[turfid][tTime] == 0 && TurfInfo[turfid][tType] != 8)
- {
- SendTurfMessage(turfid, COLOR_YELLOW, "Turf wars: %s is now available to capture.", TurfInfo[turfid][tName]);
- }
- else
- {
- TurfInfo[turfid][tCapturer] = INVALID_PLAYER_ID;
- TurfInfo[turfid][tCaptureTime] = 0;
- }
- ReloadTurf(turfid);
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE turfs SET time = %i WHERE id = %i", TurfInfo[turfid][tTime], turfid);
- mysql_tquery(connectionID, queryBuffer);
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has set the time of turf %i to %i hours.", GetPlayerRPName(playerid), turfid, value);
- SendClientMessageEx(playerid, COLOR_AQUA, "You have set the time of turf %i to %i hours.", turfid, value);
- }
- return 1;
- }
- CMD:turfinfo(playerid, params[])
- {
- new turfid, name[32] = "None";
- if((turfid = GetNearbyTurf(playerid)) == -1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of any turfs.");
- }
- if(TurfInfo[turfid][tCapturedGang] >= 0)
- {
- strcpy(name, GangInfo[TurfInfo[turfid][tCapturedGang]][gName]);
- }
- SendClientMessageEx(playerid, COLOR_GREEN, "|____ %s ____|", TurfInfo[turfid][tName]);
- switch(TurfInfo[turfid][tType])
- {
- case 0: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 1: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Hollow point ammo)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 2: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Poison tip ammo)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 3: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: FMJ ammo)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 4: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Weapons)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 5: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Traphouse)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 6: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Crackhouse)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 7: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Sales Tax)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- case 8: SendClientMessageEx(playerid, COLOR_GREY2, "(Gang: %s) - (Captured by: %s) - (Available in: %i hours) - (Perk: Locked)", name, TurfInfo[turfid][tCapturedBy], TurfInfo[turfid][tTime]);
- }
- if(TurfInfo[turfid][tCapturer] != INVALID_PLAYER_ID)
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "(Capturing: %s) - (Captured in: %i minutes)", GetPlayerRPName(TurfInfo[turfid][tCapturer]), TurfInfo[turfid][tCaptureTime]);
- }
- return 1;
- }
- CMD:carhelp(playerid, params[])
- {
- return cmd_vehiclehelp(playerid, params);
- }
- CMD:armbomb(playerid, params[])
- {
- return cmd_plantbomb(playerid, params);
- }
- CMD:defend(playerid, params[])
- {
- new targetid, amount, time = (5 - GetJobLevel(playerid, JOB_LAWYER)) * 30;
- if(!PlayerHasJob(playerid, JOB_LAWYER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Lawyer.");
- }
- if(gettime() - PlayerInfo[playerid][pLastDefend] < time)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only defend a player every %i seconds. Please wait %i more seconds.", time, time - (gettime() - PlayerInfo[playerid][pLastDefend]));
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /defend [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't defend yourself.");
- }
- if(!PlayerInfo[targetid][pWantedLevel])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not wanted.");
- }
- PlayerInfo[targetid][pDefendOffer] = playerid;
- PlayerInfo[targetid][pDefendPrice] = amount;
- PlayerInfo[playerid][pLastDefend] = gettime();
- SendClientMessageEx(targetid, COLOR_AQUA, "** Lawyer %s has offered to defend your wanted level for $%i. (/accept lawyer)", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have offered to defend %s's wanted level for $%i.", GetPlayerRPName(playerid), amount);
- return 1;
- }
- CMD:free(playerid, params[])
- {
- new targetid, time = GetJobLevel(playerid, JOB_LAWYER);
- if(!PlayerHasJob(playerid, JOB_LAWYER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Lawyer.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /free [playerid]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(PlayerInfo[targetid][pJailType] != 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is not in IC jail.");
- }
- if(PlayerInfo[targetid][pJailTime] < time * 60)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't free this player, their jail time expires soon.");
- }
- PlayerInfo[targetid][pJailTime] -= time * 60;
- SendClientMessageEx(targetid, COLOR_AQUA, "** Lawyer %s has reduced your jail sentence by %i minutes.", GetPlayerRPName(playerid), time);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have reduced %s's jail sentence by %i minutes.", GetPlayerRPName(targetid), time);
- return 1;
- }
- CMD:eject(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /eject [playerid]");
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not driving any vehicle.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInVehicle(targetid, GetPlayerVehicleID(playerid)))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected, or is not in your vehicle.");
- }
- RemovePlayerFromVehicle(targetid);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s ejects %s from the vehicle.", GetPlayerRPName(playerid), GetPlayerRPName(targetid));
- return 1;
- }
- CMD:dicebet(playerid, params[])
- {
- new targetid, amount;
- if(!IsPlayerInRangeOfPoint(playerid, 50.0, 1099.8420, 20.3554, 1000.6797))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the casino.");
- }
- if(PlayerInfo[playerid][pLevel] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need to be at least level 3+ in order to dice bet.");
- }
- if(sscanf(params, "ui", targetid, amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /dicebet [playerid] [amount]");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(PlayerInfo[targetid][pLevel] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player must be at least level 3+ to bet with them.");
- }
- if(amount < 1)
- {
- return SendClientMessage(playerid, COLOR_GREY, "The amount can't be below $1.");
- }
- if(PlayerInfo[playerid][pCash] < amount)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money to bet.");
- }
- if(gettime() - PlayerInfo[playerid][pLastBet] < 10)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only use this command every 10 seconds. Please wait %i more seconds.", 10 - (gettime() - PlayerInfo[playerid][pLastBet]));
- }
- PlayerInfo[targetid][pDiceOffer] = playerid;
- PlayerInfo[targetid][pDiceBet] = amount;
- PlayerInfo[playerid][pLastBet] = gettime();
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has initiated a dice bet with you for $%i (/accept dicebet).", GetPlayerRPName(playerid), amount);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have initiated a dice bet against %s for $%i.", GetPlayerRPName(targetid), amount);
- return 1;
- }
- CMD:calculate(playerid, params[])
- {
- new option, Float:value1, Float:value2;
- if(sscanf(params, "fcf", value1, option, value2))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /calculate [value 1] [option] [value 2]");
- SendClientMessage(playerid, COLOR_GREY3, "List of options: (+) Add (-) Subtract (*) Multiply (/) Divide");
- return 1;
- }
- if(option == '/' && value2 == 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't divide by zero.");
- }
- if(option == '+') {
- SendClientMessageEx(playerid, COLOR_GREEN, "** Result: %.2f + %.2f = %.2f", value1, value2, value1 + value2);
- } else if(option == '-') {
- SendClientMessageEx(playerid, COLOR_GREEN, "** Result: %.2f - %.2f = %.2f", value1, value2, value1 - value2);
- } else if(option == '*' || option == 'x') {
- SendClientMessageEx(playerid, COLOR_GREEN, "** Result: %.2f * %.2f = %.2f", value1, value2, value1 * value2);
- } else if(option == '/') {
- SendClientMessageEx(playerid, COLOR_GREEN, "** Result: %.2f / %.2f = %.2f", value1, value2, value1 / value2);
- }
- return 1;
- }
- CMD:serverstats(playerid, params[])
- {
- new houses, businesses, garages, vehicles, lands, entrances, turfs, points, gangs, factions;
- for(new i = 0; i < MAX_HOUSES; i ++) if(HouseInfo[i][hExists]) houses++;
- for(new i = 0; i < MAX_BUSINESSES; i ++) if(BusinessInfo[i][bExists]) businesses++;
- for(new i = 0; i < MAX_GARAGES; i ++) if(GarageInfo[i][gExists]) garages++;
- for(new i = 0; i < MAX_VEHICLES; i ++) if(IsValidVehicle(i)) vehicles++;
- for(new i = 0; i < MAX_LANDS; i ++) if(LandInfo[i][lExists]) lands++;
- for(new i = 0; i < MAX_ENTRANCES; i ++) if(EntranceInfo[i][eExists]) entrances++;
- for(new i = 0; i < MAX_TURFS; i ++) if(TurfInfo[i][tExists]) turfs++;
- for(new i = 0; i < MAX_POINTS; i ++) if(PointInfo[i][pExists]) points++;
- for(new i = 0; i < MAX_GANGS; i ++) if(GangInfo[i][gSetup]) gangs++;
- for(new i = 0; i < MAX_FACTIONS; i ++) if(FactionInfo[i][fType]) factions++;
- SendClientMessage(playerid, COLOR_GREEN, "|_____ Federal City Roleplay Stats _____|");
- SendClientMessageEx(playerid, COLOR_GREY2, "Connections: %i - Registered: %i - Kill Counter: %i - Death Counter: %i - Hours Played: %i", gConnections, gTotalRegistered, gTotalKills, gTotalDeaths, gTotalHours);
- SendClientMessageEx(playerid, COLOR_GREY2, "Houses: %i/%i - Businesses: %i/%i - Garages: %i/%i - Lands: %i/%i - Vehicles: %i/%i", houses, MAX_HOUSES, businesses, MAX_BUSINESSES, garages, MAX_GARAGES, lands, MAX_LANDS, vehicles, MAX_VEHICLES);
- SendClientMessageEx(playerid, COLOR_GREY2, "Entrances: %i/%i - Turfs: %i/%i - Points: %i/%i - Gangs: %i/%i - Factions: %i/%i", entrances, MAX_ENTRANCES, turfs, MAX_TURFS, points, MAX_POINTS, gangs, MAX_GANGS, factions, MAX_FACTIONS);
- SendClientMessageEx(playerid, COLOR_GREY2, "Players Online: %i/%i - Player Record: %i - Record Date: %s - Anticheat Bans: %i", Iter_Count(Player), MAX_PLAYERS, gPlayerRecord, gRecordDate, gAnticheatBans);
- return 1;
- }
- CMD:ww(playerid, params[])
- {
- return cmd_pw(playerid, params);
- }
- CMD:watch(playerid, params[])
- {
- return cmd_pw(playerid, params);
- }
- CMD:pw(playerid, params[])
- {
- if(!PlayerInfo[playerid][pWatch])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a pocket watch. You can buy one at 24/7.");
- }
-
- if(!PlayerInfo[playerid][pWatchOn])
- {
- if(PlayerInfo[playerid][pToggleTextdraws])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't turn on your watch as you have textdraws toggled! (/toggle textdraws)");
- }
-
- PlayerInfo[playerid][pWatchOn] = 1;
- TextDrawShowForPlayer(playerid, TimeTD);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns on their pocket watch.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[playerid][pWatchOn] = 0;
- TextDrawHideForPlayer(playerid, TimeTD);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off their pocket watch.", GetPlayerRPName(playerid));
- }
-
- return 1;
- }
- CMD:gps(playerid, params[])
- {
- if(!PlayerInfo[playerid][pGPS])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have a GPS. You can buy one at 24/7.");
- }
-
- if(!PlayerInfo[playerid][pGPSOn])
- {
- if(PlayerInfo[playerid][pToggleTextdraws])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't turn on your GPS as you have textdraws toggled! (/toggle textdraws)");
- }
-
- PlayerInfo[playerid][pGPSOn] = 1;
-
- PlayerTextDrawSetString(playerid, PlayerInfo[playerid][pText][0], "Loading...");
- PlayerTextDrawShow(playerid, PlayerInfo[playerid][pText][0]);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns on their GPS.", GetPlayerRPName(playerid));
- }
- else
- {
- PlayerInfo[playerid][pGPSOn] = 0;
- PlayerTextDrawHide(playerid, PlayerInfo[playerid][pText][0]);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s turns off their GPS.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:fixvw(playerid, params[])
- {
- if(PlayerInfo[playerid][pPaintball] || PlayerInfo[playerid][pJoinedEvent])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(GetPlayerVirtualWorld(playerid) > 0 && GetPlayerInterior(playerid) == 0)
- {
- SetPlayerVirtualWorld(playerid, 0);
- SendClientMessage(playerid, COLOR_GREY, "Your virtual world has been fixed.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Your virtual world is not bugged at the moment.");
- }
-
- return 1;
- }
- CMD:stuck(playerid, params[])
- {
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pAcceptedHelp] || PlayerInfo[playerid][pMiningTime] > 0 || PlayerInfo[playerid][pFishTime] > 0 || GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CARRY || IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
- if(gettime() - PlayerInfo[playerid][pLastStuck] < 5)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can only use this command every 5 seconds. Please wait %i more seconds.", 5 - (gettime() - PlayerInfo[playerid][pLastStuck]));
- }
- new
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z + 0.5);
- ClearAnimations(playerid);
- TogglePlayerControllable(playerid, 1);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.1, 0, 0, 0, 0, 0, 1);
- SendClientMessage(playerid, COLOR_GREY, "You are no longer stuck.");
-
- PlayerInfo[playerid][pLastStuck] = gettime();
- return 1;
- }
- CMD:badge(playerid, params[])
- {
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC && GetFactionType(playerid) != FACTION_NEWS && GetFactionType(playerid) != FACTION_GOVERNMENT)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not a part of any factions at the moment.");
- }
- if(PlayerInfo[playerid][pTazedTime] > 0 || PlayerInfo[playerid][pInjured] > 0 || PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pCuffed] > 0 || PlayerInfo[playerid][pJailTime] > 0 || /*PlayerInfo[playerid][pJoinedEvent] > 0 ||*/ PlayerInfo[playerid][pPaintball])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command at the moment.");
- }
-
- if(!PlayerInfo[playerid][pDuty])
- {
- PlayerInfo[playerid][pDuty] = 1;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes out their badge from their pocket and attaches it to their shirt.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, "You have enabled your badge. You now appear on-duty for all players.");
- }
- else
- {
- PlayerInfo[playerid][pDuty] = 0;
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s takes off their badge and pockets it.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, "You have disabled your badge. You no longer appear on-duty for any players.");
- }
-
- return 1;
- }
- CMD:duel(playerid, params[])
- {
- new target1, target2, Float:health, Float:armor, weapon1, weapon2;
-
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!PlayerInfo[playerid][pAdminDuty] && PlayerInfo[playerid][pAdmin] < 6)
- {
- return SendClientMessage(playerid, COLOR_GREY, "This command requires you to be on admin duty. /aduty to go on duty.");
- }
- if(sscanf(params, "uuffii", target1, target2, health, armor, weapon1, weapon2))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /duel [player1] [player2] [health] [armor] [weapon1] [weapon2]");
- }
- if(target1 == INVALID_PLAYER_ID || target2 == INVALID_PLAYER_ID)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- if(health < 1.0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Health can't be under 1.0.");
- }
- if(!(0 <= weapon1 <= 46) || !(0 <= weapon2 <= 46))
- {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid weapon. Valid weapon IDs range from 0 to 46.");
- }
-
- new rand = random(99999);
-
- SavePlayerVariables(target1);
- SavePlayerVariables(target2);
-
- ResetPlayerWeapons(target1);
- ResetPlayerWeapons(target2);
-
- SetPlayerPos(target1, 1413.1495, -15.9198, 1000.9246);
- SetPlayerPos(target2, 1367.6084, -17.7317, 1000.9219);
- SetPlayerInterior(target1, 1);
- SetPlayerInterior(target2, 1);
- SetPlayerVirtualWorld(target1, rand);
- SetPlayerVirtualWorld(target2, rand);
-
- SetPlayerHealth(target1, health);
- SetPlayerArmour(target1, armor);
- SetPlayerHealth(target2, health);
- SetPlayerArmour(target2, armor);
-
- GivePlayerWeaponEx(target1, weapon1, true);
- GivePlayerWeaponEx(target1, weapon2, true);
- GivePlayerWeaponEx(target2, weapon1, true);
- GivePlayerWeaponEx(target2, weapon2, true);
-
- GameTextForPlayer(target1, "~r~Duel time!", 3000, 3);
- GameTextForPlayer(target2, "~r~Duel time!", 3000, 3);
-
- PlayerInfo[target1][pDueling] = target2;
- PlayerInfo[target2][pDueling] = target1;
-
- SendAdminMessage(COLOR_LIGHTRED, "AdmCmd: %s has forced %s and %s into a duel.", GetPlayerRPName(playerid), GetPlayerRPName(target1), GetPlayerRPName(target2));
- return 1;
- }
- CMD:mole(playerid, params[]) // Made by my boy Josh Einstein.
- {
- if(GetFactionType(playerid) != FACTION_HITMAN && PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /mole [text]");
- SendClientMessage(playerid, COLOR_YELLOW, "This command sends a SMS to the entire server. Abusing this command will result in heavy punishment.");
- return 1;
- }
- SendClientMessageToAllEx(COLOR_YELLOW, "** SMS from MOLE (0): %s **", params);
- return 1;
- }
- CMD:info(playerid, params[])
- {
- return cmd_information(playerid, params);
- }
- CMD:information(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "|____ Server Information ____|");
- SendClientMessage(playerid, COLOR_YELLOW, "Discord : https://discord.gg/MpWv8FC");
- SendClientMessage(playerid, COLOR_GREEN, "Server IP : 94.23.208.199:7039");
- SendClientMessage(playerid, COLOR_YELLOW, "Server's staff : Edward Collins (owner), Demarco Houston(management) , Alex Bio(management).");
- SendClientMessage(playerid, COLOR_GREEN, "|____ Enjoy your stay folks! ____|");
- return 1;
- }
-
- CMD:takecall(playerid, params[])
- {
- new targetid, Float:x, Float:y, Float:z;
-
- if(!PlayerHasJob(playerid, JOB_MECHANIC) && !PlayerHasJob(playerid, JOB_TAXIDRIVER))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a Mechanic or Taxi Driver.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /takecall [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
-
- if(PlayerHasJob(playerid, JOB_MECHANIC) && PlayerInfo[targetid][pMechanicCall] > 0)
- {
- if(GetPlayerInterior(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently unreachable.");
- }
- PlayerInfo[targetid][pMechanicCall] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- GetPlayerPos(targetid, x, y, z);
- SetPlayerCheckpoint(playerid, x, y, z, 5.0);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's mechanic call. Their location was marked on your map.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has accepted your mechanic call. Please wait patiently until they arrive.", GetPlayerRPName(playerid));
- }
- else if(PlayerHasJob(playerid, JOB_TAXIDRIVER) && PlayerInfo[targetid][pTaxiCall] > 0)
- {
- if(GetPlayerInterior(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently unreachable.");
- }
- PlayerInfo[targetid][pTaxiCall] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- GetPlayerPos(targetid, x, y, z);
- SetPlayerCheckpoint(playerid, x, y, z, 5.0);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's taxi call. Their location was marked on your map.", GetPlayerRPName(targetid));
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has accepted your taxi call. Please wait patiently until they arrive.", GetPlayerRPName(playerid));
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has no calls which can be taken.");
- }
- return 1;
- }
- CMD:listcallers(playerid, params[])
- {
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
-
- SendClientMessage(playerid, COLOR_GREEN, "|____ Emergency Calls ____|");
-
- foreach(new i : Player)
- {
- if((PlayerInfo[i][pEmergencyCall] > 0) && ((PlayerInfo[i][pEmergencyType] == FACTION_MEDIC && GetFactionType(playerid) == FACTION_MEDIC) || (PlayerInfo[i][pEmergencyType] == FACTION_POLICE && IsLawEnforcement(playerid))))
- {
- SendClientMessageEx(playerid, COLOR_GREY2, "** %s[%i] - Expiry: %i seconds - Emergency: %s", GetPlayerRPName(i), i, PlayerInfo[i][pEmergencyCall], PlayerInfo[i][pEmergency]);
- }
- }
-
- return 1;
- }
- CMD:trackcall(playerid, params[])
- {
- new targetid, Float:x, Float:y, Float:z;
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /trackcall [playerid]");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!PlayerInfo[targetid][pEmergencyCall])
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player hasn't called 911 recently or their call expired.");
- }
- if(!GetPlayerPosEx(targetid, x, y, z))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently unreachable.");
- }
- //PlayerInfo[targetid][pEmergencyCall] = 0;
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, x, y, z, 5.0);
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have accepted %s's emergency call. Their location was marked on your map.", GetPlayerRPName(targetid));
- if(PlayerInfo[targetid][pEmergencyCall] == FACTION_MEDIC)
- {
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has accepted your emergency call. Please wait patiently until they arrive.", GetPlayerRPName(playerid));
- }
- return 1;
- }
- CMD:startchat(playerid, params[])
- {
- new targetid;
-
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /startchat [playerid]");
- }
- if(IsPlayerChatActive(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are already in an active chat. /invitechat to invite them.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(IsPlayerChatActive(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is in an active chat with another admin.");
- }
- chattingWith[playerid]{targetid} = true;
- chattingWith[targetid]{playerid} = true;
-
- SendClientMessageEx(targetid, COLOR_YELLOW, "Administrator %s has started a chat with you. /(re)ply to speak with this admin.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_YELLOW, "You have started a chat with %s (ID %i). /(re)ply to speak to the player.", GetPlayerRPName(targetid), targetid);
- return 1;
- }
- CMD:invitechat(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /invitechat [playerid]");
- }
- if(!IsPlayerChatActive(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have not started a chat yet. /startchat to start one.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(IsPlayerChatActive(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is in an active chat with another admin.");
- }
- chattingWith[playerid]{targetid} = true;
- chattingWith[targetid]{playerid} = true;
- SendClientMessageEx(targetid, COLOR_YELLOW, "Administrator %s has invited you to a chat. /(re)ply to speak with them.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_YELLOW, "You have invited %s (ID %i) to your chat.", GetPlayerRPName(targetid), targetid);
- return 1;
- }
- CMD:kickchat(playerid, params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /kickchat [playerid]");
- }
- if(!IsPlayerChatActive(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have not started a chat yet. /startchat to start one.");
- }
- if(!IsPlayerConnected(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected.");
- }
- if(!chattingWith[playerid]{targetid})
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is currently not in a chat with you.");
- }
- chattingWith[playerid]{targetid} = false;
- chattingWith[targetid]{playerid} = false;
- SendClientMessageEx(targetid, COLOR_YELLOW, "Administrator %s has removed you from the chat.", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_YELLOW, "You have removed %s (ID %i) from your chat.", GetPlayerRPName(targetid), targetid);
- return 1;
- }
- CMD:endchat(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
- }
- if(!IsPlayerChatActive(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You have not started a chat yet. /startchat to start one.");
- }
- foreach(new i : Player)
- {
- if(i == playerid || chattingWith[playerid]{i})
- {
- chattingWith[playerid]{i} = false;
- SendClientMessageEx(i, COLOR_YELLOW, "Administrator %s has ended the chat.", GetPlayerRPName(playerid));
- }
- }
-
- return 1;
- }
- CMD:re(playerid, params[])
- {
- return cmd_reply(playerid, params);
- }
- CMD:reply(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage] /(re)ply [text]");
- }
- if(!IsPlayerChatActive(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You haven't been invited to any chats by an admin.");
- }
-
- foreach(new i : Player)
- {
- if(i == playerid || chattingWith[i]{playerid})
- {
- if(PlayerInfo[playerid][pAdmin] > 1)
- SendClientMessageEx(i, COLOR_YELLOW, "** %s %s (ID %i): %s **", GetAdminRank(playerid), GetPlayerRPName(playerid), playerid, params);
- else
- SendClientMessageEx(i, COLOR_YELLOW, "** Player %s (ID %i): %s **", GetPlayerRPName(playerid), playerid, params);
- }
- }
-
- return 1;
- }
- CMD:gascan(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid), amount;
- if(!vehicleid || GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be driving a vehicle to use this command.");
- }
- if(!VehicleHasEngine(vehicleid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle has no engine which runs off gas.");
- }
- if(sscanf(params, "i", amount))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /gascan [amount]");
- }
- if(amount < 1 || amount > PlayerInfo[playerid][pGasCan])
- {
- return SendClientMessage(playerid, COLOR_GREY, "Insufficient amount.");
- }
- if(vehicleFuel[vehicleid] + amount > 100)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't add that much gasoline to the vehicle.");
- }
-
- PlayerInfo[playerid][pGasCan] -= amount;
- vehicleFuel[vehicleid] += amount;
-
- mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET gascan = %i WHERE uid = %i", PlayerInfo[playerid][pGasCan], PlayerInfo[playerid][pID]);
- mysql_tquery(connectionID, queryBuffer);
-
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s refills the %s's gas tank with %i liters of gasoline.", GetPlayerRPName(playerid), GetVehicleName(vehicleid), amount);
- return 1;
- }
- CMD:robbank(playerid, params[])
- {
- new count;
- if(PlayerInfo[playerid][pLevel] < 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You must be at least level 7+ to use this command.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 20.0, 1667.4260, -972.6691, 683.6873))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the bank.");
- }
- if(RobberyInfo[rTime] > 0)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "The bank can be robbed again in %i hours. You can't rob it now.", RobberyInfo[rTime]);
- }
- if(RobberyInfo[rPlanning])
- {
- return SendClientMessage(playerid, COLOR_GREY, "There is a bank robbery being planned already. Ask the leader to join.");
- }
- if(RobberyInfo[rStarted])
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't rob the bank as a robbery has already started.");
- }
- if(IsLawEnforcement(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't rob the bank as a law enforcer. Ask your boss for a raise.");
- }
-
- foreach(new i : Player)
- {
- if(IsLawEnforcement(i))
- {
- count++;
- }
- }
-
- if(count < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "There needs to be at least 3+ LEO online in order to rob the bank.");
- }
-
- RobberyInfo[rRobbers][0] = playerid;
- RobberyInfo[rPlanning] = 1;
-
- PlayerInfo[playerid][pCP] = CHECKPOINT_MISC;
- SetPlayerCheckpoint(playerid, 1677.2610, -987.6659, 671.1152, 2.0);
-
- SendClientMessage(playerid, COLOR_AQUA, "You have setup a {FF6347}bank robbery{33CCFF}. You need to /robinvite at least 2 more people in order to begin the heist.");
- SendClientMessage(playerid, COLOR_AQUA, "After you've found two additional heisters, you can use /bombvault at the checkpoint to blow the vault.");
- return 1;
- }
-
- CMD:robinvite(playerid, params[])
- {
- new targetid;
-
- if(sscanf(params, "u", targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY3, "[Usage]: /robinvite [playerid]");
- }
- if(!(RobberyInfo[rPlanning] && RobberyInfo[rRobbers][0] == playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are currently not planning a bank robbery.");
- }
- if(!IsPlayerConnected(targetid) || !IsPlayerInRangeOfPlayer(playerid, targetid, 5.0))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The player specified is disconnected or out of range.");
- }
- if(targetid == playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- if(IsPlayerInBankRobbery(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "That player is already in the robbery with you.");
- }
- if(GetBankRobbers() >= MAX_BANK_ROBBERS)
- {
- return SendClientMessageEx(playerid, COLOR_GREY, "You can't have more than %i bank robbers in this robbery.", MAX_BANK_ROBBERS);
- }
- if(IsLawEnforcement(targetid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't invite law enforcement to rob the bank.");
- }
-
- PlayerInfo[targetid][pRobberyOffer] = playerid;
-
- SendClientMessageEx(targetid, COLOR_AQUA, "** %s has invited you to a bank robbery. (/accept robbery)", GetPlayerRPName(playerid));
- SendClientMessageEx(playerid, COLOR_AQUA, "** You have invited %s to join your bank robbery.", GetPlayerRPName(targetid));
- return 1;
- }
- CMD:bombvault(playerid, params[])
- {
- if(RobberyInfo[rPlanning] == 0 && RobberyInfo[rRobbers][0] != playerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are currently not planning a bank robbery.");
- }
- if(GetBankRobbers() < 3)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You need at least two other heisters in your robbery.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1677.2610, -987.6659, 671.1152))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the vault.");
- }
- if(IsValidDynamicObject(RobberyInfo[rObjects][1]))
- {
- return SendClientMessage(playerid, COLOR_GREY, "The vault is already being bombed at the moment.");
- }
-
- RobberyInfo[rObjects][1] = CreateDynamicObject(1654, 1677.787475, -988.009765, 671.625366, 0.000000, 0.000000, 180.680709);
-
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s firmly plants an explosive on the vault door.", GetPlayerRPName(playerid));
- SendClientMessage(playerid, COLOR_WHITE, "** Bomb planted. Shoot at the bomb to blow that sumbitch' up!");
- return 1;
- }
- CMD:lootbox(playerid, params[])
- {
- if(!RobberyInfo[rStarted] && !IsPlayerInBankRobbery(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in an active bank robbery.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1680.2344, -994.6146, 671.0032) && !IsPlayerInRangeOfPoint(playerid, 3.0, 1680.2335, -998.6115, 671.0032) && !IsPlayerInRangeOfPoint(playerid, 3.0, 1680.2344, -1002.5356, 671.0032) && !IsPlayerInRangeOfPoint(playerid, 3.0, 1674.2708, -998.4954, 671.0032) && !IsPlayerInRangeOfPoint(playerid, 3.0, 1674.2708, -994.5173, 671.0032))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not in range of the deposit boxes.");
- }
- if(PlayerInfo[playerid][pLootTime] > 0)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are already looting a deposit box.");
- }
- if(PlayerInfo[playerid][pRobCash] >= 500000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "Your pockets can't hold more than $500000 of money!");
- }
- if(!IsPlayerInBankRobbery(playerid))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not apart of this bank robbery.");
- }
-
- PlayerInfo[playerid][pLootTime] = 5;
-
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant_Loop", 4.1, 1, 0, 0, 0, 0, 1);
- GameTextForPlayer(playerid, "~w~Looting deposit box...", 5000, 3);
- return 1;
- }
- CMD:tune(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1041.3689,-1030.2717,32.0837))
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not at the modding garage location at Temple.");
- }
- if(PlayerInfo[playerid][pCash] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't afford for this operation.");
- }
- new playerstate = GetPlayerState(playerid);
- if(playerstate == PLAYER_STATE_DRIVER)
- {
- ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Hoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
- GivePlayerCash(playerid, -500);
- return 1;
- }
- else
- {
- return SendClientMessage(playerid, COLOR_LIGHTRED, "You cannot modify/tune a car unless you are the driver."); }
- }
- CMD:callsign(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsLawEnforcement(playerid) && GetFactionType(playerid) != FACTION_MEDIC)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this command as you aren't a medic or law enforcer.");
- }
- if(!vehicleid)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You are not inside of any vehicle.");
- }
- if(isnull(params) || strlen(params) > 12)
- {
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /callsign [text ('none' to reset)]");
- }
- if(IsValidDynamic3DTextLabel(vehicleCallsign[vehicleid]))
- {
- DestroyDynamic3DTextLabel(vehicleCallsign[vehicleid]);
- vehicleCallsign[vehicleid] = Text3D:INVALID_3DTEXT_ID;
- if(!strcmp(params, "none", true))
- {
- SendClientMessage(playerid, COLOR_WHITE, "* Callsign removed from the vehicle.");
- }
- }
- if(strcmp(params, "none", true) != 0)
- {
- vehicleCallsign[vehicleid] = CreateDynamic3DTextLabel(params, COLOR_GREY2, 0.0, -3.0, 0.0, 10.0, .attachedvehicle = vehicleid);
- SendClientMessage(playerid, COLOR_WHITE, "* Callsign attached. '/callsign none' to detach the callsign.");
- }
- return 1;
- }
- /*new string[128];
- new pRealName = GetPlayerRPName(playerid)
- CMD:mask(playerid, params[])
- {
- if(PlayerInfo[playerid][pMask] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have a mask");
- return 1;
- }
- if(PlayerInfo[playerid][pLevel] < 5)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not able to use it.");
- return 1;
- }
- if(Maskon[playerid] == 0)
- {
- Maskon[playerid] == 1;
- strmid(PlayerInfo[playerid][pRealName], string, 0, strlen(string), 64);
- format(string, sizeof(string), "stranger %d", PlayerInfo[playerid][Maskon];
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s puts their mask on his face.", GetPlayerRPName(playerid));
- SetPlayerName(playerid, string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerNameTagForPlayer(playerid, i, 0);
- }
- }
- else if(Maskon[playerid] == 1)
- {
- Maskon[playerid] == 0;
- SetPlayerName(playerid, pRealName);
- SendProximityMessage(playerid, 20.0, COLOR_PURPLE, "** %s puts their mask away.", GetPlayerRPName(playerid));
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerNameTagForPlayer(playerid, i, 1 );
- }
- }
- return 1;
- }*/
|