| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396 |
- /* /$$$$$$$ /$$$$$$$
- | $$__ $$| $$__ $$
- | $$ \ $$| $$ \ $$
- Sleepless | $$$$$$$/| $$$$$$$/
- | $$__ $$| $$____/
- | $$ \ $$| $$
- | $$ | $$| $$
- |__/ |__/|__/
- ____ _ _ _ ___ ___ ___ ___
- | _ \ (_) | | | |__ \ / _ \ |__ \ / _ \
- | |_) |_ _ _| | __| | ) | | | | ) | | | |
- | _ <| | | | | |/ _` | / /| | | | / /| | | |
- | |_) | |_| | | | (_| | / /_| |_| | / /_| |_| |
- |____/ \__,_|_|_|\__,_| |____|\___/ |____|\___/
-
- Sleepless Roleplay
- */
- //--------------------------[ SCRIPT VERSION INFO ]--------------------------
- #define SERVER_VERSION "v1.0"
- #define DISCORD "Sleepless/discord"
- #define WEBSITE "Sleepless.org"
- #define DOUBLE_EXP_ENABLED
- //#define TREASURE_HUNT_ENABLED
- //--------------------------------------------------------------------------
- /*
- Punishment Logs:
- - Warnings (1)
- - Prison (2)
- - Fine (3)
- - Ban (4) */
- //--------------------------------[ INCLUDES ]-------------------------------
- #include <a_samp>
- #include <audio>
- #include <a_zones>
- #include <streamer>
- #include <foreach>
- #include <progress>
- #include <ZCMD>
- #include <YSI/y_timers.inc>
- #include <yom_buttons>
- #include <sscanf2>
- #include <YSI\y_ini>
- #include <gangzones>
- #include <weapon-config>
- #include <SKY>
- #include <mSelection>
- #pragma tabsize 0
- #pragma dynamic 64000
- #pragma disablerecursion
- //--------------------------------[ DEFINES ]--------------------------------
- #define NOTAUTH "You are not authorized to use this command."
- #define LANDS 3532
- #define LANDS2 3533
- #define LANDS3 3534
- #define LANDS4 3535
- #define LANDS5 3536
- #define LANDS6 3537
- #define LANDS7 3538
- #define LANDS8 3539
- #define LANDS9 3540
- #define LANDS10 3541
- #define DIALOG_SHOW_INFO 13337
- new VirtualAntiCheat[MAX_PLAYERS];
- // NEon
- #define NEONMENU 12321
- // QUIZ
- new question[64] = "None",
- answer[64] = "None";
- new bool:quizexist;
- #define QUIZCREATE1 5321
- #define QUIZCREATE2 5322
- #define BPATH "/Business/%i.ini" //Defines the path y_ini will use to find the .ini file we need.
- #define LPATH "/Lands/%i.ini" //Defines the path y_ini will use to find the .ini file we need.
- new InsideBiz[MAX_PLAYERS];
- new NearLand[MAX_PLAYERS];
- new IsCheatingDC[MAX_PLAYERS];
- // - Unknown command error messages
- new Text:Textdraw0z;
- new Text:Textdraw1z;
- new Text:Textdraw2z;
- new Text:Textdraw3z;
- new CM;
- new TW;
- new FW;
- new HM;
- new JP;
- new RDR;
- //new JS;
- new PlayerText:HealthTD[MAX_PLAYERS];
- new PlayerText:ArmorTD[MAX_PLAYERS];
- new Text:LockTD;
- new Text:Text0;
- // - Blood Effects
- new Text:Blood[9];
- new Timer[MAX_PLAYERS];
- new bool:pBlood[MAX_PLAYERS] = {false,...};
- // FOR THE NEWBWELCOME
- #define DIALOG_NEWBWELCOME 1885
- // Cool Nametags
- //#define NT_DISTANCE 25.0
- //new Text3D:cNametag[MAX_PLAYERS];
- #define INVALID_DOOR_ID 99999
- #define INVALID_TURF -1
- #define MAX_TURFS 10
- #define MAX_LANDS 1000
- #define MAX_OBJ 500
- // Interiors
- #define DIALOG_INTERIOR_MENU 1886
- #define DIALOG_VEHICLE_REFUND 1887
- #define DIALOG_BLACKMARKET1 (8929)
- #define DIALOG_BLACKMARKET2 (8928)
- new pdleader[128];
- new fmdleader[128];
- new fbileader[128];
- new GMAleader[128];
- new aresleader[128];
- new governmentleader[128];
- new sasdleader[128];
- new InTurf[MAX_PLAYERS];
- enum lInfo {
- lOwned,
- lPrice,
- lOwner[MAX_PLAYER_NAME],
- lType,
- Float:pos_X,
- Float:pos_Y,
- Float:pos_Z,
- lObjectCount,
- Text3D:lText,
- lIcon
- }
- new LandsInfo[MAX_LANDS][lInfo];
- enum objInfo {
- objID,
- objModel,
- Float: oposX,
- Float: oposY,
- Float: oposZ,
- Float: orotX,
- Float: orotY,
- Float: orotZ,
- oUsed,
- oCount,
- oDoor,
- oDLock
- }
- new ObjectInfo[MAX_OBJ][objInfo];
- enum bInfo {
- bOwned,
- bPrice,
- bOwner[MAX_PLAYER_NAME],
- bType,
- bLocked,
- bMoney,
- Float:bEntranceX,
- Float:bEntranceY,
- Float:bEntranceZ,
- Float:bEntranceA,
- Float:bExitX,
- Float:bExitY,
- Float:bExitZ,
- Float:bExitA,
- bInt,
- bWorld,
- bInsideInt,
- bInsideWorld,
- bOutsideIcon,
- bName[128],
- Text3D:bText,
- bIT[128]
- }
- new BusinessInfo[200][bInfo];//We are creating a define to use for our Enum.
- new randomMessages[][] = //here, we're creating the array with the name "randomMessages"
- {
- "Welome to Sleepless roleplay! type /help for commands.",
- "Want to donate? check our discord channel for pricelist",
- "We have helpers waiting for you to ask! Use /newb to ask for a question!",
- "Seen a hacker/rulebreaker/Dmer? (/report)(/reportdm) him!",
- "It is not allowed to use hacks or else ban if you get caught.",
- "Admins will never help any hacked or stolen accounts.",
- "Did you know, you can win awesome prizes such as donator status from events!",
- "Please note that if you are having account issues to make an administrative request on our forums!",
- "Use /information to view our current information about our server."
- };
- enum Turf
- {
- TurfID,
- TurfsName[128],
- TurfsOwner[128],
- TurfsCapper[128],
- TurfsColor[128],
- TurfsCappingName[MAX_PLAYER_NAME],
- TurfsHours,
- TurfsGang,
- TurfsVulnerable,
- TurfsTimer,
- TurfsDoing,
- TurfshTime,
- TurfsgCap
- }
- new TurfsInfo[MAX_TURFS][Turf];
- new GiftAllowed;
- new bool:pCBugging[MAX_PLAYERS];
- // **** TIMERS
- new ptmCBugFreezeOver[MAX_PLAYERS];
- // **** TIMESTAMPS
- new ptsLastFiredWeapon[MAX_PLAYERS];
- #define BLACKMARKET 6665
- #define SCM SendClientMessage
- // Interiors
- #define DIALOG_INTERIOR_MENU 1886
- new Dueling[MAX_PLAYERS];
- new LastSMS[MAX_PLAYERS];
- new Hunted[MAX_PLAYERS];
- new AllHunt;
- new PlayerText:Textdraw0[MAX_PLAYERS];
- new PlayerText:Textdraw1[MAX_PLAYERS];
- new Text:Textdraw0s;
- new PlayerText:Textdraw1s[MAX_PLAYERS];
- new EventTeam[MAX_PLAYERS];
- new DoubleXP = 0;
- /*new Text:VDB0;
- new PlayerText:VDB1[MAX_PLAYERS];
- new PlayerText:VDB2[MAX_PLAYERS];
- new PlayerText:VDB3[MAX_PLAYERS];
- new PlayerText:VDB4[MAX_PLAYERS];
- new PlayerText:VDB5[MAX_PLAYERS];*/
- //WalkStyle
- new walktime[MAX_PLAYERS];
- // Sweepers Vehicles (LS)
- new SweeperVehicles[17];
- // And some other shits.
- new PlayerSweeping[MAX_PLAYERS];
- new SweeperTime[MAX_PLAYERS];
- new SweeperDistance[MAX_PLAYERS];
- new Float: fSweeperPos[MAX_PLAYERS][3];
- //Fire System
- #define MAX_FLAMES 100 // maxmimal flames
- #define BurnOthers
- //#define EarnMoney // Do you want to earn money for extinguish a fire?
- #define FireMessageColor 0x00FF55FF
- #define FLAME_ZONE 1.2 // radius in which you start burning if you're too close to a flame
- #define ONFOOT_RADIUS 1.5 // radius in which you can extinguish the flames by foot
- #define PISSING_WAY 2.0 // radius in which you can extinguish the flames by peeing
- #define CAR_RADIUS 8.0 // radius in which you can extinguish the flames by firetruck/SWAT Van
- #define Z_DIFFERENCE 2.5 // height which is important for the accurancy of extinguishing. please do not change
- #define EXTINGUISH_TIME_VEHICLE 3 // time you have to spray at the fire with a firetruck (seconds)
- #define EXTINGUISH_TIME_ONFOOT 5 // time you have to spray at the fire onfoot (seconds)
- #define EXTINGUISH_TIME_PEEING 10 // time you have to pee at the fire (seconds)
- #define EXTINGUISH_TIME_PLAYER 3 // time it takes to extinguish a player (seconds)
- #define FIRE_OBJECT_SLOT 1 // the slot used with SetPlayerAttachedObject and RemovePlayerAttachedObject
- forward AddFire(Float:x, Float:y, Float:z);
- forward KillFire(id);
- forward AddSmoke(Float:x, Float:y, Float:z);
- forward KillSmoke(id);
- forward DestroyTheSmokeFromFlame(id);
- forward OnFireUpdate();
- forward FireTimer(playerid, id);
- forward SetPlayerBurn(playerid);
- forward BurningTimer(playerid);
- forward StopPlayerBurning(playerid);
- forward Float:GetDistanceBetweenPoints(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2);
- enum FlameInfo
- {
- Flame_id,
- Flame_Exists,
- Float:Flame_pos[3],
- Smoke[5],
- }
- new Flame[MAX_FLAMES][FlameInfo];
- new ExtTimer[MAX_PLAYERS];
- new PlayerOnFire[MAX_PLAYERS];
- new PlayerOnFireTimer[MAX_PLAYERS];
- new PlayerOnFireTimer2[MAX_PLAYERS];
- new Float:PlayerOnFireHP[MAX_PLAYERS];
- //---------------------------[ NATIVES ]----------------------------
- native WP_Hash(buffer[], len, const str[]);
- //native sscanf(const data[], const format[], {Float,_}:...);
- //native unformat(const data[], const format[], {Float,_}:...) = sscanf;
- // Hidden native
- native gpci (playerid, const serial[], maxlen);
- // strcpy - Simon / Y_Less
- #define strcpy(%0,%1,%2) \
- strcat((%0[0] = '\0', %0), %1, %2)
- // File parsing
- #define ini_SetString(%0,%1,%2) if(%2[0]) fwrite(%0, %1), fputchar(%0, '=', false) && fwrite(%0, %2) && fwrite(%0, "\r\n")
- #define ini_SetInteger(%0,%1,%2,%3) format(%1, sizeof(%1), "%s=%d\r\n", %2, %3) && fwrite(%0, %1)
- #define ini_SetFloat(%0,%1,%2,%3) format(%1, sizeof(%1), "%s=%.0f\r\n", %2, %3) && fwrite(%0, %1)
- // Commodities
- #define MAX_BACKPACKS 1000
- #define INVALID_BP_ID -1
- #define MAX_HOUSES 1000
- #define MAX_DMAPICONS 200
- #define MAX_DDOORS 1000
- #define INVALID_HOUSE_ID -1
- #define MAX_NOP_WARNINGS 4
- #define FACTION_PAY_PER_RANK 100 // This must be an even number as it's divided by 2 for rank 0 paychecks.
- // Player Vehicle Defines
- #define MAX_PLAYERVEHICLES 10
- #define MAX_PLAYERTOYS 8
- #define MAX_PLAYER_ATTOBJECTS 8// Toy limitation
- #define MAX_MODS 15
- #define MAX_DEALERSHIPVEHICLES 10
- #define MAX_CARDEALERSHIPS 15
- #define MAX_GANG_VEHICLES 16
- #define INVALID_PLAYER_VEHICLE_ID 0
- #define BACKPACK 2268
- #define BACKPACK2 2267
- // Gang related
- #define NEW_VULNERABLE 24
- #define TIME_TO_CLAIM 1
- #define TIME_TO_TAKEOVER 10
- #define MAX_FAMILY 10
- #define MAX_POINTS 9
- #define MAX_CREW 50
- #define MAX_GANG_VEHICLES 16
- // Other limits
- #define MAX_MODS 15
- #define MAX_BARRICADES 10
- // Main Menu
- #define MAINMENU 4070
- #define MAINMENU2 4071
- //WalkStyles
- #define WALK_DEFAULT 0
- #define WALK_NORMAL 1
- #define WALK_PED 2
- #define WALK_GANGSTA 3
- #define WALK_GANGSTA2 4
- #define WALK_OLD 5
- #define WALK_FAT_OLD 6
- #define WALK_FAT 7
- #define WALK_LADY 8
- #define WALK_LADY2 9
- #define WALK_WHORE 10
- #define WALK_WHORE2 11
- #define WALK_DRUNK 12
- #define WALK_BLIND 13
- // Timer types
- #define TYPE_TPMATRUNTIMER 1
- #define TYPE_TPDRUGRUNTIMER 2
- #define TYPE_ARMSTIMER 3
- #define TYPE_GIVEWEAPONTIMER 4
- #define TYPE_HOSPITALTIMER 5
- #define TYPE_FLOODPROTECTION 7
- #define TYPE_GUARDTIMER 9
- #define TYPE_TPTRUCKRUNTIMER 10
- #define TYPE_SELLMATSTIMER 12
- #define TYPE_TPPIZZARUNTIMER 13
- #define TYPE_PIZZATIMER 14
- #define TYPE_SELLMYTIMER 15
- #define TYPE_BETTIMER 16
- #define TYPE_BPTIMER 17
- // Job Help Dialogs
- #define INFO_DIALOG 32767
- #define JOBHELPMENU 10000
- #define DETECTIVEJOB 10001
- #define DETECTIVEJOB2 10002
- #define DETECTIVEJOB3 10003
- #define LAWYERJOB 10004
- #define LAWYERJOB2 10005
- #define LAWYERJOB3 10006
- #define WHOREJOB 10007
- #define WHOREJOB2 10008
- #define WHOREJOB3 10009
- #define DRUGDEALERJOB 10010
- #define DRUGDEALERJOB2 10011
- #define DRUGDEALERJOB3 10012
- #define MECHANICJOB 10013
- #define MECHANICJOB2 10014
- #define MECHANICJOB3 10015
- #define BODYGUARDJOB 10016
- #define BODYGUARDJOB2 10017
- #define BODYGUARDJOB3 10018
- #define ARMSDEALERJOB 10019
- #define ARMSDEALERJOB2 10020
- #define ARMSDEALERJOB3 10021
- #define BOXERJOB 10022
- #define BOXERJOB2 10023
- #define BOXERJOB3 10024
- #define TAXIJOB 10025
- #define TAXIJOB2 10026
- #define TAXIJOB3 10027
- #define SMUGGLEJOB 10028
- #define SMUGGLEJOB2 10029
- #define SMUGGLEJOB3 10030
- #define CRAFTJOB 10031
- #define BARTENDERJOB 10032
- #define TRUCKERJOB 10033
- #define PIZZAJOB 10034
- #define SWEEPERJOB 10035
- #define GARBAGEJOB 10036
- #define MINERJOB 10037
- #define FINDJOB 10035
- #define VEHICLE_RESPAWN 2700
- #define ResetMoneyBar ResetPlayerMoney
- #define UpdateMoneyBar GivePlayerMoney
- #define GetPlayerCash(%0) PlayerInfo[%0][pCash]
- #define GivePlayerCash(%0,%1) PlayerInfo[%0][pCash] += (%1)
- #define GetVehicleName(%0) VehicleName[GetVehicleModel(%0)-400]
- #define SetPVarInt(%0,%1,0); DeletePVar(%0,%1);
- // Pragma dependencies
- #pragma dynamic 26384 // to avoid header/heap size warnings, needs to be averted by sorting strings out
- // Signcheck dialog
- #define SIGNCHECK 6561
- // Admin Defines
- #define MAX_REPORTS 1000
- #define INVALID_REPORT_ID -1
- #define REPORTSMENU 10031
- #define NOOB_SKIN 299
- // Other dialogs
- #define FINDDEALERSHIPMENU 4115
- #define FINDCARTUNINGMENU 4116
- #define DIALOG_HUNT_QUESTION 852
- #define DIALOG_HUNT_PRIZE 853
- #define DIALOG_NAMECHANGE 261
- #define DIALOG_NAMECHANGE2 262
- #define DIALOG_SAN_CLOTHES 2289
- #define FAMILYSKINDIALOG 5640
- #define DOORLOCK 5000
- #define DIALOG_CDGLOCKBUY 1310
- #define DIALOG_CDGLOCKMENU 1309
- #define GTRACKCAR 19102
- #define FIGHTMENU 22222
- #define COLORMENU 1111
- #define STOREMENU 999
- #define STOREMENU1 1000
- #define REGISTRATION_MENU_ONE 27301
- #define REGISTRATION_MENU_TWO 27302
- #define REGISTRATION_MENU_THREE 27303
- #define REGISTRATION_MENU_FOUR 27304
- #define REGISTRATION_MENU_FIVE 27305
- #define GOVLOCKERMENU 4012
- #define GOVEQUIPMENU 4013
- #define GOVSKINMENU 4114
- // ADS
- #define DIALOG_ADMAIN 32700
- #define DIALOG_ADLIST 32701
- #define DIALOG_ADPLACE 32702
- #define DIALOG_ADPLACEP 32703
- #define DIALOG_ADSEARCH 32704
- #define DIALOG_ADSEARCHLIST 32705
- #define DIALOG_ADFINAL 32706
- // Licenses
- #define DIALOG_LICENSE_BUY 10040
- // NMute & AdMute
- #define NMUTE 4100
- #define ADMUTE 4101
- // Player vehicle dialogs
- #define GOTOPLAYERCAR 19103
- #define VEHICLESTORAGE 19104
- #define REMOVEKEYS 4395
- #define GIVEKEYS 4394
- #define MPSPAYTICKETSCOP 4392
- #define MPSPAYTICKETS 4393
- #define TRACKCAR 19101
- #define UNMODCARMENU 4388
- #define DIALOG_CDLOCKBUY 1312
- #define DIALOG_CDLOCKMENU 1311
- #define DIALOG_CDGLOCKBUY 1310
- #define DIALOG_CDGLOCKMENU 1309
- // REFERRAL SHOP
- #define DIALOG_REFSHOP 14555
- // Toys
- #define TOYS 10131
- #define DELETETOY 10132
- #define WEARTOY 10133
- #define BUYTOYS 10134
- #define BUYTOYS2 10135
- #define BUYTOYS3 10136
- #define BUYTOYSGOLD 10137
- #define BUYTOYSGOLD2 10138
- #define BUYTOYSGOLD3 10139
- #define EDITTOYS 10140
- #define EDITTOYS2 10141
- #define EDITTOYSBONE 10142
- #define EDITTOYSPX 10143
- #define EDITTOYSPY 10144
- #define EDITTOYSPZ 10145
- #define EDITTOYSRX 10146
- #define EDITTOYSRY 10147
- #define EDITTOYSRZ 10148
- #define EDITTOYSSX 30765
- #define EDITTOYSSY 30766
- #define EDITTOYSSZ 30767
- #define BUYTOYSPLAT 11148
- #define BUYTOYSPLAT2 11149
- #define BUYTOYSPLAT3 11150
- // COP TOYS
- #define BUYTOYSCOP 10153
- #define BUYTOYSCOP2 10154
- #define BUYTOYSCOP3 10155
- // First Radio Menu (start)
- #define DIALOG_RADIOMENU_START 2800
- // Second Radio Menu (search)
- #define DIALOG_RADIOMENU_SEARCH 2798
- #define DIALOG_RADIOMENU_SEARCHLIST 2799
- // Third Radio Menu (genre)
- #define DIALOG_RADIOMENU_GENRE 2801
- #define DIALOG_RADIOMENU_PLAY 2802
- // First iPod menu (start)
- #define DIALOG_MP3_START 2803
- // Second iPod Menu (search)
- #define DIALOG_MP3_SEARCH 2804
- #define DIALOG_MP3_SEARCHLIST 2805
- // Third iPod Menu (genre)
- #define DIALOG_MP3_GENRE 2806
- #define DIALOG_MP3_PLAY 2807
- // First Boombox menu (start)
- #define DIALOG_BOOMBOX_START 2808
- // Second Boombox Menu (search)
- #define DIALOG_BOOMBOX_SEARCH 2809
- #define DIALOG_BOOMBOX_SEARCHLIST 2810
- // Third Boombox Menu (genre)
- #define DIALOG_BOOMBOX_GENRE 2811
- #define DIALOG_BOOMBOX_PLAY 2812
- // Car dealership dialogs
- #define DIALOG_CDEDIT 1329
- #define DIALOG_CDUPGRADE 1328
- #define DIALOG_CDTILL 1327
- #define DIALOG_CDEDITCARS 1326
- #define DIALOG_CDEDITONE 1325
- #define DIALOG_CDEDITMODEL 1324
- #define DIALOG_CDEDITCOST 1323
- #define DIALOG_CDEDITPARK 1322
- #define DIALOG_CDDELVEH 1321
- #define DIALOG_CDNEWVEH 1320
- #define DIALOG_CDRADIUS 1319
- #define DIALOG_CDNAME 1318
- #define DIALOG_CDPRICE 1317
- #define DIALOG_CDBUY 1316
- #define DIALOG_CDWITHDRAW 1315
- #define DIALOG_CDDEPOSIT 1314
- #define DIALOG_CDSELL 1313
- // LSPD
- #define DUTYMENU 555
- #define DUTYMENU2 666
- #define DUTYMENU3 777
- #define DUTYMENU4 888
- #define DUTYMENU5 11111
- // SASD
- #define SDUTYMENU 556
- #define SDUTYMENU2 667
- #define SDUTYMENU3 778
- #define SDUTYMENU4 889
- #define SDUTYMENU5 11112
- // ARES
- #define ADUTYMENU 2001
- #define ADUTYMENU2 2002
- #define ADUTYMENU3 2003
- #define ADUTYMENU4 2004
- #define ADUTYMENU5 2005
- // FBI
- #define FDUTYMENU 111
- #define FDUTYMENU2 222
- #define FDUTYMENU3 333
- #define FDUTYMENU4 444
- #define FDUTYMENU5 6666
- // LSFMD
- #define LSFMDMENU 7777
- #define LSFMDSKINS 9999
- #define LSFMDGEAR 2000
- // MDC
- #define MDC_START_ID 10098
- #define MDC_MAIN 10099
- #define MDC_FIND 10100
- #define MDC_MEMBERS 10101
- #define MDC_BLANK 10102
- #define MDC_WARRANTS 10103
- #define MDC_CHECK 10104
- #define MDC_LICENSES 10105
- #define MDC_LSPD 10106
- #define MDC_SFPD 10107
- #define MDC_FBI 10108
- #define MDC_LSFMD 10109
- #define MDC_MESSAGE 10110
- #define MDC_SMS 10111
- #define MDC_BOLOLIST 10112
- #define MDC_ISSUE 10113
- #define MDC_DELETE 10114
- #define MDC_DEL_WARRANT 10115
- #define MDC_DEL_BOLO 10116
- #define MDC_LOGOUT 10117
- #define MDC_CREATE 10118
- #define MDC_CIVILIANS 10119
- #define MDC_ISSUE_SLOT 10120
- #define MDC_MESSAGE_2 10121
- #define MDC_SMS_2 10122
- #define MDC_BOLO 10123
- #define MDC_BOLO_SLOT 10124
- #define MDC_END_ID 10125
- // LSFMD MDC
- #define FMDC 10156
- // Bartender dialogs
- #define DRINKLISTDIALOG 10127
- #define DRINKDIALOG 10128
- #define TIPDIALOG 10129
- // Trucker Job
- #define DIALOG_LOADTRUCK 18301
- #define DIALOG_LOADTRUCKL 18302
- #define DIALOG_LOADTRUCKI 18303
- // Intro Music
- #define SOUND_MUSIC1 1097
- #define SOUND_OFF 1098
- // COLORS
- #define TEAM_ARES_COLOR 0x1C77B300
- #define COLOR_CRIMSON 0xDC143CAA
- #define COLOR_SYNTAX 0xAFAFAFFF
- #define COLOR_GREENMIST 0xBCED9100
- #define TEAM_HIT_COLOR 0xFFFFFF00
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_ORANGE 0xFF8000FF
- #define COLOR_LIME 0x00FF00FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_FORSTATS 0xFFFF91AA
- #define COLOR_HOUSEGREEN 0x00E605AA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_LIGHTSLATEGRAY 0xAAC5E3FF
- #define COLOR_LIGHTYELLOW 0xFFFFE0FF
- #define COLOR_CYAN 0x40FFFFFF
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_NEWS 0xFFA500AA
- #define COLOR_TWWHITE 0xFFFFFFAA
- #define TEAM_NEWS_COLOR 0x049C7100
- #define COLOR_TWYELLOW 0xFFFF00AA
- #define COLOR_TWPINK 0xE75480AA
- #define COLOR_TWRED 0xFF0000AA
- #define COLOR_TWBROWN 0x654321AA
- #define COLOR_TWGRAY 0x808080AA
- #define COLOR_TWOLIVE 0x808000AA
- #define COLOR_TWPURPLE 0x800080AA
- #define COLOR_TWTAN 0xD2B48CAA
- #define COLOR_TWAQUA 0x00FFFFAA
- #define COLOR_TWORANGE 0xFF8C00AA
- #define COLOR_TWAZURE 0x007FFFAA
- #define COLOR_TWGREEN 0x008000AA
- #define COLOR_TWBLUE 0x0000FFAA
- #define COLOR_TWBLACK 0x000000AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define TEAM_CYAN_COLOR 0xFF8282AA
- #define FIND_COLOR 0xB90000FF
- #define TEAM_AZTECAS_COLOR 0x01FCFFC8
- #define TEAM_TAXI_COLOR 0xF2FF0000
- #define TEAM_CYAN_COLOR 0xFF8282AA
- #define DEPTRADIO 0xFFD7004A
- #define RADIO 0x8D8DFFFF
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_ALLDEPT 0xFF8282AA
- #define TEAM_BLUE_COLOR 0x2641FE00
- #define TEAM_FBI_COLOR 0x8D8DFF00
- #define TEAM_MED_COLOR 0xFF828200
- #define TEAM_APRISON_COLOR 0x9C791200
- #define COLOR_NG 0x9ACD3200
- #define COLOR_REPORT 0xFFFF91FF
- #define COLOR_NEWBIE 0x7DAEFFFF
- #define TEAM_ORANGE_COLOR 0xFF800000
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_OOC 0xE0FFFFAA
- #define COP_GREEN_COLOR 0x33AA33AA
- #define PUBLICRADIO_COLOR 0x6DFB6DFF
- #define TEAM_GROVE_COLOR 0x00D900C8
- #define COLOR_REALRED 0x33CCFFFF
- #define TEAM_GREEN_COLOR 0xFFFFFFAA
- #define TEAM_ORANGE_COLOR 0xFF800000
- #define WANTED_COLOR 0xFF0000FF
- #define COLOR_GOV 0xE8E79BAA
- #define GARAGE_COLOR 0xFFA500FF
- #define ADMINORANGE 0xF6970CAA
- #define COLOR_REALREDS 0xFF0606FF
- #define COLOR_JEFE 0x089DCEFF
- #define HOLDING(%0) \
- ((newkeys & (%0)) == (%0))
- #define RELEASED(%0) \
- (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- // MISC
- #define CHECKPOINT_NONE 0
- #define CHECKPOINT_HOME 12
- #define CHECKPOINT_HITMAN 123
- #define CHECKPOINT_MAXIMUSCLUB 124
- #define CHECKPOINT_BLACKMARKET 125
- #define CHECKPOINT_LOADTRUCK 97651
- #define CHECKPOINT_RETURNTRUCK 97652
- #define CHECKPOINT_PICKUPTRASH 98650
- #define CHECKPOINT_RETURNTRASH 98651
- #define CHECKPOINT_MINER 97653
- new Text:MainMenuTxtdraw[14];
- new Text:TutTxtDraw[54];
- new Text:ObjectsLoadingTD[2];
- new Text:WristWatch;
- new Text:GPS[MAX_PLAYERS];
- new ghour = 0;
- new gminute = 0;
- new gsecond = 0;
- new shifthour = 0;
- new timeshift = 0;
- new iAdverTimer;
- new pointboundaries[9];
- new Text:Damage[MAX_PLAYERS];
- forward hMoleOn();
- new hmole = 1;
- new hmoletimer = 600000;
- new TotalLogin, TotalConnect, TotalAutoBan, TotalRegister,MaxPlayersConnected,MPDay,MPMonth,MPYear,TotalUptime,PlayerCars;
- new Jackpot = 0;
- new PlayerDragged[MAX_PLAYERS];
- new PlayerDraggedBy[MAX_PLAYERS];
- new IsCopDragging[MAX_PLAYERS];
- new JustSuicided[MAX_PLAYERS];
- new HHcheckUsed = 0;
- new GlobalMOTD[128];
- new AdminMOTD[128];
- new LSPDmotd[128];
- new FMDmotd[128];
- new FBImotd[128];
- new ARESmotd[128];
- new SASDmotd[128];
- new Lawyers = 0;
- new Mechanics = 0;
- new Medics = 0;
- new TaxiDrivers = 0;
- new BusDrivers = 0;
- new nonewbie = 0;
- new noooc = 1;
- new nextteam;
- new callcost = 1;
- new cchargetime = 60;
- new txtcost = 2;
- // Paintball
- new
- gaPaintballGameTimer[10],
- gaPaintballGameTimeRemaining[10],
- gaPaintballGameNextTeam[4],
- gaPaintballTimerHandles[10];
- new VehicleStatus[MAX_VEHICLES char] = 0; // 0 == none, 1 == vehicle dead about to respawn
- // Trucker Job
- new Bar:LoadTruckBar[MAX_PLAYERS] = INVALID_BAR_ID;
- new LoadTruckTime[MAX_PLAYERS];
- new TruckDeliver[MAX_PLAYERS];
- new TruckUsed[MAX_PLAYERS] = INVALID_VEHICLE_ID;
- new GarbageUsed[MAX_PLAYERS] = INVALID_VEHICLE_ID;
- new TruckContents[MAX_VEHICLES] = 0;
- // Buttons / doors
- new FBILobbyLeft, FBILobbyLeftBTN[2], FBILobbyRight, FBILobbyRightBTN[2], FBIPrivate[2], FBIPrivateBTN[2];
- new lspdcopsonly;
- new lspdeveryone;
- new lspdcopsonly1;
- new lspdeveryone1;
- new lspddoor1;
- new lspddoor2;
- new lspddoor3;
- new lspddoor4;
- // Faction
- new Float:Positions[14][3];
- new Barricade[MAX_BARRICADES];
- new dildo;
- // Faction vehicles
- new LSPDVehicles[39];
- new ARESVehicles[28];
- //new SASDVehicles[28];
- new FBIVehicles[13];
- new LSFMDVehicles[42];
- new SANVehicles[6];
- new GovVehicles[18];
- // Faction gates
- new LSPDGate;
- new LSPDGate2;
- new FBIGate1;
- new FBIGate2;
- new LSPDGateStatus;
- new LSPDGate2Status;
- new FBIGate1Status;
- new FBIGate2Status;
- // Job vehicles
- new TruckerVehicles[37];
- // C4 vehicle bomb
- new VehicleBomb[MAX_VEHICLES char] = 0;
- new PlacedVehicleBomb[MAX_PLAYERS] = INVALID_VEHICLE_ID;
- // Vehicle radio stations
- new VehicleRadioStation[MAX_VEHICLES] = 0;
- // Vehicle mods
- new vehicleMods[212][MAX_MODS][4];
- // mSelection
- new skinlist = mS_INVALID_LISTID;
- // Admin prison
- /*new Float:GarbageCP[3][3] = {
- {1612.42, -996.40, 24.08},
- {1141.96, -1347.29, 13.68},
- {1422.30, -1319.24, 13.55}
- };*/
- new
- Float:AdminPrisonFloat[18][3] = {
- {215.664749, 1806.403198, 1618.534423},
- {211.635513, 1806.531005, 1618.534423},
- {207.159301, 1806.923339, 1618.535888},
- {201.544662, 1806.452758, 1618.535888},
- {197.230133, 1806.381225, 1618.535888},
- {193.142883, 1806.796752, 1618.535888},
- {215.664749, 1806.403198, 1614.260375},
- {211.635513, 1806.531005, 1614.260375},
- {207.159301, 1806.923339, 1614.260375},
- {201.544662, 1806.452758, 1614.260375},
- {197.230133, 1806.381225, 1614.260375},
- {193.142883, 1806.796752, 1614.260375},
- {215.664749, 1806.403198, 1609.985473},
- {211.635513, 1806.531005, 1609.985473},
- {207.159301, 1806.923339, 1609.985473},
- {201.544662, 1806.452758, 1609.985473},
- {197.230133, 1806.381225, 1609.985473},
- {193.142883, 1806.796752, 1609.985473}
- };
- // Treasure hunts
- #if defined TREASURE_HUNT_ENABLED
- new
- iHuntLocation,
- iHuntPickup,
- Text3D: lHunt,
- Float: fTreasureHuntLS[80][3] = {
- {1229.6487, 2656.6077, 10.8203},
- {723.9209, -1827.9728, -11.1979},
- {975.8365, -1553.5372, 21.5021},
- {2838.0945, -2355.9885, 42.7344},
- {2864.8975, -2125.0532, 5.9132},
- {2839.2737, -1333.6603, 11.1132},
- {305.7408, -1348.6904, 53.3819},
- {300.4908, -1343.3966, 60.0211},
- {567.0254, -1368.8667, 52.4344},
- {-574.8304, -1484.6580, 14.3438},
- {-1848.4028, -1708.3975, 41.1117},
- {-84.5177, -102.4145, 6.4844},
- {359.0852, -1401.2878, 20.4090},
- {-406.8927, -1448.9119, 50.9145},
- {2783.3496, -1246.1157, 62.2969},
- {2750.9673, -2261.2080, 42.2668},
- {2423.9233, -2283.6018, 42.4465},
- {2258.9204, -2458.7249, 42.1496},
- {1627.6660, -2286.4536, 94.1270},
- {680.0054, 824.4684, -42.9609},
- {-84.7650, -223.2539, 80.1250},
- {-1062.0853, -696.3816, 56.3359},
- {-744.2923, -796.8502, 152.1255},
- {-609.9691, -789.1779, 79.9550},
- {1019.3333, -301.4924, 77.3594},
- {2351.4570, -653.0359, 128.0547},
- {2751.4368, -2189.9272, 46.2275},
- {1498.1407, -1665.2388, 34.0469},
- {598.8820, -1266.4218, 64.1859},
- {1094.6667, -675.9512, 110.1484},
- {65.3320, -1820.0994, -57.3189},
- {302.2582, 1035.6158, 1104.5601},
- {-1094.6779, 606.7272, 1116.5078},
- {282.8992, 1088.2625, 5096.7534},
- {1094.1510, -2036.9094, 82.7574},
- {1786.7986, -1303.2233, 13.5532},
- {1956.6277, -1199.6770, 16.5859},
- {2216.9233, -1190.1036, 33.5313},
- {2708.2070, -2187.5305, 27.9262},
- {1846.2129, -1135.9796, 51.8616},
- {1986.8707, -1114.6799, 35.6250},
- {2179.1436, -2008.8317, 32.4801},
- {2216.3784, -2698.1467, 17.8828},
- {603.2033, -1628.5216, 28.0547},
- {660.7752, -1602.5293, 20.3269},
- {688.5105, -1607.3796, 22.0391},
- {1654.8735, -1638.1479, 83.7813},
- {1671.3395, -1344.6774, 158.4766},
- {1651.7982, -1271.9119, 167.5547},
- {1681.6056, -1223.9996, 167.5547},
- {1278.5238, -1697.4240, 39.4375},
- {1481.8771, -1790.1433, 156.7533},
- {1764.0298, -2286.3223, 26.7960},
- {2202.5444, -2330.3840, 33.7149},
- {2280.8369, -1952.3245, 21.2188},
- {2737.8037, -1760.2153, 44.1507},
- {2840.6848, -2538.9077, 18.2075},
- {2745.8557, -1689.5879, 30.6551},
- {2660.9539, -1458.9890, 79.3805},
- {2606.5115, -1299.3252, 81.1481},
- {1099.8422, -824.3608, 114.4477},
- {939.5084, -910.8499, 80.7187},
- {309.7915, -1146.1421, 92.0492},
- {-1412.3374, -23.8541, 6.0000},
- {-2483.6931, -1549.5001, 401.5734},
- {-2753.6919, -2000.8949, 40.9872},
- {-2712.7534, -344.6357, 54.4080},
- {-1026.7931, -705.2756, 135.5049},
- {2072.7185, -1000.6807, 58.9766},
- {919.1627, -1021.8905, 107.5781},
- {-84.5577, -223.3596, 80.1250},
- {2505.3049, -2640.7354, 13.8623},
- {1474.5920, -2287.0769, 42.4205},
- {2590.4080, -632.3589, 133.3495},
- {-534.0347, -102.9933, 63.2969},
- {323.5139, -1131.3894, 80.9141},
- {194.7249, -1230.7240, 76.0469},
- {226.2876, -1186.0181, 72.0313},
- {955.2682, -719.9095, 122.2109},
- {1334.1615, -650.9788, 108.2632}
- };
- #endif
- new AdminRelogPassword[MAX_PLAYERS][129];
- new AdminLoggedInBefore[MAX_PLAYERS];
- new CreatedCars[50];
- new CreatedCarsCount;
- new gPlayerAccount[MAX_PLAYERS];
- new gPlayerLogTries[MAX_PLAYERS];
- new gPlayerLogged[MAX_PLAYERS];
- //new Float:MenuTime[MAX_PLAYERS];
- new InsideMainMenu[MAX_PLAYERS];
- new InsideTut[MAX_PLAYERS];
- new ActiveChatbox[MAX_PLAYERS];
- new PlayerCuffed[MAX_PLAYERS];
- new Spectate[MAX_PLAYERS];
- new Spectating[MAX_PLAYERS];
- new GettingSpectated[MAX_PLAYERS];
- new InsideShamal[MAX_PLAYERS];
- new HouseOffer[MAX_PLAYERS];
- new NOPTrigger[MAX_PLAYERS];
- new House[MAX_PLAYERS];
- new HousePrice[MAX_PLAYERS];
- new hInviteOffer[MAX_PLAYERS];
- new hInviteHouse[MAX_PLAYERS];
- //new hInviteSlot[MAX_PLAYERS];
- new playerTabbed[MAX_PLAYERS];
- new playerTabbedTime[MAX_PLAYERS];
- new playerAFK[MAX_PLAYERS];
- new shutdown;
- new playerAFKTime[MAX_PLAYERS];
- new playerLastTyped[MAX_PLAYERS];
- new playerConnectedS[MAX_PLAYERS];
- new playerSeconds[MAX_PLAYERS];
- new pCurrentWeapon[MAX_PLAYERS];
- new Float:HHcheckFloats[MAX_PLAYERS][6];
- new HHcheckInt[MAX_PLAYERS];
- new HHcheckVW[MAX_PLAYERS];
- new gPlayerCheckpointStatus[MAX_PLAYERS];
- new Float:TeleportDest[MAX_PLAYERS][3];
- new Float:TeleportDest2[MAX_PLAYERS][3];
- new TeleportDestInt[MAX_PLAYERS];
- new TeleportDestInt2[MAX_PLAYERS];
- new JetPack[MAX_PLAYERS];
- new TextSpamTimes[MAX_PLAYERS];
- new TextSpamUnmute[MAX_PLAYERS];
- new CommandSpamTimes[MAX_PLAYERS];
- new CommandSpamUnmute[MAX_PLAYERS];
- new gLastCar[MAX_PLAYERS];
- new GettingJob[MAX_PLAYERS];
- new GettingJob2[MAX_PLAYERS];
- new PayCheckCode[MAX_PLAYERS];
- new AdminDuty[MAX_PLAYERS];
- new FindTimePoints[MAX_PLAYERS];
- new FindingPlayer[MAX_PLAYERS];
- new FindTime[MAX_PLAYERS];
- new UsedFind[MAX_PLAYERS];
- new Condom[MAX_PLAYERS];
- new SexOffer[MAX_PLAYERS];
- new SexPrice[MAX_PLAYERS];
- new SexWarn[MAX_PLAYERS][MAX_PLAYERS];
- new Text3D:GMA3DText;
- new gFam[MAX_PLAYERS];
- new InviteCrew[MAX_PLAYERS];
- new InviteCrew1[MAX_PLAYERS];
- new InviteCrew2[MAX_PLAYERS];
- new InviteOffer[MAX_PLAYERS];
- new InviteFaction[MAX_PLAYERS];
- new InviteFamily[MAX_PLAYERS];
- new LockStatus[MAX_VEHICLES];
- new PotOffer[MAX_PLAYERS];
- new PotPrice[MAX_PLAYERS];
- new PotGram[MAX_PLAYERS];
- new CrackOffer[MAX_PLAYERS];
- new CrackPrice[MAX_PLAYERS];
- new CrackGram[MAX_PLAYERS];
- new CrackWarn[MAX_PLAYERS][MAX_PLAYERS];
- new PotWarn[MAX_PLAYERS][MAX_PLAYERS];
- new JobDuty[MAX_PLAYERS];
- new WantLawyer[MAX_PLAYERS];
- new CallLawyer[MAX_PLAYERS];
- new JailPrice[MAX_PLAYERS];
- new DefendOffer[MAX_PLAYERS];
- new DefendPrice[MAX_PLAYERS];
- new CP[MAX_PLAYERS];
- new GuardOffer[MAX_PLAYERS];
- new GuardPrice[MAX_PLAYERS];
- new BetOffer[MAX_PLAYERS];
- new BetPrice[MAX_PLAYERS];
- new BPOffer[MAX_PLAYERS];
- new BPPrice[MAX_PLAYERS];
- new FindingDealership[MAX_PLAYERS];
- new GuardWarn[MAX_PLAYERS][MAX_PLAYERS];
- new GunOffer[MAX_PLAYERS];
- new GunId[MAX_PLAYERS];
- new GunMats[MAX_PLAYERS];
- new MatsOffer[MAX_PLAYERS];
- new MatsPrice[MAX_PLAYERS];
- new MatsAmount[MAX_PLAYERS];
- new MatsWarn[MAX_PLAYERS][MAX_PLAYERS];
- new InRing = 0;
- new BoxDelay = 0;
- new RoundStarted = 0;
- new Boxer1 = INVALID_PLAYER_ID;
- new Boxer2 = INVALID_PLAYER_ID;
- new PlayerBoxing[MAX_PLAYERS];
- new BoxOffer[MAX_PLAYERS];
- new BoxWaitTime[MAX_PLAYERS];
- new UsedWeed[MAX_PLAYERS];
- new UsedCrack[MAX_PLAYERS];
- new PlayerStoned[MAX_PLAYERS];
- new TransportDuty[MAX_PLAYERS];
- new TransportValue[MAX_PLAYERS];
- new TransportMoney[MAX_PLAYERS];
- new TransportTime[MAX_PLAYERS];
- new TransportCost[MAX_PLAYERS];
- new TransportDriver[MAX_PLAYERS];
- new ConsumingMoney[MAX_PLAYERS];
- new BusCallTime[MAX_PLAYERS];
- new BusAccepted[MAX_PLAYERS];
- new TaxiCallTime[MAX_PLAYERS];
- new TaxiAccepted[MAX_PLAYERS];
- new TaxiCall = 999;
- new BusCall = 999;
- new MechanicCall = 999;
- new MedicCall = 999;
- new TaxiWarn[MAX_PLAYERS][MAX_PLAYERS];
- new DrinkOffer[MAX_PLAYERS];
- new DrinkWarn[MAX_PLAYERS][MAX_PLAYERS];
- new PayWarn[MAX_PLAYERS][MAX_PLAYERS];
- new Float:StopaniFloats[MAX_PLAYERS][3];
- new Float:FixMyVwFloats[MAX_PLAYERS][3];
- new FishCount[MAX_PLAYERS];
- new CraftOffer[MAX_PLAYERS];
- new CraftId[MAX_PLAYERS];
- new CraftMats[MAX_PLAYERS];
- new CraftName[MAX_PLAYERS][50];
- new VehicleSpawned[MAX_PLAYERS];
- new VehicleOffer[MAX_PLAYERS];
- new VehicleId[MAX_PLAYERS];
- new VehiclePrice[MAX_PLAYERS];
- new ListItemReleaseId[MAX_PLAYERS][50];
- new GiveKeysTo[MAX_PLAYERS];
- new ListItemTrackId[MAX_PLAYERS][50];
- new RepairOffer[MAX_PLAYERS];
- new RepairPrice[MAX_PLAYERS];
- new RepairCar[MAX_PLAYERS];
- new RepairWarn[MAX_PLAYERS][MAX_PLAYERS];
- new OnDuty[MAX_PLAYERS];
- new ConnectedToPC[MAX_PLAYERS];
- new PlayerCuffedTime[MAX_PLAYERS];
- new PhoneOnline[MAX_PLAYERS];
- new pTazer[MAX_PLAYERS];
- new pTazerReplace[MAX_PLAYERS];
- new TazerTimeout[MAX_PLAYERS];
- new TicketOffer[MAX_PLAYERS];
- new TicketMoney[MAX_PLAYERS];
- new arr_Towing[MAX_PLAYERS];
- new Fixr[MAX_PLAYERS];
- new gBug[MAX_PLAYERS];
- new GotHit[MAX_PLAYERS];
- new GoChase[MAX_PLAYERS];
- new GetChased[MAX_PLAYERS];
- new HitOffer[MAX_PLAYERS];
- new HitToGet[MAX_PLAYERS];
- new gNews[MAX_PLAYERS];
- new JustReported[MAX_PLAYERS];
- new NewbieTimer[MAX_PLAYERS];
- new gNewbie[MAX_PLAYERS];
- new Float:EventFloats[MAX_PLAYERS][6]; // 0 = EventLastR 1 = EventLastX 2 = EventLastY 3 = EventLastZ 4 = EventLastH 5 = EventLastA
- new EventLastInt[MAX_PLAYERS]; new EventLastVW[MAX_PLAYERS];
- new Mobile[MAX_PLAYERS];
- new CellTime[MAX_PLAYERS];
- new CalledCops[MAX_PLAYERS];
- new CopsCallTime[MAX_PLAYERS];
- new CalledMedics[MAX_PLAYERS];
- new MedicsCallTime[MAX_PLAYERS];
- new Music[MAX_PLAYERS];
- new PlayerTied[MAX_PLAYERS];
- new gRadio[MAX_PLAYERS];
- new CallCost[MAX_PLAYERS];
- new szAdvert[MAX_PLAYERS][128];
- new IsBoundsShowingFFC[MAX_PLAYERS];
- new IsBoundsShowingMP1[MAX_PLAYERS];
- new IsBoundsShowingMF1[MAX_PLAYERS];
- new IsBoundsShowingMP2[MAX_PLAYERS];
- new IsBoundsShowingMF2[MAX_PLAYERS];
- new IsBoundsShowingAEC[MAX_PLAYERS];
- new IsBoundsShowingDH[MAX_PLAYERS];
- new IsBoundsShowingCL[MAX_PLAYERS];
- new IsBoundsShowingDF[MAX_PLAYERS];
- new GlobalChat[MAX_PLAYERS];
- new GlobalChatTimer[MAX_PLAYERS];
- new EMSCallTime[MAX_PLAYERS];
- new EMSAccepted[MAX_PLAYERS];
- new MedicCallTime[MAX_PLAYERS];
- new MedicAccepted[MAX_PLAYERS];
- new MechanicCallTime[MAX_PLAYERS];
- new DivorceOffer[MAX_PLAYERS];
- new MarryWitness[MAX_PLAYERS];
- new MarryWitnessOffer[MAX_PLAYERS];
- new MarriageCeremoney[MAX_PLAYERS];
- new ProposeOffer[MAX_PLAYERS];
- new ProposedTo[MAX_PLAYERS];
- new GotProposedBy[MAX_PLAYERS];
- new slotselection[MAX_PLAYERS];
- new ServiceTime[MAX_PLAYERS];
- new WasHereForPaycheck[MAX_PLAYERS];
- new SignedPaycheck[MAX_PLAYERS];
- new MissedPaychecks[MAX_PLAYERS];
- new LiveOffer[MAX_PLAYERS];
- new TalkingLive[MAX_PLAYERS];
- new HidePM[MAX_PLAYERS];
- new Backup[MAX_PLAYERS];
- new fBackup[MAX_PLAYERS];
- new FindingJob[MAX_PLAYERS];
- new ShakeHandRequest[MAX_PLAYERS];
- new ShakeHandStyle[MAX_PLAYERS];
- new TutorialProgress[MAX_PLAYERS];
- new Float:ValidArmor[MAX_PLAYERS];
- new PhonePrivacy[MAX_PLAYERS];
- new MP3Station[MAX_PLAYERS];
- new BoomBoxSet[MAX_PLAYERS];
- // Other
- new PizzaVehicles[12];
- new Bar:PizzaBar[MAX_PLAYERS];
- // for /music
- new Songs[7][1] = {
- {1187},
- {1185},
- {1183},
- {1097},
- {1076},
- {1068},
- {1062}
- };
- new CIV[] = {7,19,20,23,73,101,122};
- new STD1[] = {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3};
- new STD2[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3};
- new STD3[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3};
- new STD4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 3};
- new SELLCAR1[] = { 100, 112, 124, 134, 147, 157, 163, 176, 189, 194, 200 };
- new SELLCAR2[] = { 209, 213, 225, 237, 245, 256, 261, 272, 287, 298, 300 };
- new SELLCAR3[] = { 305, 317, 321, 337, 345, 355, 367, 375, 386, 396, 400 };
- new SELLCAR4[] = { 407, 412, 427, 437, 442, 456, 461, 475, 489, 491, 500 };
- new FishNamesNumber = 22;
- new FishNames[22][20] = {
- {"Jacket"}, {"Amberjack"}, {"Grouper"},
- {"Red Snapper"}, {"Pants"}, {"Trout"},
- {"Blue Marlin"}, {"Can"}, {"Mackeral"},
- {"Sea Bass"}, {"Shoes"}, {"Pike"},
- {"Sail Fish"}, {"Garbage"}, {"Tuna"},
- {"Eel"}, {"Dolphin"}, {"Shark"},
- {"Turtle"}, {"Catfish"}, {"Money Bag"},
- {"Swordfish"}
- };
- new Float: fVehSpeed[MAX_PLAYERS];
- new Float:PlayerPos[MAX_PLAYERS][6];
- new Float:TelePos[MAX_PLAYERS][6];
- new levelexp = 4;
- // Advance Miner and Lumberjack job
- #define DIALOG_STARTJOB 49
- #define DIALOG_ENDJOB 50
- #define Lumber_STARTJOB 143
- #define Lumber_ENDJOB 144
- // Forward Miner and Lumberjack job
- forward TimerGiveMiner(playerid);
- forward TimerGiveMinerEx(playerid);
- forward UpdateExit();
- forward UpdateDoors();
- forward TimerGiveLumber(playerid);
- forward TimerGiveLumberEx(playerid);
- // Miner Job
- new vputi, floorlift[3], exitp,
- lift, upgate, downgate, pickup777,
- startjob[MAX_PLAYERS],
- onminer[MAX_PLAYERS],
- prinesmet[MAX_PLAYERS],
- countmet[MAX_PLAYERS], injob[MAX_PLAYERS],
- prinesmetEx[MAX_PLAYERS],
- countmetEx[MAX_PLAYERS],
- ExtraMetall[MAX_PLAYERS],
- minerskin[MAX_PLAYERS];
- static const VehicleName[212][] = {
- "Landstalker","Bravura","Buffalo","Linerunner","Perennial","Sentinel","Dumper","Firetruck","Trashmaster","Stretch",
- "Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi",
- "Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee","Predator",
- "Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo","RC Bandit", "Romero",
- "Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed",
- "Yankee","Caddy","Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider",
- "Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler",
- "ZR-350","Walton","Regina","Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper",
- "Rancher","FBI Rancher","Virgo","Greenwood","Jetmax","Hotring Racer","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","Road Train","Nebula","Majestic",
- "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV-1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck",
- "Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent",
- "Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility",
- "Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger",
- "Flash","Tahoma","Savanna","Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway",
- "Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer","Emperor","Wayfarer",
- "Euros","Hotdog","Club","Trailer","Trailer","Andromada","Dodo","RCCam","Launch","Police Car (LSPD)","Police Car (SFPD)",
- "Police Car (LVPD)","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A",
- "Luggage Trailer B","Stair Trailer","Boxville","Farm Plow","Utility Trailer"
- };
- new Peds[217][1] = {
- {299},
- {288},//TEAM_ADMIN
- {286},{287},{228},{113},{120},{147},{294},{227},{61},{171},
- {247},//CIVILIANS DOWN HERE
- {248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
- {253},{252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{239},
- {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
- {226},{225},{173},{174},{175},{224},{223},{222},{221},{220},{219},{218},
- {217},{216},{215},{214},{213},{212},{211},{210},{209},
- {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
- {195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
- {182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
- {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
- {146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
- {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
- {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
- {75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
- {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
- {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
- {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
- {290},//ROSE
- {291},//PAUL
- {292},//CESAR
- {293},//OGLOC
- {187},
- {296},//JIZZY
- {297},//MADDOGG
- {298},//CAT
- {299}//ZERO
- };
- new GunNames[54][30] = {
- {"Unarmed"},
- {"Brass Knuckles"},
- {"Golf Club"},
- {"Nite Stick"},
- {"Knife"},
- {"Baseball Bat"},
- {"Shovel"},
- {"Pool Cue"},
- {"Katana"},
- {"Chainsaw"},
- {"Purple Dildo"},
- {"Short Vibrator"},
- {"Long Vibrator"},
- {"White Dildo"},
- {"Flowers"},
- {"Cane"},
- {"Grenades"},
- {"Tear Gas"},
- {"Molotov Cocktails"},
- {"Vehicle Missile"},
- {"Hydra Flare"},
- {"Jetpack"},
- {"9MM Pistol"},
- {"SD Pistol"},
- {"Deagle"},
- {"Shotgun"},
- {"Sawn-off"},
- {"Spas12"},
- {"Mac 10"},
- {"MP5"},
- {"AK47"},
- {"M4"},
- {"Tech 9"},
- {"Country Rifle"},
- {"Sniper Rifle"},
- {"Rocket Launcher"},
- {"HS Rocket Launcher"},
- {"Flamethrower"},
- {"Minigun"},
- {"Satchel Charges"},
- {"Detonator"},
- {"Mace"},
- {"Fire Extinguisher"},
- {"Camera"},
- {"Night Vision"},
- {"Thermal Goggles"},
- {"Parachute"},
- {"Fake Pistol"},
- {"Invalid ID"},
- {"Vehicle Ram"},
- {"HeliBlade/CarPark"},
- {"Explosion"},
- {"Drowned"},
- {"Collision"}
- };
- stock CreateLandObject(playerid, model)
- {
- new ids, string[128];
- for(new h = 1;h < 500; h++)//Loops through all the businesses
- {
- if(ObjectInfo[h][oUsed] == 0)//Checks if the price of a business is 0.
- {
- ids = h;
- break;//It stops looping if it is.
- }
- }
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- ObjectInfo[ids][objID] = CreateDynamicObject(model, x, y+3, z, 0.0, 0.0, 0.0);
- ObjectInfo[ids][objModel] = model;
- GetPlayerPos(playerid, ObjectInfo[ids][oposX], ObjectInfo[ids][oposY], ObjectInfo[ids][oposZ]);
- ObjectInfo[ids][orotX] = 0.0;
- ObjectInfo[ids][orotY] = 0.0;
- ObjectInfo[ids][orotZ] = 0.0;
- ObjectInfo[ids][oUsed] = 1;
- ObjectInfo[ids][oCount]++;
- Streamer_Update(playerid);
- EditDynamicObject(playerid, ObjectInfo[ids][objID]);
- format(string, 128, "You are now editing object Slot %d.", ids);
- SCM(playerid, -1, string);
- }
- stock CreateLandDoorObject(playerid, model)
- {
- new ids, string[128];
- for(new h = 1;h < 500; h++)//Loops through all the businesses
- {
- if(ObjectInfo[h][oUsed] == 0)//Checks if the price of a business is 0.
- {
- ids = h;
- break;//It stops looping if it is.
- }
- }
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- ObjectInfo[ids][oDoor] = CreateDynamicObject(model, x, y+3, z, 0.0, 0.0, -90.0);
- ObjectInfo[ids][objModel] = model;
- GetPlayerPos(playerid, ObjectInfo[ids][oposX], ObjectInfo[ids][oposY], ObjectInfo[ids][oposZ]);
- ObjectInfo[ids][orotX] = 0.0;
- ObjectInfo[ids][orotY] = -90.0;
- ObjectInfo[ids][orotZ] = 0.0;
- ObjectInfo[ids][oUsed] = 1;
- ObjectInfo[ids][oCount]++;
-
- ObjectInfo[ids][oDLock] = 1;
- Streamer_Update(playerid);
- EditDynamicObject(playerid, ObjectInfo[ids][oDoor]);
- format(string, 128, "You are now editing object Slot %d.", ids);
- SCM(playerid, -1, string);
- }
- stock CreateLandFloorObject(playerid, model)
- {
- new ids, string[128];
- for(new h = 1;h < 500; h++)//Loops through all the businesses
- {
- if(ObjectInfo[h][oUsed] == 0)//Checks if the price of a business is 0.
- {
- ids = h;
- break;//It stops looping if it is.
- }
- }
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- ObjectInfo[ids][objID] = CreateDynamicObject(model, x, y+3, z, 0.0, 0.0, 0.0);
- ObjectInfo[ids][objModel] = model;
- GetPlayerPos(playerid, ObjectInfo[ids][oposX], ObjectInfo[ids][oposY], ObjectInfo[ids][oposZ]);
- ObjectInfo[ids][orotX] = 90.0;
- ObjectInfo[ids][orotY] = 0.0;
- ObjectInfo[ids][orotZ] = 0.0;
- ObjectInfo[ids][oUsed] = 1;
- ObjectInfo[ids][oCount]++;
- Streamer_Update(playerid);
- EditObject(playerid, ObjectInfo[ids][objID]);
- format(string, 128, "You are now editing object Slot %d.", ids);
- SCM(playerid, -1, string);
- }
- stock PlayerPlayMusic(playerid)
- {
- if(IsPlayerConnected(playerid)) {
- SetTimer("StopMusic", 5000, 0);
- PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
- }
- }
- forward StopMusic();
- public StopMusic()
- {
- foreach(Player, i)
- {
- PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
- }
- }
- public OnPlayerModelSelection(playerid, response, listid, modelid)
- {
- if(listid == skinlist)
- {
- if(response)
- {
- SendClientMessage(playerid, COLOR_WHITE, "");
- SetPlayerSkin(playerid, modelid);
- //GivePlayerCash(playerid, -200);
- //BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += 250;
- //BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
- }
- else SendClientMessage(playerid, COLOR_WHITE, "");
- return 1;
- }
- return 1;
- }
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- new Float:oldX, Float:oldY, Float:oldZ, Float:oldRotX, Float:oldRotY, Float:oldRotZ;
- GetObjectPos(ObjectInfo[objectid][objID], oldX, oldY, oldZ);
- GetObjectRot(ObjectInfo[objectid][objID], oldRotX, oldRotY, oldRotZ);
- if(response == EDIT_RESPONSE_FINAL)
- {
- SetObjectPos(ObjectInfo[objectid][objID], x, y, z);
- SetObjectRot(ObjectInfo[objectid][objID], rx, ry, rz);
- SetObjectPos(ObjectInfo[objectid][oDoor], x, y, z);
- SetObjectRot(ObjectInfo[objectid][oDoor], rx, ry, rz);
- ObjectInfo[objectid][oposX] = z;
- ObjectInfo[objectid][oposY] = y;
- ObjectInfo[objectid][oposZ] = z;
- ObjectInfo[objectid][orotX] = rx;
- ObjectInfo[objectid][orotY] = ry;
- ObjectInfo[objectid][orotZ] = rz;
- }
- else if(response == EDIT_RESPONSE_CANCEL)
- {
- //The player cancelled, so put the object back to it's old position
- SetObjectPos(ObjectInfo[objectid][objID], oldX, oldY, oldZ);
- SetObjectRot(ObjectInfo[objectid][objID], oldRotX, oldRotY, oldRotZ);
- }
- return 1;
- }
- stock PlayerFixRadio(playerid)
- {
- if(IsPlayerConnected(playerid)) {
- SetTimer("PlayerFixRadio2", 1000, 0);
- PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
- Fixr[playerid] = 1;
- }
- }
- forward PlayerFixRadio2();
- public PlayerFixRadio2()
- {
- foreach(Player, i)
- {
- if(Fixr[i])
- {
- PlayerPlaySound(i, 1069, 0.0, 0.0, 0.0);
- Fixr[i] = 0;
- }
- }
- }
- stock vehicle_lock_doors(vehicle) {
- new
- vParamArr[7];
- GetVehicleParamsEx(vehicle, vParamArr[0], vParamArr[1], vParamArr[2], vParamArr[3], vParamArr[4], vParamArr[5], vParamArr[6]);
- return SetVehicleParamsEx(vehicle, vParamArr[0], vParamArr[1], vParamArr[2], VEHICLE_PARAMS_ON, vParamArr[4], vParamArr[5], vParamArr[6]);
- }
- stock vehicle_unlock_doors(vehicle) {
- new
- vParamArr[7];
- GetVehicleParamsEx(vehicle, vParamArr[0], vParamArr[1], vParamArr[2], vParamArr[3], vParamArr[4], vParamArr[5], vParamArr[6]);
- return SetVehicleParamsEx(vehicle, vParamArr[0], vParamArr[1], vParamArr[2], VEHICLE_PARAMS_OFF, vParamArr[4], vParamArr[5], vParamArr[6]);
- }
- new OneSeatVehicles[38] =
- {
- 425, 430, 432, 441, 446, 448, 452, 453,
- 454, 464, 465, 472, 473, 476, 481, 484,
- 485, 486, 493, 501, 509, 510, 519, 520,
- 530, 531, 532, 539, 553, 564, 568, 571,
- 572, 574, 583, 592, 594, 595
- };
- stock IsSeatAvailable(vehicleid, seat)
- {
- new carmodel = GetVehicleModel(vehicleid);
- for (new i = 0; i < sizeof(OneSeatVehicles); i++)
- {
- if(carmodel == OneSeatVehicles[i]) return 0;
- }
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == vehicleid && GetPlayerVehicleSeat(i) == seat) return 0;
- }
- return 1;
- }
- stock IsPlayerInInvalidNosVehicle(playerid)
- {
- switch(GetVehicleModel(GetPlayerVehicleID(playerid))) {
- 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 1;
- }
- return 0;
- }
- stock IsAtFishPlace(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
- {//Fishplace at the bigwheel
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,396.2197,-2088.6692,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,391.1094,-2088.7976,7.8359))
- {//Fishplace at the bigwheel
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,383.4157,-2088.7849,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,374.9598,-2088.7979,7.8359))
- {//Fishplace at the bigwheel
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,369.8107,-2088.7927,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,367.3637,-2088.7925,7.8359))
- {//Fishplace at the bigwheel
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,1.0,362.2244,-2088.7981,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,354.5382,-2088.7979,7.8359))
- {//Fishplace at the bigwheel
- return 1;
- }
- }
- return 0;
- }
- stock IsAtClothShop(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,25.0,207.5627,-103.7291,1005.2578) || IsPlayerInRangeOfPoint(playerid,25.0,203.9068,-41.0728,1001.8047) || IsPlayerInRangeOfPoint(playerid,25.0,203.9068,-41.0728,1001.8047))
- {//Binco & Suburban
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,30.0,214.4470,-7.6471,1001.2109) || IsPlayerInRangeOfPoint(playerid,50.0,161.3765,-83.8416,1001.8047))
- {//Zip & Victim
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,202.6777,-163.0623,1000.5306))
- {//Diedier Sachs
- return 1;
- }
- }
- return 0;
- }
- stock IsAtBar(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,3.0,495.7801,-76.0305,998.7578) || IsPlayerInRangeOfPoint(playerid,3.0,499.9654,-20.2515,1000.6797) || IsPlayerInRangeOfPoint(playerid,9.0,1497.5735,-1811.6150,825.3397))
- {//In grove street bar (with girlfriend), and in Havanna
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,4.0,1215.9480,-13.3519,1000.9219) || IsPlayerInRangeOfPoint(playerid,10.0,-2658.9749,1407.4136,906.2734) || IsPlayerInRangeOfPoint(playerid,10.0,2155.3367,-97.3984,3.8308))
- {//PIG Pen
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,300.351287, 1030.323120, 1104.560058) || IsPlayerInRangeOfPoint(playerid,6.0,311.184661, 1011.819274, 1098.540039) || IsPlayerInRangeOfPoint(playerid,10.0,-1091.006958, 607.855773, 1116.507812))
- {// First two: Tableau Club - Last one: The Lubu Gentlemen's club
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,6.0,255.606887, 1086.537109, 5099.806152))
- {// Santa Maria Surfer's Lounge.
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,10.0,453.2437,-105.4000,999.5500) || IsPlayerInRangeOfPoint(playerid,10.0,1255.69, -791.76, 1085.38) ||
- IsPlayerInRangeOfPoint(playerid,10.0,2561.94, -1296.44, 1062.04) || IsPlayerInRangeOfPoint(playerid,10.0,1139.72, -3.96, 1000.67) ||
- IsPlayerInRangeOfPoint(playerid,10.0,1139.72, -3.96, 1000.67) || IsPlayerInRangeOfPoint(playerid, 10.0, 880.06, 1430.86, -82.34) ||
- IsPlayerInRangeOfPoint(playerid,10.0,499.96, -20.66, 1000.68))
- {
- //Bars
- return 1;
- }
- }
- return 0;
- }
- stock IsAtATM(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,3.0,2065.439453125, -1897.5510253906, 13.19670009613) || IsPlayerInRangeOfPoint(playerid,3.0,1497.7467041016, -1749.8747558594, 15.088212013245) || IsPlayerInRangeOfPoint(playerid,3.0,2093.5124511719, -1359.5474853516, 23.62727355957) || IsPlayerInRangeOfPoint(playerid,3.0,1155.6235351563, -1464.9141845703, 15.44321346283))
- {//ATMS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2139.4487304688, -1164.0811767578, 23.63508605957) || IsPlayerInRangeOfPoint(playerid,3.0,387.16552734375, -1816.0512695313, 7.4834146499634))
- {//ATMS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,-24.385023117065, -92.001075744629, 1003.1897583008) || IsPlayerInRangeOfPoint(playerid,3.0,-31.811220169067, -58.106018066406, 1003.1897583008) || IsPlayerInRangeOfPoint(playerid,3.0,1212.7785644531, 2.451762676239, 1000.5647583008) || IsPlayerInRangeOfPoint(playerid,3.0,2324.4028320313, -1644.9445800781, 14.469946861267))
- {//ATMS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2228.39, -1707.78, 13.25) || IsPlayerInRangeOfPoint(playerid,3.0,651.19305419922, -520.48815917969, 15.978837013245) || IsPlayerInRangeOfPoint(playerid, 3.0, 45.78035736084, -291.80926513672, 1.5024013519287) || IsPlayerInRangeOfPoint(playerid,3.0,1275.7958984375, 368.31481933594, 19.19758605957) || IsPlayerInRangeOfPoint(playerid,3.0,2303.4577636719, -13.539554595947, 26.12727355957))/*End of Red County Random ATM's*/
- {//ATMS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,691.08215332031, -618.5625, 15.978837013245) || IsPlayerInRangeOfPoint(playerid,3.0,173.23471069336, -155.07606506348, 1.2210245132446) || IsPlayerInRangeOfPoint(playerid,3.0,1260.8796386719, 209.30152893066, 19.19758605957) || IsPlayerInRangeOfPoint(playerid,3.0,2316.1015625, -88.522567749023, 26.12727355957))
- {//ATMS
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2052.9246, -1660.6346, 13.1300) || IsPlayerInRangeOfPoint(playerid,3.0,-1980.6300,121.5300,27.3100))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,-2453.7600,754.8200,34.8000) || IsPlayerInRangeOfPoint(playerid,3.0,-2678.6201,-283.3400,6.8000))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,519.8157,-2890.8601,4.4609))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,268.820739,1524.135009,1082.683227))
- {// Dice Casino
- return 1;
- }
- else if((IsPlayerInRangeOfPoint(playerid,5.0,487.060546, -2383.360107, 10.782341) && GetPlayerInterior(playerid) == 18))
- { // Saints Mall
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,5.0,1084.4668, -1713.8372, -20.8792))
- {// Maximus Club
- return 1;
- }
- }
- return 0;
- }
- /*
- // Anti Dialog ID spoofing
- #define ShowPlayerDialogEx(%0, %1, %2, %3, %4, %5, %6) ShowPlayerDialog(%0, %1, %2, %3, %4, %5, %6) \
- SetPVarInt(%0, "dialog", %1)*/
- stock ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], button1[], button2[]) {
- SetPVarInt(playerid, "dialog", dialogid);
- ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
- return 1;
- }
- stock IsAtNameChange(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0,1154.7295,-1440.2323,15.7969))
- {
- return 1;
- }
- }
- return 0;
- }
- stock IsAt247(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 100.0, -30.875, -88.9609, 1004.53))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 10.0, -2654.2300,1526.3693,907.1797))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, 890.66, 1429.08, -82.34))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, -29.2035, -185.1285, 1003.5469))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, 2.0450,-29.0116,1003.5494))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, -28.1463,-89.9533,1003.5469))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, -22.0699,-138.6297,1003.5469))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, -22.0699,-138.6297,1003.5469))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, -30.9772,-29.0228,1003.5573))
- {
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 50.0, -23.4488,-55.6319,1003.5469))
- {
- return 1;
- }
- else if((IsPlayerInRangeOfPoint(playerid,130.0,470.430297, -2414.415527, 10.790462) && GetPlayerInterior(playerid) == 18))
- { // Saints Mall
- return 1;
- }
- }
- return 0;
- }
- Float:GetDistanceBetweenPlayers(iPlayerOne, iPlayerTwo)
- {
- new
- Float: fPlayerPos[3];
- GetPlayerPos(iPlayerOne, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);
- return GetPlayerDistanceFromPoint(iPlayerTwo, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);
- }
- stock RespawnNearbyVehicles(iPlayerID, Float: fRadius) {
- new
- Float: fPlayerPos[3];
- GetPlayerPos(iPlayerID, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);
- for(new i = 1; i < MAX_VEHICLES; i++) if(GetVehicleModel(i) && GetVehicleDistanceFromPoint(i, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]) <= fRadius) {
- foreach(Player, x) if(GetPlayerVehicleID(x) == i) continue;
- SetVehicleToRespawn(i);
- }
- return 1;
- }
- enum VehicleRadioEnum
- {
- radioname[32],
- radiourl[128],
- listeners
- }
- new VehicleRadioListing[220][VehicleRadioEnum] = {
- // Alternative (0-9)
- {"Idobi Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585"},
- {"181.FM The Buzz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586"},
- {"RauteMusik.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071"},
- {"FM4","http://yp.shoutcast.com/sbin/tunein-station.pls?id=581319"},
- {"ChroniX Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377260"},
- {"Pinguin Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=199753"},
- {"KEXP","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272835"},
- {"KCRW Simulcas","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269598"},
- {"Metal Only","http://yp.shoutcast.com/sbin/tunein-station.pls?id=477309"},
- {"1.FM Channel X","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274225"},
- // Blues 10-19)
- {"1.FM - Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270282"},
- {"BellyUp4Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=11408"},
- {"CALMRADIO - BLUES","http://yp.shoutcast.com/sbin/tunein-station.pls?id=205177"},
- {"KOQX Blues Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271824"},
- {"GotRadio - Bit 'O Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=533805"},
- {"radioio blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1278494"},
- {"Polskie Radio - Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1044755"},
- {"Big Blue Swing","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377377"},
- {"City Sounds Radio Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=20151"},
- {"Calm Radio Blues","http://yp.shoutcast.com/sbin/tunein-station.pls?id=205177"},
- // Classical (20-29)
- {"CLASSICAL 102","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1676910"},
- {"Iowa Public Radio Classical","http://yp.shoutcast.com/sbin/tunein-station.pls?id=177883"},
- {"181.FM Classic Hits","http://yp.shoutcast.com/sbin/tunein-station.pls?id=213419"},
- {"Cinemix","http://yp.shoutcast.com/sbin/tunein-station.pls?id=614375"},
- {"Venice Classic Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1704166"},
- {"Solo Piano SKY.FM.","http://yp.shoutcast.com/sbin/tunein-station.pls?id=600682"},
- {"Mostly Classical - SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=744232"},
- {"Adagio.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=212505"},
- {"Classical 96.3FM CFMZ","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2271823"},
- {"Abacus.fm Mozart Piano","http://yp.shoutcast.com/sbin/tunein-station.pls?id=119965"},
- // Country (30-39)
- {"181.FM Kickin' Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687"},
- {"Always Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274260"},
- {"COUNTRY 108","http://yp.shoutcast.com/sbin/tunein-station.pls?id=668943"},
- {"181.FM Highway 181","http://yp.shoutcast.com/sbin/tunein-station.pls?id=147942"},
- {"HPR1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270526"},
- {"Radio Positiva Sertaneja","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2890335"},
- {"1.FM Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274603"},
- {"Boot Liquor","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377561"},
- {"Absolute COUNTRY Hits","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268458"},
- {"181.FM Real Country","http://yp.shoutcast.com/sbin/tunein-station.pls?id=163622"},
- // Decades (40-49)
- {"Big R Radio Warm 101.6","http://yp.shoutcast.com/sbin/tunein-station.pls?id=33097"},
- {"Big R Radio The Hawk","http://yp.shoutcast.com/sbin/tunein-station.pls?id=211531"},
- {"Big R Radio 100.7 The Mix","http://yp.shoutcast.com/sbin/tunein-station.pls?id=61826"},
- {"Abacus.fm Vintage Jazz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=242774"},
- {"Oldies104","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271826"},
- {"1.FM 50s and 60s","http://yp.shoutcast.com/sbin/tunein-station.pls?id=37833"},
- {"The Doo-Wop Express","http://yp.shoutcast.com/sbin/tunein-station.pls?id=727560"},
- {"Beatles Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1273220"},
- {"1.FM 80s Channel","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274599"},
- {"SKY.FM 80s","http://yp.shoutcast.com/sbin/tunein-station.pls?id=737152"},
- // Easy Listening (50-59)
- {"Slow Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1658657"},
- {"MUSIK.LOUNGE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=130940"},
- {"Blue FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=48138"},
- {"SKY.FM Mostly Classical","http://yp.shoutcast.com/sbin/tunein-station.pls?id=744232"},
- {"Radio227 Easy Listening","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2313198"},
- {"COOL93","http://yp.shoutcast.com/sbin/tunein-station.pls?id=63135"},
- {"KLUX 89.5HD -","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1697"},
- {"AbidingRadio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=470854"},
- {"Lounge Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1288934"},
- {"1.FM The Chillout Loung","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268725"},
- // Electronic (60-69)
- {"TechnoBase.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200"},
- {"Vocal Trance","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1177953"},
- {"MUSIK.HOUSE Funky","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2128868"},
- {"Trance Channel","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1193516"},
- {"HouseTime.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377360"},
- {"dubstep.fm","http://yp.shoutcast.com/sbin/tunein-station.pls?id=7225"},
- {"54House.FM.","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2808203"},
- {"#MUSIK.DRUMSTEP","http://yp.shoutcast.com/sbin/tunein-station.pls?id=46883"},
- {"HardBase.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377430"},
- {"Techno4Ever Main","http://yp.shoutcast.com/sbin/tunein-station.pls?id=226769"},
- // Folk (70-79)
- {"Radio Free Vermont","http://yp.shoutcast.com/sbin/tunein-station.pls?id=168942"},
- {"Pink Narodna Muzika","http://yp.shoutcast.com/sbin/tunein-station.pls?id=883729"},
- {"Dzungla Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279638"},
- {"Folk Alley","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1273365"},
- {"Radio BN","http://yp.shoutcast.com/sbin/tunein-station.pls?id=29949"},
- {"Radio Glas Drine","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1841408"},
- {"COOL radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=550002"},
- {"AM 1710 Antioch OT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2699"},
- {"A&P Radio Network","http://yp.shoutcast.com/sbin/tunein-station.pls?id=563824"},
- {"New Age SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=412093"},
- // Inspirational (80-89)
- {"Russian Christian Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280598"},
- {"AbidingRadio INSTRUMENTAL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=470854"},
- {"1-ONE NATION FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1988533"},
- {"XL Radio Gurbani Kirtan","http://yp.shoutcast.com/sbin/tunein-station.pls?id=272693"},
- {"Radio Lumiere Miami","http://yp.shoutcast.com/sbin/tunein-station.pls?id=341387"},
- {"Ancient Faith Music","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2010550"},
- {"Bautista Radio 89.7 FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=347942"},
- {"Radio Nueva Vida","http://yp.shoutcast.com/sbin/tunein-station.pls?id=208506"},
- {"ChristianRock","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1266649"},
- {"FBC Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=95154"},
- // International (90-99)
- {"Arabic Music Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=326370"},
- {"SEOULFM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=246183"},
- {"Radio CARERA NUMBER ONE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=289391"},
- {"Schlagerhoelle","http://yp.shoutcast.com/sbin/tunein-station.pls?id=702040"},
- {"Ballermann-Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=63072"},
- {"RADIONL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281197"},
- {"RaDioTEENTAAL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268068"},
- {"Tutku Fm","http://yp.shoutcast.com/sbin/tunein-station.pls?id=21994"},
- {"Radio Jacaro","http://yp.shoutcast.com/sbin/tunein-station.pls?id=228698"},
- {"BeirutNights","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1168254"},
- // Jazz (100-109)
- {"SMOOTHJAZZ","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1339789"},
- {"Absolutely Smooth Jazz SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=496891"},
- {"SwissGroove","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269641"},
- {"Dinner Jazz Excursion","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272149"},
- {"181.fm The Breeze","http://yp.shoutcast.com/sbin/tunein-station.pls?id=133405"},
- {"A1Smooth","http://yp.shoutcast.com/sbin/tunein-station.pls?id=348116"},
- {"SmoothLounge","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1339960"},
- {"1.FM Bay Smooth Jazz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271416"},
- {"CROOZE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269135"},
- {"Jazz Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1256018"},
- // Latin (110-119)
- {"Salsa SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=835183"},
- {"La X Estereo 100 Pura Salsa","http://yp.shoutcast.com/sbin/tunein-station.pls?id=96644"},
- {"Reggaeton 24/7","http://yp.shoutcast.com/sbin/tunein-station.pls?id=56349"},
- {"LATINO FM EN DIRECTO","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280049"},
- {"Suave 107.3 FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1593716"},
- {"LA PACHANGUERA FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2147665"},
- {"XHBIO FIESTA MEXICANA","http://yp.shoutcast.com/sbin/tunein-station.pls?id=338824"},
- {"Latin.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=381441"},
- {"MKM CARAIBE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1818724"},
- {"FUSION","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2919730"},
- // Metal (120-129)
- {"MUSIK.ROCK","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071"},
- {"RockRadio1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1105299"},
- {"METAL ONLY","http://yp.shoutcast.com/sbin/tunein-station.pls?id=477309"},
- {"RockRadio1","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1105299"},
- {"ChroniX GRIT Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022"},
- {"MUSIK.METAL","http://yp.shoutcast.com/sbin/tunein-station.pls?id=141469"},
- {"Hard Rock Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=625229"},
- {"Death.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2885733"},
- {"Big R Radio 80s Metal FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=278974"},
- {"1.FM High Voltage","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272098"},
- // Misc (130-139)
- {"TOP100","http://yp.shoutcast.com/sbin/tunein-station.pls?id=239589"},
- {"TOP 100 ReaLCasT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=242423"},
- {"NeoFM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=548973"},
- {"radioparty.pl","http://yp.shoutcast.com/sbin/tunein-station.pls?id=97678"},
- {"Desetka Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377246"},
- {"Adom 106.3FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=292951"},
- {"Joy FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3730"},
- {"RADIO INFERNO MANELE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=293251"},
- {"Narodni radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=31307"},
- {"RaDYO DoGu MiX","http://yp.shoutcast.com/sbin/tunein-station.pls?id=245201"},
- //NEW Age (140-149)
- {"Nirvana Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272871"},
- {"Radio Art","http://yp.shoutcast.com/sbin/tunein-station.pls?id=411208"},
- {"Trancemission.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272865"},
- {"Pianorama","http://yp.shoutcast.com/sbin/tunein-station.pls?id=27717"},
- {"RADIO GAIA","http://yp.shoutcast.com/sbin/tunein-station.pls?id=187880"},
- {"M2 CHILLOUT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279147"},
- {"Underground Eighties","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377340"},
- {"Digital Relax","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1254140"},
- {"meditation.fm","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2269332"},
- {"1.FM Flashback Alternatives","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1268764"},
- // Pop (150-159)
- {"181.FM - POWER 181","http://www.181.fm/winamp.pls?station=181-power&file-power.pls"},
- {"977Music Hitz","http://977music.com/itunes/hitz.pls"},
- {"POWERHITZ","http://66.85.88.174:80/hitlist"},
- {"181.FM-UP TOP 40","http://s4.onweb.gr:8428/"},
- {"HOT 108 Jamz","http://jbmedia-edge1.cdnstream.com/hot108?cb=47242.mp3"},
- {"Happier","https://oce.oeaa.cc/0166bc12c0e9a4f87ac96f188aebf9d5/RE87rQkXdNw3"},
- {"Young Blood","https://eec.oeaa.cc/e9d87cc56dd8f5c613c9a1fdbf16e184/fpap3RTKjS8"},
- {"DEEJAY","http://listen.defjay.com/"},
- {"HIGH","https://sv2.onlinevideoconverter.com/download?file=j9e4e4h7b1b1a0b1b1"},
- {"EX'B","https://ooa.oeaa.cc/dda6917ebd77cfcd6828d32542ceafd2/4-Ovr7k2xzU"},
- // Public Radio (160-169)
- {"WUNC FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1271964"},
- {"KPBS","http://yp.shoutcast.com/sbin/tunein-station.pls?id=632915"},
- {"89.7 WUWM HD","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1278952"},
- {"WHRO","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1544465"},
- {"KCRW ECLECTIC24","http://yp.shoutcast.com/sbin/tunein-station.pls?id=56697"},
- {"SomaFM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377771"},
- {"WKCR","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2100812"},
- {"Rete Sport","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3090344"},
- {"North Country Public Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=857520"},
- {"RIPR","http://yp.shoutcast.com/sbin/tunein-station.pls?id=232368"},
- // R&B/Urban (170-179)
- {"DEFJAY.DE","http://yp.shoutcast.com/sbin/tunein-station.pls?id=65456"},
- {"Amped FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=178297"},
- {"HIT104","http://yp.shoutcast.com/sbin/tunein-station.pls?id=663859"},
- {"BreakZ.us","http://yp.shoutcast.com/sbin/tunein-station.pls?id=127014"},
- {"181.fm True R&B","http://yp.shoutcast.com/sbin/tunein-station.pls?id=83968"},
- {"POWERHITZ","http://www.powerhitz.com/ph.pls"},
- {"BlackBeats.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1543115"},
- {"Lenz Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1273477"},
- {"DEFJAY.COM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=616366"},
- {"Spin 1038","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1328653"},
- // Rap (180-189)
- {"HOT 108 JAMZ","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016"},
- {"MUSIK.JAM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269742"},
- {"181.FM The BEAT","http://yp.shoutcast.com/sbin/tunein-station.pls?id=166078"},
- {"Smoothbeats","http://yp.shoutcast.com/sbin/tunein-station.pls?id=9054"},
- {"108.FM THE HITLIST","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1282490"},
- {"TrueHipHop","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3083251"},
- {"A1Jamz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=49567"},
- {"True Beats","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1267461"},
- {"MKM URBAN","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1818926"},
- {"G'D UP RADIO","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1504548"},
- // Reggae (190-199)
- {"Roots Reggae SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=695657"},
- {"La Grosse Radio Reggae","http://yp.shoutcast.com/sbin/tunein-station.pls?id=5661"},
- {"BigUpRadio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269793"},
- {"Raggakings","http://yp.shoutcast.com/sbin/tunein-station.pls?id=123431"},
- {"PONdENDS","http://yp.shoutcast.com/sbin/tunein-station.pls?id=221874"},
- {"Reggae141","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855"},
- {"Reggae Radio Rasta","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1266989"},
- {"1.FM ReggaeTrade","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1272779"},
- {"Raggakings","http://yp.shoutcast.com/sbin/tunein-station.pls?id=123431"},
- {"Black Roots Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=231554"},
- // Rock (200-209)
- {"181.FM - The Buzz","http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586"},
- {"NOISEfm.pl","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3121111"},
- {"Radio Paradise","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805"},
- {"MUSIK.ROCK","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275071"},
- {"181.FM Good Time Oldies","http://yp.shoutcast.com/sbin/tunein-station.pls?id=25287"},
- {"181.fm Rock 181","http://yp.shoutcast.com/sbin/tunein-station.pls?id=302754"},
- {"ROCKY FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=684390"},
- {"ChroniX Aggression","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377260"},
- {"Rockenfolie","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2865"},
- {"80s SKY.FM","http://yp.shoutcast.com/sbin/tunein-station.pls?id=737152"},
- // Talk (210-219)
- {"Alex Jones","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1026951"},
- {"AM 1710 Antioch","http://yp.shoutcast.com/sbin/tunein-station.pls?id=2699"},
- {"89.3 KPCC","http://yp.shoutcast.com/sbin/tunein-station.pls?id=179361"},
- {"The Very Best Of Art Bell","http://yp.shoutcast.com/sbin/tunein-station.pls?id=47835"},
- {"KCRW ALL NEWS","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1279013"},
- {"2GB Sydney Talk","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1346749"},
- {"Broadband Comedy Network","http://yp.shoutcast.com/sbin/tunein-station.pls?id=3095781"},
- {"181.FM Comedy Club","http://yp.shoutcast.com/sbin/tunein-station.pls?id=52807"},
- {"Social Crime Radio","http://yp.shoutcast.com/sbin/tunein-station.pls?id=179709"},
- {"Radio Carlin","http://yp.shoutcast.com/sbin/tunein-station.pls?id=1495362"}
- };
- enum pCrime
- {
- pBplayer[32],
- pAccusing[32],
- pAccusedof[32],
- pVictim[32],
- };
- new PlayerCrime[MAX_PLAYERS][pCrime];
- enum EventKernelEnum
- {
- EventAdvisor,
- EventStatus,
- EventType,
- EventInfo[128],
- Float: EventHealth,
- Float: EventArmor,
- Float: EventPositionX,
- Float: EventPositionY,
- Float: EventPositionZ,
- EventInterior,
- EventWorld,
- EventWeapons[5],
- EventTeamColor[2],
- EventTeamSkin[2],
- EventLimit,
- EventTime,
- EventFootRace,
- EventPlayers,
- EventRequest,
- EventStartRequest,
- EventCreator,
- EventStaff[5],
- EventJoinStaff,
- VipOnly,
- Float: EventTeamPosX1,
- Float: EventTeamPosY1,
- Float: EventTeamPosZ1,
- Float: EventTeamPosX2,
- Float: EventTeamPosY2,
- Float: EventTeamPosZ2,
- EventAnim,
- EventHeal
- }
- new EventKernel[EventKernelEnum];
- enum reportinfo
- {
- HasBeenUsed,
- Report[140],
- ReportFrom,
- CheckingReport,
- TimeToExpire,
- BeingUsed,
- ReportExpireTimer,
- ReplyTimerr
- }
- new Reports[MAX_REPORTS][reportinfo];
- new ListItemReportId[MAX_PLAYERS][40];
- new CancelReport[MAX_PLAYERS];
- enum Spikes
- {
- Float:sX,
- Float:sY,
- Float:sZ,
- sObjectID,
- sDeployedBy[MAX_PLAYER_NAME],
- sDeployedAt[MAX_ZONE_NAME]
- }
- new SpikeStrips[10][Spikes];
- enum crInfo
- {
- Crew,
- CrewName[32],
- CrewPay,
- CrewLeader,
- };
- //new CrewInfo[MAX_CREW][crInfo];
- enum fInfo
- {
- FamilyTaken,
- FamilyName[42],
- FamilyMOTD[65],
- FamilyColor[128],
- FamilyTurfTokens,
- FamilyLeader[MAX_PLAYER_NAME],
- FamilyMembers,
- Float:FamilySpawn[4],
- FamilyInterior,
- FamilyCash,
- FamilyBank,
- FamilyMats,
- FamilyPot,
- FamilyCrack,
- Float:FamilySafe[3],
- FamilyUSafe,
- FamilyRank1[20],
- FamilyRank2[20],
- FamilyRank3[20],
- FamilyRank4[20],
- FamilyRank5[20],
- FamilyRank6[20],
- FamilyPickup,
- FamilyMaxSkins,
- FamilySkins[8],
- Float: FamilyEntrance[4],
- Float: FamilyExit[4],
- FamilyEntrancePickup,
- FamilyExitPickup,
- Text3D:FamilyEntranceText,
- Text3D:FamilyExitText,
- FamilyCustomMap,
- FamilyVirtualWorld,
- FamilyResetSpawns,
- FamilyGuns[10],
- FamilyBandana,
- FamilyOnline,
- FamilyCrew1,
- FamilyCrew2,
- FamilyCrew3,
- FamilyCrewname1[128],
- FamilyCrewname2[128],
- FamilyCrewname3[128],
- FamilyInTurf
- };
- new FamilyInfo[MAX_FAMILY][fInfo];
- new FactionPay[5][7];
- enum cdInfo
- {
- cdOwned,
- cdOwner[MAX_PLAYER_NAME],
- Float: cdEntranceX,
- Float: cdEntranceY,
- Float: cdEntranceZ,
- Float: cdExitX,
- Float: cdExitY,
- Float: cdExitZ,
- cdMessage[128],
- cdTill,
- cdInterior,
- Float: cdVehicleSpawn[4],
- Float: cdRadius,
- cdPrice,
- Float: cdVehicleSpawnX[MAX_DEALERSHIPVEHICLES],
- Float: cdVehicleSpawnY[MAX_DEALERSHIPVEHICLES],
- Float: cdVehicleSpawnZ[MAX_DEALERSHIPVEHICLES],
- Float: cdVehicleSpawnAngle[MAX_DEALERSHIPVEHICLES],
- cdVehicleModel[MAX_DEALERSHIPVEHICLES],
- cdVehicleCost[MAX_DEALERSHIPVEHICLES],
- cdVehicleId[MAX_DEALERSHIPVEHICLES], // non-saved
- cdPickupID, // non-saved
- Text3D:cdTextLabel, // non-saved
- Text3D:cdVehicleLabel[MAX_DEALERSHIPVEHICLES], // non-saved
- cdDonator,
- };
- new CarDealershipInfo[MAX_CARDEALERSHIPS][cdInfo];
- enum fvInfo
- {
- fvId,
- fvModelId,
- Float: fvSpawnx,
- Float: fvSpawny,
- Float: fvSpawnz,
- Float: fvSpawna,
- Float: fvSpawnxtmp,
- Float: fvSpawnytmp,
- Float: fvSpawnztmp,
- Float: fvSpawnatmp,
- fvLock,
- fvLocked,
- fvPaintJob,
- fvColor1,
- fvColor2,
- fvMods[MAX_MODS],
- fvPrice,
- fvImpounded,
- Float:fvFuel,
- };
- new FamilyVehicleInfo[MAX_FAMILY][MAX_GANG_VEHICLES][fvInfo];
- enum fPoint
- {
- Float:Pointx,
- Float:Pointy,
- Float:Pointz,
- Type,
- Vulnerable,
- MatPoint,
- CratePoint,
- Announced,
- ClaimerId,
- ClaimerTeam,
- TimeToClaim,
- TimeLeft,
- Owner[32],
- PlayerNameCapping[MAX_PLAYER_NAME],
- CapperName[MAX_PLAYER_NAME],
- Name[32],
- TakeOverTimerStarted,
- TakeOverTimer,
- Text3D:TextLabel,
- CaptureTimerEx2,
- Stock,
- //Text3D:CaptureProccess,
- Text3D:CaptureProgress,
- CaptureProccessEx,
- Float: Capturex,
- Float: Capturey,
- Float: Capturez,
- PointPickupID,
- Bar:PointBarID,
- }
- new Points[MAX_POINTS][fPoint];
- enum pFishing
- {
- pFish1[20],
- pFish2[20],
- pFish3[20],
- pFish4[20],
- pFish5[20],
- pWeight1,
- pWeight2,
- pWeight3,
- pWeight4,
- pWeight5,
- pFid1,
- pFid2,
- pFid3,
- pFid4,
- pFid5,
- pLastFish,
- pFishID,
- pLastWeight,
- };
- new Fishes[MAX_PLAYERS][pFishing];
- stock FishCost(playerid, fish)
- {
- if(IsPlayerConnected(playerid)) {
- new cost = 0;
- switch (fish)
- {
- case 1:
- {
- cost = 1;
- }
- case 2:
- {
- cost = 1;
- }
- case 3:
- {
- cost = 1;
- }
- case 5:
- {
- cost = 5;
- }
- case 6:
- {
- cost = 2;
- }
- case 8:
- {
- cost = 8;
- }
- case 9:
- {
- cost = 12;
- }
- case 11:
- {
- cost = 9;
- }
- case 12:
- {
- cost = 7;
- }
- case 14:
- {
- cost = 12;
- }
- case 15:
- {
- cost = 9;
- }
- case 16:
- {
- cost = 7;
- }
- case 17:
- {
- cost = 7;
- }
- case 18:
- {
- cost = 10;
- }
- case 19:
- {
- cost = 4;
- }
- case 21:
- {
- cost = 3;
- }
- }
- return cost;
- }
- return 0;
- }
- stock ClearFishes(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
- Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
- Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
- Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "None");
- strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
- strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
- }
- return 1;
- }
- stock ClearFishID(playerid, fish)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "None");
- switch (fish)
- {
- case 1:
- {
- strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight1] = 0;
- Fishes[playerid][pFid1] = 0;
- }
- case 2:
- {
- strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight2] = 0;
- Fishes[playerid][pFid2] = 0;
- }
- case 3:
- {
- strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight3] = 0;
- Fishes[playerid][pFid3] = 0;
- }
- case 4:
- {
- strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight4] = 0;
- Fishes[playerid][pFid4] = 0;
- }
- case 5:
- {
- strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
- Fishes[playerid][pWeight5] = 0;
- Fishes[playerid][pFid5] = 0;
- }
- }
- }
- return 1;
- }
- enum hNews
- {
- hTaken1,
- hTaken2,
- hTaken3,
- hTaken4,
- hTaken5,
- hTaken6,
- hTaken7,
- hTaken8,
- hTaken9,
- hTaken10,
- hTaken11,
- hTaken12,
- hTaken13,
- hTaken14,
- hTaken15,
- hTaken16,
- hTaken17,
- hTaken18,
- hTaken19,
- hTaken20,
- hTaken21,
- hAdd1[64],
- hAdd2[64],
- hAdd3[64],
- hAdd4[64],
- hAdd5[64],
- hAdd6[64],
- hAdd7[64],
- hAdd8[64],
- hAdd9[64],
- hAdd10[64],
- hAdd11[64],
- hAdd12[64],
- hAdd13[64],
- hAdd14[64],
- hAdd15[64],
- hAdd16[64],
- hAdd17[64],
- hAdd18[64],
- hAdd19[64],
- hAdd20[64],
- hAdd21[64],
- hContact1[64],
- hContact2[64],
- hContact3[64],
- hContact4[64],
- hContact5[64],
- hContact6[64],
- hContact7[64],
- hContact8[64],
- hContact9[64],
- hContact10[64],
- hContact11[64],
- hContact12[64],
- hContact13[64],
- hContact14[64],
- hContact15[64],
- hContact16[64],
- hContact17[64],
- hContact18[64],
- hContact19[64],
- hContact20[64],
- hContact21[64],
- };
- new News[hNews];
- enum pInfo
- {
- pKey[129],
- pLevel,
- pID,
- pAdmin,
- pAdminName[32],
- pBanAppealer,
- pGangMod,
- pFactionMod,
- pHelperMod,
- pDonator,
- pBanned,
- pWalkStyle,
- pPermaBanned,
- pDisabled,
- pIP[16],
- pReg,
- pTut,
- pSex,
- pAge,
- pSkin,
- Float:pPos_x,
- Float:pPos_y,
- Float:pPos_z,
- Float:pPos_r,
- pConnectTime,
- pRespect,
- pNumber,
- pWarns,
- pGang,
- pFaction,
- pLeader,
- pRank,
- pJob,
- pJob2,
- gPupgrade,
- Float:pSarmor,
- pCash,
- pBank,
- pInsurance,
- pCrimes,
- pArrested,
- pWantedLevel,
- Float:pHealth,
- Float:pArmor,
- pPot,
- pCrack,
- pPackages,
- pCrates,
- pRadio,
- pRadioFreq,
- pPhoneBook,
- pDice,
- pCDPlayer,
- pMats,
- pRope,
- pCigar,
- pSprunk,
- pSpraycan,
- pHouse,
- pHouse2,
- pRenting,
- pInt,
- pVW,
- pJailed,
- pJailTime,
- pGuns[12],
- pAGuns[12],
- pPayCheck,
- pPayReady,
- pHospital,
- pDetSkill,
- pLawSkill,
- pSexSkill,
- pDrugsSkill,
- pSmugSkill,
- pArmsSkill,
- pMechSkill,
- pFishSkill,
- pBoxSkill,
- pTruckSkill,
- pCarSkill,
- //pCraftSkill,
- pLawyerTime,
- pLawyerFreeTime,
- pDrugsTime,
- pMechTime,
- pSexTime,
- pCarTime,
- pFishes,
- pBiggestFish,
- pLockCar, // non-saved
- pWeedObject,
- Float: pWeedPos[3],
- pWeedVW,
- pWeedInt,
- pWeedGrowth,
- pWSeeds,
- pWins,
- pLoses,
- pFightStyle,
- pScrewdriver,
- pSmslog,
- pWristwatch,
- pTire,
- pFirstaid,
- pRccam,
- pReceiver,
- pGPS,
- pSweep,
- pSweepLeft,
- pBugged,
- pVehicleKeys,
- pVehicleKeysFrom,
- pDuty,
- pCarLic,
- pFlyLic,
- pBoatLic,
- pFishLic,
- pGunLic,
- pDivision,
- pLiveBanned,
- pTicketTime,
- pHeadValue,
- pContractBy[32],
- pContractDetail[64],
- pC4,
- pC4Get,
- pC4Used,
- pBombs,
- pCHits,
- pFHits,
- pPrisonedBy[MAX_PLAYER_NAME],
- pPrisonReason[128],
- pAcceptReport,
- pTrashReport,
- pAccent,
- pNMute,
- pNMuteTotal,
- pADMute,
- pADMuteTotal,
- pRMuted,
- pRMutedTotal,
- pRMutedTime,
- pSpeedo,
- pGCMuted,
- pGCMutedTime,
- pCallsAccepted,
- pHelper,
- pPatientsDelivered,
- pTriageTime,
- pGunRes,
- pMarried,
- pMarriedTo[MAX_PLAYER_NAME],
- pKillLog0[128],
- pKillLog1[128],
- pKillLog2[128],
- pKillLog3[128],
- pKillLog4[128],
- pKillLog5[128],
- pKillLog6[128],
- pKillLog7[128],
- pKillLog8[128],
- pKillLog9[128],
- pFlag[128],
- pReferredBy[MAX_PLAYER_NAME],
- pRefTokens,
- pRefTokensOffline,
- pWepRes,
- pFormer,
- pNoDamage,
- pVDB,
- pOS,
- pVintage,
- pFamed,
- pCustomTitle[64],
- pCustomTColor,
- pAdminHide,
- pDamageTimer,
- pDonatorColor,
- pTempWeapons,
- pWeapons,
- pLastGlobal,
- pTT,
- pNC,
- pPills,
- pBizID,
- pClaim,
- pCrew1,
- pCrew2,
- pCrew3,
- pBackpack,
- pBPPot,
- pBPCrack,
- pBPCash,
- pWearingBP,
- pLoopAnim,
- pLand,
- pMiningRock,
- pPickaxe,
- pSpawnMC,
- };
- new PlayerInfo[MAX_PLAYERS + 1][pInfo];
- enum pvInfo
- {
- Float:pvPosX,
- Float:pvPosY,
- Float:pvPosZ,
- Float:pvPosAngle,
- pvId,
- pvModelId,
- pvLock,
- pvLocked,
- pvPaintJob,
- pvColor1,
- pvColor2,
- pvMods[MAX_MODS],
- pvAllowedPlayerId,
- pvPark,
- pvNumberPlate[32],
- pvPrice,
- pvTicket,
- pvWeapons[3],
- pvWepUpgrade,
- pvImpounded,
- pvSpawned,
- pvDisabled,
- Float: pvFuel,
- };
- new PlayerVehicleInfo[MAX_PLAYERS+1][MAX_PLAYERVEHICLES][pvInfo];
- enum ptInfo
- {
- ptModelID,
- ptBone,
- Float:ptPosX,
- Float:ptPosY,
- Float:ptPosZ,
- Float:ptRotX,
- Float:ptRotY,
- Float:ptRotZ,
- Float:ptScaleX,
- Float:ptScaleY,
- Float:ptScaleZ,
- };
- new PlayerToyInfo[MAX_PLAYERS+1][MAX_PLAYERTOYS][ptInfo];
- enum hInfo
- {
- hOwned,
- hLevel,
- hHInteriorWorld,
- hCustomInterior,
- //hDescription[8],
- hOwner[ MAX_PLAYER_NAME ],
- Float: hExteriorX,
- Float: hExteriorY,
- Float: hExteriorZ,
- Float: hExteriorR,
- Float: hExteriorA,
- Float: hInteriorX,
- Float: hInteriorY,
- Float: hInteriorZ,
- Float: hInteriorR,
- Float: hInteriorA,
- hLock,
- hRentable,
- hRentFee,
- hValue,
- hSafeMoney,
- hPot,
- hCrack,
- hMaterials,
- hWeapons[5],
- hGLUpgrade,
- hPickupID,
- Text3D: hTextID,
- hCustomExterior,
- };
- new HouseInfo[MAX_HOUSES][hInfo];
- enum dmpInfo
- {
- dmpMapIconID,
- Float: dmpPosX,
- Float: dmpPosY,
- Float: dmpPosZ,
- dmpMarkerType,
- dmpColor,
- dmpVW,
- dmpInt,
- }
- new DMPInfo[MAX_DMAPICONS][dmpInfo];
- enum ddInfo
- {
- ddDescription[128],
- ddPickupID,
- Text3D: ddTextID,
- ddCustomInterior,
- ddExteriorVW,
- ddExteriorInt,
- ddInteriorVW,
- ddInteriorInt,
- Float: ddExteriorX,
- Float: ddExteriorY,
- Float: ddExteriorZ,
- Float: ddExteriorA,
- Float: ddInteriorX,
- Float: ddInteriorY,
- Float: ddInteriorZ,
- Float: ddInteriorA,
- ddCustomExterior,
- ddVIP,
- ddGang,
- ddFaction,
- ddAdmin,
- ddWanted,
- ddVehicleAble,
- ddColor,
- ddPickupModel,
- ddPass[24],
- ddLocked,
- ddNotEditable,
- };
- new DDoorsInfo[MAX_DDOORS][ddInfo];
- enum bbInfo
- {
- Float:bbPosX,
- Float:bbPosY,
- Float:bbPosZ,
- bbInt,
- bbVW,
- bbStation,
- bbSetBy,
- bbObject,
- };
- new BoomboxInfo[MAX_PLAYERS][bbInfo];
- /*enum rankingEnum {
- iKills,
- iPlayerID,
- }
- new PlayerRatio[MAX_PLAYERS][rankingEnum];*/
- stock DoubleEXPcheck(hour) {
- FixHour(hour);
- hour = shifthour;
- if(hour >= 13 && hour <= 15)
- return 1; // EU timezone
- else if(hour >= 18 && hour <= 20)
- return 1; // US timezone
- else if(hour >= 0 && hour <= 2)
- return 1; // OC timezone
- return 0;
- }
- stock Misc_Save() {
- new
- szFileStr[32],
- File: iFileHandle = fopen("serverConfig.ini", io_write);
- ini_SetInteger(iFileHandle, szFileStr, "Jackpot", Jackpot);
- //ini_SetInteger(iFileHandle, szFileStr, "Tax", Tax);
- //ini_SetFloat(iFileHandle, szFileStr, "Tax", Tax);
- //ini_SetInteger(iFileHandle, szFileStr, "TaxVal", TaxValue);
- ini_SetInteger(iFileHandle, szFileStr, "LoginCount", TotalLogin);
- ini_SetInteger(iFileHandle, szFileStr, "ConnCount", TotalConnect);
- ini_SetInteger(iFileHandle, szFileStr, "ABanCount", TotalAutoBan);
- ini_SetInteger(iFileHandle, szFileStr, "RegCount", TotalRegister);
- ini_SetInteger(iFileHandle, szFileStr, "MaxPCount", MaxPlayersConnected);
- ini_SetInteger(iFileHandle, szFileStr, "MaxPDay", MPDay);
- ini_SetInteger(iFileHandle, szFileStr, "MaxPMonth", MPMonth);
- ini_SetInteger(iFileHandle, szFileStr, "MaxPYear", MPYear);
- ini_SetInteger(iFileHandle, szFileStr, "Uptime", TotalUptime);
- ini_SetString(iFileHandle, "gMOTD", GlobalMOTD);
- ini_SetString(iFileHandle, "aMOTD", AdminMOTD);
- ini_SetString(iFileHandle, "pdMOTD", LSPDmotd);
- ini_SetString(iFileHandle, "fbiMOTD", FBImotd);
- ini_SetString(iFileHandle, "aresMOTD", ARESmotd);
- ini_SetString(iFileHandle, "sasdMOTD", SASDmotd);
- ini_SetString(iFileHandle, "fmdMOTD", FMDmotd);
- fclose(iFileHandle);
- }
- stock Misc_Load() {
- new
- szResult[32],
- szFileStr[160],
- File: iFileHandle = fopen("serverConfig.ini", io_read);
- while(fread(iFileHandle, szFileStr, sizeof(szFileStr))) {
- if(ini_GetValue(szFileStr, "gMOTD", GlobalMOTD, sizeof(GlobalMOTD))) continue;
- if(ini_GetValue(szFileStr, "aMOTD", AdminMOTD, sizeof(AdminMOTD))) continue;
- if(ini_GetValue(szFileStr, "pdMOTD", LSPDmotd, sizeof(LSPDmotd))) continue;
- if(ini_GetValue(szFileStr, "fbiMOTD", FBImotd, sizeof(FBImotd))) continue;
- if(ini_GetValue(szFileStr, "aresMOTD", ARESmotd, sizeof(ARESmotd))) continue;
- if(ini_GetValue(szFileStr, "sasdMOTD", SASDmotd, sizeof(SASDmotd))) continue;
- if(ini_GetValue(szFileStr, "fmdMOTD", FMDmotd, sizeof(FMDmotd))) continue;
- else if(ini_GetValue(szFileStr, "Jackpot", szResult, sizeof(szResult))) Jackpot = strval(szResult);
- //else if(ini_GetValue(szFileStr, "Tax", szResult, sizeof(szResult))) Tax = strval(szResult);
- //else if(ini_GetValue(szFileStr, "TaxVal", szResult, sizeof(szResult))) TaxValue = strval(szResult);
- else if(ini_GetValue(szFileStr, "LoginCount", szResult, sizeof(szResult))) TotalLogin = strval(szResult);
- else if(ini_GetValue(szFileStr, "ConnCount", szResult, sizeof(szResult))) TotalConnect = strval(szResult);
- else if(ini_GetValue(szFileStr, "ABanCount", szResult, sizeof(szResult))) TotalAutoBan = strval(szResult);
- else if(ini_GetValue(szFileStr, "RegCount", szResult, sizeof(szResult))) TotalRegister = strval(szResult);
- else if(ini_GetValue(szFileStr, "MaxPCount", szResult, sizeof(szResult))) MaxPlayersConnected = strval(szResult);
- else if(ini_GetValue(szFileStr, "MaxPDay", szResult, sizeof(szResult))) MPDay = strval(szResult);
- else if(ini_GetValue(szFileStr, "MaxPMonth", szResult, sizeof(szResult))) MPMonth = strval(szResult);
- else if(ini_GetValue(szFileStr, "MaxPYear", szResult, sizeof(szResult))) MPYear = strval(szResult);
- else if(ini_GetValue(szFileStr, "Uptime", szResult, sizeof(szResult))) TotalUptime = strval(szResult);
- }
- fclose(iFileHandle);
- }
- stock LoadThePay()
- {
- new sz_FacPayStr[128], File: i_FileHandle, arrayIndex;
- #define PAY_FILE "factionpay.cfg"
- if(!fexist(PAY_FILE)) return 1;
- i_FileHandle = fopen(PAY_FILE, io_read);
- while (arrayIndex < sizeof(FactionPay))
- {
- fread(i_FileHandle, sz_FacPayStr);
- sscanf(sz_FacPayStr, "p<|>iiiiiii",
- FactionPay[arrayIndex][0],
- FactionPay[arrayIndex][1],
- FactionPay[arrayIndex][2],
- FactionPay[arrayIndex][3],
- FactionPay[arrayIndex][4],
- FactionPay[arrayIndex][5],
- FactionPay[arrayIndex][6]
- );
- arrayIndex++;
- }
- return fclose(i_FileHandle);
- }
- stock SaveThePay()
- {
- new File: i_FileHandle = fopen(PAY_FILE, io_write), arrayIndex, sz_FileStr[128];
- while(arrayIndex < sizeof(FactionPay)) {
- format(sz_FileStr, sizeof(sz_FileStr), "%d|%d|%d|%d|%d|%d|%d\r\n",
- FactionPay[arrayIndex][0],
- FactionPay[arrayIndex][1],
- FactionPay[arrayIndex][2],
- FactionPay[arrayIndex][3],
- FactionPay[arrayIndex][4],
- FactionPay[arrayIndex][5],
- FactionPay[arrayIndex][6]
- );
- fwrite(i_FileHandle, sz_FileStr);
- arrayIndex++;
- }
- #undef PAY_FILE
- return fclose(i_FileHandle);
- }
- ini_GetValue(szParse[], szValueName[], szDest[], iDestLen)
- {
- new
- iPos = strfind(szParse, "=", false),
- iLength = strlen(szParse);
- while(iLength-- && szParse[iLength] <= ' ')
- {
- szParse[iLength] = 0;
- }
- if(strcmp(szParse, szValueName, false, iPos) == 0)
- {
- strmid(szDest, szParse, iPos + 1, iLength + 1, iDestLen);
- return 1;
- }
- return 0;
- }
- stock SetVehicleLights(vehicleid, playerid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(lights == VEHICLE_PARAMS_ON)
- {
- SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle lights successfully turned off.");
- }
- else if(lights == VEHICLE_PARAMS_OFF || lights == VEHICLE_PARAMS_UNSET)
- {
- SetVehicleParamsEx(vehicleid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle lights successfully turned on.");
- }
- return 1;
- }
- stock SetVehicleTrunk(vehicleid, playerid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(boot == VEHICLE_PARAMS_ON)
- {
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle trunk successfully closed.");
- }
- else if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET)
- {
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle trunk successfully opened.");
- }
- return 1;
- }
- stock SetVehicleHood(vehicleid, playerid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(bonnet == VEHICLE_PARAMS_ON)
- {
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle hood successfully closed.");
- }
- else if(bonnet == VEHICLE_PARAMS_OFF || bonnet == VEHICLE_PARAMS_UNSET)
- {
- SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle hood successfully opened.");
- }
- return 1;
- }
- stock ShowNMuteFine(playerid)
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new allmoney;
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- allmoney = HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
- {
- allmoney += HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney];
- }
- else
- {
- allmoney = GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- new fine = 10*allmoney/100;
- if(PlayerInfo[playerid][pNMuteTotal] < 4)
- {
- new string[64];
- format(string,sizeof(string),"Prison for %d Minutes\nCash Fine ($%d)",PlayerInfo[playerid][pNMuteTotal] * 15, fine);
- ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:",string,"Select","Cancel");
- }
- else if(PlayerInfo[playerid][pNMuteTotal] == 4) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour","Select","Cancel");
- else if(PlayerInfo[playerid][pNMuteTotal] == 5) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour and 15 Minutes","Select","Cancel");
- else if(PlayerInfo[playerid][pNMuteTotal] == 6) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour and 30 Minutes","Select","Cancel");
- }
- forward RespawnVehicleFunction(vehicleid);
- public RespawnVehicleFunction(vehicleid) {
- return SetVehicleToRespawn(vehicleid);
- }
- stock ShowAdMuteFine(playerid)
- {
- new string[128];
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new allmoney;
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- allmoney = HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
- {
- allmoney += HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney];
- }
- else
- {
- allmoney = GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- new fine = 10*allmoney/100;
- if(PlayerInfo[playerid][pADMuteTotal] < 4)
- {
- format(string,sizeof(string),"Prison for %d Minutes\nCash Fine ($%d)",PlayerInfo[playerid][pADMuteTotal]*15,fine);
- }
- if(PlayerInfo[playerid][pADMuteTotal] == 4)
- {
- format(string,sizeof(string),"Prison for 1 Hour");
- }
- if(PlayerInfo[playerid][pADMuteTotal] == 5)
- {
- format(string,sizeof(string),"Prison for 1 Hour and 15 Minutes)");
- }
- if(PlayerInfo[playerid][pADMuteTotal] == 6)
- {
- format(string,sizeof(string),"Prison for 1 Hour and 30 Minutes");
- }
- ShowPlayerDialogEx(playerid,ADMUTE,DIALOG_STYLE_LIST,"Advertisements Unmute - Select your Punishment:",string,"Select","Cancel");
- }
- stock FindFreeAttachedObjectSlot(playerid)
- {
- new index;
- while (index < MAX_PLAYER_ATTOBJECTS && IsPlayerAttachedObjectSlotUsed(playerid, index))
- {
- index++;
- }
- if(index == MAX_PLAYER_ATTOBJECTS) return -1;
- return index;
- }
- // Interiors
- new InteriorDialogNames[149][] =
- {
- "Four Dragons' Managerial Suite",
- "Ganton Gym",
- "Brothel",
- "Brothel2",
- "Inside Track Betting",
- "Blastin' Fools Records",
- "The Big Spread Ranch",
- "Warehouse 1",
- "Warehouse 2",
- "B Dup's Apartment",
- "B Dup's Crack Palace",
- "Wheel Arch Angels",
- "OG Loc's House",
- "Barber Shop",
- "Planning Department",
- "Las Venturas Police Department",
- "Pro-Laps",
- "Sex Shop",
- "Las Venturas Tattoo parlor",
- "Lost San Fierro Tattoo parlor",
- "24/7 (version 1)",
- "Diner 1",
- "Pizza Stack",
- "Rusty Brown's Donuts",
- "Ammu-nation",
- "Victim",
- "Loco Low Co",
- "San Fierro Police Department",
- "24/7 (version 2 - large)",
- "Below The Belt Gym (Las Venturas)",
- "Transfenders",
- "World of Coq",
- "Ammu-nation (version 2)",
- "SubUrban",
- "Denise's Bedroom",
- "Helena's Barn",
- "Barbara's Love nest",
- "San Fierro Garage",
- "Oval Stadium",
- "8-Track Stadium",
- "The Pig Pen (strip club 2)",
- "Four Dragons",
- "Liberty City",
- "Ryder's house",
- "Sweet's House",
- "RC Battlefield",
- "The Johnson House",
- "Burger shot",
- "Caligula's Casino",
- "Katie's Lovenest",
- "Barber Shop 2 (Reece's)",
- "Angel Pine Trailer",
- "24/7 (version 3)",
- "Zip",
- "The Pleasure Domes",
- "Madd Dogg's Mansion",
- "Big Smoke's Crack Palace",
- "Burning Desire Building",
- "Wu-Zi Mu's",
- "Abandoned AC tower",
- "Wardrobe/Changing room",
- "Didier Sachs",
- "Casino (Redsands West)",
- "Kickstart Stadium",
- "Club",
- "Atrium",
- "Los Santos Tattoo Parlor",
- "Safe House group 1",
- "Safe House group 2",
- "Safe House group 3",
- "Safe House group 4",
- "Sherman Dam",
- "24/7 (version 4)",
- "Jefferson Motel",
- "Jet Interior",
- "The Welcome Pump",
- "Burglary House X1",
- "Burglary House X2",
- "Burglary House X3",
- "Burglary House X4",
- "Binco",
- "4 Burglary houses",
- "Blood Bowl Stadium",
- "Budget Inn Motel Room",
- "Palamino Bank",
- "Palamino Diner",
- "Dillimore Gas Station",
- "Lil' Probe Inn",
- "Torreno's Ranch",
- "Zombotech - lobby area",
- "Crypt in LS cemetery (temple)",
- "Blueberry Liquor Store",
- "Pair of Burglary Houses",
- "Crack Den",
- "Burglary House X11",
- "Burglary House X12",
- "Ammu-nation (version 3)",
- "Jay's Diner",
- "24/7 (version 5)",
- "Warehouse 3",
- "Michelle's Love Nest*",
- "Burglary House X14",
- "Sindacco Abatoir",
- "K.A.C.C. Military Fuels Depot",
- "Area 69",
- "Burglary House X13",
- "Unused Safe House",
- "Millie's Bedroom",
- "Barber Shop",
- "Dirtbike Stadium",
- "Cobra Gym",
- "Los Santos Police Department",
- "Los Santos Airport",
- "Burglary House X15",
- "Burglary House X16",
- "Burglary House X17",
- "Bike School",
- "Francis International Airport",
- "Vice Stadium",
- "Burglary House X18",
- "Burglary House X19",
- "Zero's RC Shop",
- "Ammu-nation (version 4)",
- "Ammu-nation (version 5)",
- "Burglary House X20",
- "24/7 (version 6)",
- "Secret Valley Diner",
- "Rosenberg's Office in Caligulas",
- "Fanny Batter's Whore House",
- "Colonel Furhberger's",
- "Cluckin' Bell",
- "The Camel's Toe Safehouse",
- "Caligula's Roof",
- "Old Venturas Strip Casino",
- "Driving School",
- "Verdant Bluffs Safehouse",
- "Bike School",
- "Andromada",
- "Four Dragons' Janitor's Office",
- "Bar",
- "Burglary House X21",
- "Willowfield Safehouse",
- "Burglary House X22",
- "Burglary House X23",
- "Otto's Autos",
- "Wang Cars",
- "Loco Low",
- "Wheel Arch Angels",
- "Transfender"
- };
- new Float:InteriorDialogData[149][4] =
- {
- {2003.1178, 1015.1948, 33.008, 351.5789},
- {770.8033, -0.7033, 1000.7267, 22.8599},
- {974.0177, -9.5937, 1001.1484, 22.6045},
- {961.9308, -51.9071, 1001.1172, 95.5381},
- {830.6016, 5.9404, 1004.1797, 125.8149},
- {1037.8276, 0.397, 1001.2845, 353.9335},
- {1212.1489, -28.5388, 1000.9531, 170.5692},
- {1290.4106, 1.9512, 1001.0201, 179.9419},
- {1412.1472, -2.2836, 1000.9241, 114.661},
- {1527.0468, -12.0236, 1002.0971, 350.0013},
- {1523.5098, -47.8211, 1002.2699, 262.7038},
- {612.2191, -123.9028, 997.9922, 266.5704},
- {512.9291, -11.6929, 1001.5653, 198.7669},
- {418.4666, -80.4595, 1001.8047, 343.2358},
- {386.5259, 173.6381, 1008.3828, 63.7399},
- {288.4723, 170.0647, 1007.1794, 22.0477},
- {206.4627, -137.7076, 1003.0938, 10.9347},
- {-100.2674, -22.9376, 1000.7188, 17.285},
- {-201.2236, -43.2465, 1002.2734, 45.8613},
- {-202.9381, -6.7006, 1002.2734, 204.2693},
- {-25.7220, -187.8216, 1003.5469, 5.0760},
- {454.9853, -107.2548, 999.4376, 309.0195},
- {372.5565, -131.3607, 1001.4922, 354.2285},
- {378.026, -190.5155, 1000.6328, 141.0245},
- {315.244, -140.8858, 999.6016, 7.4226},
- {225.0306, -9.1838, 1002.218, 85.5322},
- {611.3536, -77.5574, 997.9995, 320.9263},
- {246.0688, 108.9703, 1003.2188, 0.2922},
- {6.0856, -28.8966, 1003.5494, 5.0365},
- {773.7318, -74.6957, 1000.6542, 5.2304},
- {621.4528, -23.7289, 1000.9219, 15.6789},
- {445.6003, -6.9823, 1000.7344, 172.2105},
- {285.8361, -39.0166, 1001.5156, 0.7529},
- {204.1174, -46.8047, 1001.8047, 357.5777},
- {245.2307, 304.7632, 999.1484, 273.4364},
- {290.623, 309.0622, 999.1484, 89.9164},
- {322.5014, 303.6906, 999.1484, 8.1747},
- {-2041.2334, 178.3969, 28.8465, 156.2153},
- {-1402.6613, 106.3897, 1032.2734, 105.1356},
- {-1403.0116, -250.4526, 1043.5341, 355.8576},
- {1204.6689, -13.5429, 1000.9219, 350.0204},
- {2016.1156, 1017.1541, 996.875, 88.0055},
- {-741.8495, 493.0036, 1371.9766, 71.7782},
- {2447.8704, -1704.4509, 1013.5078, 314.5253},
- {2527.0176, -1679.2076, 1015.4986, 260.9709},
- {-1129.8909, 1057.5424, 1346.4141, 274.5268},
- {2496.0549, -1695.1749, 1014.7422, 179.2174},
- {366.0248, -73.3478, 1001.5078, 292.0084},
- {2233.9363, 1711.8038, 1011.6312, 184.3891},
- {269.6405, 305.9512, 999.1484, 215.6625},
- {414.2987, -18.8044, 1001.8047, 41.4265},
- {1.1853, -3.2387, 999.4284, 87.5718},
- {-30.9875, -89.6806, 1003.5469, 359.8401},
- {161.4048, -94.2416, 1001.8047, 0.7938},
- {-2638.8232, 1407.3395, 906.4609, 94.6794},
- {1267.8407, -776.9587, 1091.9063, 231.3418},
- {2536.5322, -1294.8425, 1044.125, 254.9548},
- {2350.1597, -1181.0658, 1027.9766, 99.1864},
- {-2158.6731, 642.09, 1052.375, 86.5402},
- {419.8936, 2537.1155, 10.0, 67.6537},
- {256.9047, -41.6537, 1002.0234, 85.8774},
- {204.1658, -165.7678, 1000.5234, 181.7583},
- {1133.35, -7.8462, 1000.6797, 165.8482},
- {-1420.4277, 1616.9221, 1052.5313, 159.1255},
- {493.1443, -24.2607, 1000.6797, 356.9864},
- {1727.2853, -1642.9451, 20.2254, 172.4193},
- {-202.842, -24.0325, 1002.2734, 252.8154},
- {2233.6919, -1112.8107, 1050.8828, 8.6483},
- {1211.2484, 1049.0234, 359.941, 170.9341},
- {2319.1272, -1023.9562, 1050.2109, 167.3959},
- {2261.0977, -1137.8833, 1050.6328, 266.88},
- {-944.2402, 1886.1536, 5.0051, 179.8548},
- {-26.1856, -140.9164, 1003.5469, 2.9087},
- {2217.281, -1150.5349, 1025.7969, 273.7328},
- {1.5491, 23.3183, 1199.5938, 359.9054},
- {681.6216, -451.8933, -25.6172, 166.166},
- {234.6087, 1187.8195, 1080.2578, 349.4844},
- {225.5707, 1240.0643, 1082.1406, 96.2852},
- {224.288, 1289.1907, 1082.1406, 359.868},
- {239.2819, 1114.1991, 1080.9922, 270.2654},
- {207.5219, -109.7448, 1005.1328, 358.62},
- {295.1391, 1473.3719, 1080.2578, 352.9526},
- {-1417.8927, 932.4482, 1041.5313, 0.7013},
- {446.3247, 509.9662, 1001.4195, 330.5671},
- {2306.3826, -15.2365, 26.7496, 274.49},
- {2331.8984, 6.7816, 26.5032, 100.2357},
- {663.0588, -573.6274, 16.3359, 264.9829},
- {-227.5703, 1401.5544, 27.7656, 269.2978},
- {-688.1496, 942.0826, 13.6328, 177.6574},
- {-1916.1268, 714.8617, 46.5625, 152.2839},
- {818.7714, -1102.8689, 25.794, 91.1439},
- {255.2083, -59.6753, 1.5703, 1.4645},
- {446.626, 1397.738, 1084.3047, 343.9647},
- {227.3922, 1114.6572, 1080.9985, 267.459},
- {227.7559, 1114.3844, 1080.9922, 266.2624},
- {261.1165, 1287.2197, 1080.2578, 178.9149},
- {291.7626, -80.1306, 1001.5156, 290.2195},
- {449.0172, -88.9894, 999.5547, 89.6608},
- {-27.844, -26.6737, 1003.5573, 184.3118},
- {2135.2004, -2276.2815, 20.6719, 318.59},
- {306.1966, 307.819, 1003.3047, 203.1354},
- {24.3769, 1341.1829, 1084.375, 8.3305},
- {963.0586, 2159.7563, 1011.0303, 175.313},
- {2548.4807, 2823.7429, 10.8203, 270.6003},
- {215.1515, 1874.0579, 13.1406, 177.5538},
- {221.6766, 1142.4962, 1082.6094, 184.9618},
- {2323.7063, -1147.6509, 1050.7101, 206.5352},
- {344.9984, 307.1824, 999.1557, 193.643},
- {411.9707, -51.9217, 1001.8984, 173.3449},
- {-1421.5618, -663.8262, 1059.5569, 170.9341},
- {773.8887, -47.7698, 1000.5859, 10.7161},
- {246.6695, 65.8039, 1003.6406, 7.9562},
- {-1864.9434, 55.7325, 1055.5276, 85.8541},
- {-262.1759, 1456.6158, 1084.3672, 82.459},
- {22.861, 1404.9165, 1084.4297, 349.6158},
- {140.3679, 1367.8837, 1083.8621, 349.2372},
- {1494.8589, 1306.48, 1093.2953, 196.065},
- {-1813.213, -58.012, 1058.9641, 335.3199},
- {-1401.067, 1265.3706, 1039.8672, 178.6483},
- {234.2826, 1065.229, 1084.2101, 4.3864},
- {-68.5145, 1353.8485, 1080.2109, 3.5742},
- {-2240.1028, 136.973, 1035.4141, 269.0954},
- {297.144, -109.8702, 1001.5156, 20.2254},
- {316.5025, -167.6272, 999.5938, 10.3031},
- {-285.2511, 1471.197, 1084.375, 85.6547},
- {-26.8339, -55.5846, 1003.5469, 3.9528},
- {442.1295, -52.4782, 999.7167, 177.9394},
- {2182.2017, 1628.5848, 1043.8723, 224.8601},
- {748.4623, 1438.2378, 1102.9531, 0.6069},
- {2807.3604, -1171.7048, 1025.5703, 193.7117},
- {366.0002, -9.4338, 1001.8516, 160.528},
- {2216.1282, -1076.3052, 1050.4844, 86.428},
- {2268.5156, 1647.7682, 1084.2344, 99.7331},
- {2236.6997, -1078.9478, 1049.0234, 2.5706},
- {-2031.1196, -115.8287, 1035.1719, 190.1877},
- {2365.1089, -1133.0795, 1050.875, 177.3947},
- {1168.512, 1360.1145, 10.9293, 196.5933},
- {315.4544, 976.5972, 1960.8511, 359.6368},
- {1893.0731, 1017.8958, 31.8828, 86.1044},
- {501.9578, -70.5648, 998.7578, 171.5706},
- {-42.5267, 1408.23, 1084.4297, 172.068},
- {2283.3118, 1139.307, 1050.8984, 19.7032},
- {84.9244, 1324.2983, 1083.8594, 159.5582},
- {260.7421, 1238.2261, 1084.2578, 84.3084},
- {-1658.1656, 1215.0002, 7.25, 103.9074},
- {-1961.6281, 295.2378, 35.4688, 264.4891},
- {616.7820, -74.8151, 997.6350, 264.4891},
- {615.2851, -124.2390, 997.6350, 264.4891},
- {617.5380, -1.9900, 1000.6829, 264.4891}
- };
- new InteriorDialogInteriors[149][1] =
- {
- {11},
- {5},
- {3},
- {3},
- {3},
- {3},
- {3},
- {18},
- {1},
- {3},
- {2},
- {3},
- {3},
- {3},
- {3},
- {3},
- {3},
- {3},
- {3},
- {17},
- {17},
- {5},
- {5},
- {17},
- {7},
- {5},
- {2},
- {10},
- {10},
- {7},
- {1},
- {1},
- {1},
- {1},
- {1},
- {3},
- {5},
- {1},
- {1},
- {7},
- {2},
- {10},
- {1},
- {2},
- {1},
- {10},
- {3},
- {10},
- {1},
- {2},
- {2},
- {2},
- {18},
- {18},
- {3},
- {5},
- {2},
- {5},
- {1},
- {10},
- {14},
- {14},
- {12},
- {14},
- {17},
- {18},
- {16},
- {5},
- {6},
- {9},
- {10},
- {17},
- {16},
- {15},
- {1},
- {1},
- {3},
- {2},
- {1},
- {5},
- {15},
- {15},
- {15},
- {12},
- {0},
- {0},
- {0},
- {18},
- {0},
- {0},
- {0},
- {0},
- {2},
- {5},
- {5},
- {4},
- {4},
- {4},
- {4},
- {0},
- {4},
- {10},
- {1},
- {0},
- {0},
- {4},
- {12},
- {6},
- {12},
- {4},
- {6},
- {6},
- {14},
- {4},
- {5},
- {5},
- {3},
- {14},
- {16},
- {6},
- {6},
- {6},
- {6},
- {6},
- {15},
- {6},
- {6},
- {2},
- {6},
- {8},
- {9},
- {1},
- {1},
- {2},
- {3},
- {8},
- {0},
- {9},
- {10},
- {11},
- {8},
- {11},
- {9},
- {9},
- {0},
- {0},
- {2},
- {3},
- {1}
- };
- enum HoldingEnumAll
- {
- holdingmodelid,
- holdingprice,
- holdingmodelname[24]
- }
- new HoldingObjectsShop[][HoldingEnumAll] = {
- {365,50, "Spray Can"},
- {373,100, "Armour model"},
- {371,100, "Parachute"},
- {1486,100, "Beer Bottle"},
- {1575,500, "white sack of cocaine"},
- {1212,500, "money packet"},
- {348, 1000, "deagle toy"},
- {349, 500, "shotgun toy"},
- {352, 500, "uzi toy"},
- {353, 500, "mp5 toy"},
- {343, 50, "teargas grenade"},
- {326, 50, "cane"},
- {325, 50, "flowers"},
- {355, 1000, "AK47 toy"},
- {371, 50, "parachute bag"},
- {1484, 50, "beer bottle"},
- {3028, 500, "sword"},
- {1279, 50, "drug bundle"},
- {19348, 10, "cane"},
- {19349, 10, "monocle"},
- {19350, 10, "moustache1"},
- {19469, 10, "scarf"},
- {19472, 500, "gasmask"},
- {19352, 50, "Top hat 01"},
- {19487,50, "tophat02"},
- {351,1700, "Combat Shotgun"},
- {335,1500, "Combat Knife"},
- {356,1500, "M4 Assault Rifle"},
- {373,50, "Armour Model"},
- {1550,350,"sack of money"},
- {1212,350,"money packet"}
- };
- new HoldingObjectsCop[13][HoldingEnumAll] = {
- {18642,100,"Taser1"},
- {19141,250,"SWATHelmet1"},
- {19142,250,"SWATArmour1"},
- {18636,100,"PoliceCap1"},
- {19099,100,"PoliceCap2"},
- {19100,100,"PoliceCap3"},
- {18637,100,"PoliceShield1"},
- {19161,100,"PoliceHat1"},
- {19162,100,"PoliceHat2"},
- {19200,100,"PoliceHelmet1"},
- {19138,100,"PoliceGlasses1"},
- {19139,100,"PoliceGlasses2"},
- {19140,100,"PoliceGlasses3"}
- };
- new HoldingObjectsAll[56][HoldingEnumAll] = {
- {18642,100,"Taser1"},
- {18643,1000,"LaserPointer1"},
- {19080,1000,"LaserPointer2"},
- {19081,1000,"LaserPointer3"},
- {19082,1000,"LaserPointer4"},
- {19083,1000,"LaserPointer5"},
- {19084,1000,"LaserPointer6"},
- {19086,500,"ChainsawDildo1"},
- {18675,1000,"SmokePuff"},
- {19701,1000,"SmallFlame"},
- {18693,1000,"LargeFlame"},
- {18698,1000,"Insects"},
- {18708,1000,"Bubbles"},
- {19141,250,"SWATHelmet1"},
- {19142,250,"SWATArmour1"},
- {18636,100,"PoliceCap1"},
- {19099,100,"PoliceCap2"},
- {19100,100,"PoliceCap3"},
- {18637,100,"PoliceShield1"},
- {19161,100,"PoliceHat1"},
- {19162,100,"PoliceHat2"},
- {19200,100,"PoliceHelmet1"},
- {19138,100,"PoliceGlasses1"},
- {19139,100,"PoliceGlasses2"},
- {19140,100,"PoliceGlasses3"},
- {365,50,"Spray Can"},
- {373,100,"Armour model"},
- {371,100,"Parachute"},
- {1486,100,"Beer Bottle"},
- {1575,500,"white sack of cocaine"},
- {1212,500,"money packet"},
- {348, 1000,"deagle toy"},
- {349, 500,"shotgun toy"},
- {352, 500,"uzi toy"},
- {353, 500,"mp5 toy"},
- {343, 50,"teargas grenade"},
- {326, 50,"cane"},
- {325, 50,"flowers"},
- {355, 1000,"AK47 toy"},
- {371, 50,"parachute bag"},
- {1484, 50,"beer bottle"},
- {3028, 500,"sword"},
- {1279, 50,"drug bundle"},
- {19348, 10,"cane"},
- {19349, 10,"monocle"},
- {19350, 10,"moustache1"},
- {19469, 10,"scarf"},
- {19472, 500,"gasmask"},
- {19352, 50,"Top hat 01"},
- {19487,50,"tophat02"},
- {351,1700,"Combat Shotgun"},
- {335,1500,"Combat Knife"},
- {356,1500,"M4 Assault Rifle"},
- {373,50,"Armour Model"},
- {1550,350,"sack of money"},
- {1212,350,"money packet"}
- };
- enum HoldingEnum
- {
- holdingmodelid,
- holdingprice,
- holdingmodelname[24]
- }
- new HoldingObjects[202][HoldingEnum] = {
- {18632,100,"FishingRod"},
- {18633,150,"Wrench"},
- {18634,100,"Crowbar"},
- {18635,100,"Hammer"},
- {18638,50,"HardHat"},
- {19093,50,"HardHat2"},
- {19160,50,"HardHat3"},
- {18639,50,"BlackHat"},
- {18640,70,"Hair"},
- {18975,70,"Hair2"},
- {19136,70,"Hair3"},
- {19274,70,"Hair4"},
- {18641,100,"Flashlight"},
- {18644,500,"Screwdriver"},
- {18865,50,"MobilePhone1"},
- {18866,50,"MobilePhone2"},
- {18867,50,"MobilePhone3"},
- {18868,50,"MobilePhone4"},
- {18869,50,"MobilePhone5"},
- {18870,100,"MobilePhone6"},
- {18871,100,"MobilePhone7"},
- {18872,100,"MobilePhone8"},
- {18873,100,"MobilePhone9"},
- {18874,100,"MobilePhone10"},
- {18875,75,"Pager"},
- {18890,50,"Rake"},
- {18891,50,"Bandana1"},
- {18892,50,"Bandana2"},
- {18893,50,"Bandana3"},
- {18894,50,"Bandana4"},
- {18895,50,"Bandana5"},
- {18896,50,"Bandana6"},
- {18897,50,"Bandana7"},
- {18898,50,"Bandana8"},
- {18899,50,"Bandana9"},
- {18900,50,"Bandana10"},
- {18901,75,"Bandana11"},
- {18902,75,"Bandana12"},
- {18903,75,"Bandana13"},
- {18904,75,"Bandana14"},
- {18905,75,"Bandana15"},
- {18906,75,"Bandana16"},
- {18907,75,"Bandana17"},
- {18908,75,"Bandana18"},
- {18909,75,"Bandana19"},
- {18910,75,"Bandana20"},
- {18911,100,"Mask1"},
- {18912,100,"Mask2"},
- {18913,100,"Mask3"},
- {18914,100,"Mask4"},
- {18915,100,"Mask5"},
- {18916,100,"Mask6"},
- {18917,100,"Mask7"},
- {18918,100,"Mask8"},
- {18919,100,"Mask9"},
- {18920,100,"Mask10"},
- {18921,50,"Beret1"},
- {18922,50,"Beret2"},
- {18923,75,"Beret3"},
- {18924,100,"Beret4"},
- {18925,100,"Beret5"},
- {18926,50,"Hat1"},
- {18927,50,"Hat2"},
- {18928,50,"Hat3"},
- {18929,50,"Hat4"},
- {18930,50,"Hat5"},
- {18931,100,"Hat6"},
- {18932,100,"Hat7"},
- {18933,100,"Hat8"},
- {18934,100,"Hat9"},
- {18935,100,"Hat10"},
- {18936,50,"Helmet1"},
- {18937,75,"Helmet2"},
- {18938,100,"Helmet3"},
- {18939,75,"CapBack1"},
- {18940,75,"CapBack2"},
- {18941,75,"CapBack3"},
- {18942,100,"CapBack4"},
- {18943,100,"CapBack5"},
- {18944,100,"HatBoater1"},
- {18945,125,"HatBoater2"},
- {18946,150,"HatBoater3"},
- {18947,100,"HatBowler1"},
- {18948,100,"HatBowler2"},
- {18949,100,"HatBowler3"},
- {18950,100,"HatBowler4"},
- {18951,100,"HatBowler5"},
- {18952,150,"BoxingHelmet"},
- {18953,50,"CapKnit1"},
- {18954,75,"CapKnit2"},
- {18955,75,"CapOverEye1"},
- {18956,75,"CapOverEye2"},
- {18957,75,"CapOverEye3"},
- {18958,75,"CapOverEye4"},
- {18959,75,"CapOverEye5"},
- {18960,100,"CapRimUp1"},
- {18961,75,"CapTrucker1"},
- {18962,75,"CowboyHat2"},
- {18964,100,"SkullyCap1"},
- {18965,125,"SkullyCap2"},
- {18966,150,"SkullyCap3"},
- {18967,100,"HatMan1"},
- {18968,100,"HatMan2"},
- {18969,100,"HatMan3"},
- {18970,200,"HatTiger"},
- {18971,100,"HatCool1"},
- {18972,125,"HatCool2"},
- {18973,150,"HatCool3"},
- {18974,1000,"MaskZorro1"},
- {18645,150,"MotorcycleHelmet"},
- {18976,100,"MotorcycleHelmet2"},
- {18977,100,"MotorcycleHelmet3"},
- {18978,125,"MotorcycleHelmet4"},
- {18979,150,"MotorcycleHelmet5"},
- {19006,50,"GlassesType1"},
- {19007,50,"GlassesType2"},
- {19008,50,"GlassesType3"},
- {19009,50,"GlassesType4"},
- {19010,50,"GlassesType5"},
- {19011,50,"GlassesType6"},
- {19012,50,"GlassesType7"},
- {19013,50,"GlassesType8"},
- {19014,50,"GlassesType9"},
- {19015,50,"GlassesType10"},
- {19016,100,"GlassesType11"},
- {19017,100,"GlassesType12"},
- {19018,100,"GlassesType13"},
- {19019,100,"GlassesType14"},
- {19020,100,"GlassesType15"},
- {19021,100,"GlassesType16"},
- {19022,100,"GlassesType17"},
- {19023,100,"GlassesType18"},
- {19024,100,"GlassesType19"},
- {19025,100,"GlassesType20"},
- {19026,150,"GlassesType21"},
- {19027,150,"GlassesType22"},
- {19028,150,"GlassesType23"},
- {19029,150,"GlassesType24"},
- {19030,150,"GlassesType25"},
- {19031,150,"GlassesType26"},
- {19032,150,"GlassesType27"},
- {19033,150,"GlassesType28"},
- {19034,150,"GlassesType29"},
- {19035,150,"GlassesType30"},
- {19036,200,"HockeyMask1"},
- {19037,200,"HockeyMask2"},
- {19038,200,"HockeyMask3"},
- {19039,50,"WatchType1"},
- {19040,50,"WatchType2"},
- {19041,50,"WatchType3"},
- {19042,50,"WatchType4"},
- {19043,50,"WatchType5"},
- {19044,50,"WatchType6"},
- {19045,50,"WatchType7"},
- {19046,100,"WatchType8"},
- {19047,100,"WatchType9"},
- {19048,100,"WatchType10"},
- {19049,100,"WatchType11"},
- {19050,100,"WatchType12"},
- {19051,100,"WatchType13"},
- {19052,100,"WatchType14"},
- {19053,100,"WatchType15"},
- {19064,1000, "SantaHat1"},
- {19065,2000, "SantaHat2"},
- {19066,300, "SantaHat3"},
- {19067,100, "HoodyHat1"},
- {19068,100, "HoodyHat2"},
- {19069,100, "HoodyHat3"},
- {19078,750, "TheParrot1"},
- {19079,750, "TheParrot2"},
- {19085,500, "EyePatch"},
- {19090,150, "PomPomBlue"},
- {19091,150, "PomPomRed"},
- {19092,150, "PomPomGreen"},
- {19094,200, "BurgerShotHat"},
- {19095,50, "CowboyHat1"},
- {19096,50, "CowboyHat3"},
- {19097,100, "CowboyHat4"},
- {19098,100, "CowboyHat5"},
- {19101,200, "ArmyHelmet1"},
- {19102,200, "ArmyHelmet2"},
- {19103,200, "ArmyHelmet3"},
- {19104,200, "ArmyHelmet4"},
- {19105,200, "ArmyHelmet5"},
- {19106,200, "ArmyHelmet6"},
- {19107,400, "ArmyHelmet7"},
- {19108,400, "ArmyHelmet8"},
- {19109,400, "ArmyHelmet9"},
- {19110,400, "ArmyHelmet10"},
- {19111,400, "ArmyHelmet11"},
- {19112,400, "ArmyHelmet12"},
- {19113,100, "SillyHelmet1"},
- {19114,200, "SillyHelmet2"},
- {19115,300, "SillyHelmet3"},
- {19116,50, "PlainHelmet1"},
- {19117,50, "PlainHelmet2"},
- {19118,75, "PlainHelmet3"},
- {19119,100, "PlainHelmet4"},
- {19120,100, "PlainHelmet5"},
- {19137,500, "CluckinBellHat"},
- {19163,100, "GimpMask"},
- {1210,50, "Briefcase"}
- };
- new HoldingBones[][] = {
- "None",
- "Spine",
- "Head",
- "Left upper arm",
- "Right upper arm",
- "Left hand",
- "Right hand",
- "Left thigh",
- "Right thigh",
- "Left foot",
- "Right foot",
- "Right calf",
- "Left calf",
- "Left forearm",
- "Right forearm",
- "Left clavicle",
- "Right clavicle",
- "Neck",
- "Jaw"
- };
- stock player_remove_vip_toys(iTargetID)
- {
- if(PlayerInfo[iTargetID][pDonator] >= 3) return 1;
- else for(new iToyIter; iToyIter < MAX_PLAYER_ATTOBJECTS; ++iToyIter) {
- for(new LoopRapist; LoopRapist < sizeof(HoldingObjectsCop); ++LoopRapist) {
- if(HoldingObjectsCop[LoopRapist][holdingmodelid] == PlayerToyInfo[iTargetID][iToyIter][ptModelID]) {
- PlayerToyInfo[iTargetID][iToyIter][ptModelID] = 0;
- PlayerToyInfo[iTargetID][iToyIter][ptBone] = 0;
- PlayerToyInfo[iTargetID][iToyIter][ptPosX] = 0.0;
- PlayerToyInfo[iTargetID][iToyIter][ptPosY] = 0.0;
- PlayerToyInfo[iTargetID][iToyIter][ptPosZ] = 0.0;
- PlayerToyInfo[iTargetID][iToyIter][ptPosX] = 0.0;
- PlayerToyInfo[iTargetID][iToyIter][ptPosY] = 0.0;
- PlayerToyInfo[iTargetID][iToyIter][ptPosZ] = 0.0;
- if(IsPlayerAttachedObjectSlotUsed(iTargetID, iToyIter)) RemovePlayerAttachedObject(iTargetID, iToyIter);
- }
- }
- }
- SendClientMessage(iTargetID, COLOR_WHITE, "All accessories/toys that were property of your former employer have been removed.");
- return 1;
- }
- stock Float:GetDistance(Float: x1, Float: y1, Float: z1, Float: x2, Float: y2, Float: z2)
- {
- new Float:d;
- d += floatpower(x1-x2, 2.0);
- d += floatpower(y1-y2, 2.0);
- d += floatpower(z1-z2, 2.0);
- d = floatsqroot(d);
- return d;
- }
- stock Float: GetDistanceToCar(playerid, veh) {
- new
- Float: fVehiclePos[3];
- GetVehiclePos(veh, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2]);
- return GetPlayerDistanceFromPoint(playerid, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2]);
- }
- stock GetClosestCar(iPlayer, iException = INVALID_VEHICLE_ID, Float: fRange = Float: 0x7F800000) {
- new
- iReturnID = -1,
- Float: fVehiclePos[4];
- for(new i = 1; i <= MAX_VEHICLES; ++i) if(GetVehicleModel(i) && i != iException) {
- GetVehiclePos(i, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2]);
- if((fVehiclePos[3] = GetPlayerDistanceFromPoint(iPlayer, fVehiclePos[0], fVehiclePos[1], fVehiclePos[2])) < fRange) {
- fRange = fVehiclePos[3];
- iReturnID = i;
- }
- }
- return iReturnID;
- }
- stock GetPlayerFactionInfo(targetid, rank[64], division[64], employer[64]) {
- switch(PlayerInfo[targetid][pFaction]) { // employer/rank/division data is pulled from here
- case 1: {
- employer = "LSPD";
- switch(PlayerInfo[targetid][pRank]) {
- case 1: rank = "Officer";
- case 2: rank = "Corporal";
- case 3: rank = "Sergeant";
- case 4: rank = "Lieutenant";
- case 5: rank = "Captain";
- case 6: rank = "Chief of Police";
- default: rank = "Cadet";
- }
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "None";
- case 3: division = "FTO";
- case 4: division = "S.W.A.T.";
- case 5: division = "D.E.B.";
- case 7: division = "TE";
- default: division = "None";
- }
- }
- case 2: {
- employer = "FBI";
- switch(PlayerInfo[targetid][pRank]) {
- case 1: rank = "Agent";
- case 2: rank = "Senior Agent";
- case 3: rank = "Special Agent";
- case 4: rank = "Supervisory Agent";
- case 5: rank = "Assistant Director";
- case 6: rank = "Director";
- default: rank = "Intern";
- }
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "None";
- case 2: division = "GU";
- case 3: division = "FAN";
- case 4: division = "CID";
- case 5: division = "IA";
- case 6: division = "NSB";
- default: division = "None";
- }
- }
- case 3: {
- employer = "LSFMD";
- switch(PlayerInfo[targetid][pRank]) {
- case 0: rank = "Probationary";
- case 1: rank = "EMT Intermediate";
- case 2: rank = "EMT Paramedic";
- case 3: rank = "Lieutenant";
- case 4: rank = "Captain";
- case 5: rank = "Deputy Chief";
- case 6: rank = "Chief";
- default: rank = "Volunteer";
- }
-
- division = "None";
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "FD";
- case 2: division = "IA";
- case 3: division = "HR";
- case 4: division = "LF";
- default: division = "None";
- }
- }
- case 4: {
- employer = "Hitman Agency";
- switch(PlayerInfo[targetid][pRank])
- {
- case 1: rank = "Freelancer";
- case 2: rank = "Marksman";
- case 3: rank = "Agent";
- case 4: rank = "Special Agent";
- case 5: rank = "Vice Director";
- case 6: rank = "Director";
- default: rank = "Freelancer";
- }
- division = "None";
- }
- case 5: {
- employer = "Government";
- switch(PlayerInfo[targetid][pRank]) {
- case 1: {
- if(PlayerInfo[targetid][pDivision] == 5)
- rank = "Intern";
- else
- rank = "Employee";
- }
- case 2: {
- if(PlayerInfo[targetid][pDivision] == 5)
- rank = "Bodyguard";
- else
- rank = "Public Advocate";
- }
- case 3: {
- if(PlayerInfo[targetid][pDivision] == 5)
- rank = "Agent";
- else
- rank = "Secretary";
- }
- case 4: {
- if(PlayerInfo[targetid][pDivision] == 5)
- rank = "Special Agent";
- else
- rank = "Councilor";
- }
- case 5: {
- if(PlayerInfo[targetid][pDivision] == 5)
- rank = "Head of Security";
- else
- rank = "Vice Mayor";
- }
- case 6: rank = "Mayor";
- default: rank = "Staff";
- }
- division = "None";
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "None";
- case 2: division = "Executive";
- case 3: division = "Judicial";
- case 4: division = "Legislative";
- case 5: division = "SS";
- default: division = "None";
- }
- }
- case 9: {
- employer = "GMA";
- switch(PlayerInfo[targetid][pRank]) {
- case 1: rank = "Intern";
- case 2: rank = "Local Journalist";
- case 3: rank = "Local Reporter";
- case 4: rank = "Network Anchor";
- case 5: rank = "Asst. Network Producer";
- case 6: rank = "Network Producer";
- default: rank = "Intern";
- }
- division = "None";
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "Security";
- default: division = "";
- }
- }
- case 10: {
- employer = "ARES";
- switch(PlayerInfo[targetid][pRank]) {
- case 1: rank = "Operative";
- case 2: rank = "Specialist";
- case 3: rank = "Staff Sergeant";
- case 4: rank = "Major";
- case 5: rank = "Vice-Commander";
- case 6: rank = "Commander";
- default: rank = "Recruit";
- }
-
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "None";
- case 3: division = "FTO";
- case 4: division = "S.W.A.T.";
- case 5: division = "D.E.B.";
- case 7: division = "TE";
- default: division = "None";
- }
- }
- case 11: {
- employer = "SASD";
- switch(PlayerInfo[targetid][pRank]) {
- case 1: rank = "Corporal";
- case 2: rank = "Sergeant";
- case 3: rank = "Lieutenant";
- case 4: rank = "Captain";
- case 5: rank = "Major";
- case 6: rank = "Chief of Sasd";
- default: rank = "Cadet";
- }
- switch(PlayerInfo[targetid][pDivision]) {
- case 1: division = "None";
- case 3: division = "FTO";
- case 4: division = "S.W.A.T.";
- case 5: division = "D.E.B.";
- case 7: division = "TE";
- default: division = "None";
- }
- }
- default: { employer = "None"; division = "None"; rank = "None"; }
- }
- return 1;
- }
- stock IsARestricted(modelid) {
- switch(modelid)
- {
- case 460,476,511,512,513,520,519,553,577,592,593,548,425,417,488,497,563,447,416,433,523,427,490,528,407,544,596,598,597,599,432,601,472,473
- ,493,595,484,430,453,452,446,454,441,464,465,501,522,564,594,538,532,486,406,537,571,449,539,435,450,569,570,584,590,591,606,607,608,610,611,568
- ,444,556,557,470,495,415,494,502,503,504,524:
- return 1;
- }
- return 0;
- }
- stock IsASweeper(carid)
- {
- for(new v = 0; v < sizeof(SweeperVehicles); v++) {
- if(carid == SweeperVehicles[v]) return true;
- }
- return false;
- }
- stock IsACopCar(carid)
- {
- for(new v = 0; v < sizeof(LSPDVehicles); v++) {
- if(carid == LSPDVehicles[v]) return 1;
- }
- return 0;
- }
- stock IsAnARESCar(carid)
- {
- for(new v = 0; v < sizeof(ARESVehicles); v++) {
- if(carid == ARESVehicles[v]) return 1;
- }
- return 0;
- }
- stock IsAFBICar(carid)
- {
- for(new v = 0; v < sizeof(FBIVehicles); v++) {
- if(carid == FBIVehicles[v]) return 1;
- }
- return 0;
- }
- stock IsAnAmbulance(carid)
- {
- for(new v = 0; v < sizeof(LSFMDVehicles); v++) {
- if(carid == LSFMDVehicles[v]) return 1;
- }
- return 0;
- }
- stock IGMAVeh(vehid) {
- for(new v = 0; v < sizeof(SANVehicles); v++) {
- if(vehid == SANVehicles[v]) return 1;
- }
- return 0;
- }
- stock IsAGovCar(carid)
- {
- for(new v = 0; v < sizeof(GovVehicles); v++) {
- if(carid == GovVehicles[v]) return 1;
- }
- return 0;
- }
- IsACop(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new leader = PlayerInfo[playerid][pLeader];
- new member = PlayerInfo[playerid][pFaction];
- if(member==1 || member==2 || member==10 || member==11)
- {
- return 1;
- }
- else if(leader==1 || leader==2 || leader==10 || leader==11)
- {
- return 1;
- }
- }
- return 0;
- }
- stock IsInLSFMD(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new leader = PlayerInfo[playerid][pLeader];
- new member = PlayerInfo[playerid][pFaction];
- if(member==3)
- {
- return 1;
- }
- else if(leader==3)
- {
- return 1;
- }
- }
- return 0;
- }
- stock IsAtDeliverPatientPoint(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0,1142.4733,-1326.3633,13.6259) || IsPlayerInRangeOfPoint(playerid, 5.0, 1165.1564,-1368.8240,26.6502) || IsPlayerInRangeOfPoint(playerid, 3.0,2027.0599,-1410.6870,16.9922) || IsPlayerInRangeOfPoint(playerid, 5.0, 2024.5742,-1382.7844,48.3359))
- {//ALLSAINTS, ALL SAINTS ROOF, COUNTY GENERAL, COUNTY ROOF
- return 1;
- }
- }
- return 0;
- }
- stock IsAtImpoundingPoint(playerid) {
- return (IsPlayerInRangeOfPoint(playerid, 4.0,1602.002197, -1608.801879, 13.662560));
- }
- stock IsAtArrestPoint(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, 1528.082397, -1677.978637, 5.890625))
- {// LSPD
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4.0, 1564.830932, -1652.506469, 28.395606))
- {// LSPD roof
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4.0, 304.796508, -1526.349731, 76.539062))
- {// FBI roof
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4.0, 298.313842, -1536.036865, 24.593750))
- {// FBI
- return 1;
- }
- if(PlayerInfo[playerid][pVW] == 20002 || PlayerInfo[playerid][pVW] == 1324123)
- {//LSPD int and FBI int
- return 1;
- }
- }
- return 0;
- }
- stock JoinPaintballGame(playerid, game) {
- if(game == 0)
- return 0;
- switch(game) {
- case 1: { // dm lv warehouse
- SetPlayerPos(playerid, 1059.895996, 2081.685791, 10.820312);
- SetPlayerInterior(playerid, 0); // just for clarity
- SetPlayerVirtualWorld(playerid, 60);
- SetPVarInt(playerid, "PBM", 1);
- }
- case 2: { // dm random warehouse
- SetPlayerPos(playerid, 1283.287841, 5.694778, 1001.011779);
- SetPlayerInterior(playerid, 18);
- SetPlayerVirtualWorld(playerid, 61);
- SetPVarInt(playerid, "PBM", 2);
- }
- case 3: { // dm rc battlefield
- SetPlayerPos(playerid, -975.975708, 1060.983032, 1345.671875);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 62);
- SetPVarInt(playerid, "PBM", 3);
- }
- case 4: { // tdm lv warehouse
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 63);
- SetPVarInt(playerid, "PBM", 4);
- if(gaPaintballGameNextTeam[0] == 0) {
- gaPaintballGameNextTeam[0] = 1;
- SetPVarInt(playerid, "PBMT", 0);
- SetPlayerPos(playerid, 1068.6324, 2082.7930, 10.8203);
- SetPlayerFacingAngle(playerid, 359.9999);
- SetPlayerColor(playerid, 0xFFFF0000);
- } else {
- gaPaintballGameNextTeam[0] = 0;
- SetPVarInt(playerid, "PBMT", 1);
- SetPlayerPos(playerid, 1069.3499, 2127.0828, 10.8203);
- SetPlayerFacingAngle(playerid, 181.4610);
- SetPlayerColor(playerid, 0x33CCFF00);
- }
- }
- case 5: { // tdm random warehouse
- SetPlayerInterior(playerid, 18);
- SetPlayerVirtualWorld(playerid, 64);
- SetPVarInt(playerid, "PBM", 5);
- if(gaPaintballGameNextTeam[1] == 0) {
- gaPaintballGameNextTeam[1] = 1;
- SetPVarInt(playerid, "PBMT", 0);
- SetPlayerPos(playerid, 1305.5143, 3.6555, 1001.0269);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerColor(playerid, 0xFFFF0000);
- } else {
- gaPaintballGameNextTeam[1] = 0;
- SetPVarInt(playerid, "PBMT", 1);
- SetPlayerPos(playerid, 1252.7601,-46.6263,1001.0282);
- SetPlayerFacingAngle(playerid, 133.2679);
- SetPlayerColor(playerid, 0x33CCFF00);
- }
- }
- case 6: { // tdm rc battlefield
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 65);
- SetPVarInt(playerid, "PBM", 6);
- if(gaPaintballGameNextTeam[2] == 0) {
- gaPaintballGameNextTeam[2] = 1;
- SetPVarInt(playerid, "PBMT", 0);
- SetPlayerPos(playerid, -1128.8225, 1057.4939, 1346.4141);
- SetPlayerFacingAngle(playerid, 260);
- SetPlayerColor(playerid, 0xFFFF0000);
- } else {
- gaPaintballGameNextTeam[2] = 0;
- SetPVarInt(playerid, "PBMT", 1);
- SetPlayerPos(playerid, -976.2924, 1061.0496, 1345.6719);
- SetPlayerFacingAngle(playerid, 90);
- SetPlayerColor(playerid, 0x33CCFF00);
- }
- }
- case 7: { // Dm Death Arena
- SetPlayerPos(playerid, 2020.721557,-2504.503906,1022.186950);
- SetPlayerInterior(playerid, 1); // just for clarity
- SetPlayerVirtualWorld(playerid, 0);
- SetPVarInt(playerid, "PBM", 7);
- }
- case 8: { // tdm
- SetPlayerInterior(playerid, 1);
- SetPlayerVirtualWorld(playerid, 0);
- SetPVarInt(playerid, "PBM", 8);
- if(gaPaintballGameNextTeam[3] == 0) {
- gaPaintballGameNextTeam[3] = 1;
- SetPVarInt(playerid, "PBMT", 0);
- SetPlayerPos(playerid, 1750.824462,-1896.36669,1060.747314);
- SetPlayerFacingAngle(playerid, 260);
- SetPlayerColor(playerid, 0xFFFF0000);
- } else {
- gaPaintballGameNextTeam[3] = 0;
- SetPVarInt(playerid, "PBMT", 1);
- SetPlayerPos(playerid, 1718.805175,-1839.844238,1060.749633);
- SetPlayerFacingAngle(playerid, 90);
- SetPlayerColor(playerid, 0x33CCFF00);
- }
- }
- case 9: { // Dm Glass arena
- SetPlayerPos(playerid, 667.301635, 1617.449218, 57.244319);
- SetPlayerInterior(playerid, 1); // just for clarity
- SetPlayerVirtualWorld(playerid, 1);
- SetPVarInt(playerid, "PBM", 9);
- }
- }
- new
- szMessage[64],
- iCount;
- format(szMessage, sizeof(szMessage), "%s has joined the paintball game.", GetPlayerNameEx(playerid));
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") == game && GetPVarInt(i, "PBM") > 0) {
- SendClientMessage(i, COLOR_RED, szMessage);
- iCount++;
- }
- }
- ResetPlayerWeapons(playerid);
- if(gaPaintballGameTimer[game] <= 0 && iCount > 0 && gaPaintballGameTimeRemaining[game] > 0) {
- GivePlayerValidAdminWeapon(playerid, 24, 99999);
- GivePlayerValidAdminWeapon(playerid, 27, 99999);
- GivePlayerValidAdminWeapon(playerid, 29, 99999);
- GivePlayerValidAdminWeapon(playerid, 31, 99999);
- GivePlayerValidAdminWeapon(playerid, 34, 99999);
- TogglePlayerControllable(playerid, true);
- SendClientMessage(playerid, COLOR_RED, "You've joined after the game has started. You might not win this one!");
- } else {
- if(iCount == 0) {
- SendClientMessage(playerid, COLOR_GREY, "You're the only player in the game right now. You can't play until another player enters.");
- SetPVarInt(playerid, "IsFrozen", 1);
- TogglePlayerControllable(playerid, false);
- } else {
- SendClientMessage(playerid, COLOR_GREY, "The game hasn't started yet, you'll be frozen until it starts.");
- SetPVarInt(playerid, "IsFrozen", 1);
- TogglePlayerControllable(playerid, false);
- if(gaPaintballTimerHandles[game] == 0) {
- gaPaintballGameTimer[game] = 5;
- gaPaintballTimerHandles[game] = SetTimerEx("PaintballTimer", 1000, true, "d", game);
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "If for whatever reason you want to quit during the game, please type /exitpaintball.");
- return 1;
- }
- forward PaintballTimer(game);
- public PaintballTimer(game) {
- gaPaintballGameTimer[game]--;
- if(gaPaintballGameTimer[game] <= 0) {
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") == game) {
- GameTextForPlayer(i, "Game begins...~n~~g~NOW!", 2000, 3);
- DeletePVar(i, "IsFrozen");
- TogglePlayerControllable(i, true);
- SendClientMessage(i, COLOR_RED, "GO!");
- GivePlayerValidAdminWeapon(i, 24, 99999);
- GivePlayerValidAdminWeapon(i, 27, 99999);
- GivePlayerValidAdminWeapon(i, 29, 99999);
- GivePlayerValidAdminWeapon(i, 31, 99999);
- GivePlayerValidAdminWeapon(i, 34, 99999);
- }
- }
- gaPaintballGameTimeRemaining[game] = 5 * 60;
- KillTimer(gaPaintballTimerHandles[game]);
- gaPaintballTimerHandles[game] = 0;
- } else {
- new
- szMessage[32];
- format(szMessage, sizeof(szMessage), "Game begins in...~n~~r~%d", gaPaintballGameTimer[game]);
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") == game)
- GameTextForPlayer(i, szMessage, 1000, 3);
- }
- }
- return 1;
- }
- stock IsMDCPermitted(playerid)
- {
- if( PlayerInfo[playerid][pFaction] == 1|| PlayerInfo[playerid][pLeader] == 1 ||
- PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2||
- PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5||
- PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3||
- PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10||
- PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- return 1;
- }
- return 0;
- }
- stock IsATowTruck(carid)
- {
- if(GetVehicleModel(carid) == 485 || GetVehicleModel(carid) == 525 || GetVehicleModel(carid) == 583 || GetVehicleModel(carid) == 574) {
- return 1;
- }
- return 0;
- }
- stock IsABike(carid) {
- switch(GetVehicleModel(carid)) {
- case 509, 481, 510, 462, 448, 581, 522, 461, 521, 523, 463, 586, 468, 471: return 1;
- }
- return 0;
- }
- /*stock HighScores(array[][rankingEnum], left, right) {
- new
- tempLeft = left,
- tempRight = right,
- pivot = array[(left + right) / 2][iKills],
- tempVar
- ;
- while(tempLeft <= tempRight)
- {
- while(array[tempLeft][iKills] > pivot) tempLeft++;
- while(array[tempRight][iKills] < pivot) tempRight--;
- if(tempLeft <= tempRight)
- {
- tempVar = array[tempLeft][iKills], array[tempLeft][iKills] = array[tempRight][iKills], array[tempRight][iKills] = tempVar;
- tempVar = array[tempLeft][iPlayerID], array[tempLeft][iPlayerID] = array[tempRight][iPlayerID], array[tempRight][iPlayerID] = tempVar;
- tempLeft++, tempRight--;
- }
- }
- if(left < tempRight) HighScores(array, left, tempRight);
- if(tempLeft < right) HighScores(array, tempLeft, right);
- }*/
- stock QSort(numbers[], left, right)
- {
- new
- pivot = numbers[left],
- l_hold = left,
- r_hold = right;
- while (left < right)
- {
- while ((numbers[right] >= pivot) && (left < right)) right--;
- if (left != right)
- {
- numbers[left] = numbers[right];
- left++;
- }
- while ((numbers[left] <= pivot) && (left < right)) left++;
- if (left != right)
- {
- numbers[right] = numbers[left];
- right--;
- }
- }
- numbers[left] = pivot;
- pivot = left;
- left = l_hold;
- right = r_hold;
- if (left < pivot) QSort(numbers, left, pivot - 1);
- if (right > pivot) QSort(numbers, pivot + 1, right);
- }
- stock IsARC(carid)
- {
- switch(GetVehicleModel(carid)) {
- case 441, 464, 465, 501, 564: return 1;
- }
- return 0;
- }
- stock IsABoat(carid) {
- switch(GetVehicleModel(carid)) {
- case 472, 473, 493, 484, 430, 454, 453, 452, 446: return 1;
- }
- return 0;
- }
- stock IsAPlane(carid)
- {
- switch(GetVehicleModel(carid)) {
- case 592, 577, 511, 512, 593, 520, 553, 476, 519, 460, 513, 548, 425, 417, 487, 488, 497, 563, 447, 469: return 1;
- }
- return 0;
- }
- stock IsAnBus(carid)
- {
- if(GetVehicleModel(carid) == 431 || GetVehicleModel(carid) == 437) {
- return 1;
- }
- return 0;
- }
- stock IsAnTaxi(carid)
- {
- if(GetVehicleModel(carid) == 420 || GetVehicleModel(carid) == 438) {
- return 1;
- }
- return 0;
- }
- stock IsAPizzaCar(carid)
- {
- if(GetVehicleModel(carid) == 448) {
- return 1;
- }
- return 0;
- }
- stock IsAGarbageCar(carid)
- {
- if(GetVehicleModel(carid) == 408) {
- return 1;
- }
- return 0;
- }
- stock IsATruckerCar(carid)
- {
- for(new v = 0; v < sizeof(TruckerVehicles); v++) {
- if(carid == TruckerVehicles[v]) return 1;
- }
- return 0;
- }
- stock factionName(id)
- {
- new name[32];
- switch(id)
- {
- case 1: name = "LSPD";
- case 2: name = "FBI";
- case 3: name = "LSFMD";
- case 4: name = "Hitman Agency";
- case 5: name = "Government";
- case 9: name = "SA News";
- }
- return name;
- }
- stock Float:GetPizzaDistance(houseid)
- {
- new Float: pizzaDistance;
- pizzaDistance = GetDistance(2104.1999511719, -1787.5999755859, 13.60000038147, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]);
- return pizzaDistance;
- }
- stock Float:IsABoomboxNearby(Float:posX, Float:posY, Float:posZ, playerid)
- {
- new Float: boomboxDistance;
- boomboxDistance = GetDistance(posX, posY, posZ, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
- return boomboxDistance;
- }
- stock LoadPoints()
- {
- new arrCoords[9][64];
- new strFromFile2[256];
- new File: file = fopen("points.cfg", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(Points))
- {
- fread(file, strFromFile2);
- splits(strFromFile2, arrCoords, '|');
- Points[idx][Pointx] = floatstr(arrCoords[0]);
- Points[idx][Pointy] = floatstr(arrCoords[1]);
- Points[idx][Pointz] = floatstr(arrCoords[2]);
- Points[idx][Type] = strval(arrCoords[3]);
- Points[idx][Vulnerable] = strval(arrCoords[4]);
- strmid(Points[idx][Owner], arrCoords[5], 0, strlen(arrCoords[5]), 255);
- strmid(Points[idx][CapperName], arrCoords[6], 0, strlen(arrCoords[6]), 255);
- strmid(Points[idx][Name], arrCoords[7], 0, strlen(arrCoords[7]), 255);
- Points[idx][MatPoint] = strval(arrCoords[8]);
- //printf("%s Type:%d Owner:%s",Points[idx][Name],Points[idx][Type],Points[idx][Owner]);
- Points[idx][CaptureTimerEx2] = -1;
- Points[idx][ClaimerId] = INVALID_PLAYER_ID;
- Points[idx][PointPickupID] = CreatePickup(1239, 23, Points[idx][Pointx], Points[idx][Pointy], Points[idx][Pointz], -1);
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- stock UpdatePoints()
- {
- new idx;
- new File: file2;
- while (idx < sizeof(Points))
- {
- new coordsstring[256];
- format(coordsstring, sizeof(coordsstring), "%f|%f|%f|%d|%d|%s|%s|%s|%d\n",
- Points[idx][Pointx],
- Points[idx][Pointy],
- Points[idx][Pointz],
- Points[idx][Type],
- Points[idx][Vulnerable],
- Points[idx][Owner],
- Points[idx][CapperName],
- Points[idx][Name],
- Points[idx][MatPoint]);
- if(idx == 0)
- {
- file2 = fopen("points.cfg", io_write);
- }
- else
- {
- file2 = fopen("points.cfg", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- stock ClearFamily(family)
- {
- foreach(Player, i) {
- if(PlayerInfo[i][pGang] == family) {
- SendClientMessage(i, COLOR_LIGHTBLUE, "* The gang you're in has just been deleted by an Administrator, you have been kicked out automatically.");
- PlayerInfo[i][pGang] = 255;
- PlayerInfo[i][pRank] = 0;
- PlayerInfo[i][pCrew1] = 255; PlayerInfo[i][pCrew2] = 255; PlayerInfo[i][pCrew3] = 255;
- }
- }
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "None");
- FamilyInfo[family][FamilyTaken] = 0;
- strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
- strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
- strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Outsider");
- strmid(FamilyInfo[family][FamilyRank1], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Associate");
- strmid(FamilyInfo[family][FamilyRank2], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Soldier");
- strmid(FamilyInfo[family][FamilyRank3], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Capo");
- strmid(FamilyInfo[family][FamilyRank4], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Underboss");
- strmid(FamilyInfo[family][FamilyRank5], string, 0, strlen(string), 255);
- format(string, sizeof(string), "Godfather");
- strmid(FamilyInfo[family][FamilyRank6], string, 0, strlen(string), 255);
- FamilyInfo[family][FamilyColor] = 0;
- FamilyInfo[family][FamilyTurfTokens] = 24;
- FamilyInfo[family][FamilyMembers] = 0;
- FamilyInfo[family][FamilySpawn][0] = 0.0;
- FamilyInfo[family][FamilySpawn][1] = 0.0;
- FamilyInfo[family][FamilySpawn][2] = 0.0;
- FamilyInfo[family][FamilySpawn][3] = 0.0;
- FamilyInfo[family][FamilyGuns][0] = 0;
- FamilyInfo[family][FamilyGuns][2] = 0;
- FamilyInfo[family][FamilyGuns][3] = 0;
- FamilyInfo[family][FamilyGuns][4] = 0;
- FamilyInfo[family][FamilyGuns][5] = 0;
- FamilyInfo[family][FamilyGuns][6] = 0;
- FamilyInfo[family][FamilyGuns][7] = 0;
- FamilyInfo[family][FamilyGuns][8] = 0;
- FamilyInfo[family][FamilyGuns][9] = 0;
- FamilyInfo[family][FamilyCash] = 0;
- FamilyInfo[family][FamilyMats] = 0;
- FamilyInfo[family][FamilyPot] = 0;
- FamilyInfo[family][FamilyCrack] = 0;
- FamilyInfo[family][FamilySafe][0] = 0.0;
- FamilyInfo[family][FamilySafe][1] = 0.0;
- FamilyInfo[family][FamilySafe][2] = 0.0;
- FamilyInfo[family][FamilyUSafe] = 0;
- //if(IsValidDynamicPickup(FamilyInfo[family][FamilyEntrancePickup])) DestroyPickup(FamilyInfo[family][FamilyEntrancePickup]);
- //if(IsValidDynamicPickup(FamilyInfo[family][FamilyExitPickup])) DestroyPickup(FamilyInfo[family][FamilyExitPickup]);
- DestroyPickup(FamilyInfo[family][FamilyEntrancePickup]);
- DestroyPickup(FamilyInfo[family][FamilyExitPickup]);
- DestroyDynamic3DTextLabel(Text3D:FamilyInfo[family][FamilyEntranceText]);
- DestroyDynamic3DTextLabel(Text3D:FamilyInfo[family][FamilyExitText]);
- DestroyPickup(FamilyInfo[family][FamilyPickup]);
- FamilyInfo[family][FamilyBandana] = 0;
- SaveFamilies();
- return 1;
- }
- stock ClearCrime(playerid)
- {
- if(IsPlayerConnected(playerid)) {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "********");
- strmid(PlayerCrime[playerid][pBplayer], string, 0, strlen(string), 255);
- strmid(PlayerCrime[playerid][pVictim], string, 0, strlen(string), 255);
- strmid(PlayerCrime[playerid][pAccusing], string, 0, strlen(string), 255);
- strmid(PlayerCrime[playerid][pAccusedof], string, 0, strlen(string), 255);
- }
- return 1;
- }
- stock LoadFamilies() {
- if(!fexist("families.cfg")) return 1;
- new
- szFileStr[512],
- iIndex,
- File: iFileHandle = fopen("families.cfg", io_read);
- while (iIndex < sizeof(FamilyInfo) && fread(iFileHandle, szFileStr)) {
- sscanf(szFileStr, "p<|>is[42]s[65]s[24]iiifffiiis[20]s[20]s[20]s[20]s[20]s[20]iiiiiiiiiiiiiiiiiiiiiix",
- FamilyInfo[iIndex][FamilyTaken],
- FamilyInfo[iIndex][FamilyName],
- FamilyInfo[iIndex][FamilyMOTD],
- FamilyInfo[iIndex][FamilyLeader],
- FamilyInfo[iIndex][FamilyBank],
- FamilyInfo[iIndex][FamilyCash],
- FamilyInfo[iIndex][FamilyUSafe],
- FamilyInfo[iIndex][FamilySafe][0],
- FamilyInfo[iIndex][FamilySafe][1],
- FamilyInfo[iIndex][FamilySafe][2],
- FamilyInfo[iIndex][FamilyPot],
- FamilyInfo[iIndex][FamilyCrack],
- FamilyInfo[iIndex][FamilyMats],
- FamilyInfo[iIndex][FamilyRank1],
- FamilyInfo[iIndex][FamilyRank2],
- FamilyInfo[iIndex][FamilyRank3],
- FamilyInfo[iIndex][FamilyRank4],
- FamilyInfo[iIndex][FamilyRank5],
- FamilyInfo[iIndex][FamilyRank6],
- FamilyInfo[iIndex][FamilyMembers],
- FamilyInfo[iIndex][FamilyMaxSkins],
- FamilyInfo[iIndex][FamilySkins][0],
- FamilyInfo[iIndex][FamilySkins][1],
- FamilyInfo[iIndex][FamilySkins][2],
- FamilyInfo[iIndex][FamilySkins][3],
- FamilyInfo[iIndex][FamilySkins][4],
- FamilyInfo[iIndex][FamilySkins][5],
- FamilyInfo[iIndex][FamilySkins][6],
- FamilyInfo[iIndex][FamilySkins][7],
- FamilyInfo[iIndex][FamilyColor],
- FamilyInfo[iIndex][FamilyTurfTokens],
- FamilyInfo[iIndex][FamilyGuns][0],
- FamilyInfo[iIndex][FamilyGuns][1],
- FamilyInfo[iIndex][FamilyGuns][2],
- FamilyInfo[iIndex][FamilyGuns][3],
- FamilyInfo[iIndex][FamilyGuns][4],
- FamilyInfo[iIndex][FamilyGuns][5],
- FamilyInfo[iIndex][FamilyGuns][6],
- FamilyInfo[iIndex][FamilyGuns][7],
- FamilyInfo[iIndex][FamilyGuns][8],
- FamilyInfo[iIndex][FamilyGuns][9],
- FamilyInfo[iIndex][FamilyCrew1],
- FamilyInfo[iIndex][FamilyCrew2],
- FamilyInfo[iIndex][FamilyCrew3],
- FamilyInfo[iIndex][FamilyCrewname1],
- FamilyInfo[iIndex][FamilyCrewname2],
- FamilyInfo[iIndex][FamilyCrewname3],
- FamilyInfo[iIndex][FamilyBandana]
- );
- ++iIndex;
- }
- return fclose(iFileHandle);
- }
- stock SaveFamilies()
- {
- new idx;
- new File: file2;
- while (idx < sizeof(FamilyInfo))
- {
- new coordsstring[512];
- format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%d|%d|%d|%f|%f|%f|%d|%d|%d|%s|%s|%s|%s|%s|%s|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%x\n",
- FamilyInfo[idx][FamilyTaken],
- FamilyInfo[idx][FamilyName],
- FamilyInfo[idx][FamilyMOTD],
- FamilyInfo[idx][FamilyLeader],
- FamilyInfo[idx][FamilyBank],
- FamilyInfo[idx][FamilyCash],
- FamilyInfo[idx][FamilyUSafe],
- FamilyInfo[idx][FamilySafe][0],
- FamilyInfo[idx][FamilySafe][1],
- FamilyInfo[idx][FamilySafe][2],
- FamilyInfo[idx][FamilyPot],
- FamilyInfo[idx][FamilyCrack],
- FamilyInfo[idx][FamilyMats],
- FamilyInfo[idx][FamilyRank1],
- FamilyInfo[idx][FamilyRank2],
- FamilyInfo[idx][FamilyRank3],
- FamilyInfo[idx][FamilyRank4],
- FamilyInfo[idx][FamilyRank5],
- FamilyInfo[idx][FamilyRank6],
- FamilyInfo[idx][FamilyMembers],
- FamilyInfo[idx][FamilyMaxSkins],
- FamilyInfo[idx][FamilySkins][0],
- FamilyInfo[idx][FamilySkins][1],
- FamilyInfo[idx][FamilySkins][2],
- FamilyInfo[idx][FamilySkins][3],
- FamilyInfo[idx][FamilySkins][4],
- FamilyInfo[idx][FamilySkins][5],
- FamilyInfo[idx][FamilySkins][6],
- FamilyInfo[idx][FamilySkins][7],
- FamilyInfo[idx][FamilyColor],
- FamilyInfo[idx][FamilyTurfTokens],
- FamilyInfo[idx][FamilyGuns][0],
- FamilyInfo[idx][FamilyGuns][1],
- FamilyInfo[idx][FamilyGuns][2],
- FamilyInfo[idx][FamilyGuns][3],
- FamilyInfo[idx][FamilyGuns][4],
- FamilyInfo[idx][FamilyGuns][5],
- FamilyInfo[idx][FamilyGuns][6],
- FamilyInfo[idx][FamilyGuns][7],
- FamilyInfo[idx][FamilyGuns][8],
- FamilyInfo[idx][FamilyGuns][9],
- FamilyInfo[idx][FamilyCrew1],
- FamilyInfo[idx][FamilyCrew2],
- FamilyInfo[idx][FamilyCrew3],
- FamilyInfo[idx][FamilyCrewname1],
- FamilyInfo[idx][FamilyCrewname2],
- FamilyInfo[idx][FamilyCrewname3],
- FamilyInfo[idx][FamilyBandana]);
- if(idx == 0)
- {
- file2 = fopen("families.cfg", io_write);
- }
- else
- {
- file2 = fopen("families.cfg", io_append);
- }
- fwrite(file2, coordsstring);
- idx++;
- fclose(file2);
- }
- return 1;
- }
- stock LoadFamiliesHQ()
- {
- new string2[64];
- format(string2, sizeof(string2), "familieshq.ini");
- new File: GangFile = fopen(string2, io_read);
- //printf("[DEBUG] LoadFamiliesHQ: string2 (%s)", string2);
- if(GangFile)
- {
- //print("[DEBUG] LoadFamiliesHQ: GangFile exists, the handle parsed.");
- new key[ 256 ] , val[ 256 ];
- new Data[ 256 ];
- //print("[DEBUG] Starting while (fread(GangFile , Data , sizeof(Data)))");
- while (fread(GangFile , Data , sizeof(Data)))
- {
- new string[128];
- for(new f = 0; f < MAX_FAMILY; f++)
- {
- key = ini_GetKey(Data);
- format(string, 128, "Family%dEntranceX",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][0] = floatstr(val); }
- format(string, 128, "Family%dEntranceY",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][1] = floatstr(val); }
- format(string, 128, "Family%dEntranceZ",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][2] = floatstr(val); }
- format(string, 128, "Family%dEntranceA",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyEntrance][3] = floatstr(val); }
- format(string, 128, "Family%dExitX",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][0] = floatstr(val); }
- format(string, 128, "Family%dExitY",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][1] = floatstr(val); }
- format(string, 128, "Family%dExitZ",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][2] = floatstr(val); }
- format(string, 128, "Family%dExitA",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyExit][3] = floatstr(val); }
- format(string, 128, "Family%dInterior",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyInterior] = strval(val); }
- format(string, 128, "Family%dCustomMap",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyCustomMap] = strval(val); }
- format(string, 128, "Family%dVirtualWorld",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyInfo[f][FamilyVirtualWorld] = strval(val); }
- for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
- {
- format(string, 128, "Family%dVeh%dModelId",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvModelId] = strval(val); }
- format(string, 128, "Family%dVeh%dSpawnx",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawnx] = floatstr(val); }
- format(string, 128, "Family%dVeh%dSpawny",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawny] = floatstr(val); }
- format(string, 128, "Family%dVeh%dSpawnz",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawnz] = floatstr(val); }
- format(string, 128, "Family%dVeh%dSpawna",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvSpawna] = floatstr(val); }
- format(string, 128, "Family%dVeh%dLock",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvLock] = strval(val); }
- format(string, 128, "Family%dVeh%dLocked",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvLocked] = strval(val); }
- format(string, 128, "Family%dVeh%dPaintJob",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvPaintJob] = strval(val); }
- format(string, 128, "Family%dVeh%dColor1",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvColor1] = strval(val); }
- format(string, 128, "Family%dVeh%dColor2",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvColor2] = strval(val); }
- format(string, 128, "Family%dVeh%dFuel",f, fv);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); FamilyVehicleInfo[f][fv][fvFuel] = floatstr(val); }
- }
- //printf("Family %d loaded [DEBUG] FamilyEntranceX: %.1f FamilyEntranceY: %.1f FamilyEntranceZ: %.1f", f, FamilyInfo[f][FamilyEntrance][0], FamilyInfo[f][FamilyEntrance][1], FamilyInfo[f][FamilyEntrance][2]);
- }
- }
- fclose(GangFile);
- }
- return 1;
- }
- stock IsVehicleOccupied(vehicleid) {
- foreach(Player,i) {
- if(GetPlayerVehicleID(i) == vehicleid && IsPlayerInAnyVehicle(i))
- return 1;
- }
- return INVALID_VEHICLE_ID;
- }
- stock SaveFamiliesHQ()
- {
- new string3[32];
- //GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
- format(string3, sizeof(string3), "familieshq.ini");
- new File: hFile = fopen(string3, io_write);
- if(hFile)
- {
- new var[32];
- for(new f = 0; f < MAX_FAMILY; f++)
- {
- format(var, 32, "Family%dEntranceX=%.1f\n",f, FamilyInfo[f][FamilyEntrance][0]); fwrite(hFile, var);
- format(var, 32, "Family%dEntranceY=%.1f\n",f, FamilyInfo[f][FamilyEntrance][1]); fwrite(hFile, var);
- format(var, 32, "Family%dEntranceZ=%.1f\n",f, FamilyInfo[f][FamilyEntrance][2]); fwrite(hFile, var);
- format(var, 32, "Family%dEntranceA=%.1f\n",f, FamilyInfo[f][FamilyEntrance][3]); fwrite(hFile, var);
- format(var, 32, "Family%dExitX=%.1f\n",f, FamilyInfo[f][FamilyExit][0]); fwrite(hFile, var);
- format(var, 32, "Family%dExitY=%.1f\n",f, FamilyInfo[f][FamilyExit][1]); fwrite(hFile, var);
- format(var, 32, "Family%dExitZ=%.1f\n",f, FamilyInfo[f][FamilyExit][2]); fwrite(hFile, var);
- format(var, 32, "Family%dExitA=%.1f\n",f, FamilyInfo[f][FamilyExit][3]); fwrite(hFile, var);
- format(var, 32, "Family%dInterior=%d\n",f, FamilyInfo[f][FamilyInterior]); fwrite(hFile, var);
- format(var, 32, "Family%dCustomMap=%d\n",f, FamilyInfo[f][FamilyCustomMap]); fwrite(hFile, var);
- format(var, 32, "Family%dVirtualWorld=%d\n",f, FamilyInfo[f][FamilyVirtualWorld]); fwrite(hFile, var);
- for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
- {
- format(var, 32, "Family%dVeh%dModelId=%d\n",f, fv, FamilyVehicleInfo[f][fv][fvModelId]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dSpawnx=%.1f\n",f, fv,FamilyVehicleInfo[f][fv][fvSpawnx]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dSpawny=%.1f\n",f, fv,FamilyVehicleInfo[f][fv][fvSpawny]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dSpawnz=%.1f\n",f, fv,FamilyVehicleInfo[f][fv][fvSpawnz]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dSpawna=%.1f\n",f, fv,FamilyVehicleInfo[f][fv][fvSpawna]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dLock=%d\n",f, fv,FamilyVehicleInfo[f][fv][fvLock]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dLocked=%d\n",f, fv,FamilyVehicleInfo[f][fv][fvLocked]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dPaintJob=%d\n",f, fv,FamilyVehicleInfo[f][fv][fvPaintJob]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dColor1=%d\n",f, fv,FamilyVehicleInfo[f][fv][fvColor1]); fwrite(hFile, var);
- format(var, 32, "Family%dVeh%dColor2=%d\n",f, fv,FamilyVehicleInfo[f][fv][fvColor2]); fwrite(hFile, var);
- //if(FamilyVehicleInfo[f][fv][fvId] != INVALID_VEHICLE_ID) FamilyVehicleInfo[f][fv][fvFuel] = VehicleFuel[FamilyVehicleInfo[f][fv][fvId]];
- format(var, 32, "Family%dVeh%dFuel=%.1f\n",f, fv,FamilyVehicleInfo[f][fv][fvFuel]); fwrite(hFile, var);
- }
- }
- fclose(hFile);
- }
- return 1;
- }
- stock LoadcDealerships()
- {
- new string2[64];
- format(string2, sizeof(string2), "dealerships.ini");
- new File: Dealerships = fopen(string2, io_read);
- if(Dealerships)
- {
- new key[ 256 ] , val[ 256 ];
- new Data[ 256 ];
- while (fread(Dealerships , Data , sizeof(Data)))
- {
- new string[128];
- for(new f = 0; f < MAX_CARDEALERSHIPS; f++)
- {
- key = ini_GetKey(Data);
- format(string, 128, "cd%dOwned",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdOwned] = strval(val); }
- format(string, 128, "cd%dOwner",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); strmid(CarDealershipInfo[f][cdOwner], val, 0, strlen(val)-1, 255); }
- format(string, 128, "cd%dEntranceX",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdEntranceX] = floatstr(val); }
- format(string, 128, "cd%dEntranceY",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdEntranceY] = floatstr(val); }
- format(string, 128, "cd%dEntranceZ",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdEntranceZ] = floatstr(val); }
- format(string, 128, "cd%dExitX",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdExitX] = floatstr(val); }
- format(string, 128, "cd%dExitY",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdExitY] = floatstr(val); }
- format(string, 128, "cd%dExitZ",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdExitZ] = floatstr(val); }
- format(string, 128, "cd%dMessage",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); strmid(CarDealershipInfo[f][cdMessage], val, 0, strlen(val)-1, 255); }
- format(string, 128, "cd%dTill",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdTill] = strval(val); }
- format(string, 128, "cd%dInterior",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdInterior] = strval(val); }
- format(string, 128, "cd%dVehicleSpawnX",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawn][0] = floatstr(val); }
- format(string, 128, "cd%dVehicleSpawnY",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawn][1] = floatstr(val); }
- format(string, 128, "cd%dVehicleSpawnZ",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawn][2] = floatstr(val); }
- format(string, 128, "cd%dVehicleSpawnA",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawn][3] = floatstr(val); }
- format(string, 128, "cd%dRadius",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdRadius] = floatstr(val); }
- format(string, 128, "cd%dPrice",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdPrice] = strval(val); }
- for(new m = 0; m < MAX_DEALERSHIPVEHICLES; m++)
- {
- format(string, 128, "cd%dVehicleSpawnX%d", f, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawnX][m] = floatstr(val); }
- format(string, 128, "cd%dVehicleSpawnY%d", f, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawnY][m] = floatstr(val); }
- format(string, 128, "cd%dVehicleSpawnZ%d", f, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawnZ][m] = floatstr(val); }
- format(string, 128, "cd%dVehicleSpawnA%d", f, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleSpawnAngle][m] = floatstr(val); }
- format(string, 128, "cd%dVehicleModel%d", f, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleModel][m] = strval(val); }
- format(string, 128, "cd%dVehicleCost%d", f, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdVehicleCost][m] = strval(val); }
- }
- format(string, 128, "cd%dDonator",f);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); CarDealershipInfo[f][cdDonator] = strval(val); }
- }
- }
- fclose(Dealerships);
- }
- return 1;
- }
- stock UpdateGMABroadcast()
- {
- new string[42];
- if(broadcasting == 0)
- {
- format(string, sizeof(string), "Currently: Not Broadcasting\nViewers: %d", viewers);
- }
- else
- {
- format(string, sizeof(string), "Currently: LIVE\nViewers: %d", viewers);
- }
- UpdateDynamic3DTextLabelText(GMA3DText, COLOR_LIGHTBLUE, string);
- }
- stock SavecDealerships()
- {
- new string3[32];
- //GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
- format(string3, sizeof(string3), "dealerships.ini");
- new File: hFile = fopen(string3, io_write);
- if(hFile)
- {
- new var[32];
- for(new f = 0; f < MAX_CARDEALERSHIPS; f++)
- {
- format(var, 32, "cd%dOwned=%d\n", f, CarDealershipInfo[f][cdOwned]); fwrite(hFile, var);
- format(var, 32, "cd%dOwner=%s\n", f, CarDealershipInfo[f][cdOwner]); fwrite(hFile, var);
- format(var, 32, "cd%dEntranceX=%.1f\n", f, CarDealershipInfo[f][cdEntranceX]); fwrite(hFile, var);
- format(var, 32, "cd%dEntranceY=%.1f\n", f, CarDealershipInfo[f][cdEntranceY]); fwrite(hFile, var);
- format(var, 32, "cd%dEntranceZ=%.1f\n", f, CarDealershipInfo[f][cdEntranceZ]); fwrite(hFile, var);
- format(var, 32, "cd%dExitX=%.1f\n", f, CarDealershipInfo[f][cdExitX]); fwrite(hFile, var);
- format(var, 32, "cd%dExitY=%.1f\n", f, CarDealershipInfo[f][cdExitY]); fwrite(hFile, var);
- format(var, 32, "cd%dExitZ=%.1f\n", f, CarDealershipInfo[f][cdExitZ]); fwrite(hFile, var);
- format(var, 32, "cd%dMessage=%s\n", f, CarDealershipInfo[f][cdMessage]); fwrite(hFile, var);
- format(var, 32, "cd%dTill=%d\n", f, CarDealershipInfo[f][cdTill]); fwrite(hFile, var);
- format(var, 32, "cd%dInterior=%d\n", f, CarDealershipInfo[f][cdInterior]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnX=%.1f\n", f, CarDealershipInfo[f][cdVehicleSpawn][0]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnY=%.1f\n", f, CarDealershipInfo[f][cdVehicleSpawn][1]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnZ=%.1f\n", f, CarDealershipInfo[f][cdVehicleSpawn][2]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnA=%.1f\n", f, CarDealershipInfo[f][cdVehicleSpawn][3]); fwrite(hFile, var);
- format(var, 32, "cd%dRadius=%.1f\n", f, CarDealershipInfo[f][cdRadius]); fwrite(hFile, var);
- format(var, 32, "cd%dPrice=%d\n", f, CarDealershipInfo[f][cdPrice]); fwrite(hFile, var);
- for(new m = 0; m < MAX_DEALERSHIPVEHICLES; m++)
- {
- format(var, 32, "cd%dVehicleSpawnX%d=%.1f\n", f, m, CarDealershipInfo[f][cdVehicleSpawnX][m]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnY%d=%.1f\n", f, m, CarDealershipInfo[f][cdVehicleSpawnY][m]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnZ%d=%.1f\n", f, m, CarDealershipInfo[f][cdVehicleSpawnZ][m]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleSpawnA%d=%.1f\n", f, m, CarDealershipInfo[f][cdVehicleSpawnAngle][m]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleModel%d=%d\n", f, m, CarDealershipInfo[f][cdVehicleModel][m]); fwrite(hFile, var);
- format(var, 32, "cd%dVehicleCost%d=%d\n", f, m, CarDealershipInfo[f][cdVehicleCost][m]); fwrite(hFile, var);
- }
- format(var, 32, "cd%dDonator=%d\n", f, CarDealershipInfo[f][cdDonator]); fwrite(hFile, var);
- }
- fclose(hFile);
- }
- return 1;
- }
- stock LoadHouses()
- {
- if(!fexist("houses.cfg")) return 1;
- new
- szFileStr[1024],
- File: iFileHandle = fopen("houses.cfg", io_read),
- iIndex;
- while(iIndex < sizeof(HouseInfo) && fread(iFileHandle, szFileStr))
- {
- sscanf(szFileStr, "p<|>iiis[24]ffffffffiiiiiiiiiiiiiiiiiff",
- HouseInfo[iIndex][hOwned],
- HouseInfo[iIndex][hLevel],
- HouseInfo[iIndex][hHInteriorWorld],
- //HouseInfo[iIndex][hDescription],
- HouseInfo[iIndex][hOwner],
- HouseInfo[iIndex][hExteriorX],
- HouseInfo[iIndex][hExteriorY],
- HouseInfo[iIndex][hExteriorZ],
- HouseInfo[iIndex][hExteriorR],
- HouseInfo[iIndex][hInteriorX],
- HouseInfo[iIndex][hInteriorY],
- HouseInfo[iIndex][hInteriorZ],
- HouseInfo[iIndex][hInteriorR],
- HouseInfo[iIndex][hLock],
- HouseInfo[iIndex][hRentable],
- HouseInfo[iIndex][hRentFee],
- HouseInfo[iIndex][hValue],
- HouseInfo[iIndex][hSafeMoney],
- HouseInfo[iIndex][hPot],
- HouseInfo[iIndex][hCrack],
- HouseInfo[iIndex][hMaterials],
- HouseInfo[iIndex][hWeapons][0],
- HouseInfo[iIndex][hWeapons][1],
- HouseInfo[iIndex][hWeapons][2],
- HouseInfo[iIndex][hWeapons][3],
- HouseInfo[iIndex][hWeapons][4],
- HouseInfo[iIndex][hGLUpgrade],
- HouseInfo[iIndex][hPickupID],
- HouseInfo[iIndex][hCustomInterior],
- HouseInfo[iIndex][hCustomExterior],
- HouseInfo[iIndex][hExteriorA],
- HouseInfo[iIndex][hInteriorA]
- );
- if(HouseInfo[iIndex][hLevel] != 0)
- {
- if(HouseInfo[iIndex][hOwned])
- {
- if(HouseInfo[iIndex][hRentable] == 0) format(szFileStr, sizeof(szFileStr), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[iIndex][hOwner],HouseInfo[iIndex][hLevel],iIndex);
- else format(szFileStr, sizeof(szFileStr), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[iIndex][hOwner],HouseInfo[iIndex][hLevel],iIndex,HouseInfo[iIndex][hRentFee]);
- }
- else format(szFileStr, sizeof(szFileStr), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[iIndex][hLevel],iIndex,HouseInfo[iIndex][hValue]);
- HouseInfo[iIndex][hPickupID] = CreatePickup(1273, 23, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ], -1);
- HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_HOUSEGREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- }
- ++iIndex;
- }
- return fclose(iFileHandle);
- }
- stock SaveHouses()
- {
- new
- szFileStr[1024],
- File: fHandle = fopen("houses.cfg", io_write);
- for(new iIndex; iIndex < MAX_HOUSES; iIndex++) {
- format(szFileStr, sizeof(szFileStr), "%d|%d|%d|%s|%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%f\r\n",
- HouseInfo[iIndex][hOwned],
- HouseInfo[iIndex][hLevel],
- HouseInfo[iIndex][hHInteriorWorld],
- //HouseInfo[iIndex][hDescription],
- HouseInfo[iIndex][hOwner],
- HouseInfo[iIndex][hExteriorX],
- HouseInfo[iIndex][hExteriorY],
- HouseInfo[iIndex][hExteriorZ],
- HouseInfo[iIndex][hExteriorR],
- HouseInfo[iIndex][hInteriorX],
- HouseInfo[iIndex][hInteriorY],
- HouseInfo[iIndex][hInteriorZ],
- HouseInfo[iIndex][hInteriorR],
- HouseInfo[iIndex][hLock],
- HouseInfo[iIndex][hRentable],
- HouseInfo[iIndex][hRentFee],
- HouseInfo[iIndex][hValue],
- HouseInfo[iIndex][hSafeMoney],
- HouseInfo[iIndex][hPot],
- HouseInfo[iIndex][hCrack],
- HouseInfo[iIndex][hMaterials],
- HouseInfo[iIndex][hWeapons][0],
- HouseInfo[iIndex][hWeapons][1],
- HouseInfo[iIndex][hWeapons][2],
- HouseInfo[iIndex][hWeapons][3],
- HouseInfo[iIndex][hWeapons][4],
- HouseInfo[iIndex][hGLUpgrade],
- HouseInfo[iIndex][hPickupID],
- HouseInfo[iIndex][hCustomInterior],
- HouseInfo[iIndex][hCustomExterior],
- HouseInfo[iIndex][hExteriorA],
- HouseInfo[iIndex][hInteriorA]
- );
- fwrite(fHandle, szFileStr);
- }
- return fclose(fHandle);
- }
- stock LoadDynamicMapIcons()
- {
- new arrCoords[7][64];
- new strFromFile2[256];
- new File: file = fopen("dynamicmapicons.cfg", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(DMPInfo))
- {
- fread(file, strFromFile2);
- splits(strFromFile2, arrCoords, '|');
- DMPInfo[idx][dmpMarkerType] = strval(arrCoords[0]);
- DMPInfo[idx][dmpColor] = strval(arrCoords[1]);
- DMPInfo[idx][dmpVW] = strval(arrCoords[2]);
- DMPInfo[idx][dmpInt] = strval(arrCoords[3]);
- DMPInfo[idx][dmpPosX] = floatstr(arrCoords[4]);
- DMPInfo[idx][dmpPosY] = floatstr(arrCoords[5]);
- DMPInfo[idx][dmpPosZ] = floatstr(arrCoords[6]);
- if(DMPInfo[idx][dmpMarkerType] != 0)
- {
- DMPInfo[idx][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[idx][dmpPosX], DMPInfo[idx][dmpPosY], DMPInfo[idx][dmpPosZ], DMPInfo[idx][dmpMarkerType], DMPInfo[idx][dmpColor], DMPInfo[idx][dmpVW], DMPInfo[idx][dmpInt], -1, 500.0);
- }
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- stock SaveDynamicMapIcons()
- {
- new
- szFileStr[326],
- File: fHandle = fopen("dynamicmapicons.cfg", io_write);
- for(new iIndex; iIndex < MAX_DMAPICONS; iIndex++) {
- format(szFileStr, sizeof(szFileStr), "%d|%d|%d|%d|%f|%f|%f\r\n",
- DMPInfo[iIndex][dmpMarkerType],
- DMPInfo[iIndex][dmpColor],
- DMPInfo[iIndex][dmpVW],
- DMPInfo[iIndex][dmpInt],
- DMPInfo[iIndex][dmpPosX],
- DMPInfo[iIndex][dmpPosY],
- DMPInfo[iIndex][dmpPosZ]
- );
- fwrite(fHandle, szFileStr);
- }
- return fclose(fHandle);
- }
- stock LoadDynamicDoors()
- {
- new arrCoords[26][64];
- new strFromFile2[256];
- new File: file = fopen("dynamicdoors.cfg", io_read);
- if(file)
- {
- new idx;
- while (idx < sizeof(DDoorsInfo))
- {
- fread(file, strFromFile2);
- splits(strFromFile2, arrCoords, '|');
- strmid(DDoorsInfo[idx][ddDescription], arrCoords[0], 0, strlen(arrCoords[0]), 128);
- DDoorsInfo[idx][ddCustomInterior] = strval(arrCoords[1]);
- DDoorsInfo[idx][ddExteriorVW] = strval(arrCoords[2]);
- DDoorsInfo[idx][ddExteriorInt] = strval(arrCoords[3]);
- DDoorsInfo[idx][ddInteriorVW] = strval(arrCoords[4]);
- DDoorsInfo[idx][ddInteriorInt] = strval(arrCoords[5]);
- DDoorsInfo[idx][ddExteriorX] = floatstr(arrCoords[6]);
- DDoorsInfo[idx][ddExteriorY] = floatstr(arrCoords[7]);
- DDoorsInfo[idx][ddExteriorZ] = floatstr(arrCoords[8]);
- DDoorsInfo[idx][ddExteriorA] = floatstr(arrCoords[9]);
- DDoorsInfo[idx][ddInteriorX] = floatstr(arrCoords[10]);
- DDoorsInfo[idx][ddInteriorY] = floatstr(arrCoords[11]);
- DDoorsInfo[idx][ddInteriorZ] = floatstr(arrCoords[12]);
- DDoorsInfo[idx][ddInteriorA] = floatstr(arrCoords[13]);
- DDoorsInfo[idx][ddCustomExterior] = strval(arrCoords[14]);
- DDoorsInfo[idx][ddVIP] = strval(arrCoords[15]);
- DDoorsInfo[idx][ddGang] = strval(arrCoords[16]);
- DDoorsInfo[idx][ddFaction] = strval(arrCoords[17]);
- DDoorsInfo[idx][ddAdmin] = strval(arrCoords[18]);
- DDoorsInfo[idx][ddWanted] = strval(arrCoords[19]);
- DDoorsInfo[idx][ddVehicleAble] = strval(arrCoords[20]);
- DDoorsInfo[idx][ddColor] = strval(arrCoords[21]);
- DDoorsInfo[idx][ddPickupModel] = strval(arrCoords[22]);
- strmid(DDoorsInfo[idx][ddPass], arrCoords[23], 0, strlen(arrCoords[23]), 24);
- DDoorsInfo[idx][ddLocked] = strval(arrCoords[24]);
- DDoorsInfo[idx][ddNotEditable] = strval(arrCoords[25]);
- if(!isnull(DDoorsInfo[idx][ddDescription]))
- {
- CreateDynamicDoor(idx);
- }
- idx++;
- }
- fclose(file);
- }
- return 1;
- }
- stock SaveDynamicDoors()
- {
- new
- szFileStr[512],
- File: fHandle = fopen("dynamicdoors.cfg", io_write);
- for(new iIndex; iIndex < MAX_DDOORS; iIndex++) {
- format(szFileStr, sizeof(szFileStr), "%s|%d|%d|%d|%d|%d|%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%s|%d|%d\r\n",
- DDoorsInfo[iIndex][ddDescription],
- DDoorsInfo[iIndex][ddCustomInterior],
- DDoorsInfo[iIndex][ddExteriorVW],
- DDoorsInfo[iIndex][ddExteriorInt],
- DDoorsInfo[iIndex][ddInteriorVW],
- DDoorsInfo[iIndex][ddInteriorInt],
- DDoorsInfo[iIndex][ddExteriorX],
- DDoorsInfo[iIndex][ddExteriorY],
- DDoorsInfo[iIndex][ddExteriorZ],
- DDoorsInfo[iIndex][ddExteriorA],
- DDoorsInfo[iIndex][ddInteriorX],
- DDoorsInfo[iIndex][ddInteriorY],
- DDoorsInfo[iIndex][ddInteriorZ],
- DDoorsInfo[iIndex][ddInteriorA],
- DDoorsInfo[iIndex][ddCustomExterior],
- DDoorsInfo[iIndex][ddVIP],
- DDoorsInfo[iIndex][ddGang],
- DDoorsInfo[iIndex][ddFaction],
- DDoorsInfo[iIndex][ddAdmin],
- DDoorsInfo[iIndex][ddWanted],
- DDoorsInfo[iIndex][ddVehicleAble],
- DDoorsInfo[iIndex][ddColor],
- DDoorsInfo[iIndex][ddPickupModel],
- DDoorsInfo[iIndex][ddPass],
- DDoorsInfo[iIndex][ddLocked],
- DDoorsInfo[iIndex][ddNotEditable]
- );
- fwrite(fHandle, szFileStr);
- }
- return fclose(fHandle);
- }
- stock CreateDynamicDoor(doorid)
- {
- new string[128];
- format(string, sizeof(string), "%s\n ID: %d",DDoorsInfo[doorid][ddDescription],doorid);
- switch(DDoorsInfo[doorid][ddColor])
- {
- case -1:{ /* Disable 3d Textdraw */ }
- case 1:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWWHITE, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 2:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWPINK, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 3:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWRED, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 4:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWBROWN, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 5:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWGRAY, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 6:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWOLIVE, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 7:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWPURPLE, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 8:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWORANGE, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 9:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWAZURE, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 10:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWGREEN, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 11:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWBLUE, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 12:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_TWBLACK, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- case 13:{DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_LIGHTSLATEGRAY, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);}
- default:
- {
- DDoorsInfo[doorid][ddTextID] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.7,10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, DDoorsInfo[doorid][ddExteriorVW], DDoorsInfo[doorid][ddExteriorInt], -1);
- }
- }
- switch(DDoorsInfo[doorid][ddPickupModel])
- {
- case -1: { /* Disable Pickup */ }
- case 1:
- {
- {DDoorsInfo[doorid][ddPickupID] = CreatePickup(1210, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- }
- case 2: {DDoorsInfo[doorid][ddPickupID] = CreatePickup(1212, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 3:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1239, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 4:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1240, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 5:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1241, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 6:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1242, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 7:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1247, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 8:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1248, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 9:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1252, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 10:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1253, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 11:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1254, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 12:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1313, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 13:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1272, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 14:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1273, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 15:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1274, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 16:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1275, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 17:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1276, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 18:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1277, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 19:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1279, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 20:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1314, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 21:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1316, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 22:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1317, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 23:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1559, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 24:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(1582, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- case 25:{DDoorsInfo[doorid][ddPickupID] = CreatePickup(2894, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);}
- default:
- {
- DDoorsInfo[doorid][ddPickupID] = CreatePickup(1318, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ], DDoorsInfo[doorid][ddExteriorVW]);
- }
- }
- }
- stock ClearHouse(houseid)
- {
- HouseInfo[houseid][hOwned] = 0;
- HouseInfo[houseid][hSafeMoney] = 0;
- HouseInfo[houseid][hPot] = 0;
- HouseInfo[houseid][hCrack] = 0;
- HouseInfo[houseid][hMaterials] = 0;
- HouseInfo[houseid][hWeapons][0] = 0;
- HouseInfo[houseid][hWeapons][1] = 0;
- HouseInfo[houseid][hWeapons][2] = 0;
- HouseInfo[houseid][hWeapons][3] = 0;
- HouseInfo[houseid][hWeapons][4] = 0;
- HouseInfo[houseid][hGLUpgrade] = 1;
- }
- stock ResetPlayerCash(playerid)
- {
- PlayerInfo[playerid][pCash] = 0;
- ResetPlayerMoney(playerid);
- return 1;
- }
- SetFamilySkin(playerid, skinid)
- {
- new gang;
- new skin;
- gang = PlayerInfo[playerid][pGang];
- skin = FamilyInfo[gang][FamilySkins][skinid];
- if(skin==0) return 1;
- PlayerInfo[playerid][pSkin] = skin;
- SetPlayerSkin(playerid, skin);
- return 1;
- }
- stock Random(min, max)
- {
- new a = random(max - min) + min;
- return a;
- }
- stock doesAccountExist(account_name[])
- {
- new sz_accStr[MAX_PLAYER_NAME + 12], File:f_Handle;
- format(sz_accStr, sizeof(sz_accStr), "users/%s.ini", account_name);
- if(fexist(sz_accStr)) {
- if(!(f_Handle = fopen(sz_accStr, io_read))) {
- return 1;
- }
- if(flength(f_Handle) > 0) {
- fclose(f_Handle);
- return 1;
- }
- fclose(f_Handle);
- }
- return 0;
- }
- forward ServerRestart();
- public ServerRestart()
- {
- //new string[128];
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Freezing Accounts...", 5);
- foreach(Player, i) {
- TogglePlayerControllable(i, false);
- }
- foreach(Player, i)
- {
- GameTextForPlayer(i, "~w~Server restarting...", 5000, 5);
- }
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Force Saving Houses...", 5);
- SaveHouses();
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Force Saving Dynamic Doors...", 5);
- SaveDynamicDoors();
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Force Saving Map Icons...", 5);
- SaveDynamicMapIcons();
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Force Saving Server Configuration", 5);
- Misc_Save();
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Force Saving Faction Pay...", 5);
- SaveThePay();
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Streamer Plugin Shutting Down...", 5);
- DestroyAllDynamicObjects();
- DestroyAllDynamicPickups();
- DestroyAllDynamic3DTextLabels();
- DestroyAllDynamicCPs();
- DestroyAllDynamicMapIcons();
- DestroyAllDynamicRaceCPs();
- DestroyAllDynamicAreas();
- ABroadCast(COLOR_YELLOW, "{AA3333}Server restart{FFFF00}: Force Saving Accounts...", 5);
- foreach(Player, i)
- {
- GameTextForPlayer(i, "~w~Server restarting...", 5000, 5);
- DisablePlayerCheckpoint(i);
- gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
- for(new s = 0; s < 12; s++)
- {
- if(PlayerInfo[i][pAGuns][s] != 0)
- {
- RemovePlayerWeapon(i, PlayerInfo[i][pAGuns][s]);
- }
- }
- PlayerInfo[i][pInt] = GetPlayerInterior(i);
- if(GetPVarType(i, "tabbedVW") != 0) {
- PlayerInfo[i][pVW] = GetPVarInt(i, "tabbedVW");
- } else PlayerInfo[i][pVW] = GetPlayerVirtualWorld(i);
- GetPlayerIp(i, PlayerInfo[i][pIP], 32);
- GetPlayerPos(i, PlayerInfo[i][pPos_x], PlayerInfo[i][pPos_y], PlayerInfo[i][pPos_z]);
- GetPlayerFacingAngle(i, PlayerInfo[i][pPos_r]);
- OnPlayerStatsUpdate(i);
- ResetPlayerWeapons(i);
- }
- SetTimer("FinishServerRestart", 10000, false);
- return 1;
- }
- forward FinishServerRestart();
- public FinishServerRestart()
- {
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* The server is now restarting. Please /quit and relog.");
- foreach(Player, i) {
- Kick(i);
- }
- SendRconCommand("exit");
- return 1;
- }
- stock SendReportToQueue(reportfrom, report[])
- {
- new bool:breakingloop = false, newid = INVALID_REPORT_ID;
- for(new i=0;i<MAX_REPORTS;i++)
- {
- if(!breakingloop)
- {
- if(Reports[i][HasBeenUsed] == 0)
- {
- breakingloop = true;
- newid = i;
- }
- }
- }
- if(newid != INVALID_REPORT_ID)
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- GameTextForPlayer(i, "~p~New Report /reports", 1500, 1);
- }
- }
- strmid(Reports[newid][Report], report, 0, strlen(report), 140);
- Reports[newid][ReportFrom] = reportfrom;
- Reports[newid][TimeToExpire] = 5;
- Reports[newid][HasBeenUsed] = 1;
- Reports[newid][BeingUsed] = 1;
- Reports[newid][ReportExpireTimer] = SetTimerEx("ReportTimer", 60000, 0, "d", newid);
- new string[140];
- format(string, sizeof(string), "Report from [%i] %s (RID: %i): %s", reportfrom, GetPlayerNameEx(reportfrom), newid, (report));
- ABroadCast(COLOR_REPORT,string,1);
- }
- else
- {
- ClearReports();
- SendReportToQueue(reportfrom, report);
- }
- }
- stock SendDMReportToQueue(reportfrom, id)
- {
- new bool:breakingloop = false, newid = INVALID_REPORT_ID;
- for(new i=0;i<MAX_REPORTS;i++)
- {
- if(!breakingloop)
- {
- if(Reports[i][HasBeenUsed] == 0)
- {
- breakingloop = true;
- newid = i;
- }
- }
- }
- if(newid != INVALID_REPORT_ID)
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1)
- {
- GameTextForPlayer(i, "~p~Priority Report ~r~/reports", 1500, 1);
- }
- }
- Reports[newid][ReportFrom] = reportfrom;
- Reports[newid][TimeToExpire] = 5;
- Reports[newid][HasBeenUsed] = 1;
- Reports[newid][BeingUsed] = 1;
- Reports[newid][ReportExpireTimer] = SetTimerEx("ReportTimer", 60000, 0, "d", newid);
- new string[140];
- format(string, sizeof(string), "Report from [%i] %s (RID: %i): ID %d DM (/reportdm)", reportfrom, GetPlayerNameEx(reportfrom), newid, id);
- ABroadCast(COLOR_REPORT,string,1);
- }
- else
- {
- ClearReports();
- SendDMReportToQueue(reportfrom, id);
- }
- }
- stock ClearReports()
- {
- for(new i=0;i<MAX_REPORTS;i++)
- {
- strmid(Reports[i][Report], "None", 0, 4, 4);
- Reports[i][CheckingReport] = 999;
- Reports[i][ReportFrom] = 999;
- Reports[i][TimeToExpire] = 5;
- Reports[i][HasBeenUsed] = 0;
- Reports[i][BeingUsed] = 0;
- }
- return 1;
- }
- stock ClearChatbox(playerid)
- {
- for(new i = 0; i < 50; i++) {
- SendClientMessage(playerid, COLOR_BLACK, "");
- }
- return 1;
- }
- ClearChat(playerid)
- {
- for(new i = 0; i < 30; i ++)
- {
- SendClientMessage(playerid, COLOR_BLACK, " ");
- }
- }
- stock PlayerFacePlayer(playerid, targetplayerid)
- {
- new Float: Angle;
- GetPlayerFacingAngle(playerid, Angle);
- SetPlayerFacingAngle(targetplayerid, Angle+180);
- return true;
- }
- stock GivePlayerEventWeapons(playerid)
- {
- if(GetPVarInt(playerid, "EventToken") == 1)
- {
- GivePlayerWeapon(playerid, EventKernel[EventWeapons][0], 60000);
- GivePlayerWeapon(playerid, EventKernel[EventWeapons][1], 60000);
- GivePlayerWeapon(playerid, EventKernel[EventWeapons][2], 60000);
- GivePlayerWeapon(playerid, EventKernel[EventWeapons][ 3 ], 60000);
- GivePlayerWeapon(playerid, EventKernel[EventWeapons][4], 60000);
- }
- return 1;
- }
- stock ScoreUpdate()
- {
- new LevScore;
- foreach(Player, i)
- {
- LevScore = PlayerInfo[i][pLevel];
- SetPlayerScore(i, LevScore);
- }
- return 1;
- }
- stock ExecuteHackerAction(playerid, weaponid)
- {
- if(!gPlayerLogged[playerid]) { return 1; }
- if(PlayerInfo[playerid][pTut] == 0) { return 1; } // NOT IMPLEMENTED YET
- if(playerTabbed[playerid] == 1) { return 1; }
- if(GetPVarInt(playerid, "PBM") > 0) { return 1; }
- new String[ 128 ], WeaponName[ 128 ];
- GetWeaponName(weaponid, WeaponName, sizeof(WeaponName));
- format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), playerid, WeaponName);
- ABroadCast(COLOR_YELLOW, String, 2);
- SetPVarInt(playerid, "wpH", GetPVarInt(playerid, "wpH")+1);
- if(GetPVarInt(playerid, "wpH") >= 3) {
- format(String, sizeof(String), "%s may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- AddAutomatedFlag(playerid, String);
- }
- //format(String, sizeof(String), "%s (ID %d) may possibly be weapon hacking (%s)", GetPlayerNameEx(playerid), playerid, WeaponName);
- //Log("logs/hack.log", String);
- return 1;
- }
- stock IsValidIP(ip[])
- {
- new a;
- for (new i = 0; i < strlen(ip); i++)
- {
- if(ip[i] == '.')
- {
- a++;
- }
- }
- if(a != 3)
- {
- return 1;
- }
- return 0;
- }
- stock fcreate(filename[])
- {
- if(fexist(filename)) return false;
- new File:fhnd;
- fhnd=fopen(filename,io_write);
- if(fhnd) {
- fclose(fhnd);
- return true;
- }
- return false;
- }
- stock CheckBan(ip[])
- {
- new string[20];
- new File: file = fopen("ban.cfg", io_read);
- while(fread(file, string))
- {
- if(strcmp(ip, string, true, strlen(ip)) == 0)
- {
- fclose(file);
- return 1;
- }
- }
- fclose(file);
- return 0;
- }
- stock AddBan(ip[])
- {
- if(CheckBan(ip) == 0)
- {
- new File: file = fopen("ban.cfg", io_append);
- new string[20];
- format(string, sizeof(string), "\n%s", ip);
- fwrite(file, string);
- fclose(file);
- foreach(Player, playerid)
- {
- new playerIP[16];
- GetPlayerIp(playerid, playerIP, sizeof(playerIP));
- if(strcmp(playerIP, ip) == 0)
- {
- SendClientMessage(playerid, COLOR_NEWS, "You're banned from Sleepless Roleplay. You can appeal your ban at www.Serenity");
- Kick(playerid);
- }
- }
- return 1;
- }
- return 0;
- }
- stock RemoveBan(ip[])
- {
- if(CheckBan(ip) == 1)
- {
- new string[20];
- new File: file = fopen("ban.cfg", io_read);
- fcreate("tempBan.cfg");
- new File: file2 = fopen("tempBan.cfg", io_append);
- while(fread(file, string))
- {
- if(strcmp(ip, string, true, strlen(ip)) != 0 && strcmp("\n", string) != 0)
- {
- fwrite(file2, string);
- }
- }
- fclose(file);
- fclose(file2);
- file = fopen("ban.cfg", io_write);
- file2 = fopen("tempBan.cfg", io_read);
- while(fread(file2, string))
- {
- fwrite(file, string);
- }
- fclose(file);
- fclose(file2);
- fremove("tempBan.cfg");
- return 1;
- }
- return 0;
- }
- /*stock GetPlayerNameEx(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }*/
- /*forward F12Warning(playerid);
- public F12Warning(playerid) {
- if(PlayerInfo[playerid][pAdmin] < 1)
- return KillTimer(GetPVarInt(playerid, "F12Timer"));
- switch(GetPVarInt(playerid, "F12Count")) {
- case 0: GameTextForPlayer(playerid, "~r~Do NOT ~g~forget ~b~to ~p~press ~y~F12", 1000, 3);
- case 1: GameTextForPlayer(playerid, "~r~Do NOT ~b~forget ~y~to ~w~press ~p~F12", 1000, 3);
- case 2: GameTextForPlayer(playerid, "~r~Do NOT ~y~forget ~w~to ~p~press ~g~F12", 1000, 3);
- case 3: GameTextForPlayer(playerid, "~r~Do NOT ~w~forget ~p~to ~g~press ~b~F12", 1000, 3);
- }
- SetPVarInt(playerid, "F12Count", GetPVarInt(playerid, "F12Count")+1);
- if(GetPVarInt(playerid, "F12Count") >= 4) {
- KillTimer(GetPVarInt(playerid, "F12Timer"));
- DeletePVar(playerid, "F12Timer");
- DeletePVar(playerid, "F12Count");
- return 1;
- }
- return 1;
- }*/
- public OnPlayerPressButton(playerid, buttonid)
- {
- // LSPD
- if(buttonid == lspdcopsonly)
- {
- if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 10)
- {
- DoorOpen(playerid);
- SetTimer("DoorClose", 4000, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a LEO");
- }
- }
- if(buttonid == lspdeveryone)
- {
- DoorOpen(playerid);
- SetTimer("DoorClose", 3500, 0);
- }
- // LSPD v1
- if(buttonid == lspdcopsonly1)
- {
- if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 10)
- {
- DoorOpen1(playerid);
- SetTimer("DoorClose1", 4000, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a LEO");
- }
- }
- if(buttonid == lspdeveryone1)
- {
- DoorOpen1(playerid);
- SetTimer("DoorClose1", 3500, 0);
- }
- // FBI
- if(buttonid == FBILobbyLeftBTN[0] || buttonid == FBILobbyLeftBTN[1])
- {
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 5)
- {
- MoveDynamicObject(FBILobbyLeft,293.93002319,-1498.43457031,-46.13965225,4);
- SetTimer("CloseFBILobbyLeft", 2500, 0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"Access denied.");
- return 1;
- }
- }
- if(buttonid == FBILobbyRightBTN[0] || buttonid == FBILobbyRightBTN[1])
- {
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 5)
- {
- MoveDynamicObject(FBILobbyRight,303.84756470,-1521.62988281,-46.13965225,4);
- SetTimer("CloseFBILobbyRight", 2500, 0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"Access denied.");
- return 1;
- }
- }
- if(buttonid == FBIPrivateBTN[0] || buttonid == FBIPrivateBTN[1])
- {
- if((PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2) && PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pFaction] == 5)
- {
- MoveDynamicObject(FBIPrivate[0],299.29986572,-1491.75842285,-28.73300552,4);
- MoveDynamicObject(FBIPrivate[1],299.33737183,-1496.86145020,-28.73300552,4);
- SetTimer("CloseFBIPrivate", 2500, 0);
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"Access denied.");
- return 1;
- }
- }
- return false;
- }
- forward DoorOpen(playerid);
- public DoorOpen(playerid)
- {
- MoveDynamicObject(lspddoor1, 1788.9044, -1045.2696, -26.3865, 3.5000);
- MoveDynamicObject(lspddoor2, 1789.0209, -1050.3466, -26.4055, 3.5000);
- return 1;
- }
- forward DoorClose(playerid);
- public DoorClose(playerid)
- {
- MoveDynamicObject(lspddoor1, 1788.90442, -1046.27759, -26.38650, 3.5000);
- MoveDynamicObject(lspddoor2, 1788.99072, -1049.24573, -26.40553, 3.5000);
- return 1;
- }
- forward DoorOpen1(playerid);
- public DoorOpen1(playerid)
- {
- MoveDynamicObject(lspddoor3, 1775.4126, -1041.7201, -26.4146, 3.5000);
- MoveDynamicObject(lspddoor4, 1775.4470, -1036.7138, -26.4146, 3.5000);
- return 1;
- }
- forward DoorClose1(playerid);
- public DoorClose1(playerid)
- {
- MoveDynamicObject(lspddoor3, 1775.41260, -1040.68811, -26.41463, 3.5000);
- MoveDynamicObject(lspddoor4, 1775.44702, -1037.73376, -26.41463, 3.5000);
- return 1;
- }
- forward CloseFBILobbyLeft();
- public CloseFBILobbyLeft()
- {
- MoveDynamicObject(FBILobbyLeft,295.40136719,-1498.43457031,-46.13965225,4);
- return 1;
- }
- forward CloseFBILobbyRight();
- public CloseFBILobbyRight()
- {
- MoveDynamicObject(FBILobbyRight,302.39355469,-1521.62988281,-46.13965225,4);
- return 1;
- }
- forward CloseFBIPrivate();
- public CloseFBIPrivate()
- {
- MoveDynamicObject(FBIPrivate[0],299.29986572,-1492.82666016,-28.73300552,4);
- MoveDynamicObject(FBIPrivate[1],299.33737183,-1495.83911133,-28.73300552,4);
- return 1;
- }
- stock crc32(string[])
- {
- new crc_table[256] = {
- 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535,
- 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD,
- 0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D,
- 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
- 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4,
- 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 0x35B5A8FA, 0x42B2986C,
- 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC,
- 0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
- 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB,
- 0xB6662D3D, 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F,
- 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB,
- 0x086D3D2D, 0x91646C97, 0xE6635C01, 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
- 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA,
- 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 0x4DB26158, 0x3AB551CE,
- 0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A,
- 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
- 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409,
- 0xCE61E49F, 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81,
- 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739,
- 0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
- 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, 0x8708A3D2, 0x1E01F268,
- 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0,
- 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8,
- 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
- 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF,
- 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703,
- 0x220216B9, 0x5505262F, 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7,
- 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
- 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE,
- 0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242,
- 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 0x88085AE6,
- 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
- 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D,
- 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5,
- 0x47B2CF7F, 0x30B5FFE9, 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605,
- 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94,
- 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D
- };
- new crc = -1;
- for(new i = 0; i < strlen(string); i++)
- {
- crc = (crc >>> 8) ^ crc_table[(crc ^ string[i]) & 0xFF];
- }
- return crc ^ -1;
- }
- stock GetPlayerNameEx(playerid)
- {
- new
- sz_playerName[MAX_PLAYER_NAME],
- i_pos;
- GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
- while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
- return sz_playerName;
- }
- stock IsKeyJustDown(key, newkeys, oldkeys)
- {
- if((newkeys & key) && !(oldkeys & key)) return 1;
- return 0;
- }
- stock IsInvalidSkin(skin)
- {
- if(!(0 <= skin <= 299)) return 1;
- return 0;
- }
- stock IsValidSkin(skinid)
- {
- if(skinid < 0 || skinid > 299)
- return 0;
- switch (skinid)
- {
- case
- 0, 105, 106, 107, 102, 103, 69, 123,
- 104, 114, 115, 116, 174, 175, 100, 247, 173,
- 248, 117, 118, 147, 163, 21, 24, 143, 71,
- 156, 176, 177, 108, 109, 110, 165, 166,
- 265, 266, 267, 269, 270, 271, 274, 276,
- 277, 278, 279, 280, 281, 282, 283, 284,
- 285, 286, 287, 288, 294, 296, 297: return 0;
- }
- return 1;
- }
- stock IsAHelicopter(carid)
- {
- if(GetVehicleModel(carid) == 548 || GetVehicleModel(carid) == 425 || GetVehicleModel(carid) == 417 || GetVehicleModel(carid) == 487 || GetVehicleModel(carid) == 488 || GetVehicleModel(carid) == 497 || GetVehicleModel(carid) == 563 || GetVehicleModel(carid) == 447 || GetVehicleModel(carid) == 469 || GetVehicleModel(carid) == 593) {
- return 1;
- }
- return 0;
- }
- stock Float: GetVehicleSpeedByVehicleID(vehicleid)
- {
- new
- Float: fVelocity[4];
- GetVehicleVelocity(vehicleid, fVelocity[0], fVelocity[1], fVelocity[2]);
- fVelocity[3] = floatsqroot((fVelocity[0] * fVelocity[0]) + (fVelocity[1] * fVelocity[1]) + (fVelocity[2] * fVelocity[2])) * 100;
- fVelocity[3] += fVelocity[3] / 2;
- return fVelocity[3];
- }
- stock Float: player_get_speed(playerid)
- {
- new
- Float: fVelocity[4];
- GetVehicleVelocity(GetPlayerVehicleID(playerid), fVelocity[0], fVelocity[1], fVelocity[2]);
- fVelocity[3] = floatsqroot((fVelocity[0] * fVelocity[0]) + (fVelocity[1] * fVelocity[1]) + (fVelocity[2] * fVelocity[2])) * 100;
- fVelocity[3] += fVelocity[3] / 2;
- return fVelocity[3];
- }
- stock CheckVPH(newph)
- {
- new PHList[32];
- new number;
- new string[32];
- new File: file = fopen("PHList.cfg", io_read);
- if(file)
- {
- while(fread(file, string))
- {
- strmid(PHList, string, 0, strlen(string)-2, 255);
- number = strval(PHList);
- if(number == newph)
- {
- fclose(file);
- return 1;
- }
- }
- fclose(file);
- return 0;
- }
- return 1;
- }
- stock CheckPH(playerid)
- {
- if(!fexist("PHList.cfg")) return 1;
- if(PlayerInfo[playerid][pNumber] == 0) {return 0;}
- new PHList[32];
- new number;
- new string[32];
- new File: file = fopen("PHList.cfg", io_read);
- if(file)
- {
- while(fread(file, string))
- {
- strmid(PHList, string, 0, strlen(string)-2, 255);
- number = strval(PHList);
- if(number == PlayerInfo[playerid][pNumber])
- {
- fclose(file);
- return 1;
- }
- }
- fclose(file);
- new File: file2 = fopen("PHList.cfg", io_append);
- format(string, sizeof(string), "%d\r\n", PlayerInfo[playerid][pNumber]);
- fwrite(file2, string);
- fclose(file2);
- //printf("New number added to PHList.cfg, ph:%d player:%s", PlayerInfo[playerid][pNumber], GetPlayerNameEx(playerid));
- return 0;
- }
- return 1;
- }
- stock ReplacePH(oldph, newph)
- {
- new File: file2 = fopen("tmpPHList.cfg", io_write);
- new number;
- new string[32];
- new PHList[32];
- format(string, sizeof(string), "%d\r\n", newph);
- fwrite(file2, string);
- fclose(file2);
- file2 = fopen("tmpPHList.cfg", io_append);
- new File: file = fopen("PHList.cfg", io_read);
- while(fread(file, string))
- {
- strmid(PHList, string, 0, strlen(string)-1, 255);
- number = strval(PHList);
- if(number != oldph)
- {
- format(string, sizeof(string), "%d\r\n", number);
- fwrite(file2, string);
- }
- }
- fclose(file);
- fclose(file2);
- file2 = fopen("PHList.cfg", io_write);
- file = fopen("tmpPHList.cfg", io_read);
- while(fread(file, string))
- {
- strmid(PHList, string, 0, strlen(string)-1, 255);
- number = strval(PHList);
- if(number != oldph)
- {
- format(string, sizeof(string), "%d\r\n", number);
- fwrite(file2, string);
- }
- }
- fclose(file);
- fclose(file2);
- fremove("tmpPHList.cfg");
- //printf("ph %d replaced with ph %d in PHList.cfg", oldph, newph);
- return 1;
- }
- stock SearchingHit(playerid)
- {
- new string[ 128 ];
- SendClientMessage(playerid, COLOR_WHITE, "Available Contracts:");
- new hits;
- foreach(Player, i)
- {
- if(PlayerInfo[i][pFaction] != 4 && PlayerInfo[i][pHeadValue] > 0)
- {
- if(GotHit[i] == 0)
- {
- hits++;
- format(string, sizeof(string), "Name: %s (ID %d) | Price: $%d | Contracted By: %s | Details: %s | Chased By: Nobody", GetPlayerNameEx(i), i, PlayerInfo[i][pHeadValue], PlayerInfo[i][pContractBy], PlayerInfo[i][pContractDetail]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- else
- {
- format(string, sizeof(string), "Name: %s (ID %d) | Price: $%d | Contracted By: %s | Details: %s | Chased By: %s", GetPlayerNameEx(i), i, PlayerInfo[i][pHeadValue], PlayerInfo[i][pContractBy], PlayerInfo[i][pContractDetail], GetPlayerNameEx(GetChased[i]));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- }
- }
- if(hits && PlayerInfo[playerid][pRank] <= 1 && PlayerInfo[playerid][pFaction] == 4)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Use /givemehit to assign a contract to yourself.");
- }
- if(hits && PlayerInfo[playerid][pRank] >= 6 && PlayerInfo[playerid][pFaction] == 4 && PlayerInfo[playerid][pLeader] == 4)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Use /givehit to assign a contract to one of the hitmen.");
- }
- if(hits == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "There are no hits available.");
- }
- return 0;
- }
- stock GivePlayerValidAdminWeapon(playerid, WeaponID, Ammo)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2 && WeaponID != 46 && WeaponID != 43) return 1;
- switch(WeaponID)
- {
- case 0, 1:
- {
- PlayerInfo[playerid][pAGuns][0] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 2, 3, 4, 5, 6, 7, 8, 9:
- {
- PlayerInfo[playerid][pAGuns][1] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 22, 23, 24:
- {
- PlayerInfo[playerid][pAGuns][2] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 25, 26, 27:
- {
- PlayerInfo[playerid][pAGuns][ 3 ] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 28, 29, 32:
- {
- PlayerInfo[playerid][pAGuns][4] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 30, 31:
- {
- PlayerInfo[playerid][pAGuns][5] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 33, 34:
- {
- PlayerInfo[playerid][pAGuns][6] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 35, 36, 37, 38:
- {
- PlayerInfo[playerid][pAGuns][7] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 16, 17, 18, 39, 40:
- {
- PlayerInfo[playerid][pAGuns][8] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 41, 42, 43:
- {
- PlayerInfo[playerid][pAGuns][9] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 10, 11, 12, 13, 14, 15:
- {
- PlayerInfo[playerid][pAGuns][10] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 44, 45, 46:
- {
- PlayerInfo[playerid][pAGuns][11] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- }
- return 1;
- }
- stock GivePlayerValidWeapon(playerid, WeaponID, Ammo)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2 && WeaponID != 46 && WeaponID != 43) return 1;
- switch(WeaponID)
- {
- case 0, 1:
- {
- PlayerInfo[playerid][pGuns][0] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 2, 3, 4, 5, 6, 7, 8, 9:
- {
- PlayerInfo[playerid][pGuns][1] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 22, 23, 24:
- {
- PlayerInfo[playerid][pGuns][2] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 25, 26, 27:
- {
- PlayerInfo[playerid][pGuns][ 3 ] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 28, 29, 32:
- {
- PlayerInfo[playerid][pGuns][4] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 30, 31:
- {
- PlayerInfo[playerid][pGuns][5] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 33, 34:
- {
- PlayerInfo[playerid][pGuns][6] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 35, 36, 37, 38:
- {
- PlayerInfo[playerid][pGuns][7] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 16, 17, 18, 39, 40:
- {
- PlayerInfo[playerid][pGuns][8] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 41, 42, 43:
- {
- PlayerInfo[playerid][pGuns][9] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 10, 11, 12, 13, 14, 15:
- {
- PlayerInfo[playerid][pGuns][10] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- case 44, 45, 46:
- {
- PlayerInfo[playerid][pGuns][11] = WeaponID;
- GivePlayerWeapon(playerid, WeaponID, Ammo);
- }
- }
- return 1;
- }
- stock SetPlayerWeapons(playerid)
- {
- if(GetPVarInt(playerid, "PBM") > 0) { return 1; }
- ResetPlayerWeapons(playerid);
- for(new s = 0; s < 12; s++)
- {
- if(PlayerInfo[playerid][pGuns][s] > 0 && PlayerInfo[playerid][pAGuns][s] == 0)
- {
- if(PlayerInfo[playerid][pGuns][s] == 17)
- GivePlayerValidWeapon(playerid, PlayerInfo[playerid][pGuns][s], 5);
- else
- GivePlayerValidWeapon(playerid, PlayerInfo[playerid][pGuns][s], 60000);
- }
- }
- return 1;
- }
- stock SetPlayerWeaponsEx(playerid)
- {
- ResetPlayerWeapons(playerid);
- for(new s = 0; s < 12; s++)
- {
- if(PlayerInfo[playerid][pGuns][s] > 0)
- {
- GivePlayerValidWeapon(playerid, PlayerInfo[playerid][pGuns][s], 60000);
- }
- }
- SetPlayerArmedWeapon(playerid, GetPVarInt(playerid, "LastWeapon"));
- }
- stock ResetPlayerWeaponsEx(playerid)
- {
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pGuns][0] = 0;
- PlayerInfo[playerid][pGuns][1] = 0;
- PlayerInfo[playerid][pGuns][2] = 0;
- PlayerInfo[playerid][pGuns][ 3 ] = 0;
- PlayerInfo[playerid][pGuns][4] = 0;
- PlayerInfo[playerid][pGuns][5] = 0;
- PlayerInfo[playerid][pGuns][6] = 0;
- PlayerInfo[playerid][pGuns][7] = 0;
- PlayerInfo[playerid][pGuns][8] = 0;
- PlayerInfo[playerid][pGuns][9] = 0;
- PlayerInfo[playerid][pGuns][10] = 0;
- PlayerInfo[playerid][pGuns][11] = 0;
- PlayerInfo[playerid][pAGuns][0] = 0;
- PlayerInfo[playerid][pAGuns][1] = 0;
- PlayerInfo[playerid][pAGuns][2] = 0;
- PlayerInfo[playerid][pAGuns][ 3 ] = 0;
- PlayerInfo[playerid][pAGuns][4] = 0;
- PlayerInfo[playerid][pAGuns][5] = 0;
- PlayerInfo[playerid][pAGuns][6] = 0;
- PlayerInfo[playerid][pAGuns][7] = 0;
- PlayerInfo[playerid][pAGuns][8] = 0;
- PlayerInfo[playerid][pAGuns][9] = 0;
- PlayerInfo[playerid][pAGuns][10] = 0;
- PlayerInfo[playerid][pAGuns][11] = 0;
- return 1;
- }
- RemovePlayerWeapon(playerid, weaponid)
- {
- new plyWeapons[13];
- for(new s = 0; s < 12; s++)
- {
- new wep, ammo;
- GetPlayerWeaponData(playerid, s, wep, ammo);
- if(wep != weaponid)
- {
- GetPlayerWeaponData(playerid, s, plyWeapons[s], ammo);
- }
- else
- {
- PlayerInfo[playerid][pGuns][s] = 0;
- PlayerInfo[playerid][pAGuns][s] = 0;
- }
- }
- ResetPlayerWeapons(playerid);
- for(new s = 0; s < 12; s++)
- {
- GivePlayerValidWeapon(playerid, plyWeapons[s], 60000);
- }
- return 1;
- }
- stock GetWeaponSlot(weaponid)
- {
- switch(weaponid)
- {
- case 0, 1:
- {
- return 0;
- }
- case 2, 3, 4, 5, 6, 7, 8, 9:
- {
- return 1;
- }
- case 22, 23, 24:
- {
- return 2;
- }
- case 25, 26, 27:
- {
- return 3;
- }
- case 28, 29, 32:
- {
- return 4;
- }
- case 30, 31:
- {
- return 5;
- }
- case 33, 34:
- {
- return 6;
- }
- case 35, 36, 37, 38:
- {
- return 7;
- }
- case 16, 17, 18, 39, 40:
- {
- return 8;
- }
- case 41, 42, 43:
- {
- return 9;
- }
- case 10, 11, 12, 13, 14, 15:
- {
- return 10;
- }
- case 44, 45, 46:
- {
- return 11;
- }
- }
- return -1;
- }
- stock partType(type)
- {
- new name[32];
- switch(type)
- {
- case 0:
- {
- name = "Spoiler";
- }
- case 1:
- {
- name = "Hood";
- }
- case 2:
- {
- name = "Roof";
- }
- case 3:
- {
- name = "Sideskirt";
- }
- case 4:
- {
- name = "Lamps";
- }
- case 5:
- {
- name = "Nitro";
- }
- case 6:
- {
- name = "Exhaust";
- }
- case 7:
- {
- name = "Wheels";
- }
- case 8:
- {
- name = "Stereo";
- }
- case 9:
- {
- name = "Hydraulics";
- }
- case 10:
- {
- name = "Front Bumper";
- }
- case 11:
- {
- name = "Rear Bumper";
- }
- case 12:
- {
- name = "Left Vent";
- }
- case 13:
- {
- name = "Right Vent";
- }
- default:
- {
- name = "Unknown";
- }
- }
- return name;
- }
- stock partName(part)
- {
- new name[32];
- switch(part - 1000)
- {
- case 0:
- {
- name = "Pro";
- }
- case 1:
- {
- name = "Win";
- }
- case 2:
- {
- name = "Drag";
- }
- case 3:
- {
- name = "Alpha";
- }
- case 4:
- {
- name = "Champ Scoop";
- }
- case 5:
- {
- name = "Fury Scoop";
- }
- case 6:
- {
- name = "Roof Scoop";
- }
- case 7:
- {
- name = "Sideskirt";
- }
- case 8:
- {
- name = "2x";
- }
- case 9:
- {
- name = "5x";
- }
- case 10:
- {
- name = "10x";
- }
- case 11:
- {
- name = "Race Scoop";
- }
- case 12:
- {
- name = "Worx Scoop";
- }
- case 13:
- {
- name = "Round Fog";
- }
- case 14:
- {
- name = "Champ";
- }
- case 15:
- {
- name = "Race";
- }
- case 16:
- {
- name = "Worx";
- }
- case 17:
- {
- name = "Sideskirt";
- }
- case 18:
- {
- name = "Upswept";
- }
- case 19:
- {
- name = "Twin";
- }
- case 20:
- {
- name = "Large";
- }
- case 21:
- {
- name = "Medium";
- }
- case 22:
- {
- name = "Small";
- }
- case 23:
- {
- name = "Fury";
- }
- case 24:
- {
- name = "Square Fog";
- }
- case 26:
- {
- name = "Alien";
- }
- case 27:
- {
- name = "Alien";
- }
- case 28:
- {
- name = "Alien";
- }
- case 29:
- {
- name = "X-Flow";
- }
- case 30:
- {
- name = "X-Flow";
- }
- case 31:
- {
- name = "X-Flow";
- }
- case 32:
- {
- name = "Alien Roof Vent";
- }
- case 33:
- {
- name = "X-Flow Roof Vent";
- }
- case 34:
- {
- name = "Alien";
- }
- case 35:
- {
- name = "X-Flow Roof Vent";
- }
- case 36:
- {
- name = "Alien";
- }
- case 37:
- {
- name = "X-Flow";
- }
- case 38:
- {
- name = "Alien Roof Vent";
- }
- case 39:
- {
- name = "X-Flow";
- }
- case 40:
- {
- name = "Alien";
- }
- case 41:
- {
- name = "X-Flow";
- }
- case 42:
- {
- name = "Chrome";
- }
- case 43:
- {
- name = "Slamin";
- }
- case 44:
- {
- name = "Chrome";
- }
- case 45:
- {
- name = "X-Flow";
- }
- case 46:
- {
- name = "Alien";
- }
- case 47:
- {
- name = "Alien";
- }
- case 48:
- {
- name = "X-Flow";
- }
- case 49:
- {
- name = "Alien";
- }
- case 50:
- {
- name = "X-Flow";
- }
- case 51:
- {
- name = "Alien";
- }
- case 52:
- {
- name = "X-Flow";
- }
- case 53:
- {
- name = "X-Flow";
- }
- case 54:
- {
- name = "Alien";
- }
- case 55:
- {
- name = "Alien";
- }
- case 56:
- {
- name = "Alien";
- }
- case 57:
- {
- name = "X-Flow";
- }
- case 58:
- {
- name = "Alien";
- }
- case 59:
- {
- name = "X-Flow";
- }
- case 60:
- {
- name = "X-Flow";
- }
- case 61:
- {
- name = "X-Flow";
- }
- case 62:
- {
- name = "Alien";
- }
- case 63:
- {
- name = "X-Flow";
- }
- case 64:
- {
- name = "Alien";
- }
- case 65:
- {
- name = "Alien";
- }
- case 66:
- {
- name = "X-Flow";
- }
- case 67:
- {
- name = "Alien";
- }
- case 68:
- {
- name = "X-Flow";
- }
- case 69:
- {
- name = "Alien";
- }
- case 70:
- {
- name = "X-Flow";
- }
- case 71:
- {
- name = "Alien";
- }
- case 72:
- {
- name = "X-Flow";
- }
- case 88:
- {
- name = "Alien";
- }
- case 89:
- {
- name = "X-Flow";
- }
- case 90:
- {
- name = "Alien";
- }
- case 91:
- {
- name = "X-Flow";
- }
- case 92:
- {
- name = "Alien";
- }
- case 93:
- {
- name = "X-Flow";
- }
- case 94:
- {
- name = "Alien";
- }
- case 95:
- {
- name = "X-Flow";
- }
- case 99:
- {
- name = "Chrome";
- }
- case 100:
- {
- name = "Chrome Grill";
- }
- case 101:
- {
- name = "Chrome Flames";
- }
- case 102:
- {
- name = "Chrome Strip";
- }
- case 103:
- {
- name = "Covertible";
- }
- case 104:
- {
- name = "Chrome";
- }
- case 105:
- {
- name = "Slamin";
- }
- case 106:
- {
- name = "Chrome Arches";
- }
- case 107:
- {
- name = "Chrome Strip";
- }
- case 108:
- {
- name = "Chrome Strip";
- }
- case 109:
- {
- name = "Chrome";
- }
- case 110:
- {
- name = "Slamin";
- }
- case 113:
- {
- name = "Chrome";
- }
- case 114:
- {
- name = "Slamin";
- }
- case 115:
- {
- name = "Chrome";
- }
- case 116:
- {
- name = "Slamin";
- }
- case 117:
- {
- name = "Chrome";
- }
- case 118:
- {
- name = "Chrome Trim";
- }
- case 119:
- {
- name = "Wheelcovers";
- }
- case 120:
- {
- name = "Chrome Trim";
- }
- case 121:
- {
- name = "Wheelcovers";
- }
- case 122:
- {
- name = "Chrome Flames";
- }
- case 123:
- {
- name = "Bullbar Chrome Bars";
- }
- case 124:
- {
- name = "Chrome Arches";
- }
- case 125:
- {
- name = "Bullbar Chrome Lights";
- }
- case 126:
- {
- name = "Chrome";
- }
- case 127:
- {
- name = "Slamin";
- }
- case 128:
- {
- name = "Vinyl Hardtop";
- }
- case 129:
- {
- name = "Chrome";
- }
- case 130:
- {
- name = "Hardtop";
- }
- case 131:
- {
- name = "Softtop";
- }
- case 132:
- {
- name = "Slamin";
- }
- case 133:
- {
- name = "Chrome Strip";
- }
- case 134:
- {
- name = "Chrome Strip";
- }
- case 135:
- {
- name = "Slamin";
- }
- case 136:
- {
- name = "Chrome";
- }
- case 137:
- {
- name = "Chrome Strip";
- }
- case 138:
- {
- name = "Alien";
- }
- case 139:
- {
- name = "X-Flow";
- }
- case 140:
- {
- name = "X-Flow";
- }
- case 141:
- {
- name = "Alien";
- }
- case 142:
- {
- name = "Left Oval Vents";
- }
- case 143:
- {
- name = "Right Oval Vents";
- }
- case 144:
- {
- name = "Left Square Vents";
- }
- case 145:
- {
- name = "Right Square Vents";
- }
- case 146:
- {
- name = "X-Flow";
- }
- case 147:
- {
- name = "Alien";
- }
- case 148:
- {
- name = "X-Flow";
- }
- case 149:
- {
- name = "Alien";
- }
- case 150:
- {
- name = "Alien";
- }
- case 151:
- {
- name = "X-Flow";
- }
- case 152:
- {
- name = "X-Flow";
- }
- case 153:
- {
- name = "Alien";
- }
- case 154:
- {
- name = "Alien";
- }
- case 155:
- {
- name = "Alien";
- }
- case 156:
- {
- name = "X-Flow";
- }
- case 157:
- {
- name = "X-Flow";
- }
- case 158:
- {
- name = "X-Flow";
- }
- case 159:
- {
- name = "Alien";
- }
- case 160:
- {
- name = "Alien";
- }
- case 161:
- {
- name = "X-Flow";
- }
- case 162:
- {
- name = "Alien";
- }
- case 163:
- {
- name = "X-Flow";
- }
- case 164:
- {
- name = "Alien";
- }
- case 165:
- {
- name = "X-Flow";
- }
- case 166:
- {
- name = "Alien";
- }
- case 167:
- {
- name = "X-Flow";
- }
- case 168:
- {
- name = "Alien";
- }
- case 169:
- {
- name = "Alien";
- }
- case 170:
- {
- name = "X-Flow";
- }
- case 171:
- {
- name = "Alien";
- }
- case 172:
- {
- name = "X-Flow";
- }
- case 173:
- {
- name = "X-Flow";
- }
- case 174:
- {
- name = "Chrome";
- }
- case 175:
- {
- name = "Slamin";
- }
- case 176:
- {
- name = "Chrome";
- }
- case 177:
- {
- name = "Slamin";
- }
- case 178:
- {
- name = "Slamin";
- }
- case 179:
- {
- name = "Chrome";
- }
- case 180:
- {
- name = "Chrome";
- }
- case 181:
- {
- name = "Slamin";
- }
- case 182:
- {
- name = "Chrome";
- }
- case 183:
- {
- name = "Slamin";
- }
- case 184:
- {
- name = "Chrome";
- }
- case 185:
- {
- name = "Slamin";
- }
- case 186:
- {
- name = "Slamin";
- }
- case 187:
- {
- name = "Chrome";
- }
- case 188:
- {
- name = "Slamin";
- }
- case 189:
- {
- name = "Chrome";
- }
- case 190:
- {
- name = "Slamin";
- }
- case 191:
- {
- name = "Chrome";
- }
- case 192:
- {
- name = "Chrome";
- }
- case 193:
- {
- name = "Slamin";
- }
- }
- return name;
- }
- stock SetPlayerSpawn(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- DeletePVar(playerid, "OPD");
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- if(GetPVarInt(playerid, "SpecOff") == 1)
- {
- SetPlayerPos(playerid, GetPVarFloat(playerid, "SpecPosX"), GetPVarFloat(playerid, "SpecPosY"), GetPVarFloat(playerid, "SpecPosZ"));
- SetPlayerInterior(playerid, GetPVarInt(playerid, "SpecInt"));
- SetPlayerVirtualWorld(playerid, GetPVarInt(playerid, "SpecVW"));
- DeletePVar(playerid, "SpecOff");
- return 1;
- }
- if(PlayerInfo[playerid][pTut] == 0)
- {
- TogglePlayerControllable(playerid,0);
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- SetPlayerPos(playerid, 766.50, -1684.32, -6.86);
- SetPlayerCameraPos(playerid, 751.93, -1673.95, 16.01);
- SetPlayerCameraLookAt(playerid, 699.55, -1628.93, 5.88);
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_ONE, DIALOG_STYLE_MSGBOX, "{FFA500}Registration", "{FFFFFF}What do you want your character's gender to be?", "Male", "Female");
- SetPlayerVirtualWorld(playerid, 70707);
- return 1;
- }
- if(AdminDuty[playerid] == 1)
- {
- SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"AdminDeathVW"));
- SetPlayerInterior(playerid, GetPVarInt(playerid,"AdminDeathInt"));
- DeletePVar(playerid, "AdminDeathVW");
- DeletePVar(playerid, "AdminDeathInt");
- SetPlayerHealth(playerid, 100);
- ClearAnimations(playerid);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 1)
- {
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 6);
- PlayerInfo[playerid][pVW] = 20002;
- PlayerInfo[playerid][pInt] = 6;
- SetPlayerVirtualWorld(playerid, 20002);
- SetPlayerPos(playerid,263.343597, 77.532028, 1001.039062);
- ResetPlayerWeaponsEx(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete jail sentence, back to jail you go.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 2)
- {
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 1);
- PlayerInfo[playerid][pVW] = 1324123;
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerVirtualWorld(playerid, 1324123);
- SetPlayerPos(playerid,315.1677,-1451.5564,-33.5292);
- ResetPlayerWeaponsEx(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete jail sentence, back to jail you go.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 3)
- {
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 69);
- PlayerInfo[playerid][pVW] = 696969;
- PlayerInfo[playerid][pInt] = 69;
- SetPlayerVirtualWorld(playerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(playerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- ResetPlayerWeaponsEx(playerid);
- SetPlayerColor(playerid, TEAM_APRISON_COLOR);
- SetPlayerSkin(playerid, 50);
- new string[128];
- format(string, sizeof(string), "You're in prison because you were prisoned by %s, reason: %s", PlayerInfo[playerid][pPrisonedBy], PlayerInfo[playerid][pPrisonReason]);
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] == 4)
- {
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 69);
- PlayerInfo[playerid][pVW] = 696969;
- PlayerInfo[playerid][pInt] = 69;
- SetPlayerVirtualWorld(playerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(playerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- ResetPlayerWeaponsEx(playerid);
- SetPlayerColor(playerid, TEAM_ORANGE_COLOR);
- SetPlayerSkin(playerid, 50);
- return 1;
- }
-
- if(Dueling[playerid] != INVALID_PLAYER_ID)
- {
- SetPlayerWeapons(playerid);
- SetPlayerPos(playerid, GetPVarFloat(playerid, "dlx"), GetPVarFloat(playerid, "dly"), GetPVarFloat(playerid, "dlz"));
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "dlhealth"));
- SetPlayerArmourEx(playerid, GetPVarFloat(playerid, "dlarmour"));
- SetPlayerInterior(playerid, GetPVarInt(playerid, "dlint"));
- SetPlayerWeaponsEx(Dueling[playerid]);
- Dueling[playerid] = INVALID_PLAYER_ID;
- SetPlayerWeaponsEx(playerid);
- return 1;
- }
- if(Hunted[playerid] == 1)
- {
- SetPlayerWeapons(playerid);
- SetPlayerPos(playerid, GetPVarFloat(playerid, "alx"), GetPVarFloat(playerid, "aly"), GetPVarFloat(playerid, "alz"));
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "alhealth"));
- SetPlayerArmourEx(playerid, GetPVarFloat(playerid, "alarmour"));
- SetPlayerInterior(playerid, GetPVarInt(playerid, "alint"));
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SetPlayerWeaponsEx(playerid);
- Hunted[playerid] = 0;
- AllHunt = 0;
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") == 1 && GetPVarInt(playerid, "PBM") < 1)
- {
- SendEMSQueue(playerid,1);
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0) {
- GivePlayerValidAdminWeapon(playerid, 24, 99999);
- GivePlayerValidAdminWeapon(playerid, 27, 99999);
- GivePlayerValidAdminWeapon(playerid, 29, 99999);
- GivePlayerValidAdminWeapon(playerid, 31, 99999);
- GivePlayerValidAdminWeapon(playerid, 34, 99999);
- if(GetPVarType(playerid, "PBMT") != 0) {
- switch(GetPVarType(playerid, "PBMT")) {
- case 0: SetPlayerColor(playerid, 0xFFFF0000);
- case 1: SetPlayerColor(playerid, 0x33CCFF00);
- }
- }
- switch(GetPVarInt(playerid, "PBM")) {
- case 1: { // dm lv warehouse
- SetPlayerPos(playerid, 1059.895996, 2081.685791, 10.820312);
- SetPlayerInterior(playerid, 0); // just for clarity
- SetPlayerVirtualWorld(playerid, 60);
- }
- case 2: { // dm random warehouse
- SetPlayerPos(playerid, 1283.287841, 5.694778, 1001.011779);
- SetPlayerInterior(playerid, 18);
- SetPlayerVirtualWorld(playerid, 61);
- }
- case 3: { // dm rc battlefield
- SetPlayerPos(playerid, -975.975708, 1060.983032, 1345.671875);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 62);
- }
- case 4: { // tdm lv warehouse
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 63);
- if(gaPaintballGameNextTeam[0] == 0) {
- SetPlayerPos(playerid, 1068.6324, 2082.7930, 10.8203);
- SetPlayerFacingAngle(playerid, 359.9999);
- } else {
- SetPlayerPos(playerid, 1069.3499, 2127.0828, 10.8203);
- SetPlayerFacingAngle(playerid, 181.4610);
- }
- }
- case 5: { // tdm random warehouse
- SetPlayerInterior(playerid, 18);
- SetPlayerVirtualWorld(playerid, 64);
- if(gaPaintballGameNextTeam[1] == 0) {
- SetPlayerPos(playerid, 1305.5143, 3.6555, 1001.0269);
- SetPlayerFacingAngle(playerid, 0);
- } else {
- SetPlayerPos(playerid, 1252.7601,-46.6263,1001.0282);
- SetPlayerFacingAngle(playerid, 133.2679);
- }
- }
- case 6: { // tdm rc battlefield
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 65);
- if(gaPaintballGameNextTeam[2] == 0) {
- SetPlayerPos(playerid, -1128.8225, 1057.4939, 1346.4141);
- SetPlayerFacingAngle(playerid, 260);
- } else {
- SetPlayerPos(playerid, -976.2924, 1061.0496, 1345.6719);
- SetPlayerFacingAngle(playerid, 90);
- }
- }
- case 7: { // dm Death Arena
- SetPlayerPos(playerid, 2020.721557,-2504.503906,1022.186950);
- SetPlayerInterior(playerid, 1);
- SetPlayerVirtualWorld(playerid, 0);
- }
- case 8: { // tdm
- SetPlayerInterior(playerid, 1);
- SetPlayerVirtualWorld(playerid, 0);
- if(gaPaintballGameNextTeam[3] == 0) {
- SetPlayerPos(playerid, 1750.824462,-1896.36669,1060.747314);
- SetPlayerFacingAngle(playerid, 260);
- } else {
- SetPlayerPos(playerid, 1718.805175,-1839.844238,1060.749633);
- SetPlayerFacingAngle(playerid, 90);
- }
- }
- }
-
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") == 1) {
- DeletePVar(playerid, "EventToken");
- SetPlayerWeapons(playerid);
- SetPlayerPos(playerid,EventFloats[playerid][1],EventFloats[playerid][2],EventFloats[playerid][3]);
- //PlayerInfo[playerid][pInterior] = PlayerInfo[playerid][pInt];
- SetPlayerVirtualWorld(playerid, EventLastVW[playerid]);
- SetPlayerFacingAngle(playerid, EventFloats[playerid][0]);
- SetPlayerInterior(playerid,EventLastInt[playerid]);
- SetPlayerHealth(playerid, EventFloats[playerid][4]);
- SetPlayerArmourEx(playerid, EventFloats[playerid][5]);
- for(new i = 0; i < 6; i++)
- {
- EventFloats[playerid][i] = 0.0;
- }
- EventLastVW[playerid] = 0;
- EventLastInt[playerid] = 0;
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") == 1)
- {
- if(EventKernel[EventType] == 4)
- {
- SetPlayerPos(playerid, EventKernel[ EventPositionX ], EventKernel[ EventPositionY ], EventKernel[ EventPositionZ ] );
- SetPlayerInterior(playerid, EventKernel[ EventInterior ] );
- SetPlayerVirtualWorld(playerid, EventKernel[ EventWorld ] );
- SendClientMessageEx(playerid, COLOR_WHITE, "You are a zombie! Use /bite to infect others");
- SetPlayerHealth(playerid, 30);
- SetPlayerArmour(playerid, 0);
- SetPlayerSkin(playerid, 134);
- SetPlayerColor(playerid, 0x0BC43600);
- SetPVarInt(playerid, "pEventZombie", 1);
- return 1;
- }
- else
- {
- DeletePVar(playerid, "EventToken");
- SetPlayerWeapons(playerid);
- SetPlayerPos(playerid,EventFloats[playerid][1],EventFloats[playerid][2],EventFloats[playerid][3]);
- //PlayerInfo[playerid][pInterior] = PlayerInfo[playerid][pInt];
- SetPlayerVirtualWorld(playerid, EventLastVW[playerid]);
- SetPlayerFacingAngle(playerid, EventFloats[playerid][0]);
- SetPlayerInterior(playerid,EventLastInt[playerid]);
- SetPlayerHealth(playerid, EventFloats[playerid][4]);
- SetPlayerArmour(playerid, EventFloats[playerid][5]);
- for(new i = 0; i < 6; i++)
- {
- EventFloats[playerid][i] = 0.0;
- }
- EventLastVW[playerid] = 0;
- EventLastInt[playerid] = 0;
- return 1;
- }
- }
- for(new i; i < sizeof(EventKernel[EventStaff]); i++)
- {
- if(EventKernel[EventStaff][i] == playerid)
- {
- SetPlayerWeapons(playerid);
- SetPlayerPos(playerid,EventFloats[playerid][1],EventFloats[playerid][2],EventFloats[playerid][3]);
- //PlayerInfo[playerid][pInterior] = PlayerInfo[playerid][pInt];
- SetPlayerVirtualWorld(playerid, EventLastVW[playerid]);
- SetPlayerFacingAngle(playerid, EventFloats[playerid][0]);
- SetPlayerInterior(playerid,EventLastInt[playerid]);
- SetPlayerHealth(playerid, EventFloats[playerid][4]);
- SetPlayerArmourEx(playerid, EventFloats[playerid][5]);
- for(new d = 0; d < 6; d++)
- {
- EventFloats[playerid][d] = 0.0;
- }
- EventLastInt[playerid] = 0;
- EventLastVW[playerid] = 0;
- EventKernel[EventStaff][i] = 999;
- }
- }
- if(GetPVarInt(playerid, "MedicBill") == 1 && PlayerInfo[playerid][pJailed] == 0) {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Before you're discharged, hospital staff will confiscate your weapons.");
- PlayerInfo[playerid][pDuty] = 0;
- PlayerInfo[playerid][pVW] = 0;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- ResetPlayerWeapons(playerid);
- if(GetPVarInt(playerid, "EventToken") != 1)
- ResetPlayerWeaponsEx(playerid);
- SetPVarInt(playerid, "MedicBill", 1);
- SetPlayerInterior(playerid, 0);
- new string[70+MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pInsurance] == 1)
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " The police has been warned that you're wanted and they are on their way.");
- format(string, sizeof(string), " All Saints Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- SendRadioMessage(10, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
- SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
- SetPlayerPos(playerid, 1188.4574,-1309.2242,10.5625);
- SetPVarInt(playerid, "Hospital", 1);
- }
- else if(PlayerInfo[playerid][pInsurance] == 2)
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " The police has been warned that you're wanted and they are on their way.");
- format(string, sizeof(string), " County General Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- SendRadioMessage(10, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1999.5308,-1449.3281,13.5594+6.0);
- SetPlayerCameraLookAt(playerid,2036.2179,-1410.3223,17.1641);
- SetPlayerPos(playerid, 1999.5308,-1449.3281,10.5594);
- SetPVarInt(playerid, "Hospital", 2);
- }
- if(PlayerInfo[playerid][pInsurance] == 0)
- {
- new randhos = Random(1,3);
- switch (randhos)
- {
- case 1:
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " The police has been warned that you're wanted and they are on their way.");
- format(string, sizeof(string), " All Saints Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- SendRadioMessage(10, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
- SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
- SetPlayerPos(playerid, 1188.4574,-1309.2242,10.5625);
- SetPVarInt(playerid, "Hospital", 1);
- }
- case 2:
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " The police has been warned that you're wanted and they are on their way.");
- format(string, sizeof(string), " County General Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- SendRadioMessage(10, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1999.5308,-1449.3281,13.5594+6.0);
- SetPlayerCameraLookAt(playerid,2036.2179,-1410.3223,17.1641);
- SetPlayerPos(playerid, 1999.5308,-1449.3281,10.5594);
- SetPVarInt(playerid, "Hospital", 2);
- }
- }
- }
- TogglePlayerControllable(playerid, 0);
- SetPlayerHealth(playerid, 0.5);
- SetPVarInt(playerid, "HospitalTimer", 30);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_HOSPITALTIMER);
- return 1;
- }
- if(GetPVarInt(playerid, "Hospital") == 0)
- {
- SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
- //PlayerInfo[playerid][pInterior] = PlayerInfo[playerid][pInt];
- SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVW]);
- SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetPlayerArmourEx(playerid, PlayerInfo[playerid][pArmor]);
- SetCameraBehindPlayer(playerid);
- if(PlayerInfo[playerid][pInt] > 0)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- }
- else
- {
- PlayerInfo[playerid][pDuty] = 0;
- PlayerInfo[playerid][pVW] = 0;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- if(GetPVarInt(playerid, "EventToken") != 1)
- ResetPlayerWeaponsEx(playerid);
- SetPVarInt(playerid, "MedicBill", 1);
- new string[70+MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pInsurance] == 1)
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "The police have been informed of your current location and are on their way.");
- format(string, sizeof(string), " All Saints Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1999.5308,-1449.3281,13.5594+6.0);
- SetPlayerCameraLookAt(playerid,2036.2179,-1410.3223,17.1641);
- SetPlayerPos(playerid, 1999.5308,-1449.3281,10.5594);
- SetPVarInt(playerid, "Hospital", 2);
- }
- else if(PlayerInfo[playerid][pInsurance] == 2)
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "The police have been informed of your current location and are on their way.");
- format(string, sizeof(string), " County General Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
- SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
- SetPlayerPos(playerid, 1188.4574,-1309.2242,10.5625);
- SetPVarInt(playerid, "Hospital", 1);
- }
- if(PlayerInfo[playerid][pInsurance] == 0)
- {
- new randhos = Random(1,3);
- switch(randhos)
- {
- case 1:
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " The police has been warned that you're wanted and they are on their way.");
- format(string, sizeof(string), " All Saints Hospital Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
- SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
- SetPlayerPos(playerid, 1188.4574,-1309.2242,10.5625); // Warp the player
- SetPVarInt(playerid, "Hospital", 2);
- }
- case 2:
- {
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, " The police has been warned that you're wanted and they are on their way.");
- format(string, sizeof(string), " County General Hospital has reported %s as a wanted person.", GetPlayerNameEx(playerid));
- SendRadioMessage(1, DEPTRADIO, string);
- SendRadioMessage(2, DEPTRADIO, string);
- }
- SetPlayerCameraPos(playerid,1999.5308,-1449.3281,13.5594+6.0);
- SetPlayerCameraLookAt(playerid,2036.2179,-1410.3223,17.1641);
- SetPlayerPos(playerid, 1999.5308,-1449.3281,10.5594);
- SetPVarInt(playerid, "Hospital", 1);
- }
- }
- }
- TogglePlayerControllable(playerid, 0);
- SetPlayerHealth(playerid, 0.5);
- SetPVarInt(playerid, "HospitalTimer", 30);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_HOSPITALTIMER);
- }
- new Float: x, Float: y, Float: z;
- GetPlayerPos(playerid, x, y, z);
- if(x == 0.0 && y == 0.0)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, 1773.459350, -1942.273437, 13.569922);
- SetPlayerFacingAngle(playerid, 329.64);
- SetCameraBehindPlayer(playerid);
- }
- SetPlayerToTeamColor(playerid);
- return 1;
- }
- return 1;
- }
- stock Log(sz_fileName[], sz_input[]) {
- new
- sz_logEntry[156],
- i_dateTime[2][3],
- File: fileHandle = fopen(sz_fileName, io_append);
- gettime(i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2]);
- getdate(i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2]);
- format(sz_logEntry, sizeof(sz_logEntry), "[%i/%i/%i - %i:%i:%i] %s\r\n", i_dateTime[1][0], i_dateTime[1][1], i_dateTime[1][2], i_dateTime[0][0], i_dateTime[0][1], i_dateTime[0][2], sz_input);
- fwrite(fileHandle, sz_logEntry);
- return fclose(fileHandle);
- }
- IsNumeric(const string[])
- {
- for (new i = 0, j = strlen(string); i < j; i++)
- {
- if(string[i] > '9' || string[i] < '0') return 0;
- }
- return 1;
- }
- ReturnUser(text[]) {
- new
- strPos,
- returnID = 0,
- bool: isnum = true;
- while(text[strPos]) {
- if(isnum) {
- if('0' <= text[strPos] <= '9') returnID = (returnID * 10) + (text[strPos] - '0');
- else isnum = false;
- }
- strPos++;
- }
- if(isnum) {
- if(IsPlayerConnected(returnID)) return returnID;
- }
- else {
- new
- sz_playerName[MAX_PLAYER_NAME];
- foreach(Player, i) {
- GetPlayerName(i, sz_playerName, MAX_PLAYER_NAME);
- if(!strcmp(sz_playerName, text, true, strPos)) return i;
- }
- }
- return INVALID_PLAYER_ID;
- }
- stock InvalidNameCheck(playerid)
- {
- new
- szPlayerName[MAX_PLAYER_NAME],
- arrForbiddenNames[][] = {
- "com1", "com2", "com3", "com4",
- "com5", "com6", "com7", "com8",
- "com9", "lpt4", "lpt5", "lpt6",
- "lpt7", "lpt8", "lpt9", "nul",
- "clock$", "aux", "prn", "con",
- "InvalidNick", "BannedPlayer"
- },
- iLength,
- i;
- GetPlayerName(playerid, szPlayerName, sizeof(szPlayerName));
- iLength = strlen(szPlayerName);
- while(i < sizeof(arrForbiddenNames)) if(strcmp(arrForbiddenNames[i++], szPlayerName, true) == 0) {
- SetPlayerName(playerid, "InvalidNick");
- SendClientMessage(playerid, COLOR_NEWS, "You have been kicked for using an invalid name.");
- Kick(playerid);
- return 0;
- }
- if(szPlayerName[iLength - 1] == '_' || szPlayerName[0] == '_' || strfind(szPlayerName, "_", false) == -1)
- {
- SendClientMessage(playerid, COLOR_NEWS, "You have been kicked for failing to connect with a role play name (i.e. John_Smith).");
- SetPlayerName(playerid, "InvalidNick");
- Kick(playerid);
- return 0;
- }
- return 1;
- }
- stock SendBugMessage(member, color, string[])
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pFaction] == member && gBug[i] == 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- stock SendRadioMessage(member, color, string[])
- {
- foreach(Player, i) {
- if(PlayerInfo[i][pFaction] == member) {
- SendClientMessage(i, color, string);
- }
- /*if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 4 && BigEarFaction[i] == member) {
- new szAntiprivacy[128];
- format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s", string);
- SendClientMessage(i, color, szAntiprivacy);
- }*/
- }
- }
- stock CrewRadioBroadCast(family, color, string[])
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pCrew1] == family || PlayerInfo[i][pCrew2] == family || PlayerInfo[i][pCrew3] == family)
- {
- SendClientMessageEx(i, color, string);
- }
- }
- }
- stock SendFamilyMessage(family, color, string[])
- {
- foreach(Player, i) {
- if(PlayerInfo[i][pFaction] == family || PlayerInfo[i][pLeader] == family) {
- if(!gFam[i]) {
- SendClientMessage(i, color, string);
- }
- }
- }
- }
- stock RadioBroadCast(playerid, string[])
- {
- new MiscString[128], Float: aaaPositions[3];
- foreach(Player, i)
- {
- if(PlayerInfo[i][pRadioFreq] == PlayerInfo[playerid][pRadioFreq] && PlayerInfo[i][pRadio] >= 1 && gRadio[i] != 0)
- {
- GetPlayerPos(i, aaaPositions[0], aaaPositions[1], aaaPositions[2]);
- format(MiscString, sizeof(MiscString), "** Radio (%d kHz) ** %s: %s", PlayerInfo[playerid][pRadioFreq], GetPlayerNameEx(playerid), string);
- SendClientMessage(i, PUBLICRADIO_COLOR, MiscString);
- format(MiscString, sizeof(MiscString), "(radio) %s", string);
- SetPlayerChatBubble(playerid,MiscString,COLOR_WHITE,15.0,5000);
- }
- }
- }
- stock SendJobMessage(job, color, string[])
- {
- foreach(Player, i) {
- if((PlayerInfo[i][pJob] == job || PlayerInfo[i][pJob2] == job) && JobDuty[i] == 1) {
- SendClientMessage(i, color, string);
- }
- }
- }
- stock SendTaxiMessage(color, string[])
- {
- foreach(Player, i) {
- if(TransportDuty[i] == 1 && (PlayerInfo[i][pJob] == 17 || PlayerInfo[i][pJob2] == 17))
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- stock SendBusMessage(color, string[])
- {
- foreach(Player, i) {
- if(TransportDuty[i] == 2 && (PlayerInfo[i][pJob] == 17 || PlayerInfo[i][pJob2] == 17))
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- stock SendNewFamilyMessage(family, color, string[])
- {
- foreach(Player, i) {
- if(PlayerInfo[i][pGang] == family) {
- if(!gFam[i]) {
- SendClientMessage(i, color, string);
- }
- }
- /*if(PlayerInfo[i][pAdmin] > 1 && BigEarFamily[i] == family && BigEar[i] == 5) {
- new szAntiprivacy[128];
- format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s", string);
- SendClientMessage(i, color, szAntiprivacy);
- }*/
- }
- }
- stock SetPlayerArmourEx(playerid, Float:armour)
- {
- ValidArmor[playerid] = armour;
- SetPlayerArmour(playerid, armour);
- return 1;
- }
- stock SendClientMessageEx(playerid, color, string[])
- {
- if(InsideMainMenu[playerid] == 1 || InsideTut[playerid] == 1 || ActiveChatbox[playerid] == 0)
- return 0;
- else SendClientMessage(playerid, color, string);
- return 1;
- }
- stock ICNews(color, string[]) {
- foreach(Player, i) {
- if(gNews[i] == 0)
- SendClientMessageEx(i, color, string);
- }
-
- return 1;
- }
- stock SendClientMessageToAllEx(color, string[])
- {
- foreach(Player, i) {
- if(InsideMainMenu[i] == 1 || InsideTut[i] == 1 || ActiveChatbox[i] == 0) {}
- else SendClientMessage(i, color, string);
- }
- return 1;
- }
- stock ShowMainMenuGUI(playerid) {
- InsideMainMenu[playerid] = 1;
- new string[22];
- format(string, sizeof(string), "Players online: %d", Iter_Count(Player));
- TextDrawSetString(MainMenuTxtdraw[11], string);
- for(new i = 0; i < 14; i++) {
- TextDrawShowForPlayer(playerid, MainMenuTxtdraw[i]);
- }
- return 1;
- }
- stock HideMainMenuGUI(playerid) {
- InsideMainMenu[playerid] = 0;
- ActiveChatbox[playerid] = 1;
- for(new i = 0; i < 14; i++) {
- TextDrawHideForPlayer(playerid, MainMenuTxtdraw[i]);
- }
- return 1;
- }
- stock ShowMainMenuDialog(playerid, frame) {
- new
- string[180];
- switch(frame) {
- case 1: {
- format(string, sizeof(string), "{FFFFFF}That username is registered, please enter your password below.\n\n{FFA500}Username: {FFFFFF}%s\n\n{FFA500}Password:", GetPlayerNameEx(playerid));
- ShowPlayerDialogEx(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,"{FFA500}Login {FFA500}[www.Serenity]",string,"Login","Quit");
- }
- case 2: {
- format(string, sizeof(string), "{FFFFFF}You may register this username by entering your desired password below.\n\n{FFA500}Username: {FFFFFF}%s\n\n{FFA500}Choose a Password:", GetPlayerNameEx(playerid));
- ShowPlayerDialogEx(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,"{FFA500}Registration {FFA500}[www.Serenity]",string,"Register","Quit");
- }
- case 3: {
- format(string, sizeof(string), "{FFFFFF}Wrong password.\n\n{FFFFFF}That username is registered, please enter your password below.\n\n{FFA500}Username: {FFFFFF}%s\n\n{FFA500}Password:", GetPlayerNameEx(playerid));
- ShowPlayerDialogEx(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,"{FFA500}Login {FFA500}[www.Serenity]",string,"Login","Quit");
- }
- }
- return 1;
- }
- forward BackupClear(playerid, calledbytimer);
- public BackupClear(playerid, calledbytimer)
- {
- if(IsPlayerConnected(playerid))
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)
- {
- if(Backup[playerid] == 1)
- {
- foreach(Player, i)
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, TEAM_HIT_COLOR);
- }
- }
- SetPlayerToTeamColor(playerid);
- if(calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your backup request has been cleared.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your backup request has been cleared automatically.");
- }
- Backup[playerid] = 0;
- }
- else
- {
- if(calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have an active backup request!");
- }
- }
- }
- else
- {
- if(calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / Coastguard!");
- }
- }
- }
- return 1;
- }
- forward fBackupClear(playerid, calledbytimer);
- public fBackupClear(playerid, calledbytimer)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pGang] < 255)
- {
- if(fBackup[playerid] == 1)
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang])
- {
- SetPlayerMarkerForPlayer(i, playerid, TEAM_HIT_COLOR);
- }
- }
- SetPlayerToTeamColor(playerid);
- if(calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your backup request has been cleared.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your backup request has been cleared automatically.");
- }
- fBackup[playerid] = 0;
- }
- else
- {
- if(calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have an active backup request!");
- }
- }
- }
- else
- {
- if(calledbytimer != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not in a Family!");
- }
- }
- }
- return 1;
- }
- forward ClearDrugs(playerid);
- public ClearDrugs(playerid)
- {
- UsedWeed[playerid] = 0;
- UsedCrack[playerid] = 0;
- return 1;
- }
- stock HelperBroadcast(color, string[], level) {
- foreach(Player, i) {
- if(PlayerInfo[i][pHelper] >= level && GetPVarInt(i, "cschat") == 0) {
- SendClientMessage(i, color, string);
- }
- }
- return 1;
- }
- stock ABroadCast(color,string[],level)
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= level || PlayerInfo[i][pFormer] == 1)
- {
- SendClientMessage(i, color, string);
- //printf("%s", string);
- }
- }
- return 1;
- }
- stock VACMessage(color,string[],level)
- {
- foreach(Player, i)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSecretAdmin] >= 1)
- {
- if(VirtualAntiCheat[playerid] == 1)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- return 1;
- }
- stock ExecuteNOPAction(playerid)
- {
- new string[128];
- new newcar = GetPlayerVehicleID(playerid);
- if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; }
- NOPTrigger[playerid]++;
- RemovePlayerFromVehicle(playerid);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z+2);
- NOPCheck(playerid);
- if(NOPTrigger[playerid] > 1)
- {
- new sec = (NOPTrigger[playerid] * 5000)/1000-1;
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may be NOP hacking - restricted vehicle (model %d) for %d seconds.", GetPlayerNameEx(playerid), playerid, GetVehicleModel(newcar),sec);
- ABroadCast(COLOR_YELLOW, string, 2);
- }
- return 1;
- }
- stock SetPlayerToTeamColor(playerid) {
- if(GetPVarInt(playerid, "PBM") > 0) {
- if(GetPVarType(playerid, "PBMT") != 0) {
- switch(GetPVarType(playerid, "PBMT")) {
- case 0: SetPlayerColor(playerid, 0xFFFF0000);
- case 1: SetPlayerColor(playerid, 0x33CCFF00);
- }
- }
- else if(GetPVarType(playerid, "pEventZombie"))
- {
- SetPlayerColor(playerid, 0x0BC43600);
- }
- return 1;
- }
- if((PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17) && TransportDuty[playerid] != 0)
- {
- SetPlayerColor(playerid,TEAM_TAXI_COLOR);
- }
- else
- {
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- }
-
- if(GetPVarInt(playerid, "DonatorColor") == 0)
- {
- SetPlayerColor(playerid, COLOR_LIGHTSLATEGRAY);
- }
- else
- {
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- }
- if(PlayerInfo[playerid][pDonatorColor] > 1)
- {
- SetPlayerColor(playerid, COLOR_LIGHTSLATEGRAY);
- }
- else
- {
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- }
- if(PlayerInfo[playerid][pWantedLevel] > 5)
- {
- SetPlayerColor(playerid,WANTED_COLOR);
- }
- if(PlayerInfo[playerid][pJailed] == 3)
- {
- SetPlayerColor(playerid,TEAM_APRISON_COLOR);
- return 1;
- }
- else if(PlayerInfo[playerid][pJailed] == 4)
- {
- SetPlayerColor(playerid,TEAM_ORANGE_COLOR);
- return 1;
- }
- else
- {
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- }
- if(IsACop(playerid))
- {
- if(PlayerInfo[playerid][pDuty] == 1)
- {
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pLeader] == 1)
- {
- SetPlayerColor(playerid,TEAM_BLUE_COLOR);
- }
- else if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- SetPlayerColor(playerid,TEAM_ARES_COLOR);
- }
- else if(PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- SetPlayerColor(playerid,COLOR_ORANGE);
- }
- else if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- SetPlayerColor(playerid,TEAM_FBI_COLOR);
- }
- else
- {
- SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
- }
- }
- else
- {
- SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
- }
- }
- else
- {
- if((PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3) && PlayerInfo[playerid][pDuty] == 1) {
- SetPlayerColor(playerid, TEAM_MED_COLOR);
- }
- else if((PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) && PlayerInfo[playerid][pDuty] == 1) {
- SetPlayerColor(playerid,TEAM_NEWS_COLOR);
- }
- else if((PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10) && PlayerInfo[playerid][pDuty] == 1) {
- SetPlayerColor(playerid,TEAM_ARES_COLOR);
- }
- else if((PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11) && PlayerInfo[playerid][pDuty] == 1) {
- SetPlayerColor(playerid,COLOR_ORANGE);
- }
- else SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
- }
- return 1;
- }
- stock ShowBackpack(targetid)
- {
- if(IsPlayerConnected(targetid))
- {
- new string[128], string2[128];
- new pot = PlayerInfo[targetid][pBPPot];
- new crack = PlayerInfo[targetid][pBPCrack];
- new cash = PlayerInfo[targetid][pBPCash];
- format(string2, sizeof(string2), "%s's Backpack", GetPlayerNameEx(targetid));
- format(string, sizeof(string), "{FFFF00}Pot:\t{FFFFFF}%d\n{FFFF00}Crack:\t{FFFFFF}%d\n{FFFF00}Cash:\t{FFFFFF}$%d", pot, crack, cash);
- ShowPlayerDialogEx(targetid, BACKPACK2, DIALOG_STYLE_MSGBOX, string2, string, "Close", "");
- }
- }
- stock ShowStats(playerid,targetid)
- {
- if(IsPlayerConnected(targetid))
- {
- new facgang[20], employer[64], rank[64], division[64], jtext[20], jtext2[20];
- new level = PlayerInfo[targetid][pLevel];
- new phours = PlayerInfo[targetid][pConnectTime];
- new respect = PlayerInfo[targetid][pRespect];
- new nxtlevel = PlayerInfo[targetid][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- new costlevel = nxtlevel*2500;
- new pnumber = PlayerInfo[targetid][pNumber];
- new warns = PlayerInfo[targetid][pWarns];
- facgang = "Faction";
- employer = "None";
- rank = "None";
- if(PlayerInfo[targetid][pGang] < 255)
- {
- facgang = "Family"; division = "None";
- format(employer, sizeof(employer), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyName]);
- switch(PlayerInfo[targetid][pRank])
- {
- case 1: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank1]);
- case 2: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank2]);
- case 3: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank3]);
- case 4: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank4]);
- case 5: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank5]);
- case 6: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank6]);
- default: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[targetid][pGang]][FamilyRank1]);
- }
- }
- else GetPlayerFactionInfo(targetid, rank, division, employer);
- switch(PlayerInfo[targetid][pJob])
- {
- case 1: jtext = "Detective";
- case 2: jtext = "Lawyer";
- case 3: jtext = "Whore";
- case 4: jtext = "Drugs Dealer";
- case 5: jtext = "Car Jacker";
- //case 6: jtext = "News Reporter";
- case 7: jtext = "Car Mechanic";
- case 8: jtext = "Bodyguard";
- case 9: jtext = "Arms Dealer";
- //case 10: jtext = "Car Dealer";
- case 12: jtext = "Boxer";
- case 14: jtext = "Drug Smuggler";
- //case 15: jtext = "Paper Boy";
- //case 16: jtext = "Trucker";
- case 17: jtext = "Taxi Driver";
- case 18: jtext = "Craftsman";
- case 19: jtext = "Bartender";
- case 20: jtext = "Trucker";
- case 21: jtext = "Pizza Boy";
- case 22: jtext = "Garbage Man";
- case 23: jtext = "Miner";
- default: jtext = "None";
- }
- switch(PlayerInfo[targetid][pJob2])
- {
- case 1: jtext2 = "Detective";
- case 2: jtext2 = "Lawyer";
- case 3: jtext2 = "Whore";
- case 4: jtext2 = "Drugs Dealer";
- case 5: jtext2 = "Car Jacker";
- //case 6: jtext2 = "News Reporter";
- case 7: jtext2 = "Car Mechanic";
- case 8: jtext2 = "Bodyguard";
- case 9: jtext2 = "Arms Dealer";
- //case 10: jtext2 = "Car Dealer";
- case 12: jtext2 = "Boxer";
- case 14: jtext2 = "Drug Smuggler";
- //case 15: jtext2 = "Paper Boy";
- //case 16: jtext2 = "Trucker";
- case 17: jtext2 = "Taxi Driver";
- case 18: jtext2 = "Craftsman";
- case 19: jtext2 = "Bartender";
- case 20: jtext2 = "Trucker";
- case 21: jtext2 = "Pizza Boy";
- case 22: jtext = "Garbage Man";
- case 23: jtext = "Miner";
- default: jtext2 = "None";
- }
- new jlevel;
- switch(PlayerInfo[targetid][pJob])
- {
- case 1:
- {
- new skilllevel = PlayerInfo[targetid][pDetSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 2:
- {
- new skilllevel = PlayerInfo[targetid][pLawSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 3:
- {
- new skilllevel = PlayerInfo[targetid][pSexSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 4:
- {
- new skilllevel = PlayerInfo[targetid][pDrugsSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 5:
- {
- new skilllevel = PlayerInfo[targetid][pCarSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 7:
- {
- new skilllevel = PlayerInfo[targetid][pMechSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 9:
- {
- new skilllevel = PlayerInfo[targetid][pArmsSkill];
- if(skilllevel >= 0 && skilllevel < 50) { jlevel = 1; }
- else if(skilllevel >= 50 && skilllevel < 100) { jlevel = 2; }
- else if(skilllevel >= 100 && skilllevel < 200) { jlevel = 3; }
- else if(skilllevel >= 200 && skilllevel < 400) { jlevel = 4; }
- else if(skilllevel >= 400) { jlevel = 5; }
- }
- case 12:
- {
- new skilllevel = PlayerInfo[targetid][pBoxSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 14:
- {
- new skilllevel = PlayerInfo[targetid][pSmugSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- /*case 18:
- {
- new skilllevel = PlayerInfo[targetid][pCraftSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }*/
- case 20:
- {
- new skilllevel = PlayerInfo[targetid][pTruckSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- default: jlevel = 0;
- }
- new jlevel2;
- switch(PlayerInfo[targetid][pJob2])
- {
- case 1:
- {
- new skilllevel = PlayerInfo[targetid][pDetSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 2:
- {
- new skilllevel = PlayerInfo[targetid][pLawSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 3:
- {
- new skilllevel = PlayerInfo[targetid][pSexSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 4:
- {
- new skilllevel = PlayerInfo[targetid][pDrugsSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 5:
- {
- new skilllevel = PlayerInfo[targetid][pCarSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 7:
- {
- new skilllevel = PlayerInfo[targetid][pMechSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 9:
- {
- new skilllevel = PlayerInfo[targetid][pArmsSkill];
- if(skilllevel >= 0 && skilllevel < 50) { jlevel2 = 1; }
- else if(skilllevel >= 50 && skilllevel < 100) { jlevel2 = 2; }
- else if(skilllevel >= 100 && skilllevel < 200) { jlevel2 = 3; }
- else if(skilllevel >= 200 && skilllevel < 400) { jlevel2 = 4; }
- else if(skilllevel >= 400) { jlevel2 = 5; }
- }
- case 12:
- {
- new skilllevel = PlayerInfo[targetid][pBoxSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- case 14:
- {
- new skilllevel = PlayerInfo[targetid][pSmugSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- /*case 18:
- {
- new skilllevel = PlayerInfo[targetid][pCraftSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }*/
- case 20:
- {
- new skilllevel = PlayerInfo[targetid][pTruckSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- default: jlevel2 = 0;
- }
- new upgrade = PlayerInfo[targetid][gPupgrade];
- new Float:sarmor = PlayerInfo[targetid][pSarmor];
- new cash = GetPlayerCash(targetid);
- new bank = PlayerInfo[targetid][pBank];
- new totalwealth = cash + bank;
- new insur[20];
- new backpack[20];
- switch(PlayerInfo[targetid][pInsurance])
- {
- case 1: insur = "All Saints";
- case 2: insur = "County General";
- default: insur = "None";
- }
-
- switch(PlayerInfo[targetid][pBackpack])
- {
- case 1: backpack = "Large";
- case 2: backpack = "Medium";
- case 3: backpack = "Small";
- default: backpack = "None";
- }
- new crimes = PlayerInfo[targetid][pCrimes];
- new arrests = PlayerInfo[targetid][pArrested];
- new wanted = PlayerInfo[targetid][pWantedLevel];
- new Float:health, Float:armor;
- GetPlayerHealth(targetid,health);
- GetPlayerArmour(targetid,armor);
- new pot = PlayerInfo[targetid][pPot];
- new crack = PlayerInfo[targetid][pCrack];
- new packages = GetPVarInt(targetid, "Packages");
- new crates = PlayerInfo[targetid][pCrates];
- new radiofreq = PlayerInfo[targetid][pRadioFreq];
- new mats = PlayerInfo[targetid][pMats];
- new rope = PlayerInfo[targetid][pRope];
- new cigars = PlayerInfo[targetid][pCigar];
- new sprunk = PlayerInfo[targetid][pSprunk];
- new spray = PlayerInfo[targetid][pSpraycan];
- new bigfish = PlayerInfo[targetid][pBiggestFish];
- // Eight line (admin only)
- new house = PlayerInfo[targetid][pHouse];
- //new house2 = PlayerInfo[targetid][pHouse2];
- new rent = PlayerInfo[targetid][pRenting];
- new interior = PlayerInfo[targetid][pInt];
- new vw = PlayerInfo[targetid][pVW];
- new realvw = GetPlayerVirtualWorld(targetid);
- new jtime = PlayerInfo[targetid][pJailTime];
- // Added
- new married[20];
- strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
- //new screwdrivers = PlayerInfo[targetid][pScrewdriver];
- new reftokens = PlayerInfo[targetid][pRefTokens];
- new sext[16];
- if(PlayerInfo[targetid][pSex] == 1) { sext = "Male"; } else { sext = "Female"; }
- new age = PlayerInfo[targetid][pAge];
-
- new donatortxt[16];
- if(PlayerInfo[targetid][pDonator] == 0) { donatortxt = "No"; }
- else if(PlayerInfo[targetid][pDonator] == 1) { donatortxt = "Ruby"; }
- else if(PlayerInfo[targetid][pDonator] == 2) { donatortxt = "Sapphire"; }
- else if(PlayerInfo[targetid][pDonator] == 3) { donatortxt = "Diamond"; }
- else { donatortxt = "No"; }
-
- new nmutes = PlayerInfo[targetid][pNMuteTotal];
- new admutes = PlayerInfo[targetid][pADMuteTotal];
- new rmutes = PlayerInfo[targetid][pRMutedTotal];
- SendClientMessage(playerid, COLOR_NEWS,"___________________________________________________________________________________________________");
- new coordsstring[128];
- format(coordsstring, sizeof(coordsstring),"%s - (Level: %d) - (Playing hours: %d) - (Gender: %s) - (Age: %d) - (Phone number: %d) - (Warnings: %d)", GetPlayerNameEx(targetid), level, phours, sext, age, pnumber, warns);
- SendClientMessage(playerid, COLOR_WHITE, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(%s: %s) - (Rank: %s [%d]) - (Division: %s) - (Job: %s [lvl: %d]) - (Job 2: %s [lvl: %d])", facgang, employer, rank, PlayerInfo[targetid][pRank], division, jtext, jlevel, jtext2, jlevel2);
- SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Total wealth: $%s) - (Cash: $%s) - (Bank balance: $%s) - (Insurance: %s) - (Married to: %s)", Comma(totalwealth), Comma(cash), Comma(bank), insur, married);
- SendClientMessage(playerid, COLOR_WHITE, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Respect points: %d/%d [$%d]) - (Upgrade Points: %d) - (Spawn armor: %.1f) - (Health: %.1f) - (Armor: %.1f) - (Radio: %d) ", respect, expamount, costlevel, upgrade, sarmor, health, armor, radiofreq);
- SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Crimes: %d) - (Arrests: %d) - (Wanted Level: %d) - (Materials: %s) - (Pot: %d) - (Crack: %d) - (Packages: %d) - (Crates: %d)", crimes, arrests, wanted, Comma(mats), pot, crack, packages, crates);
- SendClientMessage(playerid, COLOR_WHITE, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Rope: %d) - (Cigars: %d) - (Sprunk: %d) - (Spray: %d) - (Biggest fish: %d) - (Referral Tokens: %d) - (Donator: %s)", rope, cigars, sprunk, spray, bigfish, reftokens, donatortxt);
- SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(coordsstring, sizeof(coordsstring), "(House: %d) - (Renting: %d) - (Int: %d) - (VW: %d) - (Real VW: %d) - (Jail: %d secs) - (Mutes: [N: %d] [AD: %d] [R: %d])", house, rent, interior, vw, realvw, jtime, nmutes, admutes, rmutes);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- if(PlayerInfo[targetid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1)
- {
- format(coordsstring, sizeof(coordsstring), "Accepted reports: %d | Trashed reports: %d", PlayerInfo[targetid][pAcceptReport], PlayerInfo[targetid][pTrashReport]);
- SendClientMessage(playerid, COLOR_FORSTATS,coordsstring);
- }
-
- /*new tabbed[4];
- if(playerTabbedTime[targetid] > 0) tabbed = "Yes";
- else tabbed = "No";
- new afk[4];
- if(playerAFK[targetid] != 0 && playerAFKTime[targetid] > 0) afk = "Yes";
- else afk = "No";
- format(coordsstring, sizeof(coordsstring), "(Alt-tabbed: %s [%d secs]) - (AFK: %s [%d secs])", tabbed, playerTabbedTime[targetid], afk, playerAFKTime[targetid]);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);*/
- }
- SendClientMessage(playerid, COLOR_NEWS,"___________________________________________________________________________________________________");
- }
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- //if(!success) SendClientMessageEx(playerid, COLOR_GREY, "{FFFFFF}That command does not exist. You can use {FFA500}/help{FFFFFF} to see a list of commands or {FFA500}/gethelp{FFFFFF} for further help.");
- if(!success)
- {
- TextDrawShowForPlayer(playerid, Textdraw0z);
- TextDrawShowForPlayer(playerid, Textdraw1z);
- TextDrawShowForPlayer(playerid, Textdraw2z);
- TextDrawShowForPlayer(playerid, Textdraw3z);
- SetTimerEx("unknowncommand", 5000, false, "i", playerid);
- }
- return 1;
- }
- public OnPlayerCommandReceived(playerid, cmdtext[])
- {
- playerLastTyped[playerid] = 0;
- printf("[cmd] [%s]: %s", GetPlayerNameEx(playerid), cmdtext);
- if(gPlayerLogged[playerid] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You're not logged in.");
- return 0;
- }
- if(GetPVarInt(playerid, "LoadingObjects") == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this right now.");
- return 0;
- }
- if(PlayerInfo[playerid][pTut] == 0)
- return 1;
- // (TEMPORARY - Howard NOTE)
- /*if(PlayerInfo[playerid][pMuted] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't speak, you have been silenced!");
- return 0;
- }*/
- if(CommandSpamUnmute[playerid] != 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're muted from submitting commands right now.");
- return 0;
- }
- }
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- CommandSpamTimes[playerid]++;
- if(CommandSpamTimes[playerid] == 10)
- {
- CommandSpamTimes[playerid] = 0;
- CommandSpamUnmute[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "You have been muted automatically for spamming. Please wait 10 seconds and try again.");
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION);
- return 0;
- }
- }
- if(strfind(cmdtext, "|", true) != -1)
- {
- SendClientMessage(playerid, COLOR_RED, "You can't use the '|' character in commands.");
- return 0;
- }
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- if(strfind(cmdtext, ":", true) != -1)
- {
- new
- i_numcount,
- i_period,
- i_pos;
- while(cmdtext[i_pos]) {
- if('0' <= cmdtext[i_pos] <= '9') i_numcount++;
- else if(cmdtext[i_pos] == '.') i_period++;
- i_pos++;
- }
- if(i_numcount >= 8 && i_period >= 3) {
- new string[128];
- format(string,sizeof(string),"Warning: %s may be server advertising: '%s'.", GetPlayerNameEx(playerid),cmdtext);
- ABroadCast(COLOR_PINK, string, 2);
- Log("logs/hack.log", string);
- return 0;
- }
- }
- }
- return 1;
- }
- public OnPlayerLeaveGangZone(playerid, zone)
- {
- InTurf[playerid] = -1;
- PlayerTextDrawSetString(playerid, Textdraw1s[playerid], "Neutral");
- PlayerTextDrawColor(playerid, Textdraw1s[playerid], COLOR_WHITE);
- PlayerTextDrawHide(playerid, Textdraw1s[playerid]);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- if(PlayerInfo[playerid][pGang] < 255)
- {
- FamilyInfo[PlayerInfo[playerid][pGang]][FamilyInTurf]--;
- if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 0)
- {
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- foreach(Player, i)
- {
- if(InTurf[i] == InTurf[playerid])
- {
- SetPlayerMarkerForPlayer(i, playerid, TEAM_HIT_COLOR);
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterGangZone(playerid, zone)
- {
- new string[128];
- if(zone == TurfsInfo[0][TurfID])
- {
- InTurf[playerid] = 0;
- }
- else if(zone == TurfsInfo[1][TurfID])
- {
- InTurf[playerid] = 1;
- }
- else if(zone == TurfsInfo[2][TurfID])
- {
- InTurf[playerid] = 2;
- }
- else if(zone == TurfsInfo[3][TurfID])
- {
- InTurf[playerid] = 3;
- }
- else if(zone == TurfsInfo[4][TurfID])
- {
- InTurf[playerid] = 4;
- }
- else if(zone == TurfsInfo[5][TurfID])
- {
- InTurf[playerid] = 5;
- }
- else if(zone == TurfsInfo[6][TurfID])
- {
- InTurf[playerid] = 6;
- }
- else if(zone == TurfsInfo[7][TurfID])
- {
- InTurf[playerid] = 7;
- }
- else if(zone == TurfsInfo[8][TurfID])
- {
- InTurf[playerid] = 8;
- }
- else if(zone == TurfsInfo[9][TurfID])
- {
- InTurf[playerid] = 9;
- }
- else
- {
- InTurf[playerid] = -1;
- }
- if(TurfsInfo[InTurf[playerid]][TurfsGang] != 255)
- {
- new hex, str[32];
- format(str, sizeof(str), "%x", FamilyInfo[TurfsInfo[InTurf[playerid]][TurfsGang]][FamilyColor]);
- sscanf(str, "x", hex);
- format(string, sizeof(string), "%s", FamilyInfo[TurfsInfo[InTurf[playerid]][TurfsGang]][FamilyName]);
- PlayerTextDrawColor(playerid, Textdraw1s[playerid], hex);
- PlayerTextDrawSetString(playerid, Textdraw1s[playerid], string);
- PlayerTextDrawHide(playerid, Textdraw1s[playerid]);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- }
- else
- {
- PlayerTextDrawSetString(playerid, Textdraw1s[playerid], "Neutral");
- PlayerTextDrawColor(playerid, Textdraw1s[playerid], -1);
- PlayerTextDrawHide(playerid, Textdraw1s[playerid]);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- }
-
- if(TurfsInfo[InTurf[playerid]][TurfsDoing] == 1)
- {
- if(PlayerInfo[playerid][pGang] < 255)
- {
- if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 0)
- {
- foreach(Player, i)
- {
- if(InTurf[i] == InTurf[playerid])
- {
- SetPlayerColor(playerid, FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor]);
- SetPlayerMarkerForPlayer(i, playerid, FamilyInfo[PlayerInfo[i][pGang]][FamilyColor]);
- }
- }
- }
- }
- }
-
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang])
- {
- if(InTurf[i] == InTurf[playerid])
- {
- FamilyInfo[PlayerInfo[i][pGang]][FamilyInTurf]++;
- }
- }
- }
- return 1;
- }
- CMD:turfsedithoursforall(playerid, params[])
- {
- new turf = InTurf[playerid];
- if(turf == -1) return SCM(playerid, COLOR_GRAD2, "You are not in a turf.");
-
- TurfsInfo[turf][TurfsHours] = 1;
- return 1;
- }
- CMD:setplayeralwayswingamble(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- new id;
- if(sscanf(params, "u", id)) return SCM(playerid, -1, "USAGE: /setplayeralwayswingamble [playerid]");
- SCM(playerid, -1, "Only works if the player has /accept dicebet.");
- if(IsPlayerConnected(id))
- {
- if(IsCheatingDC[id] == 0)
- {
- IsCheatingDC[id] = 1;
- }
- else
- {
- IsCheatingDC[id] = 0;
- }
- }
- }
- return 1;
- }
- CMD:fmotd(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SCM(playerid, COLOR_GREY, "You are not in a Gang!");
- return 1;
- }
-
- new string[128];
- format(string, 128, "Family MOTD: %s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyMOTD]);
- SCM(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:facmotd(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 0)
- {
- SCM(playerid, COLOR_GREY, "You are not in a faction!");
- return 1;
- }
- new string[128];
- if(PlayerInfo[playerid][pFaction] == 1)
- format(string, 128, "LSPD MOTD: %s", LSPDmotd);
- else if(PlayerInfo[playerid][pFaction] == 2)
- format(string, 128, "FBI MOTD: %s", FBImotd);
- else if(PlayerInfo[playerid][pFaction] == 10)
- format(string, 128, "ARES MOTD: %s", ARESmotd);
- else if(PlayerInfo[playerid][pFaction] == 11)
- format(string, 128, "SASD MOTD: %s", SASDmotd);
- else if(PlayerInfo[playerid][pFaction] == 3)
- format(string, 128, "FMD MOTD: %s", FMDmotd);
- SCM(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:editfacmotd(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] > 0 || PlayerInfo[playerid][pLeader] > 0)
- {
- if(PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] >= 1)
- {
- if(!isnull(params))
- {
- if(PlayerInfo[playerid][pFaction] == 1)
- format(LSPDmotd, sizeof(LSPDmotd), "%s", params);
- else if(PlayerInfo[playerid][pFaction] == 2)
- format(FBImotd, sizeof(FBImotd), "%s", params);
- else if(PlayerInfo[playerid][pFaction] == 10)
- format(ARESmotd, sizeof(ARESmotd), "%s", params);
- else if(PlayerInfo[playerid][pFaction] == 11)
- format(SASDmotd, sizeof(SASDmotd), "%s", params);
- else if(PlayerInfo[playerid][pFaction] == 3)
- format(FMDmotd, sizeof(FMDmotd), "%s", params);
-
- Misc_Save();
- }
- else return SCM(playerid, -1, "USAGE: /editfacmotd [message]");
- }
- else return SCM(playerid, -1, "You are not authorized to use this command!");
- }
- else return SCM(playerid, COLOR_GRAD2, "You are not in any factions.");
- return 1;
- }
- /*CMD:movedoor(playerid, params[])
- {
- if(PlayerInfo[playerid][pLand] >= 1)
- {
- new obj;
- for(new b = 1; b < MAX_OBJ; b++)
- {
- if(ObjectInfo[b][objModel] != 0)
- {
- new Float:fy, Float:fx, Float:fz;
- GetObjectPos(ObjectInfo[b][oDoor], fx, fy, fz);
- if(IsPlayerInRangeOfPoint(playerid, 3.0, fx, fy, fz))
- {
- obj = b;
- break;
- }
- }
- }
-
- new Float:nx, Float:ny, Float:nz;
-
- if(ObjectInfo[obj][oDLock] == 0)
- {
- GetObjectRot(ObjectInfo[obj][oDoor], nx, ny, nz);
- SetObjectRot(ObjectInfo[obj][oDoor], nx, ny, -180.0);
- ObjectInfo[obj][oDLock] = 1;
- SCM(playerid, -1, "You have opened your land door.");
- }
- else if(ObjectInfo[obj][oDLock] == 1)
- {
- SetObjectRot(ObjectInfo[obj][oDoor], nx, ny, -90.0);
- ObjectInfo[obj][oDLock] = 0;
- SCM(playerid, -1, "You have closed your land door.");
- }
- }
- return 1;
- }
- CMD:movedoor(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pFaction] == 10)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 9391.490234, -2717.333007, 826.277465))
- {
- if(ARES1status == 0)
- {
- SetObjectRot(ARES1, 0.0, 0.0, 90);
- ARES1status = 1;
- }
- else
- {
- SetObjectRot(ARES1, 0.0, 0.0, 0);
- ARES1status = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 9397.961914, -2717.343750, 826.277465))
- {
- if(ARES2status == 0)
- {
- SetObjectRot(ARES2, 0.0, 0.0, 90);
- ARES2status = 1;
- }
- else
- {
- SetObjectRot(ARES2, 0.0, 0.0, 0);
- ARES2status = 0;
- }
- }
- }
- else return SCM(playerid, COLOR_GREY, "You are not a cop!");
- return 1;
- }*/
-
-
- CMD:lands(playerid, params[])
- {
- ShowPlayerDialogEx(playerid, LANDS, DIALOG_STYLE_LIST, "Lands - Select an option", "Buy land\nEdit land\nSell land", "Select", "Close");
- return 1;
- }
- CMD:resetclaimgiftforplayer(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] == 7)
- {
- new id;
- if(sscanf(params, "u", id)) return SCM(playerid, -1, "USAGE: /resetclaimgiftforplayer [playerid]");
- if(IsPlayerConnected(id))
- {
- PlayerInfo[id][pClaim] = 1;
- }
- }
- return 1;
- }
- CMD:togturfs(playerid, params[])
- {
- if(GetPVarInt(playerid, "TurfsTD") == 0)
- {
- TextDrawShowForPlayer(playerid, Textdraw0s);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- SetPVarInt(playerid, "TurfsTD", 1);
- }
- else if(GetPVarInt(playerid, "TurfsTD") == 1)
- {
- TextDrawHideForPlayer(playerid, Textdraw0s);
- PlayerTextDrawHide(playerid, Textdraw1s[playerid]);
- SetPVarInt(playerid, "TurfsTD", 0);
- }
- return 1;
- }
- CMD:businessmenu(playerid, params[])
- {
- if(PlayerInfo[playerid][pBizID] == 0) return SCM(playerid, COLOR_GREY, "You don't own a biz!");
- if(InsideBiz[playerid] != PlayerInfo[playerid][pBizID]) return SCM(playerid, COLOR_GREY, "You are not inside your business!");
- ShowPlayerDialogEx(playerid, 5215, DIALOG_STYLE_LIST, "Business Menu", "Change store name\nChange name\nBalance", "Select", "Close");
- /*BusinessInfo[PlayerInfo[playerid][pBizID]][bName] = name;
- SCM(playerid, COLOR_YELLOW, "Business name changed!");
- new strs[142];
- new id = PlayerInfo[playerid][pBizID];
- format(strs, 142, "%s\nOwner: %s\nType: %s\nID: %d", BusinessInfo[id][bName], BusinessInfo[id][bOwner], BusinessType(id), id);
- UpdateDynamic3DTextLabelText(BusinessInfo[id][bText], COLOR_REALRED, strs);*/
- return 1;
- }
- CMD:sellbusiness(playerid, params[])
- {
- new string[128];
- new id = PlayerInfo[playerid][pBizID];
- if(PlayerInfo[playerid][pBizID] == 0) return SCM(playerid, COLOR_GREY, "You don't own a biz!");
- BusinessInfo[id][bOwned] = 0;
- BusinessInfo[id][bOwner] = 0;
- BusinessInfo[id][bLocked] = 0;
- GivePlayerCash(playerid, BusinessInfo[id][bPrice]);
- PlayerInfo[playerid][pBizID] = 0;
- SCM(playerid, COLOR_YELLOW, "Business sold!");
- format(string, sizeof(string), "This business is for sale!\nType: %s\nPrice: $%d\nID: %d", BusinessType(id), BusinessInfo[id][bPrice], id);
- UpdateDynamic3DTextLabelText(BusinessInfo[id][bText], COLOR_REALRED, string);
- return 1;
- }
- CMD:buybusiness(playerid, params[])
- {
- new id = IsPlayerNearBizEnt(playerid);
- if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not near a biz");
- if(BusinessInfo[id][bOwned] != 0 || BusinessInfo[id][bPrice] == 0) return SendClientMessage(playerid, COLOR_GREY, "This biz is not for sale.");
- if(PlayerInfo[playerid][pCash] < BusinessInfo[id][bPrice]) return SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, you can not afford this biz.");
- PlayerInfo[playerid][pBizID] = id;
- GivePlayerCash(playerid, -BusinessInfo[id][bPrice]);
- BusinessInfo[id][bLocked] = 0;
- BusinessInfo[id][bOwned] = 1;
- BusinessInfo[id][bOwner] = GetPlayerNameEx(playerid);
- new strs[142];
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations on your new biz! Use /bizhelp to get help, or /newb!");
- format(strs, 142, "%s\nOwner: %s (%d)", BusinessInfo[id][bName], BusinessInfo[id][bOwner], id);
- UpdateDynamic3DTextLabelText(BusinessInfo[id][bText], COLOR_REALRED, strs);
- return 1;
- }
- CMD:asellbusiness(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] <= 5)
- {
- return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- new id;
- if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_GREY, "YCMD: /deletebiz [id]");
- if(BusinessInfo[id][bOwned] == 0) return SCM(playerid, COLOR_GREY, "This biz is not owned.");//Checks if the biz is owned, if it is it won't allow it to be deleted.
- BusinessInfo[id][bOwned] = 0;
- BusinessInfo[id][bOwner] = 0;
- BusinessInfo[id][bLocked] = 0;
- format(BusinessInfo[id][bOwner], MAX_PLAYER_NAME, "None");
- new string[128];
- format(string, sizeof(string), "This business is for sale!\nType: %s\nPrice: $%d\nID: %d", BusinessType(id), BusinessInfo[id][bPrice], id);
- UpdateDynamic3DTextLabelText(BusinessInfo[id][bText], COLOR_REALRED, string);
- return 1;
- }
- CMD:deletebiz(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] <= 5)
- {
- return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- new id;
- if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_GREY, "YCMD: /deletebiz [id]");
- if(BusinessInfo[id][bOwned] == 1) return SCM(playerid, COLOR_GREY, "This biz is owned.");//Checks if the biz is owned, if it is it won't allow it to be deleted.
- //Below it resets all the biz enum info.
- BusinessInfo[id][bOwned] = 0;
- BusinessInfo[id][bPrice] = 0;
- BusinessInfo[id][bOwner] = 0;
- BusinessInfo[id][bType] = 0;
- BusinessInfo[id][bLocked] = 0;
- BusinessInfo[id][bName] = 0;
- BusinessInfo[id][bMoney] = 0;
- BusinessInfo[id][bEntranceX] = 0;
- BusinessInfo[id][bEntranceY] = 0;
- BusinessInfo[id][bEntranceZ] = 0;
- BusinessInfo[id][bEntranceA] = 0;
- BusinessInfo[id][bExitX] = 0;
- BusinessInfo[id][bExitY] = 0;
- BusinessInfo[id][bExitZ] = 0;
- BusinessInfo[id][bExitA] = 0;
- BusinessInfo[id][bInt] = 0;
- BusinessInfo[id][bWorld] = 0;
- if(BusinessInfo[id][bOutsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bOutsideIcon]);//Destroys the pickup.
- if(BusinessInfo[id][bText]) DestroyDynamic3DTextLabel(BusinessInfo[id][bText]);//Destroys the pickup.
- new string[128];
- format(string, sizeof(string), BPATH, id);
- fremove(string);
- return 1;
- }
- IsPlayerNearBizEnt(playerid)
- {
- for(new b = 1; b < sizeof(BusinessInfo); b++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, BusinessInfo[b][bEntranceX], BusinessInfo[b][bEntranceY], BusinessInfo[b][bEntranceZ])) return b;
- }
- return -1;
- }
- IsPlayerNearLand(playerid)
- {
- for(new b = 1; b < sizeof(LandsInfo); b++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10.0, LandsInfo[b][pos_X], LandsInfo[b][pos_Y], LandsInfo[b][pos_Z])) return b;
- }
- return -1;
- }
- stock LandType(l)// creates a stock.
- {
- new string[30];
- switch(LandsInfo[l][lType])//You should know what switch is.
- {
- case 3: string = "Large";
- case 2: string = "Medium";
- case 1: string = "Small";
- default: string = "Undefined";
- }
- return string;
- }
- stock BusinessType(b)// creates a stock.
- {
- new string[30];
- switch(BusinessInfo[b][bType])//You should know what switch is.
- {
- case 6: string = "Bar";
- case 5: string = "Club";
- case 4: string = "Advertisement";
- case 3: string = "Ammunation";
- case 2: string = "Clothes Shop";
- case 1: string = "24/7";
- default: string = "Undefined";
- }
- return string;
- }
- /*CMD:createland(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- new price, type, id, string[128];
- if(sscanf(params, "dd", price, type)) return SCM(playerid, -1, "USAGE: /createland [price] [type]");
-
- if(price < 10000) return SCM(playerid, COLOR_WHITE, "Price must be above $10,000.");
- for(new h = 1;h < sizeof(LandsInfo);h++)//Loops through all the businesses
- {
- if(LandsInfo[h][lType] == 0)//Checks if the price of a business is 0.
- {
- id = h;
- break;//It stops looping if it is.
- }
- }
-
- LandsInfo[id][lPrice] = price;
- LandsInfo[id][lType] = type;
- LandsInfo[id][lOwned] = 0;
- format(LandsInfo[id][lOwner], MAX_PLAYER_NAME, "Nobody");
- GetPlayerPos(playerid, LandsInfo[id][pos_X], LandsInfo[id][pos_Y], LandsInfo[id][pos_Z]);
- if(LandsInfo[id][lIcon]) DestroyDynamicPickup(LandsInfo[id][lIcon]);
- LandsInfo[id][lIcon] = CreateDynamicPickup(19523, 1, LandsInfo[id][pos_X], LandsInfo[id][pos_Y], LandsInfo[id][pos_Z], 0);//Creates a pickup at your location
- format(string, sizeof(string), "This land is for sale! (%d)\nPrice: $%s\nType: %s", id, Comma(LandsInfo[id][lPrice]), LandType(id));
- LandsInfo[id][lText] = CreateDynamic3DTextLabel(string, COLOR_REALRED, LandsInfo[id][pos_X], LandsInfo[id][pos_Y], LandsInfo[id][pos_Z]+0.5, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, -1, -1, -1, -1, 10.0);
-
- format(string, sizeof(string), "You have created a land. (ID: %d | Price: $%s | Type: %s)", id, Comma(price), LandType(id));
- SCM(playerid, -1, string);
- new file4[40];
- format(file4, sizeof(file4), LPATH, id);
- new INI:File = INI_Open(file4);
- INI_SetTag(File,"data");
- INI_WriteInt(File,"lOwned", LandsInfo[id][lOwned]);
- INI_WriteInt(File,"lPrice", LandsInfo[id][lPrice]);
- INI_WriteString(File,"lOwner", LandsInfo[id][lOwner]);
- INI_WriteInt(File,"lType", LandsInfo[id][lType]);
- INI_WriteFloat(File,"pos_X", LandsInfo[id][pos_X]);
- INI_WriteFloat(File,"pos_Y", LandsInfo[id][pos_Y]);
- INI_WriteFloat(File,"pos_Z", LandsInfo[id][pos_Z]);
- INI_WriteInt(File,"lObjectCount", LandsInfo[id][lObjectCount]);
- INI_Close(File);
- }
- else SCM(playerid, -1, NOTAUTH);
- return 1;
- }*/
- CMD:createland(playerid, params[])
- {
- return SCM(playerid, -1, "This command is not available yet!");
- }
-
- CMD:createbusiness(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] <= 5)
- {
- return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- new price, level, id, int, world, string[128], Float:Xi, Float:Yi, Float:Zi, inti;//All the new defines we will need.
- if(sscanf(params, "dddfff", price, level, inti, Xi, Yi, Zi)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /createbiz [price] [type] [interior] [X] [Y] [Z] = (1) 24/7 (2) Clothes Shop (3) Gun Shop (4) Advertisement (5) Club (6) Bar ");//d stands for integer, f stands for float.
- if(level < 0 || level > 10) return SendClientMessage(playerid, COLOR_GREY, "Type cannot go below 0, or above 10.");//
- if(price < 10000) return SendClientMessage(playerid, COLOR_GREY, " Price cannot go below $10,000.");// Check if the price is below 1000, if it is it will return a message saying it.
- for(new h = 1;h < sizeof(BusinessInfo);h++)//Loops through all the businesses
- {
- if(BusinessInfo[h][bPrice] == 0)//Checks if the price of a business is 0.
- {
- id = h;
- break;//It stops looping if it is.
- }
- }
- new Float:X,Float:Y,Float:Z,Float:A;//More new defines.
- GetPlayerPos(playerid, X, Y, Z);//Gets your player position, and saves it into floats.
- GetPlayerFacingAngle(playerid, A);//Gets your facing angle, and saves it into a float.
- int = GetPlayerInterior(playerid);//Gets your interior, and saves it into a integer.
- world = GetPlayerVirtualWorld(playerid);//Gets your Virtual World, and saves it into a integer
- BusinessInfo[id][bInsideInt] = inti;
- BusinessInfo[id][bExitX] = Xi;
- BusinessInfo[id][bExitY] = Yi;
- BusinessInfo[id][bExitZ] = Zi;
- BusinessInfo[id][bLocked] = 0;
- BusinessInfo[id][bOwned] = 0;
- BusinessInfo[id][bPrice] = price;
- BusinessInfo[id][bType] = level;
- GetPlayerPos(playerid, BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bEntranceZ]);
- BusinessInfo[id][bInt] =int;
- BusinessInfo[id][bWorld] =world;
- BusinessInfo[id][bInsideWorld] =id;
- format(string, sizeof(string), "None");
- strmid(BusinessInfo[id][bName], string, 0, strlen(string), 255);
- format(string, sizeof(string), "None");
- strmid(BusinessInfo[id][bOwner], string, 0, strlen(string), 255);
- format(string, sizeof(string), "None");
- strmid(BusinessInfo[id][bIT], string, 0, strlen(string), 255);
- format(string, sizeof(string), "This business is for sale!\nType: %s\nPrice: $%d\nID: %d", BusinessType(id), BusinessInfo[id][bPrice], id);
- if(BusinessInfo[id][bOutsideIcon]) DestroyDynamicPickup(BusinessInfo[id][bOutsideIcon]);
- BusinessInfo[id][bOutsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bEntranceZ], BusinessInfo[id][bWorld]);//Creates a pickup at your location
- BusinessInfo[id][bText] = CreateDynamic3DTextLabel(string, COLOR_REALRED, BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bEntranceZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- new file4[40];
- format(file4, sizeof(file4), BPATH, id);
- new INI:File = INI_Open(file4);
- INI_SetTag(File,"data");
- INI_WriteInt(File,"bOwned", BusinessInfo[id][bOwned]);
- INI_WriteInt(File,"bPrice", BusinessInfo[id][bPrice]);
- INI_WriteString(File,"bOwner", BusinessInfo[id][bOwner]);
- INI_WriteInt(File,"bType", BusinessInfo[id][bType]);
- INI_WriteInt(File,"bLocked", BusinessInfo[id][bLocked]);
- INI_WriteInt(File,"bMoney", BusinessInfo[id][bMoney]);
- INI_WriteFloat(File,"bEntranceX", BusinessInfo[id][bEntranceX]);
- INI_WriteFloat(File,"bEntranceY", BusinessInfo[id][bEntranceY]);
- INI_WriteFloat(File,"bEntranceZ", BusinessInfo[id][bEntranceZ]);
- INI_WriteFloat(File,"bEntranceA", BusinessInfo[id][bEntranceA]);
- INI_WriteFloat(File,"bExitX", BusinessInfo[id][bExitX]);
- INI_WriteFloat(File,"bExitY", BusinessInfo[id][bExitY]);
- INI_WriteFloat(File,"bExitZ", BusinessInfo[id][bExitZ]);
- INI_WriteFloat(File,"bExitA", BusinessInfo[id][bExitA]);
- INI_WriteInt(File,"bInt", BusinessInfo[id][bInt]);
- INI_WriteInt(File,"bWorld", BusinessInfo[id][bWorld]);
- INI_WriteInt(File,"bInsideInt", BusinessInfo[id][bInsideInt]);
- INI_WriteInt(File,"bInsideWorld", BusinessInfo[id][bInsideWorld]);
- INI_WriteString(File,"bName", BusinessInfo[id][bName]);
- INI_Close(File);
- return 1;
- }
- CMD:createfire(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] > 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 8)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new Float:x, Float:y, Float:z, Float:a;
- GetXYInFrontOfPlayer(playerid, x, y, z, a, 2.5);
- AddFire(x, y, z);
- SendClientMessage(playerid, -1, " You created a fire");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not Authorized to use that command");
- }
- return 1;
- }
- CMD:announcefire(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] > 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 8)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new zone[28], string[128];
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
- format(string, sizeof(string), "** All Fireman theres a fire at %s", zone);
- SendRadioMessage(3, TEAM_MED_COLOR, string);
- format(string, sizeof(string), "You announced to the Los Santos Fire&Medic Department (LSFMD) that there's a fire at %s", zone);
- SendClientMessage(playerid, TEAM_MED_COLOR, string);
- foreach(Player, i)
- {
- if(IsInLSFMD(i))
- {
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not Authorized to use that command");
- }
- return 1;
- }
- CMD:destroyfire(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] > 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 8)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- for(new i; i < MAX_FLAMES; i++)
- {
- KillFire(i);
- }
- SendClientMessage(playerid, COLOR_WHITE, " You have deleted the fires");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not Authorized to use that command");
- }
- return 1;
- }
- /*CMD:owner(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_CRIMSON, "_______{FFA500}SERVER OWNER{FFA500}_______");
- SendClientMessage(playerid, COLOR_PINK, "Owner and Co - Owner");
- SendClientMessage(playerid, COLOR_RED, "Server Owner{FFFFFF} | Howard McAdam");
- SendClientMessage(playerid, COLOR_RED, "Special thanks to{FFFFFF}: Charly Mesina (https://web.facebook.com/profile.php?id=100025698540541)");
- SendClientMessage(playerid, COLOR_CRIMSON, "___________________________________________");
- return 1;
- }*/
-
-
- CMD:takepills(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] > 1)
- {
- if(PlayerInfo[playerid][pPills] == 0)
- {
- SCM(playerid, COLOR_GREY, "You don't have any pills.");
- return 1;
- }
- new result = random(2) + 1;
- new str[128];
- if(result == 1)
- {
- SetPlayerHealth(playerid, 0);
- }
- else if(result == 2)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- }
-
- format(str, sizeof(str), "* %s has used some pills.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, str, COLOR_NG,COLOR_NG,COLOR_NG,COLOR_NG,COLOR_NG);
- }
- else SCM(playerid, COLOR_GREY, "You must be atleast Sapphire Donator to use this feature.");
- return 1;
- }
- CMD:factions(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] <= 1)
- {
- return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- SCM(playerid, COLOR_YELLOW, "Factions:");
- new lspd, fbi, hma, fmd, GMA, ares, government, sasd;
- foreach(Player, i)
- {
- if(PlayerInfo[i][pFaction] == 1)
- {
- lspd++;
- }
- else if(PlayerInfo[i][pFaction] == 2)
- {
- fbi++;
- }
- else if(PlayerInfo[i][pFaction] == 3)
- {
- fmd++;
- }
- else if(PlayerInfo[i][pFaction] == 4)
- {
- hma++;
- }
- else if(PlayerInfo[i][pFaction] == 5)
- {
- government++;
- }
- else if(PlayerInfo[i][pFaction] == 9)
- {
- GMA++;
- }
- else if(PlayerInfo[i][pFaction] == 10)
- {
- ares++;
- }
- else if(PlayerInfo[i][pFaction] == 11)
- {
- sasd++;
- }
- }
- new string[128];
- format(string, sizeof(string), "1. {2641FE}Los Santos Police Department {FFFFFF}| Leader: %s | Members Online: %d.", pdleader, lspd);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "2. {8D8DFF}Federal Bureu of Investigation {FFFFFF}| Leader: %s | Members Online: %d.", fbileader, fbi);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "3. {FF8282}Los Santos Fire & Medical Department {FFFFFF}| Leader: %s | Members Online: %d.", fmdleader, fmd);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "4. Hitman Agency {FFFFFF}| Leader: Secret | Members Online: %d.", hma);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "5. Los Santos Government {FFFFFF}| Leader: %s | Members Online: %d.", governmentleader, government);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "6. {049C71}San Andreas News {FFFFFF}| Leader: %s | Members Online: %d.", GMAleader, GMA);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "7. {1C77B3}Ares Defence Solution {FFFFFF}| Leader: %s | Members Online: %d.", aresleader, ares);
- SCM(playerid, -1, string);
- format(string, sizeof(string), "8. {FF8C00}San Andreas Sheriff Department {FFFFFF}| Leader: %s | Members Online: %d.", sasdleader, sasd);
- SCM(playerid, -1, string);
- return 1;
- }
-
- CMD:setwepres(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- new string[128], id, hrs;
- if(sscanf(params, "ud", id, hrs)) return SCM(playerid, -1, "USAGE: /setwepres [playerid/partofname] [hours]");
- if(IsPlayerConnected(id))
- {
- format(string, sizeof(string), "Admin %s has set your wep restriction to %d.", GetPlayerNameEx(playerid), hrs);
- SCM(id, -1, string);
- format(string, sizeof(string), "You have set %s's wep restriction to %d..", GetPlayerNameEx(id), hrs);
- SCM(playerid, -1, string);
- PlayerInfo[id][pWepRes] = hrs;
- format(string, sizeof(string), "AdmCmd: %s has set %s's weapon restriction to '%d'.", GetPlayerNameEx(playerid), GetPlayerNameEx(id), hrs);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- else return SCM(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else return SCM(playerid, COLOR_GREY, "You are not authorized to use this command!");
- return 1;
- }
- CMD:setformeradmin(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new string[128], id;
- if(sscanf(params, "u", id)) return SCM(playerid, -1, "USAGE: /setformeradmin [playerid/partofname]");
- if(IsPlayerConnected(id))
- {
- if(PlayerInfo[id][pFormer] == 0)
- {
- format(string, sizeof(string), "You have been set to former admin tag by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have set %s to Former Admin tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pFormer] = 1;
- }
- else
- {
- format(string, sizeof(string), "Your former admin tag has been revoked by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have revoked %s's former admin tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pFormer] = 0;
- }
- }
- else return SCM(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else return SCM(playerid, COLOR_GREY, "You are not authorized to use this command!");
- return 1;
- }
- CMD:setoldschool(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new string[128], id;
- if(sscanf(params, "u", id)) return SCM(playerid, -1, "USAGE: /setoldschool [playerid/partofname]");
- if(IsPlayerConnected(id))
- {
- if(PlayerInfo[id][pOS] == 0)
- {
- format(string, sizeof(string), "You have been set to Old School tag by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have set %s to Old School tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pOS] = 1;
- }
- else
- {
- format(string, sizeof(string), "Your Old School tag has been revoked by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have revoked %s's Old School tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pOS] = 0;
- }
- }
- else return SCM(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else return SCM(playerid, COLOR_GREY, "You are not authorized to use this command!");
- return 1;
- }
- CMD:setvintage(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new string[128], id;
- if(sscanf(params, "u", id)) return SCM(playerid, -1, "USAGE: /setvintage [playerid/partofname]");
- if(IsPlayerConnected(id))
- {
- if(PlayerInfo[id][pVintage] == 0)
- {
- format(string, sizeof(string), "You have been set to Vintage tag by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have set %s to Vintage tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pVintage] = 1;
- }
- else
- {
- format(string, sizeof(string), "Your Vintage tag has been revoked by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have revoked %s's Vintage tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pVintage] = 0;
- }
- }
- else return SCM(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else return SCM(playerid, COLOR_GREY, "You are not authorized to use this command!");
- return 1;
- }
- CMD:setfamed(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new string[128], id;
- if(sscanf(params, "u", id)) return SCM(playerid, -1, "USAGE: /setfamed [playerid/partofname]");
- if(IsPlayerConnected(id))
- {
- if(PlayerInfo[id][pFamed] == 0)
- {
- format(string, sizeof(string), "You have been set to Famed tag by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have set %s to Famed tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pFamed] = 1;
- }
- else
- {
- format(string, sizeof(string), "Your Famed tag has been revoked by %s.", GetPlayerNameEx(playerid));
- SCM(id, -1, string);
- format(string, sizeof(string), "You have revoked %s's Famed tag.", GetPlayerNameEx(id));
- SCM(playerid, -1, string);
- PlayerInfo[id][pFamed] = 0;
- }
- }
- else return SCM(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else return SCM(playerid, COLOR_GREY, "You are not authorized to use this command!");
- return 1;
- }
- CMD:wepres(playerid, params[])
- {
- if(PlayerInfo[playerid][pWepRes] == 0)
- return SCM(playerid, -1, "You currently don't have an admin wep restriction.");
- new string[128];
- format(string, sizeof(string), "You are weapon restricted for the next %d hours.", PlayerInfo[playerid][pWepRes]);
- SCM(playerid, -1, string);
- return 1;
- }
- /*CMD:bm(playerid, params[]) return cmd_blackmarket(playerid, params);
- CMD:blackmarket(playerid, params[])
- {
- if(PlayerInfo[playerid][pGunRes]> 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to take weapons while having gun restriction!");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] <1)
- {
- SendClientMessage(playerid, COLOR_LIGHTSLATEGRAY, "You need a donator package to access this blackmarket.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,3,-20.229053,17.140705,467.120300) || IsPlayerInRangeOfPoint(playerid,3,1040.369995,-1409.241210,-6.406630))
- {
- if(PlayerInfo[playerid][pDonator] >= 1)
- ShowPlayerDialogEx(playerid, 7483, DIALOG_STYLE_LIST, "Blackmarket's Menu", "Donator Guns\nDonator Clothes\nDonator Toys\nDonator Jobs", "Select", "Cancel");
- }
- else
- SendClientMessage(playerid, COLOR_GRAD1, "You're not inside in the Blackmarket!");
- return 1;
- }*/
- CMD:bm(playerid, params[]) return cmd_blackmarket(playerid, params);
- CMD:blackmarket(playerid, params[])
- {
-
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- return SendClientMessage(playerid, COLOR_LIGHTSLATEGRAY, "You need a donator package to access this market.");
- }
- if(IsPlayerInRangeOfPoint(playerid,3,-20.229053,17.140705,467.120300) || IsPlayerInRangeOfPoint(playerid,3,1040.369995,-1409.241210,-6.406630) || IsPlayerInRangeOfPoint(playerid,3,-4118.0459, 863.6408, 10.0257))
- {
- if(PlayerInfo[playerid][pDonator] == 2)
- {
- new string[1536] = "#\tWeapon Name\tCost", title[64];
- strcat(string, "\n1.\tHealth\t(FREE)");
- strcat(string, "\n2.\tArmor\t($500)");
- strcat(string, "\n3.\tKatana\t(FREE)");
- strcat(string, "\n4.\t9MM\t($200)");
- strcat(string, "\n5.\tSilenced Pistol\t($200)");
- strcat(string, "\n6.\tDesert Eagle\t($1000)");
- strcat(string, "\n7.\tSPAS-12\t($2000)");
- strcat(string, "\n8.\tSniper\t($1000)");
- strcat(string, "\n9.\tM4-A1\t($1000)");
- strcat(string, "\n10.\tMp5\t($700)");
- strcat(string, "\n11.\tShotgun\t($500)");
- format(title, sizeof(title), "{AAC5E3}Sapphire Donator");
- return ShowPlayerDialogEx(playerid, DIALOG_BLACKMARKET2, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Buy", "Cancel");
- //return ShowPlayerDialogEx(playerid, DIALOG_BLACKMARKET2, DIALOG_STYLE_LIST, "{AAC5E3}Sapphire Donator", "(FREE) Health\n($500) Armor\n(FREE) Katana\n($200) 9MM\n($200) Silenced Pistol\n($1000) Desert Eagle\n($2000) SPAS-12\n($2500) Sniper\n($1000) M4A1\n($700) MP5\n($500) Shotgun", "Select", "Cancel");
- }
- if(PlayerInfo[playerid][pDonator] == 3)
- {
- new string[1536] = "#\tWeapon Name\tCost", title[64];
- strcat(string, "\n1.\tHealth\t(FREE)");
- strcat(string, "\n2.\tArmor\t($500)");
- strcat(string, "\n3.\tKatana\t(FREE)");
- strcat(string, "\n4.\t9MM\t($200)");
- strcat(string, "\n5.\tSilenced Pistol\t($200)");
- strcat(string, "\n6.\tDesert Eagle\t($1000)");
- strcat(string, "\n7.\tSPAS-12\t($2000)");
- strcat(string, "\n8.\tSniper\t($1000)");
- strcat(string, "\n9.\tM4-A1\t($1000)");
- strcat(string, "\n10.\tMp5\t($700)");
- strcat(string, "\n11.\tShotgun\t($500)");
- format(title, sizeof(title), "{AAC5E3}Diamond Donator");
- return ShowPlayerDialogEx(playerid, DIALOG_BLACKMARKET2, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Buy", "Cancel");
- //return ShowPlayerDialogEx(playerid, DIALOG_BLACKMARKET2, DIALOG_STYLE_LIST, "{AAC5E3}Diamond Donator", "(FREE) Health\n($500) Armor\n(FREE) Katana\n($200) 9MM\n($200) Silenced Pistol\n($1000) Desert Eagle\n($2000) SPAS-12\n($2500) Sniper\n($1000) M4A1\n($700) MP5\n($500) Shotgun", "Select", "Cancel");
- }
- if(PlayerInfo[playerid][pDonator] == 1)
- {
- new string[1536] = "#\tWeapon Name\tCost", title[64];
- strcat(string, "\n1.\tHealth\t(FREE)");
- strcat(string, "\n2.\tArmor\t($600)");
- strcat(string, "\n3.\tKatana\t(FREE)");
- strcat(string, "\n4.\t9MM\t($300)");
- strcat(string, "\n5.\tSilenced Pistol\t($300)");
- strcat(string, "\n6.\tMp5\t($800)");
- strcat(string, "\n7.\tShotgun\t($600)");
- format(title, sizeof(title), "{AAC5E3}Ruby Donator");
- return ShowPlayerDialogEx(playerid, DIALOG_BLACKMARKET1, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Buy", "Cancel");
- }
- //ShowPlayerDialogEx(playerid, DIALOG_BLACKMARKET1, DIALOG_STYLE_LIST, "{AAC5E3}Ruby Donator", "(FREE) Health\n($600) Armor\n(FREE) Katana\n($300) 9MM\n($300) Silenced Pistol\n($800) MP5\n($600) Shotgun", "Select", "Cancel");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You are not near at the black market order room.");
-
- return 1;
- }
- CMD:dlocker(playerid, params[]) return cmd_donatorlocker(playerid, params);
- CMD:donatorlocker(playerid, params[])
- {
- if(PlayerInfo[playerid][pGunRes]> 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to take weapons while having gun restriction!");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] <1)
- {
- SendClientMessage(playerid, COLOR_LIGHTSLATEGRAY, "You need a donator package to access this maximus club.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,3,1073.609008,-1698.879638,-20.454763))
- {
- if(PlayerInfo[playerid][pDonator] >= 1)
- //ShowPlayerDialogEx(playerid, BLACKMARKET, DIALOG_STYLE_LIST, "Donator Guns", "Deagle ($1,000) \nSpas-12 ($2,750) \nM4 ($1,750) \nKevlar Vest ($350) \nFirst aid kit ($250) \nSniper ($3,250) \nFull Set ($8,750) ", "OK", "Cancel");
- ShowPlayerDialogEx(playerid, 7483, DIALOG_STYLE_LIST, "{AAC5E3}Donator Locker", "{FFFFFF}Change your job\nChange your skin\nAccess the Black Market\nBuy donator toys\nSet insurance to Maximus Club", "Select", "Cancel");
- }
- else
- SendClientMessage(playerid, COLOR_WHITE, "You're not inside in the Maximus Club.");
- return 1;
- }
- CMD:spawnatmc(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,3,1075.941894,-1706.718261,-20.454763))
- {
- if(PlayerInfo[playerid][pDonator] >= 1)
- {
- PlayerInfo[playerid][pSpawnMC] = 1;
- SendClientMessageEx(playerid, COLOR_LIGHTSLATEGRAY, "Donator: You will now respawn at the Maximus Club instead.");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_LIGHTSLATEGRAY, "You need a donator package to access this feature.");
- }
- }
- else return SendClientMessage(playerid, -1, "You're not in the Maximus Club.");
- return 1;
- }
- /*CMD:maximusclothes(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must be a donator.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,3,2371.556884,-1471.276489,-18.824062))
- {
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- }
- else
- {
- ShowModelSelectionMenu(playerid, skinlist, "Choose Skin");
- }
- }
- else return SendClientMessage(playerid, -1, "You're not in the Maximus Club.");
- return 1;
- }*/
- CMD:resetallhunt(playerid, params[])
- {
- AllHunt = 0;
- foreach(Player, i)
- {
- Hunted[i] = 0;
- }
- return 1;
- }
- CMD:backpack(playerid, params[])
- {
- if(PlayerInfo[playerid][pWearingBP] == 0)
- {
- SetPlayerAttachedObject(playerid, 9, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0); // Backpack
- SendClientMessage(playerid, COLOR_WHITE, "You have weared your backpack!");
- PlayerInfo[playerid][pWearingBP] = 1;
- }
- else
- {
- RemovePlayerAttachedObject(playerid, 9);
- SendClientMessage(playerid, COLOR_WHITE, "You un-weared your backpack!");
- PlayerInfo[playerid][pWearingBP] = 0;
- }
- return 1;
- }
- CMD:removebackpack(playerid, params[])
- {
- if(PlayerInfo[playerid][pBackpack] > 0)
- {
- if(GetPVarInt(playerid, "BPConfirm") == 0)
- {
- SetPVarInt(playerid, "BPConfirm", 1);
- SendClientMessage(playerid, -1, "Are you sure want to remove your backpack?, you will dont get money either refund. Type /removebackpack again to remove.");
- return 1;
- }
- PlayerInfo[playerid][pBackpack] = 0;
- PlayerInfo[playerid][pBPPot] = 0;
- PlayerInfo[playerid][pBPCrack] = 0;
- PlayerInfo[playerid][pBPCash] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have removed your backpack!");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You dont have any backpack!");
- return 1;
- }
- CMD:mybackpack(playerid, params[])
- {
- if(gPlayerLogged[playerid] != 0)
- {
- if(PlayerInfo[playerid][pBackpack] > 0)
- {
- ShowBackpack(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any backpack.");
- }
- }
- return 1;
- }
- CMD:buybackpack(playerid, params[])
- {
- SendClientMessage(playerid, -1, "This command has been removed. If you still want backpack you can donate at www.Serenity/donate");
- SendClientMessage(playerid, -1, "How much is backpack each? Well, Small Backpack = $0.1, Medium Backpack = $0.2, and Large Backpack = $0.3. They're affordable arent they?");
- return 1;
- }
- CMD:acceptbackpack(playerid, params[])
- {
- new string[128], backpack[20];
- if(BPOffer[playerid] < 999)
- {
- if(GetPlayerCash(playerid) >= BPPrice[playerid])
- {
- if(IsPlayerConnected(BPOffer[playerid]))
- {
- if(ProxDetectorS(6.0, playerid, BPOffer[playerid]))
- {
- if(PlayerBoxing[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't accept dice bet while boxing.");
- return 1;
- }
- switch(PlayerInfo[BPOffer[playerid]][pBackpack])
- {
- case 1: backpack = "large";
- case 2: backpack = "medium";
- case 3: backpack = "small";
- default: backpack = "none";
- }
- if(GetPVarInt(playerid, "BuyBPConfirm") == 0)
- {
- SetPVarInt(playerid, "BuyBPConfirm", 1);
- format(string, sizeof(string), "Are you sure want to accept the %s backpack for $%d with from %s? If yes, then type /acceptback again.", backpack, BPPrice[playerid], GetPlayerNameEx(BPOffer[playerid]));
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- if(PlayerInfo[playerid][pBackpack] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You already have a backpack!");
- return 1;
- }
- format(string, sizeof(string), "* You accepted the %s backpack for $%d from %s.",backpack, BPPrice[playerid],GetPlayerNameEx(BPOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s accepted your %s backpack for $%d.",GetPlayerNameEx(playerid),backpack, BPPrice[playerid]);
- SendClientMessage(BPOffer[playerid], COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, -BPPrice[playerid]);
- GivePlayerCash(BPOffer[playerid], BPPrice[playerid]);
- SetPVarInt(playerid, "BuyBPConfirm", 0);
- new bp = PlayerInfo[BPOffer[playerid]][pBackpack];
- PlayerInfo[playerid][pBackpack] = bp;
- PlayerInfo[BPOffer[playerid]][pBackpack] = 0;
- BPOffer[playerid] = 999;
- BPPrice[playerid] = 0;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not near the person offering you a backpack!");
- return 1;
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the backpack!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you any backpack!");
- return 1;
- }
-
- }
- CMD:sellbackpack(playerid, params[])
- {
- /*if(WatchingTV[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while watching TV!");
- return 1;
- }*/
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't sell backpack while you're boxing.");
- return 1;
- }
- new string[128], giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellbackpack [playerid/partofname] [price]");
- if(GetPVarInt(playerid, "BPTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before selling another backpack.", GetPVarInt(playerid, "BPTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(PlayerInfo[playerid][pBackpack] == 0) { SendClientMessage(playerid, COLOR_GREY, "You don't have any backpack!"); return 1; }
- if(money < 1 || money > 50000000) { SendClientMessage(playerid, COLOR_GREY, "Specified price must be between $1 and $50,000,000"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You cant /sellbackpack yourself");
- return 1;
- }
- SetPVarInt(playerid, "BPTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_BPTIMER);
- format(string, sizeof(string), "* You offered %s a backpack for $%d.", GetPlayerNameEx(giveplayerid), money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you a backpack $%d, type /acceptbackpack to accept.", GetPlayerNameEx(playerid), money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- BPOffer[giveplayerid] = playerid;
- BPPrice[giveplayerid] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- return 1;
- }
- CMD:checkbp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /checkbackpack [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- ShowBackpack(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:bpwithdraw(playerid, params[])
- {
- if(PlayerInfo[playerid][pBackpack] > 0)
- {
- new string[127], choice[36], amount;
- if(sscanf(params, "s[36]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bpwithdraw [name] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack, Cash");
- return 1;
- }
- if(strcmp(choice,"pot", true) == 0)
- {
- if(PlayerInfo[playerid][pBPPot] > 0)
- {
- if(amount <= PlayerInfo[playerid][pPot])
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough pot!");
- return 1;
- }
- PlayerInfo[playerid][pPot] += amount;
- PlayerInfo[playerid][pBPPot] -= amount;
- format(string, sizeof(string), "You withdrawn %d pot in your backpack.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s opens their backpack and withdraws %d pots in their backpack.", GetPlayerNameEx(playerid), amount);
- ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- }
- else SendClientMessage(playerid, COLOR_GREY, "You don't have that enough amount!");
- }
- if(strcmp(choice,"crack", true) == 0)
- {
- if(PlayerInfo[playerid][pBPCrack] > 0)
- {
- if(amount <= PlayerInfo[playerid][pCrack])
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough Crack!");
- return 1;
- }
- PlayerInfo[playerid][pCrack] += amount;
- PlayerInfo[playerid][pBPCrack] -= amount;
- format(string, sizeof(string), "You withdrawn %d crack in your backpack.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s opens their backpack and withdraws %d cracks in their backpack.", GetPlayerNameEx(playerid), amount);
- ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- }
- else SendClientMessage(playerid, COLOR_GREY, "You don't have that enough amount!");
- }
- if(strcmp(choice,"cash", true) == 0)
- {
- if(PlayerInfo[playerid][pBPCash] > 0)
- {
- if(amount < 1 || amount > 2000000) { SendClientMessage(playerid, COLOR_GREY, "Specified amount must be between $1 and $2,000,000"); return 1; }
- PlayerInfo[playerid][pBPCash] -= amount;
- GivePlayerCash(playerid, amount);
- format(string, sizeof(string), "You withdrawn $%d in your backpack.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s opens their backpack and withdraws $%d in their backpack.", GetPlayerNameEx(playerid), amount);
- ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- }
- else SendClientMessage(playerid, COLOR_GREY, "You don't have that enough amount!");
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "You don't have any backpack!");
- return 1;
- }
- CMD:bpdeposit(playerid, params[])
- {
- if(PlayerInfo[playerid][pBackpack] > 0)
- {
- new string[127], choice[32], amount;
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bpdeposit [name] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack, Cash");
- return 1;
- }
- if(strcmp(choice,"pot", true) == 0)
- {
- if(PlayerInfo[playerid][pPot] > 0)
- {
- if(PlayerInfo[playerid][pPot] <= amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough pot!");
- return 1;
- }
- PlayerInfo[playerid][pBPPot] += amount;
- PlayerInfo[playerid][pPot] -= amount;
- format(string, sizeof(string), "You deposited %d pot in your backpack.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s opens their backpack and deposits %d pots in their backpack.", GetPlayerNameEx(playerid), amount);
- ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough amount!");
- }
- }
- if(strcmp(choice,"crack", true) == 0)
- {
- if(PlayerInfo[playerid][pCrack] > 0)
- {
- if(PlayerInfo[playerid][pCrack] <= amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough crack!");
- return 1;
- }
- PlayerInfo[playerid][pBPCrack] += amount;
- PlayerInfo[playerid][pCrack] -= amount;
- format(string, sizeof(string), "You deposited %d crack in your backpack.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s opens their backpack and deposits %d cracks in their backpack.", GetPlayerNameEx(playerid), amount);
- ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough amount!");
- }
- }
- if(strcmp(choice,"cash", true) == 0)
- {
- if(PlayerInfo[playerid][pCash] > 0)
- {
- if(GetPlayerCash(playerid) <= amount)
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough cash!");
- return 1;
- }
- if(amount < 1 || amount > 2000000) { SendClientMessage(playerid, COLOR_GREY, "Specified amount must be between $1 and $2,000,000"); return 1; }
- PlayerInfo[playerid][pBPCash] += amount;
- GivePlayerCash(playerid, -amount);
- format(string, sizeof(string), "You deposited $%d in your backpack.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s opens their backpack and deposits $%d in their backpack.", GetPlayerNameEx(playerid), amount);
- ProxDetector(5.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that enough amount!");
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "You don't have any backpack!");
- return 1;
- }
- CMD:agivebackpack(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], id, type, backpack[40];
- if(sscanf(params, "ud", id, type)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /agivebackpack [playerid/partofname] [backpack type]");
- if(type < 1 || type > 3) { SendClientMessage(playerid, COLOR_GREY, "Backpack type must be 1 - 3"); return 1; }
- if(IsPlayerConnected(id))
- {
- switch(type)
- {
- case 1: backpack = "Large";
- case 2: backpack = "Medium";
- case 3: backpack = "Small";
- default: backpack = "None";
- }
- PlayerInfo[id][pBackpack] = type;
- format(string, sizeof(string), "AdmCmd: %s (ID %d) has given %s (ID %d) a %s backpack.", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(id), id, backpack);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(string, sizeof(string), "Administrator %s has given you a %s backpack.", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(id), backpack);
- SendClientMessage(id, COLOR_WHITE, string);
- format(string, sizeof(string), "You have given %s a %s backpack.", GetPlayerNameEx(id), backpack);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- CMD:stats(playerid, params[])
- {
- if(gPlayerLogged[playerid] != 0)
- {
- ShowStats(playerid,playerid);
- }
- return 1;
- }
- CMD:kiosk(playerid, params[])
- {
- if(gPlayerLogged[playerid] != 0)
- {
- WelcomePlayer(playerid);
- }
- return 1;
- }
- CMD:netstats(playerid, params[]) {
- if(gPlayerLogged[playerid] != 0) {
- new strStats[401], szTitle[64];
- GetPlayerNetworkStats(playerid, strStats, sizeof(strStats));
- format(szTitle, sizeof(szTitle), "Network Stats (ID: %d) - %s", playerid, GetPlayerNameEx(playerid));
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, szTitle, strStats, "Close", "");
- }
- return 1;
- }
- CMD:anetstats(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2) {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new giveplayerid, strStats[401], szTitle[64];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /anetstats [playerid/partofname]");
- if(gPlayerLogged[giveplayerid] != 0) {
- GetPlayerNetworkStats(giveplayerid, strStats, sizeof(strStats));
- format(szTitle, sizeof(szTitle), "Network Stats (ID: %d) - %s", giveplayerid, GetPlayerNameEx(giveplayerid));
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, szTitle, strStats, "Close", "");
- }
- return 1;
- }
- CMD:join(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 0)
- {
- if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0, 1776.386962,-1047.542968,-25.408025))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Detective, type /accept job.");
- GettingJob[playerid] = 1;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1380.8955,-1088.6808,27.3844))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Lawyer, type /accept job.");
- GettingJob[playerid] = 2;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1215.1304,-11.8431,1000.9219))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Whore, type /accept job.");
- GettingJob[playerid] = 3;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2166.3772,-1675.3829,15.0859))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Drugs Dealer, type /accept job.");
- GettingJob[playerid] = 4;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2330.117675, -2315.346435, 13.546875))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Car Mechanic, type /accept job.");
- GettingJob[playerid] = 7;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2226.1716,-1718.1792,13.5165))
- { // Ganton Gym
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bodyguard, type /accept job.");
- GettingJob[playerid] = 8;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1099.73,-1504.67,15.800))
- { // All Saints Mall
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bodyguard, type /accept job.");
- GettingJob[playerid] = 8;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1366.4325,-1275.2096,13.5469))
- { // Big Ammunation
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Arms Dealer type /accept job.");
- GettingJob[playerid] = 9;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,766.0804,14.5133,1000.7004))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Boxer, type /accept job.");
- GettingJob[playerid] = 12;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,758.98, -60.32, 1000.78))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Boxer, type /accept job.");
- GettingJob[playerid] = 12;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2354.2808,-1169.2959,28.0066))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Drug Smuggler, type /accept job.");
- GettingJob[playerid] = 14;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1741.5199,-1863.4615,13.5750))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Taxi Driver, type /accept job.");
- GettingJob[playerid] = 17;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2195.8335,-1973.0638,13.5589))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Craftsman, type /accept job.");
- GettingJob[playerid] = 18;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,502.6696,-11.6603,1000.6797))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bartender, type /accept job.");
- GettingJob[playerid] = 19;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2214.979736, -2661.346923, 13.546875))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Trucker, type /accept job.");
- GettingJob[playerid] = 20;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,378.58, -114.26, 1001.49))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Pizza Boy, type /accept job.");
- GettingJob[playerid] = 21;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2473.52, -2530.29, 13.65))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Garbageman, type /accept job.");
- GettingJob[playerid] = 22;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1280.6154,-1272.4631,13.5365))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Miner, type /accept job.");
- GettingJob[playerid] = 23;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not even near a place to get a Job!");
- }
- }
- else if(PlayerInfo[playerid][pJob] != 0 && PlayerInfo[playerid][pDonator] < 2 && PlayerInfo[playerid][pLevel] < 25)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have a Job, use /leavejob first!");
- SendClientMessage(playerid, COLOR_GREY, "Only donators and level 25+ can get two jobs!");
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && (PlayerInfo[playerid][pDonator] >= 2 || PlayerInfo[playerid][pLevel] >= 25))
- {
- if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0, 1776.386962,-1047.542968,-25.408025))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Detective, type /accept job.");
- GettingJob2[playerid] = 1;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1380.8955,-1088.6808,27.3844))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Lawyer, type /accept job.");
- GettingJob2[playerid] = 2;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1215.1304,-11.8431,1000.9219))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Whore, type /accept job.");
- GettingJob2[playerid] = 3;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2166.3772,-1675.3829,15.0859))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Drugs Dealer, type /accept job.");
- GettingJob2[playerid] = 4;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2330.117675, -2315.346435, 13.546875))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Car Mechanic, type /accept job.");
- GettingJob2[playerid] = 7;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2226.1716,-1718.1792,13.5165))
- { // Ganton Gym
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bodyguard, type /accept job.");
- GettingJob2[playerid] = 8;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1099.73,-1504.67,15.800))
- { // All Saints Mall
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bodyguard, type /accept job.");
- GettingJob2[playerid] = 8;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1366.4325,-1275.2096,13.5469))
- { // Big Ammunation
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Arms Dealer, type /accept job.");
- GettingJob2[playerid] = 9;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,766.0804,14.5133,1000.7004))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Boxer, type /accept job.");
- GettingJob2[playerid] = 12;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,758.98, -60.32, 1000.78))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Boxer, type /accept job.");
- GettingJob2[playerid] = 12;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2354.2808,-1169.2959,28.0066))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Drug Smuggler, type /accept job.");
- GettingJob2[playerid] = 14;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1741.5199,-1863.4615,13.5750))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Taxi Driver, type /accept job.");
- GettingJob2[playerid] = 17;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2195.8335,-1973.0638,13.5589))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Craftsman, type /accept job.");
- GettingJob2[playerid] = 18;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,502.6696,-11.6603,1000.6797))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bartender, type /accept job.");
- GettingJob2[playerid] = 19;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2214.979736, -2661.346923, 13.546875))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Trucker, type /accept job.");
- GettingJob2[playerid] = 20;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,378.58, -114.26, 1001.49))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Pizza Boy, type /accept job.");
- GettingJob2[playerid] = 21;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,2473.52, -2530.29, 13.65))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Garbageman, type /accept job.");
- GettingJob2[playerid] = 22;
- return 1;
- }
- else if(PlayerInfo[playerid][pJob2] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0,1280.6154,-1272.4631,13.5365))
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Miner, type /accept job.");
- GettingJob2[playerid] = 23;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not even near a place to get a Job!");
- }
- }
- else if(PlayerInfo[playerid][pJob] != 0 && PlayerInfo[playerid][pJob2] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have 2 Jobs, use /leavejob first!");
- }
- return 1;
- }
- CMD:leavejob(playerid, params[]) return cmd_quitjob(playerid, params);
- CMD:quitjob(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] >= 2)
- {
- new jobid;
- if(sscanf(params, "d", jobid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /leavejob [jobid]");
- SendClientMessage(playerid, COLOR_GREY, "Available: 1, 2");
- return 1;
- }
- switch(jobid)
- {
- case 1:
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have quit your Job.");
- PlayerInfo[playerid][pJob] = 0;
- if(GetPVarType(playerid, "NPS") != 0) {
- SetPlayerSkin(playerid, GetPVarInt(playerid, "NPS"));
- DeletePVar(playerid,"NPS");
- }
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- DeletePVar(playerid, "TruckDeliver");
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- case 2:
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have quit your secondary Job.");
- PlayerInfo[playerid][pJob2] = 0;
- if(GetPVarType(playerid, "NPS") != 0) {
- SetPlayerSkin(playerid, GetPVarInt(playerid, "NPS"));
- DeletePVar(playerid,"NPS");
- }
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- DeletePVar(playerid, "TruckDeliver");
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- default:
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /leavejob [jobid]");
- SendClientMessage(playerid, COLOR_GREY, "Available: 1, 2");
- }
- }
- }
- else
- {
- if(PlayerInfo[playerid][pJob] > 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have quit your Job.");
- PlayerInfo[playerid][pJob] = 0;
- if(GetPVarType(playerid, "NPS") != 0) {
- SetPlayerSkin(playerid, GetPVarInt(playerid, "NPS"));
- DeletePVar(playerid,"NPS");
- }
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- DeletePVar(playerid, "TruckDeliver");
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't even have a Job!");
- }
- }
- return 1;
- }
- CMD:getpizza(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Pizza Boy!");
- return 1;
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!(IsAPizzaCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
- {
- SendClientMessage(playerid,COLOR_GREY," You need to be driving a pizzaboy found at the side of the Pizza Stack!");
- return 1;
- }
- if(!(GetPlayerSkin(playerid) == 155))
- {
- SendClientMessage(playerid,COLOR_GREY," You need to be in the Pizza Stack uniform!");
- return 1;
- }
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2104.1999511719, -1787.5999755859, 13.60000038147))
- {
- SendClientMessage(playerid,COLOR_GREY," You're not at the Pizza Stack pickup!");
- return 1;
- }
- if(GetPVarInt(playerid, "Pizza") > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're already delivering pizzas!");
- return 1;
- }
- /*new rand = random(MAX_HOUSES -1);
- while(!(HouseInfo[rand][hExteriorZ] < 150.0 && HouseInfo[rand][hExteriorX] > 17.59 && HouseInfo[rand][hExteriorX] < 3004.64 && HouseInfo[rand][hExteriorY] < -805.45 && HouseInfo[rand][hExteriorY] > -2736.25))
- {
- rand++;
- if(rand == MAX_HOUSES) {
- rand = 1;
- }
- //printf("%d", rand);
- }*/
- new rand = random(165);
- while(!(HouseInfo[rand][hExteriorZ] < 150.0 && HouseInfo[rand][hExteriorX] > 17.59 && HouseInfo[rand][hExteriorX] < 3004.64 && HouseInfo[rand][hExteriorY] < -805.45 && HouseInfo[rand][hExteriorY] > -2736.25))
- {
- rand++;
- if(rand == 165) {
- rand = 1;
- }
- //printf("%d", rand);
- }
- SetPVarInt(playerid, "tpPizzaTimer", floatround((GetPizzaDistance(rand) / 60), floatround_round));
- SetPVarInt(playerid, "pizzaTotal", floatround((GetPizzaDistance(rand) / 10), floatround_round));
- SetPVarInt(playerid, "pizzaTimer", GetPVarInt(playerid, "pizzaTotal"));
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPPIZZARUNTIMER);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_PIZZATIMER);
- new szMessage[128];
- if(HouseInfo[rand][hOwned] == 0)
- {
- format(szMessage, sizeof(szMessage), "You have picked up a pizza for someone. You have %d seconds to deliver it!", GetPVarInt(playerid, "pizzaTotal"));
- }
- else
- {
- format(szMessage, sizeof(szMessage), "You have picked up a pizza for %s. You have %d seconds to deliver it!", HouseInfo[rand][hOwner], GetPVarInt(playerid, "pizzaTotal"));
- }
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- SetPVarInt(playerid, "Pizza", rand);
- PizzaBar[playerid] = CreateProgressBar(258.00, 137.00, 131.50, 3.19, COLOR_GREEN, 100.0);
- SetProgressBarValue(PizzaBar[playerid], 100.0);
- ShowProgressBarForPlayer(playerid, PizzaBar[playerid]);
- SetPlayerCheckpoint(playerid, HouseInfo[rand][hExteriorX], HouseInfo[rand][hExteriorY], HouseInfo[rand][hExteriorZ], 5);
- return 1;
- }
- CMD:pickuptrash(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 22 || PlayerInfo[playerid][pJob2] == 22)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsAGarbageCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(GetPVarInt(playerid, "Trashup") == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pickup the trash/garbage on your map/radar.");
- SetPlayerCheckpoint(playerid, 1423.93, -1317.97, 13.55, 5.0);
- SetPVarInt(playerid, "Trashup", 1);
- }
- else SendClientMessage(playerid, COLOR_GREY, " You're already picking up trash, use /killcheckpoint to stop.");
- }
- else SendClientMessage(playerid, COLOR_GREY, " You are not driving a Trashmaster.");
- }
- else SendClientMessage(playerid, COLOR_GREY, " You're not a Garbage Man!");
- return 1;
- }
- CMD:mine(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 23 && PlayerInfo[playerid][pJob2] != 23)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Miner!");
- return 1;
- }
- if(!IsPlayerNearMiningArea(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not near at the mining area.");
- 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);
- SetTimerEx("TimerGiveMinerEx2", 5000, false, "i", playerid);
- return 1;
- }
- CMD:jobhelp(playerid, params[]) {
- return ShowPlayerDialogEx(playerid, JOBHELPMENU, DIALOG_STYLE_LIST, "Which job do you need help with?","Detective\nLawyer\nWhore\nDrug Dealer\nMechanic\nBodyguard\nArms Dealer\nBoxer\nTaxi Driver\nDrug Smuggling\nCraftsman\nBartender\nTrucker\nPizza Boy\nStreet Sweeper\nMiner", "Select", "Cancel");
- }
- CheckPointCheck(iTargetID) {
- return (GetPVarType(iTargetID, "Packages") || FindingJob[iTargetID] != 0 || TaxiAccepted[iTargetID] != 999 || EMSAccepted[iTargetID] != 999 || BusAccepted[iTargetID] != 999 || MedicAccepted[iTargetID] != 999 || MechanicCallTime[iTargetID] >= 1 || gPlayerCheckpointStatus[iTargetID] != CHECKPOINT_NONE || CP[iTargetID] != 0 || GetPVarType(iTargetID, "CrateDeliver") || GetPVarType(iTargetID, "Trash") || GetPVarType(iTargetID, "TrackCar"));
- }
- CMD:accept(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128];
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- //new giveplayerid;
- if(IsPlayerConnected(playerid)) {
- if(isnull(params)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accept [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Sex, Mats, Crack, Pot, Weapon, Craft, Repair, Bodyguard, Job, Divorce, Frisk");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Faction, Family, Taxi, Bus, Boxing, Medic, Mechanic, Ticket, Car, Death");
- return 1;
- }
- if(strcmp(params,"job",true) == 0) {
- if(GettingJob[playerid] > 0) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command.");
- if(GettingJob[playerid] == 14) {
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find drug crates in Blueberry. (Go to checkpoint)");
- if(CheckPointCheck(playerid)) {
- PlayerInfo[playerid][pJob] = GettingJob[playerid];
- GettingJob[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3);
- }
- if(GettingJob[playerid] == 21) {
- SendClientMessage(playerid, COLOR_WHITE, "You have been given a Pizza Stack uniform!");
- SetPVarInt(playerid, "NPS", GetPlayerSkin(playerid)); // non pizza skin
- PlayerInfo[playerid][pSkin] = 155;
- SetPlayerSkin(playerid, 155);
- }
- PlayerInfo[playerid][pJob] = GettingJob[playerid];
- GettingJob[playerid] = 0;
- return 1;
- }
- if(GettingJob2[playerid] > 0) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have taken this as a secondary job.");
- if(GettingJob[playerid] == 14) {
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can find drug crates in Blueberry. (Go to checkpoint)");
- if(CheckPointCheck(playerid)) {
- PlayerInfo[playerid][pJob] = GettingJob[playerid];
- GettingJob[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- SetPlayerCheckpoint(playerid, 51.9720,-292.6349,1.7031, 3);
- }
- if(GettingJob[playerid] == 21) {
- SendClientMessage(playerid, COLOR_WHITE, "You have been given a Pizza Stack uniform!");
- SetPVarInt(playerid, "NPS", GetPlayerSkin(playerid)); // non pizza skin
- PlayerInfo[playerid][pSkin] = 155;
- SetPlayerSkin(playerid, 155);
- }
- PlayerInfo[playerid][pJob2] = GettingJob2[playerid];
- GettingJob2[playerid] = 0;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You haven't even been at a job place yet!");
- return 1;
- }
- }
- if(strcmp(params,"frisk",true) == 0) {
- if(GetPVarType(playerid, "FriskREQ") == 0)
- return SendClientMessage(playerid, COLOR_GREY, "You do not have any requests to be frisked.");
- format(string, sizeof(string), "* %s has accepted your frisk request.", GetPlayerNameEx(playerid));
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_LIGHTBLUE, string);
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREEN, "_______________________________________");
- format(string, sizeof(string), "*** %s' items... ***", GetPlayerNameEx(playerid));
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_WHITE, string);
- if(PlayerInfo[playerid][pWSeeds] == 1)
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, "Marijuana Seeds");
- if(PlayerInfo[playerid][pPhoneBook] > 0)
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, "Phone book.");
- if(PlayerInfo[playerid][pCDPlayer] > 0)
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, "CD player.");
- if(PlayerInfo[playerid][pCrack] > 0) {
- format(string, sizeof(string), "%d grams of crack.", PlayerInfo[playerid][pCrack]);
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, string);
- }
- if(PlayerInfo[playerid][pPot] > 0) {
- format(string, sizeof(string), "%d grams of pot.", PlayerInfo[playerid][pPot]);
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, string);
- }
- if(PlayerInfo[playerid][pMats] > 0) {
- format(string, sizeof(string), "%d materials.", PlayerInfo[playerid][pMats]);
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, string);
- }
- if(Fishes[playerid][pWeight1] > 0 || Fishes[playerid][pWeight2] > 0 || Fishes[playerid][pWeight3] > 0 || Fishes[playerid][pWeight4] > 0 || Fishes[playerid][pWeight5] > 0) {
- format(string, sizeof(string), "%d fish.", PlayerInfo[playerid][pFishes]);
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREY, string);
- }
- new weaponname[50];
- format(string, sizeof(string), "*** %s' weapons... ***", GetPlayerNameEx(playerid));
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_WHITE, string);
- for(new i = 0; i < 12; i++) {
- if(PlayerInfo[playerid][pGuns][i] > 0) {
- GetWeaponName(PlayerInfo[playerid][pGuns][i], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "Weapon: %s.", weaponname);
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GRAD1, string);
- }
- }
- SendClientMessage(GetPVarInt(playerid, "FriskREQ"), COLOR_GREEN, "_______________________________________");
- format(string, sizeof(string), "* %s has frisked %s.", GetPlayerNameEx(GetPVarInt(playerid, "FriskREQ")),GetPlayerNameEx(playerid));
- ProxDetector(30.0, GetPVarInt(playerid, "FriskREQ"), string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- DeletePVar(playerid, "FriskREQ");
- }
- if(strcmp(params,"death",true) == 0) {
- if(GetPVarInt(playerid, "Injured") == 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You gave up hope and fell unconscious, you were immediately sent to the hospital.");
- KillEMSQueue(playerid);
- ResetPlayerWeaponsEx(playerid);
- SpawnPlayer(playerid);
- }
- else { SendClientMessage(playerid, COLOR_GREY, " You're not injured, you can't do this right now!"); }
- }
- if(strcmp(params,"drink",true) == 0) {
- if((DrinkOffer[playerid] != INVALID_PLAYER_ID) && (IsPlayerConnected(DrinkOffer[playerid]))) {
- if(ProxDetectorS(8.0, playerid, DrinkOffer[playerid])) {
- ShowPlayerDialogEx(playerid, DRINKLISTDIALOG, DIALOG_STYLE_LIST, "Available Drinks", "Beer ($60)\nVodka ($100)\nWhiskey ($100)\nWater ($20)\nSoda($20)", "Purchase", "Cancel");
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "You're too far away from the bartender.");
- DrinkOffer[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one has offered you a drink.");
- return 1;
- }
- }
- if(strcmp(params,"car",true) == 0) {
- if(VehicleOffer[playerid] < 999) {
- if(IsPlayerConnected(VehicleOffer[playerid])) {
- if(GetPlayerCash(playerid) > VehiclePrice[playerid]) {
- if(IsPlayerInVehicle(VehicleOffer[playerid], PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId])) {
- if(!ProxDetectorS(8.0, VehicleOffer[playerid], playerid)) return SendClientMessage(playerid, COLOR_GREY, "You're not near the car dealer");
- new playervehicleid = GetPlayerFreeVehicleId(playerid);
- new carsamount = GetPlayerVehicleCount(playerid);
- // (TEMPORARY - Howard NOTE) TempDonator not added yet
- if(PlayerInfo[playerid][pDonator] == 0 && carsamount >= 5) //PlayerInfo[playerid][pTempDonator] > 0) && carsamount >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, non-donator can only own 5 cars.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 1 && carsamount >= 7)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Ruby Donator can only own 7 cars.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 2 && carsamount >= 8)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Sapphire Donator can only own 8 cars.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 3 && carsamount >= 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Diamond Donator can only own 10 cars.");
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] >= 4 && carsamount >= 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Platinum+ VIP can only own 10 cars.");
- return 1;
- }*/
- if(playervehicleid == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 0 && VehicleSpawned[playerid] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "As non-donator you can only have 1 vehicle spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 1 && VehicleSpawned[playerid] >= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Ruby Donator you can only have 2 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 2 && VehicleSpawned[playerid] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Sapphire Donator you can only have 3 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 3 && VehicleSpawned[playerid] >= 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Diamond Donator you can only have 4 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] == 4 && VehicleSpawned[playerid] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Undefined Donator you can only have 5 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 5 && VehicleSpawned[playerid] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Undefined Donator you can only have 5 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }*/
- if(PlayerInfo[playerid][pDonator] < 0 || PlayerInfo[playerid][pDonator] > 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have an invalid Donator level.");
- return 1;
- }
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(VehicleOffer[playerid], ipex, sizeof(ipex));
- format(string, sizeof(string), "[CAR] %s (IP: %s) has paid $%d to %s for the %s (IP: %s)", GetPlayerNameEx(playerid), ip, VehiclePrice[playerid], GetPlayerNameEx(VehicleOffer[playerid]), GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), ipex);
- Log("logs/pay.log", string);
- GetPlayerName(VehicleOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You bought the %s for $%d, from %s. (Check /carhelp for more help)", GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), VehiclePrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You sold your %s to %s for $%d.",GetVehicleName(PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId]), sendername,VehiclePrice[playerid]);
- SendClientMessage(VehicleOffer[playerid], COLOR_LIGHTBLUE, string);
- GivePlayerCash(VehicleOffer[playerid], VehiclePrice[playerid]);
- GivePlayerCash(playerid, -VehiclePrice[playerid]);
- RemovePlayerFromVehicle(VehicleOffer[playerid]);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(VehicleOffer[playerid], slx, sly, slz);
- SetPlayerPos(VehicleOffer[playerid], slx, sly, slz+2);
- PlayerVehicleInfo[playerid][playervehicleid][pvId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId];
- PlayerVehicleInfo[playerid][playervehicleid][pvModelId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvModelId];
- PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosX];
- PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosY];
- PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosZ];
- PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosAngle];
- PlayerVehicleInfo[playerid][playervehicleid][pvLock] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLock];
- PlayerVehicleInfo[playerid][playervehicleid][pvLocked] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLocked];
- PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPaintJob];
- PlayerVehicleInfo[playerid][playervehicleid][pvColor1] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor1];
- PlayerVehicleInfo[playerid][playervehicleid][pvColor2] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor2];
- PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvAllowedPlayerId];
- PlayerVehicleInfo[playerid][playervehicleid][pvPark] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPark];
- PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] = 1;
- VehicleSpawned[playerid]++;
- for(new m = 0; m < MAX_MODS; m++) {
- PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] = PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvMods][m];
- }
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvId] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvModelId] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosX] = 0.0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosY] = 0.0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosZ] = 0.0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPosAngle] = 0.0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLock] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvLocked] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPaintJob] = -1;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor1] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvImpounded] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvColor2] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvPark] = 0;
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvSpawned] = 0;
- VehicleSpawned[VehicleOffer[playerid]]--;
- for(new m = 0; m < MAX_MODS; m++) {
- PlayerVehicleInfo[VehicleOffer[playerid]][VehicleId[playerid]][pvMods][m] = 0;
- }
- VehicleOffer[playerid] = 999;
- VehiclePrice[playerid] = 0;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " The Car Dealer is not in the offered car!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the car!");
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered to buy a car!");
- return 1;
- }
- }
- if(strcmp(params,"house",true) == 0) {
- if(HouseOffer[playerid] < 999) {
- if(IsPlayerConnected(HouseOffer[playerid]))
- {
- if(PlayerInfo[HouseOffer[playerid]][pHouse] == INVALID_HOUSE_ID)
- {
- SendClientMessage(playerid, COLOR_WHITE, "They don't own that house.");
- return 1;
- }
- if(GetPlayerCash(playerid) > HousePrice[playerid])
- {
- new house;
- if(House[playerid] == 1) house = PlayerInfo[HouseOffer[playerid]][pHouse];
- else if(House[playerid] == 2) house = PlayerInfo[HouseOffer[playerid]][pHouse2];
- else return SendClientMessage(playerid, COLOR_RED, "Error: No house specified");
- ClearHouse(house);
- HouseInfo[house][hLock] = 1;
- format(HouseInfo[house][hOwner], 128, "Nobody");
- sendername = GetPlayerNameEx(HouseOffer[playerid]);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~w~Congratulations~n~ You have sold your property for ~n~~g~$%d", HousePrice[playerid]);
- GameTextForPlayer(HouseOffer[playerid], string, 4000, 3);
- if(House[playerid] == 1) PlayerInfo[HouseOffer[playerid]][pHouse] = INVALID_HOUSE_ID;
- else PlayerInfo[HouseOffer[playerid]][pHouse2] = INVALID_HOUSE_ID;
- SaveHouses();
- OnPlayerStatsUpdate(HouseOffer[playerid]);
- DestroyPickup(HouseInfo[house][hPickupID]);
- HouseInfo[house][hPickupID] = CreatePickup(1273, 23, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ], -1);
- GivePlayerCash(HouseOffer[playerid],HousePrice[playerid]);
- PlayerInfo[playerid][pHouse] = house;
- HouseInfo[house][hOwned] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- strmid(HouseInfo[house][hOwner], sendername, 0, strlen(sendername), 255);
- GivePlayerCash(playerid,-HousePrice[playerid]);
- SendClientMessage(playerid, COLOR_WHITE, "Congratulations on your new purchase!");
- SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the property help section!");
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- DestroyPickup(HouseInfo[house][hPickupID]);
- HouseInfo[house][hPickupID] = CreatePickup(1273, 23, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ], -1);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[house][hOwner],HouseInfo[house][hLevel],house);
- UpdateDynamic3DTextLabelText(HouseInfo[house][hTextID], COLOR_HOUSEGREEN, string);
- new ip[32], ipex[32];
- GetPlayerIp(HouseOffer[playerid],ip,sizeof(ip));
- GetPlayerIp(playerid,ipex,sizeof(ipex));
- format(string,sizeof(string),"%s (IP: %s) has sold their house (ID %d) to %s (IP: %s) for $%d.",GetPlayerNameEx(HouseOffer[playerid]),ip,house,GetPlayerNameEx(playerid),ipex,HousePrice[playerid]);
- Log("logs/house.log", string);
- HouseOffer[playerid] = 999;
- HousePrice[playerid] = 0;
- House[playerid] = 0;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the house!");
- HouseOffer[playerid] = 999;
- HousePrice[playerid] = 0;
- House[playerid] = 0;
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " Nobody offered to buy a house!");
- return 1;
- }
- }
- else if(strcmp(params,"invite",true) == 0)
- {
- if(hInviteOffer[playerid] < 999)
- {
- if(IsPlayerConnected(hInviteOffer[playerid]))
- {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- hInviteHouse[playerid] = PlayerInfo[hInviteOffer[playerid]][pHouse];
- format(string, sizeof(string), "* You have accepted %s's house invite, a checkpoint has been set to their house.", GetPlayerNameEx(hInviteOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your house invite.", GetPlayerNameEx(playerid));
- SendClientMessage(hInviteOffer[playerid], COLOR_LIGHTBLUE, string);
- DisablePlayerCheckpoint(playerid);
- SetPlayerCheckpoint(playerid,HouseInfo[hInviteHouse[playerid]][hExteriorX], HouseInfo[hInviteHouse[playerid]][hExteriorY], HouseInfo[hInviteHouse[playerid]][hExteriorZ], 4.0);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
- //hInviteSlot[playerid] = 0;
- hInviteOffer[playerid] = 999;
- hInviteHouse[playerid] = INVALID_HOUSE_ID;
- return 1;
- }
- else
- {
- //hInviteSlot[playerid] = 0;
- hInviteOffer[playerid] = 999;
- hInviteHouse[playerid] = INVALID_HOUSE_ID;
- SendClientMessage(playerid, COLOR_GREY, "The player who sent you a house invite has disconnected.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Nobody sent you a house invite.");
- return 1;
- }
- return 1;
- }
- else if(strcmp(params, "handshake",true) == 0)
- {
- if(ShakeHandStyle[playerid] != 0 && ShakeHandRequest[playerid] != 999)
- {
- if (ProxDetectorS(1.3, playerid, ShakeHandRequest[playerid]) && (GetPlayerVirtualWorld(ShakeHandRequest[playerid]) == GetPlayerVirtualWorld(playerid)))
- {
- PlayerFacePlayer(playerid, ShakeHandRequest[playerid]);
- if(ShakeHandStyle[playerid] == 1)
- {
- ApplyAnimation(playerid,"GANGS","prtial_hndshk_biz_01", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","prtial_hndshk_biz_01", 4.0, 0, 0, 0, 0, 0);
- }
- if(ShakeHandStyle[playerid] == 2)
- {
- ApplyAnimation(playerid,"GANGS","prtial_hndshk_01", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","prtial_hndshk_01", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 3) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkaa", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkaa", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 4) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkba", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkba", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 5) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkca", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkca", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 6) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkcb", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkcb", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 7) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkda", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkda", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 8) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkea", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkea", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 9) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkfa", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkfa", 4.0, 0, 0, 0, 0, 0);
- }
- if((ShakeHandStyle[playerid] == 10) && (GetPlayerState(playerid) ==PLAYER_STATE_ONFOOT) && (GetPlayerState(ShakeHandRequest[playerid]) ==PLAYER_STATE_ONFOOT))
- {
- ApplyAnimation(playerid,"GANGS","hndshkfa_swt", 4.0, 0, 0, 0, 0, 0);
- ApplyAnimation(ShakeHandRequest[playerid],"GANGS","hndshkfa_swt", 4.0, 0, 0, 0, 0, 0);
- }
- format(string, sizeof(string), "* %s has shook hands with %s.", GetPlayerNameEx(ShakeHandRequest[playerid]), GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- ShakeHandRequest[playerid] = 999;
- ShakeHandStyle[playerid] = 0;
- return 1;
- }
- else
- {
- format(string, sizeof(string), "%s reaches for %s's hand but misses.", GetPlayerNameEx(playerid), GetPlayerNameEx(ShakeHandRequest[playerid]));
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else SendClientMessage(playerid, COLOR_WHITE, "You don't have any handshake requests.");
- return 1;
- }
- else if(strcmp(params,"taxi",true) == 0) {
- if(TransportDuty[playerid] != 1) {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Taxi Driver!");
- return 1;
- }
- if(TaxiCallTime[playerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a taxi call!");
- return 1;
- }
- if(TaxiCall < 999) {
- if(IsPlayerConnected(TaxiCall)) {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(TaxiCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the taxi call from %s, you will see the marker until you have reached it.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(TaxiCall, zone, sizeof(zone));
- format(string, sizeof(string), "* %s can be found at %s.", GetPlayerNameEx(TaxiCall), zone);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call; please wait at your current position.",sendername);
- SendClientMessage(TaxiCall, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(playerid, "~w~Taxi Caller~n~~r~Go to the red marker.", 5000, 1);
- TaxiCallTime[playerid] = 1;
- TaxiAccepted[playerid] = TaxiCall;
- TaxiCall = 999;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a taxi yet!");
- return 1;
- }
- }
- else if(strcmp(params,"bus",true) == 0) {
- if(TransportDuty[playerid] != 2) {
- SendClientMessage(playerid, COLOR_GREY, " You're not a bus driver!");
- return 1;
- }
- if(BusCallTime[playerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a bus call!");
- return 1;
- }
- if(BusCall < 999) {
- if(IsPlayerConnected(BusCall)) {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(BusCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Bus Call from %s, you will see the marker untill you have reached it.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(BusCall, zone, sizeof(zone));
- format(string, sizeof(string), "* %s can be found at %s.", GetPlayerNameEx(BusCall), zone);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Bus Driver %s has accepted your bus call; please wait at your current position.",sendername);
- SendClientMessage(BusCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(BusCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Bus Caller~n~~r~Goto redmarker", 5000, 1);
- BusCallTime[playerid] = 1;
- BusAccepted[playerid] = BusCall;
- BusCall = 999;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one called for a Bus yet!");
- return 1;
- }
- }
- else if(strcmp(params,"medic",true) == 0) {
- if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3) {
- if(MedicCallTime[playerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Medic Call!");
- return 1;
- }
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(MedicCall < 999) {
- if(IsPlayerConnected(MedicCall)) {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(MedicCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Medic Call from %s",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 45 Seconds the Red Marker will dissapear.");
- format(string, sizeof(string), "* Medic %s has accepted your Medic Call please wait at your current Position.",sendername);
- SendClientMessage(MedicCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(MedicCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(MedicCall, zone, sizeof(zone));
- format(string, sizeof(string), "HINT: %s is located in %s", GetPlayerNameEx(MedicCall), zone);
- SendClientMessage(playerid, COLOR_WHITE, string);
- MedicCallTime[playerid] = 1;
- MedicAccepted[playerid] = MedicCall;
- MedicCall = 999;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one called for a Medic yet!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Medic!");
- return 1;
- }
- }
- else if(strcmp(params,"mechanic",true) == 0) {
- if(PlayerInfo[playerid][pJob] != 7 && PlayerInfo[playerid][pJob2] != 7) {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Car Mechanic!");
- return 1;
- }
- if(MechanicCallTime[playerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Mechanic Call!");
- return 1;
- }
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(MechanicCall < 999) {
- if(IsPlayerConnected(MechanicCall)) {
- if(playerid == MechanicCall) return 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 30 Seconds to get there.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will dissapear.");
- format(string, sizeof(string), "* Car Mechanic %s has accepted your Mechanic Call please wait at your current Position.",sendername);
- SendClientMessage(MechanicCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(MechanicCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Mechanic Caller~n~~r~Goto redmarker", 5000, 1);
- MechanicCallTime[playerid] = 1;
- MechanicCall = 999;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one called for a Car Mechanic yet!");
- return 1;
- }
- }
- else if(strcmp(params,"divorce",true) == 0) {
- if(DivorceOffer[playerid] < 999) {
- if(IsPlayerConnected(DivorceOffer[playerid])) {
- if(ProxDetectorS(10.0, playerid, DivorceOffer[playerid])) {
- GetPlayerName(DivorceOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have signed the divorce papers from %s, you're now single again.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has signed the divorce papers, you're now single again.", sendername);
- SendClientMessage(DivorceOffer[playerid], COLOR_LIGHTBLUE, string);
- ClearMarriage(playerid);
- ClearMarriage(DivorceOffer[playerid]);
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " The player that sent you the Divorce Papers is not near you!");
- return 1;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "Nobody sent you any divorce papers.");
- return 1;
- }
- }
- else if(strcmp(params,"witness",true) == 0) {
- if(MarryWitnessOffer[playerid] < 999) {
- if(IsPlayerConnected(MarryWitnessOffer[playerid])) {
- if(ProxDetectorS(10.0, playerid, MarryWitnessOffer[playerid])) {
- GetPlayerName(MarryWitnessOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's request to be their marriage witness.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request to be your marriage witness.", sendername);
- SendClientMessage(MarryWitnessOffer[playerid], COLOR_LIGHTBLUE, string);
- MarryWitness[MarryWitnessOffer[playerid]] = playerid;
- MarryWitnessOffer[playerid] = 999;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " The player that requested you to be their marriage witness is not near you!");
- return 1;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one asked you to be their marriage witness!");
- return 1;
- }
- }
- else if(strcmp(params,"marriage",true) == 0) {
- if(ProposeOffer[playerid] < 999) {
- if(IsPlayerConnected(ProposeOffer[playerid])) {
- if(ProxDetectorS(10.0, playerid, ProposeOffer[playerid])) {
- if(MarryWitness[ProposeOffer[playerid]] == 999) {
- SendClientMessage(playerid, COLOR_GREY, " The proposer doesn't have a marriage witness!");
- return 1;
- }
- if(IsPlayerConnected(MarryWitness[ProposeOffer[playerid]])) {
- if(ProxDetectorS(12.0, ProposeOffer[playerid], MarryWitness[ProposeOffer[playerid]])) {
- if(IsPlayerInRangeOfPoint(playerid, 10.0, 1963.9612, -369.1851, 1093.7289)) {
- GetPlayerName(ProposeOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You have accepted %s's request to be your husband.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your request to be your wife.", sendername);
- SendClientMessage(ProposeOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "Priest: %s, do you take %s as your lovely husband? (Type 'yes', as anything else will reject the marriage.)", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- MarriageCeremoney[playerid] = 1;
- ProposedTo[ProposeOffer[playerid]] = playerid;
- GotProposedBy[playerid] = ProposeOffer[playerid];
- MarryWitness[ProposeOffer[playerid]] = 999;
- ProposeOffer[playerid] = 999;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You're not at the church!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " The marriage witness is not near your proposer!");
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " The player that proposed to you is not near you!");
- return 1;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " Nobody proposed to you!");
- return 1;
- }
- }
- else if(strcmp(params,"contract",true) == 0) {
- if(HitOffer[playerid] < 999) {
- if(HitToGet[playerid] < 999) {
- if(IsPlayerConnected(HitToGet[playerid])) {
- format(string, sizeof(string), "* %s has accepted the contract to kill %s.", GetPlayerNameEx(playerid),GetPlayerNameEx(HitToGet[playerid]));
- SendClientMessage(HitOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have accepted the contract to kill %s, you will recieve $%d when completed.", GetPlayerNameEx(HitToGet[playerid]), PlayerInfo[HitToGet[playerid]][pHeadValue] / 4 * 2);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has been assigned to the contract on %s, for $%d.", GetPlayerNameEx(playerid), GetPlayerNameEx(HitToGet[playerid]), PlayerInfo[HitToGet[playerid]][pHeadValue] / 4 * 2);
- SendFamilyMessage(4, COLOR_YELLOW, string);
- GoChase[playerid] = HitToGet[playerid];
- GetChased[HitToGet[playerid]] = playerid;
- GotHit[HitToGet[playerid]] = 1;
- HitToGet[playerid] = 999;
- HitOffer[playerid] = 999;
- return 1;
- }
- else {
- HitToGet[playerid] = 999;
- HitOffer[playerid] = 999;
- return 1;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you a contract!");
- return 1;
- }
- }
- else if(strcmp(params,"ticket",true) == 0) {
- if(TicketOffer[playerid] < 999) {
- if(IsPlayerConnected(TicketOffer[playerid])) {
- if(ProxDetectorS(5.0, playerid, TicketOffer[playerid])) {
- if(GetPlayerCash(playerid) >= TicketMoney[playerid]) {
- //new ip[32], ipex[32];
- //GetPlayerIp(playerid, ip, sizeof(ip));
- //GetPlayerIp(TicketOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[FACTION TICKET] %s (IP: %s) has paid $%d to %s (IP: %s)", GetPlayerNameEx(playerid), ip, TicketMoney[playerid], GetPlayerNameEx(TicketOffer[playerid]), ipex);
- // Log("logs/pay.log", string);
- format(string, sizeof(string), "* You have paid the ticket of $%d to %s.", TicketMoney[playerid], GetPlayerNameEx(TicketOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has paid your ticket of $%d.", GetPlayerNameEx(playerid), TicketMoney[playerid]);
- SendClientMessage(TicketOffer[playerid], COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has paid the ticket.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerCash(playerid, - TicketMoney[playerid]);
- TicketOffer[playerid] = 999;
- TicketMoney[playerid] = 0;
- if(GetPlayerCash(playerid) < 1) GivePlayerCash(playerid, 0);
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " The officer is not near you!");
- return 1;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you a ticket!");
- return 1;
- }
- }
- else if(strcmp(params,"repair",true) == 0) {
- if(RepairOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) > RepairPrice[playerid]) {
- if(IsPlayerInAnyVehicle(playerid)) {
- if(IsPlayerConnected(RepairOffer[playerid])) {
- GetPlayerName(RepairOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- RepairCar[playerid] = GetPlayerVehicleID(playerid);
- RepairVehicle(RepairCar[playerid]);
- PlayerInfo[RepairOffer[playerid]][pTire]--;
- GivePlayerCash(RepairOffer[playerid], RepairPrice[playerid]);
- GivePlayerCash(playerid, -RepairPrice[playerid]);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(RepairOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "%s(IP:%s) has repaired the vehicle from %s(IP:%s) for $%d", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(RepairOffer[playerid]), ipex, RepairPrice[playerid]);
- //Log("logs/pay.log", string);
- format(string, sizeof(string), "* %s has repaired %s's vehicle.", giveplayer, GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "* You repaired your car for $%d by Car Mechanic %s.",RepairPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- RepairWarn[playerid][RepairOffer[playerid]] += RepairPrice[playerid];
- if(RepairWarn[playerid][RepairOffer[playerid]] >= 2500 && (PlayerInfo[RepairOffer[playerid]][pLevel] <= 3 || PlayerInfo[RepairOffer[playerid]][pLevel] <= 3)) {
- format(string, sizeof(string), "%s (IP:%s) has repaired %s (IP:%s) $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(RepairOffer[playerid]), ipex, RepairWarn[playerid][RepairOffer[playerid]]);
- //Log("logs/pay.log", string);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- format(string, sizeof(string), "* You fixed %s's car, the $%d has been added to your money on hand!",sendername,RepairPrice[playerid]);
- SendClientMessage(RepairOffer[playerid], COLOR_LIGHTBLUE, string);
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour)) {
- PlayerInfo[RepairOffer[playerid]][pMechSkill] += 2;
- SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- }
- else
- {
- PlayerInfo[RepairOffer[playerid]][pMechSkill]++;
- }
- RepairOffer[playerid] = 999;
- RepairPrice[playerid] = 0;
- return 1;
- }
- return 1;
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the Repair!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you to Repair your Car!");
- return 1;
- }
- }
- else if(strcmp(params,"craft",true) == 0) {
- if(CraftOffer[playerid] < 999) {
- if(IsPlayerConnected(CraftOffer[playerid])) {
- if(ProxDetectorS(5.0, playerid, CraftOffer[playerid])) {
- if(GetPVarInt(playerid, "Hospital") == 1 || GetPVarInt(playerid, "Hospital") == 2 || GetPVarInt(playerid, "Hospital") == 3 || GetPVarInt(playerid, "Hospital") == 4 || GetPVarInt(playerid, "Hospital") == 5) {
- SendClientMessage(playerid, COLOR_GREY, "You can't spawn a weapon whilst in Hospital.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Please exit the vehicle, before using this command.");
- new weaponname[50];
- format(weaponname, 50, "%s", CraftName[playerid]);
- switch(CraftId[playerid]) {
- case 1: {
- PlayerInfo[playerid][pScrewdriver]++;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/sellgun");
- }
- case 3:
- {
- PlayerInfo[playerid][pWristwatch]++;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/wristwatch");
- }
- case 5:
- {
- PlayerInfo[playerid][pTire]++;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/repair");
- }
- case 7:
- {
- PlayerInfo[playerid][pFirstaid]++;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/firstaid");
- }
- case 8:
- {
- GivePlayerValidWeapon(playerid, 43, 50);
- }
- case 9:
- {
- PlayerInfo[playerid][pRccam]++;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/rccam");
- }
- case 10:
- {
- PlayerInfo[playerid][pReceiver]++;
- SetPVarInt(playerid, "pReceiverMLeft", 40);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You will receive the next four department radio messages.");
- }
- case 11:
- {
- PlayerInfo[playerid][pGPS]++;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/gps");
- }
- case 12:
- {
- PlayerInfo[playerid][pSweep]++;
- PlayerInfo[playerid][pSweepLeft] = 3;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "/sweep");
- }
- case 13:
- {
- GivePlayerValidWeapon(playerid, 46, 99999);
- }
- }
- format(string, sizeof(string), " You have given %s, a %s.", GetPlayerNameEx(playerid),weaponname);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(CraftOffer[playerid], COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved a %s from %s.", weaponname, GetPlayerNameEx(CraftOffer[playerid]));
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s created something from Materials, and hands it to %s.", GetPlayerNameEx(CraftOffer[playerid]), GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- //new ip[32], ipex[32];
- //GetPlayerIp(playerid, ip, sizeof(ip));
- //GetPlayerIp(CraftOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[CRAFTSMAN DEAL] %s (IP: %s) has bought a %s from %s (IP: %s)", GetPlayerNameEx(playerid), ip, weaponname, GetPlayerNameEx(CraftOffer[playerid]), ipex);
- //Log("logs/pay.log", string);
- PlayerInfo[CraftOffer[playerid]][pMats] -= CraftMats[playerid];
- //PlayerInfo[CraftOffer[playerid]][pCraftSkill]++;
- CraftOffer[playerid] = 999;
- CraftId[playerid] = 0;
- CraftMats[playerid] = 0;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, "You need to be the near the player that is selling you the weapon!");
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Weapon!");
- return 1;
- }
- }
- else if(strcmp(params,"taxi",true) == 0) {
- if(TransportDuty[playerid] != 1) {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Taxi Driver!");
- return 1;
- }
- if(TaxiCallTime[playerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a taxi call!");
- return 1;
- }
- if(TaxiCall < 999) {
- if(IsPlayerConnected(TaxiCall)) {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(TaxiCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the taxi call from %s, you will see the marker until you have reached it.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(TaxiCall, zone, sizeof(zone));
- format(string, sizeof(string), "* %s can be found at %s.", GetPlayerNameEx(TaxiCall), zone);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call; please wait at your current position.",sendername);
- SendClientMessage(TaxiCall, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(playerid, "~w~Taxi Caller~n~~r~Go to the red marker.", 5000, 1);
- TaxiCallTime[playerid] = 1;
- TaxiAccepted[playerid] = TaxiCall;
- TaxiCall = 999;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " Nobody called for a taxi yet!");
- return 1;
- }
- }
- else if(strcmp(params,"bus",true) == 0) {
- if(TransportDuty[playerid] != 2) {
- SendClientMessage(playerid, COLOR_GREY, " You're not a bus driver!");
- return 1;
- }
- if(BusCallTime[playerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, " You have already accepted a bus call!");
- return 1;
- }
- if(BusCall < 999) {
- if(IsPlayerConnected(BusCall)) {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(BusCall, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* You have accepted the Bus Call from %s, you will see the marker untill you have reached it.",giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(BusCall, zone, sizeof(zone));
- format(string, sizeof(string), "* %s can be found at %s.", GetPlayerNameEx(BusCall), zone);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Bus Driver %s has accepted your bus call; please wait at your current position.",sendername);
- SendClientMessage(BusCall, COLOR_LIGHTBLUE, string);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(BusCall, X, Y, Z);
- SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- GameTextForPlayer(playerid, "~w~Bus Caller~n~~r~Goto redmarker", 5000, 1);
- BusCallTime[playerid] = 1;
- BusAccepted[playerid] = BusCall;
- BusCall = 999;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one called for a Bus yet!");
- return 1;
- }
- }
- else if(strcmp(params,"boxing",true) == 0) {
- if(BoxOffer[playerid] < 999) {
- if(IsPlayerConnected(BoxOffer[playerid])) {
- new points;
- new mypoints;
- GetPlayerName(BoxOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new level = PlayerInfo[BoxOffer[playerid]][pBoxSkill];
- if(level >= 0 && level <= 50) { points = 40; }
- else if(level >= 51 && level <= 100) { points = 50; }
- else if(level >= 101 && level <= 200) { points = 60; }
- else if(level >= 201 && level <= 400) { points = 70; }
- else if(level >= 401) { points = 80; }
- if(PlayerInfo[playerid][pJob] == 12 || PlayerInfo[playerid][pJob2] == 12) {
- new clevel = PlayerInfo[playerid][pBoxSkill];
- if(clevel >= 0 && clevel <= 50) { mypoints = 40; }
- else if(clevel >= 51 && clevel <= 100) { mypoints = 50; }
- else if(clevel >= 101 && clevel <= 200) { mypoints = 60; }
- else if(clevel >= 201 && clevel <= 400) { mypoints = 70; }
- else if(clevel >= 401) { mypoints = 80; }
- }
- else {
- mypoints = 30;
- }
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this right now.");
- return 1;
- }
- else if(GetPVarInt(BoxOffer[playerid], "Injured") != 0||PlayerCuffed[BoxOffer[playerid]]!=0||GetPVarInt(BoxOffer[playerid], "Hospital")!=0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this right now.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] != 12 && PlayerInfo[playerid][pJob2] != 12)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You do not have the Boxer Job!");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,25.0, 765.952270, 4.167977, 1000.719238) && IsPlayerInRangeOfPoint(BoxOffer[playerid],25.0, 765.952270, 4.167977, 1000.719238))
- {
- format(string, sizeof(string), "* You have accepted the Boxing Challenge from %s, and will fight with %d Health.",giveplayer,mypoints);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has accepted your Boxing Challenge Request, you will fight with %d Health.",sendername,points);
- SendClientMessage(BoxOffer[playerid], COLOR_LIGHTBLUE, string);
- ResetPlayerWeapons(playerid);
- ResetPlayerWeapons(BoxOffer[playerid]);
- SetPlayerHealth(playerid, mypoints);
- SetPlayerHealth(BoxOffer[playerid], points);
- SetPlayerArmourEx(playerid, 0);
- SetPlayerArmourEx(BoxOffer[playerid],0);
- SetPlayerInterior(playerid, 5); SetPlayerInterior(BoxOffer[playerid], 5);
- SetPlayerPos(playerid, 758.498596, -1.915163, 1001.594238); SetPlayerFacingAngle(playerid, 309.27);
- SetPlayerPos(BoxOffer[playerid], 763.229248, 2.429135, 1001.594238); SetPlayerFacingAngle(BoxOffer[playerid], 133.83);
- TogglePlayerControllable(playerid, 0); TogglePlayerControllable(BoxOffer[playerid], 0);
- GameTextForPlayer(playerid, "~r~Waiting", 3000, 1); GameTextForPlayer(BoxOffer[playerid], "~r~Waiting", 3000, 1);
- BoxWaitTime[playerid] = 1; BoxWaitTime[BoxOffer[playerid]] = 1;
- if(BoxDelay < 1) { BoxDelay = 10; }
- InRing = 1;
- Boxer1 = BoxOffer[playerid];
- Boxer2 = playerid;
- PlayerBoxing[playerid] = 1;
- PlayerBoxing[BoxOffer[playerid]] = 1;
- BoxOffer[playerid] = 999;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "One of the boxers is not inside Ganton Gym!");
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Boxing Challenge!");
- return 1;
- }
- }
- else if(strcmp(params,"mats",true) == 0)
- {
- if(MatsOffer[playerid] < 999)
- {
- if(GetPlayerCash(playerid) >= MatsPrice[playerid])
- {
- if(IsPlayerConnected(MatsOffer[playerid]))
- {
- if(GetPVarInt(playerid, "SellMatsTimer") > 0)
- {
- format(string, sizeof(string), "You must wait %d seconds before accepting materials.", GetPVarInt(playerid, "SellMatsTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(PlayerInfo[MatsOffer[playerid]][pMats] < MatsAmount[playerid])
- {
- SendClientMessage(playerid,COLOR_GREY, "That player does not have that amount of materials anymore!");
- return 1;
- }
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(MatsOffer[playerid], ipex, sizeof(ipex));
- format(string, sizeof(string), "[MATERIALS (%d)] %s (IP:%s) has paid $%d to %s (IP:%s)", MatsAmount[playerid], GetPlayerNameEx(playerid), ip, MatsPrice[playerid], GetPlayerNameEx(MatsOffer[playerid]), ipex);
- Log("logs/pay.log", string);
- MatsWarn[playerid][MatsOffer[playerid]] += MatsPrice[playerid];
- if(MatsWarn[playerid][MatsOffer[playerid]] >= 2500 && (PlayerInfo[MatsOffer[playerid]][pLevel] <= 3 || PlayerInfo[playerid][pLevel] <= 3))
- {
- format(string, sizeof(string), "%s (IP:%s) has sold %s (IP:%s) $%d of materials in this session.", GetPlayerNameEx(MatsOffer[playerid]), ipex, GetPlayerNameEx(playerid), ip, MatsWarn[playerid][MatsOffer[playerid]]);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- format(string, sizeof(string), "* You bought %d materials for $%d from %s.", MatsAmount[playerid], MatsPrice[playerid], GetPlayerNameEx(MatsOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has bought your %d materials, the $%d was added to your money.", GetPlayerNameEx(playerid), MatsAmount[playerid], MatsPrice[playerid]);
- SendClientMessage(MatsOffer[playerid], COLOR_LIGHTBLUE, string);
- GivePlayerCash(MatsOffer[playerid], MatsPrice[playerid]);
- GivePlayerCash(playerid, -MatsPrice[playerid]);
- PlayerInfo[playerid][pMats] += MatsAmount[playerid];
- PlayerInfo[MatsOffer[playerid]][pMats] -= MatsAmount[playerid];
- MatsOffer[playerid] = 999;
- MatsPrice[playerid] = 0;
- MatsAmount[playerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford those materials!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "No-one offered you any materials!");
- return 1;
- }
- }
- else if(strcmp(params,"weapon",true) == 0) {
- if(GunOffer[playerid] < 999) {
- if(IsPlayerConnected(GunOffer[playerid])) {
- if(ProxDetectorS(5.0, playerid, GunOffer[playerid])) {
- if(GetPVarInt(playerid, "Hospital") == 1 || GetPVarInt(playerid, "Hospital") == 2 || GetPVarInt(playerid, "Hospital") == 3 || GetPVarInt(playerid, "Hospital") == 4 || GetPVarInt(playerid, "Hospital") == 5) {
- SendClientMessage(playerid, COLOR_GREY, "You can't spawn a weapon whilst in Hospital.");
- return 1;
- }
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Please exit the vehicle, before using this command.");
- new weaponname[32];
- GetWeaponName(GunId[playerid], weaponname, sizeof(weaponname));
- format(string, sizeof(string), " You have given %s, a %s.", GetPlayerNameEx(playerid),weaponname);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(GunOffer[playerid], COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved a %s from %s.", weaponname, GetPlayerNameEx(GunOffer[playerid]));
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s created a Gun from Materials, and hands it to %s.", GetPlayerNameEx(GunOffer[playerid]), GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerValidWeapon(playerid,GunId[playerid],50000);
- //new ip[32], ipex[32];
- //GetPlayerIp(playerid, ip, sizeof(ip));
- //GetPlayerIp(GunOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[WEAPON DEAL] %s(IP:%s) has bought a %s from %s(IP:%s)", GetPlayerNameEx(playerid), ip, weaponname, GetPlayerNameEx(GunOffer[playerid]), ipex);
- //Log("logs/pay.log", string);
- PlayerInfo[GunOffer[playerid]][pMats] -= GunMats[playerid];
- if(GunId[playerid] > 15) {
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour)) {
- PlayerInfo[GunOffer[playerid]][pArmsSkill] += 2;
- SendClientMessage(GunOffer[playerid], COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else {
- SendClientMessage(GunOffer[playerid], COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[GunOffer[playerid]][pArmsSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[GunOffer[playerid]][pArmsSkill]++;
- }
- }
- if(PlayerInfo[GunOffer[playerid]][pArmsSkill] == 50)
- { SendClientMessage(GunOffer[playerid], COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 2, more weapons are available to sell."); }
- else if(PlayerInfo[GunOffer[playerid]][pArmsSkill] == 100)
- { SendClientMessage(GunOffer[playerid], COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 3, more weapons are available to sell."); }
- else if(PlayerInfo[GunOffer[playerid]][pArmsSkill] == 200)
- { SendClientMessage(GunOffer[playerid], COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 4, more weapons are available to sell."); }
- else if(PlayerInfo[GunOffer[playerid]][pArmsSkill] == 400)
- { SendClientMessage(GunOffer[playerid], COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 5, more weapons are available to sell."); }
- GunOffer[playerid] = 999;
- GunId[playerid] = 0;
- GunMats[playerid] = 0;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, "You need to be the near the player that is selling you the weapon!");
- return 1;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Weapon!");
- return 1;
- }
- }
- else if(strcmp(params,"bodyguard",true) == 0) {
- if(GuardOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) > GuardPrice[playerid]) {
- if(IsPlayerConnected(GuardOffer[playerid])) {
- if(ProxDetectorS(6.0, playerid, GuardOffer[playerid])) {
- new Float:armour;
- GetPlayerArmour(playerid, armour);
- if(armour >= 50) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You already have a vest!");
- return 1;
- }
- if(PlayerBoxing[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't accept bodyguard while boxing.");
- return 1;
- }
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(GuardOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[BODYGUARD] %s (IP:%s) has paid $%d to %s (IP:%s)", GetPlayerNameEx(playerid), ip, GuardPrice[playerid], GetPlayerNameEx(GuardOffer[playerid]), ipex);
- // Log("logs/pay.log", string);
- GuardWarn[playerid][GuardOffer[playerid]] += GuardPrice[playerid];
- if(GuardWarn[playerid][GuardOffer[playerid]] >= 2500 && (PlayerInfo[GuardOffer[playerid]][pLevel] <= 3 || PlayerInfo[playerid][pLevel] <= 3)) {
- format(string, sizeof(string), "%s (IP:%s) has guarded %s (IP:%s) $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(GuardOffer[playerid]), ipex, GuardWarn[playerid][GuardOffer[playerid]]);
- // Log("logs/pay.log", string);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- SetPlayerArmourEx(playerid, 50);
- GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You accepted the protection for $%d from %s.",GuardPrice[playerid],GetPlayerNameEx(GuardOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s accepted your protection, and the $%d was added to your money.",GetPlayerNameEx(playerid),GuardPrice[playerid]);
- SendClientMessage(GuardOffer[playerid], COLOR_LIGHTBLUE, string);
- GivePlayerCash(GuardOffer[playerid], GuardPrice[playerid]);
- GivePlayerCash(playerid, -GuardPrice[playerid]);
- GuardOffer[playerid] = 999;
- GuardPrice[playerid] = 0;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not near the person offering you guard!");
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the Protection!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you any Protection!");
- return 1;
- }
- }
- else if(strcmp(params,"dicebet",true) == 0) {
- if(BetOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) >= BetPrice[playerid]) {
- if(IsPlayerConnected(BetOffer[playerid])) {
- if(ProxDetectorS(6.0, playerid, BetOffer[playerid])) {
- GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
-
- if(BetOffer[playerid] == 999)
- {
- SCM(playerid, COLOR_WHITE, "Your bet has been cancelled or the player might have logged off.");
- return 1;
- }
-
-
- if(GetPVarInt(playerid, "betConfirm") == 0)
- {
- SetPVarInt(playerid, "betConfirm", 1);
- format(string, sizeof(string), "* Are you really sure to bet with %s for $%s, type /accept dicebet to confirm.", giveplayer, Comma(BetPrice[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- else
- {
- DeletePVar(playerid, "betConfirm");
- new dice1 = random(12)+1; // playerid
- new dice2 = random(12)+1; // betoffer
-
- if(IsCheatingDC[playerid] == 1)
- {
- dice1 = 12;
- }
-
- if(dice1 == dice2 && dice2 == dice1)
- {
- format(string, sizeof(string), "* %s rolls two dices that land on a total of %d with a bet of $%s.", GetPlayerNameEx(playerid), dice1, Comma(BetPrice[playerid]));
- ProxDetector(30.0, playerid, string, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG);
- format(string, sizeof(string), "* %s rolls two dices that land on a total of %d with a bet of $%s.", GetPlayerNameEx(BetOffer[playerid]), dice2, Comma(BetPrice[playerid]));
- ProxDetector(30.0, playerid, string, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG);
- format(string, sizeof(string), "* Nobody has won the bet of $%s because the dice landed on the same amount.", Comma(BetPrice[playerid]));
- SendClientMessage(playerid, -1, string);
- SendClientMessage(BetOffer[playerid], -1, string);
- }
- else if(dice1 >= dice2 && dice2 <= dice1)
- {
- GivePlayerCash(BetOffer[playerid], -BetPrice[playerid]);
- GivePlayerCash(playerid, BetPrice[playerid]);
- format(string, sizeof(string), "* %s rolls two dices that land on a total of %d with a bet of $%s.", GetPlayerNameEx(playerid), dice1, Comma(BetPrice[playerid]));
- ProxDetector(30.0, playerid, string, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG);
- format(string, sizeof(string), "* %s rolls two dices that land on a total of %d with a bet of $%s.", GetPlayerNameEx(BetOffer[playerid]), dice2, Comma(BetPrice[playerid]));
- ProxDetector(30.0, playerid, string, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG);
- format(string, sizeof(string), "* %s has won the bet for $%s.", GetPlayerNameEx(playerid), Comma(BetPrice[playerid]));
- SendClientMessage(playerid, -1, string);
- SendClientMessage(BetOffer[playerid], -1, string);
- }
- else if(dice2 >= dice1 && dice1 <= dice2)
- {
- GivePlayerCash(BetOffer[playerid], BetPrice[playerid]);
- GivePlayerCash(playerid, -BetPrice[playerid]);
- format(string, sizeof(string), "* %s rolls two dices that land on a total of %d with a bet of $%s.", GetPlayerNameEx(playerid), dice1, Comma(BetPrice[playerid]));
- ProxDetector(30.0, playerid, string, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG);
- format(string, sizeof(string), "* %s rolls two dices that land on a total of %d with a bet of $%s.", GetPlayerNameEx(BetOffer[playerid]), dice2, Comma(BetPrice[playerid]));
- ProxDetector(30.0, playerid, string, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG, COLOR_NG);
- format(string, sizeof(string), "* %s has won the bet for $%s.", GetPlayerNameEx(BetOffer[playerid]), Comma(BetPrice[playerid]));
- SendClientMessage(playerid, -1, string);
- SendClientMessage(BetOffer[playerid], -1, string);
- }
- format(string, sizeof(string), "* You accepted the bet for $%s from %s.",Comma(BetPrice[playerid]),GetPlayerNameEx(BetOffer[playerid]));
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "* %s accepted your dice bet offer for $%s.",GetPlayerNameEx(playerid),Comma(BetPrice[playerid]));
- SendClientMessage(BetOffer[playerid], -1, string);
- BetOffer[playerid] = 999;
- BetPrice[playerid] = 0;
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not near the person offering you bet!");
- return 1;
- }
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the bet!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you any bet!");
- return 1;
- }
- }
- else if(strcmp(params,"sex",true) == 0) {
- if(SexOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) > SexPrice[playerid]) {
- if(IsPlayerConnected(SexOffer[playerid])) {
- new Car = GetPlayerVehicleID(playerid);
- if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(SexOffer[playerid], Car)) {
- GetPlayerName(SexOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You had sex with Whore %s, for $%d.", giveplayer, SexPrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s had sex with you. You have earned $%d.", sendername, SexPrice[playerid]);
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, string);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(SexOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[SEX] %s (IP:%s) had sex with %s (IP:%s) for %d.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(SexOffer[playerid]), ipex, SexPrice[playerid]);
- //Log("logs/pay.log", string);
- SexWarn[playerid][SexOffer[playerid]] += SexPrice[playerid];
- if(SexWarn[playerid][SexOffer[playerid]] >= 2500 && (PlayerInfo[SexOffer[playerid]][pLevel] <= 3 || PlayerInfo[playerid][pLevel] <= 3)) {
- format(string, sizeof(string), "%s (IP:%s) had sex with %s (IP:%s) for $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(SexOffer[playerid]), ipex, SexWarn[playerid][SexOffer[playerid]]);
- //Log("logs/pay.log", string);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- GivePlayerCash(SexOffer[playerid], SexPrice[playerid]);
- GivePlayerCash(playerid, -SexPrice[playerid]);
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[SexOffer[playerid]][pSexSkill] += 2;
- SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[SexOffer[playerid]][pSexSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[SexOffer[playerid]][pSexSkill]++;
- }
-
- if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 50) {
- SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 2, you offer better Sex (health) and less chance on STI.");
- }
- else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 100) {
- SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 3, you offer better Sex (health) and less chance on STI.");
- }
- else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 200) {
- SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 4, you offer better Sex (health) and less chance on STI.");
- }
- else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 400) {
- SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 5, you offer better Sex (health) and less chance on STI.");
- }
- if(!GetPVarType(playerid, "STD")) {
- if(Condom[playerid] < 1) {
- new Float:health;
- new level = PlayerInfo[SexOffer[playerid]][pSexSkill];
- if(level >= 0 && level <= 50) {
- GetPlayerHealth(playerid, health);
- if(health < 100) {
- if(health > 90) {
- SetPlayerHealth(playerid, 100);
- }
- else {
- SetPlayerHealth(playerid, health + 10.0);
- }
- }
- new rand = random(sizeof(STD1));
- SetPVarInt(playerid, "STD", STD1[rand]);
- SetPVarInt(SexOffer[playerid], "STD", STD1[rand]);
- if(STD1[rand] == 0) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 10 Health + no STI while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STI while having Sex.");
- }
- else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 10 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 10 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 10 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 51 && level <= 100) {
- GetPlayerHealth(playerid, health);
- if(health < 100) {
- if(health > 80) {
- SetPlayerHealth(playerid, 100);
- }
- else {
- SetPlayerHealth(playerid, health + 20.0);
- }
- }
- new rand = random(sizeof(STD2));
- SetPVarInt(playerid, "STD", STD2[rand]);
- SetPVarInt(SexOffer[playerid], "STD", STD2[rand]);
- if(STD2[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 20 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STI while having Sex."); }
- else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 20 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 20 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 20 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 101 && level <= 200) {
- GetPlayerHealth(playerid, health);
- if(health < 100) {
- if(health > 70) {
- SetPlayerHealth(playerid, 100);
- }
- else {
- SetPlayerHealth(playerid, health + 30.0);
- }
- }
- new rand = random(sizeof(STD3));
- SetPVarInt(playerid, "STD", STD3[rand]);
- SetPVarInt(SexOffer[playerid], "STD", STD3[rand]);
- if(STD3[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + no STI while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STI while having Sex."); }
- else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 201 && level <= 400) {
- GetPlayerHealth(playerid, health);
- if(health < 100) {
- if(health > 60) {
- SetPlayerHealth(playerid, 100);
- }
- else {
- SetPlayerHealth(playerid, health + 40.0);
- }
- }
- new rand = random(sizeof(STD4));
- SetPVarInt(playerid, "STD", STD4[rand]);
- SetPVarInt(SexOffer[playerid], "STD", STD4[rand]);
- if(STD4[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 40 Health + no STI while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STI while having Sex."); }
- else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 40 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); }
- else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 40 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); }
- else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 40 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); }
- }
- else if(level >= 401) {
- GetPlayerHealth(playerid, health);
- if(health > 50) {
- SetPlayerHealth(playerid, 100);
- }
- else {
- SetPlayerHealth(playerid, health + 50.0);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Your Sex Skill Level is so high you gave high health and No STD.");
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The Whore's Sex Skill Level is so high you got high health and No STD.");
- }
- }
- else {
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The player used a Condom.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You used a Condom.");
- Condom[playerid] --;
- }
- }
- else {
- SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* That player was already infected with a STI, can't get another one.");
- }
- SexOffer[playerid] = 999;
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You or the Whore are not both in a Car!");
- return 1;
- }
- } //Connected or not
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the Sex!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You don't have any sex offered by a Whore!");
- return 1;
- }
- }
- else if(strcmp(params,"pot",true) == 0) {
- if(PotOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) > PotPrice[playerid]) {
- if(PlayerInfo[playerid][pPot] < 25) {
- if(IsPlayerConnected(PotOffer[playerid])) {
- if(PlayerInfo[PotOffer[playerid]][pPot] < PotGram[playerid])
- {
- SendClientMessage(playerid,COLOR_GREY, "That player does not have that amount of pot anymore!");
- return 1;
- }
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(PotOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[POT (%d GRAMS)] %s (IP:%s) has paid $%d to %s (IP:%s)", PotGram[playerid], GetPlayerNameEx(playerid), ip, PotPrice[playerid], GetPlayerNameEx(PotOffer[playerid]), ipex);
- //Log("logs/pay.log", string);*/
- PotWarn[playerid][PotOffer[playerid]] += PotPrice[playerid];
- if(PotWarn[playerid][PotOffer[playerid]] >= 2500 && (PlayerInfo[PotOffer[playerid]][pLevel] <= 3 || PlayerInfo[PotOffer[playerid]][pLevel] <= 3)) {
- format(string, sizeof(string), "%s (IP:%s) has sold %s (IP:%s) $%d of pot in this session.", GetPlayerNameEx(PotOffer[playerid]), ipex, GetPlayerNameEx(playerid), ip, PotWarn[playerid][PotOffer[playerid]]);
- //Log("logs/pay.log", string);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- GetPlayerName(PotOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You bought %d gram(s) for $%d from Drug Dealer %s.",PotGram[playerid],PotPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has bought your %d gram(s), the $%d was added to your money.",sendername,PotGram[playerid],PotPrice[playerid]);
- SendClientMessage(PotOffer[playerid], COLOR_LIGHTBLUE, string);
- PlayerInfo[PotOffer[playerid]][pCash] += PotPrice[playerid];
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[PotOffer[playerid]][pDrugsSkill] += 2;
- SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[PotOffer[playerid]][pDrugsSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[PotOffer[playerid]][pDrugsSkill]++;
- }
-
- GivePlayerCash(playerid, -PotPrice[playerid]);
- PlayerInfo[playerid][pPot] += PotGram[playerid];
- PlayerInfo[PotOffer[playerid]][pPot] -= PotGram[playerid];
- if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 50)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams and Cheaper."); }
- else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 100)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams and Cheaper."); }
- else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 200)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams and Cheaper."); }
- else if(PlayerInfo[PotOffer[playerid]][pDrugsSkill] == 400)
- { SendClientMessage(PotOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams and Cheaper."); }
- PotOffer[playerid] = 999;
- PotPrice[playerid] = 0;
- PotGram[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You're fully loaded with Drugs, use them first!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford those Pot!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you any Pot!");
- return 1;
- }
- }
- else if(strcmp(params,"crack",true) == 0) {
- if(CrackOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) > CrackPrice[playerid]) {
- if(PlayerInfo[playerid][pCrack] < 25) {
- if(IsPlayerConnected(CrackOffer[playerid])) {
- if(PlayerInfo[CrackOffer[playerid]][pCrack] < CrackGram[playerid])
- {
- SendClientMessage(playerid,COLOR_GREY, "That player does not have that amount of crack anymore!");
- return 1;
- }
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(CrackOffer[playerid], ipex, sizeof(ipex));
- //format(string, sizeof(string), "[CRACK DEAL (%d GRAMS)] %s (IP:%s) has paid $%d to %s (IP:%s)", CrackGram[playerid], GetPlayerNameEx(playerid), ip, CrackPrice[playerid], GetPlayerNameEx(CrackOffer[playerid]), ipex);
- // Log("logs/pay.log", string);
- CrackWarn[playerid][CrackOffer[playerid]] += CrackPrice[playerid];
- if(CrackWarn[playerid][CrackOffer[playerid]] >= 2500 && (PlayerInfo[CrackOffer[playerid]][pLevel] <= 3 || PlayerInfo[CrackOffer[playerid]][pLevel] <= 3)) {
- format(string, sizeof(string), "%s (IP:%s) has sold %s (IP:%s) $%d of crack in this session.", GetPlayerNameEx(CrackOffer[playerid]), ipex, GetPlayerNameEx(playerid), ip, CrackWarn[playerid][CrackOffer[playerid]]);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- GivePlayerCash(playerid, -CrackPrice[playerid]);
- GivePlayerCash(CrackOffer[playerid], CrackPrice[playerid]);
- GetPlayerName(CrackOffer[playerid], giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You bought %d gram(s) for $%d from Drug Dealer %s.",CrackGram[playerid],CrackPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has bought your %d gram(s), the $%d was added to your money.",sendername,CrackGram[playerid],CrackPrice[playerid]);
- SendClientMessage(CrackOffer[playerid], COLOR_LIGHTBLUE, string);
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[CrackOffer[playerid]][pDrugsSkill] += 2;
- SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[CrackOffer[playerid]][pDrugsSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[CrackOffer[playerid]][pDrugsSkill]++;
- }
-
- PlayerInfo[playerid][pCrack] += CrackGram[playerid];
- PlayerInfo[CrackOffer[playerid]][pCrack] -= CrackGram[playerid];
- if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 50)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams and Cheaper."); }
- else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 100)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams and Cheaper."); }
- else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 200)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams and Cheaper."); }
- else if(PlayerInfo[CrackOffer[playerid]][pDrugsSkill] == 400)
- { SendClientMessage(CrackOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams and Cheaper."); }
- CrackOffer[playerid] = 999;
- CrackPrice[playerid] = 0;
- CrackGram[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You're fully loaded with Crack, use them first!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford that Crack!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you any Crack!");
- return 1;
- }
- }
- else if(strcmp(params,"defense",true) == 0) {
- if(DefendOffer[playerid] < 999) {
- if(GetPlayerCash(playerid) > DefendPrice[playerid]) {
- if(IsPlayerConnected(DefendOffer[playerid])) {
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(DefendOffer[playerid], ipex, sizeof(ipex));
- format(string, sizeof(string), "[LAWYER] %s (IP:%s) has paid $%d to %s (IP:%s)", GetPlayerNameEx(playerid), ip, DefendPrice[playerid], GetPlayerNameEx(DefendOffer[playerid]), ipex);
- Log("logs/pay.log", string);*/
- PlayerInfo[playerid][pWantedLevel]--;
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
- SetPlayerToTeamColor(playerid);
- giveplayer = GetPlayerNameEx(DefendOffer[playerid]);
- sendername = GetPlayerNameEx(playerid);
- format(string, sizeof(string), "* You accepted the Defense for $%d from Lawyer %s.",DefendPrice[playerid],giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s accepted your Defense, and the $%d was added to your money.",sendername,DefendPrice[playerid]);
- SendClientMessage(DefendOffer[playerid], COLOR_LIGHTBLUE, string);
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[DefendOffer[playerid]][pLawSkill] += 2;
- SendClientMessage(DefendOffer[playerid], COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(DefendOffer[playerid], COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[DefendOffer[playerid]][pLawSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[DefendOffer[playerid]][pLawSkill]++;
- }
- GivePlayerCash(DefendOffer[playerid],DefendPrice[playerid]);
- GivePlayerCash(playerid, -DefendPrice[playerid]);
- DefendOffer[playerid] = 999;
- DefendPrice[playerid] = 0;
- return 1;
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " You can't afford the Protection!");
- return 1;
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No-one offered you any Protection!");
- return 1;
- }
- }
- else if(strcmp(params,"faction",true) == 0) {
- if(InviteOffer[playerid] < 999) {
- if(IsPlayerConnected(InviteOffer[playerid])) {
- if(GetPVarInt(playerid, "PBM") > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while playing paintball.");
- return 1;
- }
- if(InviteFaction[playerid] > 0 && InviteFamily[playerid] == 255) {
- PlayerInfo[playerid][pFaction] = InviteFaction[playerid];
- PlayerInfo[playerid][pRank] = 0;
- PlayerInfo[playerid][pDivision] = 0;
- format(string, sizeof(string), "%s has accepted %s's invite to join the %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(InviteOffer[playerid]), factionName(InviteFaction[playerid]));
- Log("logs/faction.log", string);
- format(string, sizeof(string), " You have accepted the invitation and joined the %s, you were invited by %s.", factionName(InviteFaction[playerid]), GetPlayerNameEx(InviteOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), " %s has accepted the invitation and joined the %s.", GetPlayerNameEx(playerid), factionName(InviteFaction[playerid]));
- SendClientMessage(InviteOffer[playerid], COLOR_LIGHTBLUE, string);
- InviteOffer[playerid] = 999;
- InviteFaction[playerid] = 0;
- InviteFamily[playerid] = 255;
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No one has invited you to join an organisation/family!");
- return 1;
- }
- }
- else if(strcmp(params,"crew",true) == 0) {
- if(InviteOffer[playerid] < 999) {
- if(IsPlayerConnected(InviteOffer[playerid])) {
- if(InviteFaction[playerid] == 0 && InviteCrew[playerid] != 255) {
- if(GetPVarInt(playerid, "PBM") >= 1) {
- SendClientMessageEx(playerid, COLOR_WHITE, "Please wait until your Paintball Arena match is over.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailTime] > 1) {
- SendClientMessageEx(playerid, COLOR_WHITE, "Please wait until you are released from jail/prison before you accept the invite.");
- return 1;
- }
- format(string, sizeof(string), " You have accepted the invitation and joined the Family Crew, you were invited by %s.", GetPlayerNameEx(InviteOffer[playerid]));
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), " %s has accepted the invitation and joined the %s.", GetPlayerNameEx(playerid));
- SendClientMessageEx(InviteOffer[playerid], COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pCrew1] = InviteCrew[playerid];
- PlayerInfo[playerid][pCrew2] = InviteCrew1[playerid];
- PlayerInfo[playerid][pCrew3] = InviteCrew2[playerid];
- SaveFamilies();
- SendClientMessageEx(playerid, COLOR_WHITE, "Use (/cr)ew to talk in crew chat.");
- InviteOffer[playerid] = 999;
- InviteCrew[playerid] = 255;
- }
- }
- }
- else {
- SendClientMessageEx(playerid, COLOR_GREY, " No one has invited you to join an organisation/family/crew!");
- return 1;
- }
- }
- else if(strcmp(params,"family",true) == 0) {
- if(InviteOffer[playerid] < 999) {
- if(IsPlayerConnected(InviteOffer[playerid])) {
- if(InviteFaction[playerid] == 0 && InviteFamily[playerid] != 255) {
- if(GetPVarInt(playerid, "PBM") > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while playing paintball.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailTime] > 1) {
- SendClientMessage(playerid, COLOR_WHITE, "Please wait until you're released from jail/prison before you accept the invite.");
- return 1;
- }
- if(PlayerInfo[playerid][pFaction] >= 3 || PlayerInfo[playerid][pGang] != 255 || PlayerInfo[playerid][pLeader] >= 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't accept this invite as you're already in a family/faction.");
- }
- else {
- PlayerInfo[playerid][pGang] = InviteFamily[playerid];
- PlayerInfo[playerid][pRank] = 1;
- FamilyInfo[InviteFamily[playerid]][FamilyMembers] ++;
- FamilyInfo[InviteFamily[playerid]][FamilyOnline] ++;
- PlayerInfo[playerid][pCrew1] = 255;
- PlayerInfo[playerid][pCrew2] = 255;
- PlayerInfo[playerid][pCrew3] = 255;
- SaveFamilies();
- format(string, sizeof(string), " You have accepted the invitation and joined the %s, you were invited by %s.", FamilyInfo[InviteFamily[playerid]][FamilyName], GetPlayerNameEx(InviteOffer[playerid]));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), " %s has accepted the invitation and joined the %s.", GetPlayerNameEx(playerid),FamilyInfo[InviteFamily[playerid]][FamilyName]);
- SendClientMessage(InviteOffer[playerid], COLOR_LIGHTBLUE, string);
- SendClientMessage(playerid, COLOR_WHITE, "Use (/f)amily to talk in family chat. If you wish to acquire a family skin, type /clothes inside a clothing store.");
- /*SetPlayerInterior(playerid,0);
- ChosenSkin[playerid] = FamilyInfo[InviteFamily[playerid]][FamilySkins][0];
- new rand = random(sizeof(gInviteSpawns));
- // Warp the player
- SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
- SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
- TogglePlayerControllable(playerid, 0);
- SetPlayerSkin(playerid, ChosenSkin[playerid]);
- SelectFChar[playerid] = 255;
- SelectFCharID[playerid] = PlayerInfo[playerid][pGang];
- SelectFCharPlace[playerid] = 1;
- PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
- PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
- SendClientMessage(playerid, COLOR_LIGHTRED, "* Use 'next' to browse through the available skins.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "* If you've found the skin you wish to use, type 'done'.");*/
- InviteOffer[playerid] = 999;
- InviteFaction[playerid] = 0;
- InviteFamily[playerid] = 255;
- }
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, " No one has invited you to join an organisation/family!");
- return 1;
- }
- }
- }
- return 1;
- }
- CMD:payday(playerid, params[])
- {
- return cmd_paycheck(playerid, params);
- }
- CMD:paycheck(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- foreach(Player, i)
- {
- if(WasHereForPaycheck[i] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "The paycheck codes of the last paycheck have not expired yet.");
- return 1;
- }
- }
- PayDay();
- }
- return 1;
- }
- CMD:veh(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new
- iVehicle,
- iColors[2] = { -1, -1 };
- if(sscanf(params, "iII", iVehicle, iColors[0], iColors[1]))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [model ID] [(optional) color 1] [(optional) color 2]");
- }
- else if(!(400 <= iVehicle <= 611))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid model specified (model IDs start at 400, and end at 611).");
- }
- else if(iColors[0] < -1 || iColors[0] > 255 || iColors[1] < -1 || iColors[1] > 255) {
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid colour specified (IDs start at -1, and end at 255).");
- }
- else if(CreatedCarsCount >= 50)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Only a maximum of 50 cars can be admin spawned at a time. Use /destroycar or /destroycars");
- return 1;
- }
- else for(new iIterator; iIterator < sizeof(CreatedCars); iIterator++) if(CreatedCars[iIterator] == INVALID_VEHICLE_ID)
- {
- new
- Float: fVehPos[4];
- GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]);
- GetPlayerFacingAngle(playerid, fVehPos[3]);
- CreatedCars[iIterator] = CreateVehicle(iVehicle, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], iColors[0], iColors[1], -1);
- CreatedCarsCount++;
- LinkVehicleToInterior(CreatedCars[iIterator], GetPlayerInterior(playerid));
- return SendClientMessage(playerid, COLOR_GREY, "Vehicle spawned!");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:vehname(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_NEWS,"___________________________________________________________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "Vehicle Search:");
- new
- string[128];
- if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "No keyword specified.");
- if(!params[2]) return SendClientMessage(playerid, COLOR_GREY, "Search keyword too short.");
- for(new v; v < sizeof(VehicleName); v++) {
- if(strfind(VehicleName[v], params, true) != -1) {
- if(isnull(string)) format(string, sizeof(string), "%s (ID %d)", VehicleName[v], v+400);
- else format(string, sizeof(string), "%s | %s (ID %d)", string, VehicleName[v], v+400);
- }
- }
- if(!string[0]) SendClientMessage(playerid, COLOR_GREY, "No results found.");
- else if(string[127]) SendClientMessage(playerid, COLOR_GREY, "Too many results found.");
- else SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_NEWS,"___________________________________________________________________________________________________");
- }
- return 1;
- }
- CMD:fixveh(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendClientMessage(playerid, COLOR_GREY, "Vehicle Fixed!");
- }
- }
- return 1;
- }
- CMD:fixvehall(playerid, params[])
- {
- if(IsPlayerConnected(playerid)) {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- for(new v = 0; v < MAX_VEHICLES; v++) {
- RepairVehicle(v);
- }
- SendClientMessage(playerid, COLOR_GREY, "All vehicles fixed!");
- }
- return 1;
- }
- CMD:grab(playerid, params[]) return cmd_restrain(playerid, params);
- CMD:drag(playerid, params[]) return cmd_restrain(playerid, params);
- CMD:unrestrain(playerid, params[]) return cmd_restrain(playerid, params);
- CMD:restrain(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2) {
- new id, string[ 128 ];
- if( sscanf( params, "u", id ) )
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /drag [playerid/partofname]");
- if(!IsPlayerConnected(id))
- return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- if(GetDistanceBetweenPlayers(id, playerid) > 4)
- return SendClientMessage(playerid, COLOR_GREY, "You're not close enough to the player!");
- if(PlayerCuffed[id] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "That person isn't cuffed.");
- if(PlayerCuffed[id] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't drag a tazed player.");
- if(id == playerid)
- return SendClientMessage(playerid, COLOR_GREY, "You can't restrain yourself!");
- if(GetPlayerState(id) != PLAYER_STATE_ONFOOT)
- return SendClientMessage(playerid, COLOR_GREY, "That person is in a car - get them out first.");
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- return SendClientMessage(playerid, COLOR_GREY, "You're in a car - get out first.");
- if(GetPVarInt(playerid, "PBM") > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- if(GetPVarInt(playerid, "EventToken") != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't use the tazer while you're in an event.");
- if(PlayerCuffedTime[playerid] > 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- if(GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- if(PlayerInfo[playerid][pJailed] > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
- if(PlayerCuffed[playerid] >= 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't use this while tazed/cuffed.");
- if(GetPVarInt(id, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't cuff injured people.");
- if(PlayerDragged[id] == 1) {
- format(string, sizeof(string), "* %s looks into %s's eyes and then slowly releases them.", GetPlayerNameEx(playerid), GetPlayerNameEx(id));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- GameTextForPlayer(id, "~r~Released!", 2500, 3);
- IsCopDragging[PlayerDraggedBy[id]] = INVALID_PLAYER_ID;
- PlayerDragged[id] = 0;
- PlayerDraggedBy[id] = INVALID_PLAYER_ID;
- DeletePVar(playerid, "Dragging");
- } else {
- if(IsCopDragging[playerid] != INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "You can't drag more than one person.");
- format(string, sizeof(string), "* %s quickly grabs %s by the right arm, restraining them.", GetPlayerNameEx(playerid), GetPlayerNameEx(id));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
- GameTextForPlayer(id, "~r~Restrained!", 2500, 3);
- ApplyAnimation(id, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
- SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);
- PlayerDragged[id] = 1;
- PlayerDraggedBy[id] = playerid;
- IsCopDragging[playerid] = id;
- SetPVarInt(playerid, "Dragging", id);
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI!");
- return true;
- }
- CMD:destroycars(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- if(CreatedCars[i] != INVALID_VEHICLE_ID)
- {
- DestroyVehicle(CreatedCars[i]);
- VehicleRadioStation[CreatedCars[i]] = 0;
- CreatedCarsCount = 0;
- CreatedCars[i] = INVALID_VEHICLE_ID;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Created vehicles destroyed!");
- return 1;
- }
- CMD:destroycar(playerid, params[])
- {
- new string[128];
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new bool:breakingloop = false, newid = INVALID_VEHICLE_ID;
- if(IsPlayerInAnyVehicle(playerid))
- {
- for(new i=0;i<sizeof(CreatedCars);i++)
- {
- if(!breakingloop)
- {
- if(CreatedCars[i] == GetPlayerVehicleID(playerid)) // Checking for next available ID.
- {
- breakingloop = true;
- newid = i;
- }
- }
- }
- if(newid != INVALID_VEHICLE_ID)
- {
- new carid = GetPlayerVehicleID(playerid);
- DestroyVehicle(carid);
- VehicleRadioStation[carid] = 0;
- CreatedCarsCount--;
- CreatedCars[newid] = INVALID_VEHICLE_ID;
- format(string, sizeof(string), "Car %d destroyed.", carid);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- return 1;
- }
- CMD:healnear(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- new count;
- foreach(Player, i) {
- if(ProxDetectorS(12.0, playerid, i)) {
- SetPlayerHealth(i, 100);
- SetPlayerArmourEx(i, 100);
- count++;
- }
- }
- format(string, sizeof(string), "You have healed everyone (%d) nearby.", count);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- CMD:guardnear(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] >= 3)
- {
- if(PlayerInfo[playerid][pJob] != 8 && PlayerInfo[playerid][pJob2] != 8)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a bodyguard.");
- return 1;
- }
-
- new string[128], price;
- if(sscanf(params, "d", price)) return SCM(playerid, -1, "USAGE: /guardnear [price]");
- if(price < 200 || price > 1000) { SendClientMessage(playerid, COLOR_GREY, "Specified price must be between $200 and $1000."); return 1; }
- if(GetPVarInt(playerid, "GuardTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before selling another vest.", GetPVarInt(playerid, "GuardTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
-
- new count;
- foreach(Player, i) {
- if(ProxDetectorS(15.0, playerid, i)) {
- if(playerid == i) return 1;
- SetPVarInt(playerid, "GuardTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GUARDTIMER);
- format(string, sizeof(string), "* You offered protection to %s for $%d.", GetPlayerNameEx(i), price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Bodyguard %s wants to protect you for $%d, type /accept bodyguard to accept.", GetPlayerNameEx(playerid), price);
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- GuardOffer[i] = playerid;
- GuardPrice[i] = price;
- count++;
- }
- }
- }
- else return SCM(playerid, COLOR_GREY, " You must be a Diamond Donator to use this feature!");
- return 1;
- }
- CMD:sethp(playerid, params[])
- {
- new string[128], playa, health;
- if(sscanf(params, "ud", playa, health))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sethp [playerid/partofname] [health]");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerConnected(playa)) {
- if(playa != INVALID_PLAYER_ID)
- {
- SetPlayerHealth(playa, health);
- format(string, sizeof(string), "You have set %s's health to %d.", GetPlayerNameEx(playa), health);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:setarmor(playerid, params[])
- {
- new string[128], playa, health;
- if(sscanf(params, "ud", playa, health))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setarmor [playerid/partofname] [armor]");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- SetPlayerArmourEx(playa, health);
- format(string, sizeof(string), "You have set %s's armor to %d.", GetPlayerNameEx(playa), health);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:setarmorall(playerid, params[])
- {
- new armor;
- if(sscanf(params, "d", armor)) {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setarmorall [armor]");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- foreach(Player, i)
- {
- SetPlayerArmourEx(i, armor);
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:givegun(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new sstring[128], playa, gun;
- if(sscanf(params, "ud", playa, gun)) {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givegun [playerid/partofname] [weaponid]");
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- SendClientMessage(playerid, COLOR_GRAD4, "1: Brass Knuckles 2: Golf Club 3: Nite Stick 4: Knife 5: Baseball Bat 6: Shovel 7: Pool Cue 8: Katana 9: Chainsaw");
- SendClientMessage(playerid, COLOR_GRAD4, "10: Purple Dildo 11: Small White Vibrator 12: Large White Vibrator 13: Silver Vibrator 14: Flowers 15: Cane 16: Frag Grenade");
- SendClientMessage(playerid, COLOR_GRAD3, "17: Tear Gas 18: Molotov Cocktail 19: Vehicle Missile 20: Hydra Flare 21: Jetpack 22: 9mm 23: Silenced 9mm 24: Desert Eagle");
- SendClientMessage(playerid, COLOR_GRAD4, "26: Sawnoff Shotgun 27: Combat Shotgun 28: Micro SMG (Mac 10) 29: SMG (MP5) 30: AK-47 31: M4 32: Tec9 33: Rifle");
- SendClientMessage(playerid, COLOR_GRAD4, "25: Shotgun 34: Sniper Rifle 35: Rocket Launcher 36: HS Rocket Launcher 37: Flamethrower 38: Minigun 39: Satchel Charge");
- SendClientMessage(playerid, COLOR_GRAD4, "40: Detonator 41: Spraycan 42: Fire Extinguisher 43: Camera 44: Nightvision Goggles 45: Infared Goggles 46: Parachute");
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- return 1;
- }
- if(gun < 1||gun > 47)
- { SendClientMessage(playerid, COLOR_GRAD1, "Invalid weapon ID!"); return 1; }
- if(IsPlayerConnected(playa)) {
- if(PlayerInfo[playa][pConnectTime] < 2 && gun != 46 && gun != 43) return SendClientMessage(playerid, COLOR_GRAD2, "That player is currently restricted from carrying weapons");
- if(playa != INVALID_PLAYER_ID && gun <= 20 || gun >= 22) {
- GivePlayerValidAdminWeapon(playa, gun, 60000);
- new weaponname[32];
- GetWeaponName(gun, weaponname, sizeof(weaponname));
- format(sstring, sizeof(sstring), "You have given %s gun ID %d (%s)!",GetPlayerNameEx(playa), gun, weaponname);
- SendClientMessage(playerid, COLOR_GRAD1, sstring);
- }
- else if(playa != INVALID_PLAYER_ID && gun == 21) {
- JetPack[playa] = 1;
- SetPlayerSpecialAction(playa, SPECIAL_ACTION_USEJETPACK);
- SendClientMessage(playerid, COLOR_GRAD1, sstring);
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:signcheck(playerid, params[])
- {
- if(PayCheckCode[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "There is no paycheck to sign. Please wait for the next paycheck.");
- new string[128];
- format(string, sizeof(string), "Check code: %d\n\nEnter your check code to receive your paycheck:", PayCheckCode[playerid]);
- ShowPlayerDialogEx(playerid, SIGNCHECK, DIALOG_STYLE_INPUT, "Sign check", string, "Sign check","Cancel");
- return 1;
- }
- CMD:drop(playerid, params[]) {
- new string[128], choice[32];
- if(sscanf(params, "s[32]", choice))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /drop [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Weapons, Pot, Crack, Materials, Packages, Crates, Radio, Pizza");
- return 1;
- }
- if(strcmp(choice,"materials",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] > 0)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "You have dropped %d materials.", PlayerInfo[playerid][pMats]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "* %s has thrown away their materials.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pMats] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not carrying any materials to throw away!");
- }
- }
- else if(strcmp(choice,"radio",true) == 0)
- {
- if(PlayerInfo[playerid][pRadio] != 0)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s has thrown away their portable radio.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pRadio] = 0;
- PlayerInfo[playerid][pRadioFreq] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not carrying a portable radio to throw away!");
- }
- }
- else if(strcmp(choice,"weapons",true) == 0)
- {
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- return 1;
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- ResetPlayerWeaponsEx(playerid);
- format(string, sizeof(string), "* %s has thrown away their Weapons.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if(strcmp(choice,"pot",true) == 0)
- {
- if(PlayerInfo[playerid][pPot] > 0)
- {
- format(string, sizeof(string), "You have dropped %d grams of pot.", PlayerInfo[playerid][pPot]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s has thrown away their pot.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pPot] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not carrying any pot to throw away!");
- }
- }
- else if(strcmp(choice,"crack",true) == 0)
- {
- if(PlayerInfo[playerid][pCrack] > 0)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "You have dropped %d grams of crack.", PlayerInfo[playerid][pCrack]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "* %s has thrown away their crack.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pCrack] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not carrying any crack to throw away!");
- }
- }
- else if(strcmp(choice,"packages",true) == 0) {
- if(GetPVarType(playerid, "Packages") > 0) {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s has thrown away their material packages.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- GivePlayerCash(playerid, 50); // refund their packages
- DeletePVar(playerid, "tpMatRunTimer");
- DeletePVar(playerid, "Packages");
- DeletePVar(playerid, "MatDelivery");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not carrying any material packages to throw away!");
- }
- else if(strcmp(choice,"crates",true) == 0)
- {
- if(PlayerInfo[playerid][pCrates] > 0)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s has thrown away their drug crates.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pCrates] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not carrying any drug crates to throw away!");
- }
- }
- else if(strcmp(choice,"pizza",true) == 0)
- {
- if(GetPVarInt(playerid, "Pizza") > 0)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* %s has thrown away their pizza delivery.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "Pizza", 0);
- DestroyProgressBar(PizzaBar[playerid]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not delivering any pizzas!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /drop [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Weapons, Pot, Crack, Materials, Packages, Crates, Radio");
- }
- return 1;
- }
- CMD:setfightstyle(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, fightstyle;
- if(sscanf(params, "ud", giveplayerid, fightstyle))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setfightstyle [playerid/partofname] [fightstyle]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available fighting styles: 4, 5, 6, 7, 15, 26.");
- return 1;
- }
- if(fightstyle > 3 && fightstyle < 8 || fightstyle == 15 || fightstyle == 26)
- {
- format(string, sizeof(string), " Your fighting style has been changed to %d.", fightstyle);
- SendClientMessage(giveplayerid,COLOR_YELLOW,string);
- format(string, sizeof(string), " You have changed %s's fighting style to %d.", GetPlayerNameEx(giveplayerid), fightstyle);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- SetPlayerFightingStyle(giveplayerid, fightstyle);
- PlayerInfo[playerid][pFightStyle] = fightstyle;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:hospital(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(GetPVarInt(playerid, "Hospital") > 0)
- {
- DeletePVar(playerid, "HospitalTimer");
- HospitalSpawn(playerid);
- DeletePVar(playerid, "Hospital");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the hospital!");
- }
- }
- return 1;
- }
- CMD:payhelp(playerid, params[])
- {
- ShowPlayerDialogEx(playerid,INFO_DIALOG,DIALOG_STYLE_MSGBOX,"Paycheck information","Paychecks come in every hour and require you to sign them with /signcheck.\n\nThe longer you play in the hour, the bigger your paycheck.\n\nThe higher your level, the bigger your paycheck.\n\nPaychecks go directly to your bank account rather than your on-hand cash.\n\nIf you miss a paycheck, then the missed amount will be added to your next paycheck.","Close","");
- return 1;
- }
- CMD:taxhelp(playerid, params[])
- {
- ShowPlayerDialogEx(playerid,INFO_DIALOG,DIALOG_STYLE_MSGBOX,"Income tax information","Paychecks have a progressive income tax as opposed to a flat tax.\n\nThis basically means that the higher your paycheck is, the higher the percentage of income tax.\n\nThe percentages are as following:\n\nAnything below $1250 - 10% taxation\n$1250 to $1999 - 15% taxation\n$2000 to $2499 - 25% taxation\n$2500 to $3499 - 30% taxation\nAnything above $3500 - 35% taxation","Close","");
- return 1;
- }
- CMD:refhelp(playerid, params[])
- {
- ShowPlayerDialogEx(playerid,12768,DIALOG_STYLE_MSGBOX,"Referral system information", "The referral system allows players to refer their friends to the server and receive a reward for doing so.\n\nIn the registration screen the new player can enter a player's name if they were referred by a friend.\n\nIf the new player reaches 8 playing hours then the person who referred them will receive 1 referral token.","Next","");
- return 1;
- }
- CMD:destroycheckpoint(playerid, params[]) {
- return cmd_killcheckpoint(playerid, params);
- }
- CMD:kcp(playerid, params[]) return cmd_killcheckpoint(playerid, params);
- CMD:killcheckpoint(playerid, params[]) {
- TaxiAccepted[playerid] = 999;
- BusAccepted[playerid] = 999;
- MedicAccepted[playerid] = 999;
- DeletePVar(playerid, "Trashup");
- MechanicCallTime[playerid] = 0;
- DeletePVar(playerid, "TrackCar");
- DeletePVar(playerid, "CrateDeliver");
- DeletePVar(playerid, "Packages");
- EMSAccepted[playerid] = 999;
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- TaxiCallTime[playerid] = 0;
- BusCallTime[playerid] = 0;
- EMSCallTime[playerid] = 0;
- DeletePVar(playerid, "Pizza");
- CP[playerid] = 0;
- FindingJob[playerid] = 0;
- FindingDealership[playerid] = 0;
- SendClientMessage(playerid,COLOR_WHITE,"All current checkpoints, trackers and accepted fares have been reset.");
- return 1;
- }
- CMD:finddealership(playerid, params[]) {
- if(CheckPointCheck(playerid))
- return SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- new
- szDealershipName[128],
- szMessage[1024];
- for(new d = 0; d < sizeof(CarDealershipInfo); d++) {
- if(CarDealershipInfo[d][cdEntranceX] != 0.0 && CarDealershipInfo[d][cdEntranceY] != 0.0) {
- if(CarDealershipInfo[d][cdOwned]) {
- format(szDealershipName, sizeof(szDealershipName), "%s\n", CarDealershipInfo[d][cdMessage]);
- strcat(szMessage, szDealershipName, sizeof(szMessage));
- }
- }
- }
- if(strlen(szMessage) == 0)
- {
- strcat(szMessage, "No dealership were found.", sizeof(szMessage));
- }
- ShowPlayerDialogEx(playerid, FINDDEALERSHIPMENU, DIALOG_STYLE_LIST, "Sleepless Roleplay - Dealerships", szMessage, "Select", "Cancel");
- return 1;
- }
- CMD:findcartuning(playerid, params[])
- {
- if(CheckPointCheck(playerid))
- return SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- ShowPlayerDialogEx(playerid, FINDCARTUNINGMENU, DIALOG_STYLE_LIST, "Select a vehicle tuning garage", "TransFender - San Fierro\nWheel Arch Angels - San Fierro\nLowRider Tuning Garage - Los Santos\nTransFender - Los Santos\nTransFender - Las Venturas", "Select", "Cancel");
- return 1;
- }
- CMD:help(playerid, params[])
- {
- if(PlayerInfo[playerid][pLevel] <= 3)
- {
- SendClientMessage(playerid, COLOR_WHITE,"*** HELP *** /report (/newb)ie /tognewbie /reportdm");
- }
- SendClientMessage(playerid, COLOR_WHITE,"*** ACCOUNT *** /rules /(net)stats /inventory /myguns /buylevel /upgrade /changepass /killcheckpoint /resetupgrades(10k)");
- SendClientMessage(playerid, COLOR_WHITE,"*** CHAT *** /w(hisper) /o(oc) /s(hout) /l(ow) /b /ad(vertise) /f(amily) /me /toggc /togfam /togwhisper /tourhouse");
- SendClientMessage(playerid, COLOR_WHITE,"*** BANK *** /balance /withdraw /deposit /wiretransfer /abalance /awithdraw /adeposit /awiretransfer");
- SendClientMessage(playerid, COLOR_WHITE,"*** GENERAL *** /pay /charity /time /buy /id /music /showlicenses /clothes /buyclothes /tognews");
- SendClientMessage(playerid, COLOR_WHITE,"*** GENERAL *** /skill /stopani /do /me /kill /droplicense /calculate /car /families /requesthelp");
- SendClientMessage(playerid, COLOR_WHITE,"*** GENERAL *** /fixmyvw /cancel /accept /eject /usepot /usecrack /contract /service /checkweed /information");
- SendClientMessage(playerid, COLOR_WHITE,"*** OTHER *** /bizhelp /cellphonehelp /carhelp /househelp /toyhelp /renthelp /jobhelp");
- SendClientMessage(playerid, COLOR_WHITE,"*** OTHER *** /samphelp /backpackhelp /crewhelp /leaderhelp /animhelp /fishhelp /insurehelp");
- //SendClientMessage(playerid, COLOR_LIGHTBLUE,"*** MINIGAME/HUNGERGAME *** /joingame /joingame2 /claimgift /restartgame /getwep /survivors /exitgame");
- switch(PlayerInfo[playerid][pJob])
- {
- case 1: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /find");
- case 2: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /lawyerduty /free /defend /wanted");
- case 3: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sex");
- case 4: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sellpot /sellcrack /getcrack /getseeds /plantseeds /pickweed /checkweed");
- case 5: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /dropcar");
- case 7: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fix /nos /hyd /repair /mechduty");
- case 8: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /guard /frisk");
- case 9: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getmats /sellmats /sellgun");
- //case 10: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sellnewcar");
- case 12: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fight");
- case 14: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getcrate");
- //case 15: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /papers /bring /deliver");
- case 17: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fare");
- case 18: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getmats /sellmats /craft");
- case 19: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /selldrink");
- case 20: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /loadtruck /checktruck /hijacktruck");
- case 21: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getpizza");
- }
- switch(PlayerInfo[playerid][pJob2])
- {
- case 1: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /find");
- case 2: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /lawyerduty /free /defend /wanted");
- case 3: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sex");
- case 4: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sellpot /sellcrack /getcrack /getseeds /plantseeds /pickweed /checkweed");
- case 5: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /dropcar");
- case 7: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fix /nos /hyd /repair /refill /mechduty");
- case 8: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /guard /frisk");
- case 9: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getmats /sellmats /sellgun");
- //case 10: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sellnewcar");
- case 12: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fight");
- case 14: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getcrate");
- //case 15: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /papers /bring /deliver");
- case 17: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fare");
- case 18: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getmats /sellmats /craft");
- case 19: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /selldrink");
- case 20: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /loadtruck /checktruck /hijacktruck");
- case 21: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getpizza");
- }
-
- switch(PlayerInfo[playerid][pFaction]) {
- case 1: {
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "*** LSPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /detain /arrest /wanted /cuff /tazer");
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "*** LSPD *** /frisk /take /ticket (/gov)ernment /ram /invite /giverank /deployspikes /destroyspikes /spikestrips /badge");
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "*** LSPD *** /deploycade /destroycade /revokedl /vcheck /vmdc /vticket /tow /untow /impound /dmvrelease /lspddiv");
- SendClientMessage(playerid, TEAM_BLUE_COLOR, "*** LSPD *** /searchcar /checktruck /radargun /backup /destroyplant /warrantarrest");
- }
- case 2: {
- SendClientMessage(playerid, TEAM_FBI_COLOR, "*** FBI *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /locker /mdc /detain /arrest /wanted /cuff /tazer");
- SendClientMessage(playerid, TEAM_FBI_COLOR, "*** FBI *** /frisk /take /ticket (/gov)ernment /ram /invite /giverank /deployspikes /destroyspikes /spikestrips /badge");
- SendClientMessage(playerid, TEAM_FBI_COLOR, "*** FBI *** /deploycade /destroycade /revokedl /vcheck /vmdc /vticket /tow /untow /impound /dmvrelease /fbidiv");
- SendClientMessage(playerid, TEAM_FBI_COLOR, "*** FBI *** /searchcar /checktruck /radargun /backup /destroyplant /warrantarrest");
- }
- case 3: {
- SendClientMessage(playerid, TEAM_MED_COLOR, "*** LSFMD *** (/r)adio (/d)epartments (/m)egaphone /heal /invite /giverank /lsfmd /revokeboatdl /lsfmddiv");
- SendClientMessage(playerid, TEAM_MED_COLOR, "*** LSFMD *** /getpt /movept /loadpt /deliverpt /destroyplant /fmdc /triage /badge /backup /respawnfreefactionvehs");
- }
- case 4: {
- SendClientMessage(playerid, COLOR_PINK, "*** HITMAN AGENCY *** (/f)amily /contracts /givemehit /order /ranks /profile /hbadge");
- SendClientMessage(playerid, COLOR_PINK, "*** HITMAN AGENCY *** /plantbomb /plantcarbomb /pickupbomb /invite /giverank /showmehq");
- if(PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] >= 1)
- {
- SCM(playerid, COLOR_PINK, "*** LEADER *** /hmole");
- }
- }
- case 5: {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** GOVERNMENT *** (/r)adio (/d)epartments /govl /govdiv /gov");
- if(PlayerInfo[playerid][pDivision] == 5) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** GOVERNMENT *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /detain /arrest /wanted /cuff /tazer /showbadge");
- }
- }
- case 9: {
- SendClientMessage(playerid, TEAM_NEWS_COLOR, "*** SA News *** /nr /badge (/r)adio");
- if(PlayerInfo[playerid][pRank] >= 4)
- SendClientMessage(playerid, TEAM_NEWS_COLOR, "*** SA News *** /stopnews /startnews");
-
- if(PlayerInfo[playerid][pLeader] == 9)
- SendClientMessage(playerid, TEAM_NEWS_COLOR, "*** SA News *** /giverank /uninvite /ouninvite");
- }
- case 10: {
- SendClientMessage(playerid, TEAM_ARES_COLOR, "*** ARES *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /locker /mdc /detain /arrest /wanted /cuff /tazer");
- SendClientMessage(playerid, TEAM_ARES_COLOR, "*** ARES *** /frisk /take /ticket (/gov)ernment /ram /invite /giverank /deployspikes /destroyspikes /spikestrips /badge");
- SendClientMessage(playerid, TEAM_ARES_COLOR, "*** ARES *** /deploycade /destroycade /revokedl /vcheck /vmdc /vticket /tow /untow /impound /dmvrelease");
- SendClientMessage(playerid, TEAM_ARES_COLOR, "*** ARES *** /searchcar /checktruck /radargun /backup /destroyplant /warrantarrest");
-
- }
- case 11: {
- SendClientMessage(playerid, COLOR_ORANGE, "*** SASD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /locker /mdc /detain /arrest /wanted /cuff /tazer");
- SendClientMessage(playerid, COLOR_ORANGE, "*** SASD *** /frisk /take /ticket (/gov)ernment /ram /invite /giverank /deployspikes /destroyspikes /spikestrips /badge");
- SendClientMessage(playerid, COLOR_ORANGE, "*** SASD *** /deploycade /destroycade /revokedl /vcheck /vmdc /vticket /tow /untow /impound /dmvrelease");
- SendClientMessage(playerid, COLOR_ORANGE, "*** SASD *** /searchcar /checktruck /radargun /backup /destroyplant /warrantarrest");
- }
- }
- if(PlayerInfo[playerid][pGang] != 255) {
- if(PlayerInfo[playerid][pRank] < 5) {
- SendClientMessage(playerid, COLOR_WHITE, "*** FAMILY *** (/f)amily /clothes /safehelp");
- } else {
- SendClientMessage(playerid, COLOR_WHITE, "*** FAMILY *** (/f)amily /clothes /safehelp /fdeposit /fwithdraw /fbalance /capture /adjust");
- SendClientMessage(playerid, COLOR_WHITE, "*** FAMILY *** /adjustrank /adjustrankname /gpark /gvlock /gbuylock");
- }
- }
- if(PlayerInfo[playerid][pAdmin] >= 1)
- SendClientMessage(playerid, COLOR_REALREDS, "*** ADMIN *** (/a)dmin (/ah)elp");
-
- if(PlayerInfo[playerid][pHelper] >= 1)
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** HELPER *** /newb /helpers");
-
- if(PlayerInfo[playerid][pHelper] >= 2)
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "*** HELPER *** /togc /c /accepthelp /helprequests /quithelp /nrn");
- if(PlayerInfo[playerid][pDonator] >= 1)
- SendClientMessage(playerid, COLOR_LIGHTSLATEGRAY, "*** DONATOR *** /showmemclub /showmebm /neon /changegender /changeage /changeplates /changeph ");
-
- if(PlayerInfo[playerid][pDonator] >= 3)
- SendClientMessage(playerid, COLOR_LIGHTSLATEGRAY, "*** DONATOR (DIAMOND) *** /spawnatmc /placebb /pickupbb /blackmarket(/bm) /donatorlocker(/dlocker) /togdcolor /dc");
- return 1;
- }
- CMD:id(playerid, params[])
- {
- new string[128], giveplayerid, color;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /id [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if((color = GetPlayerColor(giveplayerid)) == 0xFFFFFF00) {
- color = 0xFFFFFFFF;
- }
-
- format(string, sizeof(string), "ID: %d | Name: {%06x}%s{FFFFFF} | Level: %d | Ping: %d", giveplayerid, color >>> 8, GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pLevel], GetPlayerPing(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- /*stock RefundPlayer(playerid)
- {
- GivePlayerCash(playerid, 5000);
- PlayerInfo[playerid][pLevel] = 0;
- PlayerInfo[playerid][pConnectTime] = 2;
- PlayerInfo[playerid][pDonator] = 0;
- return 1;
- }*/
- stock RefundPlayer(playerid)
- {
- GivePlayerCash(playerid, 5000);
- PlayerInfo[playerid][pLevel] = 0;
- PlayerInfo[playerid][pMats] = 5000;
- PlayerInfo[playerid][pConnectTime] = 2;
- PlayerInfo[playerid][pDonator] = 0;
- //ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{FFA500} Sleepless Roleplay - Vehicle Refund", "{FFFFFF}Please put the specific Vehicle ID to get free car(Not the restricted ones)", "Ok", "");
- SendClientMessage(playerid, COLOR_PINK, "Mikko: Thank you for joining, heres my gift");
- return 1;
- }
- CMD:skiptut(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skiptut [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- for(new t = 0; t < 54; t++)
- {
- TextDrawHideForPlayer(giveplayerid, TutTxtDraw[t]);
- }
- SetPlayerInterior(giveplayerid, 0);
- SetPlayerVirtualWorld(giveplayerid, 0);
- TogglePlayerControllable(giveplayerid, 1);
- SetPlayerPos(giveplayerid, 1773.459350, -1942.273437, 13.569922);
- SetPlayerFacingAngle(giveplayerid, 329.64);
- SetCameraBehindPlayer(giveplayerid);
- InsideTut[giveplayerid] = 0;
- DeletePVar(giveplayerid, "MedicBill");
- SetPlayerColor(giveplayerid,TEAM_HIT_COLOR);
- PlayerInfo[giveplayerid][pTut] = 1;
- PlayerInfo[giveplayerid][pSex] = 1;
- PlayerInfo[giveplayerid][pAge] = 25;
- PlayerInfo[giveplayerid][pSkin] = 299;
- SetPlayerSkin(giveplayerid, 299);
-
- PlayerInfo[playerid][pFormer] = 0;
- PlayerInfo[playerid][pOS] = 0;
- PlayerInfo[playerid][pVintage] = 0;
- PlayerInfo[playerid][pFamed] = 0;
- ClearChatbox(giveplayerid);
- new string[128];
- format(string, sizeof(string), "Welcome to Sleepless Roleplay, %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_NEWS, string);
- format(string, sizeof(string), "~w~Welcome~n~~y~%s", GetPlayerNameEx(giveplayerid));
- GameTextForPlayer(giveplayerid, string, 5000, 1);
- SendClientMessage(giveplayerid, COLOR_YELLOW, "If you have any further questions, please use /newb. You can also /report if you see any rule-breakers.");
- format(string, sizeof(string), "> {FFA500} %s {FFFF00} has just spawned on Sleepless Roleplay for the first time!", GetPlayerNameEx(giveplayerid));
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pHelper] >= 1 || PlayerInfo[i][pLevel] >= 1)
- {
- SendClientMessageEx(i, COLOR_YELLOW, string);
- }
- }
-
- RefundPlayer(giveplayerid);
- WelcomePlayer(giveplayerid);
-
- ShowPlayerDialogEx(giveplayerid, DIALOG_NEWBWELCOME, DIALOG_STYLE_MSGBOX, "{FFFFFF}Welcome to {FFA500}Sleepless Roleplay", "Would you like one of our Senior Helpers to give you a tour of the server?", "Yes", "No");
- new motdstring[128];
- format(motdstring, sizeof(motdstring), "News: %s", GlobalMOTD);
- SendClientMessage(giveplayerid, COLOR_WHITE, motdstring);
- DeletePVar(giveplayerid, "IsFrozen");
- TutorialProgress[giveplayerid] = 0;
- }
- return 1;
- }
- CMD:myangle(playerid, params[])
- {
- new myString[128], Float:a;
- GetPlayerFacingAngle(playerid, a);
- format(myString, sizeof(myString), "Your angle is: %0.2f", a);
- SendClientMessage(playerid, 0xFFFFFFFF, myString);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- format(myString, sizeof(myString), "Your position is: %f, %f, %f", x, y, z);
- SendClientMessage(playerid, 0xFFFFFFFF, myString);
-
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(strcmp(playername, "Howard", true) == 0 && PlayerInfo[playerid][pAdmin] == 6) SendClientMessage(playerid, COLOR_WHITE, "Last updated 26 April 2012, reason: Patched a trucker exploit & Removed tombstone joke");
- return 1;
- }
- CMD:serverstats(playerid, params[]) {
- new
- string[128],
- iVehCount,
- x;
- while(x < MAX_VEHICLES)
- if(GetVehicleModel(++x))
- ++iVehCount;
- format(string,sizeof(string),"Server Statistics - Sleepless Roleplay %s (recorded since the 16th of February, 2019).",SERVER_VERSION);
- SendClientMessage(playerid, COLOR_NEWS, string);
- format(string, sizeof(string), "* Objects: %d | Pickups: %d | Map icons: %d | 3D text labels: %d | Max houses: %d",CountDynamicObjects(),CountDynamicPickups(),CountDynamicMapIcons(),CountDynamic3DTextLabels(), MAX_HOUSES);
- SendClientMessage(playerid, COLOR_PINK, string);
- format(string, sizeof(string), "* Logins: %d | Connections: %d | Registrations: %d | Hackers autobanned: %d | Uptime: %d hours",TotalLogin, TotalConnect, TotalRegister, TotalAutoBan, TotalUptime);
- SendClientMessage(playerid, COLOR_PINK, string);
- format(string, sizeof(string), "* Players connected: %d | Peak player count: %d (%d/%d/%d) | Player vehicles loaded: %d | Total vehicles: %d",Iter_Count(Player),MaxPlayersConnected,MPDay,MPMonth,MPYear,PlayerCars, iVehCount);
- SendClientMessage(playerid, COLOR_PINK, string);
- return 1;
- }
- CMD:fixmyvw(playerid, params[])
- {
- if(GetPVarInt(playerid, "PBM") > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
-
- if(FixMyVwFloats[playerid][0] != 0)
- {
- SendClientMessage (playerid, COLOR_GREY, "You're already attempting to fix your virtual world!");
- return 1;
- }
- if(PlayerInfo[playerid][pInt] != 0)
- {
- SendClientMessage (playerid, COLOR_GREY, "You're on the interior you can't to this command.");
- return 1;
- }
- else
- {
- GetPlayerPos(playerid, FixMyVwFloats[playerid][0], FixMyVwFloats[playerid][1], FixMyVwFloats[playerid][2]);
- SetTimerEx("FixMyVwTimer", 5000, 0, "d", playerid);
- SendClientMessage (playerid, COLOR_YELLOW, "Do not move for 5 seconds to have your virtual will fix!");
- }
- return 1;
- }
- forward FixMyVwTimer(playerid);
- public FixMyVwTimer(playerid)
- {
- new Float:posX, Float:posY, Float:posZ;
- GetPlayerPos(playerid, posX, posY, posZ);
- if(FixMyVwFloats[playerid][0] != posX || FixMyVwFloats[playerid][1] != posY || FixMyVwFloats[playerid][2] != posZ)
- {
- SendClientMessage (playerid, COLOR_YELLOW, "Failed to virtual fix because you moved!");
- for(new i = 0; i < 3; i++)
- {
- FixMyVwFloats[playerid][i] = 0;
- }
- return 1;
- }
- SendClientMessage (playerid, COLOR_YELLOW, "Your virtual world has been fixed!");
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- for(new i = 0; i < 3; i++)
- {
- FixMyVwFloats[playerid][i] = 0;
- }
- return 1;
- }
- CMD:updates(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_NEWS, "______________________________________________");
- SendClientMessage(playerid, COLOR_NEWS, "Updates as of "SERVER_VERSION"");
- SendClientMessage(playerid, COLOR_WHITE, "* Donation system implemented. More information available on the forum (/information).");
- SendClientMessage(playerid, COLOR_WHITE, "* Helper system implemented. More information available on the forum (/information).");
- SendClientMessage(playerid, COLOR_WHITE, "* All broken radio stations overhauled (some fixed, some replaced with new ones).");
- SendClientMessage(playerid, COLOR_WHITE, "* Some division adjustments for factions.");
- SendClientMessage(playerid, COLOR_WHITE, "* A feature where players who alt tab for a long time become no longer visible to normal players until they come back.");
- SendClientMessage(playerid, COLOR_WHITE, "* Various bug fixes, as mentioned in /fixes.");
- SendClientMessage(playerid, COLOR_WHITE, "* Added 3 Event in Paintball v.2 which is Blast DM Arena , Death DM Arena , Blast TDM Arena");
- SendClientMessage(playerid, COLOR_WHITE, "* Added /spam for massive spam.");
- SendClientMessage(playerid, COLOR_WHITE, "* Added /adminrules");
- SendClientMessage(playerid, COLOR_WHITE, "* Added /createfire , /announcefire /destroyfire");
- SendClientMessage(playerid, COLOR_WHITE, "* Added /god");
- SendClientMessage(playerid, COLOR_WHITE, "* Added Blood HP Blink");
- SendClientMessage(playerid, COLOR_WHITE, "* Added New Interior of San Andreas Sheriff Department Faction.");
- SendClientMessage(playerid, COLOR_NEWS, "______________________________________________");
- return 1;
- }
- CMD:fixes(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_NEWS, "______________________________________________");
- SendClientMessage(playerid, COLOR_NEWS, "Bug fixes as of "SERVER_VERSION"");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed an issue with audio streams sending to the wrong players.");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed a bug with the anti-cheat against armor hacks.");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed a mistake in /refshop.");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed the MainMenuTextDraw.");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed the Color gangs which can save now.");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed an issue in /factions.");
- SendClientMessage(playerid, COLOR_WHITE, "* Fixed an issue in /gangs");
- SendClientMessage(playerid, COLOR_NEWS, "______________________________________________");
- return 1;
- }
- CMD:fixr(playerid, params[])
- {
- PlayerFixRadio(playerid);
- return 1;
- }
- CMD:time(playerid, params[])
- {
- new string[128];
- new mtext[20];
- new year, month,day;
- getdate(year, month, day);
- if(month == 1) { mtext = "January"; }
- else if(month == 2) { mtext = "February"; }
- else if(month == 3) { mtext = "March"; }
- else if(month == 4) { mtext = "April"; }
- else if(month == 5) { mtext = "May"; }
- else if(month == 6) { mtext = "June"; }
- else if(month == 7) { mtext = "July"; }
- else if(month == 8) { mtext = "August"; }
- else if(month == 9) { mtext = "September"; }
- else if(month == 10) { mtext = "October"; }
- else if(month == 11) { mtext = "November"; }
- else if(month == 12) { mtext = "December"; }
- new hour,minuite,second;
- gettime(hour,minuite,second);
- FixHour(hour);
- hour = shifthour;
- if(minuite < 10)
- {
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]);
- }
- else
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|", day, mtext, hour, minuite);
- }
- }
- else
- {
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]);
- }
- else
- {
- format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|", day, mtext, hour, minuite);
- }
- }
- GameTextForPlayer(playerid, string, 5000, 1);
- return 1;
- }
- CMD:flipcoin(playerid, params[])
- {
- if(PlayerInfo[playerid][pCash] < 1)
- return SendClientMessage(playerid, COLOR_GREY,"You do not have any coins on you.");
- new
- szMessage[124];
- switch(random(2)) {
- case 0: format(szMessage, sizeof(szMessage), "* %s flips a coin that lands on heads.", GetPlayerNameEx(playerid));
- case 1: format(szMessage, sizeof(szMessage), "* %s flips a coin that lands on tails.", GetPlayerNameEx(playerid));
- }
- return ProxDetector(5.0, playerid, szMessage, COLOR_NG,COLOR_NG,COLOR_NG,COLOR_NG,COLOR_NG);
- }
- CMD:rules(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_PINK,"*** Server Rules ***");
- SendClientMessage(playerid, COLOR_WHITE,"Deathmatching (DM) - Killing a player without a valid in-character reason is not allowed.");
- SendClientMessage(playerid, COLOR_WHITE,"Revenge Killing (RK) - Killing a player for killing you is not allowed. After hospital, you lose all memory of the last 30 minutes.");
- SendClientMessage(playerid, COLOR_WHITE,"Non-RP Car Ramming - Do not car ram people without a valid reason, or repeatedly car ram people.");
- SendClientMessage(playerid, COLOR_WHITE,"Gun Discharge Exploits - Do not crack shoot (CS), C-Bug, C-Slide, quickshoot, quickswap.");
- SendClientMessage(playerid, COLOR_WHITE,"Powergaming/Metagaming (PG/MG) - Impossible roleplay and mixing IC & OOC is not allowed.");
- SendClientMessage(playerid, COLOR_WHITE,"Logging to Avoid - Logging or Tabbing off the game to avoid roleplay, death or arrest is not allowed.");
- SendClientMessage(playerid, COLOR_WHITE,"Exploiting - Do not exploit ninjajacking, planebombing, animations, etc.");
- SendClientMessage(playerid, COLOR_WHITE,"Hacking/Cheats - Any change to your game to give any advantage is not allowed.");
- SendClientMessage(playerid, COLOR_PINK,"*** This is a short version of our server rulebook. Please visit "WEBSITE" to see a full list of the server rules ***");
- return 1;
- }
- CMD:startlotto(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid,COLOR_WHITE, "The /startlotto command is currently disabled (reason: we need to let the economy grow a bit before we enable this).");
- return 1;
- }
- CMD:refshop(playerid, params[]) {
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- if(GetPVarInt(playerid, "EventToken") != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't access the referral shop while you're in an event.");
- if(PlayerInfo[playerid][pJailed] > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
- new LineOne[465];
- new LineTwo[410];
- new string[875];
- format(LineOne,sizeof(LineOne),"{FFFFFF}50 pot, 25 crack {00F70C}(Price: 1 token)\n{FFFFFF}2,500 materials {00F70C}(Price: 1 token)\n{FFFFFF}4 respect points {00F70C}(Price: 1 token)\n{FFFFFF}SPAS-12 & Deagle {00F70C}(Price: 1 token)\n{FFFFFF}100 pot, 50 crack {00F70C}(Price: 2 tokens)\n{FFFFFF}Full weapon set {00F70C}(Price: 2 tokens)\n{FFFFFF}8 respect points {00F70C}(Price: 2 tokens)\n{FFFFFF}5,000 materials {00F70C}(Price: 2 tokens)\n{FFFFFF}12 respect points {00F70C}(Price: 3 tokens)");
- format(LineTwo,sizeof(LineOne),"{FFFFFF}10,000 materials {00F70C}(Price: 3 tokens)\n{FFFFFF}16 respect points {00F70C}(Price: 4 tokens)\n{FFFFFF}15,000 materials {00F70C}(Price: 4 tokens)\n{FFFFFF}20 respect points {00F70C}(Price: 5 tokens)\n{FFFFFF}20,000 materials {00F70C}(Price: 5 tokens)\n{FFFFFF}One level up & 2 upgrade points {00F70C}(Price: 10 tokens)\n{FFFFFF}Car of choice from one of the dealerships {00F70C}(Price: 10 tokens)");
- format(string,sizeof(string),"%s\n%s",LineOne, LineTwo);
- ShowPlayerDialogEx(playerid, DIALOG_REFSHOP, DIALOG_STYLE_LIST, "Referral shop", string, "Purchase", "Cancel");
- return 1;
- }
- CMD:gmx(playerid, params[]) {
- return cmd_restartserver(playerid, params);
- }
- CMD:restartserver(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- return SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command.");
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- SetTimer("ServerRestart", 30000, false);
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* The server will be restarting in 30 seconds.");
- return 1;
- }
- CMD:dynamichelp(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- SendClientMessage(playerid, COLOR_YELLOW, "Dynamic Help List Commands");
- SendClientMessage(playerid, COLOR_PINK, "Dynamic House Help{FFFFFF}: /hnext /hedit /hname /gotohouse /goinhouse /interiors");
- SendClientMessage(playerid, COLOR_PINK, "Dynamic Door Help{FFFFFF}: /ddedit /ddnext /ddnear /ddstatus /ddpass /ddname /gotodoor /goindoor");
- SendClientMessage(playerid, COLOR_PINK, "Dynamic Business Help{FFFFFF}: /createbusiness /bedit /deletebusiness");
- SendClientMessage(playerid, COLOR_PINK, "Dynamic Map Icon Help{FFFFFF}: /dmpnext /dmpnear /dmpedit");
- return 1;
- }
- return 1;
- }
- CMD:ahelp(playerid, params[]) {
- return cmd_ah(playerid, params);
- }
- CMD:ah(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1) {
- SendClientMessage(playerid, COLOR_CRIMSON,"_______{FFA500}ADMIN COMMANDS{FFA500}_______");
- SendClientMessage(playerid, COLOR_TWPURPLE, "*** Admin *** /adminrules /admins /check /jail /kick /skick /aduty /showflags /nrn /namechanges /reports /ar /tr /post /nro /nao /rtnc /norevive");
- if(PlayerInfo[playerid][pAdmin] >= 2) {
- SendClientMessage(playerid, COLOR_ORANGE,"*** Junior Admin *** /factions /checkbp /spec /freeze /unfreeze /gethere /gotoid /gotoplayerscar /setvw /setint /oldcar /gotocar /entercar");
- SendClientMessage(playerid, COLOR_ORANGE,"*** Junior Admin *** /afk /gotoco /(o)flag /(o)clearflag /ban /sban /hhcheck /slap /listguns /warn /(o)kills /(o)ipcheck /ip /goto /mark /mark2");
- SendClientMessage(playerid, COLOR_ORANGE,"*** Junior Admin *** /jetpack /paused /watch /hospital /prisoners /sendtols /nmute /nunmute /admute /adunmute /anetstats /serial /approvename /denyname");
- }
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- SendClientMessage(playerid, COLOR_TWPINK,"*** General Admin *** /prison /fine /pfine /takeadminweapons /takeweapons /setskin /release /force(death/hospital) /rto /rtoreset /mole /revive");
- SendClientMessage(playerid, COLOR_TWPINK,"*** General Admin *** /reloadpvehicles /aimpound /nonewbie /owarn /ocheck /ofine /oprison /respawncar(s) /deletead /atip");
- SendClientMessage(playerid, COLOR_TWPINK,"*** General Admin *** /dm /spam /dynamichelp /noooc /gcto /gcreset /switchfam /switchfac /respawnfreegangvehs /apark");
- }
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"*** Senior Admin *** /asellhouse /givenos /blowup /setname /forcesave /oban /cnn /fixveh /sethp /setarmor /setarmorall /givegun");
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"*** Senior Admin *** /adivorce /eventhelp /sprison /unban /unbanip /setinsurance /(goto/goin)house /pointfix /givelicense /fackick");
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"*** Senior Admin *** /setmyname /createpvehicle /destroypvehicle /hnext /(goto/goin)door /veh /vehname /healnear /destroycar /destroycars");
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"*** Senior Admin *** /setfightingstyle /fixveh /fcreate /fdelete /fedit /creategvehicle /destroygvehicle /deletehit /countdown");
- SendClientMessage(playerid, COLOR_LIGHTGREEN,"*** Senior Admin *** /refund /clearall /listtoys /dd(edit/next/near/name) /leaders /givemoney /setmoney /setstat /skiptut ");
- }
- if(PlayerInfo[playerid][pAdmin] >= 5) {
- SendClientMessage(playerid, COLOR_LIGHTRED,"*** Head Admin *** /cc /pedit /permaban /setcolor /paycheck /clearallreports /makeleader /changeuserpassword /setdonator");
- SendClientMessage(playerid, COLOR_LIGHTRED,"*** Head Admin *** /agivebackpack /amotd /restartserver /rmute /hedit /hname /setadminname /fixvehall /cnnn /gotodoor /dedit");
- }
- if(PlayerInfo[playerid][pAdmin] >= 6) {
- SendClientMessage(playerid, COLOR_TWPURPLE,"*** Assistant Management *** /edit /dmp(edit/next/near) /listfacpay /facpay /gotodmp /createdealership /destroydealership");
- SendClientMessage(playerid, COLOR_TWPURPLE,"*** Assistant Management *** /createcdveh /destroycdveh /forceoffduty");
- }
- if(PlayerInfo[playerid][pAdmin] >= 7) {
- SendClientMessage(playerid, COLOR_PINK,"*** Management *** /(o)sethelper /fws /allhunt /setwepres");
- SendClientMessage(playerid, COLOR_PINK,"*** Management *** /god /togvac /quiz /motd /interiors /cc");
- }
- if(PlayerInfo[playerid][pAdmin] >= 8) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"*** Server Manager *** /setformeradmin /setvintage /setfamed /setoldschool /(o)setadmin /setbanmod /setfactionmod /setgangmod");
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"*** Server Manager *** /createfire /announcefire /destroyfire");
- }
- if(PlayerInfo[playerid][pBanAppealer] > 0) SendClientMessage(playerid, COLOR_YELLOW, "*** BAN APPEALER *** /unban /unbanip");
- if(PlayerInfo[playerid][pGangMod] > 0) SendClientMessage(playerid, COLOR_YELLOW, "*** GANG MODERATOR *** /fedit /fdelete /fcreate /switchfam /adjust name /setgangcolor /respawnfreegangvehs");
- if(PlayerInfo[playerid][pFactionMod] > 0) SendClientMessage(playerid, COLOR_YELLOW, "*** FACTION MODERATOR *** /switchfac /leaders /makeleader");
- if(PlayerInfo[playerid][pHelperMod] > 0) SendClientMessage(playerid, COLOR_YELLOW, "*** HELPER MODERATOR *** /osethelper /sethelper /helpers");
- }
- return 1;
- }
- CMD:charity(playerid, params[]) {
- new
- string[128],
- moneys;
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /charity [amount]");
- moneys = strval(params);
- if(moneys < 0)
- return SendClientMessage(playerid, COLOR_GRAD1, "That's not enough!");
- if(GetPlayerCash(playerid) < moneys)
- return SendClientMessage(playerid, COLOR_GRAD1, "You don't have that much money.");
- GivePlayerCash(playerid, -moneys);
- format(string, sizeof(string), "%s, thank you for your donation of $%d.",GetPlayerNameEx(playerid), moneys);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, string);
-
- if(moneys >= 50000)
- {
- format(string, 128, "Thanks for %s for donating $%s to the Sleepless Roleplay Community.", GetPlayerNameEx(playerid), Comma(moneys));
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- return 1;
- }
- CMD:quiz(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 7)
- {
- new choice[10];
- if(sscanf(params, "s[10]", choice)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /quiz [create/end]");
- if(!strcmp(choice, "create"))
- {
- {
- if(!quizexist)
- {
- ShowPlayerDialogEx(playerid, QUIZCREATE1, DIALOG_STYLE_INPUT, "Create a quiz", "Input the quiz question", "Next", "Cancel");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "There is already an active quiz.");
- }
- }
- else if(!strcmp(choice, "end"))
- {
- if(quizexist)
- {
- new string[100];
- format(string, sizeof(string), "The quiz round has been finished!");
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- quizexist = false;
- format(question, 256, "None");
- format(answer, 256, "None");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "ERROR: There is no active quiz.");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "USAGE: /quiz [create/end]");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command.");
- }
- return 1;
- }
- CMD:answer(playerid, params[])
- {
- if(quizexist)
- {
- if(!isnull(params))
- {
- if(!strcmp(params, answer, true))
- {
- new string[128];
- format(string, sizeof(string), "QUIZ: %s has the correct answer (%s)!", GetPlayerNameEx(playerid), answer);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- SendClientMessageToAll(COLOR_LIGHTRED, "The quiz round has been finished!");
- SCM(playerid, COLOR_YELLOW, "QUIZ PRIZE: $1,000");
- GivePlayerCash(playerid, 1000);
- quizexist = false;
- format(question, 256, "None");
- format(answer, 256, "None");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "ERROR: Incorrect answer.");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "USAGE: /answer [answer]");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "There is no active quiz.");
- }
- return 1;
- }
- CMD:resetupgrades(playerid, params[]) {
- if(gPlayerLogged[playerid] == 0) {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not logged in.");
- }
- else if(GetPlayerCash(playerid) < 10000) {
- SendClientMessage(playerid, COLOR_GRAD1, "You need $10,000 to reset your upgrade points.");
- }
- else if(PlayerInfo[playerid][pLevel] < 2) {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be at least level 2.");
- }
- else {
- PlayerInfo[playerid][gPupgrade] = (PlayerInfo[playerid][pLevel]-2)*2;
- PlayerInfo[playerid][pSarmor] = 0.0;
- new bool: iSaveHouses; // We don't want to save houses every time
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID) {
- HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade] = 1;
- iSaveHouses = true;
- }
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID) {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade] = 1;
- iSaveHouses = true;
- }
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- PlayerVehicleInfo[playerid][d][pvWepUpgrade] = 0;
- }
- if(iSaveHouses) SaveHouses();
- GivePlayerCash(playerid,-10000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new szMessage[73];
- format(szMessage, sizeof(szMessage), "You have reset your upgrades - you now have %i unspent upgrade points.",PlayerInfo[playerid][gPupgrade]);
- SendClientMessage(playerid, COLOR_GRAD2, szMessage);
- }
- return 1;
- }
- CMD:leaders(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_WHITE, "Faction leaders online:");
- new string[128], sz_FacInfo[3][64];
- foreach(Player, i) if(PlayerInfo[i][pLeader] >= 1) {
- GetPlayerFactionInfo(i, sz_FacInfo[0], sz_FacInfo[1], sz_FacInfo[2]);
- format(string, sizeof(string), "(%s) %s %s", sz_FacInfo[2], sz_FacInfo[0], GetPlayerNameEx(i));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- }
- return 1;
- }
- CMD:findjob(playerid, params[])
- {
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- ShowPlayerDialogEx(playerid, FINDJOB, DIALOG_STYLE_LIST, "Select a job", "Detective\nLawyer\nWhore\nDrug Dealer\nCar Mechanic\nBodyguard\nArms Dealer\nBoxer\nDrug Smuggler\nTaxi Driver\nCraftsman\nBartender\nTrucker\nPizza Boy\nFishing\nStreet Sweeper\nMiner", "Select", "Cancel");
- return 1;
- }
- CMD:shakehand(playerid, params[])
- {
- new string[128], giveplayerid, style;
- if(sscanf(params, "ud", giveplayerid, style)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /shakehand [playerid/partofname] [style (1-8)]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't shake your own hand.");
- return 1;
- }
- if(style >= 1 && style < 9)
- {
- new Float: ppFloats[3];
- GetPlayerPos(giveplayerid, ppFloats[0], ppFloats[1], ppFloats[2]);
- if(!IsPlayerInRangeOfPoint(playerid, 5, ppFloats[0], ppFloats[1], ppFloats[2]))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're too far away. You can't shake hands right now.");
- return 1;
- }
- ShakeHandRequest[giveplayerid] = playerid;
- ShakeHandStyle[giveplayerid] = style;
- format(string, sizeof(string), "You have requested to shake %s's hand, please wait for them to respond.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has requested to shake your hand, please use '/accept handshake' to approve the hand shake.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /shakehand [playerid/partofname] [style (1-8)]");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- return 1;
- }
- CMD:buylevel(playerid, params[])
- {
- if(gPlayerLogged[playerid] != 0)
- {
- if(PlayerInfo[playerid][pLevel] >= 0)
- {
- new nxtlevel = PlayerInfo[playerid][pLevel]+1;
- new costlevel = nxtlevel*2500;
- new expamount = nxtlevel*levelexp;
- if(GetPlayerCash(playerid) < costlevel)
- {
- new string[128];
- format(string, sizeof(string), "You don't have enough cash ($%d).",costlevel);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- else if(PlayerInfo[playerid][pRespect] < expamount)
- {
- new string[58];
- format(string, sizeof(string), "You need %d more respect points to buy your next level.", expamount - PlayerInfo[playerid][pRespect]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- else
- {
- new string[92];
- format(string, sizeof(string), "~g~LEVEL UP~n~~w~You're Now Level %d", nxtlevel);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- GivePlayerCash(playerid, (-costlevel));
- PlayerInfo[playerid][pLevel]++;
- PlayerInfo[playerid][pRespect] = PlayerInfo[playerid][pRespect]-expamount;
- PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
- GameTextForPlayer(playerid, string, 5000, 1);
- format(string, sizeof(string), "You have bought level %d for $%d, and gained %i upgrade points! /upgrade to use them.", nxtlevel, costlevel, PlayerInfo[playerid][gPupgrade]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- /*if(PlayerInfo[playerid][pLevel] == 6)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Newbie chat will now be automatically togged off on login.");
- }*/
- }
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not logged in.");
- }
- return 1;
- }
- CMD:upgrade(playerid, params[])
- {
- if(isnull(params))
- {
- new string[64];
- format(string, sizeof(string), "USAGE: /upgrade [upgradename] (you have %d upgrade points).",PlayerInfo[playerid][gPupgrade]);
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** UPGRADES ***");
- SendClientMessage(playerid, COLOR_GRAD2,string);
- //SendClientMessage(playerid, COLOR_GRAD5, "armor gunlocker gunlocker2 cargunlocker");
- SendClientMessage(playerid, COLOR_GRAD5, "armor gunlocker cargunlocker");
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- return 1;
- }
- if(PlayerInfo[playerid][gPupgrade] >= 1)
- {
- if(PlayerInfo[playerid][pLevel] >= 1 && strcmp(params, "armor", true) == 0)
- {
- if(PlayerInfo[playerid][pSarmor] < 100)
- {
- new string[51];
- ++PlayerInfo[playerid][pSarmor];
- PlayerInfo[playerid][gPupgrade]--;
- format(string, sizeof(string), "New Upgrade: You will now spawn with %.2f armor.",PlayerInfo[playerid][pSarmor]);
- SendClientMessage(playerid, COLOR_GRAD6, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD6, " You have maximum spawn armor.");
- return 1;
- }
- }
- else if(strcmp(params, "gunlocker", true) == 0)
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- if(PlayerInfo[playerid][gPupgrade] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD6, " You need at least 2 respect points to upgrade your gun locker.");
- return 1;
- }
- switch(HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade])
- {
- case 0:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade] = 1;
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][0] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 1 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][1] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 2 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 2:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][2] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 3 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 3:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][3] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 4 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 4:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][4] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 5 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 5:
- {
- SendClientMessage(playerid, COLOR_WHITE, "Sorry, there are no more spaces available.");
- return 1;
- }
- }
- PlayerInfo[playerid][gPupgrade] -= 2;
- SaveHouses();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a house owner.");
- return 1;
- }
- }
- // Second houses disabled for now
- else if(strcmp(params, "gunlocker2", true) == 0)
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
- {
- if(PlayerInfo[playerid][gPupgrade] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD6, " You need at least 2 respect points.");
- return 1;
- }
- switch(HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade])
- {
- case 0:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade] = 1;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][0] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 1 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 1:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][1] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 2 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 2:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][2] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 3 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 3:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][3] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 4 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 4:
- {
- if(PlayerInfo[playerid][pCash] >= 5000)
- {
- PlayerInfo[playerid][pCash] -= 5000;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade]++;
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][4] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new locker space, you have been charged $5000.");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: To use your lockers, the commands are /storegun and /getgun. You have 5 locker space available.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough ($5000).");
- return 1;
- }
- }
- case 5:
- {
- SendClientMessage(playerid, COLOR_WHITE, "Sorry, there are no more spaces available.");
- return 1;
- }
- }
- PlayerInfo[playerid][gPupgrade]--;
- SaveHouses();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You don't own a second house.");
- return 1;
- }
- }
- else if(strcmp(params, "cargunlocker", true) == 0)
- {
- new Float: x, Float: y, Float: z;
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(PlayerVehicleInfo[playerid][d][pvId] != INVALID_PLAYER_VEHICLE_ID) GetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
- {
- if(PlayerInfo[playerid][gPupgrade] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD6, " You need at least 2 respect points.");
- return 1;
- }
- if(PlayerVehicleInfo[playerid][d][pvWepUpgrade] < 2)
- {
- new string[114];
- GameTextForPlayer(playerid,"~r~Vehicle Gunlocker Upgraded!",5000,6);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- PlayerVehicleInfo[playerid][d][pvWepUpgrade]++;
- PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]-2;
- SendClientMessage(playerid, COLOR_WHITE, "You have purchased a new car locker space.");
- format(string, sizeof(string), "HINT: To use your car lockers, the commands are /trunkput and /trunktake. You have %d locker spaces available.", PlayerVehicleInfo[playerid][d][pvWepUpgrade]+1);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You have already upgraded your car gunlocker slots.");
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You're not near any vehicle that you own.");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD6, " Unrecognized upgrade.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD6, " You have 0 Upgrade Points.");
- return 1;
- }
- return 1;
- }
- CMD:cancel(playerid, params[])
- {
- new string[128], choice[32];
- if(sscanf(params, "s[32]", choice))
- {
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Cancel __________________|");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cancel [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Sex, Mats, Pot, Crack, Weapon, Craft, Repair, Lawyer, Bodyguard, Car, Boxing");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Bus, Medic, Mechanic, Ticket, Witness, Marriage, Divorce, Drink, House, Truck");
- SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
- return 1;
- }
- if(strcmp(choice,"sex",true) == 0) { SexOffer[playerid] = 999; SexPrice[playerid] = 0; }
- else if(strcmp(choice,"mats",true) == 0) { MatsOffer[playerid] = 999; MatsPrice[playerid] = 0; MatsAmount[playerid] = 0; }
- else if(strcmp(choice,"pot",true) == 0) { PotOffer[playerid] = 999; PotPrice[playerid] = 0; PotGram[playerid] = 0; }
- else if(strcmp(choice,"crack",true) == 0) { CrackOffer[playerid] = 999; CrackPrice[playerid] = 0; CrackGram[playerid] = 0; }
- else if(strcmp(choice,"weapon",true) == 0) { GunOffer[playerid] = 999; GunId[playerid] = 0; }
- else if(strcmp(choice,"craft",true) == 0) { CraftOffer[playerid] = 999; CraftId[playerid] = 0; }
- else if(strcmp(choice,"repair",true) == 0) { RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; }
- else if(strcmp(choice,"lawyer",true) == 0) { WantLawyer[playerid] = 0; CallLawyer[playerid] = 0; }
- else if(strcmp(choice,"bodyguard",true) == 0) { GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; }
- else if(strcmp(choice,"dicebet",true) == 0) { BetOffer[playerid] = 999; BetPrice[playerid] = 0; }
- //else if(strcmp(choice,"refill",true) == 0) { RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; }
- else if(strcmp(choice,"car",true) == 0) { VehicleOffer[playerid] = 999; VehiclePrice[playerid] = 0; VehicleId[playerid] = -1; }
- else if(strcmp(choice,"house",true) == 0) { HouseOffer[playerid] = 999; HousePrice[playerid] = 0; House[playerid] = 0; }
- else if(strcmp(choice,"boxing",true) == 0) { BoxOffer[playerid] = 999; }
- else if(strcmp(choice,"witness",true) == 0) { MarryWitnessOffer[playerid] = 999; }
- else if(strcmp(choice,"marriage",true) == 0) { ProposeOffer[playerid] = 999; }
- else if(strcmp(choice,"divorce",true) == 0) { DivorceOffer[playerid] = 999; }
- else if(strcmp(choice,"drink",true) == 0) { DrinkOffer[playerid] = INVALID_PLAYER_ID; }
- else if(strcmp(choice,"truck",true) == 0)
- {
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- DeletePVar(playerid, "TruckDeliver");
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- else if(strcmp(choice,"contract",true) == 0)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- if(!IsPlayerInRangeOfPoint(GoChase[playerid], 225, X, Y, Z))
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- new hpint = floatround(health, floatround_round);
- if(hpint >= 80)
- {
- HitToGet[playerid] = 999;
- HitOffer[playerid] = 999;
- GetChased[GoChase[playerid]] = 999;
- GotHit[GoChase[playerid]] = 0;
- GoChase[playerid] = 999;
- }
- else return SendClientMessage(playerid, COLOR_GRAD1, "You can't cancel the contract if your health is below 80!");
- }
- else return SendClientMessage(playerid, COLOR_GRAD1, "You're too close to the target to cancel the contract. There must be a greater distance between you and the target.");
- }
- else if(strcmp(choice,"ticket",true) == 0) { TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; }
- else if(strcmp(choice,"medic",true) == 0) { if(IsPlayerConnected(MedicCall)) { if(MedicCall == playerid) { MedicCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You're not the current Caller!"); return 1; } } }
- else if(strcmp(choice,"mechanic",true) == 0) { if(IsPlayerConnected(MechanicCall)) { if(MechanicCall == playerid) { MechanicCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You're not the current Caller!"); return 1; } } }
- //else if(strcmp(choice,"help",true) == 0) { if(IsPlayerConnected(AdvisorCall)) { if(AdvisorCall == playerid) { AdvisorCall = 999; } else { SendClientMessage(playerid, COLOR_GREY, " You're not the current Caller!"); return 1; } } }
- else if(strcmp(choice,"taxi",true) == 0)
- {
- if(TaxiCall < 999)
- {
- if(TransportDuty[playerid] == 1 && TaxiCallTime[playerid] > 0)
- {
- TaxiAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~You have~n~~r~Canceled the call", 5000, 1);
- TaxiCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- TaxiCall = 999;
- }
- else
- {
- if(IsPlayerConnected(TaxiCall)) { if(TaxiCall == playerid) { TaxiCall = 999; } }
- foreach(Player, i)
- {
- if(TaxiAccepted[i] < 999)
- {
- if(TaxiAccepted[i] == playerid)
- {
- TaxiAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Canceled the call", 5000, 1);
- TaxiCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- }
- }
- }
- }
- else if(strcmp(choice,"bus",true) == 0)
- {
- if(BusCall < 999)
- {
- if(TransportDuty[playerid] == 2 && BusCallTime[playerid] > 0)
- {
- BusAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~You have~n~~r~Canceled the call", 5000, 1);
- BusCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- BusCall = 999;
- }
- else
- {
- if(IsPlayerConnected(BusCall)) { if(BusCall == playerid) { BusCall = 999; } }
- foreach(Player, i)
- {
- if(BusAccepted[i] < 999)
- {
- if(BusAccepted[i] == playerid)
- {
- BusAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Bus Caller~n~~r~Canceled the call", 5000, 1);
- BusCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- }
- }
- }
- }
- else { return 1; }
- format(string, sizeof(string), "* You have canceled: %s.", choice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- return 1;
- }
- CMD:myguns(playerid, params[])
- {
- new string[128], myweapons[13][2], weaponname[50], encryption[256], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- format(string, sizeof(string), "Weapons on %s: (at %d)", name, gettime());
- SendClientMessage(playerid, COLOR_WHITE, string);
- for (new i = 0; i < 13; i++)
- {
- GetPlayerWeaponData(playerid, i, myweapons[i][0], myweapons[i][1]);
- if(myweapons[i][0] > 0)
- {
- if(PlayerInfo[playerid][pGuns][i] == myweapons[i][0])
- {
- GetWeaponName(myweapons[i][0], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "%s (%d)", weaponname, myweapons[i][0]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(encryption, sizeof(encryption), "%s%d", encryption, myweapons[i][0]);
- }
- }
- }
- new year, month, day, hour, minute, second;
- getdate(year, month, day);
- gettime(hour, minute, second);
- format(encryption, sizeof(encryption), "%s%s%d%d%d%d%d6524", encryption, name, month, day, year, hour, minute);
- new encrypt = crc32(encryption);
- format(string, sizeof(string), "[%d/%d/%d %d:%d:%d] - [%d]", month, day, year, hour, minute,second, encrypt);
- SendClientMessage(playerid, COLOR_GREEN, string);
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- return 1;
- }
- CMD:eject(playerid, params[])
- {
- new State;
- if(IsPlayerInAnyVehicle(playerid))
- {
- State=GetPlayerState(playerid);
- if(State!=PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid,COLOR_GREY," You can only eject people as the driver!");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /eject [playerid/partofname]");
- new test;
- test = GetPlayerVehicleID(playerid);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't eject yourself!"); return 1; }
- if(IsPlayerInVehicle(giveplayerid,test))
- {
- if(GetPVarInt(giveplayerid, "EMSAttempt") != 0) return SendClientMessage(playerid, COLOR_GRAD2, "You can't eject patients!");
- format(string, sizeof(string), "* You have thrown %s out of the car.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have been thrown out the car by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- RemovePlayerFromVehicle(giveplayerid);
- /*new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(giveplayerid, slx, sly, slz);
- SetPlayerPos(giveplayerid, slx, sly+3, slz+1);*/
- format(string, sizeof(string), "* %s has ejected %s from the vehicle.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not in your car!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be in a vehicle to use this!");
- }
- return 1;
- }
- CMD:refund(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, item[32], amount;
- if(sscanf(params, "us[32]d", giveplayerid, item, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /refund [playerid] [item] [weapon ID or amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available items: Gun, Mats, Pot, Crack");
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- SendClientMessage(playerid, COLOR_GRAD4, "1: Brass Knuckles 2: Golf Club 3: Nite Stick 4: Knife 5: Baseball Bat 6: Shovel 7: Pool Cue 8: Katana");
- SendClientMessage(playerid, COLOR_GRAD4, "10: Purple Dildo 11: Small White Vibrator 12: Large White Vibrator 13: Silver Vibrator 14: Flowers 15: Cane");
- SendClientMessage(playerid, COLOR_GRAD3, "22: 9mm 23: Silenced 9mm 24: Desert Eagle 27: Combat Shotgun 28: Micro SMG (Mac 10) 29: SMG (MP5)");
- SendClientMessage(playerid, COLOR_GRAD4, " 30: AK-47 31: M4 32: Tec9 33: Rifle 25: Shotgun 34: Sniper Rifle ");
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- return 1;
- }
- new sstring[128];
- if(strcmp(item, "gun", true) == 0)
- {
- if(PlayerInfo[giveplayerid][pWepRes] != 0)
- {
- SCM(playerid, -1, "That player is wep restricted.");
- return 1;
- }
-
- if(amount < 1 || amount > 34 || amount == 9 || (amount >= 16 && amount <= 21) || amount == 26)
- { SendClientMessage(playerid, COLOR_GRAD1, "You can't refund that weapon ID!"); return 1; }
- if(IsPlayerConnected(giveplayerid)) {
- if(PlayerInfo[giveplayerid][pConnectTime] < 2 && amount != 46 && amount != 43) return SendClientMessage(playerid, COLOR_GRAD2, "That player is currently restricted from carrying weapons");
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GivePlayerValidWeapon(giveplayerid, amount, 60000);
- new weaponname[32];
- GetWeaponName(amount, weaponname, sizeof(weaponname));
- format(sstring, sizeof(sstring), "You have refunded %s gun ID %d (%s)!",GetPlayerNameEx(giveplayerid), amount, weaponname);
- SendClientMessage(playerid, COLOR_WHITE, sstring);
- format(sstring, sizeof(sstring), "Admin %s has refunded you gun ID %d (%s).", GetPlayerNameEx(playerid), amount, weaponname);
- SendClientMessage(giveplayerid, COLOR_WHITE, sstring);
- format(sstring, sizeof(sstring), "%s has refunded %s weapon ID %d (%s).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount, weaponname);
- Log("logs/refunds.log", sstring);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- if(strcmp(item, "mats", true) == 0)
- {
- if(amount < 1 || amount > 100000)
- {
- SendClientMessage(playerid,COLOR_WHITE, "The amount can't be lower than 1 or higher than 100,000.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- PlayerInfo[giveplayerid][pMats] += amount;
- format(string, sizeof(string), "You have refunded %s %d materials!",GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has refunded you %d materials.", GetPlayerNameEx(playerid), amount);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has refunded %s %d materials.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount);
- Log("logs/refunds.log", string);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- if(strcmp(item, "pot", true) == 0)
- {
- if(amount < 1 || amount > 100000)
- {
- SendClientMessage(playerid,COLOR_WHITE, "The amount can't be lower than 1 or higher than 100,000.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- PlayerInfo[giveplayerid][pPot] += amount;
- format(string, sizeof(string), "You have refunded %s %d gram(s) of pot!",GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has refunded you %d gram(s) of pot.", GetPlayerNameEx(playerid), amount);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has refunded %s %d gram(s) of pot.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount);
- Log("logs/refunds.log", string);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- if(strcmp(item, "crack", true) == 0)
- {
- if(amount < 1 || amount > 100000)
- {
- SendClientMessage(playerid,COLOR_WHITE, "The amount can't be lower than 1 or higher than 100,000.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- PlayerInfo[giveplayerid][pCrack] += amount;
- format(string, sizeof(string), "You have refunded %s %d gram(s) of crack!",GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has refunded you %d gram(s) of crack.", GetPlayerNameEx(playerid), amount);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has refunded %s %d gram(s) of crack.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount);
- Log("logs/refunds.log", string);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:forceoffduty(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /forceoffduty [playerid/partofname]");
- if(PlayerInfo[giveplayerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is not an admin.");
- return 1;
- }
- if(AdminDuty[giveplayerid] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That admin is not on-duty.");
- return 1;
- }
- new pState = GetPlayerState(giveplayerid);
- if(pState == PLAYER_STATE_WASTED)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this while the admin is wasted.");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has forced %s to go off-duty as admin.",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- if(AdminDuty[giveplayerid] != 0) {
- if(!doesAccountExist(PlayerInfo[giveplayerid][pAdminName])) {
- DeletePVar(giveplayerid, "MedicBill");
- DeletePVar(giveplayerid, "HospitalTimer");
- DeletePVar(giveplayerid, "Hospital");
- DeletePVar(giveplayerid, "Injured");
- DeletePVar(giveplayerid, "EMSAttempt");
- DeletePVar(giveplayerid, "MedicCall");
- TogglePlayerControllable(giveplayerid, 1);
- ClearAnimations(giveplayerid);
- PlayerCuffed[giveplayerid] = 0;
- PlayerCuffedTime[giveplayerid] = 0;
- DeletePVar(giveplayerid, "PlayerCuffed");
- HouseOffer[giveplayerid] = 999;
- House[giveplayerid] = 0;
- HousePrice[giveplayerid] = 0;
- SexOffer[giveplayerid] = 999;
- SexPrice[giveplayerid] = 0;
- InviteOffer[giveplayerid]=999;
- InviteFaction[giveplayerid]=0;
- InviteFamily[giveplayerid]=255;
- PotOffer[giveplayerid] = 999;
- CrackOffer[giveplayerid] = 999;
- PotPrice[giveplayerid]=0;
- CrackPrice[giveplayerid]=0;
- PotGram[giveplayerid]=0;
- CrackGram[giveplayerid]=0;
- JailPrice[giveplayerid]=0;
- DefendOffer[giveplayerid] = 999;
- DefendPrice[giveplayerid] = 0;
- GuardOffer[giveplayerid] = 999;
- GuardPrice[giveplayerid]=0;
- GunOffer[giveplayerid] = 999;
- GunId[giveplayerid] = 0;
- GunMats[giveplayerid] = 0;
- MatsOffer[giveplayerid] = 999;
- MatsPrice[giveplayerid] = 0;
- MatsAmount[giveplayerid] = 0;
- CraftOffer[giveplayerid] = 999;
- CraftId[giveplayerid]=0;
- CraftMats[giveplayerid]=0;
- VehicleOffer[giveplayerid] = 999;
- VehiclePrice[giveplayerid] = 0;
- VehicleId[giveplayerid] = -1;
- RepairCar[giveplayerid]=0;
- OnDuty[giveplayerid]=0;
- TicketOffer[giveplayerid] = 999;
- TicketMoney[giveplayerid] = 0;
- arr_Towing[giveplayerid] = INVALID_VEHICLE_ID;
- GotHit[giveplayerid]=0;
- GoChase[giveplayerid]=999;
- GetChased[giveplayerid]=999;
- DivorceOffer[giveplayerid] = 999;
- MarryWitness[giveplayerid] = 999;
- MarryWitnessOffer[giveplayerid] = 999;
- MarriageCeremoney[giveplayerid] = 0;
- ProposeOffer[giveplayerid] = 999;
- ProposedTo[giveplayerid] = 999;
- GotProposedBy[giveplayerid] = 999;
- WasHereForPaycheck[giveplayerid] = 0;
- SignedPaycheck[giveplayerid] = 0;
- MissedPaychecks[giveplayerid] = 0;
- PayCheckCode[giveplayerid] = 0;
- PhoneOnline[giveplayerid] = 0;
- SetPVarInt(giveplayerid, "AdminUndercover", 0);
- new username[MAX_PLAYER_NAME];
- GetPVarString(giveplayerid, "TempNameName", username, sizeof(username));
- SetPVarInt(giveplayerid, "TempName", 0);
- SetPlayerName(giveplayerid, username);
- AdminDuty[giveplayerid] = 0;
- format(string, sizeof(string), "%s (ID %d - %s) is now off-duty as Level %d Admin.", PlayerInfo[giveplayerid][pAdminName], giveplayerid, GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pAdmin]);
- ABroadCast(COLOR_WHITE, string, 1);
- if(PlayerInfo[giveplayerid][pAdmin] == 1) {
- SendClientMessage(giveplayerid, COLOR_YELLOW, "You're now off-duty as admin, but still have access to your Level 1 Admin commands.");
- }
- if(PlayerInfo[giveplayerid][pAdmin] > 1 && PlayerInfo[giveplayerid][pAdmin] < 6) {
- SendClientMessage(giveplayerid, COLOR_YELLOW, "You're now off-duty as admin, and only have access to /admins /check /jail /ban /sban /kick /skick");
- }
- if(PlayerInfo[giveplayerid][pAdmin] == 6) {
- SendClientMessage(giveplayerid, COLOR_YELLOW, "You're now off-duty as admin, but still have access to all of your commands since you're a Level 6 Admin.");
- }
- SendClientMessage(giveplayerid, COLOR_REALRED, "Please remember to turn off any hacks you may have (press F12 to disable s0beit).");
- OnPlayerLogin(giveplayerid, AdminRelogPassword[giveplayerid]);
- }
- else {
- SendClientMessage(giveplayerid, COLOR_WHITE, "This name is already registered.");
- }
- }
- return 1;
- }
- CMD:asellhouse(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new string[128], house;
- if(sscanf(params, "d", house)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /asellhouse [houseid]");
- HouseInfo[house][hLock] = 1;
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"Admin %s (IP: %s) has admin-sold house ID %d (was owned by %s).",GetPlayerNameEx(playerid),ip,house,HouseInfo[house][hOwner]);
- Log("logs/house.log", string);
- ClearHouse(house);
- format(HouseInfo[house][hOwner], 128, "Nobody");
- HouseInfo[house][hGLUpgrade] = 1;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~w~You have sold house %d.", house);
- GameTextForPlayer(playerid, string, 10000, 3);
- SaveHouses();
- DestroyPickup(HouseInfo[house][hPickupID]);
- HouseInfo[house][hPickupID] = CreatePickup(1273, 23, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ], -1);
- DestroyDynamic3DTextLabel(HouseInfo[house][hTextID]);
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[house][hLevel],house,HouseInfo[house][hValue]);
- HouseInfo[house][hTextID] = CreateDynamic3DTextLabel(string, COLOR_HOUSEGREEN, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.5, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:kill(playerid, params[]) {
- if(GetPVarInt(playerid, "EventToken") == 1 || GetPVarInt(playerid, "Injured") != 0 || PlayerCuffed[playerid]!= 0 || GetPVarInt(playerid, "Hospital")!= 0 || PlayerInfo[playerid][pJailed]!= 0)
- return SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- if(GetPVarInt(playerid, "EventToken") >= 1 || GetPVarInt(playerid, "PBM") > 0)
- ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 0);
- return 1;
- }
- CMD:setstat(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], giveplayerid, statcode, amount;
- if(sscanf(params, "udd", giveplayerid, statcode, amount)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setstat [playerid/partofname] [statcode] [amount]");
- SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnArmor |3 UpgradePoints |4 BankAccount |5 PhoneNumber |6 RespectPoints |7 Playing hours");
- SendClientMessage(playerid, COLOR_GRAD2, "|8 Gang |9 Det |10 Lawyer |11 Mech |12 Drug |13 Whore |14 Box |15 Arms |16 Materials |17 Pot |18 Crack");
- SendClientMessage(playerid, COLOR_GRAD2, "|19 Fishing |20 Job |21 Rank |22 Packages |23 Crates |24 Smuggler |25 Warnings |26 Screwdriver");
- SendClientMessage(playerid, COLOR_GRAD1, "|27 Age |28 Sex |29 NMute |30 AdMute |31 Faction |32 RMute |33 Carjacker |34 Trucker |35 Pills");
- SendClientMessage(playerid, COLOR_GRAD2, "|36 Firstaid Kit");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid)) {
- switch(statcode) {
- case 1: {
- PlayerInfo[giveplayerid][pLevel] = amount;
- format(string, sizeof(string), " %s's Level has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- SetPlayerScore(giveplayerid, PlayerInfo[giveplayerid][pLevel]);
- }
- case 2: {
- PlayerInfo[giveplayerid][pSarmor] = amount;
- format(string, sizeof(string), " %s's ArmorUpgrade has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 3: {
- PlayerInfo[giveplayerid][gPupgrade] = amount;
- format(string, sizeof(string), " %s's Upgrade Points has been set %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 4: {
- PlayerInfo[giveplayerid][pBank] = amount;
- format(string, sizeof(string), " %s's Bank Account has been set to $%d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 5: {
- if(CheckVPH(amount))
- return SendClientMessage(playerid, COLOR_GREY, "That number already exists.");
- if(amount == 0 || amount == 911 || amount == 912 || amount == 913 || amount == 914 || amount == 555)
- return SendClientMessage(playerid, COLOR_GREY, "The phone number can't be 911, 912, 913, 914 or 555.");
- if(AdminDuty[giveplayerid] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't change the phone number of on-duty admins.");
- ReplacePH(PlayerInfo[giveplayerid][pNumber], amount);
- PlayerInfo[giveplayerid][pNumber] = amount;
- PlayerInfo[giveplayerid][pInt] = GetPlayerInterior(giveplayerid);
-
- if(GetPVarType(giveplayerid, "tabbedVW") != 0) {
- PlayerInfo[giveplayerid][pVW] = GetPVarInt(playerid, "tabbedVW");
- } else PlayerInfo[giveplayerid][pVW] = GetPlayerVirtualWorld(giveplayerid);
-
- GetPlayerIp(giveplayerid, PlayerInfo[giveplayerid][pIP], 32);
- GetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]);
- GetPlayerFacingAngle(giveplayerid, PlayerInfo[giveplayerid][pPos_r]);
- OnPlayerStatsUpdate(giveplayerid);
- format(string, sizeof(string), " %s's Phone Number has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 6: {
- PlayerInfo[giveplayerid][pRespect] = amount;
- format(string, sizeof(string), " %s's Respect Points have been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 7: {
- PlayerInfo[giveplayerid][pConnectTime] = amount;
- format(string, sizeof(string), " %s's Playing Hours has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 8: {
- PlayerInfo[giveplayerid][pGang] = amount-1;
- format(string, sizeof(string), " %s's Family Membership has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 9: {
- PlayerInfo[giveplayerid][pDetSkill] = amount;
- format(string, sizeof(string), " %s's Detective Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 10: {
- PlayerInfo[giveplayerid][pLawSkill] = amount;
- format(string, sizeof(string), " %s's Lawyer Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 11: {
- PlayerInfo[giveplayerid][pMechSkill] = amount;
- format(string, sizeof(string), " %s's Car Mechanic Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 12: {
- PlayerInfo[giveplayerid][pDrugsSkill] = amount;
- format(string, sizeof(string), " %s's Drug Dealer Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 13: {
- PlayerInfo[giveplayerid][pSexSkill] = amount;
- format(string, sizeof(string), " %s's Whore Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 14: {
- PlayerInfo[giveplayerid][pBoxSkill] = amount;
- format(string, sizeof(string), " %s's Box Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 15: {
- PlayerInfo[giveplayerid][pArmsSkill] = amount;
- format(string, sizeof(string), " %s's Arms Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 16: {
- PlayerInfo[giveplayerid][pMats] = amount;
- format(string, sizeof(string), " %s's Materials have been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 17: {
- PlayerInfo[giveplayerid][pPot] = amount;
- format(string, sizeof(string), " %s's Pot has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 18: {
- PlayerInfo[giveplayerid][pCrack] = amount;
- format(string, sizeof(string), " %s's Crack has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 19: {
- PlayerInfo[giveplayerid][pFishSkill] = amount;
- format(string, sizeof(string), " %s's Fishing Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 20: {
- PlayerInfo[giveplayerid][pJob] = amount;
- format(string, sizeof(string), " %s's Job has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 21: {
- PlayerInfo[giveplayerid][pRank] = amount;
- format(string, sizeof(string), " %s's Rank has been to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 22: {
- SetPVarInt(playerid, "Packages", amount);
- format(string, sizeof(string), " %s's Materials Packages have been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 23: {
- PlayerInfo[giveplayerid][pCrates] = amount;
- format(string, sizeof(string), " %s's Drug Crates have been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 24: {
- PlayerInfo[giveplayerid][pSmugSkill] = amount;
- format(string, sizeof(string), " %s's Smuggler Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 25: {
- PlayerInfo[giveplayerid][pWarns] = amount;
- format(string, sizeof(string), " %s's Warnings have been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 26: {
- PlayerInfo[giveplayerid][pScrewdriver] = amount;
- format(string, sizeof(string), " %s's Screwdrivers have been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 27: {
- PlayerInfo[giveplayerid][pAge] = amount;
- format(string, sizeof(string), " %s's Age has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 28: {
- PlayerInfo[giveplayerid][pSex] = amount;
- format(string, sizeof(string), " %s's Sex has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 29: {
- PlayerInfo[giveplayerid][pNMuteTotal] = amount;
- format(string, sizeof(string), " %s's Total Newbie Mutes has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 30: {
- PlayerInfo[giveplayerid][pADMuteTotal] = amount;
- format(string, sizeof(string), " %s's Total Ad Mutes has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 31: {
- PlayerInfo[giveplayerid][pFaction] = amount;
- format(string, sizeof(string), " %s's Faction has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 32: {
- PlayerInfo[giveplayerid][pRMutedTotal] = amount;
- format(string, sizeof(string), " %s's Report Mutes has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 33: {
- PlayerInfo[giveplayerid][pCarSkill] = amount;
- format(string, sizeof(string), " %s's Car Jacker Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 34: {
- PlayerInfo[giveplayerid][pTruckSkill] = amount;
- format(string, sizeof(string), " %s's Trucker Skill has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 35: {
- PlayerInfo[giveplayerid][pPills] = amount;
- format(string, sizeof(string), " %s's Pills has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- case 36: {
- PlayerInfo[giveplayerid][pFirstaid] = amount;
- format(string, sizeof(string), " %s's FirstaidKit has been set to %d", GetPlayerNameEx(giveplayerid), amount);
- }
- default: {
- format(string, sizeof(string), " Invalid stat code.", amount);
- }
- }
- new log[128];
- format(log, sizeof(log), "%s by %s", string, GetPlayerNameEx(playerid));
- Log("logs/stats.log", log);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- return 1;
- }
- CMD:setinsurance(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, insurance;
- if(sscanf(params, "ud", giveplayerid, insurance))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setinsurance [playerid/partofname] [insurance]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Insurances: 0, 1, 2");
- return 1;
- }
- if(insurance >= 0 && insurance <= 2)
- {
- format(string, sizeof(string), " Your insurance has been changed to %d.", insurance);
- SendClientMessage(giveplayerid,COLOR_YELLOW,string);
- format(string, sizeof(string), " You have changed %s's insurance to %d.", GetPlayerNameEx(giveplayerid), insurance);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- PlayerInfo[giveplayerid][pInsurance] = insurance;
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:countdown(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SetTimer("Three", 1000, 0);
- SetTimer("Two", 2000, 0);
- SetTimer("One", 3000, 0);
- SetTimer("GoGoGo", 4000, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- }
- return 1;
- }
- forward Three();
- public Three()
- {
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "3");
- return 1;
- }
- forward Two();
- public Two()
- {
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "2");
- return 1;
- }
- forward One();
- public One()
- {
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "1");
- return 1;
- }
- forward GoGoGo();
- public GoGoGo()
- {
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "Go!");
- return 1;
- }
- CMD:fackick(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fackick [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pFaction] >= 1 || PlayerInfo[giveplayerid][pLeader] >= 1)
- {
- format(string, sizeof(string), "You have been faction-kicked, by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pFaction] = 0;
- PlayerInfo[giveplayerid][pRank] = 0;
- PlayerInfo[giveplayerid][pDuty] = 0;
- PlayerInfo[giveplayerid][pLeader] = 0;
- PlayerInfo[giveplayerid][pDivision] = 0;
- if(!IsValidSkin(GetPlayerSkin(giveplayerid)))
- {
- new rand = random(sizeof(CIV));
- SetPlayerSkin(giveplayerid,CIV[rand]);
- PlayerInfo[giveplayerid][pSkin] = CIV[rand];
- }
- player_remove_vip_toys(giveplayerid);
- pTazer[giveplayerid] = 0;
- SetPlayerToTeamColor(giveplayerid);
- format(string, sizeof(string), "You have faction-kicked %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't kick someone from a faction if they're not a member.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified..");
- }
- }
- return 1;
- }
- CMD:setmyname(playerid, params[]) {
- new string[128];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setmyname [newname]");
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- if(AdminDuty[playerid] != 1)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- if(strcmp(params, "Howard", true) == 0 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid, COLOR_WHITE, "stop ! im howard ! you're not howard !");
- if(strfind(params, "_", false) == -1 && strcmp(params, "off") != 0)
- return SendClientMessage(playerid, COLOR_GREY, "Your name must include an underscore ('_').");
- if(strlen(params) > 18)
- return SendClientMessage(playerid, COLOR_GREY, "Your name exceeds the character limit for names in SA-MP.");
- if(GetPVarInt(playerid, "AdminUndercover") == 0)
- {
- if(!doesAccountExist(params))
- {
- format(string, sizeof(string), "You have temporarily set your name to %s.", params);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, "Use '/setmyname off' to go back to your admin name.");
- SetPVarInt(playerid, "AdminUndercover", 1);
- SetPlayerName(playerid, params);
- format(string, sizeof(string), "%s has changed their name to %s.", PlayerInfo[playerid][pAdminName], params);
- Log("logs/undercover.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "This name is already registered.");
- }
- }
- else
- {
- format(string, sizeof(string), "You changed your name back to %s", PlayerInfo[playerid][pAdminName]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SetPVarInt(playerid, "AdminUndercover", 0);
- SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);
- }
- }
- return 1;
- }
- CMD:jetpack(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 4) {
- JetPack[playerid] = 1;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
- return 1;
- }
- new string[128], plo;
- if(sscanf(params, "u", plo)) {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jetpack [playerid/partofname]");
- return 1;
- }
- if(IsPlayerConnected(plo)) {
- if(plo != INVALID_PLAYER_ID) {
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- SendClientMessage(plo, COLOR_GRAD1, "Enjoy your new jetpack!");
- JetPack[plo] = 1;
- SetPlayerSpecialAction(plo, SPECIAL_ACTION_USEJETPACK);
- format(string, sizeof(string), "AdmCmd: %s has received a jetpack from %s", GetPlayerNameEx(plo), GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:serial(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /serial [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- new string[256];
- new serial[128];
- gpci(giveplayerid, serial, sizeof(serial));
- format(string, sizeof(string), "(ID: %d) - (Name: %s) - (Serial: %s)", giveplayerid, GetPlayerNameEx(giveplayerid), serial);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:ipcheck(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ipcheck [playerid/partofname]");
- if(giveplayerid == INVALID_PLAYER_ID) return 1;
- if(IsPlayerConnected(giveplayerid))
- {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "(ID: %d) - (Name: %s) - (IP: %s)", giveplayerid, GetPlayerNameEx(giveplayerid), playerip);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:giftall(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(GiftAllowed)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just sent a Gift Box to all players.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 2);
- GiftAllowed = 0;
- foreach(Player, i)
- {
- MysteryEggGift(playerid, i);
- }
- }
- else
- {
- return SendClientMessageEx(playerid, COLOR_GRAD2, "This command has already been used, wait until the next paycheck!");
- }
- }
- return 1;
- }
- CMD:oipcheck(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], name[MAX_PLAYER_NAME];
- if(sscanf(params, "s", name)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /oipcheck [name]");
- if(doesAccountExist(name))
- {
- OnPlayerOfflineLogin(name);
- format(string, sizeof(string), "%s's IP: %s", name,PlayerInfo[MAX_PLAYERS][pIP]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- CMD:ip(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ip [ip]");
- new string[128], IP[32];
- foreach(Player, i)
- {
- GetPlayerIp(i, IP, sizeof(IP));
- if(strfind(IP, params, true) != -1)
- {
- format(string, sizeof(string), "Player: %s (ID: %d) | IP: %s", GetPlayerNameEx(i), i, IP);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- return 1;
- }
- CMD:unbanip(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pBanAppealer] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unbanip [ip]");
- if(IsValidIP(params)) return SendClientMessage(playerid, COLOR_WHITE, "That is not a valid IP address!");
- new string[128];
- RemoveBan(params);
- format(string, 128, "AdmCmd: %s has unbanned IP %s", GetPlayerNameEx(playerid), params);
- ABroadCast(COLOR_LIGHTRED,string,2);
- format(string, sizeof(string), "AdmCmd: %s has unbanned IP %s", GetPlayerNameEx(playerid), params);
- Log("logs/ban.log", string);
- }
- return 1;
- }
- CMD:unban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pBanAppealer] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unban [playername]");
- if(doesAccountExist(params))
- {
- OnPlayerOfflineLogin(params);
- if(PlayerInfo[MAX_PLAYERS][pPermaBanned] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Permanently banned accounts can only be unbanned via FTP.");
- }
- else
- {
- if(PlayerInfo[MAX_PLAYERS][pBanned] >= 1)
- {
- PlayerInfo[MAX_PLAYERS][pBanned] = 0;
- if(PlayerInfo[MAX_PLAYERS][pWarns] == 3) // reset warnings if they're 3
- PlayerInfo[MAX_PLAYERS][pWarns] = 0;
- RemoveBan(PlayerInfo[MAX_PLAYERS][pIP]);
- OnPlayerOfflineSave(params);
- format(string, 128, "AdmCmd: %s (IP:%s) was unbanned by %s.", params, PlayerInfo[MAX_PLAYERS][pIP], GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was unbanned by %s.", params, PlayerInfo[MAX_PLAYERS][pIP], GetPlayerNameEx(playerid));
- Log("logs/ban.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Not a banned account!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account doesn't exist.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:ocreatepvehicle(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, modelid, color1, color2, playername[MAX_PLAYER_NAME];
- if(sscanf(params, "s[MAX_PLAYER_NAME]ddd", playername, modelid, color1, color2)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ocreatepvehicle [playername] [modelid] [color 1] [color 2]");
- giveplayerid = ReturnUser(playername);
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is online, use /createpvehicle for online players.");
- }
- else if(doesAccountExist(playername))
- {
- OnPlayerOfflineLogin(playername);
- if(color1 < 0 || color1 > 255) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 255!"); return 1; }
- if(color2 < 0 || color2 > 255) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 255!"); return 1; }
- if(modelid < 400 || modelid > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611!"); return 1; }
- new playervehicleid = GetPlayerFreeVehicleId(MAX_PLAYERS);
- new carsamount = GetPlayerVehicleCount(giveplayerid);
- // (TEMPORARY - Howard NOTE) TempDonator not added yet
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 0 && carsamount >= 5) //PlayerInfo[giveplayerid][pTempDonator] > 0) && carsamount >= 5)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, non-donator can only own 5 cars.");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 1 && carsamount >= 7)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Ruby Donator can only own 7 cars.");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 2 && carsamount >= 8)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Sapphire Donator can only own 8 cars.");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 3 && carsamount >= 10)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Diamond Donator can only own 10 cars.");
- return 1;
- }
- /*if(PlayerInfo[giveplayerid][pDonator] >= 4 && carsamount >= 10)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Platinum+ VIP can only own 10 cars.");
- return 1;
- }*/
- if(playervehicleid == -1) return SendClientMessage(playerid, COLOR_GREY, "ERROR: That player can't have more cars.");
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 0)
- {
- SendClientMessage(MAX_PLAYERS, COLOR_GREY, "That player is non-donator and can only have 1 vehicle spawned. The player must store that vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 1)
- {
- SendClientMessage(MAX_PLAYERS, COLOR_GREY, "That player is Ruby Donator and can only have 2 vehicles spawned. The player must store that vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 2)
- {
- SendClientMessage(MAX_PLAYERS, COLOR_GREY, "That player is Sapphire Donator and can only have 3 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 3)
- {
- SendClientMessage(MAX_PLAYERS, COLOR_GREY, "That player is Diamond Donator and can only have 4 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }
- /*if(PlayerInfo[giveplayerid][pDonator] == 4 && VehicleSpawned[giveplayerid] >= 5)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is Undefined Donator and can only have 5 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 5 && VehicleSpawned[giveplayerid] >= 5)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is a VIP Moderator and can only have 5 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }*/
- if(PlayerInfo[MAX_PLAYERS][pDonator] < 0 || PlayerInfo[MAX_PLAYERS][pDonator] > 3)
- {
- SendClientMessage(MAX_PLAYERS, COLOR_GREY, "ERROR: That player has an invalid Donator level.");
- return 1;
- }
- new car = CreatePlayerVehicle(MAX_PLAYERS, playervehicleid, modelid, PlayerInfo[MAX_PLAYERS][pPos_x], PlayerInfo[MAX_PLAYERS][pPos_y], PlayerInfo[MAX_PLAYERS][pPos_z], 50, color1, color2, 0);
- if(car == INVALID_PLAYER_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Something went wrong and the car didn't get created.");
- }
- else
- {
- format(string, sizeof(string), " Vehicle successfully created with ID %d.", car);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- format(string, sizeof(string), "%s has created a %s for %s (Color 1: %d | Color 2: %d).", GetPlayerNameEx(playerid), GetVehicleName(car), playername, color1, color2);
- Log("logs/playervehicle.log", string);
- OnPlayerOfflineSave(playername);
- }
- else SCM(playerid, COLOR_WHITE, "That account does not exist.");
- return 1;
- }
-
- CMD:oban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], playername[MAX_PLAYER_NAME], reason[64];
- if(sscanf(params, "s[MAX_PLAYER_NAME]s[64]", playername, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /oban [playername] [reason]");
- new giveplayerid = ReturnUser(playername);
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is online, use /ban for online players.");
- }
- else if(doesAccountExist(playername))
- {
- OnPlayerOfflineLogin(playername);
- if(PlayerInfo[MAX_PLAYERS][pPermaBanned] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is already permabanned!");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't ban admin accounts!");
- return 1;
- }
- else
- {
- if(PlayerInfo[MAX_PLAYERS][pBanned] >= 0)
- {
- PlayerInfo[MAX_PLAYERS][pBanned] = 1;
- AddBan(PlayerInfo[MAX_PLAYERS][pIP]);
- OnPlayerOfflineSave(playername);
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was offline banned by %s, reason: %s", playername, PlayerInfo[MAX_PLAYERS][pIP], GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, 128, "AdmCmd: %s (IP:%s) was offline banned by %s, reason: %s", playername, PlayerInfo[MAX_PLAYERS][pIP], GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is already banned!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account doesn't exist.");
- }
- return 1;
- }
- CMD:hmole(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if ((!hmole))
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "Please try again later, Hitman Agency Mole can be submitted every 10 Mins.");
- return 1;
- }
- new string[128];
- if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hmole [contract text]");
- SetTimer("hMoleOn", hmoletimer, 0);hmole = 0;
- format(string, sizeof(string), "SMS: %s ((/contract)), Sender: MOLE (555) ",params);
- SendClientMessageToAllEx(COLOR_YELLOW, string);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, "ERROR: You are not a member of The Hitman Agency");
- return 1;
- }
- return 1;
- }
- CMD:mole(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [mole text]");
- format(string, sizeof(string), "SMS: %s, Sender: MOLE (555)",params);
- SendClientMessageToAllEx(COLOR_YELLOW, string);
- return 1;
- }
- CMD:warn(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /warn [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Admins can't be warned!");
- return 1;
- }
- PlayerInfo[giveplayerid][pWarns] += 1;
- if(PlayerInfo[giveplayerid][pWarns] >= 3)
- {
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- format(string, sizeof(string), "AdmCmd: %s (IP: %s) was banned by %s (had 3 Warnings), reason: %s", GetPlayerNameEx(giveplayerid), ip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was banned by %s (had 3 Warnings), reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- AddBan(ip);
- Kick(giveplayerid);
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was warned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(string, sizeof(string), "AdmCmd: %s was warned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "You were warned by %s, reason: %s", GetPlayerNameEx(playerid), reason);
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
- return 1;
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:owarn(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], name[MAX_PLAYER_NAME], reason[64];
- if(sscanf(params, "s[24]s[64]", name, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /owarn [name] [reason]");
- new giveplayerid = ReturnUser(name);
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is online, use /warn for online players.");
- return 1;
- }
- if(doesAccountExist(name))
- {
- OnPlayerOfflineLogin(name);
- if(PlayerInfo[MAX_PLAYERS][pPermaBanned] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is already permabanned!");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pBanned] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is already banned!");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't warn admin accounts!");
- return 1;
- }
- PlayerInfo[MAX_PLAYERS][pWarns] += 1;
- if(PlayerInfo[MAX_PLAYERS][pWarns] >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was offline banned by %s (had 3 Warnings), reason: %s", name, PlayerInfo[MAX_PLAYERS][pIP], GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was offline banned by %s (had 3 Warnings), reason: %s", name, GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- PlayerInfo[MAX_PLAYERS][pBanned] = 1;
- AddBan(PlayerInfo[MAX_PLAYERS][pIP]);
- OnPlayerOfflineSave(name);
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was offline warned by %s, reason: %s", name, GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(string, sizeof(string), "AdmCmd: %s was offline warned by %s, reason: %s", name, GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- OnPlayerOfflineSave(name);
- return 1;
- }
- return 1;
- }
- CMD:ofine(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], name[MAX_PLAYER_NAME], amount, reason[64];
- if(sscanf(params, "s[24]ds[64]", name, amount, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ofine [name] [amount] [reason]");
- if(doesAccountExist(name))
- {
- OnPlayerOfflineLogin(name);
- if(PlayerInfo[MAX_PLAYERS][pPermaBanned] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is already permabanned!");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pBanned] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is already banned!");
- return 1;
- }
- if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't fine admin accounts!");
- return 1;
- }
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Amount must be greater than 0");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was offline fined $%d by %s, reason: %s", name, amount, GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s was offline fined $%d by %s, reason: %s", name, amount, GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- if(PlayerInfo[MAX_PLAYERS][pBank] >= amount)
- {
- PlayerInfo[MAX_PLAYERS][pBank] -= amount;
- }
- else
- {
- PlayerInfo[MAX_PLAYERS][pCash] -= amount;
- }
- OnPlayerOfflineSave(name);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account does not exist!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not a level three admin.");
- }
- return 1;
- }
- CMD:showflags(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128];
- SendClientMessage(playerid, COLOR_YELLOW, "Outstanding flags:");
- new fCounter;
- foreach(Player, i)
- {
- if(strlen(PlayerInfo[i][pFlag]) > 0)
- {
- format(string, sizeof(string), "%s (ID %d) | Reason: %s.",GetPlayerNameEx(i),i,PlayerInfo[i][pFlag]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- fCounter += 1;
- }
- }
- if(fCounter <= 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "None.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:oflag(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], name[MAX_PLAYER_NAME], reason[64];
- if(sscanf(params, "s[24]s[64]", name, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /oflag [PlayerName] [reason]");
- new giveplayerid = ReturnUser(name);
- if(IsPlayerConnected(giveplayerid))
- {
- AddFlag(giveplayerid, playerid, reason);
- SendClientMessage(playerid, COLOR_WHITE, "The player is online and has been flagged!");
- format(string, sizeof(string), "AdmCmd: %s was flagged by %s, reason: %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- else if(OAddFlag(name, playerid, reason))
- {
- format(string, sizeof(string), "AdmCmd: %s was offline flagged by %s, reason: %s.", name, GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"That account does not exist!");
- }
- return 1;
- }
- return 1;
- }
- CMD:flag(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /flag [playerid/partofname] [reason]");
- if(giveplayerid != INVALID_PLAYER_ID) {
- AddFlag(giveplayerid, playerid, reason);
- format(string, sizeof(string), "AdmCmd: %s has flagged %s, reason: %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- return 1;
- } else SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else if(PlayerInfo[playerid][pHelper] >= 1) {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /flag [playerid/partofname] [reason]");
- if(giveplayerid != INVALID_PLAYER_ID) {
- if(strlen(PlayerInfo[giveplayerid][pFlag]) != 0) {
- return SendClientMessage(playerid, COLOR_GREY, "This player already has an active flag, helpers can only create flags on players who don't have them already.");
- }
- AddFlag(giveplayerid, playerid, reason);
- format(string, sizeof(string), "AdmCmd: %s was flagged by Helper %s, reason: %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(string, sizeof(string), "Your flag on %s has been placed with the reason of %s.", GetPlayerNameEx(giveplayerid), reason);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- } else SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- return 1;
- }
- CMD:oclearflag(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], name[MAX_PLAYER_NAME];
- if(sscanf(params, "s[24]", name)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /oclearflag [PlayerName]");
- if(ORemoveFlag(name))
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has cleared all flags on %s.",GetPlayerNameEx(playerid),name);
- ABroadCast(COLOR_YELLOW,string,1);
- }
- else
- {
- format(string, sizeof(string), "Account not found: %s.", name);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not authorized to use that command!");
- return 1;
- }
- return 1;
- }
- CMD:clearflag(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /clearflag [playerid/partofname]");
- }
- else if(IsPlayerConnected(iTargetID)) {
- if(!isnull(PlayerInfo[iTargetID][pFlag])) {
- new
- szMessage[59 + (MAX_PLAYER_NAME * 2)];
- format(PlayerInfo[iTargetID][pFlag], 128, "");
- format(szMessage, sizeof(szMessage), "{AA3333}AdmWarning{FFFF00}: %s has cleared all flags on %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID));
- PlayerInfo[iTargetID][pInt] = GetPlayerInterior(iTargetID);
-
- if(GetPVarType(iTargetID, "tabbedVW") != 0) {
- PlayerInfo[iTargetID][pVW] = GetPVarInt(iTargetID, "tabbedVW");
- } else PlayerInfo[iTargetID][pVW] = GetPlayerVirtualWorld(iTargetID);
-
- GetPlayerIp(iTargetID, PlayerInfo[iTargetID][pIP], 32);
- GetPlayerPos(iTargetID, PlayerInfo[iTargetID][pPos_x], PlayerInfo[iTargetID][pPos_y], PlayerInfo[iTargetID][pPos_z]);
- GetPlayerFacingAngle(iTargetID, PlayerInfo[iTargetID][pPos_r]);
- OnPlayerStatsUpdate(iTargetID);
- return ABroadCast(COLOR_YELLOW, szMessage, 1);
- }
- SendClientMessage(playerid, COLOR_GRAD1, "That player has no outstanding flags.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:revokedl(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /revokedl [playerid/partofname] [reason]");
- new copveh = GetPlayerVehicleID(playerid);
- if((IsACopCar(copveh)) || (IsAFBICar(copveh)))
- {
- if((IsPlayerConnected(giveplayerid)) && (giveplayerid != INVALID_PLAYER_ID))
- {
- if(PlayerInfo[giveplayerid][pCarLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player has no driver's license to revoke.");
- return 1;
- }
- switch(PlayerInfo[playerid][pFaction])
- {
- case 1: // LSPD
- {
- format(string,sizeof(string),"The Los Santos Police Department has revoked your driver's license, reason: %s.",reason);
- SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,string);
- switch(PlayerInfo[playerid][pRank])
- {
- case 3: format(string,sizeof(string),"HQ: LSPD Sergeant %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 4: format(string,sizeof(string),"HQ: LSPD Lieutenant %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 5: format(string,sizeof(string),"HQ: LSPD Captain %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 6: format(string,sizeof(string),"HQ: Chief of Police %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- }
- }
- case 2: // FBI
- {
- format(string,sizeof(string),"The Federal Bureau of Investigation has revoked your driver's license, reason: %s.",reason);
- SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,string);
- switch(PlayerInfo[playerid][pRank])
- {
- case 0: format(string,sizeof(string),"HQ: FBI Intern %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 1: format(string,sizeof(string),"HQ: FBI Staff %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 2: format(string,sizeof(string),"HQ: FBI Agent %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 3: format(string,sizeof(string),"HQ: FBI Agent %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 4: format(string,sizeof(string),"HQ: FBI Special Agent %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 5: format(string,sizeof(string),"HQ: FBI Assistant Director %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 6: format(string,sizeof(string),"HQ: FBI Director %s has revoked %s's driver's license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- }
- }
- }
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- SendRadioMessage(2,TEAM_BLUE_COLOR,string);
- SendClientMessage(giveplayerid,COLOR_WHITE,"(( A new driver's license can be acquired at City Hall. If you deem this action as abuse, contact an admin. ))");
- format(string,sizeof(string),"You have revoked %s's driver's license.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_WHITE,string);
- format(string, sizeof(string), "%s took %s's driver's license. REASON: %s.", GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- Log("logs/licenses.log", string);
- PlayerInfo[giveplayerid][pCarLic] = 0;
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2,"You must be in a faction vehicle to do this.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorised to do this.");
- return 1;
- }
- CMD:revokeboatdl(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 3)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /revokeboatdl [playerid/partofname] [reason]");
- new carid = GetPlayerVehicleID(playerid);
- if(!IsAnAmbulance(carid))
- {
- SendClientMessage(playerid, COLOR_GRAD2,"You must be in a faction vehicle to do this.");
- return 1;
- }
- if((IsPlayerConnected(giveplayerid)) && (giveplayerid != INVALID_PLAYER_ID))
- {
- if(PlayerInfo[giveplayerid][pBoatLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player has no boating license to revoke.");
- return 1;
- }
- format(string,sizeof(string),"The Coast Guard has revoked your boating license, reason: %s.",reason);
- SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,string);
- format(string,sizeof(string),"HQ: Coast Guardsman %s has revoked %s's boating license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- SendRadioMessage(2,TEAM_BLUE_COLOR,string);
- SendRadioMessage(3,TEAM_BLUE_COLOR,string);
- SendClientMessage(giveplayerid,COLOR_WHITE,"(( A new boating license can be acquired at City Hall. If you deem this action as abuse, contact an admin. ))");
- format(string,sizeof(string),"You have revoked %s's boating license.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_WHITE,string);
- format(string, sizeof(string), "%s took %s's boating license. REASON: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- Log("logs/licenses.log", string);
- PlayerInfo[giveplayerid][pBoatLic] = 0;
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to do this.");
- return 1;
- }
- CMD:revokeairdl(playerid, params[])
- {
- if((PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 2) && PlayerInfo[playerid][pRank] >= 3)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "No player specified. USAGE: /revokeairdl [playerid/partofname] [reason]");
- new carid = GetPlayerVehicleID(playerid);
- if(!IsAFBICar(carid))
- {
- SendClientMessage(playerid, COLOR_GRAD2,"You must be in a faction vehicle to do this.");
- return 1;
- }
- if((IsPlayerConnected(giveplayerid)) && (giveplayerid != INVALID_PLAYER_ID))
- {
- if(PlayerInfo[giveplayerid][pFlyLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player has no pilot license to revoke.");
- return 1;
- }
- format(string,sizeof(string),"The Federal Bureau of Investigation has revoked your pilot license, reason: %s.",reason);
- SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,string);
- switch(PlayerInfo[playerid][pRank])
- {
- case 3: format(string,sizeof(string),"HQ: FBI Agent %s has revoked %s's pilot license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 4: format(string,sizeof(string),"HQ: FBI Special Agent %s has revoked %s's pilot license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 5: format(string,sizeof(string),"HQ: FBI Assistant Director %s has revoked %s's pilot license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- case 6: format(string,sizeof(string),"HQ: FBI Director %s has revoked %s's pilot license, reason: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- }
- SendRadioMessage(1,TEAM_BLUE_COLOR,string);
- SendRadioMessage(2,TEAM_BLUE_COLOR,string);
- SendRadioMessage(3,TEAM_BLUE_COLOR,string);
- SendClientMessage(giveplayerid,COLOR_WHITE,"(( A new pilot license can be acquired at City Hall. If you deem this action as abuse, contact an admin. ))");
- format(string,sizeof(string),"You have revoked %s's pilot license.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_WHITE,string);
- format(string, sizeof(string), "%s took %s's pilot license. REASON: %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),reason);
- Log("logs/licenses.log", string);
- PlayerInfo[giveplayerid][pFlyLic] = 0;
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to do this.");
- return 1;
- }
- CMD:getlicense(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid,2.0,366.559448,158.745285,1008.382812)) { return 1; }
- if(PlayerInfo[playerid][pWantedLevel] > 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You have an outstanding arrest warrant - acquisition of a license is prohibited.");
- return 1;
- }
- ShowPlayerDialogEx(playerid, DIALOG_LICENSE_BUY, DIALOG_STYLE_LIST, "Select the type of license you wish to acquire.", "Driver's License ($500)\r\nBoating License ($500)\r\nPilot License ($2500)", "Purchase", "Cancel");
- return 1;
- }
- CMD:droplicense(playerid, params[])
- {
- new string[128], type;
- if(sscanf(params, "d", type))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /droplicense [type]");
- SendClientMessage(playerid, COLOR_GRAD2, "Types: 1 = Driving, 2 = Boating, 3 = Flying.");
- }
- switch(type)
- {
- case 1:
- {
- if(PlayerInfo[playerid][pCarLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a driver's license to drop.");
- return 1;
- }
- format(string, sizeof(string), "You have dropped your driver's license.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][pCarLic] = 0;
- return 1;
- }
- case 2:
- {
- if(PlayerInfo[playerid][pBoatLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a boating license to drop.");
- return 1;
- }
- format(string, sizeof(string), "You have dropped your boating license.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][pBoatLic] = 0;
- return 1;
- }
- case 3:
- {
- if(PlayerInfo[playerid][pFlyLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a pilot license to drop.");
- return 1;
- }
- format(string, sizeof(string), "You have dropped your pilot license.");
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[playerid][pFlyLic] = 0;
- return 1;
- }
- default:
- {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid license type! /droplicense [type]");
- SendClientMessage(playerid, COLOR_GRAD2, "Types: 1 = Driving, 2 = Boating, 3 = Flying.");
- }
- }
- return 1;
- }
- CMD:rfgv(playerid, params[]) return cmd_respawnfreegangvehs(playerid, params);
- CMD:respawnfreegangvehs(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- new
- iGang;
- if(sscanf(params, "d", iGang))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /respawnfreegangvehs [gang slot ID]");
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6) {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(iGang < 1 || iGang > MAX_FAMILY || iGang > 255)
- return SendClientMessage(playerid, COLOR_GREY, "Family slot must be between 1 and 14.");
- iGang--; // the silly way the family system is scripted
- for(new v = 0; v < MAX_GANG_VEHICLES; v++) {
- if(FamilyVehicleInfo[iGang][v][fvId] > 0 && IsVehicleOccupied(FamilyVehicleInfo[iGang][v][fvId]) == INVALID_VEHICLE_ID)
- SetVehicleToRespawn(FamilyVehicleInfo[iGang][v][fvId]);
- }
- new
- szMessage[64];
- format(szMessage, sizeof(szMessage), "You have respawned all gang vehicles for %s.", FamilyInfo[iGang][FamilyName]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- } else return SendClientMessage(playerid, COLOR_GREY, "Invalid gang ID.");
- return 1;
- }
- CMD:rffv(playerid, params[]) return cmd_respawnfreefactionvehs(playerid, params);
- CMD:respawnfreefactionvehs(playerid, params[]) {
- if(PlayerInfo[playerid][pFaction] == 1 && PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] == 1) {
- for(new v = 0; v < sizeof(LSPDVehicles); v++) {
- if(LSPDVehicles[v] > 0 && IsVehicleOccupied(LSPDVehicles[v]) == INVALID_VEHICLE_ID)
- SetVehicleToRespawn(LSPDVehicles[v]);
- }
- SendClientMessage(playerid, COLOR_WHITE, "All unoccupied vehicles for your faction (LSPD) have been respawned.");
- } else if(PlayerInfo[playerid][pFaction] == 10 && PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] == 10) {
- for(new v = 0; v < sizeof(ARESVehicles); v++) {
- if(ARESVehicles[v] > 0 && IsVehicleOccupied(ARESVehicles[v]) == INVALID_VEHICLE_ID)
- SetVehicleToRespawn(ARESVehicles[v]);
- }
- SendClientMessage(playerid, COLOR_WHITE, "All unoccupied vehicles for your faction (ARES) have been respawned.");
- } else if(PlayerInfo[playerid][pFaction] == 2 && PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] == 2) {
- for(new v = 0; v < sizeof(FBIVehicles); v++) {
- if(FBIVehicles[v] > 0 && IsVehicleOccupied(FBIVehicles[v]) == INVALID_VEHICLE_ID)
- SetVehicleToRespawn(FBIVehicles[v]);
- }
- SendClientMessage(playerid, COLOR_WHITE, "All unoccupied vehicles for your faction (FBI) have been respawned.");
- } else if(PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] == 3) {
- for(new v = 0; v < sizeof(LSFMDVehicles); v++) {
- if(LSFMDVehicles[v] > 0 && IsVehicleOccupied(LSFMDVehicles[v]) == INVALID_VEHICLE_ID)
- SetVehicleToRespawn(LSFMDVehicles[v]);
- }
- SendClientMessage(playerid, COLOR_WHITE, "All unoccupied vehicles for your faction (LSFMD) have been respawned.");
- } else if(PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pRank] >= 5 || PlayerInfo[playerid][pLeader] == 5) {
- for(new v = 0; v < sizeof(GovVehicles); v++) {
- if(GovVehicles[v] > 0 && IsVehicleOccupied(GovVehicles[v]) == INVALID_VEHICLE_ID)
- SetVehicleToRespawn(GovVehicles[v]);
- }
- SendClientMessage(playerid, COLOR_WHITE, "All unoccupied vehicles for your faction (GOVERNMENT) have been respawned.");
- } else return SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use this command (or your faction does not have any vehicles that can be dynamically respawned).");
- return 1;
- }
- CMD:givelicense(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin]>=4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, type;
- if(sscanf(params, "ud", giveplayerid, type))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givelicense [playerid/partofname] [type]");
- SendClientMessage(playerid, COLOR_GRAD2, "Types: 1 = Driving, 2 = Boating, 3 = Flying.");
- return 1;
- }
- if(!IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- return 1;
- }
- switch(type)
- {
- case 1:
- {
- if(PlayerInfo[giveplayerid][pCarLic] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player already has a driver's license.");
- return 1;
- }
- format(string, sizeof(string), "You have given a driver's license to %s.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has given you a driver's license.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has given a driver's license to %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
- Log("logs/licenses.log", string);
- PlayerInfo[giveplayerid][pCarLic] = 1;
- return 1;
- }
- case 2:
- {
- if(PlayerInfo[giveplayerid][pBoatLic] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player already has a boating license.");
- return 1;
- }
- format(string, sizeof(string), "You have given a boating license to %s.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has given you a boating license.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has given a boating license to %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
- Log("logs/licenses.log", string);
- PlayerInfo[giveplayerid][pBoatLic] = 1;
- return 1;
- }
- case 3:
- {
- if(PlayerInfo[giveplayerid][pFlyLic] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player already has a pilot license.");
- return 1;
- }
- format(string, sizeof(string), "You have given a pilot license to %s.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has given you a pilot license.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s has given a pilot license to %s.",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
- Log("logs/licenses.log", string);
- PlayerInfo[giveplayerid][pFlyLic] = 1;
- return 1;
- }
- default:
- {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid license type! /givelicense [playerid/partofname] [type]");
- SendClientMessage(playerid, COLOR_GRAD2, "Types: 1 = Driving, 2 = Boating, 3 = Flying.");
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not authorised to use this command.");
- return 1;
- }
- CMD:rto(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[512], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rto [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pRMuted] == 0)
- {
- if(PlayerInfo[giveplayerid][pRMutedTotal] == 0)
- {
- PlayerInfo[giveplayerid][pRMutedTotal] = 1;
- format(string, sizeof(string), "AdmCmd: %s has given %s their first warning about report abuse, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "An admin warns you not to abuse /report.\n\nNote that future abuse of /report could result in a mute from /report or loss of that privilege altogether.");
- ShowPlayerDialogEx(giveplayerid,7954,DIALOG_STYLE_MSGBOX,"Report abuse warning", string,"Next", "");
- format(string, sizeof(string), "AdmCmd: %s has given %s their first warning about report abuse, reason: %s", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- Log("logs/mute.log", string);
- }
- else if(PlayerInfo[giveplayerid][pRMutedTotal] == 1)
- {
- PlayerInfo[giveplayerid][pRMuted] = 2;
- PlayerInfo[giveplayerid][pRMutedTotal] = 2;
- PlayerInfo[giveplayerid][pRMutedTime] = 15*60;
- format(string, sizeof(string), "AdmCmd: %s has temporarily blocked %s from submitting reports, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been temporarily blocked from submitting reports by %s, reason: %s.\n\nAs this is the second time you have been blocked from reporting, you will not be able to use /report for 15 minutes.\n\nNote that future abuse of /report could result in a longer mute from /report or loss of that privilege altogether.", GetPlayerNameEx(playerid), reason);
- ShowPlayerDialogEx(giveplayerid,7954,DIALOG_STYLE_MSGBOX,"Temporarily blocked from reports", string,"Next", "");
- format(string, sizeof(string), "AdmCmd: %s was temporarily blocked from /report by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/mute.log", string);
- }
- else if(PlayerInfo[giveplayerid][pRMutedTotal] == 2)
- {
- PlayerInfo[giveplayerid][pRMuted] = 2;
- PlayerInfo[giveplayerid][pRMutedTotal] = 3;
- PlayerInfo[giveplayerid][pRMutedTime] = 30*60;
- format(string, sizeof(string), "AdmCmd: %s has temporarily blocked %s from submitting reports, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been temporarily blocked from submitting reports by %s, reason: %s.\n\nAs this is the third time you have been blocked from reporting, you will not be able to use /report for 30 minutes.\n\nNote that future abuse of /report could result in a longer mute from /report or loss of that privilege altogether.", GetPlayerNameEx(playerid), reason);
- ShowPlayerDialogEx(giveplayerid,7954,DIALOG_STYLE_MSGBOX,"Temporarily blocked from reports", string,"Next", "");
- format(string, sizeof(string), "AdmCmd: %s was temporarily blocked from /report by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/mute.log", string);
- }
- else if(PlayerInfo[giveplayerid][pRMutedTotal] == 3)
- {
- PlayerInfo[giveplayerid][pRMuted] = 2;
- PlayerInfo[giveplayerid][pRMutedTotal] = 4;
- PlayerInfo[giveplayerid][pRMutedTime] = 45*60;
- format(string, sizeof(string), "AdmCmd: %s has temporarily blocked %s from submitting reports, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been temporarily blocked from submitting reports by %s, reason: %s.\n\nAs this is the fourth time you have been blocked from reporting, you will not be able to use /report for 45 minutes.\n\nNote that future abuse of /report could result in a longer mute from /report or loss of that privilege altogether.", GetPlayerNameEx(playerid), reason);
- ShowPlayerDialogEx(giveplayerid,7954,DIALOG_STYLE_MSGBOX,"Temporarily blocked from reports", string,"Next", "");
- format(string, sizeof(string), "AdmCmd: %s was temporarily blocked from /report by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/mute.log", string);
- }
- else if(PlayerInfo[giveplayerid][pRMutedTotal] == 4)
- {
- PlayerInfo[giveplayerid][pRMuted] = 2;
- PlayerInfo[giveplayerid][pRMutedTotal] = 5;
- PlayerInfo[giveplayerid][pRMutedTime] = 60*60;
- format(string, sizeof(string), "AdmCmd: %s has temporarily blocked %s from submitting reports, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been temporarily blocked from submitting reports by %s, reason: %s.\n\nAs this is the fifth time you have been blocked from reporting, you will not be able to use /report for 60 minutes.\n\nNote that future abuse of /report could result in a loss of that privilege altogether.", GetPlayerNameEx(playerid), reason);
- ShowPlayerDialogEx(giveplayerid,7954,DIALOG_STYLE_MSGBOX,"Temporarily blocked from reports", string,"Next", "");
- format(string, sizeof(string), "AdmCmd: %s was temporarily blocked from /report by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/mute.log", string);
- }
- else if(PlayerInfo[giveplayerid][pRMutedTotal] >= 5)
- {
- PlayerInfo[giveplayerid][pRMuted] = 2;
- PlayerInfo[giveplayerid][pRMutedTotal] = 6;
- PlayerInfo[giveplayerid][pRMutedTime] = 300*60;
- format(string, sizeof(string), "AdmCmd: %s has temporarily blocked %s from submitting reports, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been temporarily blocked from submitting reports by %s, reason: %s.\n\nAs this is the sixth time you have been blocked from reporting, you will not be able to use /report for 5 hours.\n\nNote that future abuse of /report could result in a loss of that privilege altogether.", GetPlayerNameEx(playerid), reason);
- ShowPlayerDialogEx(giveplayerid,7954,DIALOG_STYLE_MSGBOX,"Temporarily blocked from reports", string,"Next", "");
- format(string, sizeof(string), "AdmCmd: %s was temporarily blocked from /report by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/mute.log", string);
- }
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][ReportFrom] == giveplayerid)
- {
- Reports[i][BeingUsed] = 0;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is already disabled from /reports.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:rtoreset(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rtoreset [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pRMuted] == 2)
- {
- PlayerInfo[giveplayerid][pRMuted] = 0;
- PlayerInfo[giveplayerid][pRMutedTotal]--;
- PlayerInfo[giveplayerid][pRMutedTime] = 0;
- format(string, sizeof(string), "AdmCmd: %s has unblocked %s from reporting, reason: %s",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- SendClientMessage(giveplayerid, COLOR_GRAD2, "You have been unblocked from submitting reports. You may now use the reporting system again.");
- SendClientMessage(giveplayerid, COLOR_GRAD2, "Please accept our apologies for any error and inconvenience this may have caused.");
- format(string, sizeof(string), "AdmCmd: %s was unblocked from /report by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/mute.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That player is not blocked from reporting!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:rmute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rmute [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pRMuted] == 0)
- {
- PlayerInfo[giveplayerid][pRMuted] = 1;
- format(string, sizeof(string), "AdmCmd: %s has indefinitely blocked %s from submitting reports.",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been blocked from submitting /reports by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- SendClientMessage(giveplayerid, COLOR_GRAD2, "You will not be able to submit reports until you're unblocked. To appeal this action contact us on "WEBSITE);
- format(string, sizeof(string), "AdmCmd: %s was blocked from /report by %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/mute.log", string);
- }
- else
- {
- PlayerInfo[giveplayerid][pRMuted] = 0;
- PlayerInfo[giveplayerid][pRMutedTime] = 0;
- format(string, sizeof(string), "AdmCmd: %s has been re-allowed to submit reports by %s",GetPlayerNameEx(giveplayerid),GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been re-allowed to submitting /reports again by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "AdmCmd: %s was unblocked from /report by %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/mute.log", string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:sellgun(playerid, params[])
- {
- new string[128];
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0) {
- SendClientMessage(playerid,COLOR_GREY," You can't do this while being in a arena!");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") == 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this command while in an event.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] != 9 && PlayerInfo[playerid][pJob2] != 9) {
- SendClientMessage(playerid,COLOR_GREY," You're not a Arms Dealer!");
- return 1;
- }
- /*if(WatchingTV[playerid] != 0) {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while watching TV!");
- return 1;
- }*/
- if(PlayerInfo[playerid][pScrewdriver] == 0) {
- SendClientMessage(playerid,COLOR_GREY," You need a screwdriver from a craftsman to make a weapon!");
- return 1;
- }
- if(PlayerInfo[playerid][pJailTime] > 0) {
- SendClientMessage(playerid,COLOR_GREY,"You can't make guns while in jail or prison!");
- return 1;
- }
- if(PlayerInfo[playerid][pWepRes] != 0)
- {
- format(string, sizeof(string), "You are weapon restricted for the next %d hours.", PlayerInfo[playerid][pWepRes]);
- SCM(playerid, -1, string);
- return 1;
- }
- if(PlayerBoxing[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can make guns while you're boxing.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You can't sell a weapon while in a vehicle.");
- if(GetPVarInt(playerid, "ArmsTimer") > 0) {
- format(string, sizeof(string), " You must wait %d seconds before selling another weapon.", GetPVarInt(playerid, "ArmsTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(GetPVarInt(playerid, "Hospital") == 1 || GetPVarInt(playerid, "Hospital") == 2 || GetPVarInt(playerid, "Hospital") == 3 || GetPVarInt(playerid, "Hospital") == 4 || GetPVarInt(playerid, "Hospital") == 5) {
- SendClientMessage(playerid, COLOR_GREY, "You can't spawn a weapon whilst in Hospital.");
- return 1;
- }
- new giveplayerid,x_weapon[20],weapon,price;
- if(sscanf(params, "us[20]", giveplayerid, x_weapon)) {
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_YELLOW, "<< Available weapons >>");
- new level = PlayerInfo[playerid][pArmsSkill];
- if(level >= 0 && level < 50) {
- SendClientMessage(playerid, COLOR_GRAD1, "sdpistol(100) flowers(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "9mm(150)");
- SendClientMessage(playerid, COLOR_GRAD1, "shotgun(200) knuckles(25)");
- }
- else if(level >= 50 && level < 100) {
- SendClientMessage(playerid, COLOR_GRAD1, "sdpistol(100) flowers(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "9mm(150)");
- SendClientMessage(playerid, COLOR_GRAD1, "shotgun(200) knuckles(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "mp5(400) baseballbat(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "rifle(1000) cane(25)");
- }
- else if(level >= 100 && level < 200) {
- SendClientMessage(playerid, COLOR_GRAD1, "sdpistol(100) flowers(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "9mm(150)");
- SendClientMessage(playerid, COLOR_GRAD1, "shotgun(200) knuckles(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "mp5(400) baseballbat(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "rifle(1000) cane(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "deagle(2000) shovel(25)");
- }
- else if(level >= 200 && level < 400) {
- SendClientMessage(playerid, COLOR_GRAD1, "sdpistol(100) flowers(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "9mm(150)");
- SendClientMessage(playerid, COLOR_GRAD1, "shotgun(200) knuckles(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "mp5(400) baseballbat(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "rifle(1000) cane(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "deagle(2000) shovel(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "ak47(3500) poolcue(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "m4(4500) golfclub(25)");
- }
- else if(level >= 400) {
- SendClientMessage(playerid, COLOR_GRAD1, "sdpistol(100) flowers(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "9mm(150)");
- SendClientMessage(playerid, COLOR_GRAD1, "shotgun(200) knuckles(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "mp5(400) baseballbat(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "rifle(1000) cane(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "deagle(2000) shovel(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "ak47(3500) poolcue(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "m4(4500) golfclub(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "spas12(6500) dildo(25)");
- SendClientMessage(playerid, COLOR_GRAD1, "sniper(7000) katana(25)");
- }
- /*if(PlayerInfo[playerid][pDonator] >= 3)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Gold+ VIP Feature: uzi(1250) tec9(1250)");
- }*/
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellgun [playerid/partofname] [weaponname]");
- return 1;
- }
- if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "You can't sell a weapon to this player as they're not connected.");\
- if(PlayerInfo[giveplayerid][pWepRes] != 0)
- return SCM(playerid, COLOR_GREY, "You can't sell gun to this player as they are wep restriction.");
- if(strcmp(x_weapon,"dildo",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 400) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 10; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"katana",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 400) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 8; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"golfclub",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 200) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 2; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"poolcue",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 200) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 7; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"shovel",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 100) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 6; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"cane",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 50) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 15; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"baseballbat",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 50) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 5; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"knuckles",true) == 0) {
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 1; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"sdpistol",true) == 0) {
- if(PlayerInfo[playerid][pMats] > 99) {
- weapon = 23; price = 100;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"flowers",true) == 0) {
- if(PlayerInfo[playerid][pMats] > 24) {
- weapon = 14; price = 25;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"deagle",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 100) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 1999) {
- weapon = 24; price = 2000;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"mp5",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 50) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 399) {
- weapon = 29; price = 400;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- /*else if(strcmp(x_weapon,"uzi",true) == 0) {
- if(PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_GREY, "You're not a Gold+ VIP!");
- if(PlayerInfo[playerid][pMats] > 1249) {
- weapon = 28; price = 1250;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"tec9",true) == 0) {
- if(PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_GREY, "You're not a Gold+ VIP!");
- if(PlayerInfo[playerid][pMats] > 1249) {
- weapon = 32; price = 1250;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }*/
- else if(strcmp(x_weapon,"shotgun",true) == 0) {
- if(PlayerInfo[playerid][pMats] > 199) {
- weapon = 25; price = 200;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"9mm",true) == 0) {
- if(PlayerInfo[playerid][pMats] > 149) {
- weapon = 22; price = 150;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"spas12",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 400) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 6499) {
- weapon = 27; price = 6500;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"sniper",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 400) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 6999) {
- weapon = 34; price = 7000;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"ak47",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 200) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 3499) {
- weapon = 30; price = 3500;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"m4",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 200) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 4499) {
- weapon = 31; price = 4500;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else if(strcmp(x_weapon,"rifle",true) == 0) {
- if(PlayerInfo[playerid][pArmsSkill] < 50) return SendClientMessage(playerid, COLOR_GREY, "You're not the required level to create that!");
- if(PlayerInfo[playerid][pMats] > 999) {
- weapon = 33; price = 1000;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that Weapon!");
- return 1;
- }
- }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid Weapon name!"); return 1; }
- if(ProxDetectorS(5.0, playerid, giveplayerid)) {
- if(PlayerInfo[giveplayerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "That player is currently restricted from possessing weapons!");
- if(giveplayerid == playerid) {
- format(string, sizeof(string), " You have given yourself a %s.", x_weapon);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- switch(PlayerInfo[playerid][pSex])
- {
- case 1: format(string, sizeof(string), "* %s created a Gun from Materials, and hands it to himself.", GetPlayerNameEx(playerid));
- case 2: format(string, sizeof(string), "* %s created a Gun from Materials, and hands it to herself.", GetPlayerNameEx(playerid));
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerValidWeapon(playerid,weapon,50000);
- PlayerInfo[playerid][pMats] -= price;
- if(weapon > 15) {
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pArmsSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pArmsSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pArmsSkill]++;
- }
- }
- /*if(AdminDuty[playerid] != 1)
- {
- SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- }*/
- SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- if(PlayerInfo[playerid][pArmsSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 2, more weapons are available to sell."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 100)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 3, more weapons are available to sell."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 200)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 4, more weapons are available to sell."); }
- else if(PlayerInfo[playerid][pArmsSkill] == 400)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Arms Dealer Skill is now Level 5, more weapons are available to sell."); }
- return 1;
- }
- format(string, sizeof(string), "* You offered %s to buy a %s.", GetPlayerNameEx(giveplayerid), x_weapon);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Arms Dealer %s wants to sell you a %s, (type /accept weapon) to buy.", GetPlayerNameEx(playerid), x_weapon);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GunOffer[giveplayerid] = playerid;
- GunId[giveplayerid] = weapon;
- GunMats[giveplayerid] = price;
- /*if(AdminDuty[playerid] != 1) {
- SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- }*/
- SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- return 1;
- }
- CMD:giveweapon(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] > 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't give away weapons if you're Gold+ VIP!");
- return 1;
- }*/
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(health < 80)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't give weapons if your health is below 80!");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0||GetPlayerState(playerid) == 7)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't give weapons in a vehicle!");
- return 1;
- }
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- new string[58];
- format(string, sizeof(string), "You must wait %d seconds before giving another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new string[128], giveplayerid, weapon[64];
- if(sscanf(params, "us[64]", giveplayerid, weapon))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /giveweapon [playerid/partofname] [weapon name]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: sdpistol, shotgun, 9mm, mp5, uzi, tec9, rifle, deagle, ak47, m4, spas12, sniper");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: flowers, knuckles, baseballbat, cane, shovel, poolcue, golfclub, katana, dildo, parachute");
- return 1;
- }
- if(giveplayerid == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "You can't give a weapon to this player as they're not connected.");
- if(PlayerInfo[giveplayerid][pWepRes] != 0)
- return SCM(playerid, -1, "You can't give the player as they are weapon restricted.");
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't give weapons to players in vehicles!");
- return 1;
- }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't give a weapon to yourself!");
- return 1;
- }
- if(!ProxDetectorS(3.0, playerid, giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- if(PlayerInfo[playerid][pFaction] != PlayerInfo[giveplayerid][pFaction] && PlayerInfo[playerid][pFaction] > 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't give weapons to players outside your faction!");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "That player is currently restricted from possessing weapons");
- if(IsPlayerInAnyVehicle(giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Please exit the vehicle, before using this command.");
- if(strcmp(weapon, "sdpistol", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 23)
- {
- if(PlayerInfo[giveplayerid][pGuns][2] != 23 && PlayerInfo[giveplayerid][pGuns][2] != 24)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your silenced pistol.");
- format(string, sizeof(string), "* %s has given %s their silenced pistol.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 23);
- GivePlayerValidWeapon(giveplayerid, 23, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s(IP:%s) has given %s (IP:%s) their silenced pistol.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a silenced pistol or Desert Eeagle!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- if(strcmp(weapon, "9mm", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 22)
- {
- if(PlayerInfo[giveplayerid][pGuns][2] != 22 && PlayerInfo[giveplayerid][pGuns][2] != 24)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your 9mm pistol.");
- format(string, sizeof(string), "* %s has given %s their 9mm pistol.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 22);
- GivePlayerValidWeapon(giveplayerid, 22, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their 9mm pistol.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a silenced pistol or Desert Eeagle!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "shotgun", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][ 3 ] == 25)
- {
- if(PlayerInfo[giveplayerid][pGuns][ 3 ] != 25 && PlayerInfo[giveplayerid][pGuns][ 3 ] != 27)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your shotgun.");
- format(string, sizeof(string), "* %s has given %s their shotgun.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 25);
- GivePlayerValidWeapon(giveplayerid, 25, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s(IP:%s) has given %s (IP:%s) their shotgun.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a MP5, Micro SMG or Tec-9!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "mp5", true) == 0) {
- if(PlayerInfo[playerid][pGuns][4] == 29)
- {
- if(PlayerInfo[giveplayerid][pGuns][4] != 28 && PlayerInfo[giveplayerid][pGuns][4] != 29 && PlayerInfo[giveplayerid][pGuns][4] != 32)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your MP5.");
- format(string, sizeof(string), "* %s has given %s their MP5.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 29);
- GivePlayerValidWeapon(giveplayerid, 29, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their MP5.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a MP5!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "uzi", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 28)
- {
- if(PlayerInfo[giveplayerid][pGuns][4] != 28 && PlayerInfo[giveplayerid][pGuns][4] != 29 && PlayerInfo[giveplayerid][pGuns][4] != 32)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your Micro SMG.");
- format(string, sizeof(string), "* %s has given %s their Micro SMG.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 28);
- GivePlayerValidWeapon(giveplayerid, 28, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their Micro SMG.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a MP5, Micro SMG or Tec-9!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "tec9", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 32)
- {
- if(PlayerInfo[giveplayerid][pGuns][4] != 28 && PlayerInfo[giveplayerid][pGuns][4] != 29 && PlayerInfo[giveplayerid][pGuns][4] != 32)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your Tec-9.");
- format(string, sizeof(string), "* %s has given %s their Tec-9.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 32);
- GivePlayerValidWeapon(giveplayerid, 32, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their Tec-9.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a MP5, Micro SMG or Tec-9!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "deagle", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 24)
- {
- if(PlayerInfo[giveplayerid][pGuns][2] != 24)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your Desert Eagle.");
- format(string, sizeof(string), "* %s has given %s their Desert Eeagle.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 24);
- GivePlayerValidWeapon(giveplayerid, 24, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their Desert Eagle.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a Desert Eeagle!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "rifle", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 33)
- {
- if(PlayerInfo[giveplayerid][pGuns][6] != 33 && PlayerInfo[giveplayerid][pGuns][6] != 34)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your rifle.");
- format(string, sizeof(string), "* %s has given %s their rifle.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 33);
- GivePlayerValidWeapon(giveplayerid, 33, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their rifle.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a rifle!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "ak47", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 30)
- {
- if(PlayerInfo[giveplayerid][pGuns][5] != 30 && PlayerInfo[giveplayerid][pGuns][5] != 31)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your AK-47.");
- format(string, sizeof(string), "* %s has given %s their AK-47.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 30);
- GivePlayerValidWeapon(giveplayerid, 30, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their AK-47.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a AK-47 or M4!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "m4", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 31)
- {
- if(PlayerInfo[giveplayerid][pGuns][5] != 31)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your M4.");
- format(string, sizeof(string), "* %s has given %s their M4.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 31);
- GivePlayerValidWeapon(giveplayerid, 31, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their M4.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a M4!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "spas12", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][ 3 ] == 27)
- {
- if(PlayerInfo[giveplayerid][pGuns][ 3 ] != 27)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your SPAS-12.");
- format(string, sizeof(string), "* %s has given %s their SPAS-12.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 27);
- GivePlayerValidWeapon(giveplayerid, 27, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their SPAS-12.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a SPAS-12!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "sniper", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 34)
- {
- if(PlayerInfo[giveplayerid][pGuns][6] != 34)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your sniper rifle.");
- format(string, sizeof(string), "* %s has given %s their sniper rifle.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 34);
- GivePlayerValidWeapon(giveplayerid, 34, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their sniper rifle.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player already has a sniper rifle!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "flowers", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][10] == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your flowers.");
- format(string, sizeof(string), "* %s has given %s their flowers.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 14);
- GivePlayerValidWeapon(giveplayerid, 14, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their flowers.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "knuckles", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][0] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your brass knuckles.");
- format(string, sizeof(string), "* %s has given %s their brass knuckles.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 1);
- GivePlayerValidWeapon(giveplayerid, 1, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their brass knuckles.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "baseballbat", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 5)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your baseball bat.");
- format(string, sizeof(string), "* %s has given %s their baseball bat.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 5);
- GivePlayerValidWeapon(giveplayerid, 5, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their baseball bat.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "cane", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][10] == 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your cane.");
- format(string, sizeof(string), "* %s has given %s their cane.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 15);
- GivePlayerValidWeapon(giveplayerid, 15, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their cane.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "shovel", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your shovel.");
- format(string, sizeof(string), "* %s has given %s their shovel.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 6);
- GivePlayerValidWeapon(giveplayerid, 6, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their shovel.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "golfclub", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your golf club.");
- format(string, sizeof(string), "* %s has given %s golf club.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 2);
- GivePlayerValidWeapon(giveplayerid, 2, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their golf club.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "katana") == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 8)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your katana.");
- format(string, sizeof(string), "* %s has given %s their katana.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 8);
- GivePlayerValidWeapon(giveplayerid, 8, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their katana.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "dildo", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][10] == 10)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your dildo.");
- format(string, sizeof(string), "* %s has given %s their dildo.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 10);
- GivePlayerValidWeapon(giveplayerid, 10, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their dildo.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(weapon, "parachute", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][11] == 46)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have given away your parachute.");
- format(string, sizeof(string), "* %s has given %s their parachute.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 46);
- GivePlayerValidWeapon(giveplayerid, 46, 60000);
- /*new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- format(string, sizeof(string), "%s (IP:%s) has given %s (IP:%s) their parachute.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex);
- Log("logs/pay.log", string);*/
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You have entered an invalid weapon name.");
- }
- return 1;
- }
- CMD:dropweapon(playerid, params[])
- {
- return cmd_dropgun(playerid, params);
- }
- CMD:dropgun(playerid, params[])
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dropweapon [weapon name]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: sdpistol, shotgun, 9mm, mp5, uzi, tec9, rifle, deagle, ak47, m4, spas12, sniper, camera");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: flowers, knuckles, baseballbat, cane, shovel, poolcue, golfclub, katana, dildo, parachute");
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: knife");
- }
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: nitestick, mace, smoke, chainsaw, fire");
- }
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't drop weapons in a vehicle!");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- return 1;
- }
- new string[128];
- if(strcmp(params, "sdpistol", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 23)
- {
- if(pTazer[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You can't drop your tazer.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your silenced pistol.");
- format(string, sizeof(string), "* %s has dropped their silenced pistol.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 23);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "camera", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][9] == 43)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your camera.");
- format(string, sizeof(string), "* %s has dropped their camera.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 43);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "nitestick", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your nitestick.");
- format(string, sizeof(string), "* %s has dropped their nitestick.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 3);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "mace", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][9] == 41)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your mace.");
- format(string, sizeof(string), "* %s has dropped their mace.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 41);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "knife", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your knife.");
- format(string, sizeof(string), "* %s has dropped their knife.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 4);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "9mm", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 22)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your 9mm pistol.");
- format(string, sizeof(string), "* %s has dropped their 9mm pistol.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 22);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "shotgun", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][ 3 ] == 25)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your shotgun.");
- format(string, sizeof(string), "* %s has dropped their shotgun.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 25);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "mp5", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 29)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your MP5.");
- format(string, sizeof(string), "* %s has dropped their MP5.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 29);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "uzi", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 28)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your Micro SMG.");
- format(string, sizeof(string), "* %s has dropped their Micro SMG.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 28);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "uzi", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 32)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your Tec-9.");
- format(string, sizeof(string), "* %s has dropped their Tec-9.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 32);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "deagle", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 24)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your Desert Eagle.");
- format(string, sizeof(string), "* %s has dropped their Desert Eagle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 24);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "rifle", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 33)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your rifle.");
- format(string, sizeof(string), "* %s has dropped their rifle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 33);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "ak47", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 30)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your AK-47.");
- format(string, sizeof(string), "* %s has dropped their AK-47.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 30);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "m4", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 31)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your M4.");
- format(string, sizeof(string), "* %s has dropped their M4.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 31);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "spas12", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][ 3 ] == 27)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your SPAS-12.");
- format(string, sizeof(string), "* %s has dropped their SPAS-12.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 27);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "sniper", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 34)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your sniper rifle.");
- format(string, sizeof(string), "* %s has dropped their sniper rifle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 34);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "flowers", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][10] == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your flowers.");
- format(string, sizeof(string), "* %s has dropped their flowers.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 14);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "knuckles", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][0] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your brass knuckles.");
- format(string, sizeof(string), "* %s has dropped their brass knuckles.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "baseballbat", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 5)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your baseball bat.");
- format(string, sizeof(string), "* %s has dropped their baseball bat.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "cane", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][10] == 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your cane.");
- format(string, sizeof(string), "* %s has dropped their cane.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pGuns][10] = 0;
- RemovePlayerWeapon(playerid, 15);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "shovel", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your shovel.");
- format(string, sizeof(string), "* %s has dropped their shovel.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 6);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "golfclub", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your golf club.");
- format(string, sizeof(string), "* %s has dropped their golf club.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 2);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "katana") == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 8)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your katana.");
- format(string, sizeof(string), "* %s has dropped their katana.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 8);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "dildo", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][10] == 10)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your dildo.");
- format(string, sizeof(string), "* %s has dropped their dildo.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 10);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "parachute", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][11] == 46)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your parachute.");
- format(string, sizeof(string), "* %s has dropped their parachute.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 46);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "smoke", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][8] == 17)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your smoke grenade.");
- format(string, sizeof(string), "* %s has dropped their smoke grenade.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 17);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "chainsaw", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 9)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your chainsaw.");
- format(string, sizeof(string), "* %s has dropped their chainsaw.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 9);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "fire", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][9] == 42)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your fire extinguisher.");
- format(string, sizeof(string), "* %s has dropped their fire extinguisher.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 42);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "minigun", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][7] == 38)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your minigun.");
- format(string, sizeof(string), "* %s has dropped their minigun.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 38);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else if(strcmp(params, "poolcue", true) == 0)
- {
- if(PlayerInfo[playerid][pGuns][1] == 7)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have dropped your pool cue.");
- format(string, sizeof(string), "* %s has dropped their pool cue.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- RemovePlayerWeapon(playerid, 7);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not have that weapon!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You have entered an invalid weapon name.");
- }
- return 1;
- }
- CMD:backup(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)
- {
- if(Backup[playerid] != 1)
- {
- new
- zone[MAX_ZONE_NAME],
- string[40 + MAX_PLAYER_NAME];
- GetPlayer3DZone(playerid, zone, sizeof(zone));
- format(string, sizeof(string), "* %s requests backup over their radio.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s is requesting immediate backup at %s.", GetPlayerNameEx(playerid), zone);
- Backup[playerid] = 1;
- foreach(Player, i)
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, 0x2641FEAA);
- SendClientMessage(i, TEAM_BLUE_COLOR, string);
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, "Type /nobackup to clear your backup request.");
- SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You already have an active backup request!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not a Cop / FBI / Coastguard!");
- }
- return 1;
- }
- CMD:neon(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must be at least Ruby+Donator to use this feature.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You are not the driver");
- return 1;
- }
- ShowPlayerDialogEx(playerid, NEONMENU, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove Neon", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You are not in a vehicle");
- }
- return 1;
- }
- CMD:fbackup(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] < 255)
- {
- if(PlayerInfo[playerid][pGPS] == 0) return SCM(playerid, COLOR_GREY, "You don't have a GPS.");
- if(fBackup[playerid] != 1)
- {
- new
- zone[MAX_ZONE_NAME],
- string[40 + MAX_PLAYER_NAME];
- GetPlayer3DZone(playerid, zone, sizeof(zone));
- format(string, sizeof(string), "* %s requests backup over their radio.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s is requesting immediate backup at %s.", GetPlayerNameEx(playerid), zone);
- fBackup[playerid] = 1;
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == PlayerInfo[playerid][pGang])
- {
- SetPlayerMarkerForPlayer(i, playerid, COLOR_YELLOW);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, "Type /nobackup to clear your backup request.");
- SetTimerEx("fBackupClear", 180000, false, "ii", playerid, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You already have an active backup request!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not in a Gang!");
- }
- return 1;
- }
- CMD:nobackup(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] < 255) { fBackupClear(playerid, 0); }
- if(PlayerInfo[playerid][pFaction] > 0) { BackupClear(playerid, 0); }
- return 1;
- }
- CMD:badge(playerid, params[]) {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- if(GetPVarInt(playerid, "EventToken") == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this command while in an event.");
- return 1;
- }
- if(PlayerInfo[playerid][pDuty])
- {
- PlayerInfo[playerid][pDuty] = 0;
- SetPlayerToTeamColor(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have hidden your badge, and will now be identified as being off-duty.");
- }
- else
- {
- PlayerInfo[playerid][pDuty] = 1;
- SetPlayerToTeamColor(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have shown your badge, and will now be identified as being on-duty.");
- }
- }
- return 1;
- }
- CMD:me(playerid, params[])
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
- new string[128];
- format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- CMD:do(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /do [action]");
- else if(strlen(params) >= 100) return SendClientMessage(playerid, COLOR_GREY, "The specified message must not be longer than 99 characters in length.");
- new string[128];
- format(string, sizeof(string), "* %s (( %s ))", params, GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- CMD:shout(playerid, params[]) {
- return cmd_s(playerid, params);
- }
- CMD:s(playerid, params[]) {
- if(gPlayerLogged[playerid] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/s)hout [shout chat]");
- new string[128];
- format(string, sizeof(string), "(shouts) %s!", params);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,60.0,5000);
- format(string, sizeof(string), "%s shouts: %s!", GetPlayerNameEx(playerid), params);
- ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
- if(PlayerInfo[playerid][pBugged] == 1) {
- format(string, sizeof(string), "(bug) %s shouts: %s!", GetPlayerNameEx(playerid), params);
- SendBugMessage(2, COLOR_LIGHTGREEN, string);
- }
- return 1;
- }
- CMD:low(playerid, params[]) {
- return cmd_l(playerid, params);
- }
- CMD:l(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/l)ow [close chat]");
- new string[128];
- format(string, sizeof(string), "%s says quietly: %s", GetPlayerNameEx(playerid), params);
- ProxDetector(5.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- format(string, sizeof(string), "(quietly) %s", params);
- SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
- if(PlayerInfo[playerid][pBugged] == 1)
- {
- format(string, sizeof(string), "(bug) %s says quietly: %s", GetPlayerNameEx(playerid), params);
- SendBugMessage(2, COLOR_LIGHTGREEN, string);
- }
- return 1;
- }
- CMD:b(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
- new string[128];
- format(string, sizeof(string), "%s says: (( %s ))", GetPlayerNameEx(playerid), params);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- return 1;
- }
- CMD:w(playerid, params[])
- {
- new giveplayerid, whisper[128];
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if(sscanf(params, "us[128]", giveplayerid, whisper))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/w)hisper [playerid/partofname] [text]");
- return 1;
- }
- /*if(WatchingTV[playerid] != 0 && PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this while watching TV.");
- return 1;
- }*/
- if(IsPlayerConnected(giveplayerid))
- {
- if(HidePM[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is blocking whispers!");
- return 1;
- }
- new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME], string[128];
- sendername = GetPlayerNameEx(playerid);
- giveplayer = GetPlayerNameEx(giveplayerid);
- if(giveplayerid == playerid)
- {
- if(PlayerInfo[playerid][pSex] == 1) format(string, sizeof(string), "* %s mutters something to himself.", GetPlayerNameEx(playerid));
- else format(string, sizeof(string), "* %s mutters something to herself.", GetPlayerNameEx(playerid));
- return ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(ProxDetectorS(5.0, playerid, giveplayerid) || AdminDuty[playerid] == 1)
- {
- format(string, sizeof(string), "%s (ID %d) whispers to you: %s", GetPlayerNameEx(playerid), playerid, whisper);
- if(strlen(string) > 92)
- {
- new firstline[128], secondline[128];
- strmid(firstline, string, 0, 88);
- strmid(secondline, string, 88, 128);
- format(firstline, sizeof(firstline), "%s ...", firstline);
- SendClientMessage(giveplayerid, COLOR_YELLOW, firstline);
- SendClientMessage(giveplayerid, COLOR_YELLOW, secondline);
- }
- else SendClientMessage(giveplayerid,COLOR_YELLOW, string);
- format(string, sizeof(string), "You whispered to %s: %s", GetPlayerNameEx(giveplayerid),whisper);
- if(strlen(string) > 92)
- {
- new firstline[128], secondline[128];
- strmid(firstline, string, 0, 88);
- strmid(secondline, string, 88, 128);
- format(firstline, sizeof(firstline), "%s ...", firstline);
- SendClientMessage(playerid, COLOR_YELLOW, firstline);
- SendClientMessage(playerid, COLOR_YELLOW, secondline);
- }
- else SendClientMessage(playerid,COLOR_YELLOW, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:togwhisper(playerid, params[])
- {
- if(!HidePM[playerid])
- {
- HidePM[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have disabled whisper chat.");
- }
- else
- {
- HidePM[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You have enabled whisper chat.");
- }
- return 1;
- }
- CMD:getparachute(playerid, params[]) {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1544.2, -1353.4, 329.4)) { // Startower parachute
- if(PlayerInfo[playerid][pGuns][11] == 46)
- RemovePlayerWeapon(playerid, 46);
- if(PlayerInfo[playerid][pGuns][11] != 46) {
- GivePlayerValidWeapon(playerid, 46, 99999);
- }
- else SendClientMessage(playerid, COLOR_GREY,"You already have a parachute.");
- }
- else SendClientMessage(playerid, COLOR_GREY,"You're not close enough to the parachute on Startower.");
- return 1;
- }
- CMD:changename(playerid, params[])
- {
- if(IsAtNameChange(playerid))
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't access this while on-duty as admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 4)
- {
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE, DIALOG_STYLE_INPUT, "Name Change","Please enter your new desired name!\n\nNote: Name Changes are free for hitmen and FBI.", "Change", "Cancel");
- }
- else
- {
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE, DIALOG_STYLE_INPUT, "Name Change","Please enter your new desired name!\n\nNote: Name Changes cost $1500 per level.", "Change", "Cancel");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You're not in the Name Change Place!");
- }
- return 1;
- }
- CMD:nrn(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2) {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /nrn [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid)) {
- if(PlayerInfo[giveplayerid][pAdmin] >= 1 || PlayerInfo[giveplayerid][pHelper] >= 1 || PlayerInfo[giveplayerid][pLevel] >= 2 && PlayerInfo[playerid][pAdmin] < 1)
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't use that command on admins, helpers or players higher than level 1 (if you're a helper).");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has offered %s a free name change because their name is non-RP.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- ShowPlayerDialogEx(giveplayerid, DIALOG_NAMECHANGE2, DIALOG_STYLE_INPUT, "Free name change","This is a roleplay server where you must have a name in this format: Firstname_Lastname.\nFor example: John_Smith or Jimmy_Johnson\n\nAn admin has offered you to change your name to the correct format for free. Please enter your desired name below.\n\nNote: If you press cancel you will be kicked from the server.", "Change", "Cancel");
- format(string, sizeof(string), "You have forced %s to change their name.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(strlen(PlayerInfo[giveplayerid][pFlag]) == 0)
- AddFlag(giveplayerid, playerid, "Non-RP name, needs to be changed");
- }
- }
- return 1;
- }
- CMD:nchange(playerid, params[])
- return cmd_namechanges(playerid, params);
- CMD:namechanges(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new
- nstring[64 + (MAX_PLAYER_NAME * 2)],
- newname[ MAX_PLAYER_NAME ];
- SendClientMessage(playerid, COLOR_GREEN, "* Pending name changes:");
- foreach(Player, i)
- {
- if(GetPVarType(i, "RequestingNameChange"))
- {
- GetPVarString(i, "NewNameRequest", newname, MAX_PLAYER_NAME);
- format(nstring, sizeof(nstring), "Current name: %s (ID: %d) | Requested name: %s | Price: %d", GetPlayerNameEx(i), i, newname, GetPVarInt(i, "NameChangeCost"));
- SendClientMessage(playerid, COLOR_YELLOW, nstring);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "_____________________________________________________");
- }
- return 1;
- }
- CMD:approvename(playerid, params[])
- {
- new string[128], giveplayerid;
- new playername[MAX_PLAYER_NAME];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /approvename [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(GetPVarInt(giveplayerid, "RequestingNameChange") == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player isn't requesting a namechange!");
- return 1;
- }
- GetPlayerName(giveplayerid, playername, sizeof(playername));
- new newname[MAX_PLAYER_NAME];
- GetPVarString(giveplayerid, "NewNameRequest", newname, MAX_PLAYER_NAME);
- if(doesAccountExist(newname))
- {
- SendClientMessage(giveplayerid, COLOR_GRAD2, "That name already exists, please choose a different one.");
- SendClientMessage(playerid, COLOR_GRAD2, "That name already exists.");
- DeletePVar(giveplayerid, "RequestingNameChange");
- return 1;
- }
- //format(newname, sizeof(newname), "users/%s.ini", tmp);
- if(PlayerInfo[giveplayerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], true) == 0)
- {
- //strmid(HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], newname, 0, strlen(newname), 255);
- format(HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], MAX_PLAYER_NAME, "%s", newname);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner],HouseInfo[PlayerInfo[giveplayerid][pHouse]][hLevel],PlayerInfo[giveplayerid][pHouse]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[giveplayerid][pHouse]][hTextID], COLOR_HOUSEGREEN, string);
- }
- if(PlayerInfo[giveplayerid][pHouse2] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hOwner], true) == 0)
- {
- //strmid(HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], newname, 0, strlen(newname), 255);
- format(HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hOwner], MAX_PLAYER_NAME, "%s", newname);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hOwner],HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hLevel],PlayerInfo[giveplayerid][pHouse2]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hTextID], COLOR_HOUSEGREEN, string);
- }
- if(PlayerInfo[giveplayerid][pDonator] >= 1)
- {
- new string2[128];
- format(string2, sizeof(string2), "[DONATOR NAMECHANGES] %s has changed their name to %s.", GetPlayerNameEx(giveplayerid), newname);
- Log("logs/donatornames.log", string2);
- }
- if(PlayerInfo[giveplayerid][pFaction] == 2 || PlayerInfo[giveplayerid][pFaction] == 4)
- {
- format(string, sizeof(string), " Your name has been changed from %s to %s for free (hitman or FBI).", GetPlayerNameEx(giveplayerid), newname);
- SendClientMessage(giveplayerid,COLOR_YELLOW,string);
- format(string, sizeof(string), " You have changed %s's name to %s at no cost.", GetPlayerNameEx(giveplayerid), newname);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- format(string, sizeof(string), "%s changed \"%s\"s name to \"%s\" for free (hitman or FBI).",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),newname);
- Log("logs/stats.log", string);
- format(string, sizeof(string), "%s has approved %s's name change to %s at no cost (hitman or FBI).",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid), newname);
- ABroadCast(COLOR_YELLOW, string, 1);
- SetPlayerName(giveplayerid, newname);
- PlayerInfo[giveplayerid][pInt] = GetPlayerInterior(giveplayerid);
-
- if(GetPVarType(giveplayerid, "tabbedVW") != 0) {
- PlayerInfo[giveplayerid][pVW] = GetPVarInt(giveplayerid, "tabbedVW");
- } else PlayerInfo[giveplayerid][pVW] = GetPlayerVirtualWorld(giveplayerid);
-
- GetPlayerIp(giveplayerid, PlayerInfo[giveplayerid][pIP], 32);
- GetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]);
- GetPlayerFacingAngle(giveplayerid, PlayerInfo[giveplayerid][pPos_r]);
- OnPlayerStatsUpdate(giveplayerid);
- DeletePVar(giveplayerid, "RequestingNameChange");
- }
- else
- {
- if(GetPVarInt(giveplayerid, "NameChangeCost") == 0)
- {
- format(string, sizeof(string), " Your name has been changed from %s to %s for free (non-RP name).", GetPlayerNameEx(giveplayerid), newname);
- SendClientMessage(giveplayerid,COLOR_YELLOW,string);
- format(string, sizeof(string), " You have changed %s's name to %s for free (non-RP name).", GetPlayerNameEx(giveplayerid), newname);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- format(string, sizeof(string), "%s changed \"%s\"s name to \"%s\" for free (non-RP name).",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),newname);
- Log("logs/stats.log", string);
- format(string, sizeof(string), "%s has approved %s's name change to %s for free (non-RP name).",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid), newname);
- ABroadCast(COLOR_YELLOW, string, 1);
- SetPlayerName(giveplayerid, newname);
- PlayerInfo[giveplayerid][pInt] = GetPlayerInterior(giveplayerid);
-
- if(GetPVarType(giveplayerid, "tabbedVW") != 0) {
- PlayerInfo[giveplayerid][pVW] = GetPVarInt(giveplayerid, "tabbedVW");
- } else PlayerInfo[giveplayerid][pVW] = GetPlayerVirtualWorld(giveplayerid);
- GetPlayerIp(giveplayerid, PlayerInfo[giveplayerid][pIP], 32);
- GetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]);
- GetPlayerFacingAngle(giveplayerid, PlayerInfo[giveplayerid][pPos_r]);
- OnPlayerStatsUpdate(giveplayerid);
- DeletePVar(giveplayerid, "RequestingNameChange");
- format(PlayerInfo[giveplayerid][pFlag], 128, "");
- }
- else
- {
- GivePlayerCash(giveplayerid, -GetPVarInt(giveplayerid, "NameChangeCost"));
- format(string, sizeof(string), " Your name has been changed from %s to %s for $%d.", GetPlayerNameEx(giveplayerid), newname, GetPVarInt(giveplayerid, "NameChangeCost"));
- SendClientMessage(giveplayerid,COLOR_YELLOW,string);
- format(string, sizeof(string), " You have changed %s's name to %s for $%d.", GetPlayerNameEx(giveplayerid), newname, GetPVarInt(giveplayerid, "NameChangeCost"));
- SendClientMessage(playerid,COLOR_YELLOW,string);
- format(string, sizeof(string), "%s changed \"%s\"s name to \"%s\" for $%d",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),newname,GetPVarInt(giveplayerid, "NameChangeCost"));
- Log("logs/stats.log", string);
- format(string, sizeof(string), "%s has approved %s's name change to %s for $%d",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid), newname, GetPVarInt(giveplayerid, "NameChangeCost"));
- ABroadCast(COLOR_YELLOW, string, 1);
- SetPlayerName(giveplayerid, newname);
- PlayerInfo[giveplayerid][pInt] = GetPlayerInterior(giveplayerid);
- if(GetPVarType(giveplayerid, "tabbedVW") != 0) {
- PlayerInfo[giveplayerid][pVW] = GetPVarInt(giveplayerid, "tabbedVW");
- } else PlayerInfo[giveplayerid][pVW] = GetPlayerVirtualWorld(giveplayerid);
- GetPlayerIp(giveplayerid, PlayerInfo[giveplayerid][pIP], 32);
- GetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]);
- GetPlayerFacingAngle(giveplayerid, PlayerInfo[giveplayerid][pPos_r]);
- OnPlayerStatsUpdate(giveplayerid);
- DeletePVar(giveplayerid, "RequestingNameChange");
- }
- }
- format(string, sizeof(string), "users/%s.ini", playername);
- fremove(string);
- if(doesAccountExist(playername)) // If it doesn't get removed, blank the file with write io and check its length when a player attempts to authenticate (it'll be 0)
- {
- new File: BlankTheFile = fopen(string, io_write);
- SendClientMessage(playerid, COLOR_GRAD2, "The old account couldn't be removed completely (it's been blanked for future use).");
- fclose(BlankTheFile);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorised to use this command.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "No such player.");
- }
- return 1;
- }
- CMD:denyname(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /denyname [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(GetPVarInt(giveplayerid, "RequestingNameChange") == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player isn't requesting a namechange!");
- return 1;
- }
- SendClientMessage(giveplayerid,COLOR_YELLOW," Your name change request has been denied.");
- format(string, sizeof(string), " You have denied %s's name change request.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_YELLOW,string);
- format(string, sizeof(string), "%s has denied %s's name change request",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- DeletePVar(giveplayerid, "RequestingNameChange");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorised to use this command.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "No such player.");
- }
- return 1;
- }
- CMD:window(playerid, params[])
- {
- new string[128];
- if(InsideShamal[playerid] != INVALID_VEHICLE_ID)
- {
- if(GetPlayerInterior(playerid) == 1)
- {
- new
- Float: fSpecPos[6];
- GetPlayerPos(playerid, fSpecPos[0], fSpecPos[1], fSpecPos[2]);
- GetPlayerFacingAngle(playerid, fSpecPos[3]);
- GetPlayerHealth(playerid, fSpecPos[4]);
- GetPlayerArmour(playerid, fSpecPos[5]);
- SetPVarFloat(playerid, "air_Xpos", fSpecPos[0]);
- SetPVarFloat(playerid, "air_Ypos", fSpecPos[1]);
- SetPVarFloat(playerid, "air_Zpos", fSpecPos[2]);
- SetPVarFloat(playerid, "air_Rpos", fSpecPos[3]);
- SetPVarFloat(playerid, "air_HP", fSpecPos[4]);
- SetPVarFloat(playerid, "air_Arm", fSpecPos[5]);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectateVehicle(playerid, InsideShamal[playerid]);
- format(string, sizeof(string), "* %s glances out the window.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else TogglePlayerSpectating(playerid, 0);
- }
- return 1;
- }
- CMD:calculate(playerid, params[])
- {
- new string[128], method[20], value1, value2;
- if(sscanf(params, "ds[20]d", value1, method, value2))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /calculate [value] [operation] [value].");
- SendClientMessage(playerid, COLOR_GRAD2, "Operations: Add, Subtract, Multiply, Divide.");
- return 1;
- }
- if(strcmp(method,"multiply",true) == 0 || strcmp(method,"*",true) == 0)
- {
- new sum = value1*value2;
- format(string,sizeof(string),"%d multiplied by %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- if(strcmp(method,"divide",true) == 0 || strcmp(method,"/",true) == 0)
- {
- if(value2 == 0)
- return GameTextForPlayer(playerid, "face~r~palm", 1000, 3);
- new sum = value1/value2;
- format(string,sizeof(string),"%d divided by %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- if(strcmp(method,"add",true) == 0 || strcmp(method,"+",true) == 0)
- {
- new sum = value1+value2;
- format(string,sizeof(string),"%d added to %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- if(strcmp(method,"subtract",true) == 0 || strcmp(method,"-",true) == 0)
- {
- new sum = value1-value2;
- format(string,sizeof(string),"%d subtracted by %d equals %d.",value1,value2,sum);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- return 1;
- }
- CMD:kills(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kills [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- format(string, sizeof(string), "<< Last 10 Kills/Deaths of %s >>", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog9]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog8]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog7]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog6]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog5]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog4]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog3]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog2]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog1]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[giveplayerid][pKillLog0]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:okills(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /okills [name]");
- new string[128], giveplayerid;
- giveplayerid = ReturnUser(params);
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is online, use /kills for online players.");
- return 1;
- }
- if(doesAccountExist(params))
- {
- OnPlayerOfflineLogin(params);
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- format(string, sizeof(string), "<< Last 10 Kills/Deaths of %s >>", params);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog9]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog8]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog7]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog6]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog5]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog4]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog3]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog2]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog1]);
- SendClientMessage(playerid, COLOR_YELLOW, PlayerInfo[MAX_PLAYERS][pKillLog0]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account does not exist!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:clothes(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 9) {
- return ShowPlayerDialogEx(playerid, DIALOG_SAN_CLOTHES, DIALOG_STYLE_LIST, "Faction clothes", "Male Reporter (ID: 113)\nFemale Reporter (ID: 148)", "OK", "Cancel");
- }
- else if(PlayerInfo[playerid][pGang] != 255) {
- if(IsAtClothShop(playerid)) {
- new string[128];
- new PG = PlayerInfo[playerid][pGang];
- if(FamilyInfo[PG][FamilyMaxSkins] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Your family skins have not been set by an admin yet.");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 1)
- {
- format(string,sizeof(string),"Skin 1: %d", FamilyInfo[PG][FamilySkins][0]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 2)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 3)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d\nSkin 3: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1], FamilyInfo[PG][FamilySkins][2]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 4)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d\nSkin 3: ID %d\nSkin 4: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1], FamilyInfo[PG][FamilySkins][2], FamilyInfo[PG][FamilySkins][3]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 5)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d\nSkin 3: ID %d\nSkin 4: ID %d\nSkin 5: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1], FamilyInfo[PG][FamilySkins][2], FamilyInfo[PG][FamilySkins][3], FamilyInfo[PG][FamilySkins][4]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 6)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d\nSkin 3: ID %d\nSkin 4: ID %d\nSkin 5: ID %d\nSkin 6: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1], FamilyInfo[PG][FamilySkins][2], FamilyInfo[PG][FamilySkins][3], FamilyInfo[PG][FamilySkins][4], FamilyInfo[PG][FamilySkins][5]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 7)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d\nSkin 3: ID %d\nSkin 4: ID %d\nSkin 5: ID %d\nSkin 6: ID %d\nSkin 7: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1], FamilyInfo[PG][FamilySkins][2], FamilyInfo[PG][FamilySkins][3], FamilyInfo[PG][FamilySkins][4], FamilyInfo[PG][FamilySkins][5], FamilyInfo[PG][FamilySkins][6]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- if(FamilyInfo[PG][FamilyMaxSkins] == 8)
- {
- format(string,sizeof(string),"Skin 1: ID %d\nSkin 2: ID %d\nSkin 3: ID %d\nSkin 4: ID %d\nSkin 5: ID %d\nSkin 6: ID %d\nSkin 7: ID %d\nSkin 8: ID %d", FamilyInfo[PG][FamilySkins][0], FamilyInfo[PG][FamilySkins][1], FamilyInfo[PG][FamilySkins][2], FamilyInfo[PG][FamilySkins][3], FamilyInfo[PG][FamilySkins][4], FamilyInfo[PG][FamilySkins][5], FamilyInfo[PG][FamilySkins][6], FamilyInfo[PG][FamilySkins][7]);
- ShowPlayerDialogEx(playerid,FAMILYSKINDIALOG,DIALOG_STYLE_LIST,"Family skin selection",string,"Select","Cancel");
- }
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not in a Clothing Shop!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY, " You're not in a Family, use /buyclothes instead!");
- }
- return 1;
- }
- CMD:licenses(playerid, params[])
- {
- new string[128], text1[20], text2[20], text4[20];
- if(PlayerInfo[playerid][pCarLic]) { text1 = "Acquired"; } else { text1 = "Not acquired"; }
- if(PlayerInfo[playerid][pFlyLic]) { text4 = "Acquired"; } else { text4 = "Not acquired"; }
- if(PlayerInfo[playerid][pBoatLic]) { text2 = "Acquired"; } else { text2 = "Not acquired"; }
- SendClientMessage(playerid, COLOR_WHITE, "Your licenses...");
- format(string, sizeof(string), "** Driver's license: %s.", text1);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** Pilot license: %s.", text4);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** Boating license: %s.", text2);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- CMD:showlicenses(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showlicenses [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't show licenses to yourself - use /licenses for that."); return 1; }
- new text1[20], text2[20], text4[20];
- if(PlayerInfo[playerid][pCarLic]) { text1 = "Acquired"; } else { text1 = "Not acquired"; }
- if(PlayerInfo[playerid][pFlyLic]) { text4 = "Acquired"; } else { text4 = "Not acquired"; }
- if(PlayerInfo[playerid][pBoatLic]) { text2 = "Acquired"; } else { text2 = "Not acquired"; }
- format(string, sizeof(string), "Listing %s's licenses...", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "** Driver's license: %s.", text1);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "** Pilot license: %s.", text4);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "** Boating license: %s.", text2);
- SendClientMessage(giveplayerid, COLOR_GREY, string);
- format(string, sizeof(string), "* %s has shown their licenses to you.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have shown your licenses to %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has shown their licenses to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- return 1;
- }
- CMD:showbadge(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] >= 1 || PlayerInfo[playerid][pLeader] >= 1) {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showbadge [playerid/partofname]");
- if(giveplayerid != INVALID_PLAYER_ID) {
- if(ProxDetectorS(5.0, playerid, giveplayerid)) {
- switch(PlayerInfo[playerid][pFaction]) {
- case 1, 2, 3, 5: {
- new
- infoArrays[3][64];
- GetPlayerFactionInfo(playerid, infoArrays[0], infoArrays[1], infoArrays[2]);
- SendClientMessage(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------");
- format(string, sizeof(string), "%s %s is a duly sworn member of the %s (%s).", infoArrays[0], GetPlayerNameEx(playerid), infoArrays[2], infoArrays[1]);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Current Assignment: %s.", infoArrays[1]);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- switch(PlayerInfo[playerid][pFaction]) {
- case 1: SendClientMessage(giveplayerid, COLOR_WHITE, "Under the Authority of the City of Los Santos.");
- case 2, 5: SendClientMessage(giveplayerid, COLOR_WHITE, "Under the Authority of the United States Government.");
- default: SendClientMessage(giveplayerid, COLOR_WHITE, "Under the Authority of the State of San Andreas.");
- }
- if(PlayerInfo[playerid][pFaction] != 3) SendClientMessage(giveplayerid, COLOR_WHITE, "Official has the authority to arrest.");
- if(PlayerInfo[playerid][pFaction] == 3) SendClientMessage(giveplayerid, COLOR_WHITE, "Official has the authority to assist in arrest.");
- SendClientMessage(giveplayerid, COLOR_GRAD2, "----------------------------------------------------------------------------------------------------");
- format(string, sizeof(string), "* %s shows their badge to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- default: SendClientMessage(playerid, COLOR_WHITE, "You're not in a civil service faction.");
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- else SendClientMessage(playerid, COLOR_WHITE, "You're not in a civil service faction.");
- }
- return 1;
- }
- CMD:service(playerid, params[])
- {
- new string[128], choice[32];
- if(sscanf(params, "s[32]", choice))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /service [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Taxi, Bus, Medic, Mechanic, EMS");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
- return 1;
- }
- if(ServiceTime[playerid] > 0) return SendClientMessage(playerid, COLOR_WHITE, "You must wait 30 seconds before using this command again. ");
- if(strcmp(choice,"ems",true) == 0)
- {
- if(GetPVarInt(playerid, "Injured") == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not injured, you can't call for EMS now!");
- return 1;
- }
- new zone[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
- SetPVarInt(playerid, "EMSAttempt", 1);
- SendClientMessage(playerid, COLOR_WHITE, "The EMS have been informed of your current location and are on their way.");
- format(string, sizeof(string), "Emergency Dispatch has reported (%d) %s to be wounded at %s, They require immediate emergency transport.",playerid, GetPlayerNameEx(playerid), zone);
- SendRadioMessage(3, TEAM_MED_COLOR, string);
- ServiceTime[playerid] = 30;
- return 1;
- }
- else if(strcmp(choice,"taxi",true) == 0)
- {
- if(TaxiDrivers < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no taxi drivers on duty at the moment, try again later!");
- return 1;
- }
- if(TransportDuty[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't call for a taxi now!");
- return 1;
- }
- new
- szZoneName[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, szZoneName, MAX_ZONE_NAME);
- format(string, sizeof(string), "** %s is in need of a taxi driver at %s - use /accept taxi to accept the call.", GetPlayerNameEx(playerid), szZoneName);
- SendTaxiMessage(TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a taxi driver, wait for a reply.");
- TaxiCall = playerid;
- ServiceTime[playerid] = 30;
- return 1;
- }
- else if(strcmp(choice,"bus",true) == 0)
- {
- if(BusDrivers < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no bus drivers at the moment, try again later!");
- return 1;
- }
- if(TransportDuty[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't call for a bus now!");
- return 1;
- }
- format(string, sizeof(string), "** %s is in need of a bus driver - use /accept bus to accept the call.", GetPlayerNameEx(playerid));
- SendBusMessage(TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a bus driver, wait for a reply.");
- BusCall = playerid;
- ServiceTime[playerid] = 30;
- return 1;
- }
- else if(strcmp(choice,"medic",true) == 0)
- {
- if(Medics < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no medics on duty at the moment, try again later!");
- return 1;
- }
- format(string, sizeof(string), "** %s is in need of a Medic - use /accept medic to accept the call.", GetPlayerNameEx(playerid));
- SendRadioMessage(3, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a medic, wait for a reply.");
- MedicCall = playerid;
- ServiceTime[playerid] = 30;
- return 1;
- }
- else if(strcmp(choice,"mechanic",true) == 0)
- {
- if(Mechanics < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " There are no car mechanics on duty at the moment, try again later!");
- return 1;
- }
- format(string, sizeof(string), "** %s is in need of a car mechanic - use /accept mechanic to accept the call.", GetPlayerNameEx(playerid));
- SendJobMessage(7, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have called for a car mechanic, wait for a reply.");
- MechanicCall = playerid;
- ServiceTime[playerid] = 30;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Unknown service name!");
- return 1;
- }
- }
- CMD:toyhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** TOY HELP ***");
- SendClientMessage(playerid, COLOR_GRAD3,"To buy a toy, go to any clothing store and type {AA3333}/buytoys");
- SendClientMessage(playerid, COLOR_GRAD3,"To attach/dettach, edit, or delete a toy type {AA3333}/toys");
- SendClientMessage(playerid, COLOR_GRAD3,"To quickly attach all your toys, type {AA3333}/wat");
- SendClientMessage(playerid, COLOR_GRAD3,"To quickly detach all your toys, type {AA3333}/dat");
- return 1;
- }
- /*CMD:dtoys(playerid, params[])
- {
- // (TEMPORARY - Howard NOTE) NO VIP added yet
- if(IsPlayerInRangeOfPoint(playerid,3,2371.557373,-1472.172851,-18.824062))
- {
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must be at least Ruby+Donator to use this feature.");
- }
- else
- {
- ShowPlayerDialogEx(playerid, BUYTOYSGOLD, DIALOG_STYLE_MSGBOX, "Toy Store", "Welcome to the Donator toy store! Here you can buy accessories to attach to your player.\n\nFirst, we will choose a slot to store the toy in.","Continue", "Cancel");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in a Maximus Club!");
- }
- return 1;
- }*/
- CMD:buytoys(playerid, params[])
- {
- if(IsAtClothShop(playerid))
- {
- ShowPlayerDialogEx(playerid, BUYTOYS, DIALOG_STYLE_MSGBOX, "Toy Store", "Welcome to the toy store! Here you can buy accessories to attach to your player.\n\nFirst, we will choose a slot to store the toy in.\n(Note: Non-Donators can only hold 5 toys, Ruby-Diamond Donator can hold 6-8)","Continue", "Cancel");
- //ShowPlayerDialogEx(playerid, BUYTOYS, DIALOG_STYLE_MSGBOX, "Toy Store", "Welcome to the toy store! Here you can buy accessories to attach to your player.\n\nFirst, we will choose a slot to store the toy in.\n(Note: You can only hold 5 toys)","Continue", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You're not in a Clothing Shop!");
- }
- return 1;
- }
- CMD:listtoys(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /listtoys [playerid/partofname]");
- }
- else if(IsPlayerConnected(iTargetID)) for(new iToyIter, szMessage[128]; iToyIter < MAX_PLAYER_ATTOBJECTS; ++iToyIter) {
- for(new LoopRapist; LoopRapist < sizeof(HoldingObjectsAll); ++LoopRapist) {
- if(HoldingObjectsAll[LoopRapist][holdingmodelid] == PlayerToyInfo[iTargetID][iToyIter][ptModelID]) {
- format(szMessage, sizeof(szMessage), "%s (slot %i, bone: %s)", HoldingObjectsAll[LoopRapist][holdingmodelname], iToyIter, HoldingBones[PlayerToyInfo[iTargetID][iToyIter][ptBone]]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- break;
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- return 1;
- }
- CMD:toys(playerid, params[])
- {
- ShowPlayerDialogEx(playerid, TOYS, DIALOG_STYLE_LIST, "Toy Menu", "Attach/Dettach a Toy\nEdit a Toy\nDelete a Toy","Select", "Cancel");
- return 1;
- }
- CMD:wat(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_WHITE, "* Attached all toys.");
- if(PlayerInfo[playerid][pDonator] <= 0)
- {
- for(new x;x<5;x++)
- {
- if(PlayerToyInfo[playerid][x][ptScaleX] == 0) {
- PlayerToyInfo[playerid][x][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleZ] = 1.0;
- }
- if(PlayerToyInfo[playerid][x][ptModelID] != 0) SetPlayerAttachedObject(playerid, x, PlayerToyInfo[playerid][x][ptModelID], PlayerToyInfo[playerid][x][ptBone], PlayerToyInfo[playerid][x][ptPosX], PlayerToyInfo[playerid][x][ptPosY], PlayerToyInfo[playerid][x][ptPosZ], PlayerToyInfo[playerid][x][ptRotX], PlayerToyInfo[playerid][x][ptRotY], PlayerToyInfo[playerid][x][ptRotZ], PlayerToyInfo[playerid][x][ptScaleX], PlayerToyInfo[playerid][x][ptScaleY], PlayerToyInfo[playerid][x][ptScaleZ]);
- }
- }
- else if(PlayerInfo[playerid][pDonator] == 1)
- {
- for(new x;x<6;x++)
- {
- if(PlayerToyInfo[playerid][x][ptScaleX] == 0) {
- PlayerToyInfo[playerid][x][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleZ] = 1.0;
- }
- if(PlayerToyInfo[playerid][x][ptModelID] != 0) SetPlayerAttachedObject(playerid, x, PlayerToyInfo[playerid][x][ptModelID], PlayerToyInfo[playerid][x][ptBone], PlayerToyInfo[playerid][x][ptPosX], PlayerToyInfo[playerid][x][ptPosY], PlayerToyInfo[playerid][x][ptPosZ], PlayerToyInfo[playerid][x][ptRotX], PlayerToyInfo[playerid][x][ptRotY], PlayerToyInfo[playerid][x][ptRotZ], PlayerToyInfo[playerid][x][ptScaleX], PlayerToyInfo[playerid][x][ptScaleY], PlayerToyInfo[playerid][x][ptScaleZ]);
- }
- }
- else if(PlayerInfo[playerid][pDonator] == 2)
- {
- for(new x;x<7;x++)
- {
- if(PlayerToyInfo[playerid][x][ptScaleX] == 0) {
- PlayerToyInfo[playerid][x][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleZ] = 1.0;
- }
- if(PlayerToyInfo[playerid][x][ptModelID] != 0) SetPlayerAttachedObject(playerid, x, PlayerToyInfo[playerid][x][ptModelID], PlayerToyInfo[playerid][x][ptBone], PlayerToyInfo[playerid][x][ptPosX], PlayerToyInfo[playerid][x][ptPosY], PlayerToyInfo[playerid][x][ptPosZ], PlayerToyInfo[playerid][x][ptRotX], PlayerToyInfo[playerid][x][ptRotY], PlayerToyInfo[playerid][x][ptRotZ], PlayerToyInfo[playerid][x][ptScaleX], PlayerToyInfo[playerid][x][ptScaleY], PlayerToyInfo[playerid][x][ptScaleZ]);
- }
- }
- else if(PlayerInfo[playerid][pDonator] >= 3)
- {
- for(new x;x<8;x++)
- {
- if(PlayerToyInfo[playerid][x][ptScaleX] == 0) {
- PlayerToyInfo[playerid][x][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][x][ptScaleZ] = 1.0;
- }
- if(PlayerToyInfo[playerid][x][ptModelID] != 0) SetPlayerAttachedObject(playerid, x, PlayerToyInfo[playerid][x][ptModelID], PlayerToyInfo[playerid][x][ptBone], PlayerToyInfo[playerid][x][ptPosX], PlayerToyInfo[playerid][x][ptPosY], PlayerToyInfo[playerid][x][ptPosZ], PlayerToyInfo[playerid][x][ptRotX], PlayerToyInfo[playerid][x][ptRotY], PlayerToyInfo[playerid][x][ptRotZ], PlayerToyInfo[playerid][x][ptScaleX], PlayerToyInfo[playerid][x][ptScaleY], PlayerToyInfo[playerid][x][ptScaleZ]);
- }
- }
- return 1;
- }
- CMD:dat(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_WHITE, "* Deattached all toys.");
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- RemovePlayerAttachedObject(playerid, x);
- }
- return 1;
- }
- CMD:divorce(playerid, params[])
- {
- if(PlayerInfo[playerid][pMarried] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not Married!");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /divorce [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- new dstring[MAX_PLAYER_NAME];
- new wstring[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "%s", giveplayer);
- strmid(wstring, string, 0, strlen(string), 24);
- format(string, sizeof(string), "%s", PlayerInfo[playerid][pMarriedTo]);
- strmid(dstring, string, 0, strlen(string), 24);
- if(strcmp(dstring ,wstring, true) == 0)
- {
- format(string, sizeof(string), "* You've sent Divorce Papers to %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s just sent you their Divorce Papers (type /accept divorce) to accept.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- DivorceOffer[giveplayerid] = playerid;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not Married to you!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- CMD:adivorce(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] > 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adivorce [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- ClearMarriage(giveplayerid);
- format(string, sizeof(string), "* You've admin divorced %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have been admin divorced by an admin.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- }
- CMD:witness(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /witness [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't Propose to yourself!"); return 1; }
- format(string, sizeof(string), "* You requested %s to be your Marriage Witness.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s just requested you to be their Marriage Witness (type /accept witness) to accept.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- MarryWitnessOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- return 1;
- }
- CMD:propose(playerid, params[])
- {
- if(GetPlayerCash(playerid) < 10000)
- {
- SendClientMessage(playerid, COLOR_GREY, " The Marriage & Reception costs $10000!");
- return 1;
- }
- if(PlayerInfo[playerid][pMarried] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're already Married!");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /propose [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pMarried] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is already married!");
- return 1;
- }
- else if(MarryWitness[playerid] == giveplayerid) {
- return SendClientMessage(playerid, COLOR_GREY, " You can't marry the witness!");
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't Propose to yourself!"); return 1; }
- format(string, sizeof(string), "* You proposed to %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s just proposed to you (type /accept marriage) to accept.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- ProposeOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- return 1;
- }
- CMD:buyinsurance(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,1169.7209472656,-1348.3218994141,2423.0461425781) && PlayerInfo[playerid][pVW] == 1) {
- if(GetPlayerCash(playerid) >= 400) {
- if(PlayerInfo[playerid][pInsurance] != 1) {
- GivePlayerCash(playerid, -400);
- PlayerInfo[playerid][pInsurance] = 1;
- SendClientMessage(playerid, COLOR_WHITE, " Insurance purchased, you paid $150 + a one-time transfer fee of $250, you will now be healed at All Saints Hospital for $150.");
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD4, "You already have insurance at All Saints Hospital!");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have enough money for this insurance!");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,2.0,1169.7209472656,-1348.3218994141,2423.0461425781) && PlayerInfo[playerid][pVW] == 2) {
- if(GetPlayerCash(playerid) >= 400) {
- if(PlayerInfo[playerid][pInsurance] != 2) {
- GivePlayerCash(playerid, -400);
- PlayerInfo[playerid][pInsurance] = 2;
- SendClientMessage(playerid, COLOR_WHITE, " Insurance purchased, you paid $150 + a one-time transfer fee of $250, you will now be healed at County General Hospital for $150.");
- return 1;
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD4, "You already have insurance at County General Hospital!");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have enough money for this insurance!");
- }
- }
- return 1;
- }
- CMD:insurehelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** INSURANCE HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** INSURANCE *** /buyinsurance");
- SendClientMessage(playerid, COLOR_LIGHTRED,"*** INSURANCE *** ALL SAINTS: $150 + Transfer (One Time) Fee of $250");
- SendClientMessage(playerid, COLOR_LIGHTRED,"*** INSURANCE *** COUNTY: $150 + Transfer (One Time) Fee of $250");
- return 1;
- }
- CMD:fmdc(playerid, params[])
- {
- new MemberString[1024], giveplayer[MAX_PLAYER_NAME], duty[10], string[128];
- if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 4)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- foreach(Player, i)
- {
- giveplayer = GetPlayerNameEx(i);
- if(PlayerInfo[i][pFaction] == 3)
- {
- switch(PlayerInfo[i][pDuty])
- {
- case 0:
- {
- duty = "Off Duty";
- }
- case 1:
- {
- duty = "On Duty";
- }
- }
- format(string, sizeof(string), "*(%s) - (Calls Accepted: %d) - (Patients Delivered: %d) - (%s)\n", giveplayer, PlayerInfo[i][pCallsAccepted], PlayerInfo[i][pPatientsDelivered], duty);
- strcat(MemberString, string, sizeof(MemberString));
- }
- }
- if(strlen(MemberString) == 0)
- {
- strcat(MemberString, "No Members online at this time.", sizeof(MemberString));
- }
- ShowPlayerDialogEx(playerid, FMDC, DIALOG_STYLE_LIST, "FMDC - Logged in | LSFMD Members", MemberString, "Select", "Cancel");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle.");
- }
- return 1;
- }
- CMD:healme(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1179.4012451172,-1331.5632324219,2423.0461425781))
- {
- if(GetPVarType(playerid, "STD"))
- {
- DeletePVar(playerid, "STD");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're no longer infected with a STD anymore because of the Hospital's help!");
- GivePlayerCash(playerid, -100);
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Doc: Your medical bill contained $100. Have a nice day!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a STD to heal!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not at a Hospital!");
- }
- return 1;
- }
- CMD:triage(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction]==3||PlayerInfo[playerid][pLeader]==3)//model
- {
- if(PlayerInfo[playerid][pTriageTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You must wait for 2 minutes to use this command.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /triage [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(playerid == giveplayerid) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this command on yourself.");
- if(ProxDetectorS(5.0, playerid, giveplayerid))
- {
- new Float: health;
- GetPlayerHealth(giveplayerid, health);
- if(health >= 85) SetPlayerHealth(giveplayerid, 100);
- else SetPlayerHealth(giveplayerid, health+15.0);
- format(string, sizeof(string), "* %s has healed %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pTriageTime] = 120;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- }
- return 1;
- }
- CMD:heal(playerid, params[])
- {
- new giveplayerid, price;
- if(sscanf(params, "ud", giveplayerid, price)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /heal [playerid/partofname] [price]");
- if(price < 20 || price > 100)
- {
- SendClientMessage(playerid, COLOR_GREY, "Healing price can't below $20 or above $100.");
- return 1;
- }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't heal yourself.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(GetDistanceBetweenPlayers(giveplayerid, playerid) > 10)
- return SendClientMessage(playerid, COLOR_GREY, "You're too far away from the target to heal them.");
- if(PlayerInfo[giveplayerid][pCash] < price && price > 0)
- return SendClientMessage(playerid, COLOR_GREY, "The heal price is too expensive for the player.");
- new iVehicle = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if(GetPlayerVehicleID(giveplayerid) == iVehicle && IsAnAmbulance(iVehicle))
- {
- new Float:tempheal;
- GetPlayerHealth(giveplayerid,tempheal);
- if(tempheal >= 100.0)
- {
- SendClientMessage(playerid, TEAM_GREEN_COLOR,"That person is fully healed.");
- return 1;
- }
- new string[64];
- format(string, sizeof(string), "You healed %s for $%d.", GetPlayerNameEx(giveplayerid),price);
- SendClientMessage(playerid, COLOR_PINK, string);
- GivePlayerCash(playerid, price / 2);
- GivePlayerCash(giveplayerid, -price);
- SetPlayerHealth(giveplayerid, 100);
- PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
- PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "You have been healed to 100 health for $%d by %s.",price, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, TEAM_GREEN_COLOR,string);
- if(GetPVarType(giveplayerid, "STD"))
- {
- DeletePVar(giveplayerid, "STD");
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* you're no longer infected with a STD because of the medic's help.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Both you and the patient must be in an ambulance.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:lsfmd(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,1188.5157470703,-1350.9741210938, 2423.2648925781) || IsPlayerInRangeOfPoint(playerid,3,1377.696655,-918.741760,-15.741325))
- {
- ShowPlayerDialogEx(playerid, LSFMDMENU, DIALOG_STYLE_LIST, "LSFMD","Duty\nUniform\nEquipment\nCivilian", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You're not in range of your LSFMD lockers.");
- }
- }
- return 1;
- }
- CMD:lsfmddiv(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /lsfmddiv [playerid/partofname] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 0 (None), 1 (FD), 2 (EMS), 3 (HR), 4(LF)");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] >= 5)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)
- {
- if(division == 4)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 4;
- format(string, sizeof(string), "You're now in the Life Flight division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the Life Flight Division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
-
- if(division == 3)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 3;
- format(string, sizeof(string), "You're now in the Human Resources division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the Human Resources Division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- if(division == 2)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 2;
- format(string, sizeof(string), "You're now in the IA, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the Bureau of EMS.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else if(division == 1)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You're now in the Fire Department division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the Fire Department Division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else if(division == 0)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 0;
- format(string, sizeof(string), "You have been kicked from your division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s out of their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only R4+ can do this.");
- }
- }
- return 1;
- }
- CMD:getpt(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 3)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getpt(patient) [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can't accept your own Emergency Dispatch call!");
- return 1;
- }
- if(GetPVarInt(giveplayerid,"MedicCall") == 1)
- {
- if(PlayerInfo[giveplayerid][pJailed] > 0) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this command on jailed players.");
- format(string, sizeof(string), "EMS Driver %s has accepted the Emergency Dispatch call for (%d) %s.",GetPlayerNameEx(playerid),giveplayerid,GetPlayerNameEx(giveplayerid));
- SendRadioMessage(3, TEAM_MED_COLOR, string);
- format(string, sizeof(string), "* You have accepted EMS Call from %s, you will see the marker until you have reached it.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* EMS Driver %s has accepted your EMS Call; please wait at your current position.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(playerid, "~w~EMS Caller~n~~r~Go to the red marker.", 5000, 1);
- EMSCallTime[playerid] = 1;
- EMSAccepted[playerid] = giveplayerid;
- SetPVarInt(giveplayerid, "EMSAttempt", 1);
- PlayerInfo[playerid][pCallsAccepted]++;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "The player has not requested any EMS attention!");
- }
- }
- }
- return 1;
- }
- CMD:listpt(playerid, params[]) {
- if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 3) {
- new
- szPlayerZone[MAX_ZONE_NAME],
- szMessage[128],
- Float:health;
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Patients awaiting treatment:");
- foreach(Player, i) {
- if(GetPVarInt(i, "Injured") == 1) {
- GetPlayerHealth(i,health);
- GetPlayer3DZone(i, szPlayerZone, MAX_ZONE_NAME);
- format(szMessage, sizeof(szMessage), "%s | Near %s | %.1f health remaining", GetPlayerNameEx(i), szPlayerZone, health);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- }
- }
- return 1;
- }
- CMD:movept(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 3)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /movepatient [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(GetPVarInt(giveplayerid,"Injured") == 1)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this command while in a vehicle.");
- if(PlayerInfo[giveplayerid][pJailed] > 0) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this command on jailed players.");
- if(GetPVarInt(giveplayerid, "OnStretcher") == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "The player is already on a stretcher, you can't do this right now!");
- return 1;
- }
- new Float:mX, Float:mY, Float:mZ;
- GetPlayerPos(giveplayerid, mX, mY, mZ);
- if(!IsPlayerInRangeOfPoint(playerid, 5.0, mX, mY, mZ))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You have to be close to the patient to be able to move them!");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, "You have 30 seconds to move to another location or you can either press the '{AA3333}FIRE{BFC0C2}' button.");
- format(string, sizeof(string), "* You have been put on a stretcher by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have put %s on a stretcher, you may move them now.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s puts %s on a stretcher, tightening the belts securely.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(giveplayerid, "OnStretcher", 1);
- SetPVarInt(playerid, "TickEMSMove", SetTimerEx("MoveEMS", 30000, false, "d", playerid));
- SetPVarInt(playerid, "MovingStretcher", giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "The player has to be injured in-order to move them!");
- }
- }
- }
- return 1;
- }
- CMD:loadpt(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] ==3)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in a car!");
- return 1;
- }
- new string[128], giveplayerid, seat;
- if(sscanf(params, "ud", giveplayerid, seat)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /loadpt [playerid/partofname] [seatid]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(seat < 2 || seat > 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The seat ID can't be above 3 or below 2.");
- return 1;
- }
- if(GetPVarInt(giveplayerid, "Injured") != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That patient not injured - you can't load them.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " That patient is inside a car - you can't load them.");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't load yourself!"); return 1; }
- if(PlayerInfo[giveplayerid][pJailed] > 0) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this command on jailed players.");
- new carid = gLastCar[playerid];
- if(IsAnAmbulance(carid))
- {
- new Float:pos[6];
- GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- GetPlayerPos(giveplayerid, pos[3], pos[4], pos[5]);
- GetVehiclePos(carid, pos[0], pos[1], pos[2]);
- if(floatcmp(floatabs(floatsub(pos[0], pos[3])), 10.0) != -1 &&
- floatcmp(floatabs(floatsub(pos[1], pos[4])), 10.0) != -1 &&
- floatcmp(floatabs(floatsub(pos[2], pos[5])), 10.0) != -1) return false;
- format(string, sizeof(string), "* You were loaded by paramedic %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You loaded patient %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s loads %s in the ambulance.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(giveplayerid, "EMSAttempt", 3);
- ClearAnimations(giveplayerid);
- PutPlayerInVehicle(giveplayerid,carid,seat);
- TogglePlayerControllable(giveplayerid, false);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your last car needs to be an ambulance!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not close enough to the player or your car!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not a LSFMD!");
- }
- return 1;
- }
- CMD:deliverpt(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction]==3||PlayerInfo[playerid][pLeader]==3)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deliverpt [playerid/partofname]");
- new carid = GetPlayerVehicleID(playerid);
- new caridex = GetPlayerVehicleID(giveplayerid);
- if(IsAnAmbulance(carid))
- {
- if(carid == caridex)
- {
- if(IsAtDeliverPatientPoint(playerid))
- {
- if(playerid == giveplayerid)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't deliver yourself to the hospital!");
- return 1;
- }
- if(GetPVarInt(giveplayerid, "Injured") == 0)
- {
- return SendClientMessage(playerid, COLOR_GRAD2, "That player is not injured!");
- }
- if(playerTabbed[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is paused, you can't currently deliver him!");
- return 1;
- }
- SetPlayerHealth(giveplayerid, 100);
- if(GetPVarType(giveplayerid, "STD"))
- {
- DeletePVar(giveplayerid, "STD");
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* you're no longer infected with a STD anymore because of the hospital's help!");
- }
- GivePlayerCash(giveplayerid, -100);
- GivePlayerCash(playerid,250);
- KillEMSQueue(giveplayerid);
- SetPVarInt(giveplayerid, "MedicBill", 0);
- SendClientMessage(giveplayerid, TEAM_CYAN_COLOR, "Doc: Your medical bill comes in at $100. Have a nice day!");
- format(string,sizeof(string),"You received $250 for successfully delivering the patient!");
- SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
- SetPlayerPos(giveplayerid, 1169.7588,-1351.5490,2423.0461);
- SetPlayerInterior(giveplayerid, 1);
- PlayerInfo[giveplayerid][pInt] = 1;
- TogglePlayerControllable(giveplayerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(giveplayerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(giveplayerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", giveplayerid);
- PlayerInfo[playerid][pPatientsDelivered]++;
- format(string, sizeof(string), "EMS Driver %s has successfully delivered Patient %s to the hospital.",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(3, TEAM_MED_COLOR, string);
- if(IsPlayerInRangeOfPoint(playerid, 5.0,1142.4733,-1326.3633,13.6259) || IsPlayerInRangeOfPoint(playerid, 5.0, 1165.1564,-1368.8240,26.6502) || IsPlayerInRangeOfPoint(playerid, 5.0, 1607.820434,-2158.261718,13.554687))
- {
- SetPlayerVirtualWorld(giveplayerid, 1);
- PlayerInfo[giveplayerid][pVW] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5.0,2027.0599,-1410.6870,16.9922) || IsPlayerInRangeOfPoint(playerid, 5.0, 2024.5742,-1382.7844,48.3359) || IsPlayerInRangeOfPoint(playerid, 5.0, 1607.820434,-2158.261718,13.554687))
- {
- SetPlayerVirtualWorld(giveplayerid, 2);
- PlayerInfo[giveplayerid][pVW] = 2;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not near a deliver point - look out near the hospitals.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Patient must be in your car in order to deliver him.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in an LSFMD vehicle.");
- }
- }
- }
- return 1;
- }
- CMD:god(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] > 7)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 8)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(!PlayerInfo[playerid][pNoDamage])
- {
- PlayerInfo[playerid][pNoDamage] = 1;
- SendClientMessage(playerid, COLOR_GREY, "You are now in GODMODE, you will no longer take damage from ANYTHING.");
- }
- else
- {
- PlayerInfo[playerid][pNoDamage] = 0;
- SendClientMessage(playerid, COLOR_GREY, "You've turned off GODMODE, you will now take damage normally.");
- }
- return 1;
- }
- return 0;
- }
- CMD:toggc(playerid, params[])
- {
- if(GlobalChat[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have enabled global chat, use /g to chat.");
- GlobalChat[playerid] = 1;
- }
- else if(GlobalChat[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have disabled global chat.");
- GlobalChat[playerid] = 0;
- }
- return 1;
- }
- CMD:g(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if(PlayerInfo[playerid][pGCMuted] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're muted from this channel.");
- return 1;
- }
- new string[128];
- if(GlobalChatTimer[playerid] > 0)
- {
- format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", GlobalChatTimer[playerid]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(GlobalChat[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in the global chat, type /toggc.");
- return 1;
- }
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/g) [text]");
- if(strlen(params) > 80)
- return SendClientMessage(playerid, COLOR_GREY, "Your message is too long - the limit is 80 characters.");
-
- if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonator] == 0 && PlayerInfo[playerid][pFormer] == 1)
- {
- format(string, sizeof(string), "(( Former Admin %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonator] == 1 && PlayerInfo[playerid][pFormer] == 1)
- {
- format(string, sizeof(string), "(( Former Admin %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonator] == 2 && PlayerInfo[playerid][pFormer] == 1)
- {
- format(string, sizeof(string), "(( Former Admin %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pDonator] == 3 && PlayerInfo[playerid][pFormer] == 1)
- {
- format(string, sizeof(string), "(( Former Admin %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pFamed] < 1 && PlayerInfo[playerid][pVintage] < 1 && PlayerInfo[playerid][pOS] <1 && PlayerInfo[playerid][pDonator] == 1)
- {
- format(string, sizeof(string), "(( {AAC5E3}Ruby Donator{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pFamed] < 1 && PlayerInfo[playerid][pVintage] < 1 && PlayerInfo[playerid][pOS] < 1 && PlayerInfo[playerid][pDonator] == 2)
- {
- format(string, sizeof(string), "(( {AAC5E3}Sapphire Donator{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pFamed] < 1 && PlayerInfo[playerid][pVintage] < 1 && PlayerInfo[playerid][pOS] < 1 && PlayerInfo[playerid][pDonator] == 3)
- {
- format(string, sizeof(string), "(( {AAC5E3}Diamond Donator{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 0 && PlayerInfo[playerid][pOS] == 1)
- {
- format(string, sizeof(string), "(( {078C00}Old School{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 1 && PlayerInfo[playerid][pOS] == 1)
- {
- format(string, sizeof(string), "(( {078C00}Old School{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 2 && PlayerInfo[playerid][pOS] == 1)
- {
- format(string, sizeof(string), "(( {078C00}Old School{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 3 && PlayerInfo[playerid][pOS] == 1)
- {
- format(string, sizeof(string), "(( {078C00}Old School{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 0 && PlayerInfo[playerid][pVintage] == 1)
- {
- format(string, sizeof(string), "(( {8cd11d}Vintage{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 1 && PlayerInfo[playerid][pVintage] == 1)
- {
- format(string, sizeof(string), "(( {8cd11d}Vintage{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 2 && PlayerInfo[playerid][pVintage] == 1)
- {
- format(string, sizeof(string), "(( {8cd11d}Vintage{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 3 && PlayerInfo[playerid][pVintage] == 1)
- {
- format(string, sizeof(string), "(( {8cd11d}Vintage{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 0 && PlayerInfo[playerid][pFamed] == 1)
- {
- format(string, sizeof(string), "(( {FF8C00}Famed{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 1 && PlayerInfo[playerid][pFamed] == 1)
- {
- format(string, sizeof(string), "(( {FF8C00}Famed{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 2 && PlayerInfo[playerid][pFamed] == 1)
- {
- format(string, sizeof(string), "(( {FF8C00}Famed{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pDonator] == 3 && PlayerInfo[playerid][pFamed] == 1)
- {
- format(string, sizeof(string), "(( {FF8C00}Famed{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pHelper] == 1)
- {
- format(string, sizeof(string), "(( {33CCFF}Junior Helper{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 2;
- }
- else if(PlayerInfo[playerid][pHelper] == 2)
- {
- format(string, sizeof(string), "(( {33CCFF}Senior Helper{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 2;
- }
- else if(PlayerInfo[playerid][pHelper] == 3)
- {
- format(string, sizeof(string), "(( {33CCFF}Asst. Head Helper{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 2;
- }
- else if(PlayerInfo[playerid][pHelper] == 4)
- {
- format(string, sizeof(string), "(( {33CCFF}Head Helper{FFA500} %s: %s ))", GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 2;
- }
- else if(PlayerInfo[playerid][pAdmin] > 1 && PlayerInfo[playerid][pDonator] == 1)
- {
- format(string, sizeof(string), "(( Level %d Player %s: %s ))", PlayerInfo[playerid][pLevel], GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pDonator] == 0)
- {
- format(string, sizeof(string), "(( Level %d Player %s: %s ))", PlayerInfo[playerid][pLevel], GetPlayerNameEx(playerid), params);
- GlobalChatTimer[playerid] = 5;
- }
- else if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string, sizeof(string), "(( %s{FFA500} %s: %s ))", GetAdminRank(playerid), GetPlayerNameEx(playerid), params);
- }
-
- foreach(Player, i)
- {
- if(GlobalChat[i] == 1)
- {
- SendClientMessage(i, COLOR_NEWS, string);
- }
- }
- return 1;
- }
- CMD:settitle(playerid, params[])
- {
- return SCM(playerid, -1, "This command is not available yet!");
- }
- CMD:requesthelp(playerid, params[]) return cmd_gethelp(playerid, params);
- CMD:gethelp(playerid, params[]) {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /gethelp [help reason]");
- if(PlayerInfo[playerid][pConnectTime] < 12 || PlayerInfo[playerid][pNMute] == 0) {
- SetPVarString(playerid, "helpreq", params);
- SendClientMessage(playerid, COLOR_WHITE, "Your help request has been submitted to the team of helpers.");
-
- new
- szMessage[128];
-
- format(szMessage, sizeof(szMessage), "HelpCmd: %s has just sent a request for help; %s", GetPlayerNameEx(playerid), params);
- HelperBroadcast(COLOR_LIGHTBLUE, szMessage, 1);
- } else SendClientMessage(playerid, COLOR_GREY, "You must have less thna 12 playing hours and can't be muted from newbie chat to request help.");
- return 1;
- }
- CMD:members(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] > 0) {
- new
- szMessage[128],
- szRank[64],
- szEmployer[64],
- szDivision[64];
- SendClientMessage(playerid, COLOR_NEWS, "Members Online:");
- foreach(Player, i) {
- if(PlayerInfo[playerid][pFaction] == PlayerInfo[i][pFaction] && AdminDuty[i] != 1) {
- GetPlayerFactionInfo(i, szRank, szDivision, szEmployer);
- if(PlayerInfo[i][pDivision] != 0) {
- format(szMessage, sizeof(szMessage), "* %s %s %s (%i)", szDivision, szRank, GetPlayerNameEx(i), PlayerInfo[i][pRank]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- } else {
- format(szMessage, sizeof(szMessage), "* %s %s (%i)", szRank, GetPlayerNameEx(i), PlayerInfo[i][pRank]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- }
- }
- } else if(PlayerInfo[playerid][pGang] != 255) {
- new
- szMessage[128],
- szRank[64];
- SendClientMessage(playerid, COLOR_NEWS, "Members Online:");
- foreach(Player, i) {
- if(PlayerInfo[playerid][pGang] == PlayerInfo[i][pGang] && AdminDuty[i] != 1) {
- switch(PlayerInfo[i][pRank])
- {
- case 1: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank1]);
- case 2: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank2]);
- case 3: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank3]);
- case 4: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank4]);
- case 5: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank5]);
- case 6: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank6]);
- default: format(szRank, sizeof(szRank), "%s", FamilyInfo[PlayerInfo[i][pGang]][FamilyRank1]);
- }
- format(szMessage, sizeof(szMessage), "* %s %s (%i)", szRank, GetPlayerNameEx(i), PlayerInfo[i][pRank]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- }
- } else SendClientMessage(playerid, COLOR_GRAD2, "You are not a member of a faction or family.");
- return true;
- }
- CMD:pointinfo(playerid, params[])
- {
- new
- iCount,
- szMessage[128];
- SendClientMessage(playerid, COLOR_NEWS, "Point Info:");
- for(new i; i < MAX_POINTS; i++) {
- if(Points[i][Type] >= 0) {
- if(Points[i][Vulnerable] == 0 && Points[i][TakeOverTimerStarted] > 0) {
- if(Points[i][TakeOverTimer] == 0) {
- format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Family: %s | Time left: Less than 1 minute", Points[i][Name], Points[i][PlayerNameCapping], FamilyInfo[Points[i][ClaimerTeam]][FamilyName]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- iCount++;
- } else {
- format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Family: %s | Time left: %d minutes", Points[i][Name], Points[i][PlayerNameCapping], FamilyInfo[Points[i][ClaimerTeam]][FamilyName], Points[i][TakeOverTimer]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- iCount++;
- }
- }
- }
- }
- if(iCount == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "No family has capped the point or the point is not ready to be capped.");
- return 1;
- }
- CMD:turfinfo(playerid, params[])
- {
- new
- iCount,
- szMessage[128];
- SendClientMessage(playerid, COLOR_NEWS, "Turfs Info:");
- for(new i = 0; i < MAX_TURFS; i++)
- {
- if(TurfsInfo[i][TurfsVulnerable] == 1 && TurfsInfo[i][TurfsDoing] == 1)
- {
- format(szMessage, 128, "%s | Capper: %s | Time left: %d minute(s)", TurfsInfo[i][TurfsName], TurfsInfo[i][TurfsCappingName], TurfsInfo[i][TurfshTime]);
- iCount++;
- }
- }
- SCM(playerid, -1, szMessage);
- if(iCount == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "No turf has capped the point or the turf is not ready to be capped.");
- return 1;
- }
- CMD:dc(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] > 0)
- {
- new szMessage[128];
- if(!isnull(params))
- {
- if(PlayerInfo[playerid][pDonator] == 1)
- format(szMessage, sizeof(szMessage), "(Ruby Donator) %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pDonator] == 2)
- format(szMessage, sizeof(szMessage), "(Sapphire Donator) %s: %s", GetPlayerNameEx(playerid), params);
- if(PlayerInfo[playerid][pDonator] == 3)
- format(szMessage, sizeof(szMessage), "(Diamond Donator) %s: %s", GetPlayerNameEx(playerid), params);
-
- foreach(Player, x)
- {
- if(PlayerInfo[x][pDonator] > 0)
- {
- SCM(x, COLOR_LIGHTSLATEGRAY, szMessage);
- }
- }
- }
- else SCM(playerid, -1, "USAGE: /(d)onator(c)hat [message]");
- }
- else SCM(playerid, COLOR_GREY, "You must be a Donator.");
- return 1;
- }
- CMD:togdcolor(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] >= 1)
- {
- if(GetPVarInt(playerid, "DonatorColor") == 0)
- {
- SetPlayerColor(playerid, COLOR_LIGHTSLATEGRAY);
- SCM(playerid, -1, "You have toggled on your Donator Color.");
- SetPVarInt(playerid, "DonatorColor", 1);
- }
- else
- {
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SCM(playerid, -1, "You have toggled off your Donator Color.");
- SetPVarInt(playerid, "DonatorColor", 0);
- }
- }
- else SCM(playerid, -1, "You must be a donator.");
- return 1;
- }
- /*CMD:spawnathome(playerid, params[])
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID)
- {
- if(PlayerInfo[playerid][pDonator] >= 1)
- {
- PlayerInfo[playerid][pSpawnHome] = 1;
- SendClientMessageEx(playerid, COLOR_LIGHTSLATEGRAY, "Donator: You will now spawn at your house after deaths.");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_LIGHTSLATEGRAY, "You need a donator package to access this feature.");
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "You do not own a house.");
- }
- return 1;
- }*/
- CMD:helpers(playerid, params[]) {
- if(PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1) {
- new
- iCount,
- szMessage[128];
- SCM(playerid, COLOR_ORANGE, "_______________________________________________________");
- SCM(playerid, COLOR_ORANGE, "Helpers Online:");
- foreach(Player, x) {
- if(PlayerInfo[x][pHelper] > 0) {
- if(PlayerInfo[x][pHelper] == 1)
- {
- format(szMessage, sizeof(szMessage), "Junior Helper %s | {939496}Newb Chats: {FFFFFF}%d", GetPlayerNameEx(x), PlayerInfo[x][pNC]);
- iCount++;
- }
- else if(PlayerInfo[x][pHelper] == 2)
- {
- format(szMessage, sizeof(szMessage), "Senior Helper %s | {939496}Accepted Requests: {FFFFFF}%d", GetPlayerNameEx(x), PlayerInfo[x][pAcceptReport]);
- iCount++;
- }
- else if(PlayerInfo[x][pHelper] == 3)
- {
- format(szMessage, sizeof(szMessage), "Asst. Head Helper %s | {939496}Accepted Requests: {FFFFFF}%d", GetPlayerNameEx(x), PlayerInfo[x][pAcceptReport]);
- iCount++;
- }
- else if(PlayerInfo[x][pHelper] == 4)
- {
- format(szMessage, sizeof(szMessage), "Head Helper %s | {939496}Accepted Requests: {FFFFFF}%d", GetPlayerNameEx(x), PlayerInfo[x][pAcceptReport]);
- iCount++;
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- }
- }
- SCM(playerid, COLOR_ORANGE, "_______________________________________________________");
- if(iCount == 0)
- return SendClientMessage(playerid, COLOR_GREY, "There aren't any helpers online right now.");
- }
- return 1;
- }
- CMD:helprequests(playerid, params[]) {
- if(PlayerInfo[playerid][pHelper] >= 2 || PlayerInfo[playerid][pAdmin] >= 1) {
- new
- szReason[100],
- iCount,
- szMessage[128];
- foreach(Player, x) {
- if(GetPVarType(x, "helpreq") != 0) {
- GetPVarString(x, "helpreq", szReason, sizeof(szReason));
- format(szMessage, sizeof(szMessage), "Name: %s (ID: %d) | Message: %s", GetPlayerNameEx(x), x, szReason);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
-
- iCount++;
- }
- }
-
- if(iCount == 0)
- SendClientMessage(playerid, COLOR_GREY, "There are no active help requests right now.");
- }
- return 1;
- }
- CMD:accepthelp(playerid, params[]) {
- if(PlayerInfo[playerid][pHelper] >= 2 || PlayerInfo[playerid][pAdmin] >= 1) {
- new
- szMessage[128],
- szReason[100],
- iTarget;
- if(sscanf(params, "u", iTarget))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /accepthelp [playerid]");
- if(iTarget == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- if(GetPVarType(iTarget, "helpreq") == 0)
- return SendClientMessage(playerid, COLOR_GREY, "The player specified has not requested help.");
- GetPVarString(iTarget, "helpreq", szReason, sizeof(szReason));
- format(szMessage, sizeof(szMessage), "You have accepted %s's help request; %s", GetPlayerNameEx(iTarget), szReason);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- SetPVarFloat(playerid, "posX", PlayerInfo[playerid][pPos_x]);
- SetPVarFloat(playerid, "posY", PlayerInfo[playerid][pPos_y]);
- SetPVarFloat(playerid, "posZ", PlayerInfo[playerid][pPos_z]);
- SetPVarInt(playerid, "posInt", GetPlayerInterior(playerid));
- GetPlayerPos(iTarget, PlayerInfo[iTarget][pPos_x], PlayerInfo[iTarget][pPos_y], PlayerInfo[iTarget][pPos_z]);
- SetPlayerPosFindZ(playerid, PlayerInfo[iTarget][pPos_x], PlayerInfo[iTarget][pPos_y]+5, PlayerInfo[iTarget][pPos_z]);
- PlayerInfo[playerid][pAcceptReport]++;
- format(szMessage, sizeof(szMessage), "%s has accepted your help request.", GetPlayerNameEx(playerid));
- SendClientMessage(iTarget, COLOR_LIGHTBLUE, szMessage);
-
- format(szMessage, sizeof(szMessage), "HelpCmd: %s has accepted %s's (ID: %d) help request.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTarget), iTarget);
- HelperBroadcast(COLOR_ORANGE, szMessage, 1);
- DeletePVar(iTarget, "helpreq");
- }
- return 1;
- }
- CMD:quithelp(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pHelper] >= 1) {
- if(GetPVarType(playerid, "posX") != 0) {
- SetPlayerInterior(playerid, GetPVarInt(playerid, "posInt"));
- SetPlayerPos(playerid, GetPVarFloat(playerid, "posX"), GetPVarFloat(playerid, "posY"), GetPVarFloat(playerid, "posZ"));
-
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported back to your previous position prior to logging off.");
- DeletePVar(playerid, "posX");
- DeletePVar(playerid, "posY");
- DeletePVar(playerid, "posZ");
- DeletePVar(playerid, "posInt");
- } else SendClientMessage(playerid, COLOR_GREY, "You are not actively helping someone.");
- }
-
- return 1;
- }
- CMD:togc(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2) {
- switch(GetPVarInt(playerid, "cschat")) {
- case 0: {
- SetPVarInt(playerid, "cschat", 1);
- SendClientMessage(playerid, COLOR_WHITE, "You will no longer see messages in the /c channel. Use /togc to see messages again.");
- }
- case 1: {
- DeletePVar(playerid, "cschat");
- SendClientMessage(playerid, COLOR_WHITE, "You will now see messages in the /c channel again.");
- }
- }
- }
- return 1;
- }
- CMD:c(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2 || PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pFormer] == 1) {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /c(ommunitystaff) [message]");
- new
- string[128];
- if(PlayerInfo[playerid][pAdmin] > 0)
- format(string, sizeof(string), "** %s{33CCFF} %s: %s", GetAdminRank(playerid), GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pHelper] == 2)
- format(string, sizeof(string), "*** {33CCFF}Senior Helper{33CCFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pHelper] == 3)
- format(string, sizeof(string), "*** {33CCFF}Asst. Head Helper{33CCFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pHelper] == 4)
- format(string, sizeof(string), "*** {33CCFF}Head Helper{33CCFF} %s: %s", GetPlayerNameEx(playerid), params);
-
- foreach(Player, x) {
- if(PlayerInfo[x][pAdmin] > 0 && GetPVarInt(x, "cschat") == 0 || PlayerInfo[x][pHelper] >= 2 && GetPVarInt(x, "cschat") == 0 || PlayerInfo[x][pFormer] == 1)
- SendClientMessage(x, COLOR_LIGHTBLUE, string);
- }
- }
- return 1;
- }
- CMD:setdonator(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 5) {
- new string[128], giveplayerid, level;
- if(sscanf(params, "ud", giveplayerid, level)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setdonator [player] [level]");
- SendClientMessage(playerid, COLOR_GRAD3, "Available Levels: |0| None |1| Ruby |2| Sapphire |3| Diamond");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(level < 0 || level > 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Donator Level can't be below 0 or above 3!");
- return 1;
- }
- PlayerInfo[giveplayerid][pDonator] = level;
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- if(level == 0)
- {
- format(string, sizeof(string), "AdmCmd: %s has set %s's donator level to None (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), level);
- ABroadCast(COLOR_LIGHTRED,string, 4);
- format(string, sizeof(string), "Your donator level has been set to None by Admin %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "AdmCmd: %s has set %s's (IP:%s) donator level to None (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), playerip, level);
- Log("logs/setvip.log", string);
- return 1;
- }
- if(level == 1)
- {
- format(string, sizeof(string), "AdmCmd: %s has set %s's donator level to Ruby (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), level);
- ABroadCast(COLOR_LIGHTRED,string, 4);
- format(string, sizeof(string), "Your donator level has been set to Ruby by Admin %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "AdmCmd: %s has set %s's (IP:%s) donator level to Ruby (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), playerip, level);
- Log("logs/setvip.log", string);
- return 1;
- }
- if(level == 2)
- {
- format(string, sizeof(string), "AdmCmd: %s has set %s's donator level to Sapphire (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), level);
- ABroadCast(COLOR_LIGHTRED,string, 4);
- format(string, sizeof(string), "Your donator level has been set to Sapphire by Admin %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "AdmCmd: %s has set %s's (IP:%s) donator level to Sapphire (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), playerip, level);
- Log("logs/setvip.log", string);
- return 1;
- }
- if(level == 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has set %s's donator level to Diamond (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), level);
- ABroadCast(COLOR_LIGHTRED,string, 4);
- format(string, sizeof(string), "Your donator level has been set to Diamond by Admin %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "AdmCmd: %s has set %s's (IP:%s) donator level to Diamond (%d).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), playerip, level);
- Log("logs/setvip.log", string);
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:gcto(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gcto [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pGCMuted] == 0)
- {
- PlayerInfo[giveplayerid][pGCMutedTime] = 15*60;
- PlayerInfo[giveplayerid][pGCMuted] = 2;
- format(string, sizeof(string), "AdmCmd: %s has temporarily blocked %s from using Global Chat, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- format(string, sizeof(string), "You have been temporarily blocked from using Global Chat by %s, reason: %s.", GetPlayerNameEx(playerid), reason);
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- SendClientMessage(giveplayerid, COLOR_GRAD2, "You will not be able to use Global Chat for 15 minutes.");
- SendClientMessage(giveplayerid, COLOR_GRAD2, "Note the future abuse of Global Chat could result in loss of that privilege altogether or being banned from the server.");
- format(string, sizeof(string), "AdmCmd: %s was temporarily blocked from Global Chat by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/mute.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is already disabled from Global Chat.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:gcreset(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gcoreset [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pGCMuted] == 2)
- {
- PlayerInfo[giveplayerid][pGCMuted] = 0;
- PlayerInfo[giveplayerid][pGCMutedTime] = 0;
- format(string, sizeof(string), "AdmCmd: %s has unblocked %s from using Global Chat, reason: %s",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- SendClientMessage(giveplayerid, COLOR_GRAD2, "You have been unblocked from using Global Chat. You may now use the Global Chat system again.");
- SendClientMessage(giveplayerid, COLOR_GRAD2, "Please accept our apologies for any error and inconvenience this may have caused.");
- format(string, sizeof(string), "AdmCmd: %s was unblocked from Global Chat by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid),reason);
- Log("logs/mute.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not temporarily disabled from Global Chat.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:gcmute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gcmute [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pGCMuted] == 0)
- {
- PlayerInfo[giveplayerid][pGCMuted] = 1;
- format(string, sizeof(string), "AdmCmd: %s has indefinitely blocked %s from using Global Chat.",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- foreach(Player, i)
- {
- if(GlobalChat[i] == 1 && PlayerInfo[i][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- }
- }
- format(string, sizeof(string), "You have been indefinitely muted from Global Chat for abuse by %s. You may appeal this on the forums (admin complaint)", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "AdmCmd: %s was blocked from /gc by %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/mute.log", string);
- }
- else
- {
- PlayerInfo[giveplayerid][pGCMuted] = 0;
- PlayerInfo[giveplayerid][pGCMutedTime] = 0;
- format(string, sizeof(string), "AdmCmd: %s has been re-allowed to use Global Chat by %s.",GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- foreach(Player, i)
- {
- if(GlobalChat[i] == 1 && PlayerInfo[i][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- }
- }
- format(string, sizeof(string), "You have been re-allowed to use Global Chat by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "AdmCmd: %s was unblocked from /gc by %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/mute.log", string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:listfacpay(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params)) {
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /listfacpay [faction ID 1-5]");
- }
- new iFactionID = strval(params);
- if(iFactionID < 1 || iFactionID > 5) {
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /listfacpay [faction ID 1-5]");
- }
- new
- szMessage[37];
- format(szMessage, sizeof(szMessage), "Listing Faction ID %i's paychecks...", iFactionID);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- for(new x; x < 7; x++) {
- format(szMessage, sizeof(szMessage), "Rank %i: $%i", x, FactionPay[iFactionID - 1][x]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use this command.");
- return 1;
- }
- CMD:facpay(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iFactionID,
- iRankValue,
- iPayValue;
- if(sscanf(params, "ddd", iFactionID, iRankValue, iPayValue)) {
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /facpay [faction ID] [rank] [pay amount]");
- }
- --iFactionID;
- if(!(0 <= iFactionID < sizeof(FactionPay))) {
- return SendClientMessage(playerid, COLOR_WHITE, "Valid faction IDs run from 1 to 4.");
- }
- else if(!(0 <= iRankValue <= 6)) {
- return SendClientMessage(playerid, COLOR_WHITE, "Valid ranks are 0 to 6.");
- }
- else if(!(1 <= iPayValue <= 800)) {
- return SendClientMessage(playerid, COLOR_GRAD1, "The specified pay amount must be between $1 and $800.");
- }
- FactionPay[iFactionID][iRankValue] = iPayValue;
- new
- szMessage[46 + MAX_PLAYER_NAME];
- format(szMessage, sizeof(szMessage), "You have set faction %d's pay for rank %d to $%d.", iFactionID + 1, iRankValue, iPayValue);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "%s has set faction %i's pay for rank %i to %i.", GetPlayerNameEx(playerid), iFactionID + 1, iRankValue, iPayValue);
- Log("logs/admin.log", szMessage);
- SaveThePay();
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use this command.");
- return 1;
- }
- CMD:speedo(playerid, params[]) {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) {
- SendClientMessage(playerid, COLOR_GREY, "You're not driving a vehicle.");
- }
- else if(!PlayerInfo[playerid][pSpeedo]) {
- SendClientMessage(playerid, COLOR_WHITE, "You have enabled your speedometer.");
- PlayerInfo[playerid][pSpeedo] = 1;
- if(!FindTimePoints[playerid]) {
- new
- szSpeed[42];
- format(szSpeed, sizeof(szSpeed),"~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~%.0f MPH", player_get_speed(playerid));
- GameTextForPlayer(playerid, szSpeed, 1500, 3);
- }
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "You have disabled your speedometer.");
- PlayerInfo[playerid][pSpeedo] = 0;
- if(!FindTimePoints[playerid]) GameTextForPlayer(playerid, " ", 1500, 3);
- }
- return 1;
- }
- CMD:checktruck(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 20 && PlayerInfo[playerid][pJob2] != 20 && !IsACop(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a Trucker or a Cop!");
- return 1;
- }
- new carid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, carid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 6.0) && IsATruckerCar(closestcar))
- {
- new string[128];
- new truckcontents = TruckContents[closestcar];
- new truckcontentname[50];
- if(truckcontents == 0)
- { format(truckcontentname, sizeof(truckcontentname), "None"); }
- else if(truckcontents >= 1 && truckcontents <= 3)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}Food & beverages");}
- else if(truckcontents >= 4 && truckcontents <= 6)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}Clothing"); }
- else if(truckcontents == 7)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}Legal materials"); }
- else if(truckcontents >= 8 && truckcontents <= 10)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}24/7 items"); }
- else if(truckcontents >= 11 && truckcontents <= 15)
- { format(truckcontentname, sizeof(truckcontentname), "{33CCFF}Illegal weapons"); }
- else if(truckcontents >= 16 && truckcontents <= 20)
- { format(truckcontentname, sizeof(truckcontentname), "{33CCFF}Illegal drugs"); }
- else if(truckcontents >= 21 && truckcontents <= 25)
- { format(truckcontentname, sizeof(truckcontentname), "{33CCFF}Illegal materials"); }
- SendClientMessage(playerid, COLOR_GREEN,"________________ OCEAN DOCKS TRUCK ________________");
- if(IsPlayerInVehicle(playerid, closestcar))
- {
- SendClientMessage(playerid, COLOR_WHITE, "There is a player in that Truck. In order to check the content of the Truck the driver must be removed.");
- return 1;
- }
- format(string, sizeof(string), "Vehicle registration: %s (%d)", GetVehicleName(closestcar), closestcar);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Content: %s", truckcontentname);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(IsACop(playerid) && truckcontents >= 11)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "To remove the illegal goods type /cleartruck near the Truck.");
- }
- if(PlayerInfo[playerid][pJob] == 20 || PlayerInfo[playerid][pJob2] == 20)
- {
- if(truckcontents > 0 && TruckUsed[playerid] == INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "To deliver the goods type /hijacktruck as the driver.");
- }
- else if(TruckUsed[playerid] == INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "To get goods type /loadtruck as the driver.");
- }
- else if(TruckUsed[playerid] == closestcar && gPlayerCheckpointStatus[playerid] == CHECKPOINT_RETURNTRUCK)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This is your Truck, you have not returned it to the docks yet for your pay.");
- }
- else if(TruckUsed[playerid] == closestcar)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This is your Truck, you have not delivered your goods yet.");
- }
- else if(TruckUsed[playerid] != INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You're already on another delivery, type /cancel truck to cancel that delivery.");
- }
- }
- SendClientMessage(playerid, COLOR_GREEN,"_________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not near a Ocean Docks Truck.");
- }
- return 1;
- }
- CMD:cleartruck(playerid, params[])
- {
- if(!IsACop(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a Cop!");
- return 1;
- }
- new carid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, carid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 6.0) && IsATruckerCar(closestcar))
- {
- new truckcontents = TruckContents[closestcar];
- if(truckcontents < 11)
- {
- SendClientMessage(playerid, COLOR_WHITE, "There are no illegal items in that Truck.");
- return 1;
- }
- new string[128];
- new truckcontentname[50];
- if(truckcontents >= 11 && truckcontents <= 15)
- { format(truckcontentname, sizeof(truckcontentname), "{33CCFF}illegal weapons"); }
- else if(truckcontents >= 16 && truckcontents <= 20)
- { format(truckcontentname, sizeof(truckcontentname), "{33CCFF}illegal drugs"); }
- else if(truckcontents >= 21 && truckcontents <= 25)
- { format(truckcontentname, sizeof(truckcontentname), "{33CCFF}illegal materials"); }
- foreach(Player, i)
- {
- if(TruckUsed[i] == closestcar)
- {
- DestroyProgressBar(LoadTruckBar[i]);
- LoadTruckBar[i] = INVALID_BAR_ID;
- LoadTruckTime[i] = 0;
- DeletePVar(i, "TruckDeliver");
- TruckUsed[i] = INVALID_VEHICLE_ID;
- TruckContents[closestcar] = 0;
- DisablePlayerCheckpoint(i);
- gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
- SendClientMessage(i, COLOR_WHITE, "Your Truck delivery has failed. Law enforcement has confiscated the illegal goods.");
- }
- }
- format(string, sizeof(string), "You removed the %s {FFFFFF}from the Truck.", truckcontentname);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "* %s has taken the illegal items from the Truck.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not near a Ocean Docks Truck.");
- }
- return 1;
- }
- CMD:hijacktruck(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 20 || PlayerInfo[playerid][pJob2] == 20)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsATruckerCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(CheckPointCheck(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- if(GetProgressBarValue(LoadTruckBar[playerid]) > 10)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're currently loading your Truck!");
- return 1;
- }
- if(TruckUsed[playerid] != INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're already on another delivery, type /cancel truck to cancel that delivery.");
- return 1;
- }
- if(TruckContents[vehicleid] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This Truck is empty, it does not contain any goods!");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 65, 2225.343261, -2635.977294, 13.438463))
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't hijack when that close to the Ocean Docks!");
- return 1;
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* you're now attempting to hijack the truck, please wait....");
- TogglePlayerControllable(playerid, 0);
- SetPVarInt(playerid, "IsFrozen", 1);
- LoadTruckBar[playerid] = CreateProgressBar(258.00, 137.00, 131.50, 3.19, COLOR_GREEN, 100.0);
- SetProgressBarValue(LoadTruckBar[playerid], 100.0);
- ShowProgressBarForPlayer(playerid, LoadTruckBar[playerid]);
- SetTimerEx("HijackTruck", 1000, 0, "dd", playerid);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You're not driving a Ocean Docks Truck!");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You're not a Trucker!");
- return 1;
- }
- forward HijackTruck(playerid);
- public HijackTruck(playerid)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- LoadTruckTime[playerid]--;
- SetProgressBarValue(LoadTruckBar[playerid], GetProgressBarValue(LoadTruckBar[playerid])-10.0);
- UpdateProgressBar(LoadTruckBar[playerid], playerid);
- if(GetProgressBarValue(LoadTruckBar[playerid]) > 10) SetTimerEx("HijackTruck", 1000, 0, "d", playerid);
- if(GetProgressBarValue(LoadTruckBar[playerid]) == 50.0)
- {
- SetProgressBarColor(LoadTruckBar[playerid], COLOR_YELLOW);
- UpdateProgressBar(LoadTruckBar[playerid], playerid);
- }
- else if(GetProgressBarValue(LoadTruckBar[playerid]) == 20.0)
- {
- SetProgressBarColor(LoadTruckBar[playerid], COLOR_RED);
- UpdateProgressBar(LoadTruckBar[playerid], playerid);
- }
- else if(GetProgressBarValue(LoadTruckBar[playerid]) <= 10.0)
- {
- DeletePVar(playerid, "IsFrozen");
- TogglePlayerControllable(playerid, 1);
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- if(!IsPlayerInVehicle(playerid, vehicleid))
- {
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- DeletePVar(playerid, "TruckDeliver");
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You failed to hijack the truck.");
- return 1;
- }
- foreach(Player, i)
- {
- if(TruckUsed[i] == vehicleid)
- {
- DestroyProgressBar(LoadTruckBar[i]);
- LoadTruckBar[i] = INVALID_BAR_ID;
- LoadTruckTime[i] = 0;
- DeletePVar(i, "TruckDeliver");
- TruckUsed[i] = INVALID_VEHICLE_ID;
- DisablePlayerCheckpoint(i);
- gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
- SendClientMessage(i, COLOR_WHITE, "Your Truck delivery has failed. Your Truck was hijacked.");
- }
- }
- new truckdeliver = TruckContents[vehicleid];
- SetPVarInt(playerid, "TruckDeliver", truckdeliver);
- TruckUsed[playerid] = vehicleid;
- if(truckdeliver == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with food & beverages.");
- SetPlayerCheckpoint(playerid, 812.287231, -1623.678222, 13.546875, 5);
- }
- else if(truckdeliver == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with food & beverages.");
- SetPlayerCheckpoint(playerid, 1204.510375, -920.674499, 43.074016, 5);
- }
- else if(truckdeliver == 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with food & beverages.");
- SetPlayerCheckpoint(playerid, 2402.169677, -1502.789306, 23.834865, 5);
- }
- else if(truckdeliver == 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with clothing.");
- SetPlayerCheckpoint(playerid, 2110.254394, -1214.892578, 23.485479, 5);
- }
- else if(truckdeliver == 5)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with clothing.");
- SetPlayerCheckpoint(playerid, 1458.425292, -1140.346069, 23.938444, 5);
- }
- else if(truckdeliver == 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with clothing.");
- SetPlayerCheckpoint(playerid, 500.889678, -1352.339843, 15.463395, 5);
- }
- else if(truckdeliver == 7)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with materials.");
- SetPlayerCheckpoint(playerid, 334.012207, -1373.775146, 14.230167, 5);
- }
- else if(truckdeliver == 8)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with 24/7 items.");
- SetPlayerCheckpoint(playerid, 1317.785522, -870.413818, 39.089378, 5);
- }
- else if(truckdeliver == 9)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with 24/7 items.");
- SetPlayerCheckpoint(playerid, 1342.577026, -1748.498535, 12.934987, 5);
- }
- else if(truckdeliver == 10)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with 24/7 items.");
- SetPlayerCheckpoint(playerid, 653.629699, -579.503051, 15.889705, 5);
- }
- else if(truckdeliver >= 11 && truckdeliver <= 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with weapons.");
- SetPlayerCheckpoint(playerid, 1634.834716, 757.830017, 10.820312, 5);
- new level = PlayerInfo[playerid][pTruckSkill];
- if(level >= 0 && level <= 50)
- { SetPVarInt(playerid, "TruckDeliver", 11); }
- else if(level >= 51 && level <= 100)
- { SetPVarInt(playerid, "TruckDeliver", 12); }
- else if(level >= 101 && level <= 200)
- { SetPVarInt(playerid, "TruckDeliver", 13); }
- else if(level >= 201 && level <= 400)
- { SetPVarInt(playerid, "TruckDeliver", 14); }
- else if(level >= 401)
- { SetPVarInt(playerid, "TruckDeliver", 15); }
- }
- else if(truckdeliver >= 16 && truckdeliver <= 20)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with drugs.");
- SetPlayerCheckpoint(playerid, 2833.109375, 893.754699, 10.757797, 5);
- new level = PlayerInfo[playerid][pTruckSkill];
- if(level >= 0 && level <= 50)
- { SetPVarInt(playerid, "TruckDeliver", 16); }
- else if(level >= 51 && level <= 100)
- { SetPVarInt(playerid, "TruckDeliver", 17); }
- else if(level >= 101 && level <= 200)
- { SetPVarInt(playerid, "TruckDeliver", 18); }
- else if(level >= 201 && level <= 400)
- { SetPVarInt(playerid, "TruckDeliver", 19); }
- else if(level >= 401)
- { SetPVarInt(playerid, "TruckDeliver", 20); }
- }
- else if(truckdeliver >= 21 && truckdeliver <= 25)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your hijacked a Truck filled with illegal materials.");
- SetPlayerCheckpoint(playerid, -510.522918, -501.250030, 25.523437, 5);
- new level = PlayerInfo[playerid][pTruckSkill];
- if(level >= 0 && level <= 50)
- { SetPVarInt(playerid, "TruckDeliver", 21); }
- else if(level >= 51 && level <= 100)
- { SetPVarInt(playerid, "TruckDeliver", 22); }
- else if(level >= 101 && level <= 200)
- { SetPVarInt(playerid, "TruckDeliver", 23); }
- else if(level >= 201 && level <= 400)
- { SetPVarInt(playerid, "TruckDeliver", 24); }
- else if(level >= 401)
- { SetPVarInt(playerid, "TruckDeliver", 25); }
- }
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Deliver the goods to the specified location (see checkpoint on radar).");
- SendClientMessage(playerid, COLOR_REALRED, "WARNING: Watch out for truck hijackers, they can hijack your truck and get away with the goods.");
- if(truckdeliver >= 9)
- {
- SendClientMessage(playerid, COLOR_REALRED, "WARNING #2: you're transporting illegal goods so watch out for law enforcement.");
- }
- // If hijacked near delivery point it would send an inaccurate warning.
- /*SetPVarInt(playerid, "tpTruckRunTimer", 10);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);*/
- }
- return 1;
- }
- CMD:loadtruck(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 20 || PlayerInfo[playerid][pJob2] == 20)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsATruckerCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(CheckPointCheck(playerid))return SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- if(GetProgressBarValue(LoadTruckBar[playerid]) > 10)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're currently loading your Truck!");
- return 1;
- }
- if(TruckUsed[playerid] != INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're already on another delivery, type /cancel truck to cancel that delivery.");
- return 1;
- }
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_LOADTRUCK;
- SetPlayerCheckpoint(playerid,2197.660644, -2662.190185, 13.546875, 5);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~Ocean Docks", 5000, 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Pick up some goods to transport with your Truck at Ocean Docks (see checkpoint on radar).");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You're not driving a Ocean Docks Truck!");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You're not a Trucker!");
- return 1;
- }
- forward LoadTruck(playerid);
- public LoadTruck(playerid)
- {
- LoadTruckTime[playerid]--;
- SetProgressBarValue(LoadTruckBar[playerid], GetProgressBarValue(LoadTruckBar[playerid])-10.0);
- UpdateProgressBar(LoadTruckBar[playerid], playerid);
- if(GetProgressBarValue(LoadTruckBar[playerid]) > 10) SetTimerEx("LoadTruck", 1000, 0, "d", playerid);
- if(GetProgressBarValue(LoadTruckBar[playerid]) == 50.0)
- {
- SetProgressBarColor(LoadTruckBar[playerid], COLOR_YELLOW);
- UpdateProgressBar(LoadTruckBar[playerid], playerid);
- }
- else if(GetProgressBarValue(LoadTruckBar[playerid]) == 20.0)
- {
- SetProgressBarColor(LoadTruckBar[playerid], COLOR_RED);
- UpdateProgressBar(LoadTruckBar[playerid], playerid);
- }
- else if(GetProgressBarValue(LoadTruckBar[playerid]) <= 10.0)
- {
- DeletePVar(playerid, "IsFrozen");
- TogglePlayerControllable(playerid, 1);
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- new vehicleid = GetPlayerVehicleID(playerid);
- new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
- TruckContents[vehicleid] = truckdeliver;
- TruckUsed[playerid] = vehicleid;
- if(truckdeliver == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with food & beverages.");
- SetPlayerCheckpoint(playerid, 812.287231, -1623.678222, 13.546875, 5);
- }
- else if(truckdeliver == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with food & beverages.");
- SetPlayerCheckpoint(playerid, 1204.510375, -920.674499, 43.074016, 5);
- }
- else if(truckdeliver == 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with food & beverages.");
- SetPlayerCheckpoint(playerid, 2402.169677, -1502.789306, 23.834865, 5);
- }
- else if(truckdeliver == 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with clothing.");
- SetPlayerCheckpoint(playerid, 2110.254394, -1214.892578, 23.485479, 5);
- }
- else if(truckdeliver == 5)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with clothing.");
- SetPlayerCheckpoint(playerid, 1458.425292, -1140.346069, 23.938444, 5);
- }
- else if(truckdeliver == 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with clothing.");
- SetPlayerCheckpoint(playerid, 500.889678, -1352.339843, 15.463395, 5);
- }
- else if(truckdeliver == 7)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with materials.");
- SetPlayerCheckpoint(playerid, 334.012207, -1373.775146, 14.230167, 5);
- }
- else if(truckdeliver == 8)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with 24/7 items.");
- SetPlayerCheckpoint(playerid, 1317.785522, -870.413818, 39.089378, 5);
- }
- else if(truckdeliver == 9)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with 24/7 items.");
- SetPlayerCheckpoint(playerid, 1342.577026, -1748.498535, 12.934987, 5);
- }
- else if(truckdeliver == 10)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with 24/7 items.");
- SetPlayerCheckpoint(playerid, 653.629699, -579.503051, 15.889705, 5);
- }
- else if(truckdeliver >= 11 && truckdeliver <= 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with weapons.");
- SetPlayerCheckpoint(playerid, 1634.834716, 757.830017, 10.820312, 5);
- }
- else if(truckdeliver >= 16 && truckdeliver <= 20)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with drugs.");
- SetPlayerCheckpoint(playerid, 2833.109375, 893.754699, 10.757797, 5);
- }
- else if(truckdeliver >= 21 && truckdeliver <= 25)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* Your Truck was filled with illegal materials.");
- SetPlayerCheckpoint(playerid, -510.522918, -501.250030, 25.523437, 5);
- }
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Deliver the goods to the specified location (see checkpoint on radar).");
- SendClientMessage(playerid, COLOR_REALRED, "WARNING: Watch out for truck hijackers, they can hijack your truck and get away with the goods.");
- if(truckdeliver >= 11)
- {
- SendClientMessage(playerid, COLOR_REALRED, "WARNING #2: you're transporting illegal goods so watch out for law enforcement.");
- }
- SetPVarInt(playerid, "tpTruckRunTimer", 30);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);
- }
- return 1;
- }
- CMD:mp3(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] < 2)
- return SendClientMessage(playerid, COLOR_WHITE, "You must be at least Sapphire+ Donator to use this feature.");
-
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- ShowPlayerDialogEx(playerid, DIALOG_MP3_START, DIALOG_STYLE_LIST, "Radio", "Turn off MP3 player\nSearch by name\nFind by genre", "Select", "Cancel");
- return 1;
- }
- CMD:placeboombox(playerid, params[]) {
- return cmd_placebb(playerid, params);
- }
- CMD:placebb(playerid, params[])
- {
- if(PlayerInfo[playerid][pDonator] < 3)
- return SendClientMessage(playerid, COLOR_WHITE, "You must be at least Diamond+ Donator to use this feature.");
-
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- if(GetPVarInt(playerid, "EventToken") != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't place boomboxes while you're in an event.");
- if(PlayerInfo[playerid][pJailed] > 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this in jail/prison.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
- if(GetPlayerInterior(playerid) == 0)
- return SendClientMessage(playerid, COLOR_GREY, "Boomboxes can only be placed in interiors.");
- if((GetPlayerVirtualWorld(playerid) == 373737 && GetPlayerInterior(playerid) == 37) || (GetPlayerVirtualWorld(playerid) == 363636 && GetPlayerInterior(playerid) == 36) || (GetPlayerVirtualWorld(playerid) == 353535 && GetPlayerInterior(playerid) == 35))
- return SendClientMessage(playerid, COLOR_GREY, "You can not place a boombox in this interior since there is already music playing here.");
- if(BoomBoxSet[playerid] != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can only place one boombox at a time. Use /pickupbb to remove it.");
-
- new Float:posX, Float:posY, Float:posZ;
- GetPlayerPos(playerid, posX, posY, posZ);
-
- foreach(Player, i)
- {
- if(IsABoomboxNearby(posX, posY, posZ, i) < 150.0)
- return SendClientMessage(playerid, COLOR_GREY, "There is already a boombox in this interior. Use /pickupbb to remove it.");
- }
-
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_START, DIALOG_STYLE_LIST, "Boombox", "Search by name\nFind by genre", "Select", "Cancel");
- return 1;
- }
- CMD:pickupboombox(playerid, params[]) {
- return cmd_pickupbb(playerid, params);
- }
- CMD:pickupbb(playerid, params[])
- {
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- if(GetPVarInt(playerid, "EventToken") != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't pick up boomboxes while you're in an event.");
- if(PlayerInfo[playerid][pJailed] > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this in jail/prison.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
- if(GetPlayerInterior(playerid) == 0)
- return SendClientMessage(playerid, COLOR_GREY, "Boomboxes can only be found in interiors.");
- new Float:posX, Float:posY, Float:posZ;
- GetPlayerPos(playerid, posX, posY, posZ);
-
- new iCount;
- foreach(Player, i)
- {
- if(IsABoomboxNearby(posX, posY, posZ, i) < 3.0) {
- if(IsPlayerInRangeOfPoint(i,150.0,BoomboxInfo[i][bbPosX],BoomboxInfo[i][bbPosY],BoomboxInfo[i][bbPosZ]) && GetPlayerInterior(i) == BoomboxInfo[i][bbInt] && GetPlayerVirtualWorld(i) == BoomboxInfo[i][bbVW])
- {
- foreach(Player, x) {
- if(GetDistanceBetweenPlayers(x, i) < 150.0) StopAudioStreamForPlayer(x);
- }
- StopAudioStreamForPlayer(i);
- }
- BoomBoxSet[i] = 0;
- BoomboxInfo[i][bbPosX] = 0.0;
- BoomboxInfo[i][bbPosY] = 0.0;
- BoomboxInfo[i][bbPosZ] = 0.0;
- BoomboxInfo[i][bbInt] = 0;
- BoomboxInfo[i][bbVW] = 0;
- BoomboxInfo[i][bbStation] = 0;
- BoomboxInfo[i][bbSetBy] = 999;
- DestroyDynamicObject(BoomboxInfo[i][bbObject]);
- BoomboxInfo[i][bbObject] = 0;
- iCount++;
- }
- }
- if(iCount == 0) SendClientMessage(playerid, COLOR_GREY, "You are not near any boomboxes.");
- else
- {
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- new string[128];
- format(string, sizeof(string), "* %s has picked up a Boombox.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- CMD:setstation(playerid, params[]) {
- return cmd_setradio(playerid, params);
- }
- CMD:setradio(playerid, params[])
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_START, DIALOG_STYLE_LIST, "Radio station", "Turn off radio\nSearch by name\nFind by genre", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not driving any vehicle.");
- }
- return 1;
- }
- CMD:togphone(playerid, params[])
- {
- if(PlayerInfo[playerid][pJailed] > 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't use your phone in jail/prison.");
- return 1;
- }
- if(!PhoneOnline[playerid])
- {
- PhoneOnline[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Your phone is now switched off.");
- }
- else
- {
- PhoneOnline[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Your phone is now switched on.");
- }
- return 1;
- }
- CMD:ad(playerid, params[])
- {
- return cmd_advertisements(playerid, params);
- }
- CMD:ads(playerid, params[]) {
- return cmd_advertisements(playerid, params);
- }
- CMD:advertise(playerid, params[]) {
- return cmd_advertisements(playerid, params);
- }
- CMD:advertisements(playerid, params[]) {
- if(gPlayerLogged[playerid] == 0) {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- }
- else if(GetPVarType(playerid, "Injured")) {
- SendClientMessage(playerid, COLOR_GREY, "You can't use advertisements while injured.");
- }
- else if(PlayerCuffed[playerid] != 0) {
- SendClientMessage(playerid, COLOR_GREY, "You can't use advertisements right now.");
- }
- else if(PlayerInfo[playerid][pJailTime] > 0) {
- SendClientMessage(playerid, COLOR_GREY, "You can't use advertisements while in jail.");
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return 1;
- }
- CMD:awithdraw(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsAtATM(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not at an ATM!");
- return 1;
- }
- new string[128], amount;
- if(sscanf(params, "d", amount))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /awithdraw [amount]");
- format(string, sizeof(string), " You have $%d in your account.", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(amount > PlayerInfo[playerid][pBank] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You don't have that much!");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 0)
- {
- new fee;
- fee = 3*amount/100;
- PlayerInfo[playerid][pBank]=PlayerInfo[playerid][pBank]-fee;
- format(string, sizeof(string), "-$%d money as a 3 percent fee.", fee);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- if(PlayerInfo[playerid][pBank]-amount < 1)
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money combined with the ATM charges, go to a bank to withdraw your full amount of money.");
- PlayerInfo[playerid][pBank]=PlayerInfo[playerid][pBank]-amount;
- GivePlayerCash(playerid,amount);
- format(string, sizeof(string), " You have withdrawn $%d from your account. Current balance: $%d ", amount,PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:adeposit(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsAtATM(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not at an ATM!");
- return 1;
- }
- new string[128], amount;
- if(sscanf(params, "d", amount))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /adeposit [amount]");
- format(string, sizeof(string), " You have $%d in your account.", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(amount > GetPlayerCash(playerid) || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You don't have that much.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 0)
- {
- new fee;
- fee = 3*amount/100;
- PlayerInfo[playerid][pBank]=PlayerInfo[playerid][pBank]-fee;
- format(string, sizeof(string), "-$%d money (3 percent fee).", fee);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- GivePlayerCash(playerid,-amount);
- new curfunds = PlayerInfo[playerid][pBank];
- PlayerInfo[playerid][pBank]=amount+PlayerInfo[playerid][pBank];
- SendClientMessage(playerid, COLOR_WHITE, "|___ ATM STATMENT ___|");
- format(string, sizeof(string), " Old Balance: $%d", curfunds);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Deposit: $%d",amount);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
- format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- CMD:abalance(playerid, params[])
- {
- if(!IsAtATM(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not at an ATM!");
- return 1;
- }
- new string[128];
- format(string, sizeof(string), " You have $%d in your account.",PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:awiretransfer(playerid, params[])
- {
- if(PlayerInfo[playerid][pLevel] < 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You must be at least level 3!");
- return 1;
- }
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsAtATM(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not at an ATM!");
- return 1;
- }
- new string[128], giveplayerid, amount;
- if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /awiretransfer [playerid/partofname] [amount]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new playermoney = PlayerInfo[playerid][pBank];
- if(amount > 0 && playermoney >= amount)
- {
- if(PlayerInfo[playerid][pDonator] == 0)
- {
- new fee;
- fee = 3*amount/100;
- PlayerInfo[playerid][pBank]=PlayerInfo[playerid][pBank]-fee;
- format(string, sizeof(string), "-$%d money (3 percent fee).", fee);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- PlayerInfo[playerid][pBank] -= amount;
- PlayerInfo[giveplayerid][pBank] += amount;
- format(string, sizeof(string), " You have transferred $%d to %s's account.", amount, GetPlayerNameEx(giveplayerid),giveplayerid);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved $%d to into your account from %s.", amount, GetPlayerNameEx(playerid), playerid);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- format(string, sizeof(string), "[ATM] %s (IP:%s) has transferred $%d to %s (IP:%s).", GetPlayerNameEx(playerid), ip, amount, GetPlayerNameEx(giveplayerid), ipex);
- if(amount >= 42000)
- {
- ABroadCast(COLOR_YELLOW,string,2);
- }
- Log("logs/pay.log", string);
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount.");
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:withdraw(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 1667.4260, -972.6691, 683.6873))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- new string[128], amount;
- if(sscanf(params, "d", amount))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /withdraw [amount]");
- format(string, sizeof(string), " You have $%d in your account.", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(amount > PlayerInfo[playerid][pBank] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You don't have that much!");
- return 1;
- }
- GivePlayerCash(playerid,amount);
- PlayerInfo[playerid][pBank]=PlayerInfo[playerid][pBank]-amount;
- format(string, sizeof(string), " You have withdrawn $%d from your account. Current balance: $%d ", amount,PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:deposit(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 1667.4260, -972.6691, 683.6873))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- new string[128], amount;
- if(sscanf(params, "d", amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deposit [amount]");
- format(string, sizeof(string), " You have $%d in your account.", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(amount > GetPlayerCash(playerid) || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You don't have that much.");
- return 1;
- }
- GivePlayerCash(playerid,-amount);
- new curfunds = PlayerInfo[playerid][pBank];
- PlayerInfo[playerid][pBank]=amount+PlayerInfo[playerid][pBank];
- SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
- format(string, sizeof(string), " Old Balance: $%d", curfunds);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Deposit: $%d",amount);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
- format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- CMD:balance(playerid, params[])
- {
- new string[128];
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 1667.4260, -972.6691, 683.6873))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- format(string, sizeof(string), "You have $%d in your account.",PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:wiretransfer(playerid, params[])
- {
- if(PlayerInfo[playerid][pLevel] < 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You must be at least level 3!");
- return 1;
- }
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 1667.4260, -972.6691, 683.6873))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- new string[128], giveplayerid, amount;
- if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /wiretransfer [playerid/partofname] [amount]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new playermoney = PlayerInfo[playerid][pBank] ;
- if(amount > 0 && playermoney >= amount)
- {
- PlayerInfo[playerid][pBank] -= amount;
- PlayerInfo[giveplayerid][pBank] += amount;
- format(string, sizeof(string), " You have transferred $%d to %s's account.", amount, GetPlayerNameEx(giveplayerid),giveplayerid);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have recieved $%d to into your account from %s.", amount, GetPlayerNameEx(playerid), playerid);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- format(string, sizeof(string), "[BANK] %s (IP:%s) has transferred $%d to %s (IP:%s).", GetPlayerNameEx(playerid), ip, amount, GetPlayerNameEx(giveplayerid), ipex);
- if(amount >= 500000)
- {
- ABroadCast(COLOR_YELLOW,string,2);
- }
- Log("logs/pay.log", string);
- PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount.");
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:togpr(playerid, params[])
- {
- if(PlayerInfo[playerid][pRadio] == 1)
- {
- if(gRadio[playerid] == 0)
- {
- new string[128];
- gRadio[playerid] = 1;
- format(string,sizeof(string),"You have switched your portable radio on, and it is now broadcasting at %d kHz.",PlayerInfo[playerid][pRadioFreq]);
- SendClientMessage(playerid,COLOR_WHITE,string);
- }
- else
- {
- gRadio[playerid] = 0;
- SendClientMessage(playerid,COLOR_WHITE,"You have switched off your portable radio.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You do not have a portable radio!");
- }
- return 1;
- }
- CMD:buyclothes(playerid, params[])
- {
- if(IsAtClothShop(playerid) || BusinessInfo[InsideBiz[playerid]][bType] == 2)
- {
- if(PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pDonator] == 0)
- {
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- }
- else
- {
- ShowModelSelectionMenu(playerid, skinlist, "Choose Skin");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You're not in a Clothing Shop!");
- }
- return 1;
- }
- CMD:buy(playerid, params[])
- {
- if(BusinessInfo[InsideBiz[playerid]][bType] == 1)
- {
- ShowPlayerDialogEx(playerid, STOREMENU1, DIALOG_STYLE_LIST, "24/7", "24/7 Items\n24/7 Vehicle Locks\nGang Vehicle Locks", "Select", "Cancel");
- }
- else if(BusinessInfo[InsideBiz[playerid]][bType] == 2)
- {
- if(PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pDonator] == 0)
- {
- ShowModelSelectionMenu(playerid, skinlist, "Choose Skin");
- }
- }
- else if(BusinessInfo[InsideBiz[playerid]][bType] == 3)
- {
- if(PlayerInfo[playerid][pConnectTime] >= 2 || PlayerInfo[playerid][pWepRes] >= 0)
- {
- ShowPlayerDialogEx(playerid, 5218, DIALOG_STYLE_LIST, "Guns list", "Shotgun ($800)\n9mm ($200)\nCounty Rifle ($1,200)\nHalf Vest ($200)", "Select", "Close");
- }
- else return SCM(playerid, COLOR_WHITE, "You are currently weapon restricted.");
- }
- else if(BusinessInfo[InsideBiz[playerid]][bType] == 4)
- {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- }
- else return SendClientMessage(playerid, COLOR_GRAD2, "You are not in any business!");
- return 1;
- }
- CMD:cellphonehelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- if(PlayerInfo[playerid][pNumber] > 0) {
- SendClientMessage(playerid, COLOR_WHITE,"*** HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** CELLPHONE *** /call 'eg: /call 911' /sms (/p)ickup (/h)angup /number");
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE,"You can buy a cell phone in any 24-7");
- }
- return 1;
- }
- CMD:call(playerid, params[])
- {
- new string[128], phonenumb;
- if(strval(params) < 1)
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /call [phonenumber]");
- phonenumb = strval(params);
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- SendClientMessage(playerid,COLOR_GREY,"You can't use your phone while in jail.");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_GREY,"You can't use your phone whilist restrained.");
- return 1;
- }
- if(PlayerInfo[playerid][pNumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone.");
- return 1;
- }
- if(PhoneOnline[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
- return 1;
- }
- format(string, sizeof(string), "* %s takes out a cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(phonenumb == 911)
- {
- if(PlayerInfo[playerid][pJailed] == 3 || PlayerInfo[playerid][pJailed] == 4)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Can't use this whilst prison!");
- return 1;
- }
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Which service do you require, police or paramedic?");
- Mobile[playerid] = 911;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- SetPlayerAttachedObject(playerid, 9, 330, 6);
- return 1;
- }
- if(phonenumb == PlayerInfo[playerid][pNumber])
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You just get a busy tone...");
- return 1;
- }
- if(Mobile[playerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're already in a call...");
- return 1;
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pNumber] == phonenumb && phonenumb != 0)
- {
- new giveplayerid = i;
- Mobile[playerid] = giveplayerid; //caller connecting
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PhoneOnline[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player's phone is switched off.");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(Mobile[giveplayerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You just get a busy tone...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(Spectating[giveplayerid]!=0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You just get a busy tone...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(Mobile[giveplayerid] == INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "Your mobile is ringing - type /p to answer it. [Caller ID: %s]", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s's phone begins to ring.", GetPlayerNameEx(i));
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up.");
- ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CellTime[playerid] = 1;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- SetPlayerAttachedObject(playerid, 9, 330, 6);
- return 1;
- }
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "Your call can't be completed as dialed, please check the number and try again.");
- return 1;
- }
- CMD:rt(playerid, params[])
- {
- new string[128], text[100];
- if(sscanf(params, "s[100]", text)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rt [text chat]");
- if(gPlayerLogged[playerid] == 0)
- return SendClientMessage(playerid, COLOR_GREY, " You haven't logged in yet!");
- if(GetPVarInt(playerid, "Injured") != 0||GetPVarInt(playerid, "Hospital")!=0)
- return SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
- return SendClientMessage(playerid,COLOR_GREY,"You can't use your phone while you're restrained.");
- if(PlayerInfo[playerid][pNumber] == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, " You don't have a cell phone...");
- if(PlayerInfo[playerid][pJailTime] > 0)
- return SendClientMessage(playerid,COLOR_GREY," You can't use your phone while in jail or prison!");
- if(PhoneOnline[playerid] > 0)
- return SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
- if(Spectating[playerid] == 0){
- format(string, sizeof(string), "* %s takes out a cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(LastSMS[playerid] == 555)
- return SendClientMessage(playerid, COLOR_GREY, "The number you have dialed has not been recognized.");
- foreach(Player, i) {
- if(PlayerInfo[i][pNumber] == LastSMS[playerid] && LastSMS[playerid] != 0) {
- new giveplayerid = i;
- Mobile[playerid] = giveplayerid; //caller connecting
- if(IsPlayerConnected(giveplayerid)) {
- if(PhoneOnline[giveplayerid] > 0 || PhonePrivacy[giveplayerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, "That player's phone is switched off.");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(PhonePrivacy[playerid] == 1)
- format(string, sizeof(string), "SMS: %s, Sender: Unknown.", text, GetPlayerNameEx(playerid), PlayerInfo[playerid][pNumber]);
- else format(string, sizeof(string), "SMS: %s, Sender: %s (%d)", text, GetPlayerNameEx(playerid), PlayerInfo[playerid][pNumber]);
- LastSMS[playerid] = PlayerInfo[giveplayerid][pNumber];
- LastSMS[giveplayerid] = PlayerInfo[playerid][pNumber];
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_WHITE, "Text message delivered.");
- format(string, sizeof(string), "~r~$-%d", txtcost);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid,-txtcost);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, " Message delivery failed...");
- return 1;
- }
- CMD:t(playerid, params[])
- {
- return cmd_sms(playerid, params);
- }
- CMD:txt(playerid, params[])
- {
- return cmd_sms(playerid, params);
- }
- CMD:sms(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You haven't logged in yet!");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") != 0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- return 1;
- }
- if(PlayerTied[playerid] != 0 || PlayerCuffed[playerid] != 0)
- {
- SendClientMessage(playerid,COLOR_GREY,"You can't use your phone while you're restrained.");
- return 1;
- }
- new string[128], phonenumb, text[100];
- if(sscanf(params, "ds[100]", phonenumb, text)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/t)ext [phonenumber] [text chat]");
- if(PlayerInfo[playerid][pNumber] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You don't have a cell phone...");
- return 1;
- }
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- SendClientMessage(playerid,COLOR_GREY," You can't use your phone while in jail or prison!");
- return 1;
- }
- if(PhoneOnline[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your phone is off.");
- return 1;
- }
- if(Spectating[playerid]==0)
- {
- format(string, sizeof(string), "* %s takes out a cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(phonenumb == 555)
- {
- SendClientMessage(playerid, COLOR_GREY, "The number you have dialed has not been recognized.");
- return 1;
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pNumber] == phonenumb && phonenumb != 0)
- {
- new giveplayerid = i;
- Mobile[playerid] = giveplayerid; //caller connecting
- if(IsPlayerConnected(giveplayerid)) {
- if(giveplayerid != INVALID_PLAYER_ID) {
- if(PhoneOnline[giveplayerid] > 0) {
- SendClientMessage(playerid, COLOR_GREY, "That player's phone is switched off.");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(PhonePrivacy[playerid] == 1)
- format(string, sizeof(string), "SMS: %s, Sender: Unknown.", text,GetPlayerNameEx(playerid),PlayerInfo[playerid][pNumber]);
- else format(string, sizeof(string), "SMS: %s, Sender: %s (%d)", text,GetPlayerNameEx(playerid),PlayerInfo[playerid][pNumber]);
- LastSMS[playerid] = PlayerInfo[giveplayerid][pNumber];
- LastSMS[giveplayerid] = PlayerInfo[playerid][pNumber];
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_WHITE, "Text message delivered.");
- format(string, sizeof(string), "~r~$-%d", txtcost);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid,-txtcost);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- }
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, " Message delivery failed...");
- return 1;
- }
- CMD:p(playerid, params[])
- {
- new string[128];
- if(Mobile[playerid] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " you're already on a call...");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- return 1;
- }
- foreach(Player, i)
- {
- if(Mobile[i] == playerid)
- {
- Mobile[playerid] = i; //caller connecting
- SendClientMessage(i, COLOR_GRAD2, " They picked up the call.");
- format(string, sizeof(string), "* %s answers their cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
- SetPlayerAttachedObject(playerid, 9, 330, 6);
- }
- }
- return 1;
- }
- CMD:h(playerid,params[])
- {
- new string[128];
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- return 1;
- }
- new caller = Mobile[playerid];
- if((IsPlayerConnected(caller) && caller != INVALID_PLAYER_ID)|| caller == 911 || caller == 912 || caller == 913 || caller == 914)
- {
- if(caller < 500)
- {
- SendClientMessage(caller, COLOR_GRAD2, " They hung up.");
- format(string, sizeof(string), "* %s puts away their cellphone.", GetPlayerNameEx(caller));
- ProxDetector(30.0, caller, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CellTime[caller] = 0;
- Mobile[caller] = INVALID_PLAYER_ID;
- }
- CellTime[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, " You hung up.");
- format(string, sizeof(string), "* %s puts away their cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Mobile[playerid] = INVALID_PLAYER_ID;
- CellTime[playerid] = 0;
- SetPlayerSpecialAction(caller, SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(caller, 9);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 9);
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD2, " Your phone is in your pocket.");
- return 1;
- }
- CMD:number(playerid, params[]) {
- if(PlayerInfo[playerid][pPhoneBook] == 1) {
- new
- iTarget;
- if(sscanf(params, "u", iTarget)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /number [playerid/partofname]");
- }
- else if(IsPlayerConnected(iTarget)) {
- new
- szNumber[16 + MAX_PLAYER_NAME];
- format(szNumber, sizeof(szNumber), "* %s (%i)", GetPlayerNameEx(iTarget), PlayerInfo[iTarget][pNumber]);
- SendClientMessage(playerid, COLOR_GRAD1, szNumber);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You don't have a phone book.");
- return 1;
- }
- CMD:dice(playerid, params[])
- {
- new string[128];
- new dice = random(6)+1;
- if(PlayerInfo[playerid][pDice])
- {
- format(string, sizeof(string), "* %s rolls a dice that lands on %d.", GetPlayerNameEx(playerid),dice);
- ProxDetector(5.0, playerid, string, COLOR_NG,COLOR_NG,COLOR_NG,COLOR_NG,COLOR_NG);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a dice.");
- return 1;
- }
- return 1;
- }
- CMD:music(playerid, params[])
- {
- if(PlayerInfo[playerid][pCDPlayer])
- {
- new choice[32];
- if(sscanf(params, "s[32]", choice))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /music [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: On, Off, Next");
- return 1;
- }
- if(strcmp(choice,"on",true) == 0)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~CD Player On", 5000, 5);
- new channel = Music[playerid];
- PlayerPlaySound(playerid, Songs[channel][0], 0.0, 0.0, 0.0);
- }
- else if(strcmp(choice,"off",true) == 0)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~CD Player Off", 5000, 5);
- PlayerFixRadio(playerid);
- }
- else if(strcmp(choice,"next",true) == 0)
- {
- if(Music[playerid] == 0) { Music[playerid] = 1; }
- else if(Music[playerid] == 1) { Music[playerid] = 2; }
- else if(Music[playerid] == 2) { Music[playerid] = 3; }
- else if(Music[playerid] == 3) { Music[playerid] = 4; }
- else if(Music[playerid] == 4) { Music[playerid] = 5; }
- else if(Music[playerid] == 5) { Music[playerid] = 6; }
- else if(Music[playerid] == 6) { Music[playerid] = 0; }
- new channel = Music[playerid];
- PlayerPlaySound(playerid, Songs[channel][0], 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Unknown music command!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a CD-Player!");
- return 1;
- }
- return 1;
- }
- CMD:colorcar(playerid, params[]) {
- if(!IsPlayerInAnyVehicle(playerid)) {
- return SendClientMessage(playerid, COLOR_GRAD2, "You're not in a vehicle.");
- }
- else if(PlayerInfo[playerid][pSpraycan] == 0) {
- return SendClientMessage(playerid, COLOR_GRAD2, "Your spraycan is empty.");
- }
- new
- iVeh = GetPlayerVehicleID(playerid);
- if(IsAnAmbulance(iVeh) || IsACopCar(iVeh) || IsAFBICar(iVeh) || IsAGovCar(iVeh) || IGMAVeh(iVeh)) {
- return SendClientMessage(playerid, COLOR_GREY, "You can't paint faction vehicles.");
- }
- new
- iColors[2],
- iPlayerVeh;
- if(sscanf(params, "ii", iColors[0], iColors[1])) {
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /colorcar [ID 1] [ID 2]. Colors must be an ID.");
- }
- else if(!(0 <= iColors[0] <= 255 && 0 <= iColors[1] <= 255)) {
- return SendClientMessage(playerid, COLOR_GRAD2, "Invalid colour specified (IDs start at 0, and end at 255).");
- }
- foreach(Player, i) {
- iPlayerVeh = GetPlayerVehicle(i, iVeh);
- if(iPlayerVeh != -1) {
- if(i == playerid) PlayerVehicleInfo[playerid][iPlayerVeh][pvColor1] = iColors[0], PlayerVehicleInfo[playerid][iPlayerVeh][pvColor2] = iColors[1];
- else return SendClientMessage(playerid,COLOR_GREY,"You can't spray other people's vehicles.");
- }
- }
- new
- szMessage[60];
- PlayerInfo[playerid][pSpraycan]--;
- format(szMessage, sizeof(szMessage), "You have changed the colors of your vehicle to ID %d, %d.", iColors[0], iColors[1]);
- SendClientMessage(playerid, COLOR_GRAD2, szMessage);
- return ChangeVehicleColor(iVeh, iColors[0], iColors[1]);
- }
- CMD:paintcar(playerid, params[]) {
- if(isnull(params)) {
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /paintcar [0-6] (3 to remove a paintjob)");
- }
- else if(!IsPlayerInAnyVehicle(playerid)) {
- return SendClientMessage(playerid, COLOR_GRAD2, "You're not in a vehicle.");
- }
- else if(PlayerInfo[playerid][pSpraycan] == 0) {
- return SendClientMessage(playerid, COLOR_GRAD2, "Your spraycan is empty.");
- }
- new
- iVeh = GetPlayerVehicleID(playerid),
- iPaintID = strval(params),
- iPlayerVeh;
- if(IsAnAmbulance(iVeh) || IsACopCar(iVeh) || IsAFBICar(iVeh) || IsAGovCar(iVeh) || IGMAVeh(iVeh)) {
- return SendClientMessage(playerid, COLOR_GREY, "You can't paint faction vehicles.");
- }
- else if(!(0 <= iPaintID <= 6)) {
- return SendClientMessage(playerid, COLOR_GRAD2, "The specified paint job ID must be between 0 and 6.");
- }
- foreach(Player, i) {
- iPlayerVeh = GetPlayerVehicle(i, iVeh);
- if(iPlayerVeh != -1) {
- if(i == playerid) PlayerVehicleInfo[playerid][iPlayerVeh][pvPaintJob] = iPaintID;
- else return SendClientMessage(playerid,COLOR_GREY,"You can't spray other people's vehicles.");
- }
- }
- ChangeVehiclePaintjob(iVeh, iPaintID);
- PlayerInfo[playerid][pSpraycan]--;
- return SendClientMessage(playerid, COLOR_GRAD2, "You have successfully applied this paint job to your vehicle.");
- }
- CMD:tie(playerid, params[])
- {
- if(PlayerInfo[playerid][pRope] > 0)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tie [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerTied[giveplayerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " Player already Tied!");
- return 1;
- }
- if(PlayerCuffed[giveplayerid] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can't tie a cuffed/tazed player.");
- if(PlayerInfo[giveplayerid][pJailed] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't tie a prisoned player.");
- return 1;
- }
- if(PlayerInfo[playerid][pRope] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have any rope left.");
- }
- else
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- new car = GetPlayerVehicleID(playerid);
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't tie up yourself!"); return 1; }
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
- {
- if(PlayerCuffed[giveplayerid] == 1 || PlayerCuffed[giveplayerid] == 2) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this right now.");
- return 1;
- }
- format(string, sizeof(string), "* You were tied up by %s, till untie.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You tied %s up, till untie.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s ties %s up, so he wont go anywhere.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~r~Tied", 2500, 3);
- SetPVarInt(giveplayerid, "IsFrozen", 1);
- TogglePlayerControllable(giveplayerid, 0);
- PlayerTied[giveplayerid] = 1;
- PlayerInfo[playerid][pRope]--;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Player not in your Car, or you're not the Driver!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a Rope!");
- }
- return 1;
- }
- CMD:untie(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /untie [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't Untie yourself!"); return 1; }
- if(PlayerCuffed[giveplayerid] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can't untie a cuffed/tazed player.");
- if(PlayerTied[giveplayerid])
- {
- DeletePVar(giveplayerid, "IsFrozen");
- format(string, sizeof(string), "* You were untied by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You untied %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(giveplayerid, "~g~Untied", 2500, 3);
- TogglePlayerControllable(giveplayerid, 1);
- PlayerTied[giveplayerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player isn't Tied up!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- return 1;
- }
- CMD:usecigar(playerid, params[])
- {
- if(PlayerInfo[playerid][pCigar] > 0)
- {
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- new string[128];
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
- format(string, sizeof(string), "* %s takes out a cigar and lights it.", GetPlayerNameEx(playerid));
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pCigar]--;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any cigars, buy some from the 24/7!");
- return 1;
- }
- }
- CMD:usesprunk(playerid, params[])
- {
- if(PlayerInfo[playerid][pSprunk] > 0) {
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
- return SendClientMessage(playerid, COLOR_WHITE, "You must be on foot in order to drink sprunk.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this whilst in a vehicle.");
- if(GetPlayerState(playerid) == PLAYER_STATE_ENTER_VEHICLE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_ENTER_VEHICLE_PASSENGER || GetPlayerState(playerid) == PLAYER_STATE_EXIT_VEHICLE)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this whilst in a vehicle.");
- new string[128];
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK);
- format(string, sizeof(string), "* %s opens a can of sprunk.", GetPlayerNameEx(playerid));
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "UsingSprunk", 1);
- PlayerInfo[playerid][pSprunk]--;
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You don't have any sprunk, buy some from the 24/7!");
- }
- CMD:pr(playerid, params[])
- {
- if(PlayerInfo[playerid][pRadio] == 1)
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pr [chat]");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: Type /setfreq to set the frequency of your portable radio.");
- return 1;
- }
- if(PlayerInfo[playerid][pRadioFreq] >= 1 || PlayerInfo[playerid][pRadioFreq] <= -1)
- {
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- return 1;
- }
- RadioBroadCast(playerid, params);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "The frequency of your radio is set to 0, you can't broadcast over that frequency.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You do not have a portable radio!");
- }
- return 1;
- }
- CMD:setfreq(playerid, params[])
- {
- new string[128], frequency;
- if(sscanf(params, "d", frequency))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setfreq [frequency]");
- SendClientMessage(playerid, COLOR_GRAD2, "HINT: Set the frequency of your radio to 0 if you don't want to hear anything.");
- return 1;
- }
- if(frequency > 9999999 || frequency < -9999999) { SendClientMessage(playerid, COLOR_GREY, "Frequency can't be lower than -9999999 or higher than 9999999!"); return 1; }
- if(PlayerInfo[playerid][pRadio] == 1)
- {
- PlayerInfo[playerid][pRadioFreq] = frequency;
- format(string, sizeof(string), "You have set the frequency of your portable radio to %d kHz.",frequency);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You do not have a portable radio!");
- }
- return 1;
- }
- CMD:noooc(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(!noooc)
- {
- noooc = 1;
- SendClientMessageToAllEx(COLOR_GRAD2, " OOC chat channel disabled by an Admin!");
- }
- else
- {
- noooc = 0;
- SendClientMessageToAllEx(COLOR_GRAD2, " OOC chat channel enabled by an Admin!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:o(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- return 1;
- }
- if((noooc) && PlayerInfo[playerid][pAdmin] < 1 && EventKernel[EventCreator] != playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin!");
- return 1;
- }
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/o)oc [ooc chat]");
- else if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- format(string, sizeof(string), "(( Admin %s: %s ))", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_OOC,string);
- }
- return 1;
- }
- CMD:eventhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_GRAD4,"*** EVENT HELP *** type a command for more information");
- SendClientMessage(playerid, COLOR_WHITE,"*** EVENT HELP *** /seteventpos /seteventinfo /startevent /lockevent /endevent /announceevent /beginevent");
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- }
- return 1;
- }
- CMD:eventstaff(playerid, params[])
- {
- if(PlayerInfo[ playerid ][ pAdmin ] >= 1)
- {
- if(EventKernel[EventJoinStaff] == 1) {
- for(new i; i < sizeof(EventKernel[EventStaff]); i++) if(EventKernel[EventStaff][i] == 999) {
- SetPVarInt(playerid, "EventToken", 1);
- GetPlayerHealth(playerid, EventFloats[playerid][4]);
- GetPlayerArmour(playerid, EventFloats[playerid][5]);
- EventLastVW[playerid] = GetPlayerVirtualWorld(playerid);
- EventLastInt[playerid] = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, EventFloats[playerid][1], EventFloats[playerid][2], EventFloats[playerid][3]);
- GetPlayerFacingAngle(playerid, EventFloats[playerid][0]);
- SetPlayerPos(playerid, EventKernel[ EventPositionX ], EventKernel[ EventPositionY ], EventKernel[ EventPositionZ ]);
- SetPlayerInterior(playerid, EventKernel[ EventInterior ]);
- SetPlayerHealth(playerid, 999999);
- SetPlayerVirtualWorld(playerid, EventKernel[ EventWorld ]);
- GivePlayerValidAdminWeapon(playerid, 38, 60000);
- EventKernel[EventStaff][i] = playerid;
- return SendClientMessage(playerid, COLOR_WHITE, "You have joined the event staff.");
- }
- SendClientMessage(playerid, COLOR_GRAD2, "Unable to join the event staff, max is 5.");
- }
- }
- return 1;
- }
- CMD:seteventpos(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- {
- new string[128];
- GetPlayerPos(playerid, EventKernel[EventPositionX], EventKernel[EventPositionY], EventKernel[EventPositionZ]);
- EventKernel[EventInterior] = GetPlayerInterior(playerid);
- EventKernel[EventWorld] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event position, type /seteventinfo to change the event properties.");
- EventKernel[EventJoinStaff] = 1;
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has started an event, type /eventstaff if you want to be in the event staff.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not making an event, or you're not the correct admin level.");
- }
- }
- return 1;
- }
- CMD:seteventinfo(playerid, params[])
- {
- if(PlayerInfo[ playerid ][ pAdmin ] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- { // No VIP yet
- //SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventtype /editevent /seteventviponly (once ready, type /startevent)");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventtype /editevent (once ready, type /startevent)");
- return 1;
- }
- }
- return 1;
- }
- CMD:atip(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- new
- iTarget;
- if(sscanf(params, "u", iTarget))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /atip [playerid]");
- if(iTarget == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- if(playerTabbedTime[iTarget] <= 0)
- return SendClientMessage(playerid, COLOR_GREY, "The specified player is not currently tabbed, you can just teleport them.");
- playerTabbedTime[iTarget] = 3599;
-
- new
- szMessage[86];
- format(szMessage, sizeof(szMessage), "You have teleported %s away for alt-tabbing in public area(s).", GetPlayerNameEx(iTarget));
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- return 1;
- }
- CMD:seteventtype(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /seteventtype [type]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: DM, TDM, Zombie");
- return 1;
- }
- if(strcmp(params,"dm",true) == 0)
- {
- EventKernel[ EventType ] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event type to DM.");
- }
- else if(strcmp(params,"tdm",true) == 0)
- {
- EventKernel[ EventType ] = 2;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event type to TDM.");
- }
- else if(strcmp(params,"zombie",true) == 0)
- {
- EventKernel[ EventType ] = 4;
- SendClientMessageEx(playerid, COLOR_WHITE, "You have sucessfully adjusted the event type to Zombie Event.");
- }
- /*else if(strcmp(params,"race",true) == 0)
- {
- EventKernel[ EventType ] = 3;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event type to Race.");
- }*/
- else if(strcmp(params,"none",true) == 0)
- {
- EventKernel[ EventType ] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event type to None.");
- }
- }
- }
- return 1;
- }
- CMD:editevent(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- {
- new choice[32], opstring[64];
- if(EventKernel[EventType] == 1)
- {
- if(sscanf(params, "s[32]S[64]", choice, opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Jointext, Limit, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5, Heal, Anims");
- return 1;
- }
- }
- else if(EventKernel[EventType] == 2)
- {
- if(sscanf(params, "s[32]S[64]", choice, opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Jointext, Limit, Team1Skin, Team2Skin, Team1Color, Team2Color");
- SendClientMessage(playerid, COLOR_GREY, "Team1Spawn, Team2Spawn, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5, Heal, Anims");
- return 1;
- }
- }
- /*else if(EventKernel[EventType] == 3)
- {
- if(sscanf(params, "s[32]S("")[64]", choice, opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Jointext, Limit, Health, Hours, CheckPoints, RaceType(Future Development), OnFoot(0/1)");
- return 1;
- }
- }*/
- else if(EventKernel[EventType] == 4)
- {
- if(sscanf(params, "s[32]S[64]", choice, opstring))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /editevent [name]");
- SendClientMessageEx(playerid, COLOR_GREY, "Available names: Jointext, Limit, Health, Armor, Gun1, Gun2, Gun3, Gun4, Gun5");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to set the event type first!");
- return 1;
- }
- if(strcmp(choice, "jointext",true) == 0)
- {
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent jointext [text]");
- return 1;
- }
- strmid(EventKernel[EventInfo], opstring, 0, strlen(opstring), 64);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event join text.");
- }
- else if(strcmp(choice, "health", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 1 && EventKernel[EventType] != 4 && EventKernel[EventType] != 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent health [health]");
- return 1;
- }
- new Float: health;
- health = floatstr(opstring);
- EventKernel[EventHealth] = health;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event health.");
- }
- else if(strcmp(choice, "armor", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 4 && EventKernel[EventType] != 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent armor [armor]");
- return 1;
- }
- new Float: armor;
- armor = floatstr(opstring);
- EventKernel[EventArmor] = armor;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event armor.");
- }
- else if(strcmp(choice, "team1skin", true) == 0)
- {
- if(EventKernel[EventType] != 2)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent team1skin [skinid]");
- return 1;
- }
- new skin;
- skin = strval(opstring);
- EventKernel[EventTeamSkin][0] = skin;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event team 1 skin.");
- }
- else if(strcmp(choice, "team2skin", true) == 0)
- {
- if(EventKernel[EventType] != 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent team2skin [skinid]");
- return 1;
- }
- new skin;
- skin = strval(opstring);
- EventKernel[EventTeamSkin][1] = skin;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event team 2 skin.");
- }
- else if(strcmp(choice, "team1color", true) == 0)
- {
- if(EventKernel[EventType] != 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!strlen(opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent team1color [color]");
- SendClientMessage(playerid, COLOR_GREY, "black | white | blue | red | green | purple | yellow | lightblue |");
- SendClientMessage(playerid, COLOR_GREY, "darkgreen | darkblue | darkgrey | brown | darkbrown | darkred | pink ");
- return 1;
- }
- EventKernel[EventTeamColor][0] = GetColorCode(opstring);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event team 1 color.");
- }
- else if(strcmp(choice, "team2color", true) == 0)
- {
- if(EventKernel[EventType] != 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!strlen(opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent team2color [color]");
- SendClientMessage(playerid, COLOR_GREY, "black | white | blue | red | green | purple | yellow | lightblue |");
- SendClientMessage(playerid, COLOR_GREY, "darkgreen | darkblue | darkgrey | brown | darkbrown | darkred | pink ");
- return 1;
- }
- EventKernel[EventTeamColor][1] = GetColorCode(opstring);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event team 2 color.");
- }
- else if(strcmp(choice, "team1spawn", true) == 0)
- {
- if(EventKernel[EventType] != 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- GetPlayerPos(playerid, EventKernel[ EventTeamPosX1 ], EventKernel[ EventTeamPosY1 ], EventKernel[ EventTeamPosZ1 ]);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted team 1's spawn position.");
- }
- else if(strcmp(choice, "team2spawn", true) == 0)
- {
- if(EventKernel[EventType] != 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This feature is not available for this event type.");
- return 1;
- }
- GetPlayerPos(playerid, EventKernel[ EventTeamPosX2 ], EventKernel[ EventTeamPosY2 ], EventKernel[ EventTeamPosZ2 ]);
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted team 2's spawn position.");
- }
- else if(strcmp(choice, "limit", true) == 0)
- {
- if(EventKernel[EventTime] != 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "This feature is not available for this event, everyone is free to join. If you want to enable this please set the hours to 0.");
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent limit [limit 0-60]");
- return 1;
- }
- new limit;
- limit = strval(opstring);
- if(limit < 0 || limit > 60) return SendClientMessage(playerid, COLOR_RED, "You can't adjust the event limit higher than 60 or below 0");
- EventKernel[EventLimit] = limit;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the players in event limit.");
- }
- else if(strcmp(choice, "heal", true) == 0)
- {
- if(EventKernel[EventTime] != 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "This feature is not available for this event, everyone is free to join. If you want to enable this please set the hours to 0.");
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent heal [1/2]");
- return 1;
- }
- new heal;
- heal = strval(opstring);
- if(heal < 0 || heal > 2) return SendClientMessage(playerid, COLOR_RED, "You can't adjust the event heal higher than 1 or below 2");
- EventKernel[EventHeal] = heal;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event heal.");
- }
- else if(strcmp(choice, "anims", true) == 0)
- {
- if(EventKernel[EventTime] != 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "This feature is not available for this event, everyone is free to join. If you want to enable this please set the hours to 0.");
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent anims [1/2]");
- return 1;
- }
- new heal;
- heal = strval(opstring);
- if(heal < 0 || heal > 2) return SendClientMessage(playerid, COLOR_RED, "You can't adjust the event anims higher than 1 or below 2");
- EventKernel[EventAnim] = heal;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event anim.");
- }
- /*else if(strcmp(choice, "hours", true) == 0)
- {
- if(EventKernel[EventType] != 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This feature is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent hours [hours 0-5]");
- return 1;
- }
- new hours, seconds;
- hours = strval(opstring);
- if(hours < 0 || hours > 5) return SendClientMessage(playerid, COLOR_RED, "You can't adjust the event hours higher than 5 or below 0");
- seconds = hours*3600;
- EventKernel[EventTime] = seconds;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event hours that the event will be active for, timer will start once you fully start the event.");
- SendClientMessage(playerid, COLOR_GREY, "NOTE: If you set the event hours to 0 the event will finish once the last racer goes into the last checkpoint.");
- if(hours != 0)
- SendClientMessage(playerid, COLOR_YELLOW, "The feature players in event limit(/editevent limit) is now disabled since you changed the hours more than 0.");
- }
- else if(strcmp(choice, "checkpoints", true) == 0)
- {
- if(EventKernel[EventType] != 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This feature is not available for this event type.");
- return 1;
- }
- ConfigEventCPs[playerid][0] = 1;
- ConfigEventCPs[playerid][1] = 0;
- ConfigEventCPs[playerid][2] = 0;
- ConfigEventCPId[playerid] = 0;
- new string[279];
- format(string,sizeof(string),"Welcome to the race checkpoint configuration system!\nThis is a quick guide on the steps you need to follow to successfully get the race checkpoints done.\nFirst and most important you need to remember to make the checkpoints in order, from the start line to the end line.");
- ShowPlayerDialogEx(playerid,RCPINTRO,DIALOG_STYLE_MSGBOX,"Race Checkpoints Introduction",string,"Next","Skip");
- }
- else if(strcmp(choice, "onfoot", true) == 0)
- {
- if(EventKernel[EventFootRace])
- {
- EventKernel[EventFootRace] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You have toggled off the onfoot feature, people can use vehicles(Future development, please don't use not working proprely)");
- }
- else {
- EventKernel[EventFootRace] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have toggled on the onfoot feature, people can't use vehicles.");
- }
- }*/
- else if(strcmp(choice, "gun1", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 4 && EventKernel[EventType] != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent gun1 [weaponid]");
- return 1;
- }
- new weapon;
- weapon = strval(opstring);
- if(weapon == 16 || weapon == 18 || weapon == 35 || weapon == 37 || weapon == 38 || weapon == 39) return SendClientMessage(playerid, COLOR_WHITE, "This weapon can't be set as an event weapon!");
- EventKernel[EventWeapons][0] = weapon;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event gun 1.");
- }
- else if(strcmp(choice, "gun2", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 4 && EventKernel[EventType] != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent gun1 [weaponid]");
- return 1;
- }
- new weapon;
- weapon = strval(opstring);
- if(weapon == 16 || weapon == 18 || weapon == 35 || weapon == 37 || weapon == 38 || weapon == 39) return SendClientMessage(playerid, COLOR_WHITE, "This weapon can't be set as an event weapon!");
- EventKernel[EventWeapons][1] = weapon;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event gun 2.");
- }
- else if(strcmp(choice, "gun3", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 4 && EventKernel[EventType] != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent gun1 [weaponid]");
- return 1;
- }
- new weapon;
- weapon = strval(opstring);
- if(weapon == 16 || weapon == 18 || weapon == 35 || weapon == 37 || weapon == 38 || weapon == 39) return SendClientMessage(playerid, COLOR_WHITE, "This weapon can't be set as an event weapon!");
- EventKernel[EventWeapons][2] = weapon;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event gun 3.");
- }
- else if(strcmp(choice, "gun4", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 4 && EventKernel[EventType] != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent gun1 [weaponid]");
- return 1;
- }
- new weapon;
- weapon = strval(opstring);
- if(weapon == 35 || weapon == 37 || weapon == 38) return SendClientMessage(playerid, COLOR_WHITE, "This weapon can't be set as an event weapon!");
- EventKernel[EventWeapons][3] = weapon;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event gun 4.");
- }
- else if(strcmp(choice, "gun5", true) == 0)
- {
- if(EventKernel[EventType] != 2 && EventKernel[EventType] != 4 && EventKernel[EventType] != 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This name is not available for this event type.");
- return 1;
- }
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /editevent gun1 [weaponid]");
- return 1;
- }
- new weapon;
- weapon = strval(opstring);
- if(weapon == 35 || weapon == 37 || weapon == 38) return SendClientMessage(playerid, COLOR_WHITE, "This weapon can't be set as an event weapon!");
- EventKernel[EventWeapons][4] = weapon;
- SendClientMessage(playerid, COLOR_WHITE, "You have sucessfully adjusted the event gun 5.");
- }
- }
- }
- return 1;
- }
- CMD:playersleft(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128], Float:playerhp, Float:playerarmor;
- new playercount = 0;
- foreach(Player, i)
- {
- if(GetPVarInt(i, "EventToken") == 1)
- {
- GetPlayerArmour(playerid, playerarmor);
- GetPlayerHealth(playerid, playerhp);
- format(string, sizeof(string), "ID: %d | Name: %s | Health: %.1f | Armor: %.1f", i, GetPlayerNameEx(i), playerhp, playerarmor);
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- playercount++;
- }
- }
- if(playercount > 0)
- {
- format(string, sizeof(string), "Players Left: %d", playercount);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- return 1;
- }
- CMD:endevent(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3 || EventKernel[EventCreator] == playerid)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(EventKernel[EventStatus] != 0)
- {
- foreach(Player, i)
- {
- if(GetPVarInt(i, "EventToken") == 1) {
- if(EventKernel[EventType] == 3) {
- DisablePlayerCheckpoint(i);
- } else {
- if(EventKernel[EventType] == 4)
- {
- if(GetPVarType(i, "pEventZombie")) DeletePVar(i, "pEventZombie");
- }
- ResetPlayerWeapons(i);
- SetPlayerWeapons(i);
- SetPlayerToTeamColor(i);
- EventTeam[i] = -1;
- SetPlayerSkin(i, PlayerInfo[i][pSkin]);
- SetPlayerPos(i,EventFloats[i][1],EventFloats[i][2],EventFloats[i][3]);
- SetPlayerVirtualWorld(i, EventLastVW[i]);
- SetPlayerFacingAngle(i, EventFloats[i][0]);
- SetPlayerInterior(i,EventLastInt[i]);
- SetPlayerHealth(i, EventFloats[i][4]);
- SetPlayerArmourEx(i, EventFloats[i][5]);
- for(new d = 0; d < 6; d++)
- {
- EventFloats[i][d] = 0.0;
- }
- EventLastVW[i] = 0;
- EventLastInt[i] = 0;
- }
- SetPVarInt(i, "EventToken", 0);
- SendClientMessage(i, COLOR_YELLOW, "You have been removed from the event as it has been terminated by an Admin.");
- }
- }
- EventKernel[EventPositionX] = 0;
- EventKernel[EventPositionY] = 0;
- EventKernel[EventPositionZ] = 0;
- EventKernel[EventTeamPosX1] = 0;
- EventKernel[EventTeamPosY1] = 0;
- EventKernel[EventTeamPosZ1] = 0;
- EventKernel[EventTeamPosX2] = 0;
- EventKernel[EventTeamPosY2] = 0;
- EventKernel[EventTeamPosZ2] = 0;
- EventKernel[EventStatus] = 0;
- EventKernel[EventType] = 0;
- EventKernel[EventHealth] = 0;
- EventKernel[EventLimit] = 0;
- EventKernel[EventPlayers] = 0;
- EventKernel[EventWeapons][0] = 0;
- EventKernel[EventWeapons][1] = 0;
- EventKernel[EventWeapons][2] = 0;
- EventKernel[EventWeapons][3] = 0;
- EventKernel[EventWeapons][4] = 0;
- EventKernel[EventCreator] = 999;
- EventKernel[VipOnly] = 0;
- EventKernel[EventJoinStaff] = 0;
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* The event has been finished by an Admin.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "There isn't an active event at the moment.");
- }
- }
- return 1;
- }
- CMD:startevent(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4){
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- if(EventKernel[EventStatus] == 0) {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(EventKernel[EventHealth] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You did not set the event health!");
- return 1;
- }
- if((EventKernel[EventPositionX] == 0 || EventKernel[EventPositionY] == 0 || EventKernel[EventPositionZ] == 0) && EventKernel[EventType] != 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You did not set the event position!");
- return 1;
- }
- if((EventKernel[EventTeamPosX1] == 0 || EventKernel[EventTeamPosY1] == 0 || EventKernel[EventTeamPosZ1] == 0) && EventKernel[EventType] == 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You did not set team 1's spawn position!");
- return 1;
- }
- if((EventKernel[EventTeamPosX2] == 0 || EventKernel[EventTeamPosY2] == 0 || EventKernel[EventTeamPosZ2] == 0) && EventKernel[EventType] == 2)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You did not set team 2's spawn position!");
- return 1;
- }
- if(EventKernel[EventLimit] == 0)
- {
- EventKernel[EventLimit] = 60;
- }
- EventKernel[ EventStatus ] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have started an event, use /announceevent to announce the event to the whole server.");
- /*foreach(Player, i)
- {
- if(PlayerInfo[i][pDonator] >= 3)
- {
- SendClientMessage(i, COLOR_YELLOW, "* Gold+ VIP feature: An event has been started! /joinevent to join early");
- }
- }*/
- return 1;
- }
- /*else if(EventKernel[EventCreator] == playerid)
- {
- if(EventKernel[ EventHealth ] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You did not set the event health!");
- return 1;
- }
- if((EventKernel[ EventPositionX ] == 0 || EventKernel[ EventPositionY ] == 0 || EventKernel[ EventPositionZ ] == 0) && EventKernel[EventType] != 3)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You did not set the event position!");
- return 1;
- }
- if(EventKernel[ EventLimit ] == 0)
- {
- EventKernel[ EventLimit ] = 60;
- }
- EventKernel[ EventStartRequest ] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have requested the event to start, please wait til a Senior Admin approves it.");
- if(EventKernel[EventType] != 3)
- {
- format(string, sizeof(string), "Event Position: x:%f y:%f z:%f.", EventKernel[EventPositionX], EventKernel[EventPositionY], EventKernel[EventPositionZ]);
- ABroadCast(COLOR_GRAD2, string, 4);
- format(string, sizeof(string), "Event Jointext: %s EventLimit: %d.", EventKernel[EventInfo], EventKernel[EventLimit]);
- ABroadCast(COLOR_GRAD2, string, 4);
- format(string, sizeof(string), "Event Health: %f Event Armor: %f.", EventKernel[EventHealth], EventKernel[EventArmor]);
- ABroadCast(COLOR_GRAD2, string, 4);
- if(EventKernel[EventWeapons][0] != 0)
- {
- format(string, sizeof(string), "Event Gun1: %d.", EventKernel[EventWeapons][0]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- if(EventKernel[EventWeapons][1] != 0)
- {
- format(string, sizeof(string), "Event Gun2: %d.", EventKernel[EventWeapons][1]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- if(EventKernel[EventWeapons][2] != 0)
- {
- format(string, sizeof(string), "Event Gun3: %d.", EventKernel[EventWeapons][2]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- if(EventKernel[EventWeapons][3] != 0)
- {
- format(string, sizeof(string), "Event Gun4: %d.", EventKernel[EventWeapons][3]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- if(EventKernel[EventWeapons][4] != 0)
- {
- format(string, sizeof(string), "Event Gun5: %d.", EventKernel[EventWeapons][4]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- if(EventKernel[EventType] == 2)
- {
- format(string, sizeof(string), "Event Team 1 Color: %d Event Team 1 Skin: %d.", EventKernel[EventTeamColor][0], EventKernel[EventTeamSkin][0]);
- ABroadCast(COLOR_GRAD2, string, 4);
- format(string, sizeof(string), "Event Team 2 Color: %d Event Team 2 Skin: %d.", EventKernel[EventTeamColor][1], EventKernel[EventTeamSkin][1]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- }
- else {
- if(EventKernel[EventTime] != 0) {
- format(string, sizeof(string), "Event Jointext: %s EventTimeLimit: %d.", EventKernel[EventInfo], EventKernel[EventTime]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- else {
- format(string, sizeof(string), "Event Jointext: %s EventLimit: %d.", EventKernel[EventInfo], EventKernel[EventLimit]);
- ABroadCast(COLOR_GRAD2, string, 4);
- }
- ABroadCast(COLOR_GRAD2, "This is a race type event, to view the race checkpoints use /edit checkpoints", 4);
- }
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s would like to start the event, do you approve? /approveevent or /denyevent.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 4);
- }*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "There is already an active event (use /endevent).");
- }
- }
- return 1;
- }
- CMD:announceevent(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(EventKernel[ EventStatus ] == 1)
- {
- EventKernel[ EventStatus ] = 2;
- SendClientMessage(playerid, COLOR_GRAD2, "To lock the event use /lockevent");
- // NO VIP yet
- /*if(EventKernel[VipOnly] == 1) SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* A VIP only event has been started by an Admin, VIP's type /joinevent to participate.");
- else SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* An event has been started by an Admin, type /joinevent to participate.");*/
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* An event has been started by an Admin, type /joinevent to participate.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "There is already an active event (use /endevent).");
- }
- }
- return 1;
- }
- CMD:lockevent(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || EventKernel[EventCreator] == playerid)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(EventKernel[ EventStatus ] == 2)
- {
- if(EventKernel[EventType] == 3 && EventKernel[EventTime] != 0) return SendClientMessage(playerid, COLOR_RED, "ERROR: This feature is not available with the configuration setup for this event.");
- EventKernel[ EventStatus ] = 3;
- SendClientMessage(playerid, COLOR_GRAD2, "You have locked an event, use /beginevent to officially start the event.");
- SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* The event has been locked by an Admin.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "There is already an active event (use /endevent).");
- }
- }
- return 1;
- }
- CMD:beginevent(playerid, params[])
- {
- if(PlayerInfo[ playerid ][ pAdmin ] >= 4 || EventKernel[EventCreator] == playerid)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(EventKernel[EventStatus] == 3) {
- EventKernel[EventStatus] = 4;
- new zombiemade;
- foreach(Player, i) {
- if(GetPVarInt(i, "EventToken") == 1) {
- if(EventKernel[ EventType ] == 1) {
- SendClientMessage(i, COLOR_LIGHTBLUE, "GO! The Event has started.");
- SetPlayerHealth(i, EventKernel[EventHealth]);
- SetPlayerArmourEx(i, EventKernel[EventArmor]);
- for(new d = 0; d < sizeof(EventKernel[EventStaff]); d++) {
- if(i == EventKernel[EventStaff][d])
- SetPlayerHealth(i, 999999);
- }
- GivePlayerEventWeapons(i);
- }
- else if(EventKernel[EventType] == 2) {
- SendClientMessage(i, COLOR_LIGHTBLUE, "Go! The Event has started.");
- SetPlayerHealth(i, EventKernel[EventHealth]);
- SetPlayerArmourEx(i, EventKernel[EventArmor]);
- for(new d = 0; d < sizeof(EventKernel[EventStaff]); d++)
- {
- if(i == EventKernel[EventStaff][d])
- {
- SetPlayerHealth(i, 999999);
- }
- }
- GivePlayerEventWeapons(i);
- }
- }
- else if( EventKernel[ EventType ] == 4 )
- {
- if(zombiemade == 0)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "You are a zombie! Use /bite to infect others");
- SetPlayerHealth(playerid, 30);
- SetPlayerArmour(playerid, 0);
- SetPlayerSkin(playerid, 134);
- SetPlayerColor(playerid, 0x0BC43600);
- SetPVarInt(playerid, "pEventZombie", 1);
- ResetPlayerWeapons(playerid);
- zombiemade=1;
- }
- else
- {
- //GivePlayerEventWeapons( i );
- SendClientMessageEx( i, COLOR_LIGHTBLUE, "The Event has started, kill the zombies (green names!)" );
- SetPlayerHealth( i, EventKernel[ EventHealth ] );
- SetPlayerArmour( i, EventKernel[ EventArmor ] );
- GivePlayerEventWeapons( i );
- }
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "The event has now started. If you wish to join next time, please use /joinevent.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Use /lockevent first to lock the event, or /endevent to create a new event.");
- }
- }
- return 1;
- }
- CMD:bite(playerid, params[])
- {
- if(EventKernel[EventType] == 4 && (GetPVarInt(playerid, "EventToken") == 1) && GetPVarType(playerid, "pEventZombie"))
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- foreach(Player, i)
- {
- if((GetPVarInt(i, "EventToken") == 1) && !GetPVarType(i, "pEventZombie"))
- {
- if(IsPlayerInRangeOfPoint(i, 2, X, Y, Z))
- {
- new Float:hp, string[128];
- GetPlayerHealth(i, hp);
- SetPlayerHealth(i, hp-20);
- format(string, sizeof(string), "* %s clamps down onto %s's skin, biting into it.", GetPlayerNameEx(playerid), GetPlayerNameEx(i));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- //SendAudioToRange(65, 100, X, Y, Z, 5);
- return 1;
- }
- }
- }
- SendClientMessageEx(playerid, COLOR_GREY, "No one is near you to bite!");
- }
- return 1;
- }
- CMD:joinevent(playerid, params[]) {
- if(EventKernel[ EventStatus ] == 0)
- return SendClientMessage(playerid, COLOR_WHITE, "There are currently no active events.");
- if(AdminDuty[playerid] != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't join the event while you're on admin duty. Use /eventstaff or go off duty.");
- if(GetPVarInt(playerid, "EventToken") == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You're already in the event.");
- if(GetPVarInt(playerid, "PBM") > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- if(PlayerCuffed[playerid] >= 1 || PlayerInfo[playerid][pJailTime] > 0 || GetPVarInt(playerid, "Hospital") > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- if(PlayerInfo[playerid][pConnectTime] < 2)
- return SendClientMessage(playerid, COLOR_GRAD2, "Young padawan, you can't join an event before you've played 2 full hours due to the weapon restrictions.");
- if(EventKernel[EventPlayers] >= EventKernel[EventLimit] && EventKernel[EventTime] == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "This event has reached the max players limit.");
- if(EventKernel[ EventStatus ] == 2) {
- if(EventKernel[EventType] == 3)
- {
- // For down the road, racing
- }
- else
- {
- if(IsPlayerInAnyVehicle(playerid)) {
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't join while in a vehicle.");
- }
- SetPVarInt(playerid, "EventToken", 1);
- ResetPlayerWeapons(playerid);
- pTazer[playerid] = 0;
- GetPlayerHealth(playerid, EventFloats[playerid][4]);
- GetPlayerArmour(playerid, EventFloats[playerid][5]);
- EventLastVW[playerid] = GetPlayerVirtualWorld(playerid);
- EventLastInt[playerid] = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, EventFloats[playerid][1], EventFloats[playerid][2], EventFloats[playerid][3]);
- GetPlayerFacingAngle(playerid, EventFloats[playerid][0]);
- if(EventKernel[EventType] != 2)
- {
- SetPlayerPos(playerid, EventKernel[ EventPositionX ], EventKernel[ EventPositionY ], EventKernel[ EventPositionZ ]);
- }
- SetPlayerInterior(playerid, EventKernel[ EventInterior ]);
- SetPlayerVirtualWorld(playerid, EventKernel[ EventWorld ]);
- SendClientMessage(playerid, COLOR_WHITE, EventKernel[ EventInfo ]);
- SetPlayerHealth(playerid, EventKernel[ EventHealth ]);
- SetPlayerArmourEx(playerid, EventKernel[ EventArmor ]);
- SetPlayerVirtualWorld(playerid, 0);
- if(EventKernel[EventType] == 2)
- {
- SetPlayerSkin(playerid, EventKernel[EventTeamSkin][nextteam]);
- new color = EventKernel[EventTeamColor][nextteam];
- if(color==0) SetPlayerColor(playerid, 0x00000000);
- if(color==1) SetPlayerColor(playerid, 0xFFFFFF00);
- if(color==2) SetPlayerColor(playerid, 0x2641FE00);
- if(color==3) SetPlayerColor(playerid, 0xAA333300);
- if(color==16) SetPlayerColor(playerid, 0x33AA3300);
- if(color==5) SetPlayerColor(playerid, 0xC2A2DA00);
- if(color==6) SetPlayerColor(playerid, 0xFFFF0000);
- if(color==7) SetPlayerColor(playerid, 0x33CCFF00);
- //if(strcmp(clr, "navy", true)==0) color=94;
- //if(strcmp(clr, "beige", true)==0) color=102;
- if(color==51) SetPlayerColor(playerid, 0x2D6F0000);
- if(color==103) SetPlayerColor(playerid, 0x0B006F00);
- if(color==13) SetPlayerColor(playerid, 0x52525200);
- if(color==55) SetPlayerColor(playerid, 0xB46F0000);
- if(color==84) SetPlayerColor(playerid, 0x814F0000);
- if(color==74) SetPlayerColor(playerid, 0x750A0000);
- //if(strcmp(clr, "maroon", true)==0) color=115;
- if(color==126) SetPlayerColor(playerid, 0xFF51F100);
- if(nextteam == 0)
- {
- SetPlayerPos(playerid, EventKernel[EventTeamPosX1], EventKernel[EventTeamPosY1], EventKernel[EventTeamPosZ1]);
- }
- else
- {
- SetPlayerPos(playerid, EventKernel[EventTeamPosX2], EventKernel[EventTeamPosY2], EventKernel[EventTeamPosZ2]);
- }
- if(nextteam == 0) nextteam++;
- else if(nextteam == 1) nextteam--;
- }
- }
- EventKernel[EventPlayers] ++;
- if(EventKernel[EventPlayers] == EventKernel[EventLimit] && EventKernel[EventTime] == 0)
- {
- ABroadCast(COLOR_YELLOW, "The event has now reached the max players limit, you can now start it.", 2);
- }
- }
- else if(EventKernel[ EventStatus ] == 3)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The event is already locked. you're unable to join.");
- }
- else if(EventKernel[ EventStatus ] == 4)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The event is already started. you're unable to join.");
- }
- return 1;
- }
- CMD:quitevent(playerid, params[])
- {
- if(GetPVarInt(playerid, "EventToken") == 1) {
- if(EventKernel[ EventStatus ] == 1 || EventKernel[ EventStatus ] == 2)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't quit the event at this stage of the event.");
- return 1;
- }
- ResetPlayerWeapons(playerid);
- SetPVarInt(playerid, "EventToken", 0);
- SetPlayerWeapons(playerid);
- SetPlayerToTeamColor(playerid);
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerPos(playerid,EventFloats[playerid][1],EventFloats[playerid][2],EventFloats[playerid][3]);
- SetPlayerVirtualWorld(playerid, EventLastVW[playerid]);
- SetPlayerFacingAngle(playerid, EventFloats[playerid][0]);
- SetPlayerInterior(playerid,EventLastInt[playerid]);
- SetPlayerHealth(playerid, EventFloats[playerid][4]);
- SetPlayerArmourEx(playerid, EventFloats[playerid][5]);
- if(EventKernel[EventType] == 4)
- {
- if(GetPVarType(playerid, "pEventZombie")) DeletePVar(playerid, "pEventZombie");
- SetPlayerToTeamColor(playerid);
- }
- for(new i = 0; i < 6; i++) {
- EventFloats[playerid][i] = 0.0;
- }
- EventLastVW[playerid] = 0;
- EventLastInt[playerid] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have quit the event.");
- }
- return 1;
- }
- CMD:newb(playerid, params[]) {
- if(gPlayerLogged[playerid] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
- if((nonewbie) && PlayerInfo[playerid][pAdmin] < 1)
- return SendClientMessage(playerid, COLOR_GRAD2, "The newbie chat channel has been disabled by an Admin!");
- if(gNewbie[playerid] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You have the channel toggled, /tognewbie to re-enable!");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/newb)ie [text]");
- if(PlayerInfo[playerid][pNMute] == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You're muted from the newbie chat channel.");
- new
- string[128];
- if(NewbieTimer[playerid] > 0) {
- format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", NewbieTimer[playerid]);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] < 1)
- NewbieTimer[playerid] = 45;
- if(PlayerInfo[playerid][pHelper] == 1)
- format(string, sizeof(string), "** {33CCFF}Junior Helper{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pHelper] == 2)
- format(string, sizeof(string), "** {33CCFF}Senior Helper{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pHelper] == 3)
- format(string, sizeof(string), "** {33CCFF}Asst. Head Helper{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pHelper] == 4)
- format(string, sizeof(string), "** {33CCFF}Head Helper{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pOS] == 1)
- format(string, sizeof(string), "** {078C00}Old School{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pVintage] == 1)
- format(string, sizeof(string), "** {8cd11d}Vintage{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pFamed] == 1)
- format(string, sizeof(string), "** {FF8C00}Famed{7DAEFF} %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pAdmin] < 1)
- format(string, sizeof(string), "** Newbie %s: %s", GetPlayerNameEx(playerid), params);
- else if(PlayerInfo[playerid][pAdmin] >= 1)
- format(string, sizeof(string), "** %s{7DAEFF} %s: %s", GetAdminRank(playerid), GetPlayerNameEx(playerid), params);
-
- PlayerInfo[playerid][pNC]++;
- foreach(Player, n) {
- if(gNewbie[n] == 0)
- SendClientMessageEx(n, COLOR_NEWBIE, string);
- }
- return 1;
- }
- CMD:nonewbie(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- if(!nonewbie) {
- nonewbie = 1;
- SendClientMessageToAllEx(COLOR_GRAD2, "Newbie chat channel disabled by an Admin!");
- }
- else {
- nonewbie = 0;
- SendClientMessageToAllEx(COLOR_GRAD2, "Newbie chat channel enabled by an Admin!");
- }
- }
- else return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:nmute(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2) {
- new
- string[128],
- giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /nmute [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid)) {
- if(PlayerInfo[giveplayerid][pAdmin] >= 1)
- return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't /nmute admins");
- if(PlayerInfo[giveplayerid][pNMute] == 0) {
- PlayerInfo[giveplayerid][pNMute] = 1;
- PlayerInfo[giveplayerid][pNMuteTotal] += 1;
- format(string, sizeof(string), "AdmCmd: %s was muted from speaking in /newb by %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- Log("logs/admin.log", string);
- if(PlayerInfo[giveplayerid][pNMuteTotal] > 6) {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was banned by %s, reason: Excessive newbie chat mutes", GetPlayerNameEx(giveplayerid),playerip,GetPlayerNameEx(playerid));
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was banned, reason: Excessive newbie chat mutes.", GetPlayerNameEx(giveplayerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(giveplayerid);
- }
- SendClientMessage(giveplayerid, COLOR_WHITE, "Remember, the newbie chat channel is only for script/server related questions and may not be used for any other purpose, unless stated otherwise by an admin.");
- SendClientMessage(giveplayerid, COLOR_WHITE, "If you wish to be unmuted, you will be fined or jailed. Future abuse could result in increased punishment. If you feel this was in error, contact a Level 4+ Admin.");
- format(string, sizeof(string), "AdmCmd: %s was just muted from using Newbie Chat [/newb] due to misuse.", GetPlayerNameEx(giveplayerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- }
- else if(PlayerInfo[giveplayerid][pNMute] == 1) {
- ShowNMuteFine(giveplayerid);
- format(string, sizeof(string), "You offered %s an unmute from /newb.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- }
- }
- }
- else return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:nunmute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /nunmute [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pNMute] == 1)
- {
- format(string, sizeof(string), "AdmCmd: %s was unmuted from speaking in /newb by %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- Log("logs/admin.log", string);
- PlayerInfo[giveplayerid][pNMute] = 0;
- PlayerInfo[giveplayerid][pNMuteTotal]--;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED,"That player is not muted from /newb!");
- }
- }
- }
- return 1;
- }
- CMD:admute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /admute [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= 1)
- {
- return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't /admute admins");
- }
- if(PlayerInfo[giveplayerid][pADMute] == 0)
- {
- PlayerInfo[giveplayerid][pADMute] = 1;
- PlayerInfo[giveplayerid][pADMuteTotal] += 1;
- szAdvert[giveplayerid][0] = 0;
- format(string, sizeof(string), "AdmCmd: %s was muted from placing /ad's by %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/admin.log", string);
- ABroadCast(COLOR_LIGHTRED,string,1);
- if(PlayerInfo[giveplayerid][pADMuteTotal] > 6)
- {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was banned by %s, reason: Excessive advertisement mutes", GetPlayerNameEx(giveplayerid),playerip,GetPlayerNameEx(playerid));
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was banned, reason: Excessive advertisement mutes.", GetPlayerNameEx(giveplayerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(giveplayerid);
- }
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, "Remember, advertisements may only be used for IC purposes and may not be used for any other purpose, unless stated otherwise by an admin.");
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, "If you wish to be unmuted, you will be fined or jailed. Future abuse could result in increased punishment. If you feel this was in error, contact a Level 4+ Admin.");
- format(string, sizeof(string), "AdmCmd: %s was just muted from using Advertisements [/ad] due to misuse.", GetPlayerNameEx(giveplayerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- }
- else
- {
- ShowAdMuteFine(giveplayerid);
- format(string, sizeof(string), "You offered %s an unmute from /ad.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:adunmute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adunmute [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pADMute] == 1)
- {
- if(PlayerInfo[giveplayerid][pJailed] != 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You can't offer someone in jail/prison an unmute!");
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, "Sorry, you can't be unmuted from /ad while you're in jail/prison.");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was unmuted from /ad by %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- Log("logs/admin.log", string);
- PlayerInfo[giveplayerid][pADMute] = 0;
- PlayerInfo[giveplayerid][pADMuteTotal]--;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED,"That player is not muted from /newb!");
- }
- }
- }
- return 1;
- }
- CMD:setname(playerid, params[])
- {
- new string[128], giveplayerid, name[MAX_PLAYER_NAME];
- new playername[MAX_PLAYER_NAME];
- if(sscanf(params, "us[24]", giveplayerid, name)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setname [playerid/partofname] [newname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use /setname on an on-duty admin.");
- return 1;
- }
- if(strfind(params, "_", false) == -1)
- return SendClientMessage(playerid, COLOR_GREY, "The name must include an underscore ('_').");
- if(!doesAccountExist(name))
- {
- new
- newname[MAX_PLAYER_NAME + 10];
- GetPlayerName(giveplayerid, playername, sizeof(playername));
- format(newname, sizeof(newname), "users/%s.ini", name);
- if(PlayerInfo[giveplayerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], true) == 0)
- {
- strmid(HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], name, 0, strlen(name), 255);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner],HouseInfo[PlayerInfo[giveplayerid][pHouse]][hLevel],PlayerInfo[giveplayerid][pHouse]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[giveplayerid][pHouse]][hTextID], COLOR_HOUSEGREEN, string);
- }
- if(PlayerInfo[giveplayerid][pHouse2] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hOwner], true) == 0)
- {
- strmid(HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hOwner], name, 0, strlen(name), 255);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner],HouseInfo[PlayerInfo[giveplayerid][pHouse]][hLevel],PlayerInfo[giveplayerid][pHouse]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hTextID], COLOR_HOUSEGREEN, string);
- }
- if(PlayerInfo[giveplayerid][pDonator] >= 1)
- {
- new string2[128];
- format(string2, sizeof(string2), "[DONATOR NAMECHANGES] %s has changed their name to %s.", GetPlayerNameEx(giveplayerid), name);
- Log("logs/donatornames.log", string2);
- }
- format(string, sizeof(string), " Your name has been changed from %s to %s.", GetPlayerNameEx(giveplayerid), name);
- SendClientMessage(giveplayerid,COLOR_YELLOW,string);
- format(string, sizeof(string), " You have changed %s's name to %s.", GetPlayerNameEx(giveplayerid), name);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- format(string, sizeof(string), "%s changed \"%s\"s name to \"%s\"",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),name);
- Log("logs/stats.log", string);
- SetPlayerName(giveplayerid, name);
- PlayerInfo[giveplayerid][pInt] = GetPlayerInterior(giveplayerid);
-
- if(GetPVarType(giveplayerid, "tabbedVW") != 0) {
- PlayerInfo[giveplayerid][pVW] = GetPVarInt(giveplayerid, "tabbedVW");
- } else PlayerInfo[giveplayerid][pVW] = GetPlayerVirtualWorld(giveplayerid);
-
- GetPlayerIp(giveplayerid, PlayerInfo[giveplayerid][pIP], 32);
- GetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]);
- GetPlayerFacingAngle(giveplayerid, PlayerInfo[giveplayerid][pPos_r]);
- OnPlayerStatsUpdate(giveplayerid);
- format(newname, sizeof(newname), "users/%s.ini", playername);
- fremove(newname);
- if(doesAccountExist(playername)) // If it doesn't get removed, blank the file with write io and check its length when a player attempts to authenticate (it'll be 0)
- {
- new File: BlankTheFile = fopen(newname, io_write);
- SendClientMessage(playerid, COLOR_GRAD2, "The old account couldn't be removed completely (it's been blanked for future use).");
- fclose(BlankTheFile);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "This name is already registered.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorised to use this command.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "No Such Player");
- }
- return 1;
- }
- CMD:sprison(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- new string[128], giveplayerid, minutes, reason[64];
- if(sscanf(params, "uds[64]", giveplayerid, minutes, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sprison [playerid/partofname] [minutes] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- if(strlen(reason) >= 25)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please provide a shorter reason. The maximum length for a prison reason is 25.");
- return 1;
- }
- /*if(GetPVarInt(giveplayerid, "PBM") > 0)
- {
- LeavePaintballArena(giveplayerid, GetPVarInt(giveplayerid, "IsInArena"));
- }*/
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Admin Prison", 5000, 3);
- ResetPlayerWeaponsEx(giveplayerid);
- format(string, sizeof(string), "AdmCmd: %s has been silent prisoned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by an Admin, reason: %s", GetPlayerNameEx(giveplayerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerWantedLevel(giveplayerid, 0);
- PlayerInfo[giveplayerid][pJailed] = 3;
- PlayerInfo[giveplayerid][pJailTime] = minutes*60;
- format(PlayerInfo[giveplayerid][pPrisonReason], 128, "%s", reason);
- format(PlayerInfo[giveplayerid][pPrisonedBy], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- PhoneOnline[giveplayerid] = 1;
- TogglePlayerControllable(giveplayerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(giveplayerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(giveplayerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", giveplayerid);
- SetPlayerInterior(giveplayerid, 69);
- PlayerInfo[giveplayerid][pVW] = 696969;
- PlayerInfo[giveplayerid][pInt] = 69;
- SetPlayerVirtualWorld(giveplayerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(giveplayerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- SetPlayerSkin(giveplayerid, 50);
- SetPlayerColor(giveplayerid, TEAM_APRISON_COLOR);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:switchfac(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], factionid;
- if(sscanf(params, "d", factionid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /switchfac [factionid]");
- SendClientMessage(playerid, COLOR_GRAD3, "|1 LSPD |2 FBI |3 LSFMD |4 Disabled |5 Government |9 SA News |10 Ares |11 Sasd");
- return 1;
- }
- switch(factionid) {
- case 1: {
- format(string, sizeof(string), "You have switched to faction ID %d (LSPD).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;
- }
- case 2: {
- format(string, sizeof(string), "You have switched to faction ID %d (FBI).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;
- }
- case 3: {
- format(string, sizeof(string), "You have switched to faction ID %d (LSFMD).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;
- }
- case 4: {
- /*format(string, sizeof(string), "You have switched to faction ID %d (Hitman Agency).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;*/
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can't switch to the Hitman Agency with /switchfac.");
- }
- case 5: {
- /*format(string, sizeof(string), "You have switched to faction ID %d (Government).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;*/
- SCM(playerid, -1, "You can't switch to the Government with /switchfac.");
- }
- case 9: {
- format(string, sizeof(string), "You have switched to faction ID %d (SA News).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;
- }
- case 10: {
- format(string, sizeof(string), "You have switched to faction ID %d (Ares).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;
- }
- case 11: {
- format(string, sizeof(string), "You have switched to faction ID %d (SASD).", factionid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pFaction] = factionid;
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = 255;
- }
- default: {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid Faction ID!");
- SendClientMessage(playerid, COLOR_GRAD3, "|1 LSPD |2 FBI |3 LSFMD |4 Disabled |5 Government |9 GMA |10 Ares |11 Sasd");
- }
- }
- }
- return 1;
- }
- CMD:switchfam(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], familyid;
- if(sscanf(params, "d", familyid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /switchfam [familyid]");
- if(familyid < 1 || familyid > 14) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Family Number.");
- format(string, sizeof(string), "You have switched to family ID %d (%s).", familyid, FamilyInfo[familyid-1][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pRank] = 6;
- PlayerInfo[playerid][pGang] = familyid-1;
- PlayerInfo[playerid][pFaction] = 0;
- PlayerInfo[playerid][pLeader] = 0;
- }
- return 1;
- }
- CMD:clearall(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- foreach(Player, i) {
- PlayerInfo[i][pWantedLevel] = 0;
- SetPlayerToTeamColor(i);
- SetPlayerWantedLevel(i, 0);
- ClearCrime(i);
- }
- SendClientMessage(playerid,COLOR_GRAD1, "You have cleared everyone's Wanted Level.");
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:permaban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /permaban [playerid/partofname] [reason]");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- if(AdminDuty[playerid] == 1)
- {
- new username[MAX_PLAYER_NAME];
- GetPVarString(playerid, "TempNameName", username, sizeof(username));
- SetPVarInt(playerid, "TempName", 0);
- SetPlayerName(playerid, username);
- }
- format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /permaban a higher admin.", PlayerInfo[playerid][pAdminName]);
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[playerid][pBanned] = 3;
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- }
- else
- {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- if(AdminDuty[giveplayerid] == 1)
- {
- new username[MAX_PLAYER_NAME];
- GetPVarString(giveplayerid, "TempNameName", username, sizeof(username));
- SetPVarInt(giveplayerid, "TempName", 0);
- SetPlayerName(giveplayerid, username);
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was permanently banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was permanently banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], GetPlayerNameEx(playerid), reason);
- }
- else
- {
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was permanently banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was permanently banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pPermaBanned] = 1;
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(giveplayerid);
- }
- return 1;
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:setcolor(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- ShowPlayerDialogEx(playerid, COLORMENU, DIALOG_STYLE_LIST, "Color Menu", "Blue\nBlack\nRed\nOrange\nPink\nPurple\nGreen\nYellow\nWhite", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:accent(playerid, params[])
- {
- new accent;
- if(sscanf(params, "d", accent))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accent [accent ID]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Normal [1], British [2], Asian [3], Scottish [4], Irish [5], Russian [6], American [7]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Accents: Spanish [8], Southern [9], Cuban [10], Italian [11], Gangster [12], Australian [13]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Accents: Arabic [14], Balkan [15], Canadian [16], Jamaican [17], Israeli [18], Indian [19]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Accents: Welsh [20], French [21], German [22], Dutch [23], South African [24], Filipino[25], No Accent [26]");
- return 1;
- }
- switch(accent)
- {
- case 1:
- {
- PlayerInfo[playerid][pAccent] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Normal accent, use /accent to change it.");
- }
- case 2:
- {
- PlayerInfo[playerid][pAccent] = 2;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the British accent, use /accent to change it.");
- }
- case 3:
- {
- PlayerInfo[playerid][pAccent] = 3;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Asian accent, use /accent to change it.");
- }
- case 4:
- {
- PlayerInfo[playerid][pAccent] = 4;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Scottish accent, use /accent to change it.");
- }
- case 5:
- {
- PlayerInfo[playerid][pAccent] = 5;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Irish accent, use /accent to change it.");
- }
- case 6:
- {
- PlayerInfo[playerid][pAccent] = 6;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Russian accent, use /accent to change it.");
- }
- case 7:
- {
- PlayerInfo[playerid][pAccent] = 7;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the American accent, use /accent to change it.");
- }
- case 8:
- {
- PlayerInfo[playerid][pAccent] = 8;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Spanish accent, use /accent to change it.");
- }
- case 9:
- {
- PlayerInfo[playerid][pAccent] = 9;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Southern accent, use /accent to change it.");
- }
- case 10:
- {
- PlayerInfo[playerid][pAccent] = 10;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Cuban accent, use /accent to change it.");
- }
- case 11:
- {
- PlayerInfo[playerid][pAccent] = 11;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Italian accent, use /accent to change it.");
- }
- case 12:
- {
- PlayerInfo[playerid][pAccent] = 12;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Gangster accent, use /accent to change it.");
- }
- case 13:
- {
- PlayerInfo[playerid][pAccent] = 13;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Australian accent, use /accent to change it.");
- }
- case 14:
- {
- PlayerInfo[playerid][pAccent] = 14;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Arabic accent, use /accent to change it.");
- }
- case 15:
- {
- PlayerInfo[playerid][pAccent] = 15;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Balkan accent, use /accent to change it.");
- }
- case 16:
- {
- PlayerInfo[playerid][pAccent] = 16;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Canadian accent, use /accent to change it.");
- }
- case 17:
- {
- PlayerInfo[playerid][pAccent] = 17;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Jamaican accent, use /accent to change it.");
- }
- case 18:
- {
- PlayerInfo[playerid][pAccent] = 18;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Israeli accent, use /accent to change it.");
- }
- case 19:
- {
- PlayerInfo[playerid][pAccent] = 19;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Indian accent, use /accent to change it.");
- }
- case 20:
- {
- PlayerInfo[playerid][pAccent] = 20;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Welsh accent, use /accent to change it.");
- }
- case 21:
- {
- PlayerInfo[playerid][pAccent] = 21;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the French accent, use /accent to change it.");
- }
- case 22:
- {
- PlayerInfo[playerid][pAccent] = 22;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the German accent, use /accent to change it.");
- }
- case 23:
- {
- PlayerInfo[playerid][pAccent] = 23;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Dutch accent, use /accent to change it.");
- }
- case 24:
- {
- PlayerInfo[playerid][pAccent] = 24;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the South African accent, use /accent to change it.");
- }
- case 25:
- {
- PlayerInfo[playerid][pAccent] = 25;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Filipino accent, use /accent to change it.");
- }
- case 26:
- {
- PlayerInfo[playerid][pAccent] = 26;
- SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the No Accent, use /accent to change it.");
- }
- }
- return 1;
- }
- CMD:reply(playerid, params[])
- {
- new string[128];
- new reportid = INVALID_REPORT_ID;
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][ReportFrom] == playerid && Reports[i][CheckingReport] != 999)
- {
- reportid = i;
- }
- }
- if(reportid == INVALID_REPORT_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any reports being reviewed at the moment.");
- return 1;
- }
- if(IsPlayerConnected(Reports[reportid][CheckingReport]))
- {
- format(string, sizeof(string), "%s(ID: %d) replies: %s", GetPlayerNameEx(playerid), playerid, params);
- SendClientMessage(Reports[reportid][CheckingReport], COLOR_YELLOW, string);
- format(string, sizeof(string), "Reply sent to %s: %s", GetPlayerNameEx(Reports[reportid][CheckingReport]), params);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Player not connected.");
- return 1;
- }
- CMD:cancelreport(playerid, params[])
- {
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][ReportFrom] == playerid)
- {
- Reports[i][ReportFrom] = 999;
- Reports[i][BeingUsed] = 0;
- Reports[i][TimeToExpire] = 0;
- return SendClientMessage(playerid, COLOR_WHITE, "You have successfully canceled your report. ");
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any pending reports.");
- return 1;
- }
- CMD:reporttips(playerid, params[])
- {
- ShowPlayerDialogEx(playerid,7955,DIALOG_STYLE_MSGBOX,"Report tips","Tips when reporting:\n- Report what you need, not who you need.\n- Be specific, report exactly what you need.\n- Do not make false reports.\n- Report only for in-game items.","Close", "");
- return 1;
- }
- CMD:report(playerid, params[])
- {
- if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't submit reports while on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pRMuted] != 0)
- {
- ShowPlayerDialogEx(playerid,7955,DIALOG_STYLE_MSGBOX,"Report tips","Tips when reporting:\n- Report what you need, not who you need.\n- Be specific, report exactly what you need.\n- Do not make false reports.\n- Report only for in-game items.","Close", "");
- return 1;
- }
- if(JustReported[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Wait 25 seconds before sending another report!");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /report [text]");
- JustReported[playerid]=25;
- SendReportToQueue(playerid, params);
- SendClientMessage(playerid, COLOR_YELLOW, "Your report message was sent to the Admins.");
- return 1;
- }
- CMD:rdm(playerid, params[]) return cmd_reportdm(playerid, params);
- CMD:reportdm(playerid, params[])
- {
- if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't submit reports while on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pRMuted] != 0)
- {
- ShowPlayerDialogEx(playerid,7955,DIALOG_STYLE_MSGBOX,"Report tips","Tips when reporting:\n- Report what you need, not who you need.\n- Be specific, report exactly what you need.\n- Do not make false reports.\n- Report only for in-game items.","Close", "");
- return 1;
- }
- if(JustReported[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Wait 25 seconds before sending another report!");
- return 1;
- }
- new id;
- if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /reportdm [playerid/partofname]");
- if(!IsPlayerConnected(id)) return SCM(playerid, -1, "That player is not connected.");
- JustReported[playerid]=25;
- SendDMReportToQueue(playerid, id);
- SendClientMessage(playerid, COLOR_YELLOW, "Your DM report was sent to the Admins.");
- return 1;
- }
- /*CMD:reports(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new reportdialog[2048], itemid = 0;
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][BeingUsed] == 1 && itemid < 40)
- {
- ListItemReportId[playerid][itemid] = i;
- itemid++;
- if(strlen((Reports[i][Report])) > 32)
- {
- new firstline[128], secondline[128];
- strmid(firstline, Reports[i][Report], 0, 88);
- strmid(secondline, Reports[i][Report], 88, 128);
- if(strlen(secondline) > 6)
- {
- format(reportdialog, sizeof(reportdialog), "%s%s(ID:%i) | Report: %s", reportdialog, GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, firstline);
- format(reportdialog, sizeof(reportdialog), "%s%s", reportdialog, secondline);
- ListItemReportId[playerid][itemid] = i;
- itemid++;
- }
- else format(reportdialog, sizeof(reportdialog), "%s%s(ID:%i) | Report: %s", reportdialog, GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, (Reports[i][Report]));
- }
- else format(reportdialog, sizeof(reportdialog), "%s%s(ID:%i) | Report: %s", reportdialog, GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, (Reports[i][Report]));
- format(reportdialog, sizeof(reportdialog), "%s\n", reportdialog);
- }
- }
- CancelReport[playerid] = itemid;
- format(reportdialog, sizeof(reportdialog), "%s\n", reportdialog);
- format(reportdialog, sizeof(reportdialog), "%sCancel Reports", reportdialog);
- ShowPlayerDialogEx(playerid, REPORTSMENU, DIALOG_STYLE_LIST, "Reports", reportdialog, "Accept", "Trash");
- }
- return 1;
- }*/
- CMD:reports(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- /*if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }*/
- new string[140];
- SendClientMessage(playerid, COLOR_GREEN, "____________________ REPORTS _____________________");
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][BeingUsed] == 1)
- {
- format(string, sizeof(string), "%s(ID: %i) | RID: %i | Report: %s | Expires in: %d minutes.", GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, (Reports[i][Report]), Reports[i][TimeToExpire]);
- SendClientMessage(playerid, COLOR_REPORT, string);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "___________________________________________________");
- }
- return 1;
- }
- CMD:ar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], reportid;
- if(sscanf(params, "d", reportid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ar [reportid]");
- if(reportid < 0 || reportid > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[reportid][BeingUsed] == 0) {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom])) {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has accepted the report from %s (ID: %i, RID: %i).", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]),Reports[reportid][ReportFrom],reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- AddReportToken(playerid); // Report Tokens
- format(string, sizeof(string), "%s has accepted your report and is reviewing it, you can /reply to send messages to the admin reviewing your report.", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- PlayerInfo[playerid][pAcceptReport]++;
- Reports[reportid][ReplyTimerr] = SetTimerEx("ReplyTimer", 60000, 0, "d", reportid);
- Reports[reportid][CheckingReport] = playerid;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- return 1;
- }
- CMD:tr(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], reportid;
- if(sscanf(params, "d", reportid)) return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /tr [reportid]");
- if(reportid < 0 || reportid > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has trashed the report from %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]));
- ABroadCast(COLOR_ORANGE, string, 1);
- format(string, sizeof(string), "%s has marked your report invalid. It will not be reviewed. Please check /reporttips", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- PlayerInfo[playerid][pTrashReport]++;
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- return 1;
- }
- CMD:rtnc(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) {
- if(PlayerInfo[playerid][pHelper] >= 1) {
- new
- iTarget,
- szMessage[128],
- szHelp[128];
-
- if(sscanf(params, "u", iTarget))
- return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /rtnc [playerid/partofname]");
-
- if(iTarget == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- if(GetPVarType(iTarget, "helpreq") == 0)
- return SendClientMessage(playerid, COLOR_GREY, "The specified player hasn't created a help request.");
-
- SendClientMessage(iTarget, COLOR_WHITE, "A helper has referred your report to newbie chat. Use /newb to respond.");
- SendClientMessage(iTarget, COLOR_WHITE, "Players, admins and other various people will help you with your question here.");
-
- if(gNewbie[iTarget] != 0)
- gNewbie[iTarget] = 0;
- GetPVarString(playerid, "helpreq", szHelp, sizeof(szHelp));
- format(szMessage, sizeof(szMessage), "** Newbie %s: %s", GetPlayerNameEx(iTarget), szHelp);
- foreach(Player, n) {
- if(gNewbie[n]==0) {
- SendClientMessage(n, COLOR_NEWBIE, szMessage);
- }
- }
- format(szMessage, sizeof(szMessage), "HelpCmd: %s has referred %s's (ID: %d) request to newbie chat.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTarget), iTarget);
- HelperBroadcast(COLOR_ORANGE, szMessage, 1);
- } else {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /rtnc [reportid]");
- new
- iReportID = strval(params);
- if(iReportID < 0 || iReportID > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[iReportID][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[iReportID][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[iReportID][ReportFrom] = 999;
- Reports[iReportID][BeingUsed] = 0;
- return 1;
- }
- SendClientMessage(Reports[iReportID][ReportFrom], COLOR_WHITE, "An admin has referred your report to newbie chat. Use /newb to respond.");
- SendClientMessage(Reports[iReportID][ReportFrom], COLOR_WHITE, "Players, helpers and other various people will help you with your question here.");
- if(gNewbie[Reports[iReportID][ReportFrom]] != 0)
- gNewbie[Reports[iReportID][ReportFrom]] = 0;
- new
- szMessage[128];
- format(szMessage, sizeof(szMessage), "** Newbie %s: %s", GetPlayerNameEx(Reports[iReportID][ReportFrom]), Reports[iReportID][Report]);
- foreach(Player, n) {
- if(gNewbie[n]==0) {
- SendClientMessage(n, COLOR_NEWBIE, szMessage);
- }
- }
- format(szMessage, sizeof(szMessage), "AdmCmd: %s has referred %s's (RID: %d) report to newbie chat.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[iReportID][ReportFrom]), iReportID);
- ABroadCast(COLOR_ORANGE, szMessage, 1);
- Reports[iReportID][ReportFrom] = 999;
- Reports[iReportID][BeingUsed] = 0;
- Reports[iReportID][TimeToExpire] = 0;
- strmid(Reports[iReportID][Report], "None", 0, 4, 4);
- }
- }
- return 1;
- }
- CMD:nro(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], reportid;
- if(sscanf(params, "d", reportid)) return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /nro [reportid]");
- if(reportid < 0 || reportid > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has cleared report from %s (RID: %d) as it isn't a rule breaking offense that was reported.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- format(string, sizeof(string), "%s has reviewed your report and determined this report is not valid. The player you reported is not breaking any rules.", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, "If you feel this is a rule-breaking offense, you can always propose we create this as a new rule by posting on the forums.");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- return 1;
- }
- CMD:post(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], reportid;
- if(sscanf(params, "d", reportid)) return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /post [reportid]");
- if(reportid < 0 || reportid > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has cleared report from %s (RID: %d) due to it needing to be handled on the forums", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- format(string, sizeof(string), "%s has reviewed your report and determined this report should be handled on the forums (i.e. complaint or request.)", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, "Please only report for items that are actively occuring in game. ("WEBSITE")");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- return 1;
- }
- CMD:norevive(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], reportid;
- if(sscanf(params, "d", reportid)) return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /norevive [reportid]");
- if(reportid < 0 || reportid > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has cleared report from %s (RID: %d) because their request for a revive was not valid.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- format(string, sizeof(string), "%s has reviewed your report and determined that you may not be revived.", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, "If you died due to a bug or were DMed (and an admin witnessed it), you're only then entitled to a revive.");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- return 1;
- }
- CMD:nao(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], reportid;
- if(sscanf(params, "d", reportid)) return SendClientMessage(playerid, COLOR_WHITE,"USAGE: /nao [reportid]");
- if(reportid < 0 || reportid > 999) { SendClientMessage(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has cleared report from %s (RID: %d) due to not having admin of sufficient authority online.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- format(string, sizeof(string), "%s has reviewed your report, however there is not an Admin presently online (or on admin duty) with sufficient authority to handle your request.", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, "You can post a request on the forums for additional assistance ("WEBSITE"). Our apologies for the inconvenience. ");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- return 1;
- }
- CMD:clearallreports(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- ClearReports();
- SendClientMessage(playerid,COLOR_GRAD1, "You have cleared all the active reports.");
- format(string, sizeof(string), "AdmCmd: %s has cleared all the pending reports.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:admins(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- SendClientMessage(playerid, COLOR_NEWS, "Admins Online:");
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= PlayerInfo[playerid][pAdmin])
- {
- new string[128], strFromFile[128], sstring[128], rtoken;
- new playern[MAX_PLAYER_NAME];
- new month, day, year;
- GetPlayerName(i, playern, sizeof(playern));
- getdate(year, month, day);
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[i] == 1)
- {
- format(sstring,sizeof(sstring),"admins/rtokens/%s[%d'%d'%d]",playern,month,day,year);
- if(fexist(sstring))
- {
- new File: file = fopen(sstring, io_read);
- if(file)
- {
- fread(file, strFromFile);
- fclose(file);
- rtoken = strval(strFromFile);
- }
- }
- format(string, sizeof(string), "(%s: {FFFFFF}%s) - (On-duty) - (Reports Today: %d)",GetAdminRank(i), GetPlayerNameEx(i), rtoken);
- }
- else
- {
- format(sstring,sizeof(sstring),"admins/rtokens/%s[%d'%d'%d]",PlayerInfo[i][pAdminName],month,day,year);
- if(fexist(sstring))
- {
- new File: file = fopen(sstring, io_read);
- if(file)
- {
- fread(file, strFromFile);
- fclose(file);
- rtoken = strval(strFromFile);
- }
- }
- if(strlen(PlayerInfo[i][pAdminName]) > 2 && strlen(PlayerInfo[i][pAdminName]) < 20)
- {
- format(string, sizeof(string), "(%s: {FFFFFF}%s) - (Off-duty) - (ID %d - %s) - (Reports Today: %d)", GetAdminRank(i), PlayerInfo[i][pAdminName], i, GetPlayerNameEx(i), rtoken);
- }
- else
- {
- format(string, sizeof(string), "(%s{FFFFFF}: No admin name set) - (Off-duty) - (ID %d - %s) - (Reports Today: %d)", GetAdminRank(i), i, GetPlayerNameEx(i), rtoken);
- }
- }
- }
- else
- {
- if(AdminDuty[i] == 1)
- {
- format(string, sizeof(string), "(Level %d Admin: %s) - (On-duty)", PlayerInfo[i][pAdmin], GetPlayerNameEx(i));
- }
- else
- {
- if(strlen(PlayerInfo[i][pAdminName]) > 2 && strlen(PlayerInfo[i][pAdminName]) < 20)
- {
- format(string, sizeof(string), "(Level %d Admin: %s) - (Off-duty) - (ID %d - %s)", PlayerInfo[i][pAdmin], PlayerInfo[i][pAdminName], i, GetPlayerNameEx(i));
- }
- else
- {
- format(string, sizeof(string), "(Level %d Admin: No admin name set) - (Off-duty) - (ID %d - %s)", PlayerInfo[i][pAdmin], i, GetPlayerNameEx(i));
- }
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "If you have questions regarding gameplay, or the server use /newb.");
- SendClientMessage(playerid, COLOR_GRAD1, "If you see suspicious happenings/players /report [id] [reason].");
- }
- return 1;
- }
- CMD:jail(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new
- iTargetID,
- szReason[64];
- if(sscanf(params, "us[64]", iTargetID, szReason)) {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /jail [playerid/partofname] [reason]");
- }
- else if(IsPlayerConnected(iTargetID)) {
- if(AdminDuty[iTargetID] == 1) {
- return SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on on-duty admins.");
- }
- if(PlayerInfo[iTargetID][pAdmin] >= PlayerInfo[playerid][pAdmin]) {
- return SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on equal or higher admins.");
- }
- //if(GetPVarInt(iTargetID, "PBM") > 0) LeavePaintballArena(iTargetID, GetPVarInt(iTargetID, "IsInArena"));
- new
- szMessage[128];
- ResetPlayerWeaponsEx(iTargetID);
- PlayerInfo[iTargetID][pJailed] = 3;
- PhoneOnline[iTargetID] = 1;
- PlayerInfo[iTargetID][pJailTime] = 20*60;
- TogglePlayerControllable(iTargetID, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(iTargetID, ObjectsLoadingTD[o]);
- }
- SetPVarInt(iTargetID, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", iTargetID);
- SetPlayerInterior(iTargetID, 69);
- PlayerInfo[iTargetID][pVW] = 696969;
- PlayerInfo[iTargetID][pInt] = 69;
- SetPlayerVirtualWorld(iTargetID, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(iTargetID, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- format(szMessage, sizeof(szMessage), "AdmCmd: %s has been jailed by %s, reason: %s", GetPlayerNameEx(iTargetID), GetPlayerNameEx(playerid), szReason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, szMessage);
- format(szMessage, sizeof(szMessage), "AdmCmd: %s has been jailed by %s, reason: %s", GetPlayerNameEx(iTargetID), GetPlayerNameEx(playerid), szReason);
- Log("logs/admin.log", szMessage);
- format(szMessage, sizeof(szMessage), "You have been jailed by Admin %s for 20 minutes, reason: %s.", GetPlayerNameEx(playerid), szReason);
- SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "%s", szReason);
- SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);
- strcpy(PlayerInfo[iTargetID][pPrisonedBy], GetPlayerNameEx(playerid), MAX_PLAYER_NAME);
- strcpy(PlayerInfo[iTargetID][pPrisonReason], szReason, 128);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- }
- return 1;
- }
- CMD:gotoplayerscar(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotoplayerscar [playerid/partofname]");
- }
- else if(IsPlayerConnected(iTargetID)) {
- new
- szVehString[1024];
- for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
- if((iModelID = PlayerVehicleInfo[iTargetID][i][pvModelId] - 400) >= 0) {
- if(PlayerVehicleInfo[iTargetID][i][pvImpounded]) {
- format(szVehString, sizeof(szVehString), "%s\n%s (impounded)", szVehString, VehicleName[iModelID]);
- }
- else if(PlayerVehicleInfo[iTargetID][i][pvDisabled]) {
- format(szVehString, sizeof(szVehString), "%s\n%s (disabled)", szVehString, VehicleName[iModelID]);
- }
- else if(!PlayerVehicleInfo[iTargetID][i][pvSpawned]) {
- format(szVehString, sizeof(szVehString), "%s\n%s (stored)", szVehString, VehicleName[iModelID]);
- }
- else format(szVehString, sizeof(szVehString), "%s\n%s (ID %i)", szVehString, VehicleName[iModelID], PlayerVehicleInfo[iTargetID][i][pvId]);
- }
- else strcat(szVehString, "\nEmpty");
- }
- ShowPlayerDialogEx(playerid, GOTOPLAYERCAR, DIALOG_STYLE_LIST, "Vehicle Teleportation", szVehString, "Teleport", "Cancel");
- SetPVarInt(playerid, "playeraffectedcarTP", iTargetID);
- }
- else SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- {
- }
- }
- return 1;
- }
- CMD:watch(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorised to use this command.");
- return 1;
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this while spectating.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params))
- {
- // VIP gold room needs to be fixed
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /watch [location] (or /watch off)");
- SendClientMessage(playerid, COLOR_GRAD2, "General locations: gym, lspd, allsaints, countygen, grove, tgb, bank, motel, cityhall, mall");
- SendClientMessage(playerid, COLOR_GRAD2, "Point locations: mp1, df, mf1, dh, mp2, cl, mf2, aec, ffc");
- }
- // GENERAL LOCATIONS
- if(strcmp(params, "gym", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Ganton gym.");
- SetPlayerPos(playerid, 2212.61, -1730.57, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
- SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
- }
- else if(strcmp(params, "lspd", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching the LSPD.");
- SetPlayerPos(playerid, 1504.23, -1700.17, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1500.21, -1691.75, 38.38);
- SetPlayerCameraLookAt(playerid, 1541.46, -1676.17, 13.55);
- }
- else if(strcmp(params, "allsaints", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching All Saints General Hospital.");
- SetPlayerPos(playerid, 1201.12, -1324, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1207.39, -1294.71, 24.61);
- SetPlayerCameraLookAt(playerid, 1181.72, -1322.65, 13.58);
- }
- else if(strcmp(params, "countygen", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching County General Hospital.");
- SetPlayerPos(playerid, 1989.24, -1461.38, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1981.79, -1461.55, 31.93);
- SetPlayerCameraLookAt(playerid, 2021.23, -1427.48, 13.97);
- }
- else if(strcmp(params, "grove", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Grove Street.");
- SetPlayerPos(playerid, 2489.09, -1669.88, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2459.82, -1652.68, 26.45);
- SetPlayerCameraLookAt(playerid, 2489.09, -1669.88, 13.34);
- }
- else if(strcmp(params, "tgb", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Ten Green Bottles.");
- SetPlayerPos(playerid, 2319.09, -1650.90, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2336.31, -1664.76, 24.98);
- SetPlayerCameraLookAt(playerid, 2319.09, -1650.90, 14.16);
- }
- else if(strcmp(params, "bank", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching the Los Santos bank.");
- SetPlayerPos(playerid, 1466.24, -1023.05, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1502.28, -1044.47, 31.19);
- SetPlayerCameraLookAt(playerid, 1466.24, -1023.05, 23.83);
- }
- else if(strcmp(params, "motel", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Jefferson motel.");
- SetPlayerPos(playerid, 2215.73, -1163.39, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2203.05, -1152.81, 37.03);
- SetPlayerCameraLookAt(playerid, 2215.73, -1163.39, 25.73);
- }
- else if(strcmp(params, "cityhall", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Los Santos City Hall.");
- SetPlayerPos(playerid, 1478.936035, -1746.446655, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1447.461669, -1717.788085, 44.047473);
- SetPlayerCameraLookAt(playerid, 1478.936035, -1746.446655, 14.347633);
- }
- else if(strcmp(params, "mall", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Los Santos Mall.");
- SetPlayerPos(playerid, 1127.245483, -1451.613891, -80.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1092.614868, -1499.197998, 42.018226);
- SetPlayerCameraLookAt(playerid, 1127.245483, -1451.613891, 15.796875);
- }
- // Points (mp1, df, mf1, dh, mp2, cl, mf2, aec, ffc)
- else if(strcmp(params, "mp1", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Materials Pickup 1.");
- SetPlayerPos(playerid, 1423.773437, -1320.386962, -60.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 1411.689941, -1352.002929, 24.477527);
- SetPlayerCameraLookAt(playerid, 1423.773437, -1320.386962, 13.554687);
- }
- else if(strcmp(params, "df", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Drug Factory.");
- SetPlayerPos(playerid, 2205.938964, 1582.210449, 987.316528);
- SetPlayerInterior(playerid, 1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2222.844482, 1590.667968, 1002.612915);
- SetPlayerCameraLookAt(playerid, 2206.402587, 1582.398681, 999.976562);
- }
- else if(strcmp(params, "mf1", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Materials Factory 1.");
- SetPlayerPos(playerid, 2172.315185, -2263.781250, -60.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2206.363769, -2262.568359, 24.240808);
- SetPlayerCameraLookAt(playerid, 2172.315185, -2263.781250, 13.335824);
- }
- else if(strcmp(params, "dh", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching the Drug House.");
- SetPlayerPos(playerid, 323.577026, 1118.344116, 1063.765625);
- SetPlayerInterior(playerid, 5);
- PlayerInfo[playerid][pInt] = 5;
- SetPlayerVirtualWorld(playerid, 20019);
- PlayerInfo[playerid][pVW] = 20019;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 316.387817, 1123.946289, 1085.046020);
- SetPlayerCameraLookAt(playerid, 323.577026, 1118.344116, 1083.882812);
- }
- else if(strcmp(params, "mp2", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Materials Pickup 2.");
- SetPlayerPos(playerid, 2390.212402, -2008.328491, -60.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2410.285644, -2013.919433, 21.716161);
- SetPlayerCameraLookAt(playerid, 2390.212402, -2008.328491, 13.553703);
- }
- else if(strcmp(params, "cl", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Crack Lab.");
- SetPlayerPos(playerid, 2346.013916, -1185.367065, 977.425842);
- SetPlayerInterior(playerid, 5);
- PlayerInfo[playerid][pInt] = 5;
- SetPlayerVirtualWorld(playerid, 20020);
- PlayerInfo[playerid][pVW] = 20020;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2342.012207, -1180.969848, 1029.412353);
- SetPlayerCameraLookAt(playerid, 2346.013916, -1185.367065, 1027.976562);
- }
- else if(strcmp(params, "mf2", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Materials Factory 2.");
- SetPlayerPos(playerid, 2282.298828, -1110.143798, -35.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2306.088623, -1133.968627, 52.929584);
- SetPlayerCameraLookAt(playerid, 2282.298828, -1110.143798, 37.976562);
- }
- else if(strcmp(params, "aec", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching the Auto Export Company.");
- SetPlayerPos(playerid,2729.929687, -2451.353271, -60.0);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2780.443847, -2383.833984, 31.127187);
- SetPlayerCameraLookAt(playerid, 2729.929687, -2451.353271, 17.593746);
- }
- else if(strcmp(params, "ffc", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're now watching Fossil Fuel Company.");
- SetPlayerPos(playerid, 2662.808105, -2133.713623, -39.590702);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- TogglePlayerControllable(playerid,0);
- SetPlayerCameraPos(playerid, 2662.808105, -2133.713623, 26.140636);
- SetPlayerCameraLookAt(playerid, 2636.352294, -2109.808349, 13.546875);
- }
- // OFF
- else if(strcmp(params, "off", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're no longer watching any area.");
- SetPlayerPos(playerid, 1520.50, -1674.70, 13.55);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerFacingAngle(playerid, 270.0);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,1);
- }
- return 1;
- }
- CMD:prisoners(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- string[128];
- SendClientMessage(playerid, COLOR_WHITE, "----------------------------------------");
- foreach(Player, i) {
- if(PlayerInfo[i][pJailed] >= 1 && PlayerInfo[i][pJailTime] >= 1) {
- if(strlen(PlayerInfo[i][pPrisonReason]) >= 1 && strlen(PlayerInfo[i][pPrisonedBy]) >= 1) {
- format(string, sizeof(string), "%s (by: %s), reason: %s (%d minutes)", GetPlayerNameEx(i), PlayerInfo[i][pPrisonedBy], PlayerInfo[i][pPrisonReason], PlayerInfo[i][pJailTime]/60);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- format(string, sizeof(string), "%s (by: unknown), reason: unknown (%d minutes)", GetPlayerNameEx(i), PlayerInfo[i][pJailTime]/60);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, "----------------------------------------");
- }
- return 1;
- }
- CMD:prison(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], giveplayerid, minutes, reason[64];
- if(sscanf(params, "uds[64]", giveplayerid, minutes, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /prison [playerid/partofname] [minutes] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- SetPlayerArmedWeapon(giveplayerid, 0);
- /*if(GetPVarInt(giveplayerid, "PBM") > 0)
- {
- LeavePaintballArena(giveplayerid, GetPVarInt(giveplayerid, "IsInArena"));
- }*/
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Admin Prison", 5000, 3);
- ResetPlayerWeaponsEx(giveplayerid);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerWantedLevel(giveplayerid, 0);
- PlayerInfo[giveplayerid][pJailed] = 3;
- PlayerInfo[giveplayerid][pJailTime] = minutes*60;
- format(PlayerInfo[giveplayerid][pPrisonReason], 128, "%s", reason);
- format(PlayerInfo[giveplayerid][pPrisonedBy], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- PhoneOnline[giveplayerid] = 1;
- TogglePlayerControllable(giveplayerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(giveplayerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(giveplayerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", giveplayerid);
- SetPlayerInterior(giveplayerid, 69);
- PlayerInfo[giveplayerid][pVW] = 696969;
- PlayerInfo[giveplayerid][pInt] = 69;
- SetPlayerVirtualWorld(giveplayerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(giveplayerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- SetPlayerSkin(giveplayerid, 50);
- SetPlayerColor(giveplayerid, TEAM_APRISON_COLOR);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:dm(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dm [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- SetPlayerArmedWeapon(giveplayerid, 0);
- /*if(GetPVarInt(giveplayerid, "PBM") > 0)
- {
- LeavePaintballArena(giveplayerid, GetPVarInt(giveplayerid, "IsInArena"));
- }*/
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Admin Prison", 5000, 3);
- ResetPlayerWeaponsEx(giveplayerid);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by %s, reason: DM", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by %s, reason: DM", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerWantedLevel(giveplayerid, 0);
- PlayerInfo[giveplayerid][pJailed] = 3;
- PlayerInfo[giveplayerid][pJailTime] = 60*60;
- format(PlayerInfo[giveplayerid][pPrisonReason], 128, "DM (/dm)");
- format(PlayerInfo[giveplayerid][pPrisonedBy], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- PhoneOnline[giveplayerid] = 1;
-
- format(string, sizeof(string), "Admin %s has set your wep restriction to %d.", GetPlayerNameEx(playerid));
- SCM(giveplayerid, -1, string);
- format(string, sizeof(string), "You have set %s's wep restriction to %d..", GetPlayerNameEx(giveplayerid));
- SCM(playerid, -1, string);
- PlayerInfo[giveplayerid][pWepRes] = 4;
- format(string, sizeof(string), "AdmCmd: %s has set %s's weapon restriction to '4'.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_LIGHTRED, string, 1);
- TogglePlayerControllable(giveplayerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(giveplayerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(giveplayerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", giveplayerid);
- SetPlayerInterior(giveplayerid, 69);
- PlayerInfo[giveplayerid][pVW] = 696969;
- PlayerInfo[giveplayerid][pInt] = 69;
- PlayerInfo[giveplayerid][pWarns] += 1;
- if(PlayerInfo[giveplayerid][pWarns] >= 3)
- {
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- format(string, sizeof(string), "AdmCmd: %s (IP: %s) was banned by %s (had 3 Warnings), reason: DM", GetPlayerNameEx(giveplayerid), ip, GetPlayerNameEx(playerid));
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was banned by %s (had 3 Warnings), reason: DM", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- AddBan(ip);
- Kick(giveplayerid);
- return 1;
- }
- SetPlayerVirtualWorld(giveplayerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(giveplayerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- SetPlayerSkin(giveplayerid, 50);
- SetPlayerColor(giveplayerid, TEAM_APRISON_COLOR);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:spam(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spam [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- SetPlayerArmedWeapon(giveplayerid, 0);
- /*if(GetPVarInt(giveplayerid, "PBM") > 0)
- {
- LeavePaintballArena(giveplayerid, GetPVarInt(giveplayerid, "IsInArena"));
- }*/
- GameTextForPlayer(giveplayerid, "~w~Welcome to ~n~~r~Admin Prison", 5000, 3);
- ResetPlayerWeaponsEx(giveplayerid);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by %s, reason: Massive Spam(/spam)", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s has been prisoned by %s, reason: Massive Spam (/spam)", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerWantedLevel(giveplayerid, 0);
- PlayerInfo[giveplayerid][pJailed] = 3;
- PlayerInfo[giveplayerid][pJailTime] = 60*60;
- format(PlayerInfo[giveplayerid][pPrisonReason], 128, "Massive spam (/spam)");
- format(PlayerInfo[giveplayerid][pPrisonedBy], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- PhoneOnline[giveplayerid] = 1;
- TogglePlayerControllable(giveplayerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(giveplayerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(giveplayerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", giveplayerid);
- SetPlayerInterior(giveplayerid, 69);
- PlayerInfo[giveplayerid][pVW] = 696969;
- PlayerInfo[giveplayerid][pInt] = 69;
- SetPlayerVirtualWorld(giveplayerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(giveplayerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- SetPlayerSkin(giveplayerid, 50);
- SetPlayerColor(giveplayerid, TEAM_APRISON_COLOR);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:onmute(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /onmute [playername]");
- new giveplayerid = ReturnUser(params);
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is online, use /nmute for online players.");
- return 1;
- }
- else if(doesAccountExist(params))
- {
- OnPlayerOfflineLogin(params);
- if(PlayerInfo[MAX_PLAYERS][pPermaBanned] == 1 || PlayerInfo[MAX_PLAYERS][pBanned] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is banned.");
- return 1;
- }
- else
- {
- PlayerInfo[MAX_PLAYERS][pNMute] = 1;
- PlayerInfo[MAX_PLAYERS][pNMuteTotal] += 1;
- format(string, sizeof(string), "AdmCmd: %s was just muted from using Newbie Chat [/newb] due to misuse.", params);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account doesn't exist.");
- }
- }
- return 1;
- }
- CMD:oprison(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], name[MAX_PLAYER_NAME], minutes, reason[64];
- if(sscanf(params, "s[24]ds[64]", name, minutes, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /prisonaccount [playername] [time (minutes)] [reason]");
- new giveplayerid = ReturnUser(name);
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is online, use /prison for online players.");
- return 1;
- }
- else if(doesAccountExist(name))
- {
- OnPlayerOfflineLogin(name);
- if(PlayerInfo[MAX_PLAYERS][pPermaBanned] == 1 || PlayerInfo[MAX_PLAYERS][pBanned] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is banned.");
- return 1;
- }
- else
- {
- PlayerInfo[MAX_PLAYERS][pJailTime] = minutes*60;
- PlayerInfo[MAX_PLAYERS][pJailed] = 3;
- format(PlayerInfo[MAX_PLAYERS][pPrisonReason], 64, "%s", reason);
- format(PlayerInfo[MAX_PLAYERS][pPrisonedBy], 24, "%s", GetPlayerNameEx(playerid));
- OnPlayerOfflineSave(name);
- format(string, sizeof(string), "AdmCmd: %s was offline prisoned by %s, reason: %s", name, GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, 128, "AdmCmd: %s was offline prisoned by %s, reason: %s", name, GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account doesn't exist.");
- }
- }
- return 1;
- }
- CMD:fine(playerid, params[])
- {
- new string[128], giveplayerid, amount, reason[64];
- if(sscanf(params, "uds", giveplayerid, amount, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/partofname] [amount] [reason]");
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Amount must be greater than 0");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), amount, GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), amount, GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- GivePlayerCash(giveplayerid, -amount);
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not a level three admin.");
- }
- return 1;
- }
- CMD:pfine(playerid, params[])
- {
- new string[128], giveplayerid, percentage, reason[64];
- if(sscanf(params, "uds[64]", giveplayerid, percentage, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pfine [playerid/partofname] [percentage] [reason]");
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- new fine, allmoney;
- if(PlayerInfo[giveplayerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], true) == 0)
- {
- allmoney = HouseInfo[PlayerInfo[giveplayerid][pHouse]][hSafeMoney]+GetPlayerCash(giveplayerid)+PlayerInfo[giveplayerid][pBank];
- }
- else if(PlayerInfo[giveplayerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hOwner], true) == 0)
- {
- allmoney += HouseInfo[PlayerInfo[giveplayerid][pHouse2]][hSafeMoney];
- }
- else
- {
- allmoney = GetPlayerCash(giveplayerid)+PlayerInfo[giveplayerid][pBank];
- }
- if(allmoney < 1)
- {
- SendClientMessage(giveplayerid, COLOR_GRAD2, "That player does not have any money!");
- return 1;
- }
- fine = percentage*allmoney/100;
- if(percentage < 1 || percentage > 100)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Amount must be greater than 0 and below 100.");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), fine, GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s was fined $%d by %s, reason: %s", GetPlayerNameEx(giveplayerid), fine, GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- GivePlayerCash(giveplayerid, -fine);
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not a level three admin.");
- }
- return 1;
- }
- CMD:finemats(playerid, params[])
- {
- new string[128], giveplayerid, amount, reason[64];
- if(sscanf(params, "uds", giveplayerid, amount, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fine [playerid/partofname] [amount] [reason]");
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Amount must be greater than 0");
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s was fined %d materials by %s, reason: %s", GetPlayerNameEx(giveplayerid), amount, GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s was fined %d materials by %s, reason: %s", GetPlayerNameEx(giveplayerid), amount, GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pMats] -= amount;
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not a level three admin.");
- }
- return 1;
- }
- CMD:takeadminweapons(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /takeadminweapons [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- for(new s = 0; s < 12; s++)
- {
- if(PlayerInfo[giveplayerid][pAGuns][s] != 0)
- {
- RemovePlayerWeapon(giveplayerid, PlayerInfo[giveplayerid][pAGuns][s]);
- }
- }
- format(string,sizeof(string),"You have removed %s's admin spawned weapons.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- return 1;
- }
- CMD:deletead(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new
- iTarget;
- if(sscanf(params, "u", iTarget))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /deletead [playerid/partofname]");
- if(iTarget == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "That player isn't connected.");
- if(!isnull(szAdvert[iTarget])) {
- strdel(szAdvert[iTarget], 0, strlen(szAdvert[iTarget]));
- szAdvert[iTarget][0] = 0; // never can remember if it actually sets it to the null terminator
- new
- szMessage[64];
- format(szMessage, sizeof(szMessage), "You have removed %s's ad from the ad system.", GetPlayerNameEx(iTarget));
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "%s has removed your ad from the ad system.", GetPlayerNameEx(playerid));
- SendClientMessage(iTarget, COLOR_WHITE, szMessage);
- } else return SendClientMessage(playerid, COLOR_GREY, "This ad either doesn't exist or was a priority ad.");
- }
- return 1;
- }
- CMD:takeweapons(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /takeadminweapons [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- ResetPlayerWeaponsEx(giveplayerid);
- format(string,sizeof(string),"You have removed %s's weapons.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- return 1;
- }
- CMD:sendtols(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sendtols [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- format(string, sizeof(string), " You have sent %s to Los Santos.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(giveplayerid, COLOR_WHITE, "You have been teleported!");
- SetPlayerPos(giveplayerid, 1529.6,-1691.2,13.3);
- SetPlayerVirtualWorld(giveplayerid, 0);
- SetPlayerInterior(giveplayerid, 0);
- PlayerInfo[giveplayerid][pInt] = 0;
- PlayerInfo[giveplayerid][pVW] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:release(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /release [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- format(string, sizeof(string), "AdmCmd: %s has been released from prison by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- Log("logs/admin.log", string);
- format(string, sizeof(string), "AdmCmd: %s has been released from prison by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pJailed] = 0;
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerToTeamColor(giveplayerid);
- SetPlayerWantedLevel(giveplayerid, 0);
- PlayerInfo[giveplayerid][pJailTime] = 0;
- SetPlayerPos(giveplayerid, 1529.6,-1691.2,13.3);
- SetPlayerInterior(giveplayerid,0);
- PlayerInfo[giveplayerid][pInt] = 0;
- SetPlayerVirtualWorld(giveplayerid, 0);
- PlayerInfo[giveplayerid][pVW] = 0;
- PhoneOnline[giveplayerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:forcedeath(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /forcedeath [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(GetPVarInt(giveplayerid, "Injured") == 1)
- {
- format(string, sizeof(string), " You have forced %s to death.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(giveplayerid, COLOR_WHITE, "You have been forced to death by an Admin.");
- KillEMSQueue(giveplayerid);
- ResetPlayerWeaponsEx(giveplayerid);
- SpawnPlayer(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not injured!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:forcehospital(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /forcehospital [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(GetPVarInt(giveplayerid, "Hospital") > 0)
- {
- format(string, sizeof(string), " You have forced %s out of the hospital.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(giveplayerid, COLOR_WHITE, "You have been forced out of the hospital by an Admin.");
- DeletePVar(giveplayerid, "HospitalTimer");
- HospitalSpawn(giveplayerid);
- DeletePVar(giveplayerid, "Hospital");
- DeletePVar(giveplayerid, "MedicBill");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not in the hospital!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:reloadpvehicles(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /reloadpvehicles [playerid/partofname]");
- UnloadPlayerVehicles(giveplayerid);
- LoadPlayerVehicles(giveplayerid);
- format(string, sizeof(string), " You have successfully reloaded %s's Vehicles.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- CMD:apark(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- foreach(Player, ownerid)
- {
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[ownerid][d][pvId]))
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You must be in the driver seat.");
- new Float:x, Float:y, Float:z, Float:angle, Float:health;
- if(PlayerInfo[playerid][pLockCar] == GetPlayerVehicleID(playerid)) PlayerInfo[playerid][pLockCar] = INVALID_VEHICLE_ID;
- if(IsARC(GetPlayerVehicleID(playerid))) // RC Vehicles
- {
- new Float:vehPos[3];
- GetVehiclePos(GetPlayerVehicleID(playerid),vehPos[0], vehPos[1], vehPos[2]);
- SetPlayerPos(playerid,vehPos[0], vehPos[1]+0.5, vehPos[2]+0.5);
- }
- GetVehicleHealth(PlayerVehicleInfo[ownerid][d][pvId], health);
- GetVehiclePos(PlayerVehicleInfo[ownerid][d][pvId], x, y, z);
- GetVehicleZAngle(PlayerVehicleInfo[ownerid][d][pvId], angle);
- SurfingCheck(GetPlayerVehicleID(playerid));
- UpdatePlayerVehicleParkPosition(ownerid, d, x, y, z, angle, health);
- PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), 0);
- SetPlayerArmedWeapon(playerid, 0);
- new szMessage[128];
- format(szMessage, sizeof(szMessage),"You have parked %s's %s.",GetPlayerNameEx(ownerid), VehicleName[PlayerVehicleInfo[ownerid][d][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "Your %s has been parked at another location by an admin. Use /trackcar to find it.", VehicleName[PlayerVehicleInfo[ownerid][d][pvModelId] - 400]);
- SendClientMessage(ownerid, COLOR_WHITE, szMessage);
- return 1;
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:aimpound(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iVehType,
- iVehIndex,
- iTargetOwner,
- iVehTowed;
- if(sscanf(params, "d", iVehTowed)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /aimpound [carid]");
- foreach(Player, i) {
- iVehIndex = GetPlayerVehicle(i, iVehTowed);
- if(iVehIndex != -1) {
- iVehType = 1;
- iTargetOwner = i;
- break;
- }
- }
- if(!iVehType) {
- for(new i; i < MAX_FAMILY; ++i) {
- iVehIndex = GetGangVehicle(i, iVehTowed);
- if(iVehIndex != -1) {
- iVehType = 2;
- iTargetOwner = i;
- break;
- }
- }
- }
- switch(iVehType) {
- case 0, 2: {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't impound this vehicle, it has been respawned instead.");
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- SetVehicleToRespawn(iVehTowed);
- }
- case 1: {
- PlayerVehicleInfo[iTargetOwner][iVehIndex][pvImpounded] = 1;
- PlayerVehicleInfo[iTargetOwner][iVehIndex][pvSpawned] = 0;
- PlayerVehicleInfo[iTargetOwner][iVehIndex][pvId] = INVALID_PLAYER_VEHICLE_ID;
- DestroyVehicle(iVehTowed);
- VehicleRadioStation[iVehTowed] = 0;
- VehicleSpawned[iTargetOwner]--;
- --PlayerCars;
- new
- szMessage[96];
- format(szMessage, sizeof(szMessage),"You have impounded %s's %s.",GetPlayerNameEx(iTargetOwner), VehicleName[PlayerVehicleInfo[iTargetOwner][iVehIndex][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "Your %s has been impounded by an admin. You may release it at the DMV in Dillimore.", VehicleName[PlayerVehicleInfo[iTargetOwner][iVehIndex][pvModelId] - 400]);
- SendClientMessage(iTargetOwner, COLOR_WHITE, szMessage);
- }
- /*case 2: {
- new
- szMessage[29 + MAX_PLAYER_NAME];
- format(szMessage, sizeof(szMessage),"* You have impounded %s's %s.",FamilyInfo[iTargetOwner][FamilyName], GetVehicleName(iVehTowed));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "Your %s has been impounded. You may release it at the DMV in Dillimore.", GetVehicleName(iVehTowed));
- SendNewFamilyMessage(iTargetOwner, COLOR_LIGHTBLUE, szMessage);
- FamilyVehicleInfo[iTargetOwner][iVehIndex][fvImpounded] = 1;
- FamilyVehicleInfo[iTargetOwner][iVehIndex][fvId] = INVALID_VEHICLE_ID;
- DestroyVehicle(iVehTowed);
- VehicleRadioStation[iVehTowed] = 0;
- }*/
- }
- arr_Towing[playerid] = INVALID_VEHICLE_ID;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:respawncar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], carid;
- if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /respawncar [carid]");
- SetVehicleToRespawn(carid);
- format(string, sizeof(string), "You have respawned vehicle ID %d.", carid);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:respawncars(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], radius;
- if(sscanf(params, "d", radius)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /respawncars [radius]");
- if(radius < 1 || radius > 40)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 41!");
- return 1;
- }
- RespawnNearbyVehicles(playerid, radius);
- format(string, sizeof(string), "You have respawned all vehicles within a radius of %d.", radius);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:contracts(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4 || (PlayerInfo[playerid][pAdmin] >= 4 && AdminDuty[playerid] == 1))
- {
- SearchingHit(playerid);
- }
- return 1;
- }
- CMD:givehit(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(PlayerInfo[playerid][pRank] < 5)
- {
- SendClientMessage(playerid, COLOR_GREY, " Only ranks 5 and above can assign contracts to people!");
- return 1;
- }
- new string[128], giveplayerid, targetid;
- if(sscanf(params, "uu", giveplayerid, targetid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givehit [playerid/partofname] [targetid]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(GoChase[giveplayerid] < 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " That Hitman is already busy with a Contract!");
- return 1;
- }
- if(GotHit[targetid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " Another hitman has already assigned this target!");
- return 1;
- }
- if(IsPlayerConnected(targetid))
- {
- if(PlayerInfo[targetid][pHeadValue] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That target doesn't have a contract on them!");
- return 1;
- }
- format(string, sizeof(string), "* You offered %s a contract to kill %s.", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(targetid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Hitman %s has offered you a contract to kill %s (type /accept contract), to accept it.", GetPlayerNameEx(playerid), GetPlayerNameEx(targetid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- HitOffer[giveplayerid] = playerid;
- HitToGet[giveplayerid] = targetid;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The contracted person is offline, use /contracts!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That Hitman is not Online!");
- return 1;
- }
- }
- return 1;
- }
- CMD:givemehit(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- new string[128], targetid;
- if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givemehit [targetid]");
- if(IsPlayerConnected(targetid))
- {
- if(GoChase[playerid] < 999)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're already busy with another contract!");
- return 1;
- }
- if(GotHit[targetid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " Another hitman has already assigned this target!");
- return 1;
- }
- if(PlayerInfo[targetid][pHeadValue] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That target doesn't have a contract on them!");
- return 1;
- }
- format(string, sizeof(string), "* You have offered yourself a contract to kill %s. (type /accept contract)", GetPlayerNameEx(targetid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- HitOffer[playerid] = playerid;
- HitToGet[playerid] = targetid;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " The contracted person is offline, use /contracts!");
- return 1;
- }
- }
- return 1;
- }
- CMD:order(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- if(IsPlayerInRangeOfPoint(playerid, 20.0, 1236.112182, -751.863220, 5080.765136))
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- new Hitman[32], skin = -1;
- if(sscanf(params, "s[32]D", Hitman, skin))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order [name]");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 1: Knife ($80), SDPistol ($100), Shotgun ($150), Skin ($250), Deagle ($500), MP5 ($250), Kevlar Vest ($600)");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 2: Rifle ($300), AK47 ($1,000), M4 ($1,200)");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 3: SPAS12 ($3,500), Sniper ($3,500)");
- SendClientMessage(playerid, COLOR_GRAD2, " Rank 4: C4 ($5000)");
- return 1;
- }
- else if(strcmp(Hitman,"skin",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1) {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that!");
- }
- else if(IsInvalidSkin(skin)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /order skin [skin ID]");
- }
- else if(GetPlayerCash(playerid) >= 250) {
- SetPlayerSkin(playerid, skin);
- PlayerInfo[playerid][pSkin] = skin;
- GivePlayerCash(playerid, -250);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"You have purchased a skin!");
- }
- else SendClientMessage(playerid, COLOR_GREY," You can't afford that!");
- }
- else if(strcmp(Hitman,"Knife",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 80)
- {
- GivePlayerValidWeapon(playerid, 4, 3);
- GivePlayerCash(playerid, -80);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a knife!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"SDPistol",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 100)
- {
- GivePlayerValidWeapon(playerid, 23, 99999);
- GivePlayerCash(playerid, -100);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a silenced pistol!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Shotgun",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 150)
- {
- GivePlayerValidWeapon(playerid, 25, 99999);
- GivePlayerCash(playerid, -150);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a shotgun!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Deagle",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) > 500)
- {
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerCash(playerid, -500);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a Desert Eagle!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"MP5",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 250)
- {
- GivePlayerValidWeapon(playerid, 29, 99999);
- GivePlayerCash(playerid, -250);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased an MP5!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Rifle",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 300)
- {
- GivePlayerValidWeapon(playerid, 33, 99999);
- GivePlayerCash(playerid, -300);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a rifle!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"AK47",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (2+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 1000)
- {
- GivePlayerValidWeapon(playerid, 30, 99999);
- GivePlayerCash(playerid, -1000);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased an AK-47!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"M4",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (2+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 1200)
- {
- GivePlayerValidWeapon(playerid, 31, 99999);
- GivePlayerCash(playerid, -1200);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased an M4!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Vest",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 600)
- {
- SetPlayerArmourEx(playerid, 100);
- GivePlayerCash(playerid, -600);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a kevlar vest!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Spas12",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (3+!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 3500)
- {
- GivePlayerValidWeapon(playerid, 27, 99999);
- GivePlayerCash(playerid, -3500);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a SPAS-12!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"Sniper",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the required rank for that weapon (3+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 3500)
- {
- GivePlayerValidWeapon(playerid, 34, 99999);
- GivePlayerCash(playerid, -3500);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased a sniper rifle!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- else if(strcmp(Hitman,"C4",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "YYou're not the required rank for that weapon (4+)!");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 5000)
- {
- PlayerInfo[playerid][pC4Get] = 1;
- PlayerInfo[playerid][pBombs]++;
- GivePlayerCash(playerid, -5000);
- SendClientMessage(playerid, COLOR_LIGHTBLUE," You have purchased one block of C4!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford that package!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at the gun shack!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a member of the hitman agency!");
- return 1;
- }
- return 1;
- }
- CMD:ranks(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] != 4 && PlayerInfo[playerid][pLeader] != 4 && (PlayerInfo[playerid][pAdmin] < 4 && AdminDuty[playerid] != 1))
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Agency's Ranks __________________|");
- new string[128];
- foreach(Player, i)
- {
- if(PlayerInfo[i][pFaction] == 4 || PlayerInfo[i][pLeader] == 4)
- {
- if(GoChase[playerid] == 999)
- {
- format(string, sizeof(string), "* Name: %s | Rank %d | Completed Hits: %d | Failed Hits: %d", GetPlayerNameEx(i),PlayerInfo[i][pRank], PlayerInfo[i][pCHits], PlayerInfo[i][pFHits]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else
- {
- format(string, sizeof(string), "* Name: %s | Rank %d | Completed Hits: %d | Failed Hits: %d | Chasing: %s", GetPlayerNameEx(i),PlayerInfo[i][pRank], PlayerInfo[i][pCHits], PlayerInfo[i][pFHits], GetPlayerNameEx(GoChase[i]));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }
- }
- return 1;
- }
- CMD:profile(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /profile [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- new ftext[24];
- if(PlayerInfo[giveplayerid][pFaction] == 1 || PlayerInfo[giveplayerid][pLeader] == 1)
- { ftext = "LSPD"; }
- else if(PlayerInfo[giveplayerid][pFaction] == 2 || PlayerInfo[giveplayerid][pLeader] == 2)
- { ftext = "FBI"; }
- else if(PlayerInfo[giveplayerid][pFaction] == 3 || PlayerInfo[giveplayerid][pLeader] == 3)
- { ftext = "LSFMD"; }
- else if(PlayerInfo[giveplayerid][pFaction] == 4 || PlayerInfo[giveplayerid][pLeader] == 4)
- { ftext = "Hitman Agency"; }
- else
- { ftext = "None"; }
- new f2text[64];
- if(PlayerInfo[giveplayerid][pGang] < 255)
- {
- format(f2text, sizeof(f2text), "%s", FamilyInfo[PlayerInfo[giveplayerid][pGang]][FamilyName]);
- }
- else { f2text = "None"; }
- SendClientMessage(playerid, COLOR_WHITE, "Profile Information:");
- format(string, sizeof(string), "Name: %s", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "Age: %d", PlayerInfo[giveplayerid][pAge]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "Organisation: %s", ftext);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "Family: %s", f2text);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "Bounty: $%d", PlayerInfo[giveplayerid][pHeadValue]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- }
- return 1;
- }
- CMD:hbadge(playerid, params[]) {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4) {
- if(isnull(params)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hbadge [faction]");
- SendClientMessage(playerid, COLOR_GRAD3, "|0 Normal |1 LSPD |2 FBI |3 LSFMD ");
- }
- else switch(strval(params)) {
- case 0: {
- SendClientMessage(playerid, COLOR_WHITE, "You have set your badge back to normal.");
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- }
- case 1: {
- SendClientMessage(playerid, COLOR_WHITE, "You have set your badge to LSPD.");
- SetPlayerColor(playerid,TEAM_BLUE_COLOR);
- }
- case 2: {
- SendClientMessage(playerid, COLOR_WHITE, "You have set your badge to FBI.");
- SetPlayerColor(playerid,TEAM_FBI_COLOR);
- }
- case 3: {
- SendClientMessage(playerid, COLOR_WHITE, "You have set your badge to LSFMD.");
- SetPlayerColor(playerid, TEAM_MED_COLOR);
- }
- default: SendClientMessage(playerid, COLOR_GREY, "Invalid faction specified.");
- }
- }
- return 1;
- }
- CMD:plantbomb(playerid, params[]) {
- return cmd_pb(playerid, params);
- }
- CMD:pb(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(PlayerInfo[playerid][pC4] == 0)
- {
- if(PlayerInfo[playerid][pBombs] != 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED,"You can't plant C4 while in a vehicle!");
- return 1;
- }
- GetPlayerPos(playerid,Positions[0][0], Positions[0][1], Positions[0][2]);
- SetPVarFloat(playerid, "DYN_C4_FLOAT_X", Positions[0][0]);
- SetPVarFloat(playerid, "DYN_C4_FLOAT_Y", Positions[0][1]);
- SetPVarFloat(playerid, "DYN_C4_FLOAT_Z", Positions[0][2]);
- PlayerInfo[playerid][pC4] = CreateDynamicObject(1654, Positions[0][0], Positions[0][1], Positions[0][2]-0.9, 0, 89.325012207031, 3.9700012207031);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- SendClientMessage(playerid, COLOR_GREEN, "You have placed C4 on the ground, /pickupbomb to remove it.");
- //PlayerInfo[playerid][pC4] = 1;
- PlayerInfo[playerid][pBombs]--;
- PlayerInfo[playerid][pC4Used] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You do not have C4!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You can only deploy 1 C4 at a time ! ");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a member of the Hitman Agency ! ");
- }
- return 1;
- }
- CMD:plantcarbomb(playerid, params[]) {
- return cmd_pcb(playerid, params);
- }
- CMD:pcb(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- if(PlayerInfo[playerid][pC4] == 0)
- {
- if(PlayerInfo[playerid][pBombs] != 0)
- {
- new carid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, carid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 4.0))
- {
- if(VehicleBomb{closestcar} == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "There is already a C4 on the vehicle engine!");
- return 1;
- }
- VehicleBomb{closestcar} = 1;
- PlacedVehicleBomb[playerid] = closestcar;
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- SendClientMessage(playerid, COLOR_GREEN, "You have placed C4 on the vehicle engine, /pickupbomb to remove it.");
- PlayerInfo[playerid][pC4] = 1;
- PlayerInfo[playerid][pBombs]--;
- PlayerInfo[playerid][pC4Used] = 2;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not close enough to any vehicle!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You do not have C4!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You can only deploy 1 C4 at a time ! ");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a member of the Hitman Agency ! ");
- }
- return 1;
- }
- CMD:pickupbomb(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] != 4 && PlayerInfo[playerid][pLeader] != 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a Hitman!");
- return 1;
- }
- if(PlayerInfo[playerid][pC4] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You haven't planted a bomb!");
- return 1;
- }
- new carid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, carid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 4.0) && VehicleBomb{closestcar} == 1)
- {
- VehicleBomb{closestcar} = 0;
- PlacedVehicleBomb[playerid] = INVALID_VEHICLE_ID;
- PickUpC4(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "Bomb picked up successfully.");
- PlayerInfo[playerid][pBombs]++;
- PlayerInfo[playerid][pC4Used] = 0;
- PlayerInfo[playerid][pC4Get] = 1;
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, GetPVarFloat(playerid, "DYN_C4_FLOAT_X"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Y"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Z")))
- {
- PickUpC4(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "Bomb picked up successfully.");
- PlayerInfo[playerid][pBombs]++;
- PlayerInfo[playerid][pC4Used] = 0;
- PlayerInfo[playerid][pC4Get] = 1;
- return 1;
- }
- return 1;
- }
- CMD:showmehq(playerid, params[])
- {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4) {
- SetPlayerCheckpoint(playerid,1938.545898, 165.629531, 37.281250, 4.0);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~HQ", 5000, 1);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_HITMAN;
- }
- return 1;
- }
- CMD:showmemclub(playerid, params[])
- {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] >= 1) {
- SetPlayerCheckpoint(playerid,1918.388916,-1684.041137,13.522994, 4.0);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~Maximus club", 5000, 1);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_MAXIMUSCLUB;
- }
- return 1;
- }
- CMD:showmebm(playerid, params[])
- {
- if(CheckPointCheck(playerid)) {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] >= 1) {
- SetPlayerCheckpoint(playerid,2002.423583,-1782.383422,13.553680, 4.0);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~BlackMarket", 5000, 1);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_BLACKMARKET;
- }
- return 1;
- }
- CMD:deletehit(playerid, params[])
- {
- //if((PlayerInfo[playerid][pAdmin] >= 4 && AdminDuty[playerid] == 1) || (PlayerInfo[playerid][pFaction] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pLeader] == 4)
- if(PlayerInfo[playerid][pAdmin] >= 4 && AdminDuty[playerid] == 1)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /deletehit [playerid/partofname]");
- if(!IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pHeadValue] >= 1)
- {
- format(string, sizeof(string), "%s has removed the contract on %s ($%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pHeadValue]);
- Log("logs/contracts.log", string);
- PlayerInfo[giveplayerid][pHeadValue] = 0;
- format(string, sizeof(string), "You have removed the contract which was on %s's head.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- GoChase[giveplayerid] = 999;
- foreach(Player, i)
- {
- if(HitToGet[i] == giveplayerid)
- {
- HitToGet[i] = 999;
- HitOffer[i] = 999;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "There's not an active contract on that player!");
- }
- }
- return 1;
- }
- CMD:contract(playerid, params[])
- {
- if(PlayerCuffed[playerid] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can't place contracts while in cuffs.");
- if(PlayerInfo[playerid][pJailTime] > 0) return SendClientMessage(playerid, COLOR_GREY, "You can't place contracts while in jail.");
- new string[128], giveplayerid, moneys, detail[32];
- if(sscanf(params, "uds[32]", giveplayerid, moneys, detail)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /contract [playerid/partofname] [amount] [details]");
- if(moneys < 5000 || moneys > 50000)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't place contracts that are less than $5,000 or more than $50,000.");
- return 1;
- }
- else if((moneys < 10000 || moneys > 50000) && IsACop(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "The minimum hit amount for a law enforcement officer is $10,000 and can't be more than $50,000.");
- return 1;
- }
- if(PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to place a contract.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pConnectTime] < 12)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't place contracts on players with less than 12 playing hours.");
- return 1;
- }
- if(AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't contract on-duty admins.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't place contracts as a hitman.");
- }
- else
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(moneys >= 50001)
- {
- SendClientMessage(playerid, COLOR_GREY, "The maximum contract price is $50,000!");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pHeadValue] >= 50000)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has the maximum on their head.");
- return 1;
- }
- if(moneys + PlayerInfo[giveplayerid][pHeadValue] >= 50001)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has the maximum on their head.");
- return 1;
- }
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't contract yourself."); return 1; }
- new playermoney = GetPlayerCash(playerid);
- if(moneys > 0 && playermoney >= moneys)
- {
- if(strlen(detail) > 32) return SendClientMessage(playerid, COLOR_GRAD1, "Contract details may not be longer than 32 characters in length.");
- GivePlayerCash(playerid, (0 - moneys));
- PlayerInfo[giveplayerid][pHeadValue]+=moneys;
- strmid(PlayerInfo[giveplayerid][pContractBy], GetPlayerNameEx(playerid), 0, strlen(GetPlayerNameEx(playerid)), MAX_PLAYER_NAME);
- strmid(PlayerInfo[giveplayerid][pContractDetail], detail, 0, strlen(detail), 32);
- format(string, sizeof(string), "%s has placed a contract on %s for $%d, details: %s.",GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), moneys, detail);
- SendFamilyMessage(4, COLOR_YELLOW, string);
- format(string, sizeof(string), "* You placed a contract on %s for $%d, details: %s.",GetPlayerNameEx(giveplayerid), moneys, detail);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has placed a contract on %s for $%d, details: %s",GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid),moneys,detail);
- Log("logs/contracts.log", string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have enough money for this.");
- }
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:GMA(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, 2654.473632,-1834.064331,-38.724376))
- {
- ShowPlayerDialogEx(playerid, 5510, DIALOG_STYLE_LIST, "GMA: Lockers", "Duty\nGuns\nClothing Menu", "Proceed", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You aren't in range of your GMA lockers.");
- }
- }
- return 1;
- }
- CMD:locker(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pLeader] == 1)
- {
- cmd_lspd(playerid, params);
- }
- else if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- cmd_fbi(playerid, params);
- }
- else if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9)
- {
- cmd_GMA(playerid, params);
- }
- else if(PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- cmd_govl(playerid, params);
- }
- else if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- cmd_lsfmd(playerid, params);
- }
- else if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- cmd_ares(playerid, params);
- }
- else if(PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- cmd_sasd(playerid, params);
- }
-
- return 1;
- }
- CMD:fbi(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,310.3679,-1537.5204,-45.1338))
- {
- ShowPlayerDialogEx(playerid, FDUTYMENU, DIALOG_STYLE_LIST, "FBI Menu","Duty\nEquipment\nSWAT Uniform\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in range of your FBI lockers.");
- }
- }
- return 1;
- }
- CMD:fbidiv(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fbidiv [playerid/partofname] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 2 (GU), 3 (FAN), 4 (CID), 5 (IA)");
- return 1;
- }
- if(PlayerInfo[playerid][pFaction] == 2 && PlayerInfo[playerid][pRank] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- if(division == 3)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 2)
- {
- PlayerInfo[giveplayerid][pDivision] = 3;
- format(string, sizeof(string), "You're now in the FAN division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the FAN division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else if(division == 5)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 2)
- {
- PlayerInfo[giveplayerid][pDivision] = 5;
- format(string, sizeof(string), "You're now in the IA division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the IA division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else if(division == 4)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 2)
- {
- PlayerInfo[giveplayerid][pDivision] = 4;
- format(string, sizeof(string), "You're now in the CID division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the CID division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else if(division == 2)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 2)
- {
- PlayerInfo[giveplayerid][pDivision] = 2;
- format(string, sizeof(string), "You're now in the GU division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the GU division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else if(division == 1)
- {
- if(PlayerInfo[giveplayerid][pFaction] == 2)
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You have been kicked from your division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s out of their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only R4+ can do this.");
- }
- }
- return 1;
- }
- CMD:bug(playerid, params[]) {
- if(PlayerInfo[playerid][pFaction] == 2) {
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bug [playerid/partofname]");
- }
- else if(AdminDuty[iTargetID] == 1) {
- SendClientMessage(playerid, COLOR_GREY, "You can't place bugs on admins.");
- }
- else if(PlayerInfo[iTargetID][pBugged] == 1) {
- new
- szMessage[32 + MAX_PLAYER_NAME];
- PlayerInfo[iTargetID][pBugged] = 0;
- format(szMessage,sizeof(szMessage),"The bug on %s has been disabled.", GetPlayerNameEx(iTargetID));
- SendClientMessage(playerid, COLOR_GRAD1, szMessage);
- }
- else if(ProxDetectorS(4.0, playerid, iTargetID)) {
- new
- szMessage[28 + MAX_PLAYER_NAME];
- PlayerInfo[iTargetID][pBugged] = 1;
- format(szMessage,sizeof(szMessage),"You have placed a bug on %s.",GetPlayerNameEx(iTargetID));
- SendClientMessage(playerid, COLOR_GRAD1, szMessage);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You need to be close to the person.");
- }
- return 1;
- }
- CMD:togbr(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 2) {
- if(gBug[playerid] == 0)
- {
- gBug[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "Bug chat channel enabled. You will now be able to hear transmissions from all active bugs.");
- }
- else
- {
- gBug[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "Bug chat channel disabled.");
- }
- }
- return 1;
- }
- CMD:impound(playerid, params[]) {
- switch(PlayerInfo[playerid][pFaction]) {
- case 1, 2: {
- if(!IsAtImpoundingPoint(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not near the impound point, you can't impound!");
- return 1;
- }
- if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
- {
- new
- iVehType,
- iVehIndex,
- iTargetOwner,
- iVehTowed = GetVehicleTrailer(GetPlayerVehicleID(playerid));
- if(!GetVehicleModel(iVehTowed)) {
- return SendClientMessage(playerid, COLOR_GREY, "The vehicle in tow has been desynced and therefore can't be impounded.");
- }
- foreach(Player, i) {
- iVehIndex = GetPlayerVehicle(i, iVehTowed);
- if(iVehIndex != -1) {
- iVehType = 1;
- iTargetOwner = i;
- break;
- }
- }
- if(!iVehType) {
- for(new i; i < MAX_FAMILY; ++i) {
- iVehIndex = GetGangVehicle(i, iVehTowed);
- if(iVehIndex != -1) {
- iVehType = 2;
- iTargetOwner = i;
- break;
- }
- }
- }
- switch(iVehType) {
- case 0, 2: {
- SendClientMessage(playerid, COLOR_GRAD1, "The impound administration could not find any registration on the vehicle and has returned it.");
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- SetVehiclePos(iVehTowed, 0, 0, 0); // Attempted desync fix
- SetVehicleToRespawn(iVehTowed);
- }
- case 1: {
- PlayerVehicleInfo[iTargetOwner][iVehIndex][pvImpounded] = 1;
- PlayerVehicleInfo[iTargetOwner][iVehIndex][pvSpawned] = 0;
- PlayerVehicleInfo[iTargetOwner][iVehIndex][pvId] = INVALID_PLAYER_VEHICLE_ID;
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- SetVehiclePos(iVehTowed, 0, 0, 0); // Attempted desync fix
- DestroyVehicle(iVehTowed);
- VehicleRadioStation[iVehTowed] = 0;
- VehicleSpawned[iTargetOwner]--;
- --PlayerCars;
- new
- szMessage[96];
- format(szMessage, sizeof(szMessage),"* You have impounded %s's %s.",GetPlayerNameEx(iTargetOwner), VehicleName[PlayerVehicleInfo[iTargetOwner][iVehIndex][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "Your %s has been impounded. You may release it at the DMV in Dillimore.", VehicleName[PlayerVehicleInfo[iTargetOwner][iVehIndex][pvModelId] - 400]);
- SendClientMessage(iTargetOwner, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "HQ: %s has impounded %s's %s ($%i unpaid tickets).", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetOwner), VehicleName[PlayerVehicleInfo[iTargetOwner][iVehIndex][pvModelId] - 400], PlayerVehicleInfo[iTargetOwner][iVehIndex][pvTicket]);
- SendRadioMessage(PlayerInfo[playerid][pFaction], RADIO, szMessage);
- }
- /*case 2: {
- new
- szMessage[29 + MAX_PLAYER_NAME];
- format(szMessage, sizeof(szMessage),"* You have impounded %s's %s.",FamilyInfo[iTargetOwner][FamilyName], GetVehicleName(iVehTowed));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "Your %s has been impounded. You may release it at the DMV in Dillimore.", GetVehicleName(iVehTowed));
- SendNewFamilyMessage(iTargetOwner, COLOR_LIGHTBLUE, szMessage);
- FamilyVehicleInfo[iTargetOwner][iVehIndex][fvImpounded] = 1;
- FamilyVehicleInfo[iTargetOwner][iVehIndex][fvId] = INVALID_VEHICLE_ID;
- DestroyVehicle(iVehTowed);
- VehicleRadioStation[iVehTowed] = 0;
- }*/
- }
- arr_Towing[playerid] = INVALID_VEHICLE_ID;
- }
- }
- default: SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command.");
- }
- return 1;
- }
- CMD:dispatch(playerid, params[])
- {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/r)adio [radio chat]");
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pFaction] == 10) {
- new
- szMessage[128];
- format(szMessage, sizeof(szMessage), "* Dispatch: %s", params);
-
- switch(PlayerInfo[playerid][pFaction]) {
- case 1: SendRadioMessage(1, RADIO, szMessage);
- case 2: SendRadioMessage(2, RADIO, szMessage);
- case 3: SendRadioMessage(3, RADIO, szMessage);
- case 5: SendRadioMessage(5, RADIO, szMessage);
- case 9: SendRadioMessage(9, RADIO, szMessage);
- case 10: SendRadioMessage(10, RADIO, szMessage);
- }
- }
- return 1;
- }
- CMD:r(playerid, params[]) {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/r)adio [radio chat]");
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 11) {
- new
- szMessage[128],
- szRank[64],
- szEmployer[64],
- szDivision[64];
- GetPlayerFactionInfo(playerid, szRank, szDivision, szEmployer);
- if(!strlen(szDivision) || !strcmp(szDivision, "None", true)) {
- format(szMessage, sizeof(szMessage), "** %s %s: %s **", szRank, GetPlayerNameEx(playerid), params);
- } else {
- format(szMessage, sizeof(szMessage), "** %s (%s) %s: %s **", szRank, szDivision, GetPlayerNameEx(playerid), params);
- }
- switch(PlayerInfo[playerid][pFaction]) {
- case 1: SendRadioMessage(1, RADIO, szMessage);
- case 2: SendRadioMessage(2, RADIO, szMessage);
- case 3: SendRadioMessage(3, RADIO, szMessage);
- case 5: SendRadioMessage(5, COLOR_GOV, szMessage);
- case 9: SendRadioMessage(9, TEAM_NEWS_COLOR, szMessage);
- case 10: SendRadioMessage(10, RADIO, szMessage);
- case 11: SendRadioMessage(11, RADIO, szMessage);
- }
- format(szMessage, sizeof(szMessage), "(radio) %s", params);
- SetPlayerChatBubble(playerid, szMessage, COLOR_WHITE, 15.0,5000);
- printf("%s ('** %s %s %s: %s **')", szEmployer, szRank, szDivision, GetPlayerNameEx(playerid), params);
- }
- return 1;
- }
- /*CMD:fc(playerid, params[]) {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/f)action(c)hat [ooc chat]");
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pFaction] == 10) {
- new
- szMessage[128],
- szRank[64],
- szEmployer[64],
- szDivision[64];
- GetPlayerFactionInfo(playerid, szRank, szDivision, szEmployer);
- if(!strlen(szDivision) || !strcmp(szDivision, "None", true)) {
- format(szMessage, sizeof(szMessage), "(( %s %s: %s ))", szRank, GetPlayerNameEx(playerid), params);
- } else {
- format(szMessage, sizeof(szMessage), "(( %s (%s) %s: %s ))", szRank, szDivision, GetPlayerNameEx(playerid), params);
- }
- switch(PlayerInfo[playerid][pFaction]) {
- case 1: SendRadioMessage(1, COLOR_NEWS, szMessage);
- case 2: SendRadioMessage(2, COLOR_NEWS, szMessage);
- case 3: SendRadioMessage(3, COLOR_NEWS, szMessage);
- case 5: SendRadioMessage(5, COLOR_NEWS, szMessage);
- case 9: SendRadioMessage(9, COLOR_NEWS, szMessage);
- case 10: SendRadioMessage(10, COLOR_NEWS, szMessage);
- }
- printf("%s (( %s %s %s: %s )))", szEmployer, szRank, szDivision, GetPlayerNameEx(playerid), params);
- }
- return 1;
- }*/
- CMD:d(playerid, params[]) {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/d)epartments [department chat]");
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 11) {
- new
- szMessage[128],
- szRank[64],
- szEmployer[64],
- szDivision[64];
- GetPlayerFactionInfo(playerid, szRank, szDivision, szEmployer);
- if(!strlen(szDivision) || !strcmp(szDivision, "None", true)) {
- format(szMessage, sizeof(szMessage), "** %s %s %s: %s **", szEmployer, szRank, GetPlayerNameEx(playerid), params);
- } else {
- format(szMessage, sizeof(szMessage), "** %s %s (%s) %s: %s **", szEmployer, szRank, szDivision, GetPlayerNameEx(playerid), params);
- }
- SendRadioMessage(1, DEPTRADIO, szMessage);
- SendRadioMessage(2, DEPTRADIO, szMessage);
- SendRadioMessage(3, DEPTRADIO, szMessage);
- SendRadioMessage(5, DEPTRADIO, szMessage);
- SendRadioMessage(10, DEPTRADIO, szMessage);
- SendRadioMessage(11, DEPTRADIO, szMessage);
- format(szMessage, sizeof(szMessage), "(radio) %s", params);
- SetPlayerChatBubble(playerid, szMessage, COLOR_WHITE, 15.0, 5000);
- foreach(Player, i)
- {
- if(PlayerInfo[i][pReceiver] > 0)
- {
- if(GetPVarType(i, "pReceiverOn"))
- {
- if(GetPVarInt(i, "pReceiverMLeft") > 0)
- {
- format(szMessage, sizeof(szMessage), "** (receiver) %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessage(i, DEPTRADIO, szMessage);
- SetPVarInt(i, "pReceiverMLeft", GetPVarInt(i, "pReceiverMLeft") - 1);
- }
- else
- {
- PlayerInfo[i][pReceiver]--;
- SetPVarInt(i, "pReceiverMLeft", 40);
- SendClientMessage(i, DEPTRADIO, "Your receiver ran out of batteries!");
- }
- }
- }
- return 1;
- }
- }
- return 1;
- }
- CMD:m(playerid, params[]) {
- if(!isnull(params)) switch(PlayerInfo[playerid][pFaction]) {
- case 1, 2, 3, 5, 9, 10, 11: {
- new
- szMessage[128];
- format(szMessage, sizeof(szMessage), "(megaphone) %s: %s", GetPlayerNameEx(playerid), params);
- ProxDetector(60.0, playerid, szMessage, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW, COLOR_YELLOW);
- }
- default: SendClientMessage(playerid, COLOR_GRAD2, " You do not have authority to use the megaphone.");
- }
- else SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/m)egaphone [megaphone chat]");
- return 1;
- }
- CMD:su(playerid, params[]) {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 11) {
- if(PlayerInfo[playerid][pJailed] > 0) {
- return SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
- }
- new
- iTargetID,
- szCrime[64];
- if(sscanf(params, "us[64]", iTargetID, szCrime)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/su)spect [playerid/partofname] [crime description]");
- }
- else if(!IsPlayerConnected(iTargetID)) {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else if(IsACop(iTargetID)) {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this command on a law enforcement officer.");
- }
- else if(PlayerInfo[iTargetID][pFaction] == 5) {
- SendClientMessage(playerid, COLOR_GREY, "This person has diplomatic immunity.");
- }
- else if(PlayerInfo[iTargetID][pWantedLevel] >= 6) {
- SendClientMessage(playerid, COLOR_GRAD2, "Target is already most wanted.");
- }
- else {
- new
- szMessage[128];
- ++PlayerInfo[iTargetID][pCrimes];
- SetPlayerWantedLevel(iTargetID, ++PlayerInfo[iTargetID][pWantedLevel]);
- if(PlayerInfo[iTargetID][pWantedLevel] > 5)
- {
- SetPlayerColor(iTargetID, WANTED_COLOR);
- }
- format(szMessage, sizeof(szMessage), "You've commited a crime (%s), reporter: %s.", szCrime, GetPlayerNameEx(playerid));
- SendClientMessage(iTargetID, COLOR_LIGHTRED, szMessage);
- format(szMessage, sizeof(szMessage), "Current wanted level: %d", PlayerInfo[iTargetID][pWantedLevel]);
- SendClientMessage(iTargetID, COLOR_YELLOW, szMessage);
- foreach(Player, i) if(IsACop(i) || PlayerInfo[i][pFaction] == 5 && PlayerInfo[i][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2) {
- format(szMessage, sizeof(szMessage), "HQ: All units APB (reporter: %s)",GetPlayerNameEx(playerid));
- SendClientMessage(i, TEAM_BLUE_COLOR, szMessage);
- format(szMessage, sizeof(szMessage), "HQ: Crime: %s, suspect: %s", szCrime, GetPlayerNameEx(iTargetID));
- SendClientMessage(i, TEAM_BLUE_COLOR, szMessage);
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not a law enforcement officer.");
- return 1;
- }
- CMD:ares(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.5,-1109.457641, -95.517982, 2040.269287))
- {
- ShowPlayerDialogEx(playerid, ADUTYMENU, DIALOG_STYLE_LIST, "ARES Menu","Duty\nEquipment\nTactical\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in range of your ARES lockers.");
- }
- }
- return 1;
- }
- CMD:lspd(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pLeader] == 1)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.5,1767.054321,-1039.901733,-24.009588) || IsPlayerInRangeOfPoint(playerid,3.5,1767.054321,-1039.901733,-24.009588))
- {
- ShowPlayerDialogEx(playerid, DUTYMENU, DIALOG_STYLE_LIST, "LSPD Menu","Duty\nEquipment\nTactical\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in range of your LSPD lockers.");
- }
- }
- return 1;
- }
- CMD:sasd(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.5,-1632.767700,685.920898,1008.735961))
- {
- ShowPlayerDialogEx(playerid, SDUTYMENU, DIALOG_STYLE_LIST, "SASD Menu","Duty\nEquipment\nTactical\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in range of your SASD lockers.");
- }
- }
- return 1;
- }
- CMD:mdc(playerid, params[])
- {
- if(IsMDCPermitted(playerid))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- ShowPlayerDialogEx(playerid, MDC_MAIN, DIALOG_STYLE_LIST, "SA-MDC - Logged in", "*Find LEO\n*Civilian Information\n*Law Enforcement Agencies\n*MDC Message\n*SMS", "OK", "Cancel");
- ConnectedToPC[playerid] = 1337;
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle.");
- }
- return 1;
- }
- CMD:detain(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
- return 1;
- }
- new string[128], giveplayerid, seat;
- if(sscanf(params, "ud", giveplayerid, seat)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /detain [playerid/partofname] [seatid 1-3]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(seat < 1 || seat > 3)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The seat ID can't be above 3 or below 1.");
- return 1;
- }
- if(IsACop(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't detain other law enforcement officers.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "That person is in a car - get them out first.");
- return 1;
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't detain yourself!"); return 1; }
- if(PlayerCuffed[giveplayerid] == 2)
- {
- new carid = gLastCar[playerid];
- if(IsSeatAvailable(carid, seat))
- {
- new Float:pos[6];
- GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- GetPlayerPos(giveplayerid, pos[3], pos[4], pos[5]);
- GetVehiclePos(carid, pos[0], pos[1], pos[2]);
- if(floatcmp(floatabs(floatsub(pos[0], pos[3])), 10.0) != -1 &&
- floatcmp(floatabs(floatsub(pos[1], pos[4])), 10.0) != -1 &&
- floatcmp(floatabs(floatsub(pos[2], pos[5])), 10.0) != -1) return false;
- format(string, sizeof(string), "* You were detained by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You detained %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s throws %s in the vehicle.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~r~Detained", 2500, 3);
- ClearAnimations(giveplayerid);
- TogglePlayerControllable(giveplayerid, false);
- PutPlayerInVehicle(giveplayerid, carid, seat);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That seat isn't available!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That person isn't cuffed.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not close enough to the player or your car!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not a Cop / FBI / Coastguard!");
- }
- return 1;
- }
- CMD:bail(playerid, params[])
- {
- if(PlayerInfo[playerid][pJailed] == 1 || PlayerInfo[playerid][pJailed] == 2)
- {
- if(JailPrice[playerid] > 0)
- {
- if(GetPlayerCash(playerid) > JailPrice[playerid])
- {
- new string[128];
- format(string, sizeof(string), "You bailed yourself out for $%d.", JailPrice[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, -JailPrice[playerid]);
- JailPrice[playerid] = 0;
- WantLawyer[playerid] = 0; CallLawyer[playerid] = 0;
- PlayerInfo[playerid][pJailTime] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't afford the bail price.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a bail price.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in jail.");
- }
- return 1;
- }
- CMD:deliver(playerid, params[]) {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2) {
- if(!IsPlayerInRangeOfPoint(playerid,6.0,1992.484130, -2312.814208, 13.546875))
- return SendClientMessage(playerid, COLOR_GREY, "You're not at the deliver point at the LS airport.");
- if(PlayerInfo[playerid][pRank] < 2)
- return SendClientMessage(playerid, COLOR_GREY, "You must be rank 2 and above to send suspects to prison.");
- new
- suspect = GetClosestPlayer(playerid);
- if(IsPlayerConnected(suspect)) {
- if(ProxDetectorS(15.0, playerid,suspect)) {
- if(PlayerInfo[suspect][pConnectTime] <= 8)
- return SendClientMessage(playerid, COLOR_GREY, "You cannot send a suspect to prison who has 8 or less playing hours.");
- if(PlayerInfo[suspect][pWantedLevel] < 6)
- return SendClientMessage(playerid, COLOR_GREY, "The suspect must have six wanted levels/stars to be taken to normal jail.");
- if(PlayerCuffed[suspect] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "The suspect has not been detained/cuffed.");
- new
- fine,
- allmoney;
- if(PlayerInfo[suspect][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[suspect][pHouse]][hOwner], true) == 0) {
- allmoney = HouseInfo[PlayerInfo[suspect][pHouse]][hSafeMoney]+GetPlayerCash(suspect)+PlayerInfo[suspect][pBank];
- } else if(PlayerInfo[suspect][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[suspect][pHouse2]][hOwner], true) == 0) {
- allmoney += HouseInfo[PlayerInfo[suspect][pHouse2]][hSafeMoney];
- } else {
- allmoney = GetPlayerCash(suspect)+PlayerInfo[suspect][pBank];
- }
- if(allmoney < 1) {
- fine = 0;
- } else {
- fine = 3*allmoney/100;
- }
- if(fine > 3000) {
- fine = 3000;
- }
- GivePlayerCash(suspect, -fine);
- SetPlayerArmedWeapon(suspect, 0);
- ResetPlayerWeaponsEx(suspect);
- new string[128];
- format(string, sizeof(string), "* You delivered %s to prison!", GetPlayerNameEx(suspect));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have been prisoned for 40 minutes and fined $%d. Bail: Unable", fine);
- SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
- PhoneOnline[suspect] = 1;
- DeletePVar(suspect, "IsFrozen");
- PlayerInfo[suspect][pArrested] += 1;
- SetPlayerFree(suspect,playerid, "was arrested");
- PlayerInfo[suspect][pWantedLevel] = 0;
- SetPlayerToTeamColor(suspect);
- SetPlayerWantedLevel(suspect, 0);
- TogglePlayerControllable(suspect, 1);
- ClearAnimations(suspect);
- SetPlayerSpecialAction(suspect, SPECIAL_ACTION_NONE);
- PlayerCuffed[suspect] = 0;
- DeletePVar(suspect, "PlayerCuffed");
- PlayerCuffedTime[suspect] = 0;
- format(PlayerInfo[suspect][pPrisonReason], 128, "Level 6 Wanted [6 stars]");
- format(PlayerInfo[suspect][pPrisonedBy], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- PlayerInfo[suspect][pJailed] = 4;
- PlayerInfo[suspect][pJailTime] = 2400;
- if(PlayerVehicleInfo[suspect][0][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][0][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][1][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][1][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][2][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][2][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][3][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][3][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][4][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][4][pvTicket] = 0;
- }
- GameTextForPlayer(suspect, "~w~Welcome to ~n~~r~ Prison", 5000, 3);
- TogglePlayerControllable(suspect, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(suspect, ObjectsLoadingTD[o]);
- }
- SetPVarInt(suspect, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", suspect);
- SetPlayerInterior(suspect, 69);
- PlayerInfo[suspect][pVW] = 696969;
- PlayerInfo[suspect][pInt] = 69;
- SetPlayerVirtualWorld(suspect, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(suspect, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- SetPlayerSkin(suspect, 50);
- SetPlayerColor(suspect, TEAM_ORANGE_COLOR);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not a Cop / FBI!");
- }
- return 1;
- }
- CMD:arrest(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2) {
- if(!IsAtArrestPoint(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You're not at the arrest point.");
- new string[128], moneys, time, bail, bailprice;
- if(sscanf(params, "dddd", moneys, time, bail, bailprice))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [fine] [time (minutes)] [bail (0=no 1=yes)] [bailprice]");
- if(time < 1 || time > 20)
- return SendClientMessage(playerid, COLOR_GREY, "Jail time can't be below 1 or above 20 minutes - take the person to prison for more time.");
- if(bail < 0 || bail > 1)
- return SendClientMessage(playerid, COLOR_GREY, "The bail option must be set to 0 or 1.");
- if(bailprice < 0 || bailprice > 1000)
- return SendClientMessage(playerid, COLOR_GREY, "The bail price can't be below $0 or above $1000.");
- new suspect = GetClosestPlayer(playerid);
- if(IsPlayerConnected(suspect)) {
- if(ProxDetectorS(5.0, playerid, suspect)) {
- if(PlayerInfo[suspect][pWantedLevel] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "The player must have a wanted level of at least one star.");
- new allmoney, cap;
- if(PlayerInfo[suspect][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[suspect][pHouse]][hOwner], true) == 0) {
- allmoney = HouseInfo[PlayerInfo[suspect][pHouse]][hSafeMoney]+GetPlayerCash(suspect)+PlayerInfo[suspect][pBank];
- }
- else if(PlayerInfo[suspect][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[suspect][pHouse2]][hOwner], true) == 0) {
- allmoney += HouseInfo[PlayerInfo[suspect][pHouse2]][hSafeMoney];
- }
- else {
- allmoney = GetPlayerCash(suspect)+PlayerInfo[suspect][pBank];
- }
- cap = 5*allmoney/100;
- if(cap > 1000 || cap < 1) {
- cap = 1000;
- }
- if(moneys < 1 || moneys > cap) {
- format(string, sizeof(string), "The jail fine can't be below $1 or above $%d.", cap);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- format(string, sizeof(string), "* You arrested %s!", GetPlayerNameEx(suspect));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(suspect, -moneys);
- //Tax += moneys;
- ResetPlayerWeaponsEx(suspect);
- if(PlayerVehicleInfo[suspect][0][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][0][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][1][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][1][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][2][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][2][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][3][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][3][pvTicket] = 0;
- }
- if(PlayerVehicleInfo[suspect][4][pvTicket] != 0) {
- PlayerVehicleInfo[suspect][4][pvTicket] = 0;
- }
- //TogglePlayerControllable(suspect, 1);
- if(IsPlayerInRangeOfPoint(playerid, 4.0, 1528.082397, -1677.978637, 5.890625) || IsPlayerInRangeOfPoint(playerid, 4.0, 1564.830932, -1652.506469, 28.395606) || PlayerInfo[playerid][pVW] == 20002) {
- //format(string, sizeof(string), "<< FBI Agent %s arrested suspect %s >>", sendername, giveplayer);
- //SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- SetPlayerInterior(suspect, 6);
- PlayerInfo[suspect][pVW] = 20002;
- PlayerInfo[suspect][pInt] = 6;
- SetPlayerVirtualWorld(suspect, 20002);
- SetPlayerPos(suspect,263.343597, 77.532028, 1001.039062);
- PlayerInfo[suspect][pJailTime] = time * 60;
- PlayerInfo[suspect][pJailed] = 1;
- PhoneOnline[suspect] = 1;
- DeletePVar(suspect, "IsFrozen");
- //Frozen[suspect] = 0;
- PlayerInfo[suspect][pArrested] += 1;
- SetPlayerFree(suspect,playerid, "was arrested");
- PlayerInfo[suspect][pWantedLevel] = 0;
- SetPlayerToTeamColor(suspect);
- SetPlayerWantedLevel(suspect, 0);
- WantLawyer[suspect] = 1;
- TogglePlayerControllable(suspect, 1);
- ClearAnimations(suspect);
- SetPlayerSpecialAction(suspect, SPECIAL_ACTION_NONE);
- PlayerCuffed[suspect] = 0;
- DeletePVar(suspect, "PlayerCuffed");
- PlayerCuffedTime[suspect] = 0;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4.0, 304.796508, -1526.349731, 76.539062) || IsPlayerInRangeOfPoint(playerid, 4.0, 298.313842, -1536.036865, 24.593750) || PlayerInfo[playerid][pVW] == 1324123) {
- //format(string, sizeof(string), "<< FBI Agent %s arrested suspect %s >>", sendername, giveplayer);
- //SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- TogglePlayerControllable(suspect, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(suspect, ObjectsLoadingTD[o]);
- }
- SetPVarInt(suspect, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", suspect);
- SetPlayerInterior(suspect, 1);
- PlayerInfo[suspect][pVW] = 1324123;
- PlayerInfo[suspect][pInt] = 1;
- SetPlayerVirtualWorld(suspect, 1324123);
- SetPlayerPos(suspect,315.1677,-1451.5564,-33.5292);
- format(PlayerInfo[suspect][pPrisonReason], 128, "FBI Arrest [%d stars]", PlayerInfo[suspect][pWantedLevel]);
- format(PlayerInfo[suspect][pPrisonedBy], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- PlayerInfo[suspect][pJailTime] = time * 60;
- PlayerInfo[suspect][pJailed] = 2;
- PhoneOnline[suspect] = 1;
- DeletePVar(suspect, "IsFrozen");
- //Frozen[suspect] = 0;
- PlayerInfo[suspect][pArrested] += 1;
- SetPlayerFree(suspect,playerid, "was arrested");
- PlayerInfo[suspect][pWantedLevel] = 0;
- SetPlayerToTeamColor(suspect);
- SetPlayerWantedLevel(suspect, 0);
- WantLawyer[suspect] = 1;
- TogglePlayerControllable(suspect, 1);
- ClearAnimations(suspect);
- SetPlayerSpecialAction(suspect, SPECIAL_ACTION_NONE);
- PlayerCuffed[suspect] = 0;
- DeletePVar(suspect, "PlayerCuffed");
- PlayerCuffedTime[suspect] = 0;
- }
- if(bail == 1) {
- JailPrice[suspect] = bailprice;
- format(string, sizeof(string), "You're jailed for %d seconds and fined $%d. Bail: $%d", PlayerInfo[suspect][pJailTime], moneys, JailPrice[suspect]);
- SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
- }
- else {
- JailPrice[suspect] = 0;
- format(string, sizeof(string), "You're jailed for %d seconds and fined $%d. Bail: Unable", PlayerInfo[suspect][pJailTime], moneys);
- SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
- }
- }
- }
- else
- return SendClientMessage(playerid, COLOR_GREY, " No-one close enough to arrest.");
- }
- else SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI!");
- return 1;
- }
- CMD:wanted(playerid, params[])
- {
- if(IsACop(playerid) || IsInLSFMD(playerid) || PlayerInfo[playerid][pJob] == 2 || PlayerInfo[playerid][pJob2] == 2 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2)
- {
- new string[128], x;
- SendClientMessage(playerid, COLOR_GREEN, "Current Wanted Suspects:");
- foreach(Player, i)
- {
- if(PlayerInfo[i][pWantedLevel] >= 1)
- {
- format(string, sizeof(string), "%s%s: %d", string,GetPlayerNameEx(i),PlayerInfo[i][pWantedLevel]);
- x++;
- if(x > 3) {
- SendClientMessage(playerid, COLOR_YELLOW, string);
- x = 0;
- format(string, sizeof(string), " ");
- } else {
- format(string, sizeof(string), "%s, ", string);
- }
- }
- }
- if(x <= 3 && x > 0)
- {
- string[strlen(string)-2] = '.';
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Lawyer / Cop / FBI!");
- }
- return 1;
- }
- CMD:cuff(playerid, params[])
- {
- if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5))
- {
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cuff [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't cuff yourself!"); return 1; }
- if(PlayerCuffed[giveplayerid] == 1 || GetPlayerSpecialAction(giveplayerid) == SPECIAL_ACTION_HANDSUP)
- {
- format(string, sizeof(string), "* You have been handcuffed by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You handcuffed %s, till uncuff.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s handcuffs %s, tightening the cuffs securely.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3);
- TogglePlayerControllable(giveplayerid, 0);
- ClearAnimations(giveplayerid);
- ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0,1);
- PlayerCuffed[giveplayerid] = 2;
- SetPVarInt(giveplayerid, "PlayerCuffed", 2);
- SetPVarInt(giveplayerid, "IsFrozen", 1);
- //Frozen[giveplayerid] = 1;
- PlayerCuffedTime[giveplayerid] = 300;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't restrained!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:uncuff(playerid, params[])
- {
- if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /uncuff [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pJailed] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't uncuff a jailed player.");
- return 1;
- }
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't uncuff yourself."); return 1; }
- if(PlayerCuffed[giveplayerid]>1)
- {
- PreloadAnims(giveplayerid);
- DeletePVar(giveplayerid, "IsFrozen");
- format(string, sizeof(string), "* You have been uncuffed by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You uncuffed %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has uncuffed %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(giveplayerid, "~g~Uncuffed", 2500, 3);
- TogglePlayerControllable(giveplayerid, 1);
- SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_DANCE1);
- PlayerCuffed[giveplayerid] = 0;
- PlayerCuffedTime[giveplayerid] = 0;
- DeletePVar(giveplayerid, "PlayerCuffed");
- if(PlayerDraggedBy[giveplayerid] != INVALID_PLAYER_ID) {
- IsCopDragging[PlayerDraggedBy[giveplayerid]] = INVALID_PLAYER_ID;
- PlayerDragged[giveplayerid] = 0;
- PlayerDraggedBy[giveplayerid] = INVALID_PLAYER_ID;
- }
- ClearAnimations(giveplayerid, 1);
- SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
- if(IsPlayerAttachedObjectSlotUsed(giveplayerid, 0))
- RemovePlayerAttachedObject(giveplayerid, 0);
- //ResyncPlayer(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't cuffed.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:tazer(playerid, params[]) {
- if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5))
- {
- new string[128];
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use the tazer while you're in an event.");
- return 1;
- }
- if(PlayerCuffedTime[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
- return 1;
- }
- if(PlayerCuffed[playerid] >= 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this while tazed/cuffed.");
- return 1;
- }
- if(pTazer[playerid] == 0)
- {
- pTazerReplace[playerid] = PlayerInfo[playerid][pGuns][2];
- if(PlayerInfo[playerid][pGuns][2] != 0) RemovePlayerWeapon(playerid, PlayerInfo[playerid][pGuns][2]);
- format(string, sizeof(string), "* %s unholsters their tazer.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerValidWeapon(playerid, 23, 60000);
- pTazer[playerid] = 1;
- }
- else
- {
- RemovePlayerWeapon(playerid, 23);
- GivePlayerValidWeapon(playerid, pTazerReplace[playerid], 60000);
- format(string, sizeof(string), "* %s holsters their tazer.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- pTazer[playerid] = 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI!");
- return 1;
- }
- return 1;
- }
- CMD:frisk(playerid, params[]) {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /frisk [playerid/partofname]");
- if(giveplayerid == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "You can't frisk this player as they're not connected.");
- if(ProxDetectorS(8.0, playerid, giveplayerid)) {
- if(giveplayerid == playerid)
- return SendClientMessage(playerid, COLOR_GREY, "You can't frisk yourself!");
- if(giveplayerid == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- if(IsACop(playerid) || PlayerInfo[playerid][pJob] == 8 || PlayerInfo[playerid][pJob2] == 8 || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)) {
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- format(string, sizeof(string), "*** %s' items... ***", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(PlayerInfo[giveplayerid][pWSeeds] == 1)
- SendClientMessage(playerid, COLOR_GREY, "Marijuana Seeds");
- if(PlayerInfo[giveplayerid][pPhoneBook] > 0)
- SendClientMessage(playerid, COLOR_GREY, "Phone book.");
- if(PlayerInfo[giveplayerid][pCDPlayer] > 0)
- SendClientMessage(playerid, COLOR_GREY, "CD player.");
- if(PlayerInfo[giveplayerid][pRadio] > 0) {
- format(string, sizeof(string), "Portable radio (frequency #%d kHz)", PlayerInfo[giveplayerid][pRadioFreq]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- if(PlayerInfo[giveplayerid][pCarLic] > 0)
- SendClientMessage(playerid, COLOR_GREY, "Driver's license.");
- if(PlayerInfo[giveplayerid][pBoatLic] > 0)
- SendClientMessage(playerid, COLOR_GREY, "Boat driver's license.");
- if(PlayerInfo[giveplayerid][pFlyLic] > 0)
- SendClientMessage(playerid, COLOR_GREY, "Pilot's license.");
- if(PlayerInfo[giveplayerid][pCrack] > 0) {
- format(string, sizeof(string), "%d grams of crack.", PlayerInfo[giveplayerid][pCrack]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- if(PlayerInfo[giveplayerid][pPot] > 0) {
- format(string, sizeof(string), "%d grams of pot.", PlayerInfo[giveplayerid][pPot]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- if(PlayerInfo[giveplayerid][pMats] > 0) {
- format(string, sizeof(string), "%d materials.", PlayerInfo[giveplayerid][pMats]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- if(Fishes[giveplayerid][pWeight1] > 0 || Fishes[giveplayerid][pWeight2] > 0 || Fishes[giveplayerid][pWeight3] > 0 || Fishes[giveplayerid][pWeight4] > 0 || Fishes[giveplayerid][pWeight5] > 0) {
- format(string, sizeof(string), "%d fish.", PlayerInfo[giveplayerid][pFishes]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- new weaponname[50];
- format(string, sizeof(string), "*** %s' weapons... ***", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- for(new i = 0; i < 12; i++) {
- if(PlayerInfo[giveplayerid][pGuns][i] > 0) {
- GetWeaponName(PlayerInfo[giveplayerid][pGuns][i], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "Weapon: %s.", weaponname);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- format(string, sizeof(string), "* %s has frisked %s.", GetPlayerNameEx(playerid),GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- } else {
- SetPVarInt(giveplayerid, "FriskREQ", playerid);
- format(string, sizeof(string), "* Your request to frisk %s (ID: %d) has been sent, they must '/accept frisk' first.", GetPlayerNameEx(giveplayerid), giveplayerid);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s is requesting to frisk you, type '/accept frisk' to accept.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- } else return SendClientMessage(playerid, COLOR_GREY, "You're too far away!");
- return 1;
- }
- CMD:take(playerid, params[])
- {
- if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2)
- {
- if(PlayerInfo[playerid][pRank] < 1 && PlayerInfo[playerid][pFaction] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be rank 2 or higher for this action!");
- return 1;
- }
- new string[128], choice[32], giveplayerid;
- if(sscanf(params, "s[32]u", choice, giveplayerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /take [name] [playerid/partofname]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Weapons, Pot, Crack, Cellphone, Radio.");
- return 1;
- }
- if(strcmp(choice,"radio",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- format(string, sizeof(string), "* You have taken away %s's radio.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away your radio.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's radio.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pRadio] = 0;
- PlayerInfo[giveplayerid][pRadioFreq] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- if(strcmp(choice,"cellphone",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- format(string, sizeof(string), "* You have taken away %s's cellphone.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away your cellphone.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's cellphone.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pNumber] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"weapons",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- format(string, sizeof(string), "* You have taken away %s's weapons.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away your weapons.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's weapons.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- ResetPlayerWeaponsEx(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"pot",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- format(string, sizeof(string), "* You have taken away %s's pot.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away your pot.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's pot.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pPot] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"crack",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- format(string, sizeof(string), "* You have taken away %s's crack.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away your crack.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's crack.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pCrack] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- /*else if(strcmp(choice,"materials",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- format(string, sizeof(string), "* You have taken away %s's materials.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s as taken away your materials.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has taken away %s's materials.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[giveplayerid][pMats] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }*/
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid item specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a law enforcement officer.");
- return 1;
- }
- return 1;
- }
- CMD:ticket(playerid, params[])
- {
- if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5))
- {
- new string[128], giveplayerid, moneys, reason[64];
- if(sscanf(params, "uds[64]", giveplayerid, moneys, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ticket [playerid/partofname] [price] [reason]");
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't ticket yourself.");
- return 1;
- }
- if(moneys < 1 || moneys > 1500) { SendClientMessage(playerid, COLOR_GREY, "The ticket price can't be below $1 or higher then $1,500."); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) return 1;
- format(string, sizeof(string), "* You gave %s a ticket costing $%d, reason: %s", GetPlayerNameEx(giveplayerid), moneys, reason);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has given you a ticket costing $%d, reason: %s", GetPlayerNameEx(playerid), moneys, reason);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s writes up a ticket and gives it to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Type /accept ticket, to accept it.");
- TicketOffer[giveplayerid] = playerid;
- TicketMoney[giveplayerid] = moneys;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- return 1;
- }
- CMD:gov(playerid, params[])
- {
- if(IsInLSFMD(playerid) || IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11)
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/gov)ernment [text]");
- return 1;
- }
- new string[128];
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pLeader] == 1)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** LSPD: Chief %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_DBLUE, string);
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** LSPD: Captain %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_DBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 or higher to be able to use this!");
- }
- }
- else if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** ARES: Commander %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(TEAM_ARES_COLOR, string);
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** ARES: Vice-Commander %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(TEAM_ARES_COLOR, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 or higher to be able to use this!");
- }
- }
- else if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** FBI: Director %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_DBLUE, string);
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** FBI: Assistant Director %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_DBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 or higher to be able to use this!");
- }
- }
- else if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** LSFMD: Chief %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(TEAM_CYAN_COLOR, string);
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** LSFMD: Assistant Chief %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(TEAM_CYAN_COLOR, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 or higher to be able to use this!");
- }
- }
- else if(PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5) {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** Government: Mayor %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_GOV, string);
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** Government: Deputy Mayor %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_GOV, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 or higher to be able to use this!");
- }
- }
- else if(PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pLeader] == 11) {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** SASD: Chief of Sasd %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_ORANGE, string);
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- SendClientMessageToAll(COLOR_WHITE, "|_____________Government News Announcement_____________|");
- format(string, sizeof(string), "** SASD: Major %s: %s **", GetPlayerNameEx(playerid), params);
- SendClientMessageToAllEx(COLOR_ORANGE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 or higher to be able to use this!");
- }
- }
- }
- return 1;
- }
- CMD:tourhouse(playerid, params[])
- {
- if(PlayerCuffed[playerid] >= 1 || GetPVarInt(playerid, "Injured") == 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- new string[128];
- for(new i = 0; i < sizeof(HouseInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
- {
- if(HouseInfo[i][hOwned] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't tour owned houses.");
- return 1;
- }
- if(GetPVarInt(playerid, "TourHouseConfirm") == 0)
- {
- SetPVarInt(playerid, "TourHouseConfirm", 1);
- SendClientMessage(playerid, COLOR_WHITE, "You're about to be shown the interior of this house for $30.");
- SendClientMessage(playerid, COLOR_WHITE, "If you're sure you want to pay $30 for the tour then type this command again.");
- return 1;
- }
- DeletePVar(playerid, "TourHouseConfirm");
- GivePlayerCash(playerid, -30);
- GameTextForPlayer(playerid, "~r~-$30", 3000, 1);
- format(string, sizeof(string), "* %s has entered a house.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
- if(HouseInfo[i][hCustomInterior] == 1) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = i+60000;
- SetPlayerVirtualWorld(playerid, i+60000);
- }
- }
- return 1;
- }
- CMD:fingerprint(playerid, params[]) {
- new
- iTarget,
- szSex[7],
- szMessage[128];
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2) {
- if(sscanf(params, "u", iTarget))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /fingerprint [playerid/partofname]");
- if(!IsPlayerConnected(iTarget))
- return SendClientMessage(playerid, COLOR_GREY, "The specified player is not connected.");
- if(GetDistanceBetweenPlayers(iTarget, playerid) > 5)
- return SendClientMessage(playerid, COLOR_GREY, "You're too far away.");
- if(PlayerInfo[iTarget][pCrimes] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "IAFIS has found no matches for the scanned fingerprint.");
- SendClientMessage(playerid, COLOR_GREY, "-----------------------------------------");
- if(PlayerInfo[iTarget][pSex] == 1)
- szSex = "Male";
- else
- szSex = "Female";
- format(szMessage, sizeof(szMessage), "Name: %s (age: %d, sex: %s)", GetPlayerNameEx(iTarget), PlayerInfo[iTarget][pAge], szSex);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- if(PlayerInfo[iTarget][pHouse] != INVALID_HOUSE_ID) {
- new
- szZone[MAX_ZONE_NAME];
- Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorY], szZone, MAX_ZONE_NAME);
- format(szMessage, sizeof(szMessage), "House: %d %s", PlayerInfo[iTarget][pHouse], szZone);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- } else if(PlayerInfo[iTarget][pHouse2] != INVALID_HOUSE_ID) {
- new
- szZone[MAX_ZONE_NAME];
- Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorY], szZone, MAX_ZONE_NAME);
- format(szMessage, sizeof(szMessage), "House (2): %d %s", PlayerInfo[iTarget][pHouse2], szZone);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- format(szMessage, sizeof(szMessage), "Prior convictions: %d", PlayerInfo[iTarget][pCrimes]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "Prior arrests: %d", PlayerInfo[iTarget][pArrested]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- SendClientMessage(playerid, COLOR_GREY, "-----------------------------------------");
- }
- return 1;
- }
- CMD:ram(playerid, params[])
- {
- if(IsACop(playerid)) {
- if(GetPVarInt(playerid, "PBM") > 0)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- if(PlayerCuffed[playerid] >= 1)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- new string[128], found;
- for(new i = 0; i < sizeof(HouseInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
- {
- found++;
- format(string, sizeof(string), "* %s breaches the door, and enters.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
- if(HouseInfo[i][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~r~Breached the door", 5000, 1);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = i+60000;
- SetPlayerVirtualWorld(playerid, i+60000);
- }
- }
- if(found == 0)
- return SendClientMessage(playerid, COLOR_GREY, " You're not near a house!");
- }
- else SendClientMessage(playerid, COLOR_GREY, " You're not a Cop!");
- return 1;
- }
- CMD:invite(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- new string[128], ftext[50], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /invite [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pLeader] == 0 && PlayerInfo[giveplayerid][pFaction] == 0 && PlayerInfo[giveplayerid][pGang] == 255)
- {
- if(PlayerInfo[playerid][pLeader] == 1)
- ftext = "LSPD";
- else if(PlayerInfo[playerid][pLeader] == 2)
- ftext = "FBI";
- else if(PlayerInfo[playerid][pLeader] == 3)
- ftext = "LSFMD";
- else if(PlayerInfo[playerid][pLeader] == 4)
- ftext = "Hitman Agency";
- else if(PlayerInfo[playerid][pLeader] == 5)
- ftext = "Government";
- else if(PlayerInfo[playerid][pLeader] == 9)
- ftext = "SA News";
- else if(PlayerInfo[playerid][pLeader] == 10)
- ftext = "ARES";
- else if(PlayerInfo[playerid][pLeader] == 11)
- ftext = "SASD";
- else
- return SendClientMessage(playerid, COLOR_GREY, "You can't invite a player to this faction.");
-
- InviteOffer[giveplayerid] = playerid;
- InviteFamily[giveplayerid] = 255;
- InviteFaction[giveplayerid] = PlayerInfo[playerid][pLeader];
- format(string, sizeof(string), "You have been invited to join the %s by %s - type /accept faction.", ftext, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the %s.", GetPlayerNameEx(giveplayerid),ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "The player you're trying to invite is already in another faction or family.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only leaders can do this.");
- }
- return 1;
- }
- CMD:uninvite(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /uninvite [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if((PlayerInfo[giveplayerid][pFaction] == PlayerInfo[playerid][pLeader]) && (PlayerInfo[giveplayerid][pLeader] == 0 || PlayerInfo[giveplayerid][pRank] < PlayerInfo[playerid][pRank]))
- {
- format(string, sizeof(string), "* You have been kicked from the faction by leader %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* you're now a civilian again.");
- format(string, sizeof(string), "%s has uninvited %s from the %s as a rank %i.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), factionName(PlayerInfo[giveplayerid][pFaction]), PlayerInfo[giveplayerid][pRank]);
- Log("logs/faction.log", string);
- PlayerInfo[giveplayerid][pFaction] = 0;
- PlayerInfo[giveplayerid][pRank] = 0;
- PlayerInfo[giveplayerid][pDuty] = 0;
- PlayerInfo[giveplayerid][pLeader] = 0;
- PlayerInfo[giveplayerid][pDivision] = 0;
- if(!IsValidSkin(GetPlayerSkin(giveplayerid)))
- {
- new rand = random(sizeof(CIV));
- SetPlayerSkin(giveplayerid,CIV[rand]);
- PlayerInfo[giveplayerid][pSkin] = CIV[rand];
- }
- player_remove_vip_toys(giveplayerid);
- SetPlayerToTeamColor(giveplayerid);
- pTazer[giveplayerid] = 0;
- format(string, sizeof(string), "You have kicked %s from the faction.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That player can't be uninvited by you.");
- }
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only leaders can do this.");
- }
- return 1;
- }
- CMD:ouninvite(playerid, params[]) {
- if(PlayerInfo[playerid][pLeader] >= 1) {
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ouninvite [name]");
- if(!doesAccountExist(params))
- return SendClientMessage(playerid, COLOR_WHITE, "That account does not exist!");
- OnPlayerOfflineLogin(params);
- if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 5)
- return SendClientMessage(playerid, COLOR_WHITE, "You can't uninvite this person.");
- else if((PlayerInfo[MAX_PLAYERS][pFaction] == PlayerInfo[playerid][pLeader]) && (PlayerInfo[MAX_PLAYERS][pLeader] == 0 || PlayerInfo[MAX_PLAYERS][pRank] < PlayerInfo[playerid][pRank])) {
- new string[128];
- format(string, sizeof(string), "%s has uninvited %s from the %s as a rank %i.", GetPlayerNameEx(playerid), params, factionName(PlayerInfo[MAX_PLAYERS][pFaction]), PlayerInfo[MAX_PLAYERS][pRank]);
- Log("logs/faction.log", string);
- PlayerInfo[MAX_PLAYERS][pFaction] = 0;
- PlayerInfo[MAX_PLAYERS][pRank] = 0;
- PlayerInfo[MAX_PLAYERS][pDuty] = 0;
- PlayerInfo[MAX_PLAYERS][pLeader] = 0;
- PlayerInfo[MAX_PLAYERS][pSkin] = 299;
- /*if(PlayerInfo[MAX_PLAYERS][pDonator] < 3) for(new iToyIter; iToyIter < MAX_PLAYER_ATTACHED_OBJECTS; ++iToyIter) {
- for(new LoopRapist; LoopRapist < sizeof(HoldingObjectsCop); ++LoopRapist) {
- if(HoldingObjectsCop[LoopRapist][holdingmodelid] == PlayerToyInfo[MAX_PLAYERS][iToyIter][ptModelID]) {
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptModelID] = 0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptBone] = 0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptPosX] = 0.0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptPosY] = 0.0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptPosZ] = 0.0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptPosX] = 0.0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptPosY] = 0.0;
- PlayerToyInfo[MAX_PLAYERS][iToyIter][ptPosZ] = 0.0;
- }
- }
- }*/
- new
- szMessage[64];
- format(szMessage, sizeof(szMessage), "You have kicked %s from the faction.", params);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- OnPlayerOfflineSave(params);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That player can't be uninvited by you.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only leaders can do this.");
- return 1;
- }
- CMD:giverank(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- new string[128], giveplayerid, rank;
- if(sscanf(params, "ud", giveplayerid, rank)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /giverank [playerid/partofname] [Rank (1-6)]");
- if(rank > 6 || rank < 0) { SendClientMessage(playerid, COLOR_GREY, " Don't go below number 0, or above number 6!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pLeader] != PlayerInfo[giveplayerid][pFaction])
- {
- SendClientMessage(playerid, COLOR_GRAD1, " That person is not in your faction!");
- return 1;
- }
- if(rank > PlayerInfo[giveplayerid][pRank])
- {
- format(string, sizeof(string), " You have been promoted to a higher rank by %s.", GetPlayerNameEx(playerid));
- }
- if(rank < PlayerInfo[giveplayerid][pRank])
- {
- format(string, sizeof(string), " You have been demoted to a lower rank by %s.", GetPlayerNameEx(playerid));
- }
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s has given %s rank %d in the %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), rank, factionName(PlayerInfo[giveplayerid][pFaction]));
- Log("logs/faction.log", string);
- PlayerInfo[giveplayerid][pRank] = rank;
- format(string, sizeof(string), " You have given %s rank %d.", GetPlayerNameEx(giveplayerid),rank);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command (leaders only)!");
- }
- return 1;
- }
- CMD:spikestrips(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 6 || PlayerInfo[playerid][pLeader] == 6)
- {
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pRank] >= 3)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Current deployed spikes:");
- for(new i, string[58 + MAX_PLAYER_NAME]; i < sizeof(SpikeStrips); i++)
- {
- if(SpikeStrips[i][sX] != 0) // Checking for next available ID.
- {
- format(string, sizeof(string), "HQ: Spike ID: %d | Deployed location: %s | Deployed by: %s", i, SpikeStrips[i][sDeployedAt], SpikeStrips[i][sDeployedBy]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You must be rank 3 or higher!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:deployspikes(playerid, params[])
- {
- if(IsACop(playerid))
- {
- if(PlayerInfo[playerid][pRank] >= 3)
- {
- if(GetPlayerInterior(playerid) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't deploy spike strips in interiors.");
- return 1;
- }
- for(new i; i < sizeof(SpikeStrips); i++)
- {
- if(SpikeStrips[i][sX] == 0)
- {
- new
- Float: f_TempAngle,
- string[128];
- GetPlayerPos(playerid, SpikeStrips[i][sX], SpikeStrips[i][sY], SpikeStrips[i][sZ]);
- GetPlayerFacingAngle(playerid, f_TempAngle);
- SpikeStrips[i][sObjectID] = CreateDynamicObject(2899, SpikeStrips[i][sX], SpikeStrips[i][sY], SpikeStrips[i][sZ]-0.8, 0.0, 0.0, f_TempAngle);
- GetPlayer3DZone(playerid, SpikeStrips[i][sDeployedAt], MAX_ZONE_NAME);
- SpikeStrips[i][sDeployedBy] = GetPlayerNameEx(playerid);
- format(string,sizeof(string),"Spike ID: %d successfully created.", i);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "HQ: A spike has been deployed by %s at %s.", GetPlayerNameEx(playerid), SpikeStrips[i][sDeployedAt]);
- foreach(Player, x)
- {
- if(IsACop(x))
- {
- SendClientMessage(x, TEAM_BLUE_COLOR, string);
- if(PlayerInfo[x][pRank] >= 3)
- {
- SendClientMessage(x, COLOR_YELLOW, "You can remove a spike by typing /destroyspikes.");
- }
- }
- }
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_WHITE, "Unable to spawn more strips, limit is 5.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You must be rank 3 or higher!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:destroyspikes(playerid, params[])
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /destroyspikes [spikeid]");
- if(IsACop(playerid))
- {
- if(PlayerInfo[playerid][pRank] >= 3)
- {
- new id = strval(params);
- if(!(0 <= id <= sizeof(SpikeStrips)) || SpikeStrips[id][sX] == 0) {
- return SendClientMessage(playerid, COLOR_WHITE, "Invalid spike ID.");
- }
- else
- {
- new string[43 + MAX_PLAYER_NAME + MAX_ZONE_NAME];
- DestroyDynamicObject(SpikeStrips[id][sObjectID]);
- SpikeStrips[id][sX] = 0; SpikeStrips[id][sY] = 0; SpikeStrips[id][sZ] = 0;
- SpikeStrips[id][sObjectID] = INVALID_OBJECT_ID;
- format(string,sizeof(string),"Spike ID: %d successfully deleted.", id);
- SendClientMessage(playerid, COLOR_WHITE, string);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(playerid, zone, sizeof(zone));
- format(string, sizeof(string), "HQ: A spike has been destroyed by %s at %s.", GetPlayerNameEx(playerid), zone);
- foreach(Player, x)
- {
- if(IsACop(x))
- {
- SendClientMessage(x, TEAM_BLUE_COLOR, string);
- }
- }
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You must be rank 3 or higher!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:searchcar(playerid, params[])
- {
- new string[128];
- if(!IsACop(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / Coastguard!");
- return 1;
- }
- new carid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid,carid);
- if(!IsPlayerInRangeOfVehicle(playerid, closestcar, 9.0))
- {
- SendClientMessage(playerid,COLOR_GREY,"You're not near any vehicles.");
- return 1;
- }
- foreach(Player, i)
- {
- new v = GetPlayerVehicle(i, closestcar);
- if(v != -1)
- {
- string[0] = 0;
- for(new x = 0; x < 3; x++)
- {
- if(PlayerVehicleInfo[i][v][pvWeapons][x] != 0)
- {
- new
- szWep[20];
- GetWeaponName(PlayerVehicleInfo[i][v][pvWeapons][x], szWep, sizeof(szWep));
- if(isnull(string)) format(string, sizeof(string), "* Trunk contains: %s", szWep);
- else format(string, sizeof(string), "%s, %s", string, szWep);
- }
- }
- if(!isnull(string)) SendClientMessage(playerid, COLOR_WHITE, string);
- else SendClientMessage(playerid, COLOR_WHITE, "* Trunk contains: nothing.");
- }
- }
- return 1;
- }
- CMD:deploycade(playerid, params[])
- {
- if(IsACop(playerid))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on foot to use this command.");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] < 3 && PlayerInfo[playerid][pFaction] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 3 to use this command.");
- return 1;
- }
- if(GetPlayerInterior(playerid) != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't deploy barricades in interiors.");
- return 1;
- }
- new string[128], Float:Position[4];
- for(new i; i<MAX_BARRICADES; i++)
- {
- if(Barricade[i] == 0)
- {
- GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
- GetPlayerFacingAngle(playerid, Position[3]);
- Barricade[i] = CreateDynamicObject(981, Position[0], Position[1], Position[2], 0.0, 0.0, Position[3]+180.0, -1, -1, -1, 200.0);
- SetPlayerPos(playerid, Position[0], Position[1]+4, Position[2]);
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(playerid, zone, sizeof(zone));
- format(string, sizeof(string), "HQ: A barricade has been deployed by %s at %s.", GetPlayerNameEx(playerid), zone);
- foreach(Player, x)
- {
- if(IsACop(x))
- {
- SendClientMessage(x, TEAM_BLUE_COLOR, string);
- if(PlayerInfo[x][pRank] >= 3)
- {
- SendClientMessage(x, COLOR_YELLOW, "You can remove a barricade by typing /destroycade.");
- }
- }
- }
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "All available barriers have been deployed.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:destroycade(playerid, params[])
- {
- if(IsACop(playerid))
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You must be on foot to use this command.");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] < 3 && PlayerInfo[playerid][pFaction] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need to be at least rank 3 to use this command.");
- return 1;
- }
- new string[128], Float:Position[3];
- for(new i; i<MAX_BARRICADES; i++)
- {
- GetDynamicObjectPos(Barricade[i], Position[0], Position[1], Position[2]);
- if(IsPlayerInRangeOfPoint(playerid, 5.0, Position[0], Position[1], Position[2]))
- {
- DestroyDynamicObject(Barricade[i]);
- Barricade[i] = 0;
- new zone[MAX_ZONE_NAME];
- GetPlayer3DZone(playerid, zone, sizeof(zone));
- format(string, sizeof(string), "HQ: A barricade has been destroyed by %s at %s.", GetPlayerNameEx(playerid), zone);
- foreach(Player, x)
- {
- if(IsACop(x))
- {
- SendClientMessage(x, TEAM_BLUE_COLOR, string);
- }
- }
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You're not near any barricades.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:vcheck(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new carid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, carid);
- if(IsTrailerAttachedToVehicle(carid))
- {
- new carbeingtowed = GetVehicleTrailer(carid);
- foreach(Player, i)
- {
- new v = GetPlayerVehicle(i, carbeingtowed);
- if(v != -1)
- {
- new string[78 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "Vehicle registration: %d | Name: %s | Owner: %s | Ticket: $%d.",carbeingtowed,GetVehicleName(PlayerVehicleInfo[i][v][pvId]),GetPlayerNameEx(i),PlayerVehicleInfo[i][v][pvTicket]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- for(new f = 0; f < MAX_FAMILY; f++)
- {
- new v = GetGangVehicle(f, carbeingtowed);
- if(v != -1)
- {
- new string[72 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "Vehicle registration: %d | Name: %s | Owner: %s.",carbeingtowed,GetVehicleName(FamilyVehicleInfo[f][v][fvId]),FamilyInfo[f][FamilyLeader]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "This vehicle is not owned by anyone!");
- }
- else if(IsPlayerInRangeOfVehicle(playerid, closestcar, 9.0) && !IsTrailerAttachedToVehicle(carid))
- {
- foreach(Player, i)
- {
- new v = GetPlayerVehicle(i, closestcar);
- if(v != -1)
- {
- new string[78 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "Vehicle registration: %d | Name: %s | Owner: %s | Ticket: $%d.",closestcar,GetVehicleName(PlayerVehicleInfo[i][v][pvId]),GetPlayerNameEx(i),PlayerVehicleInfo[i][v][pvTicket]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- for(new f = 0; f < MAX_FAMILY; f++)
- {
- new v = GetGangVehicle(f, closestcar);
- if(v != -1)
- {
- new string[72 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "Vehicle registration: %d | Name: %s | Owner: %s.",closestcar,GetVehicleName(FamilyVehicleInfo[f][v][fvId]),FamilyInfo[f][FamilyLeader]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "This vehicle is not owned by anyone!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "ERROR: you're not towing a vehicle/near to another vehicle.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use this command.");
- }
- return 1;
- }
- CMD:vmdc(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /vmdc [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- format(string, sizeof(string), "*** %s' Vehicles ***", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- for(new i=0; i<MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[giveplayerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
- {
- format(string, sizeof(string), "Vehicle registration: %d | Vehicle Name: %s | Ticket: $%d.",PlayerVehicleInfo[giveplayerid][i][pvId],GetVehicleName(PlayerVehicleInfo[giveplayerid][i][pvId]),PlayerVehicleInfo[giveplayerid][i][pvTicket]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(PlayerVehicleInfo[giveplayerid][i][pvImpounded])
- {
- format(string, sizeof(string), "Vehicle registration: Voided (impounded) | Vehicle Name: %s | Ticket: $%d.",VehicleName[PlayerVehicleInfo[giveplayerid][i][pvModelId] - 400],PlayerVehicleInfo[giveplayerid][i][pvTicket]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
- }
- }
- return 1;
- }
- CMD:vticket(playerid, params[])
- {
- if(IsACop(playerid))
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /vticket [vehicle registration]");
- if(PlayerInfo[playerid][pTicketTime] != 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You must wait within a minute in order to use this command again!");
- return 1;
- }
- new Float: x, Float: y, Float: z, vehicleid = strval(params);
- GetVehiclePos(vehicleid, x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
- {
- if(vehicleid != INVALID_VEHICLE_ID)
- {
- foreach(Player, i)
- {
- new v = GetPlayerVehicle(i, vehicleid);
- if(v != -1)
- {
- new string[62 + MAX_PLAYER_NAME];
- PlayerVehicleInfo[i][v][pvTicket] += 1000;
- PlayerInfo[playerid][pTicketTime] = 60;
- format(string, sizeof(string), "You have issued a $1000 ticket on %s's %s.",GetPlayerNameEx(i),GetVehicleName(PlayerVehicleInfo[i][v][pvId]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- }
- for(new f = 0; f < MAX_FAMILY; f++)
- {
- new v = GetGangVehicle(f, vehicleid);
- if(v != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't issue a ticket on a family owned vehicle!");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "This vehicle does not have any registration!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You need to be near such vehicle!");
- }
- }
- return 1;
- }
- CMD:tow(playerid, params[]) {
- if(IsACop(playerid)) {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new
- carid = GetPlayerVehicleID(playerid);
- if(IsATowTruck(carid))
- {
- new
- closestcar = GetClosestCar(playerid, carid);
- foreach(Player, i) {
- if(arr_Towing[i] == closestcar || (GetPlayerVehicleID(i) == closestcar && GetPlayerState(i) == 2)) return SendClientMessage(playerid, COLOR_GREY, "You can't tow a vehicle which is occupied, or in tow.");
- }
- if(GetDistanceToCar(playerid,closestcar) <= 8 && !IsTrailerAttachedToVehicle(carid)) {
- foreach(Player, i) {
- if(GetPlayerVehicle(i, closestcar) != -1) {
- new
- hKey;
- if(((hKey = PlayerInfo[i][pHouse]) != INVALID_HOUSE_ID) && IsPlayerInRangeOfPoint(playerid, 50.0, HouseInfo[hKey][hExteriorX], HouseInfo[hKey][hExteriorY], HouseInfo[hKey][hExteriorZ])
- ||((hKey = PlayerInfo[i][pHouse2]) != INVALID_HOUSE_ID) && IsPlayerInRangeOfPoint(playerid, 50.0, HouseInfo[hKey][hExteriorX], HouseInfo[hKey][hExteriorY], HouseInfo[hKey][hExteriorZ])) {
- return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't need to be towed.");
- }
- if(ProxDetectorS(30.0,playerid,i))
- SendClientMessage(i, COLOR_LIGHTBLUE, "Someone is attempting to tow your vehicle away!");
- arr_Towing[playerid] = closestcar;
- SendClientMessage(playerid, COLOR_GRAD2, "This player owned vehicle is available for impounding.");
- return AttachTrailerToVehicle(closestcar,carid);
- }
- }
- SendClientMessage(playerid, COLOR_GRAD2, "This vehicle has no registration, it is available for impounding.");
- AttachTrailerToVehicle(closestcar,carid);
- arr_Towing[playerid] = closestcar;
- return 1;
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to tow with this vehicle.");
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You need to be inside a vehicle to use this command!");
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command.");
- return 1;
- }
- CMD:untow(playerid, params[])
- {
- if(IsACop(playerid))
- {
- if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
- {
- SendClientMessage(playerid, COLOR_GRAD1,"You have unhooked the vehicle that you were towing.");
- arr_Towing[playerid] = INVALID_VEHICLE_ID;
- DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1,"You're currently not towing anything.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command.");
- }
- return 1;
- }
- CMD:lspddiv(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /lspddiv [playerid/partofname] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 3 (FTO), 4 (S.W.A.T.), 5 (D.E.B.), 7 (TE)");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 1)
- {
- if(division == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 3;
- format(string, sizeof(string), "You're now in the FTO division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the FTO division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 7) {
- PlayerInfo[giveplayerid][pDivision] = 7;
- format(string, sizeof(string), "You're now in the Traffic Enforcement division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the Traffic Enforcement division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 4)
- {
- PlayerInfo[giveplayerid][pDivision] = 4;
- format(string, sizeof(string), "You're now in the S.W.A.T. division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the S.W.A.T. division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 5)
- {
- PlayerInfo[giveplayerid][pDivision] = 5;
- format(string, sizeof(string), "You're now in the D.E.B. division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the D.E.B. division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 1)
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You have been kicked from your division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s out of their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only R4+ can do this.");
- }
- }
- return 1;
- }
- CMD:sasddiv(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /lspddiv [playerid/partofname] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 3 (FTO), 4 (S.W.A.T.), 5 (D.E.B.), 7 (TE)");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 1)
- {
- if(division == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 3;
- format(string, sizeof(string), "You're now in the FTO division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the FTO division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 7) {
- PlayerInfo[giveplayerid][pDivision] = 7;
- format(string, sizeof(string), "You're now in the Traffic Enforcement division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the Traffic Enforcement division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 4)
- {
- PlayerInfo[giveplayerid][pDivision] = 4;
- format(string, sizeof(string), "You're now in the S.W.A.T. division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the S.W.A.T. division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 5)
- {
- PlayerInfo[giveplayerid][pDivision] = 5;
- format(string, sizeof(string), "You're now in the D.E.B. division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the D.E.B. division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 1)
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You have been kicked from your division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s out of their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only R4+ can do this.");
- }
- }
- return 1;
- }
- CMD:aresdiv(playerid, params[])
- {
- if(IsACop(playerid))
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /lspddiv [playerid/partofname] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 3 (FTO), 4 (S.W.A.T.), 5 (D.E.B.), 7 (TE)");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 10)
- {
- if(division == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 3;
- format(string, sizeof(string), "You're now in the FTO division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the FTO division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 7) {
- PlayerInfo[giveplayerid][pDivision] = 7;
- format(string, sizeof(string), "You're now in the Traffic Enforcement division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the Traffic Enforcement division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 4)
- {
- PlayerInfo[giveplayerid][pDivision] = 4;
- format(string, sizeof(string), "You're now in the S.W.A.T. division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the S.W.A.T. division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 5)
- {
- PlayerInfo[giveplayerid][pDivision] = 5;
- format(string, sizeof(string), "You're now in the D.E.B. division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the D.E.B. division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 1)
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You have been kicked from your division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s out of their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only R4+ can do this.");
- }
- }
- return 1;
- }
- CMD:destroyplant(playerid, params[]) {
- if(IsACop(playerid) || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pRank] >= 5)) {
- foreach(Player, i) if(IsValidDynamicObject(PlayerInfo[i][pWeedObject]) && IsPlayerInRangeOfPoint(playerid, 4, PlayerInfo[i][pWeedPos][0], PlayerInfo[i][pWeedPos][1], PlayerInfo[i][pWeedPos][2])) {
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[i][pWeedVW] && GetPlayerInterior(playerid) == PlayerInfo[i][pWeedInt]) {
- new
- szMessage[128];
- ApplyAnimation(playerid,"BOMBER","BOM_Plant_Crouch_Out", 4.0, 0, 0, 0, 0, 0, 1);
- format(szMessage, sizeof(szMessage), "* You seized a marijuana plant weighing %d grams.", PlayerInfo[i][pWeedGrowth]);
- SendClientMessage(playerid, COLOR_GREY, szMessage);
- format(szMessage, sizeof(szMessage), "* %s seizes the weed plant.", GetPlayerNameEx(playerid), GetPlayerNameEx(i));
- ProxDetector(25.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- DestroyDynamicObject(PlayerInfo[i][pWeedObject]);
- PlayerInfo[i][pWeedObject] = 0;
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You're not at a plant.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a law enforcement officer.");
- }
- return 1;
- }
- CMD:omakeleader(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 5) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], name[MAX_PLAYER_NAME], faction;
- if(sscanf(params, "us[MAX_PlAYER_NAME]", name, faction)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /omakeleader [playername] [factionid]");
- SendClientMessage(playerid, COLOR_GRAD3, "|1 LSPD |2 FBI |3 LSFMD |4 Hitman |5 Government |9 SA News |10 ARES");
- return 1;
- }
- new giveplayerid = ReturnUser(name);
- if(doesAccountExist(name))
- {
- new
- ftext[100];
- if(faction == 1)
- ftext = "Los Santos Police Department";
- else if(faction == 2)
- ftext = "Federal Bureu Investigation";
- else if(faction == 3)
- ftext = "Los Santos Fire & Medical Department";
- else if(faction == 4)
- ftext = "Hitman Agency";
- else if(faction == 5)
- ftext = "Government";
- else if(faction == 9)
- ftext = "SA News";
- else if(faction == 10)
- ftext = "ARES";
- else
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction ID.");
-
- if(faction == 2 && faction == 5 && faction == 9 && faction == 10)
- {
- return SCM(playerid, -1, "Faction is closed.");
- }
- if(faction == 1)
- {
- format(pdleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 2)
- {
- format(fbileader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 3)
- {
- format(fmdleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
-
- OnPlayerOfflineLogin(name);
- PlayerInfo[MAX_PLAYERS][pLeader] = faction;
- PlayerInfo[MAX_PLAYERS][pRank] = 6;
- PlayerInfo[MAX_PLAYERS][pFaction] = faction;
- format(string, sizeof(string), "AdmCmd: %s has offline appointed %s the leader of %s.", GetPlayerNameEx(playerid), name, ftext);
- format(string, sizeof(string), "%s have made %s the leader of the %s.", GetPlayerNameEx(playerid), name, ftext);
- Log("logs/faction.log", string);
- format(string, sizeof(string), "You have made %s the leader of the %s.", name,ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[MAX_PLAYERS][pGang] = 255;
- OnPlayerOfflineSave(name);
- }
- else SCM(playerid, -1, "That account does not exist.");
- }
- else SCM(playerid, COLOR_GREY, NOTAUTH);
- return 1;
- }
- CMD:makeleader(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 5) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], giveplayerid, faction;
- if(sscanf(params, "ud", giveplayerid, faction)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /makeleader [playerid/partofname] [factionid]");
- SendClientMessage(playerid, COLOR_GRAD3, "|1 LSPD |2 FBI |3 LSFMD |4 Hitman |5 Government |9 SA News |10 ARES |11 Sasd");
- return 1;
- }
- if(giveplayerid != INVALID_PLAYER_ID) {
- new
- ftext[100];
- if(faction == 1)
- ftext = "Los Santos Police Department";
- else if(faction == 2)
- ftext = "Federal Bureu Investigation";
- else if(faction == 3)
- ftext = "Los Santos Fire & Medical Department";
- else if(faction == 4)
- ftext = "Hitman Agency";
- else if(faction == 5)
- ftext = "Government";
- else if(faction == 9)
- ftext = "SA News";
- else if(faction == 10)
- ftext = "ARES";
- else if(faction == 11)
- ftext = "San Andreas Sheriff Department";
- else
- return SendClientMessage(playerid, COLOR_GREY, "Invalid faction ID.");
- if(faction == 1)
- {
- format(pdleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 2)
- {
- format(fbileader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 3)
- {
- format(fmdleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 4)
- {
- format(governmentleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 9)
- {
- format(GMAleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 10)
- {
- format(aresleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- else if(faction == 11)
- {
- format(sasdleader, 128, "%s", GetPlayerNameEx(giveplayerid));
- }
- PlayerInfo[giveplayerid][pLeader] = faction;
- PlayerInfo[giveplayerid][pRank] = 6;
- PlayerInfo[giveplayerid][pFaction] = faction;
- format(string, sizeof(string), "Admin %s has appointed you the leader of {33AA33}%s.", GetPlayerNameEx(playerid), ftext);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "%s have made %s the leader of the %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(playerid), ftext);
- Log("logs/faction.log", string);
- format(string, sizeof(string), "You have made %s the leader of the %s.", GetPlayerNameEx(giveplayerid),ftext);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pGang] = 255;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:walkstyle(playerid, params[])
- {
- new
- iSuccess;
- switch(strval(params))
- {
- case 1: { SetPlayerWalkingStyle(playerid, 0); iSuccess++; }
- case 2: { SetPlayerWalkingStyle(playerid, 3); iSuccess++; }
- case 3: { SetPlayerWalkingStyle(playerid, 4); iSuccess++; }
- case 4: { SetPlayerWalkingStyle(playerid, 5); iSuccess++; }
- case 5: { SetPlayerWalkingStyle(playerid, 6); iSuccess++; }
- case 6: { SetPlayerWalkingStyle(playerid, 8); iSuccess++; }
- case 7: { SetPlayerWalkingStyle(playerid, 9); iSuccess++; }
- case 8: { SetPlayerWalkingStyle(playerid, 10); iSuccess++; }
- case 9: { SetPlayerWalkingStyle(playerid, 11); iSuccess++; }
- case 10: { SetPlayerWalkingStyle(playerid, 12); iSuccess++; }
- case 11: { SetPlayerWalkingStyle(playerid, 13); iSuccess++; }
- default: SendClientMessage(playerid, COLOR_WHITE, "USAGE: /walkstyle [1-11]");
- }
- if(iSuccess > 0) SendClientMessage(playerid, COLOR_WHITE, "You are now using a new walking style.");
- return 1;
- }
- stock SetPlayerWalkingStyle(playerid, style)
- {
- PlayerInfo[playerid][pWalkStyle] = style;
- }
- stock GetPlayerWalkingStyle(playerid)
- {
- return PlayerInfo[playerid][pWalkStyle];
- }
- forward WalkAnim(playerid);
- public WalkAnim(playerid)
- {
- new keys, updown, leftright;
- GetPlayerKeys(playerid,keys,updown,leftright);
- if (GetPlayerWalkingStyle(playerid) == WALK_NORMAL)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_player",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_PED)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_civi",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_civi",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_GANGSTA)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_gang1",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_GANGSTA2)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_gang2",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_OLD)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_old",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_old",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_FAT_OLD)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_fatold",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_fatold",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_FAT)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_fat",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_fat",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_LADY)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WOMAN_walknorm",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_LADY2)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WOMAN_walkbusy",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_WHORE)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WOMAN_walkpro",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_WHORE2)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WOMAN_walksexy",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_DRUNK)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","WALK_drunk",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","WALK_drunk",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- else if (GetPlayerWalkingStyle(playerid) == WALK_BLIND)
- {
- if ((keys & KEY_WALK && updown & KEY_UP) || (keys & KEY_WALK && updown & KEY_DOWN) || (keys & KEY_WALK && leftright & KEY_LEFT) || (keys & KEY_WALK && leftright & KEY_RIGHT))
- {
- KillTimer(walktime[playerid]);
- ApplyAnimation(playerid,"PED","Walk_Wuzi",4.1,1,1,1,1,1);
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- else ApplyAnimation(playerid,"PED","Walk_Wuzi",4.0,0,0,0,0,1), KillTimer(walktime[playerid]);
- }
- return true;
- }
- CMD:gate(playerid, params[]) {
- new
- string[128];
-
- if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pFaction] == 11 || PlayerInfo[playerid][pFaction] == 11) {
- GetPlayerPos(playerid, Positions[0][0], Positions[0][1], Positions[0][2]);
- GetDynamicObjectPos(LSPDGate, Positions[1][0], Positions[1][1], Positions[1][2]);
- GetDynamicObjectPos(LSPDGate2, Positions[4][0], Positions[4][1], Positions[4][2]);
- GetDynamicObjectPos(FBIGate1, Positions[2][0], Positions[2][1], Positions[2][2]);
- GetDynamicObjectPos(FBIGate2, Positions[3][0], Positions[3][1], Positions[3][2]);
- if(GetDistance(Positions[0][0], Positions[0][1], Positions[0][2], Positions[1][0], Positions[1][1], Positions[1][2]) < 15.0) {
- if(LSPDGateStatus == 0) {
- format(string, sizeof(string), "* %s uses their remote to open the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetDynamicObjectRot(LSPDGate, 0.000000, 0, 90);
- LSPDGateStatus = 1;
- }
- else {
- LSPDGateStatus = 0;
- SetDynamicObjectRot(LSPDGate, 0.000000, 90, 90);
- format(string, sizeof(string), "* %s uses their remote to close the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else if(GetDistance(Positions[0][0], Positions[0][1], Positions[0][2], Positions[4][0], Positions[4][1], Positions[4][2]) < 15.0) {
- if(LSPDGate2Status == 0) {
- format(string, sizeof(string), "* %s uses their remote to open the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(LSPDGate2, 1588.6501464844, -1638.0750732422, 6.2343215942383, 3);
- LSPDGate2Status = 1;
- }
- else {
- format(string, sizeof(string), "* %s uses their remote to close the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(LSPDGate2, 1588.6428222656, -1638.02734375, 15.240161895752, 3);
- LSPDGate2Status = 0;
- }
- }
- else if(GetDistance(Positions[0][0], Positions[0][1], Positions[0][2], Positions[4][0], Positions[4][1], Positions[4][2]) < 15.0) {
- if(LSPDGate2Status == 0) {
- format(string, sizeof(string), "* %s uses their remote to open the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(LSPDGate2, 313.49652099609, -1482.9189453125, 26.682577133179, 3);
- LSPDGate2Status = 1;
- }
- else {
- format(string, sizeof(string), "* %s uses their remote to close the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(LSPDGate2, 320.40628051758, -1487.9129638672, 26.900407791138, 3);
- LSPDGate2Status = 0;
- }
- }
- }
-
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 5) {
- if(GetDistance(Positions[0][0], Positions[0][1], Positions[0][2], Positions[2][0], Positions[2][1], Positions[2][2]) < 15.0) {
- if(FBIGate1Status == 0) {
- format(string, sizeof(string), "* %s uses their remote to open the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(FBIGate1, 313.49652099609, -1482.9189453125, 26.682577133179, 3);
- FBIGate1Status = 1;
- }
- else {
- format(string, sizeof(string), "* %s uses their remote to close the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(FBIGate1, 320.40628051758, -1487.9129638672, 26.900407791138, 3);
- FBIGate1Status = 0;
- }
- }
- else if(GetDistance(Positions[0][0], Positions[0][1], Positions[0][2], Positions[3][0], Positions[3][1], Positions[3][2]) < 15.0) {
- if(FBIGate2Status == 0) {
- format(string, sizeof(string), "* %s uses their remote to open the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(FBIGate2, 290.56341552734, -1547.8900146484, 27.16854095459, 3);
- FBIGate2Status = 1;
- }
- else {
- format(string, sizeof(string), "* %s uses their remote to close the gates.", GetPlayerNameEx(playerid));
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MoveDynamicObject(FBIGate2, 283.96463012695, -1543.154296875, 27.167940139771, 3);
- FBIGate2Status = 0;
- }
- }
- }
- return 1;
- }
- CMD:lift(playerid, params[])
- {
- if(onminer[playerid] == 0) return SendClientMessage(playerid, -1, "You're not a miner.");
- if(exitp == 1) return SendClientMessage(playerid, -1, "Please be patient.");
- if(!IsPlayerInRangeOfPoint(playerid, 5, -1899.0999755859, -1636.5999755859, 25.700000762939)
- && !IsPlayerInRangeOfPoint(playerid, 5, -1899.0996093750, -1636.5996093750, -59.40000152587)) return SendClientMessage(playerid, -1, "You are not near a lift.");
- if(vputi != 0) return SendClientMessage(playerid, -1, "Elevator is on its way.");
- if(lift == 0)
- {
- SetTimer("UpdateDoors", 17500, false);
- MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, -61.0, 6);
- MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, -61.0, 6);
- MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, -61.0, 6);
- MoveObject(upgate, -1899.0999755859, -1636.5999755859, 25.700000762939,5);
- vputi = 1;
- lift = 1;
- }
- else
- {
- SetTimer("UpdateDoors", 17500, false);
- MoveObject(floorlift[0], -1900.1999511719, -1638.9000244141, 23.89999961853, 6);
- MoveObject(floorlift[1], -1901.4000244141, -1638.9000244141, 23.89999961853, 6);
- MoveObject(floorlift[2], -1902.0999755859, -1638.9000244141, 23.89999961853, 6);
- MoveObject(downgate, -1899.099609375, -1636.599609375, -59.400001525879, 5);
- vputi = 1;
- lift = 0;
- }
- return 1;
- }
- CMD:fix(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7)
- {
- new string[32 + MAX_PLAYER_NAME];
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't repair while inside the vehicle.");
- return 1;
- }
- if(PlayerInfo[playerid][pMechTime] > 0)
- {
- format(string, sizeof(string), "You must wait %d seconds!", PlayerInfo[playerid][pMechTime]);
- SendClientMessage(playerid, COLOR_GRAD1,string);
- }
- else if(GetPVarInt(playerid, "EventToken"))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't use this while in an event.");
- }
- else
- {
- new closestcar = GetClosestCar(playerid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 10.0))
- {
- if(!IsABike(closestcar) && !IsAPlane(closestcar)) {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(closestcar,engine,lights,alarm,doors,bonnet,boot,objective);
- if(bonnet == VEHICLE_PARAMS_OFF || bonnet == VEHICLE_PARAMS_UNSET)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The vehicle hood must be opened in order to repair it.");
- return 1;
- }
- }
- PlayerInfo[playerid][pMechTime] = 60;
- SetVehicleHealth(closestcar, 1000.0);
- format(string, sizeof(string), "* %s has repaired the vehicle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else return SendClientMessage(playerid, COLOR_GRAD1, "You're not close enough to any vehicle.");
- }
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You're not a Mechanic!");
- return 1;
- }
- CMD:nos(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7) {
- if(IsPlayerInAnyVehicle(playerid)) {
- if(GetPVarInt(playerid, "EventToken")) {
- return SendClientMessage(playerid, COLOR_GRAD1, "You can't use this while in an event.");
- }
- if(! IsPlayerInInvalidNosVehicle(playerid))
- {
- if(GetPlayerCash(playerid) < 25)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You do not have the money for that.");
- return 1;
- }
- new string[128];
- new nostogive;
- new level = PlayerInfo[playerid][pMechSkill];
- if(level >= 0 && level < 50) { nostogive = 1009; }
- else if(level >= 50 && level < 100) { nostogive = 1009; }
- else if(level >= 100 && level < 200) { nostogive = 1008; }
- else if(level >= 200 && level < 400) { nostogive = 1008; }
- else if(level >= 400) { nostogive = 1010; }
- AddVehicleComponent(GetPlayerVehicleID(playerid),nostogive);
- //NOS
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- GivePlayerCash(playerid, -25);
- format(string, sizeof(string), "* %s added nitrous injection to the vehicle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "Nitrous injection can't be installed on this vehicle.");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in a vehicle.");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "You're not a Mechanic!");
- }
- return 1;
- }
- CMD:hyd(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerCash(playerid) < 25)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You do not have the money for that.");
- return 1;
- }
- if(! IsPlayerInInvalidNosVehicle(playerid)) {
- new string[128];
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
- GivePlayerCash(playerid, -25);
- format(string, sizeof(string), "* %s added hydraulics to the vehicle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "Hydraulics can't be installed in this vehicle.");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in a vehicle.");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_WHITE, "You're not a Mechanic!");
- }
- return 1;
- }
- CMD:repair(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 7 && PlayerInfo[playerid][pJob2] != 7)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Car Mechanic!");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD1, "You can't repair while inside the vehicle.");
- new string[128];
- if(PlayerInfo[playerid][pMechTime] >= 1)
- {
- format(string, sizeof(string), "You must wait %d seconds!", PlayerInfo[playerid][pMechTime]);
- SendClientMessage(playerid, COLOR_GRAD1,string);
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken")) {
- return SendClientMessage(playerid, COLOR_GRAD1, "You can't use this while in an event.");
- }
- new giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /repair [playerid/partofname] [price]");
- if(PlayerInfo[playerid][pTire] > 0)
- {
- if(money < 1 || money > 1000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then $1 or above $1,000!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new closestcar = GetClosestCar(playerid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 8.0))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid)&& IsPlayerInAnyVehicle(giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't offer a repair to yourself."); return 1; }
- if(!IsABike(closestcar) && !IsAPlane(closestcar))
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(closestcar,engine,lights,alarm,doors,bonnet,boot,objective);
- if(bonnet == VEHICLE_PARAMS_OFF || bonnet == VEHICLE_PARAMS_UNSET)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The vehicle hood must be opened in order to repair it.");
- return 1;
- }
- }
- format(string, sizeof(string), "* You offered %s to fix their car for $%d .",GetPlayerNameEx(giveplayerid),money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Car Mechanic %s wants to repair your car for $%d, (type /accept repair) to accept.",GetPlayerNameEx(playerid),money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pMechTime] = 60;
- RepairOffer[giveplayerid] = playerid;
- RepairPrice[giveplayerid] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not near you / not in a car.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not near any vehicle.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is offline.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You do not have any tires, buy one from a craftsman.");
- }
- return 1;
- }
- CMD:mechduty(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7)
- {
- if(JobDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're now off duty from your Car Mechanic job and will not receive calls anymore.");
- JobDuty[playerid] = 0;
- Mechanics -= 1;
- }
- else
- {
- if(TransportDuty[playerid] != 0) return SendClientMessage(playerid,COLOR_GREY,"You need to get off duty as a transport driver first.");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're now on duty with your Car Mechanic job and will receive calls from people in need.");
- JobDuty[playerid] = 1;
- ++Mechanics;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not a mechanic!");
- }
- return 1;
- }
- CMD:editcardealership(playerid, params[])
- {
- for(new d = 0 ; d < MAX_CARDEALERSHIPS; d++)
- {
- if(IsPlayerInRangeOfPoint(playerid, CarDealershipInfo[d][cdRadius], CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ])) {
- if(IsPlayerOwnerOfCDEx(playerid, d))
- {
- SetPVarInt(playerid, "editingcd", d);
- SetPVarInt(playerid, "editingcdveh", -1);
- SetPVarInt(playerid, "editingcdvehpos", 0);
- SetPVarInt(playerid, "editingcdvehnew", 0);
- new listitems[] = "1 New Vehicle\n2 My Vehicles\n3 Upgrade\n4 Till";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDIT,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You do not own that Car Dealership.");
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You must be standing inside the radius of the Car Dealership.");
- return 1;
- }
- CMD:editcar(playerid, params[])
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- new v, d;
- v = GetCarDealershipVehicleId(vehicleid);
- d = GetCarDealershipId(vehicleid);
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "ERROR: you're not in any car.");
- if(v != -1 && d != -1)
- {
- if(IsPlayerOwnerOfCDEx(playerid, d))
- {
- SetPVarInt(playerid, "editingcd", d);
- SetPVarInt(playerid, "editingcdveh", v);
- SetPVarInt(playerid, "editingcdvehpos", 0);
- SetPVarInt(playerid, "editingcdvehnew", 0);
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You do not own that Car Dealership.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Car is not part of a Car Dealership.");
- }
- return 1;
- }
- CMD:buydealership(playerid, params[])
- {
- for(new d = 0 ; d < MAX_CARDEALERSHIPS; d++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]))
- {
- if(!CarDealershipInfo[d][cdOwned])
- {
- if(PlayerInfo[playerid][pCash] < CarDealershipInfo[d][cdPrice])
- {
- SendClientMessage(playerid, COLOR_GREY, " You do not have enough money to buy this Car Dealership.");
- return 1;
- }
- PlayerInfo[playerid][pCash] -= CarDealershipInfo[d][cdPrice];
- SetPlayerOwnerOfCD(playerid, d);
- PlayerPlayMusic(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "Congratulations, On Your New Purchase.");
- SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new car dealership help section.");
- SendClientMessage(playerid, COLOR_GRAD1, " Please set the position you want your brought cars to spawn.");
- SendClientMessage(playerid, COLOR_GRAD2, " Stand where you want to have your brought vehicles spawn.");
- SendClientMessage(playerid, COLOR_GRAD2, " Once ready press the fire button.");
- SendClientMessage(playerid, COLOR_WHITE, " Note: If you don't set it your customers wont be able to buy any cars.");
- SetPVarInt(playerid, "editingcdvehpos", 2);
- SetPVarInt(playerid, "editingcd", d);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That Car Dealership is already owned and it's not for sale.");
- }
- }
- }
- return 1;
- }
- CMD:selldealership(playerid, params[])
- {
- new string[128];
- for(new d = 0 ; d < MAX_CARDEALERSHIPS; d++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]))
- {
- if(IsPlayerOwnerOfCDEx(playerid, d))
- {
- SetPVarInt(playerid, "editingcd", d);
- format(string,128,"Are you sure you want to sell this Car Dealership for $%d?\n.", CarDealershipInfo[d][cdPrice] / 2);
- ShowPlayerDialogEx(playerid,DIALOG_CDSELL,DIALOG_STYLE_MSGBOX,"Warning:",string,"Sell","Cancel");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not the owner of this car dealership.");
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You have to be near a car dealership.");
- return 1;
- }
- CMD:createcdveh(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], price, dealershipid, modelid;
- if(sscanf(params, "ddd", price, dealershipid, modelid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createcdveh [price] [dealership] [modelid]");
- new Float:X,Float:Y,Float:Z,Float:A;
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerFacingAngle(playerid, A);
- new cdvehicleid = CreateCarDealershipVehicle(dealershipid, modelid, X, Y, Z, A, price);
- if(cdvehicleid == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: cdVehicles limit reached.");
- }
- else
- {
- format(string, sizeof(string), " Car Dealership Vehicle created with ID %d.", cdvehicleid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- return 1;
- }
- CMD:destroycdveh(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], vehid;
- if(sscanf(params, "d", vehid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /destroycdveh [vehicleid]");
- DestroyCarDealershipVehicle(GetCarDealershipId(vehid), GetCarDealershipVehicleId(vehid));
- SavecDealerships();
- format(string, sizeof(string), " Car Dealership Vehicle destroyed with ID %d.", vehid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- CMD:createdealership(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], price, radius, message[64];
- if(sscanf(params, "dds[64]", price, radius, message)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createdealership [price] [radius] [message]");
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- new dealershipid = CreateCarDealership(X, Y, Z, radius, price, message);
- if(dealershipid == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Car Dealerships limit reached.");
- }
- else
- {
- format(string, sizeof(string), " Car Dealership created with ID %d.", dealershipid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- return 1;
- }
- CMD:destroydealership(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], dealershipid;
- if(sscanf(params, "d", dealershipid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /destroydealership [dealershipid]");
- for(new d = 0 ; d < MAX_CARDEALERSHIPS; d++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]))
- {
- DestroyCarDealership(d);
- format(string, sizeof(string), " Car Dealership destroyed with ID %d.", d);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- }
- if(dealershipid > MAX_CARDEALERSHIPS) return 1;
- if(dealershipid < 0) return 1;
- DestroyCarDealership(dealershipid);
- format(string, sizeof(string), " Car Dealership destroyed with ID %d.", dealershipid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- return 1;
- }
- CMD:createpvehicle(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, modelid, color1, color2;
- if(sscanf(params, "uddd", giveplayerid, modelid, color1, color2)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createpvehicle [playerid/partofname] [modelid] [color 1] [color 2]");
- if(AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use that command on an on-duty admin.");
- return 1;
- }
- if(color1 < 0 || color1 > 255) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 255!"); return 1; }
- if(color2 < 0 || color2 > 255) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 255!"); return 1; }
- if(modelid < 400 || modelid > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611!"); return 1; }
- new playervehicleid = GetPlayerFreeVehicleId(giveplayerid);
- new carsamount = GetPlayerVehicleCount(giveplayerid);
- // (TEMPORARY - Howard NOTE) TempDonator not added yet
- if(PlayerInfo[giveplayerid][pDonator] == 0 && carsamount >= 5) //PlayerInfo[giveplayerid][pTempDonator] > 0) && carsamount >= 5)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, non-donator can only own 5 cars.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 1 && carsamount >= 7)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Ruby Donator can only own 7 cars.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 2 && carsamount >= 8)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Sapphire Donator can only own 8 cars.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 3 && carsamount >= 10)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Diamond Donator can only own 10 cars.");
- return 1;
- }
- /*if(PlayerInfo[giveplayerid][pDonator] >= 4 && carsamount >= 10)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player can't have more cars, Platinum+ VIP can only own 10 cars.");
- return 1;
- }*/
- if(playervehicleid == -1) return SendClientMessage(playerid, COLOR_GREY, "ERROR: That player can't have more cars.");
- if(PlayerInfo[giveplayerid][pDonator] == 0 && VehicleSpawned[giveplayerid] >= 1)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is non-donator and can only have 1 vehicle spawned. The player must store that vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 1 && VehicleSpawned[giveplayerid] >= 2)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is Ruby Donator and can only have 2 vehicles spawned. The player must store that vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 2 && VehicleSpawned[giveplayerid] >= 3)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is Sapphire Donator and can only have 3 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 3 && VehicleSpawned[giveplayerid] >= 4)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is Diamond Donator and can only have 4 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }
- /*if(PlayerInfo[giveplayerid][pDonator] == 4 && VehicleSpawned[giveplayerid] >= 5)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is Undefined Donator and can only have 5 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pDonator] == 5 && VehicleSpawned[giveplayerid] >= 5)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "That player is a VIP Moderator and can only have 5 vehicles spawned. The player must store a vehicle in order to create a new one.");
- return 1;
- }*/
- if(PlayerInfo[giveplayerid][pDonator] < 0 || PlayerInfo[giveplayerid][pDonator] > 3)
- {
- SendClientMessage(giveplayerid, COLOR_GREY, "ERROR: That player has an invalid Donator level.");
- return 1;
- }
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(giveplayerid,X,Y,Z);
- new Float:Angle;
- GetPlayerFacingAngle(giveplayerid,Angle);
- new car = CreatePlayerVehicle(giveplayerid, playervehicleid, modelid, X, Y, Z, Angle, color1, color2, 0);
- if(car == INVALID_PLAYER_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Something went wrong and the car didn't get created.");
- }
- else
- {
- format(string, sizeof(string), " Vehicle successfully created with ID %d.", car);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- format(string, sizeof(string), "%s has created a %s for %s (Color 1: %d | Color 2: %d).", GetPlayerNameEx(playerid), GetVehicleName(car), GetPlayerNameEx(giveplayerid), color1, color2);
- Log("logs/playervehicle.log", string);
- return 1;
- }
- CMD:destroypvehicle(playerid, params[])
- {
- new string[128], giveplayerid, vehicleid;
- if(sscanf(params, "ud", giveplayerid, vehicleid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /destroypvehicle [playerid/partofname] [vehicleid]");
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not allowed to use this command.");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use that command on an on-duty admin.");
- return 1;
- }
- format(string, sizeof(string), "%s has destroyed %s's %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), GetVehicleName(vehicleid));
- Log("logs/playervehicle.log", string);
- new playervehicleid = GetPlayerVehicle(giveplayerid, vehicleid);
- if(playervehicleid == -1) return SendClientMessage(playerid, COLOR_GREY, "ERROR: That player doesn't own that vehicle.");
- DestroyPlayerVehicle(giveplayerid, playervehicleid);
- return 1;
- }
- CMD:carhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** CAR OWNERSHIP HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** CAR OWNERSHIP *** /buylock /pvlock /park /unmodcar /deletecar /sellmycar /trackcar");
- SendClientMessage(playerid, COLOR_GRAD3,"*** CAR OWNERSHIP *** /dmvmenu /givekeys /carkeys /trunkput /trunktake /car /vstorage");
- return 1;
- }
- CMD:buylock(playerid, params[])
- {
- if(IsAt247(playerid))
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDLOCKBUY, DIALOG_STYLE_LIST, "24/7", "Alarm Lock $1000\nIndustrial Lock $5000", "Buy", "Cancel");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not in a 24-7!");
- }
- return 1;
- }
- stock Float: GetDistanceBetweenPlayerToPoint(p1,Float:px,Float:py,Float:pz)
- {
- new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
- if(!IsPlayerConnected(p1)) {
- return -1.00;
- }
- GetPlayerPos(p1,x1,y1,z1);
- x2 = px;
- y2 = py;
- z2 = pz;
- return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
- }
- forward HideLockTD(playerid);
- public HideLockTD(playerid)
- {
- TextDrawHideForPlayer(playerid, LockTD);
- return 1;
- }
- forward DestroyDamageTD(playerid);
- public DestroyDamageTD(playerid)
- {
- if(PlayerInfo[playerid][pDamageTimer] >= 0)
- {
- TextDrawHideForPlayer(playerid, Damage[playerid]);
- PlayerInfo[playerid][pDamageTimer] = -1;
- }
- }
- CMD:pvl(playerid, params[]) return cmd_pvlock(playerid, params);
- CMD:lock(playerid, params[]) return cmd_pvl(playerid, params);
- CMD:pvlock(playerid, params[])
- {
- new Float: x, Float: y, Float: z, string[128];
- if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)
- {
- new ownerid = PlayerInfo[playerid][pVehicleKeysFrom];
- if(IsPlayerConnected(ownerid))
- {
- new d = PlayerInfo[playerid][pVehicleKeys];
- if(PlayerVehicleInfo[ownerid][d][pvId] != INVALID_PLAYER_VEHICLE_ID) GetVehiclePos(PlayerVehicleInfo[ownerid][d][pvId], x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
- {
- if(PlayerVehicleInfo[ownerid][d][pvLock] > 0)
- {
- if(PlayerVehicleInfo[ownerid][d][pvLocked] == 0)
- {
- format(string, sizeof(string), "%s LOCKED", GetVehicleName(PlayerVehicleInfo[ownerid][d][pvId]));
- TextDrawSetString(LockTD, string);
- TextDrawColor(LockTD, COLOR_RED);
- TextDrawHideForPlayer(playerid, LockTD);
- TextDrawShowForPlayer(playerid, LockTD);
- SetTimerEx("HideLockTD", 2000, false, "i", playerid);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- PlayerVehicleInfo[ownerid][d][pvLocked] = 1;
- LockPlayerVehicle(ownerid, PlayerVehicleInfo[ownerid][d][pvId], PlayerVehicleInfo[ownerid][d][pvLock]);
- return 1;
- }
- else
- {
- format(string, sizeof(string), "%s UNLOCKED", GetVehicleName(PlayerVehicleInfo[ownerid][d][pvId]));
- TextDrawSetString(LockTD, string);
- TextDrawColor(LockTD, COLOR_GREEN);
- TextDrawHideForPlayer(playerid, LockTD);
- TextDrawShowForPlayer(playerid, LockTD);
- SetTimerEx("HideLockTD", 2000, false, "i", playerid);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- PlayerVehicleInfo[ownerid][d][pvLocked] = 0;
- UnLockPlayerVehicle(ownerid, PlayerVehicleInfo[ownerid][d][pvId], PlayerVehicleInfo[ownerid][d][pvLock]);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a lock system installed on this vehicle.");
- return 1;
- }
- }
- }
- }
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(PlayerVehicleInfo[playerid][d][pvId] != INVALID_PLAYER_VEHICLE_ID) GetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
- {
- if(PlayerVehicleInfo[playerid][d][pvLock] > 0 && PlayerVehicleInfo[playerid][d][pvLocked] == 0)
- {
- format(string, sizeof(string), "%s LOCKED", GetVehicleName(PlayerVehicleInfo[playerid][d][pvId]));
- TextDrawSetString(LockTD, string);
- TextDrawHideForPlayer(playerid, LockTD);
- TextDrawShowForPlayer(playerid, LockTD);
- SetTimerEx("HideLockTD", 2000, false, "i", playerid);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- PlayerVehicleInfo[playerid][d][pvLocked] = 1;
- LockPlayerVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId], PlayerVehicleInfo[playerid][d][pvLock]);
- return 1;
- }
- else if(PlayerVehicleInfo[playerid][d][pvLock] > 0 && PlayerVehicleInfo[playerid][d][pvLocked] == 1)
- {
- format(string, sizeof(string), "%s UNLOCKED", GetVehicleName(PlayerVehicleInfo[playerid][d][pvId]));
- TextDrawSetString(LockTD, string);
- TextDrawColor(LockTD, COLOR_GREEN);
- TextDrawHideForPlayer(playerid, LockTD);
- TextDrawShowForPlayer(playerid, LockTD);
- SetTimerEx("HideLockTD", 2000, false, "i", playerid);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- PlayerVehicleInfo[playerid][d][pvLocked] = 0;
- UnLockPlayerVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId], PlayerVehicleInfo[playerid][d][pvLock]);
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, " You don't have a lock system installed on this vehicle.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You're not near any vehicle that you own.");
- return 1;
- }
- CMD:park(playerid, params[])
- {
- if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)
- {
- new ownerid = PlayerInfo[playerid][pVehicleKeysFrom];
- if(IsPlayerConnected(ownerid))
- {
- new d = PlayerInfo[playerid][pVehicleKeys];
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[ownerid][d][pvId]))
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You must be in the driver seat.");
- new Float:x, Float:y, Float:z, Float:angle, Float:health;
- GetVehicleHealth(PlayerVehicleInfo[ownerid][d][pvId], health);
- if(health < 800) return SendClientMessage(playerid, COLOR_GREY, " Your vehicle is too damaged to park it.");
- if(PlayerInfo[playerid][pLockCar] == GetPlayerVehicleID(playerid)) PlayerInfo[playerid][pLockCar] = INVALID_VEHICLE_ID;
- if(IsARC(GetPlayerVehicleID(playerid))) // RC Vehicles
- {
- new Float:vehPos[3];
- GetVehiclePos(GetPlayerVehicleID(playerid),vehPos[0], vehPos[1], vehPos[2]);
- SetPlayerPos(playerid,vehPos[0], vehPos[1]+0.5, vehPos[2]+0.5);
- }
- GetVehiclePos(PlayerVehicleInfo[ownerid][d][pvId], x, y, z);
- GetVehicleZAngle(PlayerVehicleInfo[ownerid][d][pvId], angle);
- SurfingCheck(GetPlayerVehicleID(playerid));
- UpdatePlayerVehicleParkPosition(ownerid, d, x, y, z, angle, health);
- PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), 0);
- SetPlayerArmedWeapon(playerid, 0);
- new string[29 + (MAX_PLAYER_NAME * 2)];
- format(string, sizeof(string), "* %s has parked %s's vehicle.", GetPlayerNameEx(playerid), GetPlayerNameEx(ownerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- }
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
- {
- new Float:x, Float:y, Float:z, Float:angle, Float:health;
- GetVehicleHealth(PlayerVehicleInfo[playerid][d][pvId], health);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You must be in the driver seat.");
- if(health < 800) return SendClientMessage(playerid, COLOR_GREY, " Your vehicle is too damaged to park it.");
- if(PlayerInfo[playerid][pLockCar] == GetPlayerVehicleID(playerid)) PlayerInfo[playerid][pLockCar] = INVALID_VEHICLE_ID;
- GetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], x, y, z);
- GetVehicleZAngle(PlayerVehicleInfo[playerid][d][pvId], angle);
- SurfingCheck(GetPlayerVehicleID(playerid));
- UpdatePlayerVehicleParkPosition(playerid, d, x, y, z, angle, health);
- PutPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId], 0);
- SetPlayerArmedWeapon(playerid, 0);
- new string[30 + (MAX_PLAYER_NAME * 2)];
- format(string, sizeof(string), "* %s has parked their vehicle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You need to be inside a vehicle that you own.");
- return 1;
- }
- CMD:unmodcar(playerid, params[])
- {
- new modList[512], string[128];
- new count = 0;
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
- {
- for(new f = 0 ; f < MAX_MODS; f++)
- {
- if(GetVehicleComponentInSlot(PlayerVehicleInfo[playerid][d][pvId], f) != 0)
- {
- if(f != 9 && f != 7 && f != 8)
- {
- format(modList, sizeof(modList), "%s\n%s - %s", modList, partType(f), partName(GetVehicleComponentInSlot(PlayerVehicleInfo[playerid][d][pvId], f)));
- }
- else
- {
- format(modList, sizeof(modList), "%s\n%s", modList, partType(f));
- }
- format(string, sizeof(string), "partList%d", count);
- SetPVarInt(playerid, string, GetVehicleComponentInSlot(PlayerVehicleInfo[playerid][d][pvId], f));
- count++;
- }
- }
- if(count == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " This vehicle does not have any modifications.");
- return 1;
- }
- format(modList, sizeof(modList), "%s\nAll", modList);
- format(string, sizeof(string), "partList%d", count);
- SetPVarInt(playerid, string, 999);
- count++;
- SetPVarInt(playerid, "modCount", count);
- ShowPlayerDialogEx(playerid, UNMODCARMENU, DIALOG_STYLE_LIST, "Unmodification Parts", modList, "Select", "Cancel");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, " You need to be inside a vehicle that you own.");
- return 1;
- }
- CMD:deletecar(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(GetPVarInt(playerid, "dcConfirm") == 0)
- {
- SetPVarInt(playerid, "dcConfirm", 1);
- SendClientMessage(playerid, COLOR_WHITE, "Use of this command will fully delete the vehicle and no refund will be issued.");
- SendClientMessage(playerid, COLOR_WHITE, "If you're sure you want to delete your vehicle, please re-type the command (/deletecar).");
- }
- else
- {
- DeletePVar(playerid, "dcConfirm");
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
- {
- PlayerVehicleInfo[playerid][d][pvModelId] = 0;
- DestroyVehicle(PlayerVehicleInfo[playerid][d][pvId]);
- VehicleRadioStation[PlayerVehicleInfo[playerid][d][pvId]] = 0;
- PlayerVehicleInfo[playerid][d][pvId] = 0;
- PlayerVehicleInfo[playerid][d][pvModelId] = 0;
- PlayerVehicleInfo[playerid][d][pvPosX] = 0.0;
- PlayerVehicleInfo[playerid][d][pvPosY] = 0.0;
- PlayerVehicleInfo[playerid][d][pvPosZ] = 0.0;
- PlayerVehicleInfo[playerid][d][pvPosAngle] = 0.0;
- PlayerVehicleInfo[playerid][d][pvLock] = 0;
- PlayerVehicleInfo[playerid][d][pvLocked] = 0;
- PlayerVehicleInfo[playerid][d][pvPaintJob] = -1;
- PlayerVehicleInfo[playerid][d][pvColor1] = 0;
- PlayerVehicleInfo[playerid][d][pvColor2] = 0;
- PlayerVehicleInfo[playerid][d][pvPrice] = 0;
- PlayerVehicleInfo[playerid][d][pvImpounded] = 0;
- PlayerVehicleInfo[playerid][d][pvSpawned] = 0;
- PlayerVehicleInfo[playerid][d][pvPark] = 0;
- PlayerVehicleInfo[playerid][d][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- for(new m = 0; m < MAX_MODS; m++)
- {
- PlayerVehicleInfo[playerid][d][pvMods][m] = 0;
- }
- SendClientMessage(playerid, COLOR_WHITE, "Your vehicle has been deleted.");
- VehicleSpawned[playerid]--;
- PlayerCars--;
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, " You need to be inside a vehicle that you own.");
- }
- return 1;
- }
- CMD:sellmycar(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
- {
- new Float:health;
- GetVehicleHealth(PlayerVehicleInfo[playerid][d][pvId], health);
- if(PlayerInfo[playerid][pLevel] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have to be level 2 or higher to be able to sell vehicles.");
- return 1;
- }
- if(health < 500) return SendClientMessage(playerid, COLOR_GREY, " Your vehicle is too damaged to sell it.");
- new string[128], giveplayerid, price;
- if(sscanf(params, "ud", giveplayerid, price)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellmycar [playerid/partofname] [price]");
- if(price < 1) return SendClientMessage(playerid, COLOR_GREY, "Price must be higher than 0.");
- if(PlayerInfo[giveplayerid][pLevel] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "The player has to be Level 2 or higher to be able to sell vehicles to them.");
- return 1;
- }
- if(playerid == giveplayerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- return 1;
- }
- if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Player is currently not connected to the server.");
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if((PlayerInfo[giveplayerid][pDonator] < 2) && (GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 559 || GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 562 || GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 415 || GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 402))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't sell sapphire donator vehicles to non-sapphire donators.");
- return 1;
- }
- if((PlayerInfo[giveplayerid][pDonator] < 3) && (GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 429 || GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 541 || GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 451))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't sell diamond donator vehicles to non-diamond donators.");
- return 1;
- }
- if(GetPVarInt(playerid, "SellMyTimer") > 0)
- {
- format(string, sizeof(string), "You must wait %d seconds before offering a sale again.", GetPVarInt(playerid, "SellMyTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- VehicleOffer[giveplayerid] = playerid;
- VehicleId[giveplayerid] = d;
- VehiclePrice[giveplayerid] = price;
- format(string, sizeof(string), "* You offered %s to buy this %s for $%d.", GetPlayerNameEx(giveplayerid), GetVehicleName(PlayerVehicleInfo[playerid][d][pvId]), price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered you their %s for $%d, (type /accept car) to buy.", GetPlayerNameEx(playerid), GetVehicleName(PlayerVehicleInfo[playerid][d][pvId]), price);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- SetPVarInt(playerid, "SellMyTimer", 30); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_SELLMYTIMER);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREY, " You need to be inside a vehicle that you own.");
- return 1;
- }
- CMD:trackcar(playerid, params[])
- {
- new vstring[1900];
- for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
- if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
- if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
- format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]);
- }
- else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
- format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]);
- }
- else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
- format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]);
- }
- else format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[iModelID]);
- }
- else strcat(vstring, "\nEmpty");
- }
- ShowPlayerDialogEx(playerid, TRACKCAR, DIALOG_STYLE_LIST, "Vehicle GPS Tracking", vstring, "Track", "Cancel");
- return 1;
- }
- CMD:radargun(playerid, params[])
- {
- if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 4 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pFaction] == 4 && PlayerInfo[playerid][pRank] >= 5)
- {
- new string[128];
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while you're in a vehicle.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use the tazer while you're in an event.");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this right now.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this in jail/prison.");
- return 1;
- }
- if(PlayerCuffed[playerid] >= 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't use this while tazed/cuffed.");
- return 1;
- }
- new SpeedRadar = GetPVarInt(playerid, "SpeedRadar");
- if(SpeedRadar == 0)
- {
- SetPVarInt(playerid, "RadarReplacement", PlayerInfo[playerid][pGuns][9]);
- if(PlayerInfo[playerid][pGuns][9] != 0) RemovePlayerWeapon(playerid, PlayerInfo[playerid][pGuns][9]);
- format(string, sizeof(string), "* %s takes out a LIDAR speed gun.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerValidWeapon(playerid, 43, 60000);
- SetPVarInt(playerid, "SpeedRadar", 1);
- }
- else
- {
- RemovePlayerWeapon(playerid, 43);
- GivePlayerValidWeapon(playerid, GetPVarInt(playerid, "RadarReplacement"), 60000);
- format(string, sizeof(string), "* %s puts away their LIDAR speed gun.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- DeletePVar(playerid, "SpeedRadar");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Cop / FBI / Coastguard!");
- return 1;
- }
- return 1;
- }
- CMD:dmvrelease(playerid, params[]) {
- switch(PlayerInfo[playerid][pFaction]) {
- case 1, 2: {}
- default: return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 833.60, 3.23, 1004.17)) {
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_GREY, "USAGE: /dmvrelease [playerid/partofname]");
- }
- else if(IsPlayerConnected(iTargetID)) {
- new
- vstring[1024],
- iCount;
- for(new i; i < MAX_PLAYERVEHICLES; i++) {
- if(PlayerVehicleInfo[iTargetID][i][pvPrice] < 1) PlayerVehicleInfo[iTargetID][i][pvPrice] = 5000;
- new iCost = (PlayerVehicleInfo[iTargetID][i][pvPrice] / 10) + PlayerVehicleInfo[iTargetID][i][pvTicket];
- if(iCost > 100)
- iCost = 100;
- if(PlayerVehicleInfo[iTargetID][i][pvId] > INVALID_PLAYER_VEHICLE_ID) {
- if(PlayerVehicleInfo[iTargetID][i][pvTicket]) {
- format(vstring, sizeof(vstring), "%s\n%s (ticket - $%i)", vstring, VehicleName[PlayerVehicleInfo[iTargetID][i][pvModelId] - 400], PlayerVehicleInfo[iTargetID][i][pvTicket]);
- ++iCount;
- }
- else format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[iTargetID][i][pvModelId] - 400]);
- }
- else if(PlayerVehicleInfo[iTargetID][i][pvImpounded]) {
- format(vstring, sizeof(vstring), "%s\n%s (impounded - $%i release)", vstring, VehicleName[PlayerVehicleInfo[iTargetID][i][pvModelId] - 400], iCost);
- ++iCount;
- }
- else format(vstring, sizeof(vstring), "%s\nNone", vstring);
- }
- if(iCount) ShowPlayerDialogEx(playerid, MPSPAYTICKETSCOP, DIALOG_STYLE_LIST, "Vehicles", vstring, "Release", "Cancel"), SetPVarInt(playerid, "vRel", iTargetID);
- else SendClientMessage(playerid, COLOR_GRAD2, "This person doesn't have any tickets to be paid or vehicles to be released.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not at the DMV release point in Dillimore (inside the DMV).");
- return 1;
- }
- CMD:dmvmenu(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 833.60, 3.23, 1004.17))
- {
- if(PlayerInfo[playerid][pCarLic] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "A valid driver's license is required to release your vehicle from the impound, or pay any tickets.");
- return 1;
- }
- new
- vstring[1024],
- iCount;
- for(new i; i < MAX_PLAYERVEHICLES; i++) {
- if(PlayerVehicleInfo[playerid][i][pvPrice] < 1) PlayerVehicleInfo[playerid][i][pvPrice] = 5000;
- new iCost = (PlayerVehicleInfo[playerid][i][pvPrice] / 10) + PlayerVehicleInfo[playerid][i][pvTicket] + (PlayerInfo[playerid][pLevel] * 10);
- if(iCost > 10000)
- {
- iCost = 1000;
- }
- if(PlayerVehicleInfo[playerid][i][pvId] > INVALID_PLAYER_VEHICLE_ID) {
- if(PlayerVehicleInfo[playerid][i][pvTicket]) {
- format(vstring, sizeof(vstring), "%s\n%s (ticket - $%i)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], PlayerVehicleInfo[playerid][i][pvTicket]);
- ++iCount;
- }
- else format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- }
- else if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
- format(vstring, sizeof(vstring), "%s\n%s (impounded - $%i release)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], iCost);
- ++iCount;
- }
- else format(vstring, sizeof(vstring), "%s\nNone", vstring);
- }
- if(iCount)
- {
- ShowPlayerDialogEx(playerid, MPSPAYTICKETS, DIALOG_STYLE_LIST, "Vehicles", vstring, "Release", "Cancel");
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You don't have any tickets to be paid or vehicles to be released.");
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not at the DMV release point in Dillimore (inside the DMV).");
- return 1;
- }
- CMD:givekeys(playerid, params[])
- {
- new
- giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givekeys [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(playerid == giveplayerid) return 1;
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- new
- iValidVehicles,
- vstring[512];
- for(new i; i < MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
- format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]), ++iValidVehicles;
- else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
- format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- else if(PlayerVehicleInfo[playerid][i][pvDisabled] == 1 && PlayerVehicleInfo[playerid][i][pvModelId] >= 400)
- format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- else if(PlayerVehicleInfo[playerid][i][pvSpawned] == 0 && PlayerVehicleInfo[playerid][i][pvModelId] >= 400)
- format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- else
- format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
- }
- if(iValidVehicles != 0)
- {
- GiveKeysTo[playerid] = giveplayerid;
- ShowPlayerDialogEx(playerid, GIVEKEYS, DIALOG_STYLE_LIST, "Please select a vehicle.", vstring, "Give Keys", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have any vehicles for which you can give out keys.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not close enough to that player.");
- }
- }
- return 1;
- }
- CMD:carkeys(playerid, params[])
- {
- new vstring[768], iValidVehicles;
- for(new i = 0; i < MAX_PLAYERVEHICLES; i++) {
- if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID) {
- if(PlayerVehicleInfo[playerid][i][pvAllowedPlayerId] != INVALID_PLAYER_ID) {
- format(vstring, sizeof(vstring), "%s\n%s | Keys: %s", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], GetPlayerNameEx(PlayerVehicleInfo[playerid][i][pvAllowedPlayerId]));
- iValidVehicles ++;
- } else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1 || PlayerVehicleInfo[playerid][i][pvSpawned] == 0) {
- format(vstring, sizeof(vstring), "%s\n%s | Keys: Unavailable", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- } else {
- format(vstring, sizeof(vstring), "%s\n%s | Keys: No-one", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400]);
- }
- } else {
- format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
- }
- }
- if(iValidVehicles != 0) {
- ShowPlayerDialogEx(playerid, REMOVEKEYS, DIALOG_STYLE_LIST, "Please select a vehicle.", vstring, "Remove Keys", "Cancel");
- } else SendClientMessage(playerid, COLOR_GRAD2, "You don't have any keys given out.");
- return 1;
- }
- CMD:info(playerid, params[])
- {
- return cmd_information(playerid, params);
- }
- CMD:information(playerid, params[]) {
- SendClientMessage(playerid, COLOR_WHITE, "Discord: {FFA500}"DISCORD"{FFFFFF} | Website: {FFA500}" WEBSITE);
- return 1;
- }
- CMD:trunkput(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being inside the vehicle!"); return 1; }
- if(GetPVarInt(playerid, "EMSAttempt") != 0) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this command!");
- if(PlayerInfo[playerid][pFaction] != 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do that while in a faction.");
- return 1;
- }
- new string[128], weaponchoice[32], slot;
- if(sscanf(params, "s[32]d", weaponchoice, slot)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /trunkput [weapon] [slot]");
- new pvid = -1, Float: x, Float: y, Float: z;
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(PlayerVehicleInfo[playerid][d][pvId] != INVALID_PLAYER_VEHICLE_ID) GetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 4.5, x, y, z))
- {
- pvid = d;
- break;
- }
- }
- if(pvid == -1) return SendClientMessage(playerid,COLOR_GREY,"You're not near any vehicle that you own.");
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(PlayerVehicleInfo[playerid][pvid][pvId],engine,lights,alarm,doors,bonnet,boot,objective);
- if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) return SendClientMessage(playerid, COLOR_GRAD3, "You can't take/put stuff inside the trunk if it's closed!(/car trunk to open it)");
- if(GetVehicleModel(PlayerVehicleInfo[playerid][pvid][pvId]) == 481 || GetVehicleModel(PlayerVehicleInfo[playerid][pvid][pvId]) == 510) return SendClientMessage(playerid,COLOR_GREY,"That vehicle doesn't have a trunk.");
- new Float: Health;
- GetPlayerHealth(playerid, Health);
- if(Health < 80.0) return SendClientMessage(playerid,COLOR_GREY,"You can't store weapons in a car when your health lower than 80.");
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before depositing another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new maxslots = PlayerVehicleInfo[playerid][pvid][pvWepUpgrade]+1;
- if(slot > maxslots)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(PlayerVehicleInfo[playerid][pvid][pvWeapons][slot-1] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have a weapon stored in that slot already.");
- return 1;
- }
- new weapon;
- if(strcmp(weaponchoice, "sdpistol", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 23 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a silenced pistol into your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their silenced pistol in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "deagle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 24 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a Desert Eagle in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their Desert Eagle in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "shotgun", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 25 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a shotgun in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Shotgun in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "spas12", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 27 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a combat shotgun in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Combat Shotgun in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "mp5", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 29 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an MP5 in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their MP5 in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "ak47", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 30 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an AK-47 in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their AK-47 in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "m4", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 31 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an M4 in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their M4 in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "rifle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 33 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a rifle in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their rifle in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "sniper", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 34 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a sniper rifle in your car gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their sniper rifle in their car safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- if(weapon == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon.");
- if(PlayerVehicleInfo[playerid][pvid][pvWeapons][slot-1] == 0)
- {
- PlayerVehicleInfo[playerid][pvid][pvWeapons][slot-1] = weapon;
- RemovePlayerWeapon(playerid, weapon);
- return 1;
- }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid weapon name!"); return 1; }
- }
- CMD:trunktake(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid)) {
- return SendClientMessage(playerid, COLOR_WHITE, "You can't do this while you're inside a vehicle.");
- }
- else if(GetPVarInt(playerid, "PBM") > 0) {
- return SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- }
- else if(GetPVarInt(playerid, "EventToken") != 0) {
- return SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- }
- else if(PlayerInfo[playerid][pConnectTime] < 2) {
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- }
- else if(GetPVarInt(playerid, "GiveWeaponTimer") >= 1) {
- new
- szMessage[59];
- format(szMessage, sizeof(szMessage), " You must wait %d seconds before getting another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- return SendClientMessage(playerid, COLOR_GREY, szMessage);
- }
- new
- Float: fVehPos[3],
- iWeaponSlot = strval(params);
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++) {
- if(PlayerVehicleInfo[playerid][d][pvId] != INVALID_PLAYER_VEHICLE_ID) {
- GetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], fVehPos[0], fVehPos[1], fVehPos[2]);
- if(IsPlayerInRangeOfPoint(playerid, 4.5, fVehPos[0], fVehPos[1], fVehPos[2])) {
- if(isnull(params)) {
- new
- szMessage[64];
- format(szMessage, sizeof(szMessage), "*** %s's %s Safe ***", GetPlayerNameEx(playerid), GetVehicleName(PlayerVehicleInfo[playerid][d][pvId]));
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- for(new s = 0; s < 3; s++) if(PlayerVehicleInfo[playerid][d][pvWeapons][s] != 0) {
- new
- szWeapon[16];
- GetWeaponName(PlayerVehicleInfo[playerid][d][pvWeapons][s], szWeapon, sizeof(szWeapon));
- format(szMessage, sizeof(szMessage), "Slot %d: %s", s+1, szWeapon);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /trunktake [slot]");
- }
- else if(GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 481 || GetVehicleModel(PlayerVehicleInfo[playerid][d][pvId]) == 509) {
- return SendClientMessage(playerid,COLOR_GREY,"That vehicle doesn't have a trunk.");
- }
- new
- engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(PlayerVehicleInfo[playerid][d][pvId], engine, lights, alarm, doors, bonnet, boot, objective);
- if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) {
- return SendClientMessage(playerid, COLOR_GRAD3, "You can't take weapons from the trunk if it's closed! /car trunk to open it.");
- }
- else if(iWeaponSlot > PlayerVehicleInfo[playerid][d][pvWepUpgrade] + 1) {
- return SendClientMessage(playerid, COLOR_GREY, "Invalid slot specified.");
- }
- else if(PlayerVehicleInfo[playerid][d][pvWeapons][iWeaponSlot - 1] != 0) {
- new
- szWeapon[16],
- szMessage[128];
- GetWeaponName(PlayerVehicleInfo[playerid][d][pvWeapons][iWeaponSlot - 1], szWeapon, sizeof(szWeapon));
- GivePlayerValidWeapon(playerid, PlayerVehicleInfo[playerid][d][pvWeapons][iWeaponSlot - 1], 60000);
- PlayerVehicleInfo[playerid][d][pvWeapons][iWeaponSlot - 1] = 0;
- format(szMessage, sizeof(szMessage), "You have withdrawn a %s from your car gun locker.", szWeapon);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- format(szMessage, sizeof(szMessage), "* %s has withdrawn a %s from their car safe.", GetPlayerNameEx(playerid), szWeapon);
- return ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You don't have a weapon stored in that slot.");
- }
- }
- }
- return SendClientMessage(playerid,COLOR_GREY,"You're not near any vehicle that you own.");
- }
- CMD:vstorage(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new vstring[2500];
- for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
- if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
- if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
- format(vstring, sizeof(vstring), "%s\n{FFA500}Vehicle: {FFFFFF}%s{FFA500} | {FFA500}Status: {FFFFFF}(impounded) {FFA500}| Location: ", vstring, VehicleName[iModelID]);
- }
- else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
- format(vstring, sizeof(vstring), "%s\n{FFA500}Vehicle: {FFFFFF}%s{FFA500} | {FFA500}Status: {FFFFFF}(disabled) {FFA500}| Location: ", vstring, VehicleName[iModelID]);
- }
- else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
- format(vstring, sizeof(vstring), "%s\n{FFA500}Vehicle: {FFFFFF}%s{FFA500} | {FFA500}Status: {FFFFFF}Stored {FFA500}| Location: ", vstring, VehicleName[iModelID]);
- }
- else format(vstring, sizeof(vstring), "%s\n{FFA500}Vehicle: {FFFFFF}%s{FFA500} | {FFA500}Status: {FFFFFF}Spawned {FFA500}| Location: ", vstring, VehicleName[iModelID]);
- }
- }
- ShowPlayerDialogEx(playerid, VEHICLESTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
- return 1;
- }
- CMD:vst(playerid, params[]) return cmd_vstorage(playerid, params);
- CMD:craft(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] != 18 && PlayerInfo[playerid][pJob2] != 18)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Craftsman!");
- return 1;
- }
- if(PlayerInfo[playerid][pJailTime] > 0)
- {
- SendClientMessage(playerid,COLOR_GREY," You can't make things while in jail or prison!");
- return 1;
- }
- new string[128];
- if(GetPVarInt(playerid, "ArmsTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before crafting again.", GetPVarInt(playerid, "ArmsTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(GetPVarInt(playerid, "Hospital") == 1 || GetPVarInt(playerid, "Hospital") == 2 || GetPVarInt(playerid, "Hospital") == 3 || GetPVarInt(playerid, "Hospital") == 4 || GetPVarInt(playerid, "Hospital") == 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't craft whilst in Hospital.");
- return 1;
- }
- new giveplayerid, choice[32], weapon, price;
- if(sscanf(params, "us[32]", giveplayerid, choice))
- {
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_YELLOW, "<< Available crafts >>");
- SendClientMessage(playerid, COLOR_GRAD1, "screwdriver(1000) smslog(2000)");
- SendClientMessage(playerid, COLOR_GRAD1, "wristwatch(500) tire(250)");
- SendClientMessage(playerid, COLOR_GRAD1, "firstaid(1000) camera(250)");
- SendClientMessage(playerid, COLOR_GRAD1, "rccam(8000) receiver(5000)");
- SendClientMessage(playerid, COLOR_GRAD1, "gps(1000) bugsweep(10000)");
- SendClientMessage(playerid, COLOR_GRAD1, "parachute(50)");
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /craft [playerid/partofname] [craftname]");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(isnull(choice))
- {
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_YELLOW, "<< Available crafts >>");
- SendClientMessage(playerid, COLOR_GRAD1, "screwdriver(1000) smslog(2000)");
- SendClientMessage(playerid, COLOR_GRAD1, "wristwatch(500) tire(250)");
- SendClientMessage(playerid, COLOR_GRAD1, "firstaid(1000) camera(250)");
- SendClientMessage(playerid, COLOR_GRAD1, "rccam(8000) receiver(5000)");
- SendClientMessage(playerid, COLOR_GRAD1, "gps(1000) bugsweep(10000)");
- SendClientMessage(playerid, COLOR_GRAD1, "parachute(50)");
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /craft [playerid/partofname] [craftname]");
- return 1;
- }
- if(strcmp(choice,"screwdriver",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 1000)
- {
- price = 1000;
- weapon = 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"smslog",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 2000)
- {
- price = 2000;
- weapon = 2;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"wristwatch",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 500)
- {
- price = 500;
- weapon = 3;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"tire",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 250)
- {
- price = 250;
- weapon = 5;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"firstaid",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 1000)
- {
- price = 1000;
- weapon = 7;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"camera",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 250)
- {
- price = 250;
- weapon = 8;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"rccam",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 8000)
- {
- price = 8000;
- weapon = 9;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"receiver",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 5000)
- {
- price = 5000;
- weapon = 10;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"gps",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 1000)
- {
- price = 1000;
- weapon = 11;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"bugsweep",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 10000)
- {
- price = 10000;
- weapon = 12;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else if(strcmp(choice,"parachute",true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= 50)
- {
- price = 50;
- weapon = 13;
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," Not enough Materials for that!");
- return 1;
- }
- }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid Craft name!"); return 1; }
- if(ProxDetectorS(5.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- format(string, sizeof(string), " You have given yourself a %s.", choice);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
-
- switch(PlayerInfo[playerid][pSex]) {
- case 1: format(string, sizeof(string), "* %s created something from Materials, and hands it to himself.", GetPlayerNameEx(playerid));
- case 2: format(string, sizeof(string), "* %s created something from Materials, and hands it to herself.", GetPlayerNameEx(playerid));
- }
-
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pMats] -= price;
- SetPVarInt(playerid, "ArmsTimer", 10);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
-
- switch(weapon) {
- case 1:
- {
- PlayerInfo[playerid][pScrewdriver]++;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/sellgun");
- }
- case 3: {
- PlayerInfo[playerid][pWristwatch]++;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/wristwatch");
- }
- case 5: {
- PlayerInfo[playerid][pTire]++;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/repair");
- }
- case 7: {
- PlayerInfo[playerid][pFirstaid]++;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/firstaid");
- }
- case 8: {
- GivePlayerValidWeapon(playerid, 43, 50);
- }
- case 9: {
- PlayerInfo[playerid][pRccam]++;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/rccam");
- }
- case 10: {
- PlayerInfo[playerid][pReceiver]++;
- SetPVarInt(playerid, "pReceiverMLeft", 40);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "You will receive the next four department radio messages.");
- }
- case 11:{
- PlayerInfo[playerid][pGPS]++;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/gps");
- }
- case 12: {
- PlayerInfo[playerid][pSweep]++;
- PlayerInfo[playerid][pSweepLeft] = 3;
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "/sweep");
- }
- case 13: {
- GivePlayerValidWeapon(playerid, 46, 99999);
- }
- }
- return 1;
- }
- format(string, sizeof(string), "* You offered %s to buy a %s.", GetPlayerNameEx(giveplayerid), choice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Craftsman %s wants to sell you a %s, (type /accept craft) to buy.", GetPlayerNameEx(playerid), choice);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- CraftOffer[giveplayerid] = playerid;
- CraftId[giveplayerid] = weapon;
- CraftMats[giveplayerid] = price;
- format(CraftName[giveplayerid], 50, "%s", choice);
- /*if(PlayerInfo[playerid][pAdmin] < 3)
- {
- SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- }*/
- SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- }
- CMD:inventory(playerid, params[])
- {
- new str[32];
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_YELLOW, "<< Craft Inventory >>");
- format(str, sizeof(str), "Screwdriver: %d", PlayerInfo[playerid][pScrewdriver]);
- SendClientMessage(playerid, COLOR_GRAD1, str);
- format(str, sizeof(str), "Wristwatch: %d Tire: %d", PlayerInfo[playerid][pWristwatch], PlayerInfo[playerid][pTire]);
- SendClientMessage(playerid, COLOR_GRAD1, str);
- format(str, sizeof(str), "Firstaid: %d Rccam: %d", PlayerInfo[playerid][pFirstaid], PlayerInfo[playerid][pRccam]);
- SendClientMessage(playerid, COLOR_GRAD1, str);
- format(str, sizeof(str), "Receiver: %d GPS: %d", PlayerInfo[playerid][pReceiver], PlayerInfo[playerid][pGPS]);
- SendClientMessage(playerid, COLOR_GRAD1, str);
- format(str, sizeof(str), "Bug Sweep: %d", PlayerInfo[playerid][pSweep]);
- SendClientMessage(playerid, COLOR_GRAD1, str);
- return 1;
- }
- CMD:ww(playerid, params[])
- {
- return cmd_wristwatch(playerid, params);
- }
- CMD:wristwatch(playerid, params[])
- {
- if(PlayerInfo[playerid][pWristwatch] > 0)
- {
- new string[128];
- if(GetPVarInt(playerid, "wristwatchonoff") == 0)
- {
- SetPVarInt(playerid, "wristwatchonoff", 1);
- new hour,minuite,second;
- gettime(hour,minuite,second);
- FixHour(hour);
- hour = shifthour;
- if(minuite < 10)
- {
- format(string, sizeof(string), "%d:0%d", hour, minuite);
- }
- else
- {
- format(string, sizeof(string), "%d:%d", hour, minuite);
- }
- TextDrawShowForPlayer(playerid, WristWatch);
- format(string, sizeof(string), "* %s turns on their wristwatch.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- KillTimer(GetPVarInt(playerid, "wristwatchtimer"));
- TextDrawHideForPlayer(playerid, WristWatch);
- DeletePVar(playerid, "wristwatchonoff");
- format(string, sizeof(string), "* %s turns off their wristwatch.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a wristwatch!");
- }
- return 1;
- }
- CMD:firstaid(playerid, params[])
- {
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- if(PlayerBoxing[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use firstaid while you're boxing.");
- return 1;
- }
- if(PlayerInfo[playerid][pFirstaid] > 0)
- {
- if(GetPVarInt(playerid, "usingfirstaid") == 0)
- {
- new string[128];
- PlayerInfo[playerid][pFirstaid]--;
- SetPVarInt(playerid, "firstaid5", SetTimerEx("firstaid5", 5000, 1, "d", playerid));
- SetPVarInt(playerid, "firstaidexpire", SetTimerEx("firstaidexpire",10*60000, 0, "d", playerid));
- SetPVarInt(playerid, "usingfirstaid", 1);
- format(string, sizeof(string), "* %s uses a first aid kit.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're already using first aid!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a first aid kit!");
- }
- return 1;
- }
- CMD:rccam(playerid, params[])
- {
- if(PlayerInfo[playerid][pRccam] > 0)
- {
- new string[128];
- if(GetPVarInt(playerid, "rccam") == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be on foot to place an RCCam!");
- return 1;
- }
- PlayerInfo[playerid][pRccam]--;
- SetPVarInt(playerid, "rccam", 1);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPVarFloat(playerid, "rcX", X);
- SetPVarFloat(playerid, "rcY", Y);
- SetPVarFloat(playerid, "rcZ", Z);
- if(GetPVarInt(playerid, "rcveh") != 0)
- {
- DestroyVehicle(GetPVarInt(playerid, "rcveh"));
- VehicleRadioStation[GetPVarInt(playerid, "rcveh")] = 0;
- }
- SetPVarInt(playerid, "rcveh", AddStaticVehicle(594, X, Y, Z, 0, 0, 0));
- PutPlayerInVehicle(playerid, GetPVarInt(playerid, "rcveh"), 0);
- SetPVarInt(playerid, "rccamtimer", SetTimerEx("rccam", 60000, 0, "d", playerid));
- format(string, sizeof(string), "* %s places something on the ground.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- DestroyVehicle(GetPVarInt(playerid, "rcveh"));
- VehicleRadioStation[GetPVarInt(playerid, "rcveh")] = 0;
- SetPlayerPos(playerid, GetPVarFloat(playerid, "rcX"), GetPVarFloat(playerid, "rcY"), GetPVarFloat(playerid, "rcZ"));
- DeletePVar(playerid, "rccam");
- KillTimer(GetPVarInt(playerid, "rccamtimer"));
- }
- }
- else
- {
- if(GetPVarInt(playerid, "rccam") == 1)
- {
- DestroyVehicle(GetPVarInt(playerid, "rcveh"));
- VehicleRadioStation[GetPVarInt(playerid, "rcveh")] = 0;
- SetPlayerPos(playerid, GetPVarFloat(playerid, "rcX"), GetPVarFloat(playerid, "rcY"), GetPVarFloat(playerid, "rcZ"));
- DeletePVar(playerid, "rccam");
- KillTimer(GetPVarInt(playerid, "rccamtimer"));
- return 1;
- }
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have an RC Cam!");
- }
- return 1;
- }
- CMD:gps(playerid, params[])
- {
- if(PlayerInfo[playerid][pGPS] > 0)
- {
- new string[128];
- if(GetPVarInt(playerid, "gpsonoff") == 0)
- {
- format(string, sizeof(string), "* %s turns on their GPS.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "gpsonoff", 1);
- GPS[playerid] = TextDrawCreate(85.000000, 322.000000, "Loading..");
- TextDrawAlignment(GPS[playerid], 2);
- TextDrawBackgroundColor(GPS[playerid], 255);
- TextDrawFont(GPS[playerid], 0);
- TextDrawLetterSize(GPS[playerid], 0.809998, 1.500000);
- TextDrawColor(GPS[playerid], -1);
- TextDrawSetOutline(GPS[playerid], 1);
- TextDrawSetProportional(GPS[playerid], 1);
- TextDrawShowForPlayer(playerid, GPS[playerid]);
- }
- else
- {
- format(string, sizeof(string), "* %s turns off their GPS.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- DeletePVar(playerid, "gpsonoff");
- TextDrawDestroy(GPS[playerid]);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a GPS!");
- }
- return 1;
- }
- CMD:sweep(playerid, params[])
- {
- if(PlayerInfo[playerid][pSweep] > 0)
- {
- if(PlayerInfo[playerid][pSweepLeft] > 0)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sweep [playerid/partofname]");
- if(!ProxDetectorS(4.0, playerid, giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD1, "You need to be close to the person.");
- PlayerInfo[playerid][pSweepLeft]--;
- format(string, sizeof(string), "* %s sweeps a large wand around %s's body...", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(PlayerInfo[giveplayerid][pBugged] > 0)
- {
- PlayerInfo[giveplayerid][pBugged] = 0;
- format(string, sizeof(string), "* A small spark is seen as the bug on %s shorts out.", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "(bug) %s: *static*", GetPlayerNameEx(giveplayerid));
- SendBugMessage(2, COLOR_LIGHTGREEN, string);
- }
- else
- {
- ProxDetector(30.0, playerid, "Nothing happens.", COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Your Bug Sweeper has ran out of batteries!");
- PlayerInfo[playerid][pSweep]--;
- PlayerInfo[playerid][pSweepLeft] = 3;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a bug sweep!");
- }
- return 1;
- }
- CMD:receiver(playerid, params[])
- {
- if(PlayerInfo[playerid][pReceiver] > 0)
- {
- if(!GetPVarType(playerid, "pReceiverOn"))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You've turned on your receiver.");
- SetPVarInt(playerid, "pReceiverOn", 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You've turned off your receiver.");
- DeletePVar(playerid, "pReceiverOn");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have a receiver.");
- }
- return 1;
- }
- CMD:leaderhelp(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] >= 1) {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** LEADER HELP *** - Type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** LEADERS *** /invite /uninvite /giverank /ouninvite");
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "You're not a leader.");
- }
- return 1;
- }
- CMD:fishhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** FISH HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** FISHING *** /fish (Try to catch a fish) /fishes (Show the fishes you have caught)");
- SendClientMessage(playerid, COLOR_GRAD3,"*** FISHING *** /throwback (Throw the last fish you caught back) /throwbackall");
- SendClientMessage(playerid, COLOR_GRAD3,"*** FISHING *** /releasefish (Release one of your fishes)");
- SendClientMessage(playerid, COLOR_GRAD3,"*** FISHING *** /sellfish (Sell your fish at a 24/7) /sellallfish (Sells all your fishes that can be sold)");
- return 1;
- }
- CMD:fish(playerid, params[])
- {
- if(PlayerInfo[playerid][pFishes] > 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "You've caught enough fish for now - take a break.");
- return 1;
- }
- if(Fishes[playerid][pWeight1] > 0 && Fishes[playerid][pWeight2] > 0 && Fishes[playerid][pWeight3] > 0 && Fishes[playerid][pWeight4] > 0 && Fishes[playerid][pWeight5] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't carry more than five fish at a time - sell or release them first.");
- return 1;
- }
- new string[128];
- new Veh = GetPlayerVehicleID(playerid);
- if((IsAtFishPlace(playerid)) || IsABoat(Veh))
- {
- new Caught;
- new rand;
- new fstring[MAX_PLAYER_NAME];
- new Level = PlayerInfo[playerid][pFishSkill];
- if(Level >= 0 && Level <= 50) { Caught = random(20)-7; }
- else if(Level >= 51 && Level <= 100) { Caught = random(50)-20; }
- else if(Level >= 101 && Level <= 200) { Caught = random(100)-50; }
- else if(Level >= 201 && Level <= 400) { Caught = random(160)-60; }
- else if(Level >= 401) { Caught = random(180)-70; }
- rand = random(FishNamesNumber);
- if(Caught <= 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "The line snapped.");
- return 1;
- }
- else if(rand == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You caught a jacket and threw it away.");
- return 1;
- }
- else if(rand == 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "You caught a pair of trousers and threw it away.");
- return 1;
- }
- else if(rand == 7)
- {
- SendClientMessage(playerid, COLOR_GREY, "You caught a can and threw it away.");
- return 1;
- }
- else if(rand == 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "You caught a pair of shoes and threw it away.");
- return 1;
- }
- else if(rand == 13)
- {
- SendClientMessage(playerid, COLOR_GREY, "You caught some garbage and threw it away.");
- return 1;
- }
- else if(rand == 20)
- {
- new mrand = random(50);
- format(string, sizeof(string), "* You caught a bag filled with money ($%d).", mrand);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, mrand);
- return 1;
- }
- if(Fishes[playerid][pWeight1] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pFishSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pFishSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pFishSkill] += 1;
- }
-
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish1], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight1] = Caught;
- format(string, sizeof(string), "* You have caught a %s, weighing %d pounds.", Fishes[playerid][pFish1], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 1;
- Fishes[playerid][pFid1] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d pounds has been passed, your new record is %d pounds.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight2] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pFishSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pFishSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pFishSkill] += 1;
- }
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish2], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight2] = Caught;
- format(string, sizeof(string), "* You have caught a %s, weighing %d pounds.", Fishes[playerid][pFish2], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 2;
- Fishes[playerid][pFid2] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d pounds has been passed, your new record is %d pounds.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight3] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pFishSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pFishSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pFishSkill] += 1;
- }
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish3], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight3] = Caught;
- format(string, sizeof(string), "* You have caught a %s, weighing %d pounds.", Fishes[playerid][pFish3], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 3;
- Fishes[playerid][pFid3] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d pounds has been passed, your new record is %d pounds.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight4] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pFishSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pFishSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pFishSkill] += 1;
- }
-
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish4], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight4] = Caught;
- format(string, sizeof(string), "* You have caught a %s, weighing %d pounds.", Fishes[playerid][pFish4], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 4;
- Fishes[playerid][pFid4] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d pounds has been passed, your new record is %d pounds.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else if(Fishes[playerid][pWeight5] == 0)
- {
- PlayerInfo[playerid][pFishes] += 1;
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pFishSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pFishSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pFishSkill] += 1;
- }
-
- format(fstring, sizeof(fstring), "%s", FishNames[rand]);
- strmid(Fishes[playerid][pFish5], fstring, 0, strlen(fstring), 255);
- Fishes[playerid][pWeight5] = Caught;
- format(string, sizeof(string), "* You have caught a %s, weighing %d pounds.", Fishes[playerid][pFish5], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- Fishes[playerid][pLastWeight] = Caught;
- Fishes[playerid][pLastFish] = 5;
- Fishes[playerid][pFid5] = rand;
- Fishes[playerid][pFishID] = rand;
- if(Caught > PlayerInfo[playerid][pBiggestFish])
- {
- format(string, sizeof(string), "* Your old record of %d pounds has been passed, your new record is %d pounds.", PlayerInfo[playerid][pBiggestFish], Caught);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pBiggestFish] = Caught;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any space for your fish, see /fishhelp.");
- return 1;
- }
- if(PlayerInfo[playerid][pFishSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 2, you can now catch larger fish."); }
- else if(PlayerInfo[playerid][pFishSkill] == 100)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 3, you can now catch larger fish."); }
- else if(PlayerInfo[playerid][pFishSkill] == 200)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 4, you can now catch larger fish."); }
- else if(PlayerInfo[playerid][pFishSkill] == 400)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Fishing Skill is now Level 5, you can now catch larger fish."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Santa Maria Pier, or on a fishing boat.");
- return 1;
- }
- return 1;
- }
- CMD:fishes(playerid, params[])
- {
- new string[128];
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Fishes __________________|");
- format(string, sizeof(string), "** (1) Fish: %s. Weight: %d.", Fishes[playerid][pFish1], Fishes[playerid][pWeight1]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (2) Fish: %s. Weight: %d.", Fishes[playerid][pFish2], Fishes[playerid][pWeight2]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (3) Fish: %s. Weight: %d.", Fishes[playerid][pFish3], Fishes[playerid][pWeight3]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (4) Fish: %s. Weight: %d.", Fishes[playerid][pFish4], Fishes[playerid][pWeight4]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "** (5) Fish: %s. Weight: %d.", Fishes[playerid][pFish5], Fishes[playerid][pWeight5]);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
- return 1;
- }
- CMD:releasefish(playerid, params[])
- {
- new fishid;
- if(sscanf(params, "d", fishid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /releasefish [fish 1-5]");
- if(fishid < 1 || fishid > 5) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /releasefish [fish 1-5]"); return 1; }
- else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, "That slot is empty."); return 1; }
- else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, "That slot is empty."); return 1; }
- else if(fishid == 3 && Fishes[playerid][pWeight3] < 1) { SendClientMessage(playerid, COLOR_GREY, "That slot is empty."); return 1; }
- else if(fishid == 4 && Fishes[playerid][pWeight4] < 1) { SendClientMessage(playerid, COLOR_GREY, "That slot is empty."); return 1; }
- else if(fishid == 5 && Fishes[playerid][pWeight5] < 1) { SendClientMessage(playerid, COLOR_GREY, "That slot is empty."); return 1; }
- ClearFishID(playerid, fishid);
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- SendClientMessage(playerid, COLOR_GREY, "You released a fish.");
- return 1;
- }
- CMD:throwback(playerid, params[])
- {
- if(Fishes[playerid][pLastFish] > 0)
- {
- ClearFishID(playerid, Fishes[playerid][pLastFish]);
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have thrown back your last fish.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You haven't even caught a fish yet.");
- return 1;
- }
- return 1;
- }
- CMD:throwbackall(playerid, params[])
- {
- if(Fishes[playerid][pWeight1] > 0 || Fishes[playerid][pWeight2] > 0 || Fishes[playerid][pWeight3] > 0 || Fishes[playerid][pWeight4] > 0 || Fishes[playerid][pWeight5] > 0)
- {
- ClearFishes(playerid);
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- SendClientMessage(playerid, COLOR_GREY, "You have thrown back all your fish.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You haven't even caught a fish yet.");
- return 1;
- }
- return 1;
- }
- CMD:sellallfish(playerid, params[]) {
- if(!IsAt247(playerid))
- return SendClientMessage(playerid, COLOR_GRAD2, " You're not in a 24-7!");
- new
- iPrice,
- szMessage[128];
- if(Fishes[playerid][pWeight1] >= 20) {
- iPrice = FishCost(playerid, Fishes[playerid][pFid1]);
- iPrice = (iPrice * Fishes[playerid][pWeight1]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(szMessage, sizeof(szMessage), "* You have sold your %s (fish #1) that weights %d, for $%d.", Fishes[playerid][pFish1],Fishes[playerid][pWeight1],iPrice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- GivePlayerCash(playerid, iPrice);
- ClearFishID(playerid, 1);
- }
- if(Fishes[playerid][pWeight2] >= 20) {
- iPrice = FishCost(playerid, Fishes[playerid][pFid2]);
- iPrice = (iPrice * Fishes[playerid][pWeight2]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(szMessage, sizeof(szMessage), "* You have sold your %s (fish #2) that weights %d, for $%d.", Fishes[playerid][pFish2],Fishes[playerid][pWeight2],iPrice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- GivePlayerCash(playerid, iPrice);
- ClearFishID(playerid, 2);
- }
- if(Fishes[playerid][pWeight3] >= 20) {
- iPrice = FishCost(playerid, Fishes[playerid][pFid3]);
- iPrice = (iPrice * Fishes[playerid][pWeight3]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(szMessage, sizeof(szMessage), "* You have sold your %s (fish #3) that weights %d, for $%d.", Fishes[playerid][pFish3],Fishes[playerid][pWeight3],iPrice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- GivePlayerCash(playerid, iPrice);
- ClearFishID(playerid, 3);
- }
- if(Fishes[playerid][pWeight4] >= 20) {
- iPrice = FishCost(playerid, Fishes[playerid][pFid4]);
- iPrice = (iPrice * Fishes[playerid][pWeight4]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(szMessage, sizeof(szMessage), "* You have sold your %s (fish #4) that weights %d, for $%d.", Fishes[playerid][pFish4],Fishes[playerid][pWeight4],iPrice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- GivePlayerCash(playerid, iPrice);
- ClearFishID(playerid, 4);
- }
- if(Fishes[playerid][pWeight5] >= 20) {
- iPrice = FishCost(playerid, Fishes[playerid][pFid5]);
- iPrice = (iPrice * Fishes[playerid][pWeight5]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(szMessage, sizeof(szMessage), "* You have sold your %s (fish #5) that weights %d, for $%d.", Fishes[playerid][pFish5],Fishes[playerid][pWeight5],iPrice);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- GivePlayerCash(playerid, iPrice);
- ClearFishID(playerid, 5);
- }
- return 1;
- }
- CMD:sellfish(playerid, params[])
- {
- if(!IsAt247(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not in a 24-7!");
- return 1;
- }
- new string[128], fishid;
- if(sscanf(params, "d", fishid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellfish [fish]");
- new price;
- if(fishid < 1 || fishid > 5) { SendClientMessage(playerid, COLOR_GREY, " Fish number cant be below 1 or above 5!"); return 1; }
- else if(fishid == 1 && Fishes[playerid][pWeight1] < 1) { SendClientMessage(playerid, COLOR_GREY, " You didnt even catch a Fish at that number(1)!"); return 1; }
- else if(fishid == 2 && Fishes[playerid][pWeight2] < 1) { SendClientMessage(playerid, COLOR_GREY, " You didnt even catch a Fish at that number(2)!"); return 1; }
- else if(fishid == 3 && Fishes[playerid][pWeight3] < 1) { SendClientMessage(playerid, COLOR_GREY, " You didnt even catch a Fish at that number(3)!"); return 1; }
- else if(fishid == 4 && Fishes[playerid][pWeight4] < 1) { SendClientMessage(playerid, COLOR_GREY, " You didnt even catch a Fish at that number(4)!"); return 1; }
- else if(fishid == 5 && Fishes[playerid][pWeight5] < 1) { SendClientMessage(playerid, COLOR_GREY, " You didnt even catch a Fish at that number(5)!"); return 1; }
- switch (fishid)
- {
- case 1:
- {
- if(Fishes[playerid][pWeight1] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fishes weighting 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid1]);
- price = (price * Fishes[playerid][pWeight1]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(string, sizeof(string), "* You have sold your %s that weights %d, for $%d.", Fishes[playerid][pFish1],Fishes[playerid][pWeight1],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, price);
- ClearFishID(playerid, 1);
- }
- case 2:
- {
- if(Fishes[playerid][pWeight2] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fishes weighting 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid2]);
- price = (price * Fishes[playerid][pWeight2]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(string, sizeof(string), "* You have sold your %s that weights %d, for $%d.", Fishes[playerid][pFish2],Fishes[playerid][pWeight2],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, price);
- ClearFishID(playerid, 2);
- }
- case 3:
- {
- if(Fishes[playerid][pWeight3] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fishes weighting 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid3]);
- price = (price * Fishes[playerid][pWeight3]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(string, sizeof(string), "* You have sold your %s that weights %d, for $%d.", Fishes[playerid][pFish3],Fishes[playerid][pWeight3],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, price);
- ClearFishID(playerid, 3);
- }
- case 4:
- {
- if(Fishes[playerid][pWeight4] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fishes weighting 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid4]);
- price = (price * Fishes[playerid][pWeight4]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(string, sizeof(string), "* You have sold your %s that weights %d, for $%d.", Fishes[playerid][pFish4],Fishes[playerid][pWeight4],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, price);
- ClearFishID(playerid, 4);
- }
- case 5:
- {
- if(Fishes[playerid][pWeight5] < 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "We are only interested in Fishes weighting 20 LBS or more.");
- return 1;
- }
- price = FishCost(playerid, Fishes[playerid][pFid5]);
- price = (price * Fishes[playerid][pWeight5]) / 10;
- GameTextForPlayer(playerid, "~g~Fish~n~~r~Sold", 3000, 1);
- format(string, sizeof(string), "* You have sold your %s that weights %d, for $%d.", Fishes[playerid][pFish5],Fishes[playerid][pWeight5],price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, price);
- ClearFishID(playerid, 5);
- }
- }
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- return 1;
- }
- CMD:car(playerid, params[])
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /car [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Lights, Trunk, Hood");
- return 1;
- }
- else if(strcmp(params, "lights", true) == 0 && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessage(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
- SetVehicleLights(vehicleid, playerid);
- }
- else if(strcmp(params, "trunk", true) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510)
- {
- return SendClientMessage(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
- }
- SetVehicleTrunk(vehicleid, playerid);
- }
- else if(!IsPlayerInAnyVehicle(playerid))
- {
- new closestcar = GetClosestCar(playerid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 5.0))
- {
- if(GetVehicleModel(closestcar) == 481 || GetVehicleModel(closestcar) == 509 || GetVehicleModel(closestcar) == 510)
- {
- return SendClientMessage(playerid,COLOR_WHITE,"This command can't be used on this vehicle.");
- }
- SetVehicleTrunk(closestcar, playerid);
- }
- }
- }
- else if(strcmp(params, "hood", true) == 0 && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510 || IsAPlane(vehicleid) || IsABike(vehicleid))
- {
- return SendClientMessage(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
- }
- SetVehicleHood(vehicleid, playerid);
- }
- else if(!IsPlayerInAnyVehicle(playerid))
- {
- new closestcar = GetClosestCar(playerid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 5.0))
- {
- if(GetVehicleModel(closestcar) == 481 || GetVehicleModel(closestcar) == 509 || GetVehicleModel(closestcar) == 510 || IsAPlane(closestcar) || IsABike(closestcar))
- {
- return SendClientMessage(playerid,COLOR_WHITE,"This command can't be used on this vehicle.");
- }
- SetVehicleHood(closestcar, playerid);
- }
- }
- }
- return 1;
- }
- CMD:stopani(playerid, params[])
- {
- if(StopaniFloats[playerid][0] != 0)
- {
- SendClientMessage (playerid, COLOR_GREY, "You're already attempting to clear your animations!");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- }
- else
- {
- GetPlayerPos(playerid, StopaniFloats[playerid][0], StopaniFloats[playerid][1], StopaniFloats[playerid][2]);
- SetTimerEx("StopaniTimer", 5000, 0, "d", playerid);
- SendClientMessage (playerid, COLOR_YELLOW, "Do not move for 5 seconds to have your animations cleared!");
- }
- return 1;
- }
- forward StopaniTimer(playerid);
- public StopaniTimer(playerid)
- {
- new Float:posX, Float:posY, Float:posZ;
- GetPlayerPos(playerid, posX, posY, posZ);
- if(StopaniFloats[playerid][0] != posX || StopaniFloats[playerid][1] != posY || StopaniFloats[playerid][2] != posZ)
- {
- SendClientMessage (playerid, COLOR_YELLOW, "Failed to clear animations because you moved!");
- for(new i = 0; i < 3; i++)
- {
- StopaniFloats[playerid][i] = 0;
- }
- return 1;
- }
- SendClientMessage (playerid, COLOR_YELLOW, "Your animations were cleared!");
- ClearAnimations(playerid);
- SetPlayerSkin(playerid, GetPlayerSkin(playerid));
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- for(new i = 0; i < 3; i++)
- {
- StopaniFloats[playerid][i] = 0;
- }
- return 1;
- }
- CMD:pay(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new
- iTargetID, iCashAmount;
- if(sscanf(params, "ui", iTargetID, iCashAmount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [playerid/partofname] [amount]");
- if(iTargetID == playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't use this command on yourself!");
- return 1;
- }
- if(iCashAmount > 100 && PlayerInfo[playerid][pLevel] < 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to pay over $100");
- return 1;
- }
- if(iCashAmount < 1 || iCashAmount > 10000)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Don't go below $1, or above $10,000 at once.");
- return 1;
- }
- if(IsPlayerConnected(iTargetID))
- {
- if(ProxDetectorS(5.0, playerid, iTargetID))
- {
- new
- szMessage[128], giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME], playermoney = GetPlayerCash(playerid);
- giveplayer = GetPlayerNameEx(iTargetID);
- sendername = GetPlayerNameEx(playerid);
- if(iCashAmount > 0 && playermoney >= iCashAmount)
- {
- GivePlayerCash(playerid, (0 - iCashAmount));
- GivePlayerCash(iTargetID, iCashAmount);
- format(szMessage, sizeof(szMessage), " You have sent %s(player: %d), $%d.", GetPlayerNameEx(iTargetID),iTargetID, iCashAmount);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD1, szMessage);
- format(szMessage, sizeof(szMessage), " You have recieved $%d from %s(player: %d).", iCashAmount, GetPlayerNameEx(playerid), playerid);
- SendClientMessage(iTargetID, COLOR_GRAD1, szMessage);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(iTargetID, ipex, sizeof(ipex));
- format(szMessage, sizeof(szMessage), "%s (IP:%s) has paid $%d to %s (IP:%s)", GetPlayerNameEx(playerid), ip, iCashAmount, GetPlayerNameEx(iTargetID), ipex);
- Log("logs/pay.log", szMessage);
- PayWarn[playerid][iTargetID] += iCashAmount;
- if(PayWarn[playerid][iTargetID] >= 10000 && PlayerInfo[playerid][pLevel] <= 3)
- {
- format(szMessage, sizeof(szMessage), "%s (IP:%s) has paid %s (IP:%s) $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(iTargetID), ipex, PayWarn[playerid][iTargetID]);
- ABroadCast(COLOR_YELLOW, szMessage, 1);
- }
- if(iCashAmount >= 100000)
- {
- ABroadCast(COLOR_YELLOW,szMessage,1);
- }
- PlayerPlaySound(iTargetID, 1052, 0.0, 0.0, 0.0);
- format(szMessage, sizeof(szMessage), "* %s takes out some cash, and hands it to %s.", GetPlayerNameEx(playerid) ,GetPlayerNameEx(iTargetID));
- ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:train(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 756.229125, 5.614504, 1000.698608) || IsPlayerInRangeOfPoint(playerid, 3.0, 758.43,-78.0,1000.65))
- {
- ShowPlayerDialogEx(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "Fighting Moves", "Boxing $5000\nElbow $5000\nKneehead $5000\nKung-Fu $5000\nGrabKick $5000\nNormal", "Learn", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at the learning area !(inside gym)");
- }
- return 1;
- }
- CMD:selldrink(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 19 || PlayerInfo[playerid][pJob2] == 19)
- {
- if(IsAtBar(playerid))
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /selldrink [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(playerid == giveplayerid)
- {
- return SendClientMessage(playerid, COLOR_GREY, " You can't sell drinks to yourself.");
- }
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- DrinkOffer[giveplayerid] = playerid;
- format(string, sizeof(string), "* Bartender %s has offered has offered to pour you a drink. /accept drink to select a drink.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* You have offered %s a drink.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, " That player is not near you!");
- }
- }
- else
- {
- return SendClientMessage(playerid, COLOR_GREY, " That player is not connected!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not at a Bar!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a bartender!");
- return 1;
- }
- return 1;
- }
- CMD:usepot(playerid, params[])
- {
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- return 1;
- }
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use drugs while you're boxing.");
- return 1;
- }
- if(UsedWeed[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must wait 5 seconds before using more drugs.");
- return 1;
- }
- new string[128], Float:health, healthint;
- GetPlayerHealth(playerid, health);
- healthint = floatround(health, floatround_round);
- if(healthint >= 100)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have full health.");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] > 1)
- {
- if(PlayerStoned[playerid] > 3) return SendClientMessage(playerid, COLOR_GRAD1, "You're too stoned to use pot.");
- PlayerStoned[playerid] += 1;
- if(PlayerStoned[playerid] == 3)
- {
- GameTextForPlayer(playerid, "~w~You're ~b~stoned", 5000, 3);
- }
- if(healthint > 80)
- {
- SetPlayerHealth(playerid, 100);
- }
- else
- {
- SetPlayerHealth(playerid, health + 20.0);
- }
- SendClientMessage(playerid, COLOR_GREY, " You used 2 grams of pot!");
- format(string, sizeof(string), "* %s has used some pot.", GetPlayerNameEx(playerid));
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pPot] -= 2;
- UsedWeed[playerid] = 1;
- SetTimerEx("ClearDrugs", 5000, false, "d", playerid);
- if(!IsPlayerInAnyVehicle(playerid)) ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop",2.1,0,0,0,0,0);
- switch(GetPVarInt(playerid, "STD")) {
- case 1:
- {
- DeletePVar(playerid, "STD");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're no longer infected with a STI anymore because of the Drugs!");
- }
- case 2:
- {
- SetPVarInt(playerid, "STD", 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You reduced the STI to chlamydia because of the drugs!");
- }
- case 3:
- {
- SetPVarInt(playerid, "STD", 2);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You reduced the STI to gonorrhea because of the drugs!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You don't have any pot left!");
- }
- return 1;
- }
- CMD:usecrack(playerid, params[])
- {
- new Float:armour;
- GetPlayerArmour(playerid, armour);
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- return 1;
- }
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use drugs while you're fighting.");
- return 1;
- }
- if(UsedCrack[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must wait 5 seconds before using more drugs.");
- return 1;
- }
- if(armour >= 100)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have full armor.");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] > 1)
- {
- if(PlayerStoned[playerid] > 3) return SendClientMessage(playerid, COLOR_GRAD1, "You're too stoned to use crack.");
- PlayerStoned[playerid] += 1;
- if(PlayerStoned[playerid] == 3)
- {
- GameTextForPlayer(playerid, "~w~You're ~b~stoned", 5000, 3);
- }
- new string[128], Float:PlayersArmour;
- GetPlayerArmour(playerid, PlayersArmour);
- SendClientMessage(playerid, COLOR_GREY, " You used 2 grams of crack!");
- format(string, sizeof(string), "* %s has used some crack.", GetPlayerNameEx(playerid));
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][pCrack] -= 2;
- UsedCrack[playerid] = 1;
- SetTimerEx("ClearDrugs", 5000, false, "d", playerid);
- if(PlayersArmour > 90)
- {
- SetPlayerArmourEx(playerid, 100);
- }
- else
- {
- SetPlayerArmourEx(playerid, PlayersArmour + 10.0);
- }
- if(!IsPlayerInAnyVehicle(playerid)) ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop",2.1,0,0,0,0,0);
- switch(GetPVarInt(playerid, "STD")) {
- case 1:
- {
- DeletePVar(playerid, "STD");
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're no longer infected with an STI anymore because of the drugs!");
- }
- case 2:
- {
- SetPVarInt(playerid, "STD", 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You reduced the STI to chlamydia because of the drugs!");
- }
- case 3:
- {
- SetPVarInt(playerid, "STD", 2);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You reduced the STI to gonorrhea because of the drugs!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have any crack left!");
- }
- return 1;
- }
- CMD:fare(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17)
- {
- new string[128], fare;
- if(sscanf(params, "d", fare)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fare [price]");
- if(TransportDuty[playerid] > 0)
- {
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- else if(TransportDuty[playerid] == 2)
- {
- BusDrivers -= 1;
- }
- TransportDuty[playerid] = 0;
- format(string, sizeof(string), "* you're now off duty and earned $%d.", TransportMoney[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, TransportMoney[playerid]);
- ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
- SetPlayerToTeamColor(playerid);
- return 1;
- }
- if(JobDuty[playerid] != 0) return SendClientMessage(playerid,COLOR_GREY,"You need to get off duty with your mechanic/lawyer job first.");
- new newcar = GetPlayerVehicleID(playerid);
- if(IsAnTaxi(newcar))
- {
- if(GetPlayerState(playerid) == 2)
- {
- if(fare < 1 || fare > 50)
- {
- SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $50!");
- return 1;
- }
- TaxiDrivers += 1; TransportDuty[playerid] = 1; TransportValue[playerid] = fare;
- format(string, sizeof(string), "* you're now on-duty as Taxi Driver, fare: $%d.", TransportValue[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SetPlayerToTeamColor(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not the driver!");
- return 1;
- }
- }
- else if(IsAnBus(newcar))
- {
- if(GetPlayerState(playerid) == 2)
- {
- if(fare < 1 || fare > 50)
- {
- SendClientMessage(playerid, COLOR_GREY, " Fare price must be between $1 and $50!");
- return 1;
- }
- BusDrivers += 1; TransportDuty[playerid] = 2; TransportValue[playerid]=fare;
- format(string, sizeof(string), "* you're now on-duty as Bus Driver, fare: $%d.", TransportValue[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- SetPlayerToTeamColor(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not the driver!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not in a taxi or a bus!");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
- return 1;
- }
- return 1;
- }
- CMD:fight(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 12 && PlayerInfo[playerid][pJob2] != 12)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Boxer!");
- return 1;
- }
- if(InRing > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " There is already a Fight going on, wait for it to Finish!");
- return 1;
- }
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're already Fighting!");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fight [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,20.0,765.952270, 4.167977, 1000.719238))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't Box with yourself!"); return 1; }
- format(string, sizeof(string), "* You offered a Boxing Challenge to %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Boxer %s wants to Fight with you (type /accept boxing) to accept.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- BoxOffer[giveplayerid] = playerid;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2,"You're not at the Gym!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- return 1;
- }
- CMD:boxstats(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 12 && PlayerInfo[playerid][pJob2] != 12)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Boxer!");
- return 1;
- }
- new string[128], ttext[20];//Title
- new clevel = PlayerInfo[playerid][pBoxSkill];
- if(clevel >= 0 && clevel <= 50) { ttext = "Beginner"; }
- else if(clevel >= 51 && clevel <= 200) { ttext = "Amateur"; }
- else if(clevel >= 201 && clevel <= 400) { ttext = "Professional"; }
- new ntext[20];//NickName
- new level = PlayerInfo[playerid][pWins];
- if(level > 0 && PlayerInfo[playerid][pLoses] == 0)
- {
- ntext = "Undefeated";
- }
- else
- {
- if(level >= 0 && level <= 10) { ntext = "Newcomer"; }
- else if(level >= 11 && level <= 20) { ntext = "Touchy Fist"; }
- else if(level >= 21 && level <= 30) { ntext = "Nut Cracker"; }
- else if(level >= 31 && level <= 40) { ntext = "Tommygun"; }
- else if(level >= 41 && level <= 50) { ntext = "Skull Breaker"; }
- else if(level >= 51 && level <= 60) { ntext = "Light Speed"; }
- else if(level >= 61 && level <= 70) { ntext = "Unbroken Warrior"; }
- else if(level >= 71) { ntext = "Itallion Stallion"; }
- }
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Boxing Records __________________|");
- format(string, sizeof(string), "| Current Title: %s.", ttext);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Current NickName: %s.", ntext);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Total Wins: %d.", PlayerInfo[playerid][pWins]);
- SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), "| Total Losses: %d.", PlayerInfo[playerid][pLoses]);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________________|");
- return 1;
- }
- CMD:give(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128], giveplayerid, choice[32], amount;
- if(sscanf(params, "us[32]d", giveplayerid, choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /give [playerid/partofname] [name] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack, Materials");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have that much!");
- return 1;
- }
- if(!ProxDetectorS(5.0, playerid, giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself!");
- return 1;
- }
- if(strcmp(choice, "materials", true) == 0)
- {
- if(PlayerInfo[playerid][pMats] >= amount)
- {
- format(string, sizeof(string), "You have recieved %d Materials from %s.", amount, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- PlayerInfo[giveplayerid][pMats] += amount;
- PlayerInfo[playerid][pMats] -= amount;
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- format(string, sizeof(string), "%s(IP:%s) has given %s(IP:%s) %d materials.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/pay.log", string);
- /*if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(string, sizeof(string), "[Admin] %s(IP:%s) has given %s(IP:%s) %d materials.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/admingive.log", string);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s(IP:%s) has given %s(IP:%s) %d materials.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- ABroadCast(COLOR_YELLOW, string, 2);
- }*/
- format(string, sizeof(string), "You have given %s %d Materials.", GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "* %s has given %s some Materials.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much!");
- return 1;
- }
- }
- /*if(strcmp(choice, "firework", true) == 0)
- {
- if(PlayerInfo[playerid][pFirework] >= amount)
- {
- format(string, sizeof(string), "You have recieved %d firework(s) from %s.", amount, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- PlayerInfo[giveplayerid][pFirework] += amount;
- PlayerInfo[playerid][pFirework] -= amount;
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- format(string, sizeof(string), "%s(IP:%s) has given %s(IP:%s) %d firework(s).", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/pay.log", string);
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(string, sizeof(string), "[Admin] %s(IP:%s) has given %s(IP:%s) %d firework(s).", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/admingive.log", string);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s(IP:%s) has given %s(IP:%s) %d firework(s).", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- ABroadCast(COLOR_YELLOW, string, 2);
- }
- format(string, sizeof(string), "You have given %s %d firework(s).", GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "* %s has given %s some firework(s).", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that many!");
- return 1;
- }
- }*/
- if(strcmp(choice, "pot", true) == 0)
- {
- if(PlayerInfo[playerid][pPot] >= amount)
- {
- if(amount + PlayerInfo[giveplayerid][pPot] >= 51)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player can't carry more than 50 pot!");
- return 1;
- }
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 50)
- { if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 10 at your Skill Level!"); return 1; } }
- else if(level >= 51 && level <= 100)
- { if(amount < 1 || amount > 20) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 20 at your Skill Level!"); return 1; } }
- else if(level >= 101 && level <= 200)
- { if(amount < 1 || amount > 30) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 30 at your Skill Level!"); return 1; } }
- else if(level >= 201 && level <= 400)
- { if(amount < 1 || amount > 40) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 40 at your Skill Level!"); return 1; } }
- else if(level >= 401)
- { if(amount < 1 || amount > 50) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 50 at your Skill Level!"); return 1; } }
- format(string, sizeof(string), "You have recieved %d Pot from %s.", amount, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- PlayerInfo[giveplayerid][pPot] += amount;
- PlayerInfo[playerid][pPot] -= amount;
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- /*format(string, sizeof(string), "%s(IP:%s) has given %s(IP:%s) %d pot.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/pay.log", string);*/
- /*if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(string, sizeof(string), "[Admin] %s(IP:%s) has given %s(IP:%s) %d pot.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/admingive.log", string);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s(IP:%s) has given %s(IP:%s) %d pot.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- ABroadCast(COLOR_YELLOW, string, 2);
- }*/
- format(string, sizeof(string), "You have given %s %d Pot.", GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "* %s has given %s some Pot.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much!");
- return 1;
- }
- }
- if(strcmp(choice, "crack", true) == 0)
- {
- if(PlayerInfo[playerid][pCrack] >= amount)
- {
- if(amount + PlayerInfo[giveplayerid][pCrack] >= 26)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player can't carry more than 25 crack!");
- return 1;
- }
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 50)
- { if(amount < 1 || amount > 5) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 5 at your Skill Level!"); return 1; } }
- else if(level >= 51 && level <= 100)
- { if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 10 at your Skill Level!"); return 1; } }
- else if(level >= 101 && level <= 200)
- { if(amount < 1 || amount > 15) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 15 at your Skill Level!"); return 1; } }
- else if(level >= 201 && level <= 400)
- { if(amount < 1 || amount > 20) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 20 at your Skill Level!"); return 1; } }
- else if(level >= 401)
- { if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 25 at your Skill Level!"); return 1; } }
- format(string, sizeof(string), "You have recieved %d Crack from %s.", amount, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_GRAD2, string);
- PlayerInfo[giveplayerid][pCrack] += amount;
- PlayerInfo[playerid][pCrack] -= amount;
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(giveplayerid, ipex, sizeof(ipex));
- /*format(string, sizeof(string), "%s(IP:%s) has given %s(IP:%s) %d crack.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/pay.log", string);*/
- /*if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(string, sizeof(string), "[Admin] %s(IP:%s) has given %s(IP:%s) %d crack.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- Log("logs/admingive.log", string);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s(IP:%s) has given %s(IP:%s) %d crack.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(giveplayerid), ipex, amount);
- ABroadCast(COLOR_YELLOW, string, 2);
- }*/
- format(string, sizeof(string), "You have given %s %d Crack.", GetPlayerNameEx(giveplayerid), amount);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), "* %s has given %s some Crack.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much!");
- return 1;
- }
- }
- }
- }
- return 1;
- }
- CMD:getmats(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 9 && PlayerInfo[playerid][pJob2] != 9 && PlayerInfo[playerid][pJob] != 18 && PlayerInfo[playerid][pJob2] != 18)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not an Arms Dealer or Craftsman!");
- return 1;
- }
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- new mypoint = -1;
- new mypointex = -1;
- new mydeliver = 0;
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && Points[i][Type] == 1)
- {
- mypoint = i;
- mypointex = i;
- mydeliver = Points[i][MatPoint];
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at a Materials Pickup!");
- return 1;
- }
- mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(Points[i][MatPoint] == mydeliver && Points[i][Type] == 2)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, " No Materials Factory found for that Pickup!");
- return 1;
- }
- if(GetPlayerCash(playerid) < 80)
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford the $80!");
- return 1;
- }
- GivePlayerCash(playerid, -80);
- SetPVarInt(playerid, "Packages", 15);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You bought 15 Materials Packages for $80.");
- SetPVarInt(playerid, "MatDeliver", mydeliver);
- SetPVarInt(playerid, "tpMatRunTimer", 10);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPMATRUNTIMER);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypointex][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+25;
- //SendClientMessage(playerid, COLOR_WHITE, " Family owner recieved 50 percent of the cost.");
- }
- }
- SetPlayerCheckpoint(playerid, Points[mypoint][Pointx], Points[mypoint][Pointy], Points[mypoint][Pointz], 5);
- return 1;
- }
- CMD:sellmats(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] != 9 && PlayerInfo[playerid][pJob2] != 9 && PlayerInfo[playerid][pJob] != 18 && PlayerInfo[playerid][pJob2] != 18)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not an arms dealer or craftsman");
- return 1;
- }
- new string[128];
- if(GetPVarInt(playerid, "SellMatsTimer") > 0)
- {
- format(string, sizeof(string), "You must wait %d seconds before selling more materials.", GetPVarInt(playerid, "SellMatsTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new giveplayerid, amount, price;
- if(sscanf(params, "udd", giveplayerid, amount, price)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellmats [playerid/partofname] [amount] [price]");
- if(amount < 1) { SendClientMessage(playerid, COLOR_GREY, "Materials amount must be no lower than 1!"); return 1; }
- if(price < 5000) { SendClientMessage(playerid, COLOR_GREY, "Price must be no lower than $5000, use /give for deals below the scam limit."); return 1; }
- if(amount > PlayerInfo[playerid][pMats]) { SendClientMessage(playerid, COLOR_GREY, "You don't have that many materials!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "Cant sell to yourself!");
- return 1;
- }
- format(string, sizeof(string), "* You offered %s to buy %d materials for $%d.", GetPlayerNameEx(giveplayerid), amount, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s wants to sell you %d materials for $%d, (type /accept mats) to buy.", GetPlayerNameEx(playerid), amount, price);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- SetPVarInt(playerid, "SellMatsTimer", 30); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_SELLMATSTIMER);
- MatsOffer[giveplayerid] = playerid;
- MatsPrice[giveplayerid] = price;
- MatsAmount[giveplayerid] = amount;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:guard(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 8 && PlayerInfo[playerid][pJob2] != 8)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a bodyguard.");
- return 1;
- }
- /*if(WatchingTV[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while watching TV!");
- return 1;
- }*/
- if(PlayerBoxing[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't offer bodyguard while you're boxing.");
- return 1;
- }
- new string[128], giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /guard [playerid/partofname] [price]");
- if(GetPVarInt(playerid, "GuardTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before selling another vest.", GetPVarInt(playerid, "GuardTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(money < 200 || money > 1000) { SendClientMessage(playerid, COLOR_GREY, "Specified price must be between $200 and $1000."); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't /guard yourself.");
- return 1;
- }
- SetPVarInt(playerid, "GuardTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GUARDTIMER);
- format(string, sizeof(string), "* You offered protection to %s for $%d.", GetPlayerNameEx(giveplayerid), money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Bodyguard %s wants to protect you for $%d, type /accept bodyguard to accept.", GetPlayerNameEx(playerid), money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- GuardOffer[giveplayerid] = playerid;
- GuardPrice[giveplayerid] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- return 1;
- }
- CMD:dicebet(playerid, params[])
- {
- if(PlayerInfo[playerid][pLevel] <= 3)
- {
- SCM(playerid, COLOR_GRAD2, "You must be alteast level 3 to gamble.");
- return 1;
- }
- if(BetOffer[playerid] < 999)
- {
- SendClientMessage(playerid, -1, "You already have a bet, /cancel dicebet first.");
- return 1;
- }
- new string[128], giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dicebet [playerid/partofname] [amount]");
- if(GetPVarInt(playerid, "BetTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before giving another bet.", GetPVarInt(playerid, "BetTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(GetPlayerMoney(playerid) >= money)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't /dicebet yourself.");
- return 1;
- }
- if(money > 0 && money <= 50000000)
- {
- SetPVarInt(playerid, "BetTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_BETTIMER);
- format(string, sizeof(string), "* You offered a bet to %s for $%s.", GetPlayerNameEx(giveplayerid), Comma(money));
- SendClientMessage(playerid, -1, string);
- format(string, sizeof(string), "* %s wants to bet you for $%s, type /accept dicebet to accept.", GetPlayerNameEx(playerid), Comma(money));
- SendClientMessage(giveplayerid, -1, string);
- BetOffer[giveplayerid] = playerid;
- BetPrice[giveplayerid] = money;
- }
- else return SCM(playerid, -1, "Bet amount must be $1 and and $50,000,000");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You don't have that much.");
- }
- return 1;
- }
- CMD:dropcar(playerid, params[])
- {
- return cmd_sellcar(playerid, params);
- }
- CMD:sellcar(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pCarTime] == 0)
- {
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You need at least 2 playing hours before you can drop off a car.");
- return 1;
- }
- GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
- CP[playerid] = 1;
- SetPlayerCheckpoint(playerid, 2695.8699,-2225.3853,13.5501,8.0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You have already dropped a car, wait until your reload time is over!");
- }
- return 1;
- }
- CMD:lawyerduty(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 2 || PlayerInfo[playerid][pJob2] == 2)
- {
- if(JobDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're now off duty on your lawyer job and will not receive calls anymore.");
- JobDuty[playerid] = 0;
- Lawyers -= 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're now on duty on your lawyer job and will receive calls from people in need.");
- JobDuty[playerid] = 1;
- Lawyers += 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not a lawyer!");
- }
- return 1;
- }
- CMD:defend(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 2 && PlayerInfo[playerid][pJob2] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Lawyer!");
- return 1;
- }
- new string[128];
- if(PlayerInfo[playerid][pLawyerTime] >= 1)
- {
- format(string, sizeof(string), "You must wait %d seconds before you can defend again!", PlayerInfo[playerid][pLawyerTime]);
- SendClientMessage(playerid, COLOR_GRAD1,string);
- return 1;
- }
- new giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /defend [playerid/partofname] [price]");
- if(money < 200 || money > 1000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower than $200 or above $1000!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " Cant offer protection to yourself!");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pWantedLevel] > 0)
- {
- format(string, sizeof(string), "* You offered to defend %s for $%d.", GetPlayerNameEx(giveplayerid), money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Lawyer %s wants to defend you for $%d, (type /accept defense) to accept.", GetPlayerNameEx(playerid), money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pLawyerTime] = 60;
- DefendOffer[giveplayerid] = playerid;
- DefendPrice[giveplayerid] = money;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not wanted!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- return 1;
- }
- CMD:free(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 2 && PlayerInfo[playerid][pJob2] != 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Lawyer!");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /free [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't Free yourself!"); return 1; }
- if(PlayerInfo[playerid][pLawyerFreeTime] >= 1)
- {
- format(string, sizeof(string), "You must wait %d seconds before you can free again!", PlayerInfo[playerid][pLawyerFreeTime]);
- SendClientMessage(playerid, COLOR_GRAD1,string);
- return 1;
- }
- if(PlayerInfo[giveplayerid][pJailed] == 1 || PlayerInfo[giveplayerid][pJailed] == 2)
- {
- //ApprovedLawyer[playerid] = 0;
- WantLawyer[giveplayerid] = 0;
- CallLawyer[giveplayerid] = 0;
- JailPrice[giveplayerid] = 0;
- new level = PlayerInfo[playerid][pLawSkill];
- if(level >= 0 && level <= 50)
- {
- PlayerInfo[giveplayerid][pJailTime] -= 60;
- PlayerInfo[playerid][pLawyerFreeTime] = 160;
- format(string, sizeof(string), "* You have reduced %s's jail time by 1 minute.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Your jail time has been reduced by 1 minute by Lawyer %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(level >= 51 && level <= 100)
- {
- PlayerInfo[giveplayerid][pJailTime] -= 120;
- PlayerInfo[playerid][pLawyerFreeTime] = 120;
- format(string, sizeof(string), "* You have reduced %s's jail time by 2 minutes.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Your jail time has been reduced by 2 minutes by Lawyer %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(level >= 101 && level <= 200)
- {
- PlayerInfo[giveplayerid][pJailTime] -= 180;
- PlayerInfo[playerid][pLawyerFreeTime] = 90;
- format(string, sizeof(string), "* You have reduced %s's jail time by 3 minutes.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Your jail time has been reduced by 3 minutes by Lawyer %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(level >= 201 && level <= 400)
- {
- PlayerInfo[giveplayerid][pJailTime] -= 240;
- PlayerInfo[playerid][pLawyerFreeTime] = 60;
- format(string, sizeof(string), "* You have reduced %s's jail time by 4 minutes.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Your jail time has been reduced by 4 minutes by Lawyer %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else if(level >= 401)
- {
- PlayerInfo[giveplayerid][pJailTime] -= 300;
- PlayerInfo[playerid][pLawyerFreeTime] = 30;
- format(string, sizeof(string), "* You have reduced %s's jail time by 5 minutes.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Your jail time has been reduced by 5 minutes by Lawyer %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pLawSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pLawSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pLawSkill]++;
- }
-
- if(PlayerInfo[playerid][pLawSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 2, you will now free faster and have quicker Reload Time."); }
- else if(PlayerInfo[playerid][pLawSkill] == 100)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 3, you will now free faster and have quicker Reload Time."); }
- else if(PlayerInfo[playerid][pLawSkill] == 200)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 4, you will now free faster and have quicker Reload Time."); }
- else if(PlayerInfo[playerid][pLawSkill] == 400)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Lawyer Skill is now Level 5, you will now free faster and have quicker Reload Time."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Player doesn't need a lawyer / Player isn't jailed!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- return 1;
- }
- CMD:getcrate(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 14 && PlayerInfo[playerid][pJob2] != 14)
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Drug Smuggler!");
- return 1;
- }
- new mypoint = -1;
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && strcmp(Points[i][Name], "Drug Factory", true) == 0)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Drug Factory!");
- return 1;
- }
- if(PlayerInfo[playerid][pCrates])
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold any more Drug Crates!");
- return 1;
- }
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(GetPlayerCash(playerid) >= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? (Type crack or pot)");
- SetPVarInt(playerid, "ChoosingDrugs", 1);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford the $100!");
- return 1;
- }
- }
- CMD:getpot(playerid, params[])
- {
- new string[128], amount;
- if(sscanf(params, "d", amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getpot [amount]");
- new tel;
- new price;
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 50)
- { tel = 10; if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 10 at your Skill Level!"); return 1; } }
- else if(level >= 51 && level <= 100)
- { tel = 10; if(amount < 1 || amount > 20) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 20 at your Skill Level!"); return 1; } }
- else if(level >= 101 && level <= 200)
- { tel = 10; if(amount < 1 || amount > 30) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 30 at your Skill Level!"); return 1; } }
- else if(level >= 201 && level <= 400)
- { tel = 10; if(amount < 1 || amount > 40) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 40 at your Skill Level!"); return 1; } }
- else if(level >= 401)
- { tel = 10; if(amount < 1 || amount > 50) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 50 at your Skill Level!"); return 1; } }
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && Points[i][Type] == 3)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Drug House!");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] >= 25)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You have reached your pot limit of 25 pot.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] == 4 || PlayerInfo[playerid][pJob2] == 4)
- {
- price = amount * tel;
- if(Points[mypoint][Stock] < amount) return SendClientMessage(playerid, COLOR_GREY, " This Drug House doesn't have that much pot!");
- if(GetPlayerCash(playerid) > price)
- {
- format(string, sizeof(string), "* You bought %d grams for $%d.", amount, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, -price);
- PlayerInfo[playerid][pPot] += amount;
- Points[mypoint][Stock] -= amount;
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[mypoint][Stock]);
- UpdateDynamic3DTextLabelText(Points[mypoint][TextLabel], COLOR_YELLOW, string);
- /*if(PlayerInfo[playerid][pDonator] < 1)
- {
- Points[mypoint][Stock] -= amount;
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[mypoint][Stock]);
- UpdateDynamic3DTextLabelText(Points[mypoint][TextLabel], COLOR_YELLOW, string);
- }*/
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+price/2;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford the drugs!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not a drug dealer.");
- return 1;
- }
- return 1;
- }
- CMD:getcrack(playerid, params[])
- {
- new string[128], amount;
- if(sscanf(params, "d", amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getcrack [amount]");
- new tel;
- new price;
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 50)
- {
- tel = 50;
- if(amount < 1 || amount > 5)
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't go above 5 at your Skill Level!");
- return 1;
- }
- }
- else if(level >= 51 && level <= 100)
- { tel = 50; if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You can't go above 10 at your Skill Level!"); return 1; } }
- else if(level >= 101 && level <= 200)
- { tel = 50; if(amount < 1 || amount > 15) { SendClientMessage(playerid, COLOR_GREY, " You can't go above 15 at your Skill Level!"); return 1; } }
- else if(level >= 201 && level <= 400)
- { tel = 50; if(amount < 1 || amount > 20) { SendClientMessage(playerid, COLOR_GREY, " You can't go above 20 at your Skill Level!"); return 1; } }
- else if(level >= 401)
- { tel = 50; if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " You can't go above 25 at your Skill Level!"); return 1; } }
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && Points[i][Type] == 4)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Crack Lab!");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] >= 25)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You have reached your crack limit of 25 crack.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] == 4 || PlayerInfo[playerid][pJob2] == 4)
- {
- price = amount * tel;
- if(Points[mypoint][Stock] < amount) return SendClientMessage(playerid, COLOR_GREY, " This Crack Lab doesn't have that much crack!");
- if(GetPlayerCash(playerid) > price)
- {
- format(string, sizeof(string), "* You bought %d grams for $%d.", amount, price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, -price);
- PlayerInfo[playerid][pCrack] += amount;
- //if(PlayerInfo[playerid][pDonator] < 1) Points[mypoint][Stock] = Points[mypoint][Stock]-amount;
- Points[mypoint][Stock] = Points[mypoint][Stock]-amount;
- format(string, sizeof(string), " CRACK AVAILABLE: %d grams.", Points[mypoint][Stock]);
- UpdateDynamic3DTextLabelText(Points[mypoint][TextLabel], COLOR_YELLOW, string);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+price/2;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You cant afford the Drugs!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a drug dealer.");
- return 1;
- }
- return 1;
- }
- CMD:getseeds(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] != 4 && PlayerInfo[playerid][pJob2] != 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a drug dealer.");
- return 1;
- }
- if(PlayerInfo[playerid][pWSeeds] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You already have a bag of seeds, use them first.");
- return 1;
- }
- if(GetPlayerCash(playerid) < 1000)
- {
- SendClientMessage(playerid, COLOR_GREY, " You do not have $1000.");
- return 1;
- }
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && Points[i][Type] == 3)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Drug House!");
- return 1;
- }
- if(Points[mypoint][Stock] < 1) return SendClientMessage(playerid, COLOR_GREY, " This drug house doesn't have any seeds.");
- /*if(PlayerInfo[playerid][pDonator] < 1)
- {
- new string[32];
- Points[mypoint][Stock] -= 1;
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[mypoint][Stock]);
- UpdateDynamic3DTextLabelText(Points[mypoint][TextLabel], COLOR_YELLOW, string);
- }*/
- new string[32];
- Points[mypoint][Stock] -= 1;
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[mypoint][Stock]);
- UpdateDynamic3DTextLabelText(Points[mypoint][TextLabel], COLOR_YELLOW, string);
- PlayerInfo[playerid][pWSeeds] += 3;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, " You have purchased a bag of Pot Seeds from the Drug House. ");
- GivePlayerCash(playerid, -1000);
- GameTextForPlayer(playerid, "~r~-$1000", 3000, 1);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] += 500;
- }
- }
- return 1;
- }
- CMD:plantseeds(playerid, params[]) {
- if(PlayerInfo[playerid][pJob] != 4 && PlayerInfo[playerid][pJob2] != 4) {
- SendClientMessage(playerid, COLOR_GREY, " You're not a drug dealer.");
- }
- else if(PlayerInfo[playerid][pWSeeds] > 0) {
- if(IsValidDynamicObject(PlayerInfo[playerid][pWeedObject]))
- return SendClientMessage(playerid, COLOR_GRAD2, "You already have a plant growing.");
- if(IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_GREY, "You can't plant while in a vehicle.");
- new
- szMessage[48];
- GetPlayerPos(playerid, PlayerInfo[playerid][pWeedPos][0], PlayerInfo[playerid][pWeedPos][1], PlayerInfo[playerid][pWeedPos][2]);
- PlayerInfo[playerid][pWeedPos][2] -= 1.5;
- ApplyAnimation(playerid,"BOMBER","BOM_Plant_Crouch_In", 4.0, 0, 0, 0, 0, 0, 1);
- SendClientMessage(playerid, COLOR_GREEN, "You have planted some weed. It will take around 20-45 minutes to grow.");
- PlayerInfo[playerid][pWeedInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pWeedVW] = GetPlayerVirtualWorld(playerid);
- PlayerInfo[playerid][pWeedGrowth] = 0;
- PlayerInfo[playerid][pWSeeds]--;
- PlayerInfo[playerid][pWeedObject] = CreateDynamicObject(3409, PlayerInfo[playerid][pWeedPos][0], PlayerInfo[playerid][pWeedPos][1], PlayerInfo[playerid][pWeedPos][2], 0.0, 0.0, 0.0, PlayerInfo[playerid][pWeedVW], PlayerInfo[playerid][pWeedInt]);
- format(szMessage, sizeof(szMessage), "* %s plants some weed.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else SendClientMessage(playerid, COLOR_GREY, "You don't have enough seeds to plant weed - head to the drug house and pick up some seeds (/getseeds).");
- return 1;
- }
- CMD:checkweed(playerid, params[]) {
- if(IsValidDynamicObject(PlayerInfo[playerid][pWeedObject]) && GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pWeedVW] && GetPlayerInterior(playerid) == PlayerInfo[playerid][pWeedInt]) {
- if(IsPlayerInRangeOfPoint(playerid, 4, PlayerInfo[playerid][pWeedPos][0], PlayerInfo[playerid][pWeedPos][1], PlayerInfo[playerid][pWeedPos][2])) {
- if(PlayerInfo[playerid][pWeedGrowth] > 10) {
- new
- szMessage[66 + MAX_PLAYER_NAME];
- format(szMessage, sizeof(szMessage), "Your plant currently carries %i grams - use /pickweed to claim it.", PlayerInfo[playerid][pWeedGrowth]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "Your plant isn't ready to be picked yet.");
- return 1;
- }
- }
- foreach(Player, i) if(IsValidDynamicObject(PlayerInfo[i][pWeedObject]) && GetPlayerVirtualWorld(playerid) == PlayerInfo[i][pWeedVW] && GetPlayerInterior(playerid) == PlayerInfo[i][pWeedInt]) {
- if(IsPlayerInRangeOfPoint(playerid, 4, PlayerInfo[i][pWeedPos][0], PlayerInfo[i][pWeedPos][1], PlayerInfo[i][pWeedPos][2])) {
- if(PlayerInfo[i][pWeedGrowth] > 10) {
- new
- szMessage[66 + MAX_PLAYER_NAME];
- format(szMessage, sizeof(szMessage), "This plant currently carries %i grams - use /pickweed to claim it.", PlayerInfo[i][pWeedGrowth]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- else SendClientMessage(playerid, COLOR_YELLOW, "This plant isn't ready to be picked yet.");
- return 1;
- }
- }
- return SendClientMessage(playerid, COLOR_GREY, "You're not at a plant.");
- }
- CMD:pickweed(playerid, params[]) {
- foreach(Player, i) if(IsValidDynamicObject(PlayerInfo[i][pWeedObject]) && IsPlayerInRangeOfPoint(playerid, 4, PlayerInfo[i][pWeedPos][0], PlayerInfo[i][pWeedPos][1], PlayerInfo[i][pWeedPos][2])) {
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[i][pWeedVW] && GetPlayerInterior(playerid) == PlayerInfo[i][pWeedInt]) {
- if(PlayerInfo[i][pWeedGrowth] > 10) {
- if(PlayerInfo[i][pWeedGrowth] + PlayerInfo[playerid][pPot] < 99) {
- new
- szMessage[52];
- ApplyAnimation(playerid,"BOMBER","BOM_Plant_Crouch_Out", 4.0, 0, 0, 0, 0, 0, 1);
- PlayerInfo[playerid][pPot] += PlayerInfo[i][pWeedGrowth];
- format(szMessage, sizeof(szMessage), "You picked the plant and gathered %d grams of pot.", PlayerInfo[i][pWeedGrowth]);
- SendClientMessage(playerid, COLOR_GREY, szMessage);
- format(szMessage, sizeof(szMessage), "* %s picks the weed plant.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- DestroyDynamicObject(PlayerInfo[i][pWeedObject]);
- PlayerInfo[i][pWeedObject] = 0;
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GREY, "You can't carry more then 99 grams of pot.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "This plant is not ready to be picked yet.");
- return 1;
- }
- }
- return SendClientMessage(playerid, COLOR_GREY, "You're not at a plant.");
- }
- CMD:sellpot(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] != 4 && PlayerInfo[playerid][pJob2] != 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a drug dealer.");
- return 1;
- }
- if(PlayerInfo[playerid][pDrugsTime] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must wait 1 minute before selling more drugs.");
- return 1;
- }
- /*if(WatchingTV[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while watching TV!");
- return 1;
- }*/
- new string[128], giveplayerid, needed, money;
- if(sscanf(params, "udd", giveplayerid, needed, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellpot [playerid/partofname] [amount] [price]");
- if(needed < 1 || needed > 99) { SendClientMessage(playerid, COLOR_GREY, " Grams no lower then 1, or above 99!"); return 1; }
- if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1, or above 99999!"); return 1; }
- if(needed > PlayerInfo[playerid][pPot]) { SendClientMessage(playerid, COLOR_GREY, " You Don't have that much Pot with you!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " Cant sell to yourself!");
- return 1;
- }
- format(string, sizeof(string), "* You offered %s to buy %d gram(s) of Pot for $%d.", GetPlayerNameEx(giveplayerid), needed, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Drug Dealer %s wants to sell you %d gram(s) for $%d, (type /accept pot) to buy.", GetPlayerNameEx(playerid), needed, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pDrugsTime] = 60;
- PotOffer[giveplayerid] = playerid;
- PotPrice[giveplayerid] = money;
- PotGram[giveplayerid] = needed;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not connected.");
- }
- return 1;
- }
- CMD:sellcrack(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] != 4 && PlayerInfo[playerid][pJob2] != 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a drug dealer.");
- return 1;
- }
- if(PlayerInfo[playerid][pDrugsTime] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You must wait 1 minute before selling more drugs.");
- return 1;
- }
- /*if(WatchingTV[playerid] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't do this while watching TV!");
- return 1;
- }*/
- new string[128], giveplayerid, needed, money;
- if(sscanf(params, "udd", giveplayerid, needed, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellcrack [playerid/partofname] [amount] [price]");
- if(needed < 1 || needed > 99) { SendClientMessage(playerid, COLOR_GREY, " Grams no lower then 1, or above 99!"); return 1; }
- if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1, or above 99999!"); return 1; }
- if(needed > PlayerInfo[playerid][pCrack]) { SendClientMessage(playerid, COLOR_GREY, " You Don't have that much Crack with you!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " Cant sell to yourself!");
- return 1;
- }
- format(string, sizeof(string), "* You offered %s to buy %d gram(s) of Crack for $%d.", GetPlayerNameEx(giveplayerid), needed, money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Drug Dealer %s wants to sell you %d gram(s) for $%d, (type /accept crack) to buy.", GetPlayerNameEx(playerid), needed, money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[playerid][pDrugsTime] = 60;
- CrackOffer[giveplayerid] = playerid;
- CrackPrice[giveplayerid] = money;
- CrackGram[giveplayerid] = needed;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not connected.");
- }
- return 1;
- }
- CMD:dedit(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], choice[32], amount;
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dedit [name] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Pot, Crack");
- return 1;
- }
- if(strcmp(choice,"pot",true) == 0)
- {
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(Points[h][Type] == 3)
- {
- Points[h][Stock] = amount;
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[h][Stock]);
- UpdateDynamic3DTextLabelText(Points[h][TextLabel], COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_WHITE, " You have successfully changed the Drug House available pot!");
- }
- }
- }
- else if(strcmp(choice,"crack",true) == 0)
- {
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(Points[h][Type] == 4)
- {
- Points[h][Stock] = amount;
- format(string, sizeof(string), " CRACK AVAILABLE: %d grams.", Points[h][Stock]);
- UpdateDynamic3DTextLabelText(Points[h][TextLabel], COLOR_YELLOW, string);
- SendClientMessage(playerid, COLOR_WHITE, " You have successfully changed the Crack Lab available crack!");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Not a valid name.");
- return 1;
- }
- return 1;
- }
- CMD:adestroyplant(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /adestroyplant [playerid/partofname]");
- }
- else if(IsPlayerConnected(iTargetID)) {
- new
- szMessage[47 + MAX_PLAYER_NAME];
- format(szMessage, sizeof(szMessage), "You have destroyed %s's weed plant (%i grams).", GetPlayerNameEx(iTargetID), PlayerInfo[iTargetID][pWeedGrowth]);
- SendClientMessage(playerid, COLOR_GREY, szMessage);
- format(szMessage, sizeof(szMessage), "Admin %s has destroyed your weed plant (%i grams).", GetPlayerNameEx(playerid), PlayerInfo[iTargetID][pWeedGrowth]);
- SendClientMessage(iTargetID, COLOR_GREY, szMessage);
- if(IsValidDynamicObject(PlayerInfo[playerid][pWeedObject])) {
- DestroyDynamicObject(PlayerInfo[playerid][pWeedObject]);
- PlayerInfo[playerid][pWeedObject] = 0;
- }
- }
- else SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use this command.");
- return 1;
- }
- CMD:turfs(playerid, params[])
- {
- new string[3000], newstring[3000];
- //ShowPlayerDialogEx(playerid, 5142, "{FFA500}Sleepless Roleplay - {FFFFFF}Turfs", "\n\n", "Close", "");
- for(new i = 0; i < MAX_TURFS; i++)
- {
- format(string, sizeof(string), "{FFA500}Name: {FFFFFF}%s{FFA500} | Owner:{FFFFFF}%s{FFFFFF}{FFA500} | Captured By: {FFFFFF}%s{FFA500} | Hours: {FFFFFF}%d\n", TurfsInfo[i][TurfsName], TurfsInfo[i][TurfsOwner], TurfsInfo[i][TurfsCapper], TurfsInfo[i][TurfsHours]);
- strcat(newstring, string);
- }
- ShowPlayerDialogEx(playerid, 5142, DIALOG_STYLE_MSGBOX, "{FFA500}Sleepless Roleplay - {FFFFFF}Turfs", newstring, "Close", "");
- return 1;
- }
- stock RGBAToARGB(rgba)
- return rgba >>> 8 | rgba << 24;
-
- stock HexToInt(string[])
- {
- if(!string[0]) return 0;
- new cur = 1, res = 0;
- for(new i = strlen(string); i > 0; i--)
- {
- res += cur * (string[i - 1] - ((string[i - 1] < 58) ? (48) : (55)));
- cur = cur * 16;
- }
- return res;
- }
- stock ClaimTurf(turf, playerid)
- {
- new string[128];
- format(TurfsInfo[turf][TurfsOwner], 128, "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyName]);
- format(TurfsInfo[turf][TurfsCapper], 128, "%s", GetPlayerNameEx(playerid));
- format(string, sizeof(string), "* %s has claimed the turf %s for %s.", GetPlayerNameEx(playerid), TurfsInfo[turf][TurfsName], FamilyInfo[PlayerInfo[playerid][pGang]][FamilyName]);
- SendClientMessageToAll(COLOR_YELLOW, string);
- format(string, sizeof(string), "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyName]);
- PlayerTextDrawSetString(playerid, Textdraw1s[playerid], string);
- TurfsInfo[turf][TurfsGang] = PlayerInfo[playerid][pGang];
- new hex, str[32];
- format(str, sizeof(str), "%x", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor]);
- sscanf(str, "x", hex);
- PlayerTextDrawColor(playerid, Textdraw1s[playerid], hex);
- PlayerTextDrawHide(playerid, Textdraw1s[playerid]);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- GangZoneSetColorForAll(TurfsInfo[turf][TurfID], hex);
- GangZoneShowForAll(TurfsInfo[turf][TurfID], hex);
- TurfsInfo[turf][TurfsHours] = 72;
- TurfsInfo[turf][TurfsVulnerable] = 0;
- TurfsInfo[turf][TurfsDoing] = 0;
- TurfsInfo[turf][TurfshTime] = 0;
- KillTimer(TurfsInfo[turf][TurfsTimer]);
- }
- stock ShutdownTurf(turf, playerid)
- {
- new string[128];
- format(TurfsInfo[turf][TurfsOwner], 128, "%s", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyName]);
- format(TurfsInfo[turf][TurfsCapper], 128, "%s", GetPlayerNameEx(playerid));
- format(string, sizeof(string), "* %s has claimed the turf %s for Law Enforcement.", GetPlayerNameEx(playerid), TurfsInfo[turf][TurfsName]);
- SendClientMessageToAll(COLOR_YELLOW, string);
- PlayerTextDrawSetString(playerid, Textdraw1s[playerid], "Neutral");
- TurfsInfo[turf][TurfsGang] = PlayerInfo[playerid][pGang];
- PlayerTextDrawColor(playerid, Textdraw1s[playerid], COLOR_WHITE);
- PlayerTextDrawHide(playerid, Textdraw1s[playerid]);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- GangZoneSetColorForAll(TurfsInfo[turf][TurfID], COLOR_WHITE);
- GangZoneShowForAll(TurfsInfo[turf][TurfID], COLOR_WHITE);
- TurfsInfo[turf][TurfsHours] = 24;
- TurfsInfo[turf][TurfsVulnerable] = 0;
- TurfsInfo[turf][TurfsDoing] = 0;
- TurfsInfo[turf][TurfshTime] = 0;
- KillTimer(TurfsInfo[turf][TurfsTimer]);
- }
- forward TurfCappings(playerid, turfid);
- public TurfCappings(playerid, turfid)
- {
- if(TurfsInfo[turfid][TurfshTime] == 1)
- {
- ClaimTurf(turfid, playerid);
- return 1;
- }
- if(TurfsInfo[turfid][TurfshTime] == 1)
- {
- ShutdownTurf(turfid, playerid);
- return 1;
- }
-
- TurfsInfo[turfid][TurfshTime]--;
- return 1;
- }
- CMD:capturf(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] < 255)
- {
- if(PlayerInfo[playerid][pRank] >= 4)
- {
- if(InTurf[playerid] == -1) return SCM(playerid, -1, "You are not in any turfs.");
- new turf = InTurf[playerid];
- new string[128];
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- new cancap = 0;
- foreach(Player, i)
- {
- if(IsPlayerInRangeOfPoint(i, 5.0, x, y, z))
- {
- cancap = 1;
- }
- }
- if(cancap == 0) return SCM(playerid, COLOR_GRAD2, "Members must be near you!");
- if(TurfsInfo[turf][TurfsVulnerable] == 0) return SCM(playerid, COLOR_GRAD2, "This turf is not ready to be capped.");
- format(string, sizeof(string), "* %s is attempting to take %s for %s (15 minutes remaining).", GetPlayerNameEx(playerid), TurfsInfo[turf][TurfsName], FamilyInfo[PlayerInfo[playerid][pGang]][FamilyName]);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TurfsInfo[turf][TurfshTime] = 15;
- TurfsInfo[turf][TurfsTimer] = SetTimerEx("TurfCappings", 60000, 1, "id", playerid, turf);
- GangZoneFlashForAll(TurfsInfo[turf][TurfID], COLOR_RED);
- TurfsInfo[turf][TurfsDoing] = 1;
- TurfsInfo[turf][TurfsgCap] = PlayerInfo[playerid][pGang];
- format(TurfsInfo[turf][TurfsCappingName], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- }
- else return SCM(playerid, COLOR_GREY, "You must be atleast R4 to capture turfs.");
- }
- return 1;
- }
- /*CMD:shutdown(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 10)
- {
- if(PlayerInfo[playerid][pRank] >= 4)
- {
- if(InTurf[playerid] == -1) return SCM(playerid, -1, "You are not in any turfs.");
- new turf = InTurf[playerid];
- new string[128];
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- new cancap = 0;
- foreach(Player, i)
- {
- if(IsPlayerInRangeOfPoint(i, 5.0, x, y, z))
- {
- cancap = 1;
- }
- }
- if(cancap == 0) return SCM(playerid, COLOR_GRAD2, "Members must be near you!");
- if(TurfsInfo[turf][TurfsVulnerable] == 0) return SCM(playerid, COLOR_GRAD2, "This turf is not ready to be capped.");
- format(string, sizeof(string), "* %s is attempting to take %s for Law Enforcement (15 minutes).", GetPlayerNameEx(playerid), TurfsInfo[turf][TurfsName]);
- SendClientMessageToAll(COLOR_YELLOW, string);
- TurfsInfo[turf][TurfshTime] = 15;
- TurfsInfo[turf][TurfsTimer] = SetTimerEx("TurfCappings", 60000, 1, "id", playerid, turf);
- GangZoneFlashForAll(TurfsInfo[turf][TurfID], COLOR_RED);
- TurfsInfo[turf][TurfsDoing] = 1;
- TurfsInfo[turf][TurfsgCap] = PlayerInfo[playerid][pGang];
- format(TurfsInfo[turf][TurfsCappingName], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- }
- else return SCM(playerid, COLOR_GREY, "You must be atleast R4 to capture turfs.");
- }
- return 1;
- }
- CMD:capturf(playerid, params[])
- {
- return SCM(playerid, -1, "This command is not available yet!");
- }*/
- CMD:shutdown(playerid, params[])
- {
- return SCM(playerid, -1, "This command is not available yet due to bugged.");
- }
- CMD:capture(playerid, params[])
- {
- new string[128];
- new mypoint = -1;
- if(GetPVarInt(playerid,"Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You can't capture while injured!");
- return 1;
- }
- if(PlayerInfo[playerid][pGang] == 255 || PlayerInfo[playerid][pRank] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not high rank enough to capture!");
- return 1;
- }
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz])) mypoint = i;
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not at the capture place!");
- return 1;
- }
- if(Points[mypoint][Vulnerable] > 0 || Points[mypoint][Vulnerable] == -1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " This point is not ready for takeover.");
- return 1;
- }
- if(Points[mypoint][TimeToClaim])
- {
- SendClientMessage(playerid, COLOR_GRAD1, " This point is already being captured!");
- return 1;
- }
- /*if(GetPlayerPing(playerid) > pointpinglimit)
- {
- format(string,sizeof(string), " You can't capture with %d+ ping!", pointpinglimit);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }*/
- Points[mypoint][PointBarID] = CreateProgressBar(258.00, 137.00, 131.50, 3.19, COLOR_GREEN, 100.0);
- SetProgressBarValue(Points[mypoint][PointBarID], 100.0);
- ShowProgressBarForPlayer(playerid, Points[mypoint][PointBarID]);
- format(string,sizeof(string), " %s is attempting to capture the point.", GetPlayerNameEx(playerid));
- ProxDetector(70.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
- GetPlayerPos(playerid, Points[mypoint][Capturex], Points[mypoint][Capturey], Points[mypoint][Capturez]);
- Points[mypoint][ClaimerId] = playerid;
- Points[mypoint][TimeToClaim] = 1;
- Points[mypoint][TimeLeft] = 10;
- SetTimerEx("ProgressTimer", 1000, 0, "d", mypoint);
- return 1;
- }
- CMD:pbounds(playerid, params[])
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pbounds [point]");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: This will indicate the point boundaries for a point.");
- SendClientMessage(playerid, COLOR_GRAD3, "Points: FFC (Fossil Fuel Company) | MP1 (Materials Pickup 1) | DF (Drug Factory)");
- SendClientMessage(playerid, COLOR_GRAD3, "Points: MF1 (Materials Factory 1) | DH (Drug House) | MP2 (Materials Pickup 2)");
- SendClientMessage(playerid, COLOR_GRAD3, "Points: CL (Crack Lab) | MF2 (Materials Factory 2) | AEC (Auto Export Company)");
- return 1;
- }
- if(strcmp(params,"ffc",true) == 0)
- {
- if(IsBoundsShowingFFC[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[0], 0xFF00008C); // FFC
- IsBoundsShowingFFC[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Fossil Fuel Company are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[0]); // FFC
- IsBoundsShowingFFC[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Fossil Fuel Company are now removed from your radar and map.");
- }
- }
- else if(strcmp(params,"mp1",true) == 0)
- {
- if(IsBoundsShowingMP1[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[1], 0xFF00008C); // MP1
- IsBoundsShowingMP1[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Pickup 1 are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[1]); // MP1
- IsBoundsShowingMP1[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Pickup 1 are now removed from your radar and map.");
- }
- }
- else if(strcmp(params,"df",true) == 0)
- {
- if(IsBoundsShowingDF[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[8], 0xFF00008C); // DF
- IsBoundsShowingDF[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Drug Factory are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[8]); // DF
- IsBoundsShowingDF[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Drug Factory are now removed from your radar and map.");
- }
- }
- else if(strcmp(params,"mf1",true) == 0)
- {
- if(IsBoundsShowingMF1[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[2], 0xFF00008C); // MF1
- IsBoundsShowingMF1[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Factory 1 are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[2]); // MF1
- IsBoundsShowingMF1[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Factory 1 are now removed from your radar and map.");
- }
- }
- else if(strcmp(params,"dh",true) == 0)
- {
- if(IsBoundsShowingDH[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[6], 0xFF00008C); // DH
- IsBoundsShowingDH[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Drug House are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[6]); // DH
- IsBoundsShowingDH[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Drug House are now removed from your radar and map.");
- }
- }
- else if(strcmp(params,"mp2",true) == 0)
- {
- if(IsBoundsShowingMP2[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[3], 0xFF00008C); // MP2
- IsBoundsShowingMP2[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Pickup 2 are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[3]); // MP2
- IsBoundsShowingMP2[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Pickup 2 are now from your radar and map.");
- }
- }
- else if(strcmp(params,"cl",true) == 0)
- {
- if(IsBoundsShowingCL[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[7], 0xFF00008C); // CL
- IsBoundsShowingCL[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Crack Lab are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[7]); // CL
- IsBoundsShowingCL[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Crack Lab are now removed from your radar and map.");
- }
- }
- else if(strcmp(params,"mf2",true) == 0)
- {
- if(IsBoundsShowingMF2[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[4], 0xFF00008C); // MF2
- IsBoundsShowingMF2[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Factory 2 are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[4]); // MF2
- IsBoundsShowingMF2[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Materials Factory 2 are now indicated on your radar and map in red.");
- }
- }
- else if(strcmp(params,"aec",true) == 0)
- {
- if(IsBoundsShowingAEC[playerid] == 0)
- {
- GangZoneShowForPlayer(playerid, pointboundaries[5], 0xFF00008C); // AEC
- IsBoundsShowingAEC[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Auto Export Company are now indicated on your radar and map in red.");
- }
- else
- {
- GangZoneHideForPlayer(playerid, pointboundaries[5]); // AEC
- IsBoundsShowingAEC[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The point boundaries for Auto Export Company are now removed from your radar and map");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid point entered.");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pbounds [point]");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: This will indicate the point boundaries for a point.");
- SendClientMessage(playerid, COLOR_GRAD3, "Points: FFC (Fossil Fuel Company) | MP1 (Materials Pickup 1) | DF (Drug Factory)");
- SendClientMessage(playerid, COLOR_GRAD3, "Points: MF1 (Materials Factory 1) | DH (Drug House) | MP2 (Materials Pickup 2)");
- SendClientMessage(playerid, COLOR_GRAD3, "Points: CL (Crack Lab) | MF2 (Materials Factory 2) | AEC (Auto Export Company)");
- }
- return 1;
- }
- CMD:pboundsoff(playerid, params[])
- {
- GangZoneHideForPlayer(playerid, pointboundaries[0]); // FFC
- GangZoneHideForPlayer(playerid, pointboundaries[1]); // MP1
- GangZoneHideForPlayer(playerid, pointboundaries[2]); // MF1
- GangZoneHideForPlayer(playerid, pointboundaries[3]); // MP2
- GangZoneHideForPlayer(playerid, pointboundaries[4]); // MF2
- GangZoneHideForPlayer(playerid, pointboundaries[5]); // AEC
- GangZoneHideForPlayer(playerid, pointboundaries[6]); // DH
- GangZoneHideForPlayer(playerid, pointboundaries[7]); // CL
- GangZoneHideForPlayer(playerid, pointboundaries[8]); // DF
- IsBoundsShowingFFC[playerid] = 0;
- IsBoundsShowingMP1[playerid] = 0;
- IsBoundsShowingMF1[playerid] = 0;
- IsBoundsShowingMP2[playerid] = 0;
- IsBoundsShowingMF2[playerid] = 0;
- IsBoundsShowingAEC[playerid] = 0;
- IsBoundsShowingDH[playerid] = 0;
- IsBoundsShowingCL[playerid] = 0;
- IsBoundsShowingDF[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "All point boundaries removed from your radar and map.");
- return 1;
- }
- CMD:points(playerid, params[])
- {
- new string[128];
- for(new i; i < MAX_POINTS; i++)
- {
- if(Points[i][Type] >= 0)
- {
- if(Points[i][Vulnerable] == -1)
- {
- format(string, sizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: Temporarily disabled", Points[i][Name],Points[i][Owner],Points[i][CapperName]);
- }
- else
- {
- format(string, sizeof(string), "Name: %s | Owner: %s | Captured By: %s | Hours: %d", Points[i][Name],Points[i][Owner],Points[i][CapperName],Points[i][Vulnerable]);
- }
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- return 1;
- }
- CMD:fedit(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] > 0 || PlayerInfo[playerid][pAdmin] >= 4) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new family, x_job[64], x_hq[64], ammount, string[128];
- if(sscanf(params, "is[64]s[64]", family, x_job, x_hq))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fedit [family] [name] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Leader, MaxSkins, Skin1, Skin2, Skin3, Skin4, Skin5, Skin6, Skin7, Skin8");
- return 1;
- }
- ammount = strval(x_hq);
- if(family < 1 || family > MAX_FAMILY) { SendClientMessage(playerid, COLOR_GREY, " FamilyNr can't be below 1 or above 14!"); return 1; }
- family -= 1;
- /*if(strcmp(x_job,"tokens",true) == 0)
- {
- FamilyInfo[family][FamilyTurfTokens] = ammount * 12;
- format(string, sizeof(string), "You have changed '%s' tokens amount to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }*/
- if(strcmp(x_job,"leader",true) == 0)
- {
- if(strlen(x_hq) >= 20)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That leader name is too long, please refrain from using more than 20 characters.");
- return 1;
- }
- strcpy(FamilyInfo[family][FamilyLeader], x_hq, MAX_PLAYER_NAME);
- format(string, sizeof(string), "You have changed '%s' leader name to %s.", FamilyInfo[family][FamilyName], x_hq);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveFamilies();
- return 1;
- }
- else if(strcmp(x_job,"maxskins",true) == 0)
- {
- if(ammount > 8) return SendClientMessage(playerid, COLOR_WHITE, "You can't set the maxskins more than 8.");
- if(ammount == 7)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- }
- if(ammount == 6)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- }
- if(ammount == 5)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- FamilyInfo[family][FamilySkins][5] = 0;
- }
- if(ammount == 4)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- FamilyInfo[family][FamilySkins][5] = 0;
- FamilyInfo[family][FamilySkins][4] = 0;
- }
- if(ammount == 3)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- FamilyInfo[family][FamilySkins][5] = 0;
- FamilyInfo[family][FamilySkins][4] = 0;
- FamilyInfo[family][FamilySkins][3] = 0;
- }
- if(ammount == 2)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- FamilyInfo[family][FamilySkins][5] = 0;
- FamilyInfo[family][FamilySkins][4] = 0;
- FamilyInfo[family][FamilySkins][3] = 0;
- FamilyInfo[family][FamilySkins][2] = 0;
- }
- if(ammount == 1)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- FamilyInfo[family][FamilySkins][5] = 0;
- FamilyInfo[family][FamilySkins][4] = 0;
- FamilyInfo[family][FamilySkins][3] = 0;
- FamilyInfo[family][FamilySkins][2] = 0;
- FamilyInfo[family][FamilySkins][1] = 0;
- }
- if(ammount == 0)
- {
- FamilyInfo[family][FamilySkins][7] = 0;
- FamilyInfo[family][FamilySkins][6] = 0;
- FamilyInfo[family][FamilySkins][5] = 0;
- FamilyInfo[family][FamilySkins][4] = 0;
- FamilyInfo[family][FamilySkins][3] = 0;
- FamilyInfo[family][FamilySkins][2] = 0;
- FamilyInfo[family][FamilySkins][1] = 0;
- FamilyInfo[family][FamilySkins][0] = 0;
- }
- FamilyInfo[family][FamilyMaxSkins] = ammount;
- format(string, sizeof(string), "You have changed '%s' max skins amount to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin1",true) == 0)
- {
- FamilyInfo[family][FamilySkins][0] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #1 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin2",true) == 0)
- {
- FamilyInfo[family][FamilySkins][1] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #2 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin3",true) == 0)
- {
- FamilyInfo[family][FamilySkins][2] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #3 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin4",true) == 0)
- {
- FamilyInfo[family][FamilySkins][3] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #4 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin5",true) == 0)
- {
- FamilyInfo[family][FamilySkins][4] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #5 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin6",true) == 0)
- {
- FamilyInfo[family][FamilySkins][5] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #6 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin7",true) == 0)
- {
- FamilyInfo[family][FamilySkins][6] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #7 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(strcmp(x_job,"skin8",true) == 0)
- {
- FamilyInfo[family][FamilySkins][7] = ammount;
- format(string, sizeof(string), "You have changed '%s' skin #8 to %d.", FamilyInfo[family][FamilyName], ammount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Not a valid name.");
- return 1;
- }
- SaveFamilies();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not an Admin!");
- return 1;
- }
- return 1;
- }
- CMD:createcrew(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a gang.");
- return 1;
- }
- new family = PlayerInfo[playerid][pGang];
- new string[128];
- if(PlayerInfo[playerid][pRank] == 6)
- {
- new choice[32], opstring[100];
- if(sscanf(params, "s[32]S[100]", choice, opstring))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createcrew [option]");
- SendClientMessageEx(playerid, COLOR_WHITE, "Available Options: crew1, crew2, crew3");
- return 1;
- }
- if(strcmp(choice,"crew1",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(!opstring[0])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createcrew crew1 [crew name]");
- return 1;
- }
- if(strfind(opstring, "|", true) != -1)
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You can't use '|' in a family name.");
- return 1;
- }
- if(strlen(opstring) >= 15 )
- {
- SendClientMessageEx( playerid, COLOR_GRAD1, "That family name is too long, please refrain from using more than 40 characters." );
- return 1;
- }
- if(FamilyInfo[family][FamilyCrew1] == 1 && FamilyInfo[family][FamilyCrew2] == 1 && FamilyInfo[family][FamilyCrew3] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't create more than 3 Crew");
- return 1;
- }
- if(PlayerInfo[playerid][pCrew1] == family || PlayerInfo[playerid][pCrew2] == family || PlayerInfo[playerid][pCrew3] == family)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You already have a crew");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyCrewname1], opstring, 0, strlen(opstring), 100);
- PlayerInfo[playerid][pCrew1] = family;
- FamilyInfo[family][FamilyCrew1] = 1;
- SaveFamilies();
- format(string,sizeof(string), " You've created a Family Crew1 as the Crew name of %s",opstring);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "GangCMD: %s created crew 1 in family %d named %s", GetPlayerNameEx(playerid), family+1, opstring);
- Log("logs/family.log", string);
- }
- }
- else if(strcmp(choice,"crew2",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(!opstring[0])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createcrew crew2 [crew name]");
- return 1;
- }
- if(strfind(opstring, "|", true) != -1)
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You can't use '|' in a family name.");
- return 1;
- }
- if(strlen(opstring) >= 15 )
- {
- SendClientMessageEx( playerid, COLOR_GRAD1, "That family name is too long, please refrain from using more than 40 characters." );
- return 1;
- }
- if(FamilyInfo[family][FamilyCrew1] == 1 && FamilyInfo[family][FamilyCrew2] == 1 && FamilyInfo[family][FamilyCrew3] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't create more than 3 Crew");
- return 1;
- }
- if(PlayerInfo[playerid][pCrew1] == family || PlayerInfo[playerid][pCrew2] == family || PlayerInfo[playerid][pCrew3] == family)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You already have a crew");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyCrewname2], opstring, 0, strlen(opstring), 100);
- PlayerInfo[playerid][pCrew2] = family;
- FamilyInfo[family][FamilyCrew2] = 1;
- SaveFamilies();
- format(string,sizeof(string), " You've created a Family Crew2 as the Crew name of %s",opstring);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "GangCMD: %s created crew 2 in family %d named %s", GetPlayerNameEx(playerid), family+1, opstring);
- Log("logs/family.log", string);
- }
- }
- else if(strcmp(choice,"crew3",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(!opstring[0])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createcrew crew3 [crew name]");
- return 1;
- }
- if(strfind(opstring, "|", true) != -1)
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You can't use '|' in a family name.");
- return 1;
- }
- if(strlen(opstring) >= 15 )
- {
- SendClientMessageEx( playerid, COLOR_GRAD1, "That family name is too long, please refrain from using more than 40 characters." );
- return 1;
- }
- if(FamilyInfo[family][FamilyCrew1] == 1 && FamilyInfo[family][FamilyCrew2] == 1 && FamilyInfo[family][FamilyCrew3] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't create more than 3 Crew");
- return 1;
- }
- if(PlayerInfo[playerid][pCrew1] == family || PlayerInfo[playerid][pCrew2] == family || PlayerInfo[playerid][pCrew3] == family)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You already have a crew");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyCrewname3], opstring, 0, strlen(opstring), 100);
- PlayerInfo[playerid][pCrew3] = family;
- FamilyInfo[family][FamilyCrew3] = 1;
- SaveFamilies();
- format(string,sizeof(string), " You've created a Family Crew3 as the Crew name of %s",opstring);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "GangCMD: %s created crew 3 in family %d named %s", GetPlayerNameEx(playerid), family+1, opstring);
- Log("logs/family.log", string);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not high rank enough to use this command!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not high rank enough to use this command!");
- return 1;
- }
- return 1;
- }
- CMD:disbandcrew(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a gang.");
- return 1;
- }
- new family = PlayerInfo[playerid][pGang];
- new string[128];
- if(PlayerInfo[playerid][pRank] == 6)
- {
- new choice[32];
- if(sscanf(params, "s[32]", choice))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /disbandcrew [option]");
- SendClientMessageEx(playerid, COLOR_WHITE, "Available Options: crew1, crew2, crew3");
- return 1;
- }
- if(strcmp(choice,"crew1",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(FamilyInfo[family][FamilyCrew1] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "That crew does not exist");
- strmid(FamilyInfo[family][FamilyCrewname1], "None", 0, 5, 100);
- FamilyInfo[family][FamilyCrew1] = 0;
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == family && PlayerInfo[i][pCrew1] == family)
- {
- PlayerInfo[i][pCrew3] = 255;
- PlayerInfo[i][pCrew2] = 255;
- PlayerInfo[i][pCrew1] = 255;
- }
- }
- SaveFamilies();
- format(string, sizeof(string), "GangCMD: %s deleted crew no. 1", GetPlayerNameEx(playerid));
- Log("logs/family.log", string);
- }
- }
- else if(strcmp(choice,"crew2",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(FamilyInfo[family][FamilyCrew2] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "That crew does not exist");
- strmid(FamilyInfo[family][FamilyCrewname2], "None", 0, 5, 100);
- FamilyInfo[family][FamilyCrew2] = 0;
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == family && PlayerInfo[i][pCrew2] == family)
- {
- PlayerInfo[i][pCrew3] = 255;
- PlayerInfo[i][pCrew2] = 255;
- PlayerInfo[i][pCrew1] = 255;
- }
- }
- SaveFamilies();
- format(string, sizeof(string), "GangCMD: %s deleted crew no. 2", GetPlayerNameEx(playerid));
- Log("logs/family.log", string);
- }
- }
- else if(strcmp(choice,"crew3",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(FamilyInfo[family][FamilyCrew3] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "That crew does not exist");
- strmid(FamilyInfo[family][FamilyCrewname3], "None", 0, 5, 100);
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == family && PlayerInfo[i][pCrew3] == family)
- {
- PlayerInfo[i][pCrew3] = 255;
- PlayerInfo[i][pCrew2] = 255;
- PlayerInfo[i][pCrew1] = 255;
- }
- }
- FamilyInfo[family][FamilyCrew3] = 0;
- SaveFamilies();
- format(string, sizeof(string), "GangCMD: %s deleted crew no. 3", GetPlayerNameEx(playerid));
- Log("logs/family.log", string);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not high rank enough to use this command!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not high rank enough to use this command!");
- return 1;
- }
- return 1;
- }
- CMD:invitecrew(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a gang.");
- return 1;
- }
- new string[182];
- new family = PlayerInfo[playerid][pGang];
- new giveplayerid;
- new choice[32];
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(sscanf(params, "us[32]", giveplayerid, choice))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /invitecrew [playerid [Crew Option]]");
- SendClientMessageEx(playerid, COLOR_WHITE, "Available Options: crew1, crew2, crew3");
- return 1;
- }
- if(strcmp(choice,"crew1",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playerid][pCrew1] == 255 && PlayerInfo[playerid][pCrew2] == 255 && PlayerInfo[playerid][pCrew3] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You didn't create any crew");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "That player isn't in your family.");
- return 1;
- }
- new family1 = 255;
- new family2 = 255;
- format(string, sizeof(string), "* You've invited %s to join a crew '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyCrewname1]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept crew)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname1]);
- SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteOffer[giveplayerid] = playerid;
- InviteCrew[giveplayerid] = family;
- InviteCrew1[giveplayerid] = family1;
- InviteCrew2[giveplayerid] = family2;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1 ," Invalid Player Especify!");
- }
- }
- }
- else if(strcmp(choice,"crew2",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playerid][pCrew1] == 255 && PlayerInfo[playerid][pCrew2] == 255 && PlayerInfo[playerid][pCrew3] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You didn't create any crew");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "That player isn't in your family.");
- return 1;
- }
- new family1 = 255;
- new family2 = 255;
- format(string, sizeof(string), "* You've invited %s to join a crew '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyCrewname2]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept crew)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname2]);
- SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteOffer[giveplayerid] = playerid;
- InviteCrew[giveplayerid] = family1;
- InviteCrew1[giveplayerid] = family;
- InviteCrew2[giveplayerid] = family2;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1 ," Invalid Player Especify!");
- }
- }
- }
- else if(strcmp(choice,"crew2",true) == 0)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[playerid][pCrew1] == 255 && PlayerInfo[playerid][pCrew2] == 255 && PlayerInfo[playerid][pCrew3] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You didn't create any crew");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "That player isn't in your family.");
- return 1;
- }
- new family1 = 255;
- new family2 = 255;
- format(string, sizeof(string), "* You've invited %s to join a crew '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyCrewname3]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept crew)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname3]);
- SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteOffer[giveplayerid] = playerid;
- InviteCrew[giveplayerid] = family1;
- InviteCrew1[giveplayerid] = family2;
- InviteCrew2[giveplayerid] = family;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1 ," Invalid Player Especify!");
- }
- }
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not high rank enough to use this command!");
- return 1;
- }
- return 1;
- }
- CMD:cr(playerid, params[])
- {
- new family = PlayerInfo[playerid][pGang], string[128];
- if(PlayerInfo[playerid][pCrew1] != 255 || PlayerInfo[playerid][pCrew2] != 255 || PlayerInfo[playerid][pCrew3] != 255)
- {
- if(isnull(params))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /cr [crew chat]");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0)
- {
- SendClientMessageEx (playerid, COLOR_GRAD2, "You cannot do this at this time.");
- return 1;
- }
- if(PlayerInfo[playerid][pGang] < 255)
- {
- if(PlayerInfo[playerid][pCrew1] == family) { format(string, sizeof(string), "** cRadio %s (%s): %s **", GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname1], params); }
- else if(PlayerInfo[playerid][pCrew2] == family) { format(string, sizeof(string), "** cRadio %s (%s): %s **", GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname2], params); }
- else if(PlayerInfo[playerid][pCrew3] == family) { format(string, sizeof(string), "** cRadio %s (%s): %s **", GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname3], params); }
- else { format(string, sizeof(string), "** Radio %s (%s): %s **", GetPlayerNameEx(playerid), FamilyInfo[family][FamilyCrewname1], params); }
- CrewRadioBroadCast(PlayerInfo[playerid][pGang], COLOR_GREEN, string);
- //SetPlayerChatBubble(playerid,string,COLOR_WHITE,20.0,5000);
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You are not in the Crew!");
- }
- return 1;
- }
- CMD:kickcrew(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a family.");
- return 1;
- }
- new giveplayerid, string[128];
- new family = PlayerInfo[playerid][pGang];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /kickcrew [playerid] ");
- {
- if(PlayerInfo[playerid][pRank] >= 5)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pCrew1] == 255 && PlayerInfo[giveplayerid][pCrew2] == 255 && PlayerInfo[giveplayerid][pCrew3] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "That player didn't join in any crew");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "That player isn't in your family.");
- return 1;
- }
- if(PlayerInfo[playerid][pCrew1] == family)
- {
- if(PlayerInfo[giveplayerid][pCrew1] == family)
- {
- format(string, sizeof(string), "You have kicked %s from the Crew.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "* You have been kicked from your crew by the Gang lord %s.", GetPlayerNameEx(playerid));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- PlayerInfo[giveplayerid][pCrew1] = 255;
- }
- else if(PlayerInfo[giveplayerid][pCrew2] == family || PlayerInfo[giveplayerid][pCrew3] == family)
- {
- SendClientMessage(playerid, COLOR_GRAD1,"That player is not in your crew");
- }
- }
- else if(PlayerInfo[playerid][pCrew2] == family)
- {
- if(PlayerInfo[giveplayerid][pCrew2] == family)
- {
- format(string, sizeof(string), "You have kicked %s from your Crew.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "* You have been kicked from your crew by Gang lord %s.", GetPlayerNameEx(playerid));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- PlayerInfo[giveplayerid][pCrew2] = 255;
- }
- else if(PlayerInfo[giveplayerid][pCrew1] == family || PlayerInfo[giveplayerid][pCrew3] == family)
- {
- SendClientMessage(playerid, COLOR_GRAD1,"That player is not in your crew");
- }
- }
- else if(PlayerInfo[playerid][pCrew3] == family)
- {
- if(PlayerInfo[giveplayerid][pCrew3] == family)
- {
- format(string, sizeof(string), "You have kicked %s from the your Crew.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- format(string, sizeof(string), "* You have been kicked from your crew by Gang lord %s.", GetPlayerNameEx(playerid));
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- PlayerInfo[giveplayerid][pCrew3] = 255;
- }
- else if(PlayerInfo[giveplayerid][pCrew1] == family || PlayerInfo[giveplayerid][pCrew2] == family)
- {
- SendClientMessage(playerid, COLOR_GRAD1,"YThat player is not in your crew");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid Playerid");
- }
- }
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not high rank enough to use this command!");
- return 1;
- }
- }
- return 1;
- }
- CMD:switchcrew(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessageEx(playerid, COLOR_GREY, "You aren't in a family.");
- return 1;
- }
- new family = PlayerInfo[playerid][pGang];
- if(PlayerInfo[playerid][pRank] == 6 || PlayerInfo[playerid][pGangMod] == 1)
- {
- new choice[32], string[182];
- if(sscanf(params, "s[32]", choice))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /switchcrew [option]");
- SendClientMessageEx(playerid, COLOR_WHITE, "Available Options: 1, 2, 3");
- return 1;
- }
- if(strcmp(choice,"1",true) == 0)
- {
- PlayerInfo[playerid][pCrew1] = family;
- PlayerInfo[playerid][pCrew2] = 255;
- PlayerInfo[playerid][pCrew3] = 255;
- format(string,sizeof(string), "You switch in the %s Crew 1",FamilyInfo[family][FamilyCrewname1]);
- SendClientMessage(playerid, COLOR_WHITE,string);
- }
- else if(strcmp(choice,"2",true) == 0)
- {
- PlayerInfo[playerid][pCrew1] = 255;
- PlayerInfo[playerid][pCrew2] = family;
- PlayerInfo[playerid][pCrew3] = 255;
- format(string,sizeof(string), "You switch in the %s Crew 2",FamilyInfo[family][FamilyCrewname2]);
- SendClientMessage(playerid, COLOR_WHITE,string);
- }
- else if(strcmp(choice,"3",true) == 0)
- {
- PlayerInfo[playerid][pCrew1] = 255;
- PlayerInfo[playerid][pCrew2] = 255;
- PlayerInfo[playerid][pCrew3] = family;
- format(string,sizeof(string), "You switch in the %s Crew 3",FamilyInfo[family][FamilyCrewname3]);
- SendClientMessage(playerid, COLOR_WHITE,string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You are not high rank to use this command!");
- }
- return 1;
- }
- CMD:fcreate(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] > 0 || PlayerInfo[playerid][pAdmin] >= 4) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new string[128], family, giveplayerid;
- if(sscanf(params, "du", family, giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fcreate [FamilyNr] [playerid/partofname]");
- if(family < 1 || family > 14) { SendClientMessage(playerid, COLOR_GREY, " Family Slot can't be below 1 or above 14!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(FamilyInfo[family-1][FamilyTaken] == 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That Family Slot is already taken!");
- return 1;
- }
- format(string, sizeof(string), "* You've made %s the Leader of Family Slot %d.",GetPlayerNameEx(giveplayerid),family);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Admin %s has made you a Family Leader.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- new sendername[MAX_PLAYER_NAME];
- GetPlayerName(giveplayerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s",sendername);
- strmid(FamilyInfo[family-1][FamilyLeader], string, 0, strlen(string), 24);
- FamilyInfo[family-1][FamilyMembers] ++;
- FamilyInfo[family-1][FamilyTaken] = 1;
- PlayerInfo[giveplayerid][pGang] = family-1;
- PlayerInfo[giveplayerid][pRank] = 6;
- SaveFamilies();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- return 1;
- }
- CMD:fdelete(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] > 0 || PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new family;
- if(sscanf(params, "d", family))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fdelete [familyid]");
- if(family < 1 || family > 14) { SendClientMessage(playerid, COLOR_GREY, " Family Slot can't be below 1 or above 14!"); return 1; }
- if(FamilyInfo[family-1][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That Family Slot isn't taken!");
- return 1;
- }
- ClearFamily(family-1);
- SaveFamilies();
- }
- return 1;
- }
- CMD:pedit(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command!!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], hours;
- if(sscanf(params, "d", hours))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pedit [hours]");
- SendClientMessage(playerid, COLOR_GREY, "HINT: Stand close to a point to set the hours.");
- return 1;
- }
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
- {
- if(hours < 1|| hours > 24)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't set the point time lower than 1 or higher than 24!");
- }
- else if(hours >= 1|| hours <= 24)
- {
- format(string, sizeof(string), "You have set this point's time to %d hours!", hours);
- Points[h][Vulnerable] = hours;
- SendClientMessage(playerid, COLOR_WHITE, string);
- UpdatePoints();
- }
- }
- }
- return 1;
- }
- CMD:disablepoint(playerid, params[])
- { // TEMPORARY COMMAND - REMOVE LATER
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command!!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
- {
- strmid(Points[h][Owner], "Nobody", 0, 32, 32);
- strmid(Points[h][CapperName], "Nobody", 0, 32, 32);
- Points[h][Vulnerable] = -1;
- SendClientMessage(playerid, COLOR_WHITE, "You have disabled this point.");
- UpdatePoints();
- }
- }
- return 1;
- }
- CMD:pointfix(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command!!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
- {
- Points[h][TimeToClaim] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have fixed the point, players can now attempt to capture the point!");
- UpdatePoints();
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "Error: You need to stand close to the capture point to fix it.");
- return 1;
- }
- CMD:creategvehicle(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] > 0 || PlayerInfo[playerid][pAdmin] >= 4) {
- new
- string[128],
- family,
- modelid,
- color1,
- color2;
- if(sscanf(params, "dddd", family, modelid, color1, color2))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /creategvehicle [familyid] [modelid] [color 1] [color 2]");
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- if(family < 1 || family > MAX_FAMILY) { SendClientMessage(playerid, COLOR_GREY, " FamilyNr can't be below 1 or above 14!"); return 1; }
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " That FamilyNr hasn't been Taken yet!");
- return 1;
- }
- if(color1 < 0 || color1 > 255) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 255!"); return 1; }
- if(color2 < 0 || color2 > 255) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 255!"); return 1; }
- if(modelid < 400 || modelid > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611!"); return 1; }
- new gangvehicleid = GetGangFreeVehicleId(family);
- if(gangvehicleid == -1) return SendClientMessage(playerid, COLOR_GREY, "ERROR: That family can't have more cars.");
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- new Float:Angle;
- GetPlayerFacingAngle(playerid,Angle);
- new car = CreateGangVehicle(family, gangvehicleid, modelid, X, Y, Z, Angle, color1, color2, 0);
- if(car == INVALID_VEHICLE_ID) {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Something went wrong and the car didn't got created.");
- }
- else
- {
- format(string, sizeof(string), " Vehicle successfully created with ID %d.", car);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- SaveFamiliesHQ();
- }
- }
- return 1;
- }
- CMD:destroygvehicle(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] > 0 || PlayerInfo[playerid][pAdmin] >= 4) {
- new
- family,
- vehicleid;
- if(sscanf(params, "dd", family, vehicleid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /destroygvehicle [familyid] [vehicleid]");
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(family < 1 || family > MAX_FAMILY) { SendClientMessage(playerid, COLOR_GREY, " FamilyNr can't be below 1 or above 14!"); return 1; }
- family -= 1;
- new gangvehicleid = GetGangVehicle(family, vehicleid);
- if(gangvehicleid == -1) return SendClientMessage(playerid, COLOR_GREY, "ERROR: That family doesn't own that vehicle.");
- DestroyGangVehicle(family, gangvehicleid);
- SaveFamiliesHQ();
- }
- return 1;
- }
- #if defined TREASURE_HUNT_ENABLED
- CMD:gotohuntpos(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- SetPlayerPos(playerid, fTreasureHuntLS[iHuntLocation][0], fTreasureHuntLS[iHuntLocation][1], fTreasureHuntLS[iHuntLocation][2]);
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the treasure hunt location.");
- }
- return 1;
- }
- CMD:resethuntpos(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4) {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_WHITE, "You have reset the treasure hunt location.");
- }
- return 1;
- }
- #endif
- CMD:gtrackcar(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255) return SendClientMessage(playerid, COLOR_GRAD1, "You need to be in a family for this command.");
- new vstring[1024];
- for(new i = 0; i < MAX_GANG_VEHICLES; i++)
- {
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvId] != INVALID_VEHICLE_ID)
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- format(vstring, sizeof(vstring), "%s\n%s (ID: %d)", vstring, VehicleName[FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvModelId] - 400], FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvId]);
- }
- else
- {
- format(vstring, sizeof(vstring), "%s\n%s", vstring, VehicleName[FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvModelId] - 400]);
- }
- }
- else if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvImpounded] == 1) {
- format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvModelId] - 400]);
- }
- else
- {
- format(vstring, sizeof(vstring), "%s\nEmpty", vstring);
- }
- }
- return ShowPlayerDialogEx(playerid, GTRACKCAR, DIALOG_STYLE_LIST, "Vehicle GPS Tracking", vstring, "Track", "Cancel");
- }
- CMD:togfamily(playerid, params[])
- {
- return cmd_togfam(playerid, params);
- }
- CMD:tognews(playerid, params[])
- {
- if(!gNews[playerid])
- {
- gNews[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have disabled news chat.");
- }
- else
- {
- gNews[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You have enabled news chat.");
- }
- return 1;
- }
- CMD:tognewbie(playerid, params[])
- {
- if(!gNewbie[playerid])
- {
- gNewbie[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have disabled newbie chat.");
- }
- else
- {
- gNewbie[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You have enabled newbie chat.");
- }
- return 1;
- }
- CMD:togfam(playerid, params[])
- {
- if(!gFam[playerid])
- {
- gFam[playerid] = 1;
- SendClientMessage(playerid, COLOR_GRAD2, "You have disabled family chat.");
- }
- else
- {
- gFam[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, "You have enabled family chat.");
- }
- return 1;
- }
- CMD:f(playerid, params[]) {
- if(gFam[playerid] == 1)
- return SendClientMessage(playerid, TEAM_CYAN_COLOR, "You have your family chat disabled; /togfamily!");
- new string[128];
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: (/f)amily [family chat]");
- if(PlayerCuffed[playerid] > 0 || GetPVarInt(playerid, "Injured") == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't talk over /f while you're cuffed, hospitalized or tazed.");
- if((PlayerInfo[playerid][pFaction] == 4) || PlayerInfo[playerid][pGang] < 255) {
- new member = PlayerInfo[playerid][pFaction];
- new fam = PlayerInfo[playerid][pGang];
- if(member==4) {
- if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) Director %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) Vice Director %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) Special Agent %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) Agent %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) Marksman %s: %s **", GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
- else { format(string, sizeof(string), "** (1) Freelancer %s: %s **", GetPlayerNameEx(playerid), params); }
- SendFamilyMessage(PlayerInfo[playerid][pFaction], TEAM_AZTECAS_COLOR, string);
- }
- else if(PlayerInfo[playerid][pGang] < 255) {
- if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (6) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank6], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (5) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank5], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (4) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank4], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (3) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank3], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (2) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank2], GetPlayerNameEx(playerid), params); }
- else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (1) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
- else { format(string, sizeof(string), "** (0) %s %s (%s): %s **", FamilyInfo[fam][FamilyRank1], GetPlayerNameEx(playerid), params); }
- SendNewFamilyMessage(PlayerInfo[playerid][pGang], TEAM_AZTECAS_COLOR, string);
- }
- return 1;
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You're not a part of a Family!");
- return 1;
- }
- CMD:quitfaction(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] >= 1 || PlayerInfo[playerid][pLeader] >= 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You have quit your faction, you're now a civilian again.");
- new string[128];
- format(string, sizeof(string), "%s has quit the %s as a rank %i", GetPlayerNameEx(playerid), factionName(PlayerInfo[playerid][pFaction]), PlayerInfo[playerid][pRank]);
- Log("logs/faction.log", string);
- PlayerInfo[playerid][pFaction] = 0;
- PlayerInfo[playerid][pRank] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- PlayerInfo[playerid][pLeader] = 0;
- PlayerInfo[playerid][pDivision] = 0;
- if(!IsValidSkin(GetPlayerSkin(playerid)))
- {
- new rand = random(sizeof(CIV));
- SetPlayerSkin(playerid,CIV[rand]);
- PlayerInfo[playerid][pSkin] = CIV[rand];
- }
- SetPlayerToTeamColor(playerid);
- player_remove_vip_toys(playerid);
- pTazer[playerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a faction.");
- }
- return 1;
- }
- CMD:quitfamily(playerid, params[]) {
- return cmd_quitgang(playerid, params);
- }
- CMD:quitgang(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] != 255)
- {
- for (new x = 0; x < MAX_POINTS; x++)
- {
- if(Points[x][ClaimerId] == playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't leave a family while you're capturing a point.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have quit the family, you're now a civilian again.");
- new string[128];
- format(string, sizeof(string), "%s has quit family %d as rank %i", GetPlayerNameEx(playerid), PlayerInfo[playerid][pGang]+1, PlayerInfo[playerid][pRank]);
- Log("logs/family.log", string);
- PlayerInfo[playerid][pGang] = 255;
- PlayerInfo[playerid][pRank] = 0;
- if(!IsValidSkin(GetPlayerSkin(playerid)))
- {
- new rand = random(sizeof(CIV));
- SetPlayerSkin(playerid,CIV[rand]);
- PlayerInfo[playerid][pSkin] = CIV[rand];
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- }
- return 1;
- }
- CMD:safehelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "SAFE HELP: Type a command for more information.");
- SendClientMessage(playerid, COLOR_WHITE, "SAFE: /safebalance /safedeposit /safewithdraw /fstoregun /fgetgun.");
- return 1;
- }
- CMD:safebalance(playerid, params[]) {
- if(PlayerInfo[playerid][pGang] < 255) {
- if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyUSafe] < 1) {
- SendClientMessage(playerid, COLOR_GRAD1, "Your family doesn't have a safe.");
- }
- else
- {
- new string[128];
- new weaponsinlocker;
- for(new s = 0; s < 10; s++)
- {
- if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyGuns][s] != 0)
- {
- weaponsinlocker++;
- }
- }
- format(string, sizeof(string), " Safe: %s | Gunlockers: %d/10 | Cash: $%d | Pot: %d | Crack: %d | Materials: %d", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyName], weaponsinlocker, FamilyInfo[PlayerInfo[playerid][pGang]][FamilyCash], FamilyInfo[PlayerInfo[playerid][pGang]][FamilyPot], FamilyInfo[PlayerInfo[playerid][pGang]][FamilyCrack], FamilyInfo[PlayerInfo[playerid][pGang]][FamilyMats]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- CMD:setgangcolor(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], family, color;
- if(sscanf(params, "ix", family, color))
- {
- SendClientMessageEx(playerid, COLOR_GRAD1, "USAGE: /setgangcolor [familyid] [hex color]");
- return 1;
- }
- if(family < 1 || family > 10) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Gang ID.");
- family -= 1;
- if(FamilyInfo[family][FamilyTaken] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That gang isn't being used.");
- return 1;
- }
- FamilyInfo[family][FamilyColor] = color;
- format(string, sizeof(string), "AdmCmd: %s has set gang ID %d's bandana to '%x'.", GetPlayerNameEx(playerid), family-1, color);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- SaveFamilies();
- }
- return 1;
- }
- CMD:gangs(playerid, params[]) return cmd_families(playerid, params);
- CMD:families(playerid, params[])
- {
- new string[128], familyid;
- if(sscanf(params, "d", familyid))
- {
- new number = 0;
- for(new i = 0; i < MAX_FAMILY; i++)
- {
- FamilyInfo[i][FamilyOnline] = 0;
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] != 255)
- {
- FamilyInfo[PlayerInfo[i][pGang]][FamilyOnline] ++;
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "Gangs:");
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- number ++;
- if(FamilyInfo[i][FamilyColor] != 0)
- {
- format(string, sizeof(string), "%d. Name: {%06x}%s {FFFFFF}| Leader: %s | Members: %d | Online: %d",number,FamilyInfo[i][FamilyColor] >>> 8, FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers], FamilyInfo[i][FamilyOnline]);
- }
- else
- {
- format(string, sizeof(string), "%d. Name: %s | Leader: %s | Members: %d | Online: %d",number, FamilyInfo[i][FamilyName],FamilyInfo[i][FamilyLeader],FamilyInfo[i][FamilyMembers], FamilyInfo[i][FamilyOnline]);
- }
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
- if(familyid < 1 || familyid > MAX_FAMILY) { SendClientMessage(playerid, COLOR_GREY, "Family slot must be between 1 and 10."); return 1; }
- familyid -= 1;
- if(FamilyInfo[familyid][FamilyTaken] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "That family slot is empty.");
- return 1;
- }
- if(FamilyInfo[familyid][FamilyOnline] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That family has no members online.");
- return 1;
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] == familyid && (AdminDuty[i] != 1))
- {
- if(PlayerInfo[i][pRank] == 1)
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (1) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (1) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (1) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (1) | Crew: None.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1]);
- }
- }
- else if(PlayerInfo[i][pRank] == 2)
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (2) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (2) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (2) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (2) | Crew: None",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank2]);
- }
- }
- else if(PlayerInfo[i][pRank] == 3)
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (3) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (3) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (3) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (3) | Crew: None",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank3]);
- }
- }
- else if(PlayerInfo[i][pRank] == 4)
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (4) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (4) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (4) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (4) | Crew: None",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank4]);
- }
- }
- else if(PlayerInfo[i][pRank] == 5)
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (5) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (5) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (5) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (5) | Crew: None",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank5]);
- }
- }
- else if(PlayerInfo[i][pRank] == 6)
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (6) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (6) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (6) | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s (6) | Crew: None",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank6]);
- }
- }
- else
- {
- if(PlayerInfo[i][pCrew1] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname1]);
- }
- else if(PlayerInfo[i][pCrew2] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname2]);
- }
- else if(PlayerInfo[i][pCrew3] == familyid)
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s | Crew: %s.",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1], FamilyInfo[familyid][FamilyCrewname3]);
- }
- else
- {
- format(string, sizeof(string), "* %s: %s | Rank: %s | Crew: None",FamilyInfo[familyid][FamilyName],GetPlayerNameEx(i),FamilyInfo[familyid][FamilyRank1]);
- }
- }
- SendClientMessageEx(playerid, COLOR_GREY, string);
- }
- }
- return 1;
- }
- CMD:fbalance(playerid, params[])
- {
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- new family, string[128];
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- format(string, sizeof(string), "Your family has $%d in their account.", FamilyInfo[family][FamilyBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- CMD:fdeposit(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- new family;
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- new string[128], amount;
- if(sscanf(params, "d", amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fdeposit [amount]");
- format(string, sizeof(string), "Your family has $%d in their account.", FamilyInfo[family][FamilyBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(amount > GetPlayerCash(playerid) || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- GivePlayerCash(playerid,-amount);
- new curfunds = FamilyInfo[family][FamilyBank];
- FamilyInfo[family][FamilyBank]=amount+FamilyInfo[family][FamilyBank];
- SendClientMessage(playerid, COLOR_WHITE, "|___ FAMILY BANK STATEMENT ___|");
- format(string, sizeof(string), " Old balance: $%d", curfunds);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- format(string, sizeof(string), " Deposit: $%d",amount);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
- format(string, sizeof(string), " New balance: $%d", FamilyInfo[family][FamilyBank]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited $%d into family %d's bank account.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]+1);
- Log("logs/family.log", string);
- return 1;
- }
- CMD:fwithdraw(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422))
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the bank!");
- return 1;
- }
- new family;
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Only ranks five and six may use the family bank.");
- return 1;
- }
- new string[128], amount;
- if(sscanf(params, "d", amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fwithdraw [amount]");
- format(string, sizeof(string), "Your family has $%d in their account.", FamilyInfo[family][FamilyBank]);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- return 1;
- }
- if(amount > FamilyInfo[family][FamilyBank] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your family doesn't have that much.");
- return 1;
- }
- GivePlayerCash(playerid,amount);
- FamilyInfo[family][FamilyBank]=FamilyInfo[family][FamilyBank]-amount;
- format(string, sizeof(string), " You have withdrawn $%d from your family account. Total: $%d", amount,FamilyInfo[family][FamilyBank]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn $%d from family %d's bank account.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]+1);
- Log("logs/family.log", string);
- return 1;
- }
- CMD:fstoregun(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] > 2)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't give away weapons if you're Gold+ VIP!");
- return 1;
- }*/
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't store weapons from a vehicle!");
- return 1;
- }
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(health < 80)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't store weapons if your health is below 80!");
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||GetPVarInt(playerid, "Hospital")!=0||GetPlayerState(playerid) == 7)
- {
- SendClientMessage (playerid, COLOR_GRAD2, "You can't do this at this time.");
- return 1;
- }
- if(PlayerInfo[playerid][pFaction] > 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You can't store weapons in a family safe when in a faction!");
- return 1;
- }
- new family;
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2]))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not at your family safe.");
- return 1;
- }
- new string[128], weaponchoice[32], slot;
- if(sscanf(params, "s[32]d", weaponchoice, slot)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fstoregun [weapon] [slot]");
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before depositing another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(slot < 1 || slot > 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(FamilyInfo[family][FamilyGuns][slot-1] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your family has a weapon stored in that slot already.");
- return 1;
- }
- new weapon;
- if(strcmp(weaponchoice, "sdpistol", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 23 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a silenced pistol into your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their silenced pistol in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "deagle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 24 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a Desert Eagle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their Desert Eagle in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "shotgun", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 25 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a shotgun in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Shotgun in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "spas12", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 27 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a combat shotgun in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Combat Shotgun in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "mp5", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 29 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an MP5 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their MP5 in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "ak47", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 30 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an AK-47 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their AK-47 in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "m4", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 31 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an M4 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their M4 in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "rifle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 33 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a rifle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their riflein a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "sniper", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 34 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a sniper rifle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their sniper rifle in a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid weapon name!"); return 1; }
- if(weapon == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon.");
- if(FamilyInfo[family][FamilyGuns][slot-1] == 0)
- {
- FamilyInfo[family][FamilyGuns][slot-1] = weapon;
- RemovePlayerWeapon(playerid, weapon);
- SaveFamilies();
- return 1;
- }
- return 1;
- }
- CMD:fgetgun(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128], slot;
- if(PlayerInfo[playerid][pConnectTime] < 2)
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- new family;
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2]))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not at your family safe.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't get weapons from a vehicle!");
- return 1;
- }
- if(sscanf(params, "d", slot))
- {
- new weaponname[50];
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- format(string, sizeof(string), "*** %s Safe ***", FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- for(new s = 0; s < 10; s++)
- {
- if(FamilyInfo[family][FamilyGuns][s] != 0)
- {
- GetWeaponName(FamilyInfo[family][FamilyGuns][s], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "Slot %d: %s", s+1, weaponname);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fgetgun [slot]");
- return 1;
- }
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before getting another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- if(slot < 1 || slot > 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Only rank 4+ can withdraw guns from the family safe.");
- return 1;
- }
- if(FamilyInfo[family][FamilyGuns][slot-1] != 0)
- {
- new weaponname[50];
- GetWeaponName(FamilyInfo[family][FamilyGuns][slot-1], weaponname, sizeof(weaponname));
- GivePlayerValidWeapon(playerid, FamilyInfo[family][FamilyGuns][slot-1], 60000);
- FamilyInfo[family][FamilyGuns][slot-1] = 0;
- if(strcmp(weaponname, "silenced pistol", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a silenced pistol from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a silenced pistol from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "desert eagle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a Desert Eagle from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a Desert Eagle from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "shotgun", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a shotgun from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a shotgun from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "combat shotgun", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a combat shotgun from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a combat shotgun from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "mp5", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an MP5 from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an MP5 from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "ak47", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an AK-47 from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an AK-47 from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "m4", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an M4 from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an M4 from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "rifle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a rifle from your family's gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a rifle from a family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "sniper rifle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a sniper rifle from your family's gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn a sniper rifle from a safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- SaveFamilies();
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have a weapon stored in that slot.");
- return 1;
- }
- }
- CMD:safedeposit(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128], choice[32], amount;
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /safedeposit [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: Cash, Materials, Pot, Crack.");
- return 1;
- }
- new family;
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- if(FamilyInfo[family][FamilyUSafe] < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Your family has not upgraded their safe.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2]))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not at your family safe.");
- return 1;
- }
- if(strcmp(choice,"Cash",true) == 0)
- {
- if(amount > GetPlayerCash(playerid) || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyCash] += amount;
- GivePlayerCash(playerid, -amount);
- format(string, sizeof(string), "You have successfully deposited $%d into your family safe", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some money and puts it in their safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited $%d into family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]);
- Log("logs/pay.log", string);
- }
- else if(strcmp(choice,"Materials",true) == 0)
- {
- if(amount > PlayerInfo[playerid][pMats] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyMats] += amount;
- PlayerInfo[playerid][pMats] -= amount;
- format(string, sizeof(string), "You have successfully deposited %d materials into your family safe", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some materials, and puts them in their safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d materials into family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]);
- Log("logs/pay.log", string);
- }
- else if(strcmp(choice,"pot",true) == 0)
- {
- if(amount > PlayerInfo[playerid][pPot] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- if(amount < 1 || amount > 50)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't deposit more than 50 grams at a time!");
- return 1;
- }
- if(FamilyInfo[family][FamilyPot] >= 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your family safe is already full of pot!");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyPot] += amount;
- PlayerInfo[playerid][pPot] -= amount;
- format(string, sizeof(string), "You have successfully deposited %d grams of pot into your family safe", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some pot, and puts it in their safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d grams of pot into family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]);
- Log("logs/pay.log", string);
- }
- else if(strcmp(choice,"crack",true) == 0)
- {
- if(amount > PlayerInfo[playerid][pCrack] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have that much.");
- return 1;
- }
- if(amount < 1 || amount > 25)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't deposit more than 25 grams at a time!");
- return 1;
- }
- if(FamilyInfo[family][FamilyCrack] >= 250)
- {
- SendClientMessage(playerid, COLOR_GREY, "Your family safe is already full of crack!");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyCrack] += amount;
- PlayerInfo[playerid][pCrack] -= amount;
- format(string, sizeof(string), "You have successfully deposited %d grams of crack into your family safe", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some crack and puts it in their safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d grams of crack into family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]);
- Log("logs/pay.log", string);
- }
- return 1;
- }
- CMD:changeage(playerid, params[]) {
- if(PlayerInfo[playerid][pDonator] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "This command is only available to donators right now.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /changeage [16-122]");
- new
- szMessage[34],
- iAge = strval(params);
- if(iAge >= 16 && iAge <= 122) {
- PlayerInfo[playerid][pAge] = iAge;
- format(szMessage, sizeof(szMessage), "You have changed your age to %d.", iAge);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- } else SendClientMessage(playerid, COLOR_GREY, "The age must be between 16 and 122.");
- return 1;
- }
- CMD:changeph(playerid, params[]) {
- if(PlayerInfo[playerid][pDonator] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "This command is only available to donators right now.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /changeph [new custom number]");
- if(PlayerInfo[playerid][pNumber] == 0)
- return SendClientMessage(playerid, COLOR_GREY, "You must have a phone first, before you can change your number.");
- new
- szMessage[66],
- iPH = strval(params);
- if(iPH != 555 && iPH != 911 && iPH != 0 && iPH != 912) {
- if(CheckVPH(iPH) == 0) {
- if(GetPlayerCash(playerid) < 2500) SendClientMessage(playerid, COLOR_GREY," You can't afford that!");
-
- format(szMessage, sizeof(szMessage), "You have changed your phone number to %d for $2500.", iPH);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
-
- GivePlayerCash(playerid, -2500);
- ReplacePH(PlayerInfo[playerid][pNumber], iPH);
- PlayerInfo[playerid][pNumber] = iPH;
- } else {
- format(szMessage, sizeof(szMessage), "The number %d is currently taken. Try again with another number.");
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- }
- } else SendClientMessage(playerid, COLOR_GREY, "The number requested is reserved by the script.");
- return 1;
- }
- CMD:changegender(playerid, params[]) {
- if(PlayerInfo[playerid][pDonator] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "This command is only available to donators right now.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /changegender ['male' or 'female']");
- if(!strcmp(params, "male", true)) {
- PlayerInfo[playerid][pSex] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You are now Male.");
- } else if(!strcmp(params, "female", true)) {
- PlayerInfo[playerid][pSex] = 2;
- SendClientMessage(playerid, COLOR_WHITE, "You are now Female.");
- } else SendClientMessage(playerid, COLOR_GREY, "I'm afraid we don't do that here.");
- return 1;
- }
- CMD:safewithdraw(playerid, params[]) {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128], choice[32], amount;
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /safewithdraw [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available names: Cash, Materials, Pot, Crack.");
- return 1;
- }
- new family;
- if(PlayerInfo[playerid][pGang] < 255)
- {
- family = PlayerInfo[playerid][pGang];
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not in a family.");
- return 1;
- }
- if(FamilyInfo[family][FamilyUSafe] < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Your family hasn't upgraded their safe.");
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(playerid, 3.0, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2]))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not at your family safe.");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Only ranks 5 and 6 can withdraw items from the family safe.");
- return 1;
- }
- if(strcmp(choice,"Cash",true) == 0)
- {
- if(amount > FamilyInfo[family][FamilyCash] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your family doesn't have that much.");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyCash] -= amount;
- GivePlayerCash(playerid, amount);
- format(string, sizeof(string), "You have successfully withdrawn $%d from your family safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some money from their family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn $%d from family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]+1);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"Materials",true) == 0)
- {
- if(amount > FamilyInfo[family][FamilyMats] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your family doesn't have that much.");
- return 1;
- }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyMats] -= amount;
- PlayerInfo[playerid][pMats] += amount;
- format(string, sizeof(string), "You have successfully withdrawn %d materials from your family safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some materials from their family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d materials from family safe %d.",GetPlayerNameEx(playerid), ip,amount,PlayerInfo[playerid][pGang]+1);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"pot",true) == 0)
- {
- if(amount > FamilyInfo[family][FamilyPot] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your family doesn't have that much.");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] > 50)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You already have 50 grams of pot.");
- return 1;
- }
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 50)
- { if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 10 at your Skill Level!"); return 1; } }
- else if(level >= 51 && level <= 100)
- { if(amount < 1 || amount > 20) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 20 at your Skill Level!"); return 1; } }
- else if(level >= 101 && level <= 200)
- { if(amount < 1 || amount > 30) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 30 at your Skill Level!"); return 1; } }
- else if(level >= 201 && level <= 400)
- { if(amount < 1 || amount > 40) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 40 at your Skill Level!"); return 1; } }
- else if(level >= 401)
- { if(amount < 1 || amount > 50) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 50 at your Skill Level!"); return 1; } }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyPot] -= amount;
- PlayerInfo[playerid][pPot] += amount;
- format(string, sizeof(string), "You have successfully withdrawn %d grams of pot from your family safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some pot from their family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d grams of pot from family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]+1);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"crack",true) == 0)
- {
- if(amount > FamilyInfo[family][FamilyCrack] || amount < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Your family doesn't have that much.");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] > 25)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You already have 25 grams of crack.");
- return 1;
- }
- new level = PlayerInfo[playerid][pDrugsSkill];
- if(level >= 0 && level <= 50)
- { if(amount < 1 || amount > 5) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 5 at your Skill Level!"); return 1; } }
- else if(level >= 51 && level <= 100)
- { if(amount < 1 || amount > 10) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 10 at your Skill Level!"); return 1; } }
- else if(level >= 101 && level <= 200)
- { if(amount < 1 || amount > 15) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 15 at your Skill Level!"); return 1; } }
- else if(level >= 201 && level <= 400)
- { if(amount < 1 || amount > 20) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 20 at your Skill Level!"); return 1; } }
- else if(level >= 401)
- { if(amount < 1 || amount > 25) { SendClientMessage(playerid, COLOR_GREY, " You cant go above 25 at your Skill Level!"); return 1; } }
- new year, month,day;
- getdate(year, month, day);
- FamilyInfo[family][FamilyCrack] -= amount;
- PlayerInfo[playerid][pCrack] += amount;
- format(string, sizeof(string), "You have successfully withdrawn %d grams of crack from your family safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some crack from their family safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new ip[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d grams of crack from family safe %d.",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pGang]+1);
- Log("logs/family.log", string);
- }
- return 1;
- }
- CMD:adjust(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not in a family.");
- return 1;
- }
- new family = PlayerInfo[playerid][pGang];
- new string[128];
- if(PlayerInfo[playerid][pRank] == 6)
- {
- new choice[32], opstring[100];
- if(sscanf(params, "s[32]S[100]", choice, opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust [name]");
- SendClientMessage(playerid, COLOR_WHITE, "Available Names: Name, MOTD, Safe, Invite, Uninvite");
- return 1;
- }
- if(strcmp(choice,"name",true) == 0)
- {
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust name [family name]");
- return 1;
- }
- if(strfind(opstring, "|", true) != -1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't use '|' in a family name.");
- return 1;
- }
- if(strlen(opstring) >= 40)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That family name is too long, please refrain from using more than 40 characters.");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyName], opstring, 0, strlen(opstring), 100);
- SaveFamilies();
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted your family's name.");
- format(string, sizeof(string), "%s adjusted family %d's name to %s", GetPlayerNameEx(playerid), family+1, opstring);
- Log("logs/family.log", string);
- }
- }
- else if(strcmp(choice,"motd",true) == 0)
- {
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust MOTD [family MOTD text]");
- return 1;
- }
- if(strfind(opstring, "|", true) != -1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't use '|' in a family name.");
- return 1;
- }
- if(strlen(opstring) >= 60)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That MOTD is too long, please refrain from using more than 60 characters.");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyMOTD], opstring, 0, strlen(opstring), 100);
- SaveFamilies();
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted your family's MOTD.");
- format(string, sizeof(string), "%s adjusted family %d's MOTD to %s", GetPlayerNameEx(playerid), family+1, opstring);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"safe",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Adjusting your Family Safe will reset all your safe stats.");
- SendClientMessage(playerid, COLOR_GRAD1, "If you want to adjust your safe, type /adjust confirm.");
- SendClientMessage(playerid, COLOR_GRAD1, "Upgrading your family safe will cost $5,000.");
- return 1;
- }
- else if(strcmp(choice,"confirm",true) == 0)
- {
- if(GetPlayerCash(playerid) < 5000)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You don't have $5,000 to upgrade your family safe.");
- return 1;
- }
- GivePlayerCash(playerid, -5000);
- GetPlayerPos(playerid, FamilyInfo[family][FamilySafe][0],FamilyInfo[family][FamilySafe][1],FamilyInfo[family][FamilySafe][2]);
- FamilyInfo[family][FamilyCash] = 0;
- FamilyInfo[family][FamilyMats] = 0;
- FamilyInfo[family][FamilyPot] = 0;
- FamilyInfo[family][FamilyCrack] = 0;
- if(FamilyInfo[family][FamilyUSafe]) DestroyPickup(FamilyInfo[family][FamilyPickup]);
- FamilyInfo[family][FamilyUSafe] = 1;
- FamilyInfo[family][FamilyPickup] = CreatePickup(1239, 23, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2], -1);
- SaveFamilies();
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted your family's Safe.");
- format(string, sizeof(string), "%s adjusted family %d's safe", GetPlayerNameEx(playerid), family+1);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"invite",true) == 0)
- {
- if(!strlen(opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust invite [playerid/partofname]");
- return 1;
- }
- new giveplayerid = ReturnUser(opstring);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pGang] == 255)
- {
- if(PlayerInfo[giveplayerid][pLeader] == 2 || PlayerInfo[giveplayerid][pFaction] == 2 && PlayerInfo[giveplayerid][pDivision] == 2) {
- format(string, sizeof(string), "* You've invited %s to join '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept family)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteFaction[giveplayerid] = 0;
- InviteOffer[giveplayerid] = playerid;
- InviteFamily[giveplayerid] = family;
- format(string, sizeof(string), "%s invited %s (FBI agent) to family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), family+1);
- Log("logs/family.log", string);
- } else if(PlayerInfo[giveplayerid][pLeader] == 0 && PlayerInfo[giveplayerid][pFaction] == 0) {
- format(string, sizeof(string), "* You've invited %s to join '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept family)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteFaction[giveplayerid] = 0;
- InviteOffer[giveplayerid] = playerid;
- InviteFamily[giveplayerid] = family;
- format(string, sizeof(string), "%s invited %s to family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), family+1);
- Log("logs/family.log", string);
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "That player is already in a family/faction.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is already in a family/faction.");
- }
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"uninvite",true) == 0)
- {
- if(!strlen(opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust uninvite [playerid/partofname]");
- return 1;
- }
- new giveplayerid = ReturnUser(opstring);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't in your family.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pRank] > PlayerInfo[playerid][pRank])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't uninvite higher ranks.");
- return 1;
- }
- format(string, sizeof(string), "* You've kicked %s out of your family.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Family leader %s has kicked your out of the family.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pGang] = 255;
- PlayerInfo[giveplayerid][pRank] = 0;
- FamilyInfo[family][FamilyMembers] --;
- SaveFamilies();
- format(string, sizeof(string), "%s uninvited %s from family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), family+1);
- Log("logs/family.log", string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"rank",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Error! Please use /adjustrank instead of /adjust rank.");
- }
- else if(strcmp(choice,"rankname",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Error! Please use /adjustrankname instead of /adjust rankname.");
- }
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- new choice[32], opstring[100];
- if(sscanf(params, "s[32]S[100]", choice, opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust [name]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: MOTD, Safe, Invite, Uninvite, Rank");
- return 1;
- }
- if(strcmp(choice,"motd",true) == 0)
- {
- if(!opstring[0])
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /adjust MOTD [Family MOTD Text]");
- return 1;
- }
- if(strfind(opstring, "|", true) != -1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Can't use the '|' character!");
- return 1;
- }
- if(strlen(opstring) >= 60)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That MOTD is too long, please refrain from using more than 60 characters.");
- return 1;
- }
- strmid(FamilyInfo[family][FamilyMOTD], opstring, 0, strlen(opstring), 100);
- SaveFamilies();
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted your Family's MOTD.");
- format(string, sizeof(string), "%s adjusted family %d's MOTD to %s", GetPlayerNameEx(playerid), family+1, opstring);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"safe",true) == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Adjusting your Family Safe will reset all your Safe Stats.");
- SendClientMessage(playerid, COLOR_GRAD1, "If you want to adjust your Safe type /adjust confirm.");
- SendClientMessage(playerid, COLOR_GRAD1, "Upgrading your family Safe will cost $5,000.");
- return 1;
- }
- else if(strcmp(choice,"confirm",true) == 0)
- {
- if(GetPlayerCash(playerid) < 5000)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You don't have $5,000 to upgrade your family safe.");
- return 1;
- }
- GivePlayerCash(playerid, -5000);
- GetPlayerPos(playerid, FamilyInfo[family][FamilySafe][0],FamilyInfo[family][FamilySafe][1],FamilyInfo[family][FamilySafe][2]);
- FamilyInfo[family][FamilyCash] = 0;
- FamilyInfo[family][FamilyMats] = 0;
- FamilyInfo[family][FamilyPot] = 0;
- FamilyInfo[family][FamilyCrack] = 0;
- if(FamilyInfo[family][FamilyUSafe]) DestroyPickup(FamilyInfo[family][FamilyPickup]);
- FamilyInfo[family][FamilyUSafe] = 1;
- FamilyInfo[family][FamilyPickup] = CreatePickup(1239, 23, FamilyInfo[family][FamilySafe][0], FamilyInfo[family][FamilySafe][1], FamilyInfo[family][FamilySafe][2], -1);
- SaveFamilies();
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted your Family's Safe.");
- format(string, sizeof(string), "%s adjusted family %d's safe", GetPlayerNameEx(playerid), family+1);
- Log("logs/family.log", string);
- }
- else if(strcmp(choice,"invite",true) == 0)
- {
- if(!strlen(opstring))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust invite [playerid/partofname]");
- return 1;
- }
- new giveplayerid = ReturnUser(opstring);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pGang] == 255)
- {
- /*if(PlayerInfo[giveplayerid][pLeader] == 2 || PlayerInfo[giveplayerid][pFaction] == 2)
- {
- format(string, sizeof(string), "* You've invited %s to join '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept family)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteFaction[giveplayerid] = 0;
- InviteOffer[giveplayerid] = playerid;
- InviteFamily[giveplayerid] = family;
- }*/
- if(PlayerInfo[giveplayerid][pLeader] == 0 && PlayerInfo[giveplayerid][pFaction] == 0)
- {
- format(string, sizeof(string), "* You've invited %s to join '%s'.",GetPlayerNameEx(giveplayerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has invited you to join '%s'. (type /accept family)",GetPlayerNameEx(playerid), FamilyInfo[family][FamilyName]);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- InviteFaction[giveplayerid] = 0;
- InviteOffer[giveplayerid] = playerid;
- InviteFamily[giveplayerid] = family;
- format(string, sizeof(string), "%s invited %s to family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), family+1);
- Log("logs/family.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is already in a family/faction.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is already in a family/faction.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"uninvite",true) == 0)
- {
- if(!strlen(choice))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust uninvite [playerid/partofname]");
- return 1;
- }
- new giveplayerid = ReturnUser(opstring);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not in your Family!");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pRank] > PlayerInfo[playerid][pRank])
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't uninvite higher ranks!");
- return 1;
- }
- format(string, sizeof(string), "* You've kicked %s out of your Family.",GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Family Leader %s has kicked your out of the Family.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pGang] = 255;
- PlayerInfo[giveplayerid][pRank] = 0;
- FamilyInfo[family][FamilyMembers] --;
- SaveFamilies();
- format(string, sizeof(string), "%s uninvited %s from family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), family+1);
- Log("logs/family.log", string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(strcmp(choice,"rank",true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Error! Please use /adjustrank instead of /adjust rank.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid adjust name!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not high rank enough to use this command!");
- return 1;
- }
- return 1;
- }
- CMD:adjustrank(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not in a family.");
- return 1;
- }
- new family = PlayerInfo[playerid][pGang];
- new string[128], rank, giveplayerid;
- if(sscanf(params, "du", rank, giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjustrank [RankNr] [playerid/partofname]");
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(rank < 1 || rank > 6) { SendClientMessage(playerid, COLOR_GREY, "Rank number must be from 1 to 6."); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't in your family.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pRank] > PlayerInfo[playerid][pRank])
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't adjust higher ranks.");
- return 1;
- }
- format(string, sizeof(string), "* You've given %s rank %d.",GetPlayerNameEx(giveplayerid),rank);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Family leader %s has given you rank %d.",GetPlayerNameEx(playerid),rank);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- new temprank = PlayerInfo[giveplayerid][pRank];
- PlayerInfo[giveplayerid][pRank] = rank;
- format(string, sizeof(string), "%s set %s rank from %d to %d in family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),temprank, rank, family+1);
- Log("logs/family.log", string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pRank] == 5)
- {
- if(rank < 1 || rank > 5) { SendClientMessage(playerid, COLOR_GREY, " RankNr can't be below 1 or above 5!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[giveplayerid][pGang] != family)
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not in your Family!");
- return 1;
- }
- format(string, sizeof(string), "* You've given %s Rank %d.",GetPlayerNameEx(giveplayerid),rank);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Family Leader %s has given you Rank %d.",GetPlayerNameEx(playerid),rank);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- PlayerInfo[giveplayerid][pRank] = rank;
- format(string, sizeof(string), "%s set %s rank to %d in family %d ", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), rank, family+1);
- Log("logs/family.log", string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not high rank enough to use this command!");
- return 1;
- }
- return 1;
- }
- CMD:phoneprivacy(playerid, params[])
- {
- if(PlayerInfo[playerid][pNumber] != 0 && PlayerInfo[playerid][pDonator] >= 1)
- {
- if(PhonePrivacy[playerid] == 1)
- {
- PhonePrivacy[playerid] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have disabled the phone privacy feature.");
- }
- else
- {
- PhonePrivacy[playerid] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You have enabled the phone privacy feature.");
- }
- } else SendClientMessage(playerid, COLOR_GREY, "This command is only available to donators and current phone owners.");
- return 1;
- }
- CMD:changeplates(playerid, params[]) {
- if(PlayerInfo[playerid][pDonator] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "This command is only available to donators right now.");
- new
- color[32],
- plate[32];
- if(sscanf(params, "s[32]s[32]", color, plate))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changeplates [color] [new plate]");
- SendClientMessage(playerid, COLOR_GREY, "Available colors: {EFEFEF}default, black, white, blue, red, green, purple");
- SendClientMessage(playerid, COLOR_GREY, "{EFEFEF}yellow, lightblue, darkgreen, darkblue, darkgrey, darkbrown, pink");
- return 1;
- }
- new
- Float: fVehicleHealth,
- iCount;
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++) {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId])) {
- iCount = 1;
- GetVehicleHealth(PlayerVehicleInfo[playerid][d][pvId], fVehicleHealth);
-
- if(fVehicleHealth < 800)
- return SendClientMessage(playerid, COLOR_GREY, "Your vehicle needs to have 800 HP before you can change the plates on it.");
-
- if(strlen(plate) > 8)
- return SendClientMessage(playerid, COLOR_GREY, "The license plate can not be longer than 8 characters!");
- if(strcmp(color, "black", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{000000}%s", plate);
- else if(strcmp(color, "white", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{FFFFFF}%s", plate);
- else if(strcmp(color, "blue", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{2641FE}%s", plate);
- else if(strcmp(color, "red", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{AA3333}%s", plate);
- else if(strcmp(color, "green", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{33AA33}%s", plate);
- else if(strcmp(color, "purple", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{C2A2DA}%s", plate);
- else if(strcmp(color, "yellow", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{FFFF00}%s", plate);
- else if(strcmp(color, "lightblue", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{33CCFF}%s", plate);
- else if(strcmp(color, "darkgreen", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{2D6F00}%s", plate);
- else if(strcmp(color, "darkblue", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{0B006F}%s", plate);
- else if(strcmp(color, "darkgrey", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{525252}%s", plate);
- else if(strcmp(color, "gold", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{B46F00}%s", plate);
- else if(strcmp(color, "darkbrown", true)==0||strcmp(color, "dennell", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{814F00}%s", plate);
- else if(strcmp(color, "darkred", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{750A00}%s", plate);
- else if(strcmp(color, "pink", true)==0) format(PlayerVehicleInfo[playerid][d][pvNumberPlate], 32, "{FF51F1}%s", plate);
- else strmid(PlayerVehicleInfo[playerid][d][pvNumberPlate], plate, 0, strlen(plate), 32);
- GetPlayerPos(PlayerVehicleInfo[playerid][d][pvId], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetVehicleZAngle(PlayerVehicleInfo[playerid][d][pvId], PlayerInfo[playerid][pPos_r]);
- cmd_park(playerid, params);
- //UpdatePlayerVehicleParkPosition(playerid, PlayerVehicleInfo[playerid][d][pvId], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], PlayerInfo[playerid][pPos_r], 1000.0);
- }
- }
- if(iCount != 1)
- return SendClientMessage(playerid, COLOR_GREY, "You need to be inside of the vehicle you want to change the plates on.");
- return 1;
- }
- CMD:adjustrankname(playerid, params[])
- {
- if(PlayerInfo[playerid][pGang] == 255)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not in a family.");
- return 1;
- }
- new family = PlayerInfo[playerid][pGang];
- new string[128], rank, rankname[32];
- if(sscanf(params, "ds[32]", rank, rankname)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjustrankname [rank number 1-6] [rank name]");
- if(PlayerInfo[playerid][pRank] == 6)
- {
- if(rank < 1 || rank > 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "Rank number must be from 1 to 6.");
- return 1;
- }
- if(strlen(rankname) >= 19)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "That rank name is too long, please refrain from using more than 19 characters.");
- return 1;
- }
- if(rank == 1)
- {
- strmid(FamilyInfo[family][FamilyRank1], rankname, 0, strlen(rankname), 32);
- SaveFamilies();
- format(string, sizeof(string), "* You have changed Rank 1 to %s.",rankname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(rank == 2)
- {
- strmid(FamilyInfo[family][FamilyRank2], rankname, 0, strlen(rankname), 32);
- SaveFamilies();
- format(string, sizeof(string), "* You have changed Rank 2 to %s.",rankname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(rank == 3)
- {
- strmid(FamilyInfo[family][FamilyRank3], rankname, 0, strlen(rankname), 32);
- SaveFamilies();
- format(string, sizeof(string), "* You have changed Rank 3 to %s.",rankname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(rank == 4)
- {
- strmid(FamilyInfo[family][FamilyRank4], rankname, 0, strlen(rankname), 32);
- SaveFamilies();
- format(string, sizeof(string), "* You have changed Rank 4 to %s.",rankname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(rank == 5)
- {
- strmid(FamilyInfo[family][FamilyRank5], rankname, 0, strlen(rankname), 32);
- SaveFamilies();
- format(string, sizeof(string), "* You have changed Rank 5 to %s.",rankname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- if(rank == 6)
- {
- strmid(FamilyInfo[family][FamilyRank6], rankname, 0, strlen(rankname), 32);
- SaveFamilies();
- format(string, sizeof(string), "* You have changed Rank 6 to %s.",rankname);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- format(string, sizeof(string), "%s adjusted family %d's rank %d to %s", GetPlayerNameEx(playerid), family+1, rank, rankname);
- Log("logs/family.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not high rank enough to use this command!");
- return 1;
- }
- return 1;
- }
- CMD:gpark(playerid, params[])
- {
- new string[128];
- new f = PlayerInfo[playerid][pGang];
- if(f == 255) return SendClientMessage(playerid, COLOR_GRAD2, "You're not in a family.");
- if(PlayerInfo[playerid][pRank] < 5) return SendClientMessage(playerid, COLOR_GRAD2, "You need to be at least rank 5 in the family.");
- for(new d = 0 ; d < MAX_GANG_VEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, FamilyVehicleInfo[f][d][fvId]))
- {
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You must be in the driver seat.");
- new Float:x, Float:y, Float:z, Float:angle, Float:health;
- GetVehicleHealth(FamilyVehicleInfo[f][d][fvId], health);
- if(health < 800) return SendClientMessage(playerid, COLOR_GREY, " The vehicle is too damaged to park it.");
- if(PlayerInfo[playerid][pLockCar] == GetPlayerVehicleID(playerid)) PlayerInfo[playerid][pLockCar] = INVALID_VEHICLE_ID;
- GetVehiclePos(FamilyVehicleInfo[f][d][fvId], x, y, z);
- GetVehicleZAngle(FamilyVehicleInfo[f][d][fvId], angle);
- SurfingCheck(GetPlayerVehicleID(playerid));
- UpdateGangVehicleParkPosition(f, d, x, y, z, angle, health, 1);
- FamilyVehicleInfo[f][d][fvSpawnx] = x;
- FamilyVehicleInfo[f][d][fvSpawny] = y;
- FamilyVehicleInfo[f][d][fvSpawnz] = z;
- FamilyVehicleInfo[f][d][fvSpawna] = angle;
- PutPlayerInVehicle(playerid, FamilyVehicleInfo[f][d][fvId], 0);
- format(string, sizeof(string), "* %s has parked their vehicle.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveFamiliesHQ();
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, " You need to be inside a vehicle that you own.");
- return 1;
- }
- CMD:gvlock(playerid, params[])
- {
- new Float: x, Float: y, Float: z;
- new f = PlayerInfo[playerid][pGang];
- if(f == 255) return SendClientMessage(playerid, COLOR_GRAD2, "You're not in a family.");
- for(new d = 0 ; d < MAX_GANG_VEHICLES; d++)
- {
- if(FamilyVehicleInfo[f][d][fvId] != 0) GetVehiclePos(FamilyVehicleInfo[f][d][fvId], x, y, z);
- if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))
- {
- if(FamilyVehicleInfo[f][d][fvLock] > 0 && FamilyVehicleInfo[f][d][fvLocked] == 0)
- {
- GameTextForPlayer(playerid,"~r~Vehicle Locked!",5000,6);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- FamilyVehicleInfo[f][d][fvLocked] = 1;
- LockGangVehicle(f, FamilyVehicleInfo[f][d][fvId], FamilyVehicleInfo[f][d][fvLock]);
- return 1;
- }
- else if(FamilyVehicleInfo[f][d][fvLock] > 0 && FamilyVehicleInfo[f][d][fvLocked] == 1)
- {
- GameTextForPlayer(playerid,"~g~Vehicle Unlocked!",5000,6);
- PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
- FamilyVehicleInfo[f][d][fvLocked] = 0;
- UnLockGangVehicle(f, FamilyVehicleInfo[f][d][fvId], FamilyVehicleInfo[f][d][fvLock]);
- return 1;
- }
- SendClientMessage(playerid, COLOR_GREY, " You don't have a lock system installed on this vehicle.");
- return 1;
- }
- }
- SendClientMessage(playerid, COLOR_GREY, "You're not near any vehicle that your family owns.");
- return 1;
- }
- CMD:gvl(playerid, params[]) return cmd_gvlock(playerid, params);
- CMD:gbuylock(playerid, params[])
- {
- if(!IsAt247(playerid))
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You're not in a 24-7!");
- return 1;
- }
- if(PlayerInfo[playerid][pGang] != 255 && PlayerInfo[playerid][pRank] >= 6)
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDGLOCKBUY, DIALOG_STYLE_LIST, "24/7", "Alarm Lock $1000\nIndustrial Lock $5000", "Buy", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You need to be in a family and have rank 6 to use this command.");
- }
- return 1;
- }
- CMD:skill(playerid, params[])
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skill [number]");
- SendClientMessage(playerid, COLOR_GREY, "| 1: Detective 7: Car Mechanic");
- SendClientMessage(playerid, COLOR_GREY, "| 2: Lawyer 8: Boxer");
- SendClientMessage(playerid, COLOR_GREY, "| 3: Whore 9: Fishing");
- SendClientMessage(playerid, COLOR_GREY, "| 4: Drugs Dealer 10: Trucker");
- SendClientMessage(playerid, COLOR_GREY, "| 5: Drug Smuggler 11: Car Jacker ");
- SendClientMessage(playerid, COLOR_GREY, "| 6: Arms Dealer");
- //SendClientMessage(playerid, COLOR_GREY, "| 6: Arms Dealer 12: Craftsman");
- return 1;
- }
- else switch(strval(params)) {
- case 1: //Detective
- {
- new level = PlayerInfo[playerid][pDetSkill], string[48];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 1."); format(string, sizeof(string), "You need to find %d more people to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 2."); format(string, sizeof(string), "You need to find %d more people to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 3."); format(string, sizeof(string), "You need to find %d more people to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 4."); format(string, sizeof(string), "You need to find %d more people to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Detective Skill Level = 5."); }
- }
- case 2://Lawyer
- {
- new level = PlayerInfo[playerid][pLawSkill], string[48];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 1."); format(string, sizeof(string), "You need to free %d more people to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 2."); format(string, sizeof(string), "You need to free %d more people to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 3."); format(string, sizeof(string), "You need to free %d more people to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 4."); format(string, sizeof(string), "You need to free %d more people to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Lawyer Skill Level = 5."); }
- }
- case 3://Whore
- {
- new level = PlayerInfo[playerid][pSexSkill], string[48];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 1."); format(string, sizeof(string), "You need to have sex %d times more to level up.", 50- level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 2."); format(string, sizeof(string), "You need to have sex %d times more to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 3."); format(string, sizeof(string), "You need to have sex %d times more to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 4."); format(string, sizeof(string), "You need to have sex %d times more to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Whore Skill Level = 5."); }
- }
- case 4://Drugs Dealer
- {
- new level = PlayerInfo[playerid][pDrugsSkill], string[50];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 1."); format(string, sizeof(string), "You need to sell drugs %d times more to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 2."); format(string, sizeof(string), "You need to sell drugs %d times more to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 3."); format(string, sizeof(string), "You need to sell drugs %d times more to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 4."); format(string, sizeof(string), "You need to sell drugs %d times more to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Dealer Skill Level = 5."); }
- }
- case 5://Drug Smuggling
- {
- new level = PlayerInfo[playerid][pSmugSkill], string[53];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggling Skill Level = 1."); format(string, sizeof(string), "You need to smuggle %d more drug crates to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggling Skill Level = 2."); format(string, sizeof(string), "You need to smuggle %d more drug crates to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggling Skill Level = 3."); format(string, sizeof(string), "You need to smuggle %d more drug crates to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggling Skill Level = 4."); format(string, sizeof(string), "You need to smuggle %d more drug crates to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Drug Smuggling Skill Level = 5."); }
- }
- case 6://Arms Dealer
- {
- new level = PlayerInfo[playerid][pArmsSkill], string[48];
- if(level >= 0 && level < 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 1."); format(string, sizeof(string), "You need to sell %d more guns to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 50 && level < 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 2."); format(string, sizeof(string), "You need to sell %d more guns to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 100 && level < 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 3."); format(string, sizeof(string), "You need to sell %d more guns to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 200 && level < 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 4."); format(string, sizeof(string), "You need to sell %d more guns to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Arms Dealer Skill Level = 5."); }
- }
- case 7://Car Mechanic
- {
- new level = PlayerInfo[playerid][pMechSkill], string[60];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Mechanic Skill Level = 1."); format(string, sizeof(string), "You need to fix/refill a car for %d times more to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Mechanic Skill Level = 2."); format(string, sizeof(string), "You need to fix/refill a car for %d times more to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Mechanic Skill Level = 3."); format(string, sizeof(string), "You need to fix/refill a car for %d times more to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Mechanic Skill Level = 4."); format(string, sizeof(string), "You need to fix/refill a car for %d times more to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Mechanic Skill Level = 5."); }
- }
- case 8://Boxer
- {
- new level = PlayerInfo[playerid][pBoxSkill], string[48];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 1."); format(string, sizeof(string), "You need to Win %d more Matches to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 2."); format(string, sizeof(string), "You need to Win %d more Matches to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 3."); format(string, sizeof(string), "You need to Win %d more Matches to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 4."); format(string, sizeof(string), "You need to Win %d more Matches to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Boxing Skill Level = 5."); }
- }
- case 9://Fishing
- {
- new level = PlayerInfo[playerid][pFishSkill], string[48];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 1."); format(string, sizeof(string), "You need to Fish %d more Fishes to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 2."); format(string, sizeof(string), "You need to Fish %d more Fishes to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 3."); format(string, sizeof(string), "You need to Fish %d more Fishes to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 4."); format(string, sizeof(string), "You need to Fish %d more Fishes to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Fishing Skill Level = 5."); }
- }
- case 10://Trucker
- {
- new level = PlayerInfo[playerid][pTruckSkill], string[50];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trucker Skill Level = 1."); format(string, sizeof(string), "You need to transport goods %d times to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trucker Skill Level = 2."); format(string, sizeof(string), "You need to transport goods %d times to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trucker Skill Level = 3."); format(string, sizeof(string), "You need to transport goods %d times to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trucker Skill Level = 4."); format(string, sizeof(string), "You need to transport goods %d times to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Trucker Skill Level = 5."); }
- }
- case 11://Car Jacker
- {
- new level = PlayerInfo[playerid][pCarSkill], string[50];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 1."); format(string, sizeof(string), "You need to deliver %d more cars to level up.",51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 2."); format(string, sizeof(string), "You need to deliver %d more cars to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 3."); format(string, sizeof(string), "You need to deliver %d more cars to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 4."); format(string, sizeof(string), "You need to deliver %d more cars to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Car Jacker Skill Level = 5."); }
- }
- /*case 12:// Craftsman
- {
- new level = PlayerInfo[playerid][pCraftSkill], string[50];
- if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_YELLOW, "Your Craftsman Skill Level = 1."); format(string, sizeof(string), "You need to craft %d more items to level up.", 51 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_YELLOW, "Your Craftsman Skill Level = 2."); format(string, sizeof(string), "You need to craft %d more items to level up.", 101 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_YELLOW, "Your Craftsman Skill Level = 3."); format(string, sizeof(string), "You need to craft %d more items to level up.", 201 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_YELLOW, "Your Craftsman Skill Level = 4."); format(string, sizeof(string), "You need to craft %d more items to level up.", 401 - level); SendClientMessage(playerid, COLOR_YELLOW, string); }
- else if(level >= 401) { SendClientMessage(playerid, COLOR_YELLOW, "Your Craftsman Skill Level = 5."); }
- }*/
- default:
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid skill number specified.");
- }
- }
- return 1;
- }
- CMD:sex(playerid, params[])
- {
- if(PlayerInfo[playerid][pJob] == 3 || PlayerInfo[playerid][pJob2] == 3)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SendClientMessage(playerid, COLOR_GREY, " You can only have Sex in a Car!");
- return 1;
- }
- new Car = GetPlayerVehicleID(playerid);
- new string[128], giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sex [playerid/partofname] [price]");
- if(money < 1 || money > 10000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then $1 or above $10,000!"); return 1; }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't have Sex with yourself!"); return 1; }
- if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(giveplayerid, Car))
- {
- if(PlayerInfo[playerid][pSexTime] < 1)
- {
- format(string, sizeof(string), "* You Offered %s to have Sex with you, for $%d.", GetPlayerNameEx(giveplayerid), money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Whore %s has Offered you to have Sex with them, for $%d (type /accept sex) to accept.", GetPlayerNameEx(playerid), money);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- SexOffer[giveplayerid] = playerid;
- SexPrice[giveplayerid] = money;
- PlayerInfo[playerid][pSexTime] = 60;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You have already had sex, wait for your reload time to finish!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You or the other player must be in a Car together!");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You're not a Whore!");
- }
- return 1;
- }
- forward whereabouts(playerid, targetid);
- public whereabouts(playerid, targetid)
- {
- new string[128];
- if(GetPVarInt(targetid, "DoorID") != 99999)
- {
- new i = GetPVarInt(targetid, "DoorID");
- format(string, sizeof(string), "SMS: Sources last seen %s go inside %s, Sender: Unknown.", GetPlayerNameEx(targetid), DDoorsInfo[i][ddDescription]);
- SCM(playerid, COLOR_YELLOW, string);
- }
- else if(GetPVarInt(targetid, "HouseID") != -1)
- {
- new i = GetPVarInt(targetid, "HouseID");
- format(string, sizeof(string), "SMS: Sources last seen %s go inside %s's house, Sender: Unknown.", GetPlayerNameEx(targetid), HouseInfo[i][hOwner]);
- SCM(playerid, COLOR_YELLOW, string);
- }
- return 1;
- }
- CMD:find(playerid, params[]) {
- if(PlayerInfo[playerid][pJob] != 1 && PlayerInfo[playerid][pJob2] != 1) {
- SendClientMessage(playerid, COLOR_GREY, "You're not a detective.");
- }
- else if(UsedFind[playerid]) {
- SendClientMessage(playerid, COLOR_GREY, "You've already searched for someone - wait a little.");
- }
- else {
- new
- iTargetID;
- if(sscanf(params, "u", iTargetID)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /find [playerid/partofname]");
- }
- else if(iTargetID == playerid) {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
- }
- else if(!IsPlayerConnected(iTargetID)) {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- else if(PlayerInfo[iTargetID][pAdmin] >= 1 && AdminDuty[iTargetID] == 1) {
- SendClientMessage(playerid, COLOR_GREY, "You're unable to find this person.");
- }
- else {
- switch(PlayerInfo[playerid][pDetSkill]) {
- case 0 .. 50: {
- FindTimePoints[playerid] = 4;
- UsedFind[playerid] = 120;
- }
- case 51 .. 100: {
- FindTimePoints[playerid] = 6;
- UsedFind[playerid] = 90;
- }
- case 101 .. 200: {
- FindTimePoints[playerid] = 8;
- UsedFind[playerid] = 60;
- }
- case 201 .. 400: {
- FindTimePoints[playerid] = 10;
- UsedFind[playerid] = 30;
- }
- default: {
- FindTimePoints[playerid] = 12;
- UsedFind[playerid] = 15;
- }
- }
-
- new szMessage[124];
- if(GetPlayerInterior(iTargetID) != 0)
- {
- if(GetPVarInt(iTargetID, "DoorID") != 99999 || GetPVarInt(iTargetID, "HouseID") != -1)
- {
- format(szMessage, sizeof(szMessage), "SMS: I need the where-abouts of %s, Sender: %s (%d)", GetPlayerNameEx(iTargetID), GetPlayerNameEx(playerid), PlayerInfo[playerid][pNumber]);
- SCM(playerid, COLOR_YELLOW, szMessage);
- SetTimerEx("whereabouts", 6000, false, "ii", playerid, iTargetID);
- return 1;
- }
- }
- new
- szZone[MAX_ZONE_NAME];
- SetPlayerMarkerForPlayer(playerid, iTargetID, FIND_COLOR);
- GetPlayer3DZone(iTargetID, szZone, sizeof(szZone));
- format(szMessage, sizeof(szMessage), "%s has been last seen at %s.", GetPlayerNameEx(iTargetID), szZone);
- SendClientMessage(playerid, COLOR_GRAD2, szMessage);
- FindingPlayer[playerid]=iTargetID;
- FindTime[playerid] = 1;
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pDetSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pDetSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pDetSkill]++;
- }
- switch(PlayerInfo[playerid][pDetSkill]) {
- case 50: SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 2, you can find a little faster.");
- case 100: SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 3, you can find a little faster.");
- case 200: SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 4, you can find a little faster.");
- case 400: SendClientMessage(playerid, COLOR_YELLOW, "* Your Detective Skill is now Level 5, you can find a little faster.");
- }
- }
- }
- return 1;
- }
- CMD:changepass(playerid, params[]) {
- if(gPlayerLogged[playerid])
- ShowPlayerDialogEx(playerid, 2398, DIALOG_STYLE_INPUT, "Password Change", "Please enter your new password:", "Change", "Cancel");
- return 1;
- }
- CMD:givenos(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givenos [playerid/partofname]");
- if(!IsPlayerConnected(giveplayerid))
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- new VehicleID = GetPlayerVehicleID(giveplayerid), Model = GetVehicleModel(VehicleID);
- switch(Model)
- {
- case 448,461,462,463,468,471,509,510,521,522,523,581,586,449: return
- SendClientMessage(playerid,COLOR_GRAD1,"You can't tune this vehicle!");
- }
- AddVehicleComponent(VehicleID, 1010); PlayerPlaySound(giveplayerid,1133,0.0,0.0,0.0); //NOS
- format(string, sizeof(string), "Successfully added NOS to %s's vehicle.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid,COLOR_GRAD1,string);
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"Player must be in a vehicle.");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GRAD1,"You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:blowup(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /blowup [playerid/partofname]");
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- format(string, sizeof(string), "You have successfuly exploded %s (ID: %d).",GetPlayerNameEx(giveplayerid),giveplayerid);
- SendClientMessage(playerid,COLOR_GRAD2,string);
- new Float:boomx, Float:boomy, Float:boomz;
- GetPlayerPos(giveplayerid,boomx, boomy, boomz);
- CreateExplosion(boomx, boomy , boomz, 7, 1);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:oldcar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128];
- format(string, sizeof(string), "Your last driven vehicle ID was %d.",gLastCar[playerid]);
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- return 1;
- }
- CMD:gotocar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new carid;
- if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotocar [carid]");
- new Float:cwx2,Float:cwy2,Float:cwz2;
- GetVehiclePos(carid, cwx2, cwy2, cwz2);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, cwx2, cwy2, cwz2);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, cwx2, cwy2, cwz2);
- }
- new string[128];
- format(string, sizeof(string), "You have teleported to vehicle ID %d.", carid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- SetPlayerInterior(playerid,0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:getcar(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new carid;
- if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getcar [carid]");
- new Float:plocx,Float:plocy,Float:plocz;
- GetPlayerPos(playerid, plocx, plocy, plocz);
- SetVehiclePos(carid,plocx,plocy+4, plocz);
- SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
- LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
- new string[128];
- format(string, sizeof(string), "You have teleported vehicle ID %d to yourself.", carid);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:changeuserpassword(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], accountName[24], password[64];
- if(sscanf(params, "s[MAX_PLAYER_NAME]s[64]", accountName, password)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changeuserpassword [playername] [new password]");
- if(doesAccountExist(accountName))
- {
- OnPlayerOfflineLogin(accountName);
- if(PlayerInfo[MAX_PLAYERS][pAdmin] > 0)
- return SendClientMessage(playerid, COLOR_GRAD2, " You can't do this to other admins!");
- new passbuffer[129];
- WP_Hash(passbuffer, sizeof(passbuffer), password);
- format(PlayerInfo[MAX_PLAYERS][pKey], 129, "%s", passbuffer);
- format(string, sizeof(string), "You have changed %s's password to '%s'", accountName, password);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- OnPlayerOfflineSave(accountName);
- format(string, sizeof(string), "AdmCmd: %s's password was changed by %s", accountName, GetPlayerNameEx(playerid));
- Log("logs/password.log", string);
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That account doesn't exist.");
- }
- return 1;
- }
- CMD:sethelper(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pHelper] >= 3 || PlayerInfo[playerid][pHelperMod] > 0)
- {
- new
- iLevel,
- iTarget;
- if(sscanf(params, "ud", iTarget, iLevel))
- return SendClientMessage(playerid, COLOR_GREY, "USAGE: /sethelper [playerid/partofname] [level]");
- if(iLevel <= -1 || iLevel >= 5)
- return SendClientMessage(playerid, COLOR_GREY, "Valid helper levels start from 1 and end at 4.");
- if(iTarget != INVALID_PLAYER_ID) {
- if(PlayerInfo[iTarget][pAdmin] > 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't make an admin a helper.");
-
- if(iLevel >= 2 && PlayerInfo[playerid][pAdmin] < 5)
- return SendClientMessage(playerid, COLOR_GREY, "You must be a Head Admin to give someone Senior Helper status.");
- PlayerInfo[iTarget][pHelper] = iLevel;
-
- new
- szMessage[64];
- if(PlayerInfo[iTarget][pAcceptReport] > 0)
- PlayerInfo[iTarget][pAcceptReport] = 0;
- format(szMessage, sizeof(szMessage), "You have made %s a level %d helper.", GetPlayerNameEx(iTarget), iLevel);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
-
- format(szMessage, sizeof(szMessage), "%s has made you a level %d helper.", GetPlayerNameEx(playerid), iLevel);
- SendClientMessage(iTarget, COLOR_WHITE, szMessage);
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:osethelper(playerid, params[]) {
- if(PlayerInfo[playerid][pHelperMod] > 0) {
- new string[128], playername[MAX_PLAYER_NAME], rank;
- if(sscanf(params, "s[MAX_PLAYER_NAME]d", playername, rank)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /osethelper [name] [level]");
- if(!doesAccountExist(playername))
- return SendClientMessage(playerid, COLOR_WHITE, "That account does not exist!");
- if(rank <= -1 || rank >= 6)
- return SendClientMessage(playerid, COLOR_GREY, "Valid helper levels start from 1 and end at 4.");
- OnPlayerOfflineLogin(playername);
- if(rank >= 3 && PlayerInfo[playerid][pHelperMod] > 0)
- return SendClientMessage(playerid, COLOR_GREY, "Only Helper Moderator may set that helper status.");
- if(PlayerInfo[MAX_PLAYERS][pHelper] >= 1) {
- PlayerInfo[MAX_PLAYERS][pHelper] = rank;
- format(string, sizeof(string), "You have given %s level %d helper.", playername, rank);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- OnPlayerOfflineSave(playername);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That player is not an helper");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command.");
- return 1;
- }
- /*CMD:vdb(playerid, params[])
- {
- if(PlayerInfo[playerid][pVDB] == 1)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- PlayerTextDrawHide(playerid, VDB1[playerid]);
- PlayerTextDrawHide(playerid, VDB2[playerid]);
- PlayerTextDrawHide(playerid, VDB3[playerid]);
- PlayerTextDrawHide(playerid, VDB4[playerid]);
- PlayerTextDrawHide(playerid, VDB5[playerid]);
- TextDrawHideForPlayer(playerid, VDB0);
- }
- SendClientMessage(playerid, -1, "You have toggled off your vehicle dashboard.");
- PlayerInfo[playerid][pVDB] = 0;
- }
- else
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- new string[128];
- new Float:health;
- new vehicleid = GetPlayerVehicleID(playerid);
- GetVehicleHealth(vehicleid, health);
- format(string, sizeof(string), "%.0f", health);
- PlayerTextDrawSetString(playerid, VDB3[playerid], string);
- format(string, sizeof(string), "%s", GetVehicleName(vehicleid));
- PlayerTextDrawSetString(playerid, VDB1[playerid], string);
- format(string, sizeof(string), "%.0f MPH", player_get_speed(playerid));
- PlayerTextDrawSetString(playerid, VDB5[playerid], string);
- PlayerTextDrawShow(playerid, VDB1[playerid]);
- PlayerTextDrawShow(playerid, VDB2[playerid]);
- PlayerTextDrawShow(playerid, VDB3[playerid]);
- PlayerTextDrawShow(playerid, VDB4[playerid]);
- PlayerTextDrawShow(playerid, VDB5[playerid]);
- TextDrawShowForPlayer(playerid,VDB0);
- }
- SendClientMessage(playerid, -1, "You have toggle on your vehicle dashboard.");
- PlayerInfo[playerid][pVDB] = 1;
- }
- return 1;
- }*/
- CMD:allhunt(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- new id, gun1, gun2, gun3, gun4, gun5, hp, armor;
- if(sscanf(params, "uddddddd", id, gun1, gun2, gun3, gun4, gun5, hp, armor)) return SCM(playerid, -1, "USAGE: /allhunt [playerid] [gun1] [gun2] [gun3] [gun4] [gun5] [hp] [armor]");
- if(IsPlayerConnected(id))
- {
- if(AllHunt == 1)
- {
- SCM(playerid, -1, "There is a hunt active.");
- return 1;
- }
-
- new
- Float: fFloat;
- GetPlayerHealth(id, fFloat);
- SetPVarFloat(id, "alhealth", fFloat);
- GetPlayerArmour(id, fFloat);
- SetPVarFloat(id, "alarmour", fFloat);
- SetPVarInt(id, "alint", GetPlayerInterior(id));
-
- new Float:x, Float:y, Float:z;
- GetPlayerPos(id, x, y, z);
- SetPVarFloat(id, "alx", x);
- SetPVarFloat(id, "aly", y);
- SetPVarFloat(id, "alz", z);
-
- Hunted[id] = 1;
- AllHunt = 1;
-
- SetPlayerHealth(id, hp);
- SetPlayerArmourEx(id, armor);
- ResetPlayerWeapons(id);
- GivePlayerValidAdminWeapon(id, gun1, 99999);
- GivePlayerValidAdminWeapon(id, gun2, 99999);
- GivePlayerValidAdminWeapon(id, gun3, 99999);
- GivePlayerValidAdminWeapon(id, gun4, 99999);
- GivePlayerValidAdminWeapon(id, gun5, 99999);
-
- new string[128];
- format(string, sizeof(string), "The Hunt is on! Kill the hunted %s (pink map blip) to earn a prize!", GetPlayerNameEx(id));
- SendClientMessageToAll(COLOR_YELLOW, string);
- format(string, sizeof(string), "AdmCmd: %s has started a hunt on %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(id));
- ABroadCast(COLOR_LIGHTRED, string, 2);
- SetPlayerColor(id, COLOR_PINK);
- }
- else return SCM(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- else return SCM(playerid, COLOR_GRAD2, "You are not authorized to use this command!");
- return 1;
- }
- CMD:duel(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- new id, id2, weapon1, weapon2, hp, armor;
- if(sscanf(params, "uudddd", id, id2, weapon1, weapon2, hp, armor)) return SCM(playerid, -1, "USAGE: /duel [playerid] [playerid] [gun1] [gun2] [hp] [armor]");
- if(IsPlayerConnected(id) && IsPlayerConnected(id2))
- {
- new
- Float: fFloat;
- GetPlayerHealth(id, fFloat);
- SetPVarFloat(id, "dlhealth", fFloat);
- GetPlayerArmour(id, fFloat);
- SetPVarFloat(id, "dlarmour", fFloat);
- GetPlayerHealth(playerid, fFloat);
- SetPVarFloat(id2, "dlhealth", fFloat);
- GetPlayerArmour(playerid, fFloat);
- SetPVarFloat(id2, "dlarmour", fFloat);
- SetPVarInt(id, "dlint", GetPlayerInterior(id));
- SetPVarInt(id2, "dlint", GetPlayerInterior(id2));
- new Float:x, Float:y, Float:z;
- GetPlayerPos(id2, x, y, z);
- SetPVarFloat(id2, "dlx", x);
- SetPVarFloat(id2, "dly", y);
- SetPVarFloat(id2, "dlz", z);
- GetPlayerPos(id, x, y, z);
- SetPVarFloat(id, "dlx", x);
- SetPVarFloat(id, "dly", y);
- SetPVarFloat(id, "dlz", z);
- SetPlayerPos(id, 1419.30, -23.29, 1000.93);
- SetPlayerPos(id2, 1359.13, -23.31, 1000.92);
- SetPlayerInterior(id, 1);
- SetPlayerInterior(id2, 1);
- ResetPlayerWeapons(id);
- ResetPlayerWeapons(id2);
- GivePlayerValidAdminWeapon(id, weapon1, 99999);
- GivePlayerValidAdminWeapon(id, weapon2, 99999);
- GivePlayerValidAdminWeapon(id2, weapon1, 99999);
- GivePlayerValidAdminWeapon(id2, weapon2, 99999);
- Dueling[id] = id2;
- Dueling[id2]= id;
- SetPlayerHealth(id, hp);
- SetPlayerHealth(id2, hp);
- SetPlayerArmourEx(id, armor);
- SetPlayerArmourEx(id2, armor);
- new string[128];
- format(string, sizeof(string), "AdmCmd: %s has started a duel between %s and %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(id), GetPlayerNameEx(id2));
- ABroadCast(COLOR_LIGHTRED, string, 3);
- }
- else return SCM(playerid, -1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:fws(playerid, params[]) // By Skyrise
- {
- if(PlayerInfo[playerid][pAdmin] >= 7)
- {
- new giveplayerid, string[124];
- if(sscanf(params, "ud", giveplayerid))
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /fws [PlayerName/playerid]");
- return 1;
- }
- GivePlayerValidWeapon(giveplayerid, 24, 99999);
- GivePlayerValidWeapon(giveplayerid, 27, 99999);
- GivePlayerValidWeapon(giveplayerid, 34, 99999);
- GivePlayerValidWeapon(giveplayerid, 31, 99999);
- GivePlayerValidWeapon(giveplayerid, 29, 99999);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s gave a full weapon set to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- return 1;
- }
- CMD:setgangmod(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new giveplayerid, string[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /setgangmod [playerid]");
- if(PlayerInfo[giveplayerid][pAdmin] > 1)
- {
- if(PlayerInfo[giveplayerid][pGangMod] == 0)
- {
- PlayerInfo[giveplayerid][pGangMod] = 1;
- format(string,sizeof(string), "AdmCmd: %s has made %s a gang moderator.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string,sizeof(string), "%s has made you a gang moderator, this means you now have access to certain commands.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- PlayerInfo[giveplayerid][pGangMod] = 0;
- SendClientMessageEx(playerid, COLOR_WHITE, "You have taken their Gang Moderator");
- format(string,sizeof(string), "%s has taken your away your gang moderator.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "They are not an admin!");
- }
- }
- return 1;
- }
- CMD:sethelpermod(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new giveplayerid, string[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /sethelpermod [playerid]");
- if(PlayerInfo[giveplayerid][pAdmin] > 1)
- {
- if(PlayerInfo[giveplayerid][pHelperMod] == 0)
- {
- PlayerInfo[giveplayerid][pHelperMod] = 1;
- format(string,sizeof(string), "AdmCmd: %s has made %s a helper moderator.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string,sizeof(string), "%s has made you a helper Moderator, this means you now have access to certain commands.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- PlayerInfo[giveplayerid][pHelperMod] = 0;
- SendClientMessageEx(playerid, COLOR_WHITE, "You have taken their helper Moderator");
- format(string,sizeof(string), "%s has taken your away your helper Moderator.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "They are not an admin!");
- }
- }
- return 1;
- }
- CMD:setfactionmod(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new giveplayerid, string[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /setfactionmod [playerid]");
- if(PlayerInfo[giveplayerid][pAdmin] > 1)
- {
- if(PlayerInfo[giveplayerid][pFactionMod] == 0)
- {
- PlayerInfo[giveplayerid][pFactionMod] = 1;
- format(string,sizeof(string), "AdmCmd: %s has made %s a faction moderator.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string,sizeof(string), "%s has made you a faction moderator, this means you now have access to certain commands.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- PlayerInfo[giveplayerid][pFactionMod] = 0;
- format(string,sizeof(string), "You have revoked %s's faction moderator powers.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string,sizeof(string), "%s has taken away your faction moderator.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player must be a junior admin or above!");
- }
- }
- return 1;
- }
- CMD:setbanmod(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new giveplayerid, string[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /setbanmod [playerid]");
- if(PlayerInfo[giveplayerid][pAdmin] > 1)
- {
- if(PlayerInfo[giveplayerid][pBanAppealer] == 0)
- {
- PlayerInfo[giveplayerid][pBanAppealer] = 1;
- format(string,sizeof(string), "AdmCmd: %s has made %s a ban appealer.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string,sizeof(string), "%s has made you a ban appealer, this means you now have access to certain commands.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- else
- {
- PlayerInfo[giveplayerid][pBanAppealer] = 0;
- SendClientMessageEx(playerid, COLOR_WHITE, "You have taken their Ban Appealer");
- format(string,sizeof(string), "%s taken away your ban appealer.",GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "They are not an admin!");
- }
- }
- return 1;
- }
- CMD:cc(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- for(new x; x < 10; x++)
- {
- foreach(Player, i)
- {
- ClearChatbox(i);
- }
- }
- new string[128];
- format(string, sizeof(string), "AdmCmd: %s has successfully cleared the chat.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED, string, 1);
- }
- else SendClientMessageEx(playerid, COLOR_GREY, "You're not authorized to use this command.");
- return 1;
- }
- CMD:togvac(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] > 7)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You're not authorised to use this command.");
- }
- if(VirtualAntiCheat[playerid] >= 1)
- {
- VirtualAntiCheat[playerid] = 0;
- }
- else
- {
- VirtualAntiCheat[playerid] = 1;
- }
- return 1;
- }
- CMD:checkupass(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 7)
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /checkupass [player]");
- {
- format(string, sizeof(string), "%s's password: %s", GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pKey]);
- SendClientMessageEx(playerid, COLOR_YELLOW, string);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:setadmin(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new
- iAdminValue,
- iTargetID;
- if(sscanf(params, "ui", iTargetID, iAdminValue))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadmin [playerid/partofname] [level]");
- }
- else if(IsPlayerConnected(iTargetID))
- {
- if(AdminDuty[iTargetID] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That admin is currently on-duty. They must go off-duty in order for you to set their admin level.");
- return 1;
- }
- new szMessage[47 + (MAX_PLAYER_NAME * 2)];
- format(szMessage, sizeof(szMessage), "AdmCmd: %s has set %s to Level %d Admin.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
- ABroadCast(COLOR_LIGHTRED,szMessage, 1);
- PlayerInfo[iTargetID][pAdmin] = iAdminValue;
- format(szMessage, sizeof(szMessage), "You have been set to Level %d Admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
- SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);
- if(PlayerInfo[iTargetID][pHelper] >= 1) {
- PlayerInfo[iTargetID][pHelper] = 0;
- PlayerInfo[iTargetID][pAcceptReport] = 0;
- }
- if(iAdminValue == 0)
- {
- format(PlayerInfo[iTargetID][pAdminName], MAX_PLAYER_NAME, "0");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:pakyohowardmcadam(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 0)
- {
- new
- iAdminValue,
- iTargetID;
- if(sscanf(params, "ui", iTargetID, iAdminValue))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadmin [playerid/partofname] [level]");
- }
- else if(IsPlayerConnected(iTargetID))
- {
- if(AdminDuty[iTargetID] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That admin is currently on-duty. They must go off-duty in order for you to set their admin level.");
- return 1;
- }
- new szMessage[47 + (MAX_PLAYER_NAME * 2)];
- format(szMessage, sizeof(szMessage), "AdmCmd: %s has set %s to Level %d Admin.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), iAdminValue);
- ABroadCast(COLOR_LIGHTRED,szMessage, 1);
- PlayerInfo[iTargetID][pAdmin] = iAdminValue;
- format(szMessage, sizeof(szMessage), "You have been set to Level %d Admin by %s.", iAdminValue, GetPlayerNameEx(playerid));
- SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);
- if(PlayerInfo[iTargetID][pHelper] >= 1) {
- PlayerInfo[iTargetID][pHelper] = 0;
- PlayerInfo[iTargetID][pAcceptReport] = 0;
- }
- if(iAdminValue == 0)
- {
- format(PlayerInfo[iTargetID][pAdminName], MAX_PLAYER_NAME, "0");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:osetadmin(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 8) {
- new string[128], playername[MAX_PLAYER_NAME], rank;
- if(sscanf(params, "s[MAX_PLAYER_NAME]d", playername, rank)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /osetadmin [name] [level]");
- if(!doesAccountExist(playername))
- return SendClientMessage(playerid, COLOR_WHITE, "That account does not exist!");
- OnPlayerOfflineLogin(playername);
- if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 1) {
- PlayerInfo[MAX_PLAYERS][pAdmin] = rank;
- format(string, sizeof(string), "You have given %s level %d admin.", playername, rank);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- OnPlayerOfflineSave(playername);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That player is not an admin");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command.");
- return 1;
- }
- CMD:setadminname(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- /*if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }*/
- new giveplayerid, name[32];
- if(sscanf(params, "us[32]", giveplayerid, name))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadminname [playerid/partofname] [name]");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pAdmin] < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The player is not an admin.");
- return 1;
- }
- if(AdminDuty[giveplayerid] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That admin is currently on-duty. They must go off-duty in order for you to set their admin name.");
- return 1;
- }
- new length = strlen(name);
- if(length < 3 || length > 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The name can't less than 3 characters or more than 20 characters.");
- return 1;
- }
- if(strfind(name, "_", true) != -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The admin name must be one name. There can't be an underscore in the name.");
- return 1;
- }
- if(strcmp(name, "Howard", true) == 0 && PlayerInfo[playerid][pAdmin] < 6) {
- SendClientMessage(playerid, COLOR_WHITE, "stop ! im howard ! you're not howard !");
- return 1;
- }
- new string[128];
- format(string, sizeof(string), "AdmCmd: %s has set %s's admin name to '%s'.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), name);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- format(PlayerInfo[giveplayerid][pAdminName], 32, name);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:adminduty(playerid, params[]) {
- return cmd_aduty(playerid, params);
- }
- CMD:reportsold(playerid, params[]) {
- return cmd_reports(playerid, params);
- }
- CMD:aduty(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2) {
- if(strlen(PlayerInfo[playerid][pAdminName]) > 2 && strlen(PlayerInfo[playerid][pAdminName]) < 20) {
- new string[128];
- if(AdminDuty[playerid] != 0) {
- if(!doesAccountExist(PlayerInfo[playerid][pAdminName])) {
- if(Spectating[playerid] > 0 && PlayerInfo[playerid][pAdmin] >= 2) {
- GettingSpectated[Spectate[playerid]] = 999;
- Spectating[playerid] = 0;
- Spectate[playerid] = 999;
- SetPVarInt(playerid, "SpecOff", 1);
- TogglePlayerSpectating(playerid, false);
- SetCameraBehindPlayer(playerid);
- SetPlayerColor(playerid,COLOR_GREEN);
- }
- new pState = GetPlayerState(playerid);
- if(pState == PLAYER_STATE_WASTED) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this while wasted.");
- return 1;
- }
- DeletePVar(playerid, "MedicBill");
- DeletePVar(playerid, "HospitalTimer");
- DeletePVar(playerid, "Hospital");
- DeletePVar(playerid, "Injured");
- DeletePVar(playerid, "EMSAttempt");
- DeletePVar(playerid, "MedicCall");
- TogglePlayerControllable(playerid, 1);
- ClearAnimations(playerid);
- PlayerCuffed[playerid] = 0;
- PlayerCuffedTime[playerid] = 0;
- DeletePVar(playerid, "PlayerCuffed");
- HouseOffer[playerid] = 999;
- House[playerid] = 0;
- HousePrice[playerid] = 0;
- SexOffer[playerid] = 999;
- SexPrice[playerid] = 0;
- InviteOffer[playerid]=999;
- InviteFaction[playerid]=0;
- InviteFamily[playerid]=255;
- PotOffer[playerid] = 999;
- CrackOffer[playerid] = 999;
- PotPrice[playerid]=0;
- CrackPrice[playerid]=0;
- PotGram[playerid]=0;
- CrackGram[playerid]=0;
- JailPrice[playerid]=0;
- DefendOffer[playerid] = 999;
- DefendPrice[playerid] = 0;
- GuardOffer[playerid] = 999;
- GuardPrice[playerid]=0;
- GunOffer[playerid] = 999;
- GunId[playerid] = 0;
- GunMats[playerid] = 0;
- MatsOffer[playerid] = 999;
- MatsPrice[playerid] = 0;
- MatsAmount[playerid] = 0;
- CraftOffer[playerid] = 999;
- CraftId[playerid]=0;
- CraftMats[playerid]=0;
- VehicleOffer[playerid] = 999;
- VehiclePrice[playerid] = 0;
- VehicleId[playerid] = -1;
- RepairCar[playerid]=0;
- OnDuty[playerid]=0;
- TicketOffer[playerid] = 999;
- TicketMoney[playerid] = 0;
- arr_Towing[playerid] = INVALID_VEHICLE_ID;
- GotHit[playerid]=0;
- GoChase[playerid]=999;
- GetChased[playerid]=999;
- DivorceOffer[playerid] = 999;
- MarryWitness[playerid] = 999;
- MarryWitnessOffer[playerid] = 999;
- MarriageCeremoney[playerid] = 0;
- ProposeOffer[playerid] = 999;
- ProposedTo[playerid] = 999;
- GotProposedBy[playerid] = 999;
- fSweeperPos[playerid][0] = 0;
- fSweeperPos[playerid][1] = 0;
- fSweeperPos[playerid][2] = 0;
- PlayerSweeping[playerid] = 0;
- SweeperTime[playerid] = 0;
- SweeperDistance[playerid] = 0;
- SetPVarInt(playerid, "washereforpaycheck", WasHereForPaycheck[playerid]);
- SetPVarInt(playerid, "signedpaycheck", SignedPaycheck[playerid]);
- SetPVarInt(playerid, "missedpaychecks", MissedPaychecks[playerid]);
- SetPVarInt(playerid, "paycheckcode", PayCheckCode[playerid]);
- SetPVarInt(playerid, "payready", PlayerInfo[playerid][pPayReady]);
- SetPVarInt(playerid, "paycheck", PlayerInfo[playerid][pPayCheck]);
- WasHereForPaycheck[playerid] = 0;
- SignedPaycheck[playerid] = 0;
- MissedPaychecks[playerid] = 0;
- PayCheckCode[playerid] = 0;
- DeletePVar(playerid, "LAPCReceived");
- PhoneOnline[playerid] = 0;
- DeletePVar(playerid, "AdminUndercover");
- new username[MAX_PLAYER_NAME];
- GetPVarString(playerid, "TempNameName", username, sizeof(username));
- SetPVarInt(playerid, "TempName", 0);
- SetPlayerName(playerid, username);
- AdminDuty[playerid] = 0;
- if(PlayerInfo[playerid][pNoDamage])
- {
- PlayerInfo[playerid][pNoDamage] = 0;
- SendClientMessage(playerid, COLOR_GREY, "Your god mode was turned off.");
- }
- format(string, sizeof(string), "%s (ID %d - %s) is now off-duty as a Level %d Admin.", PlayerInfo[playerid][pAdminName], playerid, GetPlayerNameEx(playerid), PlayerInfo[playerid][pAdmin]);
- ABroadCast(COLOR_WHITE, string, 1);
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You're now off-duty as admin, but still have access to your Level 1 Admin commands.");
- }
- if(PlayerInfo[playerid][pAdmin] > 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You're now off-duty as admin, and only have access to /admins /check /jail /ban /sban /kick /skick /showflags /reports /nrn");
- }
- if(PlayerInfo[playerid][pAdmin] == 6)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You're now off-duty as admin, but still have access to all of your commands since you're a Level 6 Admin.");
- }
- SendClientMessage(playerid, COLOR_REALRED, "Please remember to turn off any hacks you may have (press F12 to disable s0beit).");
- //SetPVarInt(playerid, "F12Timer", SetTimerEx("F12Warning", 1000, true, "d", playerid));
- OnPlayerLogin(playerid, AdminRelogPassword[playerid]);
- SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
- SetPlayerArmourEx(playerid, PlayerInfo[playerid][pArmor]);
- // Return paycheck stats
- WasHereForPaycheck[playerid] = GetPVarInt(playerid, "washereforpaycheck");
- SignedPaycheck[playerid] = GetPVarInt(playerid, "signedpaycheck");
- MissedPaychecks[playerid] = GetPVarInt(playerid, "missedpaychecks");
- PayCheckCode[playerid] = GetPVarInt(playerid, "paycheckcode");
- PlayerInfo[playerid][pPayReady] = GetPVarInt(playerid, "payready");
- PlayerInfo[playerid][pPayCheck] = GetPVarInt(playerid, "paycheck");
- // Clear these vars from memory, since we don't need 'em any more
- DeletePVar(playerid, "washereforpaycheck");
- DeletePVar(playerid, "signedpaycheck");
- DeletePVar(playerid, "missedpaychecks");
- DeletePVar(playerid, "paycheckcode");
- DeletePVar(playerid, "payready");
- DeletePVar(playerid, "paycheck");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "This name is already registered.");
- }
- }
- else
- {
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- PhoneOnline[playerid] = 1;
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][ReportFrom] == playerid)
- {
- Reports[i][ReportFrom] = 999;
- Reports[i][BeingUsed] = 0;
- Reports[i][TimeToExpire] = 0;
- }
- }
- if(GotHit[playerid] > 0)
- {
- if(GetChased[playerid] < 999)
- {
- if(IsPlayerConnected(GetChased[playerid]))
- {
- SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Your hit has left the server.");
- GoChase[GetChased[playerid]] = 999;
- }
- }
- }
- if(GoChase[playerid] < 999)
- {
- GetChased[GoChase[playerid]] = 999;
- GotHit[GoChase[playerid]] = 999;
- }
- SetPVarInt(playerid, "TempName", 1);
- new username[MAX_PLAYER_NAME];
- GetPlayerName(playerid, username, sizeof(username));
- SetPVarString(playerid, "TempNameName", username);
- AdminDuty[playerid] = 1;
- format(string, sizeof(string), "%s (ID %d - %s) is now on-duty as a Level %d Admin.",PlayerInfo[playerid][pAdminName], playerid, GetPlayerNameEx(playerid), PlayerInfo[playerid][pAdmin]);
- ABroadCast(COLOR_WHITE, string, 1);
- SendClientMessage(playerid, COLOR_YELLOW, "You're now on-duty as admin and have access to all your commands, see /ah.");
- SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]);
- }
- }
- else SendClientMessage(playerid, COLOR_WHITE, "You need an admin name to go on-duty. Contact a Level 5+ Admin to have your admin name set.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:forcesave(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SaveHouses();
- SendClientMessage(playerid, COLOR_YELLOW, "All houses updated sucessfully.");
- foreach(Player, i)
- {
- if(GetPVarInt(i, "TempName") != 1 && gPlayerLogged[i])
- {
- PlayerInfo[i][pInt] = GetPlayerInterior(i);
-
- if(GetPVarType(i, "tabbedVW") != 0) {
- PlayerInfo[i][pVW] = GetPVarInt(i, "tabbedVW");
- } else PlayerInfo[i][pVW] = GetPlayerVirtualWorld(i);
-
- GetPlayerIp(i, PlayerInfo[i][pIP], 32);
- GetPlayerPos(i, PlayerInfo[i][pPos_x], PlayerInfo[i][pPos_y], PlayerInfo[i][pPos_z]);
- GetPlayerFacingAngle(i, PlayerInfo[i][pPos_r]);
- OnPlayerStatsUpdate(i);
- }
- }
- SendClientMessage(playerid, COLOR_YELLOW, "All player accounts updated successfully.");
- SaveFamilies();
- SaveFamiliesHQ();
- SendClientMessage(playerid, COLOR_YELLOW, "All families updated successfully.");
- LoadPoints();
- SendClientMessage(playerid, COLOR_YELLOW, "All points updated successfully.");
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:givemoney(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givemoney [playerid/partofname] [money]");
- if(IsPlayerConnected(giveplayerid))
- {
- GivePlayerCash(giveplayerid, money);
- format(string, sizeof(string), "You have given %s $%d!",GetPlayerNameEx(giveplayerid),money);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has given %s $%d (via /givemoney)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),money);
- Log("logs/adminmoney.log", string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:setmoney(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, money;
- if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setmoney [playerid/partofname] [money]");
- if(IsPlayerConnected(giveplayerid))
- {
- ResetPlayerCash(giveplayerid);
- GivePlayerCash(giveplayerid, money);
- format(string, sizeof(string), "You have set %s's money to $%d!",GetPlayerNameEx(giveplayerid),money);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has set %s's money to $%d (/setmoney)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), money);
- Log("logs/adminmoney.log", string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:revive(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /revive [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(GetPVarInt(giveplayerid, "Injured") == 1)
- {
- format(string, sizeof(string), " You have revived %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(giveplayerid, COLOR_WHITE, "You have been revived by an Admin.");
- KillEMSQueue(giveplayerid);
- ClearAnimations(giveplayerid);
- SetPlayerHealth(giveplayerid, 100);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is not injured!");
- }
- } else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] < PlayerInfo[playerid][pAdmin]) {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was kicked by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/kick.log", string);
- format(string, sizeof(string), "AdmCmd: %s was kicked by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- Kick(giveplayerid);
- }
- return 1;
- } else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:skick(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skick [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] < PlayerInfo[playerid][pAdmin]) {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was silent kicked by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/kick.log", string);
- format(string, sizeof(string), "AdmCmd: %s was silent kicked by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- ABroadCast(COLOR_LIGHTRED,string,1);
- Kick(giveplayerid);
- }
- return 1;
- } else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ban [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- if(AdminDuty[playerid] == 1)
- {
- new username[MAX_PLAYER_NAME];
- GetPVarString(playerid, "TempNameName", username, sizeof(username));
- SetPVarInt(playerid, "TempName", 0);
- SetPlayerName(playerid, username);
- }
- format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /ban a higher admin.", PlayerInfo[playerid][pAdminName]);
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[playerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- return 1;
- }
- else
- {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- if(AdminDuty[giveplayerid] == 1)
- {
- new username[MAX_PLAYER_NAME];
- GetPVarString(giveplayerid, "TempNameName", username, sizeof(username));
- SetPVarInt(giveplayerid, "TempName", 0);
- SetPlayerName(giveplayerid, username);
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], GetPlayerNameEx(playerid), reason);
- }
- else
- {
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- }
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(giveplayerid);
- return 1;
- }
- } else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- return 1;
- }
- CMD:air(playerid, params[]) {
- return cmd_nr(playerid, params);
- }
- CMD:startnews(playerid, params[]) {
- if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) {
- if(PlayerInfo[playerid][pRank] >= 4) {
- if(shutdown == 1) {
- shutdown = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have started the news broadcasting station.");
- } else SendClientMessage(playerid, COLOR_GREY, "The news broadcasting station is already started.");
- }
- }
- return 1;
- }
- CMD:stopnews(playerid, params[]) {
- if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) {
- if(PlayerInfo[playerid][pRank] >= 4) {
- if(shutdown == 0) {
- shutdown = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You have shut the news broadcasting station down.");
- } else SendClientMessage(playerid, COLOR_GREY, "The news broadcasting station is already off.");
- }
- }
- return 1;
- }
- CMD:nr(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) {
- new string[128];
-
- if(shutdown == 1)
- return SendClientMessage(playerid, COLOR_WHITE, "The news system is currently shut down.");
-
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /nr [text]");
- new newcar = GetPlayerVehicleID(playerid);
- if(IGMAVeh(newcar))
- {
- if(PlayerInfo[playerid][pRank] < 1)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You must be at least rank 1.");
- }
- else
- {
- format(string, sizeof(string), "NR %s: %s", GetPlayerNameEx(playerid), params);
- ICNews(COLOR_LIGHTGREEN,string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not in a news van or a news chopper.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You are not a News Reporter!");
- }
- return 1;
- }
- CMD:liveban(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 9 && PlayerInfo[playerid][pRank] >= 1 || PlayerInfo[playerid][pLeader] == 9)
- {
- new giveplayerid,
- string[128];
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /liveban [player]");
- if(PlayerInfo[giveplayerid][pLiveBanned] == 0)
- {
- PlayerInfo[giveplayerid][pLiveBanned] = 1;
- format(string, sizeof(string), "%s has interview banned %s", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(9, RADIO, string);
- return 1;
- }
- else
- {
- PlayerInfo[giveplayerid][pLiveBanned] = 0;
- format(string, sizeof(string), "%s has unbanned %s from interviews", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(9, RADIO, string);
- return 1;
- }
- }
- return 1;
- }
- CMD:live(playerid, params[]) {
- if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 4)
- return SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) {
- if(shutdown == 1) return SendClientMessage(playerid, COLOR_WHITE, "The news system is currently shut down." );
- if(TalkingLive[playerid] != INVALID_PLAYER_ID) {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Live conversation ended.");
- SendClientMessage(TalkingLive[playerid], COLOR_LIGHTBLUE, "* Live conversation ended.");
- TogglePlayerControllable(playerid, 1);
- TogglePlayerControllable(TalkingLive[playerid], 1);
- TalkingLive[TalkingLive[playerid]] = INVALID_PLAYER_ID;
- TalkingLive[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /live [player]");
- if (IsPlayerConnected(giveplayerid)) {
- if (ProxDetectorS(5.0, playerid, giveplayerid)) {
- if(PlayerInfo[giveplayerid][pLiveBanned] == 1) return SendClientMessage(playerid, COLOR_GREY, "That player is interview banned.");
- if(PlayerCuffed[giveplayerid] >= 1 || PlayerCuffed[playerid] >= 1) {
- SendClientMessage(playerid, COLOR_GRAD2, "You are unable to do this right now.");
- } else {
- if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot talk live with yourself!"); return 1; }
- format(string, sizeof(string), "* You offered %s to have a live conversation.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s offered you to have a live conversation, type /accept live to accept.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- LiveOffer[giveplayerid] = playerid;
- }
- } else return SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
- } else return SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- } else SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter!");
- return 1;
- }
- CMD:newsdiv(playerid, params[])
- {
- if(PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pFaction] == 9)
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /newsdiv [player] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 0 (None), 1 (Security)");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pFaction] != 9) return 1;
- switch(division)
- {
- case 0:
- {
- PlayerInfo[giveplayerid][pDivision] = 0;
- format(string, sizeof(string), "You haved been kicked out of your current division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s from their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- case 1:
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You are now in the security division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the security division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- else return SendClientMessage(playerid, COLOR_GREY, " That player isn't connected" );
- }
- else return SendClientMessage(playerid, COLOR_GREY, " You can't use this command." );
- return 1;
- }
- CMD:govdiv(playerid, params[])
- {
- if(PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- new string[128], giveplayerid, division;
- if(sscanf(params, "ud", giveplayerid, division))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /govdiv [playerid/partofname] [division]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 2 (Executive), 3 (Judicial), 4 (Legislative), 5 (NSA)");
- return 1;
- }
- if(PlayerInfo[playerid][pRank] >= 4)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pFaction] == 5)
- {
- if(division == 2)
- {
- PlayerInfo[giveplayerid][pDivision] = 2;
- format(string, sizeof(string), "You're now in the Executive division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the Executive division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 3)
- {
- PlayerInfo[giveplayerid][pDivision] = 3;
- format(string, sizeof(string), "You're now in the Judicial division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s into the Judicial division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 4)
- {
- PlayerInfo[giveplayerid][pDivision] = 4;
- format(string, sizeof(string), "You're now in the Legislative division, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the Legislative division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 5)
- {
- PlayerInfo[giveplayerid][pDivision] = 5;
- format(string, sizeof(string), "You're now in the National Security Agency, invited by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have invited %s to join the National Security Agency division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else if(division == 1)
- {
- PlayerInfo[giveplayerid][pDivision] = 1;
- format(string, sizeof(string), "You have been kicked from your division by %s.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "You have kicked %s out of their division.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command - only R4+ can do this.");
- }
- }
- return 1;
- }
- CMD:govl(playerid, params[]) {
- if(PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pLeader] == 5)
- {
- if(IsPlayerInRangeOfPoint(playerid,5.0,-1221.620849, -155.842590, 4891.833007))
- {
- ShowPlayerDialogEx(playerid, GOVLOCKERMENU, DIALOG_STYLE_LIST, "Government lockers", "Uniform\nEquipment", "OK", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in range of your Government lockers.");
- }
- }
- return 1;
- }
- CMD:sban(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- new string[128], giveplayerid, reason[64];
- if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sban [playerid/partofname] [reason]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- if(AdminDuty[playerid] == 1)
- {
- new username[MAX_PLAYER_NAME];
- GetPVarString(playerid, "TempNameName", username, sizeof(username));
- SetPVarInt(playerid, "TempName", 0);
- SetPlayerName(playerid, username);
- }
- format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /sban a higher admin.", PlayerInfo[playerid][pAdminName]);
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[playerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- return 1;
- }
- else
- {
- new playerip[32];
- GetPlayerIp(giveplayerid, playerip, sizeof(playerip));
- if(AdminDuty[giveplayerid] == 1)
- {
- new username[MAX_PLAYER_NAME];
- GetPVarString(giveplayerid, "TempNameName", username, sizeof(username));
- SetPVarInt(giveplayerid, "TempName", 0);
- SetPlayerName(giveplayerid, username);
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was silent banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was silent banned by %s, reason: %s", PlayerInfo[giveplayerid][pAdminName], GetPlayerNameEx(playerid), reason);
- }
- else
- {
- format(string, sizeof(string), "AdmCmd: %s(IP:%s) was silent banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason);
- Log("logs/ban.log", string);
- format(string, sizeof(string), "AdmCmd: %s was silent banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);
- }
- ABroadCast(COLOR_LIGHTRED,string,1);
- PlayerInfo[giveplayerid][pBanned] = 1;
- new ip[32];
- GetPlayerIp(giveplayerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(giveplayerid);
- return 1;
- }
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:goto(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /goto [location]");
- SendClientMessage(playerid, COLOR_GRAD1, "Locations 1: LS, SF, LV, stadium1, stadium2, stadium3, stadium4");
- SendClientMessage(playerid, COLOR_GRAD2, "Locations 2: int1, mall, bank, allsaints, countygen, gym, fbi, rc");
- SendClientMessage(playerid, COLOR_GRAD3, "Locations 3: prison, mark, trucker, maximusclub");
- return 1;
- }
- if(strcmp(params,"ls",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Los Santos.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"sf",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -1417.0,-295.8,14.1);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to San Fierro.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"custom",true) == 0) {
- new
- iInterior,
- Float: fPos[3];
- strdel(params, 0, 6); // remove 'custom' and space after
- sscanf(params, "fffi", fPos[0], fPos[1], fPos[2], iInterior);
- SetPlayerPos(playerid, fPos[0], fPos[1], fPos[2]);
- SetPlayerInterior(playerid, iInterior);
- }
- else if(strcmp(params,"trucker",true) == 0) {
- if(GetPlayerState(playerid) == 2) {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2271.3115, -2662.9541, 13.6690);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else {
- SetPlayerPos(playerid, 2182.3650, -2662.9866, 17.8828);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the Trucker Job area.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"lv",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1699.2,1435.1, 10.7);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Las Venturas.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"bank",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1487.91, -1030.60, 23.66);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1487.91, -1030.60, 23.66);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the Bank of Los Santos.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"allsaints",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1192.78, -1292.68, 13.38);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1192.78, -1292.68, 13.38);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to All Saints General Hospital.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"countygen",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2000.05, -1409.36, 16.99);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 2000.05, -1409.36, 16.99);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to County General Hospital.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"gym",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2227.60, -1674.89, 14.62);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 2227.60, -1674.89, 14.62);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Ganton Gym.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"fbi",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 344.77,-1526.08,33.28);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 344.77,-1526.08,33.28);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the FBI.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"rc",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1253.70, 343.73, 19.41);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1253.70, 343.73, 19.41);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Red County.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"prison",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 112.67, 1917.55, 18.72);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 112.67, 1917.55, 18.72);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Fort DeMorgan Prison.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"stadium1",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, -1424.93, -664.59, 1059.86);
- LinkVehicleToInterior(tmpcar, 4);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -1424.93, -664.59, 1059.86);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Stadium 1.");
- SetPlayerInterior(playerid,4);
- PlayerInfo[playerid][pInt] = 4;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"stadium2",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, -1395.96, -208.20, 1051.28);
- LinkVehicleToInterior(tmpcar, 7);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -1395.96, -208.20, 1051.28);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Stadium 2.");
- SetPlayerInterior(playerid,7);
- PlayerInfo[playerid][pInt] = 7;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"stadium3",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, -1410.72, 1591.16, 1052.53);
- LinkVehicleToInterior(tmpcar, 14);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -1410.72, 1591.16, 1052.53);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Stadium 3.");
- SetPlayerInterior(playerid,14);
- PlayerInfo[playerid][pInt] = 14;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"stadium4",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, -1394.20, 987.62, 1023.96);
- LinkVehicleToInterior(tmpcar, 15);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -1394.20, 987.62, 1023.96);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Stadium 4.");
- SetPlayerInterior(playerid,15);
- PlayerInfo[playerid][pInt] = 15;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"int1",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1416.107000,0.268620,1000.926000);
- LinkVehicleToInterior(tmpcar, 1);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Interior 1.");
- SetPlayerInterior(playerid,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"mark",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- LinkVehicleToInterior(tmpcar, TeleportDestInt[playerid]);
- }
- else
- {
- SetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- }
- SetPlayerInterior(playerid,TeleportDestInt[playerid]);
- PlayerInfo[playerid][pInt] = TeleportDestInt[playerid];
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to your marker.");
- }
- else if(strcmp(params,"mark2",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, TeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
- LinkVehicleToInterior(tmpcar, TeleportDestInt2[playerid]);
- }
- else
- {
- SetPlayerPos(playerid, TeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
- }
- SetPlayerInterior(playerid,TeleportDestInt2[playerid]);
- PlayerInfo[playerid][pInt] = TeleportDestInt2[playerid];
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to your second marker.");
- }
- else if(strcmp(params,"mall",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1133.71,-1464.52,15.77);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1133.71,-1464.52,15.77);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the Mall.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- else if(strcmp(params,"maximusclub",true) == 0)
- {
-
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1912.252441,-1681.022338,13.377601);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0;TelePos[playerid][0] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, 1912.252441,-1681.022338,13.377601);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the Maximus Club.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- }
- if(strcmp(params,"blackmarketint",true) == 0)
- {
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
- LinkVehicleToInterior(tmpcar, 0);
- SetVehicleVirtualWorld(tmpcar, 0);
- TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid, -4107.4507, 907.0430, 3.1007);
- }
- SendClientMessage(playerid, COLOR_WHITE, "You have teleported to Black Market.");
- SetPlayerInterior(playerid,187187);
- PlayerInfo[playerid][pInt] = 187187;
- SetPlayerVirtualWorld(playerid, 666187);
- PlayerInfo[playerid][pVW] = 666187;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:mark(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
- TeleportDestInt[playerid] = GetPlayerInterior(playerid);
- SendClientMessage(playerid, COLOR_GRAD1, "Teleporter destination set!");
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:mark2(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- GetPlayerPos(playerid, TeleportDest2[playerid][0],TeleportDest2[playerid][1],TeleportDest2[playerid][2]);
- TeleportDestInt2[playerid] = GetPlayerInterior(playerid);
- SendClientMessage(playerid, COLOR_GRAD1, "Teleporter destination set!");
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:pbscore(playerid, params[]) {
- if(GetPVarInt(playerid, "PBM") > 0) {
- new string[128], score;
- new kills = GetPVarInt(playerid, "PBMK");
- new deaths = GetPVarInt(playerid, "PBMD");
- new fkills = kills / 5;
- new fdeaths = deaths / 5;
- score = kills - deaths;
- format(string, sizeof(string), "Kills: %d | Deaths: %d | Score: %d", fkills, fdeaths, score);
- SCM(playerid, COLOR_NEWS, "Paintball Score:");
- SCM(playerid, -1, string);
- }
- else return SCM(playerid, COLOR_WHITE, "You are not in paintball.");
- return 1;
- }
- CMD:exitpaintball(playerid, params[]) {
- if(GetPVarInt(playerid, "PBM") > 0) {
- if(GetPVarInt(playerid, "OPD") == 1)
- return SendClientMessage(playerid, COLOR_GREY, "You're dead, please wait a few seconds and then try quit again.");
- SetPlayerPos(playerid, 1941.301635,-1695.501098,-26.661914);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++){
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- new
- szMessage[64];
- format(szMessage, sizeof(szMessage), "%s has left the paintball game.", GetPlayerNameEx(playerid));
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") > 0 && GetPVarInt(i, "PBM") == GetPVarInt(playerid, "PBM") && i != playerid)
- SendClientMessage(i, COLOR_RED, szMessage);
- }
- DeletePVar(playerid, "PBM");
- DeletePVar(playerid, "PBMK");
- DeletePVar(playerid, "PBMD");
- DeletePVar(playerid, "IsFrozen");
- if(GetPVarType(playerid, "PBMT") != 0) {
- SetPlayerToTeamColor(playerid);
- DeletePVar(playerid, "PBMT");
- }
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "pbhealth"));
- SetPlayerArmourEx(playerid, GetPVarFloat(playerid, "pbarmour"));
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pAGuns][0] = 0;
- PlayerInfo[playerid][pAGuns][1] = 0;
- PlayerInfo[playerid][pAGuns][2] = 0;
- PlayerInfo[playerid][pAGuns][ 3 ] = 0;
- PlayerInfo[playerid][pAGuns][4] = 0;
- PlayerInfo[playerid][pAGuns][5] = 0;
- PlayerInfo[playerid][pAGuns][6] = 0;
- PlayerInfo[playerid][pAGuns][7] = 0;
- PlayerInfo[playerid][pAGuns][8] = 0;
- PlayerInfo[playerid][pAGuns][9] = 0;
- PlayerInfo[playerid][pAGuns][10] = 0;
- PlayerInfo[playerid][pAGuns][11] = 0;
- SetPlayerWeapons(playerid);
- DeletePVar(playerid, "pbhealth");
- DeletePVar(playerid, "pbarmour");
- SendClientMessage(playerid, COLOR_WHITE, "You have quit the paintball game.");
- }
- return 1;
- }
- CMD:paintball(playerid, params[]) {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- return SendClientMessage(playerid, COLOR_GREY, "You can't play paintball yet. Play 2 full hours first.");
- if(AdminDuty[playerid] != 0)
- return SendClientMessage(playerid, COLOR_GREY, "You can't play while on admin duty.");
- if(PlayerInfo[playerid][pWantedLevel] >= 1)
- return SendClientMessage(playerid, COLOR_GREY, "You can't join paintball while you're wanted.");
- if(IsPlayerInRangeOfPoint(playerid, 5, 1941.132446,-1699.301757,-26.661914)) {
- new
- iPlayer = INVALID_PLAYER_ID;
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") > 0) {
- iPlayer = i; // always going to get the highest ID because Y_Less never added a 'break;' for foreach ~_~ ...or didn't document it
- }
- }
- new
- Float: fFloat;
- GetPlayerHealth(playerid, fFloat);
- SetPVarFloat(playerid, "pbhealth", fFloat);
- GetPlayerArmour(playerid, fFloat);
- SetPVarFloat(playerid, "pbarmour", fFloat);
- if(iPlayer == INVALID_PLAYER_ID)
- ShowPlayerDialogEx(playerid, 3652, DIALOG_STYLE_LIST, "Paintball - Game type", "DM\nTDM", "Go", "Cancel");
- else
- ShowPlayerDialogEx(playerid, 3652, DIALOG_STYLE_LIST, "Paintball - Game type", "DM\nTDM\nRandom (has players in)", "Go", "Cancel");
- } else
- SendClientMessage(playerid, COLOR_GREY, "You're not in range of the paintball venue.");
- return 1;
- }
- CMD:listguns(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /listguns [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- new weapons[13][2], weaponname[50];
- if(GetPVarInt(giveplayerid, "EventToken") != 0 || GetPVarInt(giveplayerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is at an event/paintball so the weapons may appear as non-server sided.");
- }
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- format(string, sizeof(string), "Weapons on %s:", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- for (new i = 0; i < 13; i++)
- {
- GetPlayerWeaponData(giveplayerid, i, weapons[i][0], weapons[i][1]);
- if(weapons[i][0] > 0)
- {
- if(PlayerInfo[giveplayerid][pGuns][i] == weapons[i][0])
- {
- GetWeaponName(weapons[i][0], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "%s (%d).", weaponname, weapons[i][0]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- else
- {
- GetWeaponName(weapons[i][0], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "%s (%d) (non server-side).", weaponname, weapons[i][0]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }
- }
- }
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:hhc(playerid, params[])
- {
- return cmd_hhcheck(playerid, params);
- }
- CMD:hhcheck(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hhcheck [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(HHcheckFloats[giveplayerid][0] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is currently being checked for health hacks!");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- if(playerTabbed[giveplayerid] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "That player is currently alt-tabbed!");
- return 1;
- }
- if(HHcheckUsed != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The health hack check is being used by another admin, please try again in a moment!");
- return 1;
- }
- HHcheckUsed = 1;
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has initiated a health hack check on %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string, sizeof(string), "Checking %s for health hacks, please wait....", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- GetPlayerHealth(giveplayerid, HHcheckFloats[giveplayerid][0]);
- GetPlayerArmour(giveplayerid, HHcheckFloats[giveplayerid][1]);
- GetPlayerPos(giveplayerid, HHcheckFloats[giveplayerid][2], HHcheckFloats[giveplayerid][3], HHcheckFloats[giveplayerid][4]);
- GetPlayerFacingAngle(giveplayerid, HHcheckFloats[giveplayerid][5]);
- HHcheckVW[giveplayerid] = GetPlayerVirtualWorld(giveplayerid);
- HHcheckInt[giveplayerid] = GetPlayerInterior(giveplayerid);
- DeletePVar(giveplayerid, "IsFrozen");
- TogglePlayerControllable(giveplayerid, 1);
- SetPlayerCameraPos(giveplayerid, 785.1896,1692.6887,5.2813);
- SetPlayerCameraLookAt(giveplayerid, 785.1896,1692.6887,0);
- SetPlayerVirtualWorld(giveplayerid, 0);
- SetPlayerInterior(giveplayerid, 1);
- SetPlayerHealth(giveplayerid, 100);
- SetPlayerArmourEx(giveplayerid, 0);
- SetPlayerPos(giveplayerid, -1400.994873, 106.899650, 1032.273437);
- SetPlayerFacingAngle(giveplayerid, 90.66);
- CreateExplosion(-1400.994873, 106.899650 , 1032.273437, 8, 20);
- SetTimerEx("HealthHackCheck", 1250, 0, "dd", playerid, giveplayerid);
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- forward HealthHackCheck(playerid, giveplayerid);
- public HealthHackCheck(playerid, giveplayerid)
- {
- new string[128];
- if(giveplayerid == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "The health hack check result could not be made, the player logged off.");
- HHcheckUsed = 0;
- return 1;
- }
- if(playerTabbed[giveplayerid] != 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "The health hack check result could not be made, the player alt-tabbed.");
- SetPlayerHealth(giveplayerid, HHcheckFloats[giveplayerid][0]);
- SetPlayerArmourEx(giveplayerid, HHcheckFloats[giveplayerid][1]);
- SetPlayerPos(giveplayerid, HHcheckFloats[giveplayerid][2], HHcheckFloats[giveplayerid][3], HHcheckFloats[giveplayerid][4]);
- SetPlayerFacingAngle(giveplayerid, HHcheckFloats[giveplayerid][5]);
- SetCameraBehindPlayer(giveplayerid);
- SetPlayerVirtualWorld(giveplayerid, HHcheckVW[giveplayerid]);
- SetPlayerInterior(giveplayerid, HHcheckInt[giveplayerid]);
- for(new i = 0; i < 6; i++)
- {
- HHcheckFloats[giveplayerid][i] = 0;
- }
- HHcheckVW[giveplayerid] = 0;
- HHcheckInt[giveplayerid] = 0;
- HHcheckUsed = 0;
- return 1;
- }
- if(!IsPlayerInRangeOfPoint(giveplayerid,20,-1400.994873, 106.899650, 1032.273437))
- {
- SendClientMessage(playerid, COLOR_WHITE, "The health hack check result could not be made, the player was probably desynced/lagging.");
- SetPlayerHealth(giveplayerid, HHcheckFloats[giveplayerid][0]);
- SetPlayerArmourEx(giveplayerid, HHcheckFloats[giveplayerid][1]);
- SetPlayerPos(giveplayerid, HHcheckFloats[giveplayerid][2], HHcheckFloats[giveplayerid][3], HHcheckFloats[giveplayerid][4]);
- SetPlayerFacingAngle(giveplayerid, HHcheckFloats[giveplayerid][5]);
- SetCameraBehindPlayer(giveplayerid);
- SetPlayerVirtualWorld(giveplayerid, HHcheckVW[giveplayerid]);
- SetPlayerInterior(giveplayerid, HHcheckInt[giveplayerid]);
- for(new i = 0; i < 6; i++)
- {
- HHcheckFloats[giveplayerid][i] = 0;
- }
- HHcheckVW[giveplayerid] = 0;
- HHcheckInt[giveplayerid] = 0;
- HHcheckUsed = 0;
- return 1;
- }
- new Float:health;
- GetPlayerHealth(giveplayerid, health);
- if(health == 100)
- {
- SendClientMessage(playerid, COLOR_GREEN, "____________________ HEALTH HACK CHECK RESULT_______________");
- format(string, sizeof(string), "The health hack check on %s was {00F70C}positive{FFFFFF}. The player may be health hacking.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_WHITE, "Health before check: 100.0");
- format(string, sizeof(string), "Health after check: %.1f", health);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREEN, "____________________ HEALTH HACK CHECK RESULT_______________");
- format(string, sizeof(string), "The health hack check on %s was {FFA500}negative{FFFFFF}. The player was not health hacking.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_WHITE, "Health before check: 100.0");
- format(string, sizeof(string), "Health after check: %.1f", health);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________________________");
- }
- SetPlayerHealth(giveplayerid, HHcheckFloats[giveplayerid][0]);
- SetPlayerArmourEx(giveplayerid, HHcheckFloats[giveplayerid][1]);
- SetPlayerPos(giveplayerid, HHcheckFloats[giveplayerid][2], HHcheckFloats[giveplayerid][3], HHcheckFloats[giveplayerid][4]);
- SetPlayerFacingAngle(giveplayerid, HHcheckFloats[giveplayerid][5]);
- SetCameraBehindPlayer(giveplayerid);
- SetPlayerVirtualWorld(giveplayerid, HHcheckVW[giveplayerid]);
- SetPlayerInterior(giveplayerid, HHcheckInt[giveplayerid]);
- for(new i = 0; i < 6; i++)
- {
- HHcheckFloats[giveplayerid][i] = 0;
- }
- HHcheckVW[giveplayerid] = 0;
- HHcheckInt[giveplayerid] = 0;
- HHcheckUsed = 0;
- return 1;
- }
- CMD:a(playerid, params[])
- {
- return cmd_admin(playerid, params);
- }
- CMD:adminrules(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- SendClientMessage(playerid, COLOR_REALREDS,"*** Admin Rules ***");
- SendClientMessage(playerid, COLOR_NEWS,"Wag mo e abuse power mo taena moka");
- SendClientMessage(playerid, COLOR_NEWS,"No giving /healnear Or /revive someone (/report revive me) /nonrevive it for more info /ah");
- SendClientMessage(playerid, COLOR_NEWS,"No giving guns just tell them we have blackmarket or maximusclub.");
- SendClientMessage(playerid, COLOR_NEWS,"Dont ask for ranks or kicked");
- SendClientMessage(playerid, COLOR_NEWS,"They knows how to roleplay and how to english we dont need other Language only english (/rmute , /gmute)");
- SendClientMessage(playerid, COLOR_NEWS,"After using this command /veh after use /destroycars to avoid use players");
- SendClientMessage(playerid, COLOR_NEWS,"Dont spam on admin chat and other chat or you will kicked");
- SendClientMessage(playerid, COLOR_NEWS,"Dont fight be friendly");
- SendClientMessage(playerid, COLOR_NEWS,"Avoid fight on player");
- SendClientMessage(playerid, COLOR_REALREDS,"This admin rules created By Howard McAdam(Charly Mesina <3) dont abuse it ok :)");
- return 1;
- }
- CMD:admin(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pFormer] == 1)
- {
- /*if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can only chat while off-duty. Type /aduty to go on-duty.");
- return 1;
- }*/
- if(!isnull(params))
- {
- new szMessage[128];
- format(szMessage, sizeof(szMessage), "* %s{FFFF00} %s: %s", GetAdminRank(playerid), GetPlayerNameEx(playerid), params);
- ABroadCast(COLOR_YELLOW, szMessage, 1);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/a)dmin [admin chat]");
- }
- return 1;
- }
- CMD:cnn(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(!isnull(params)) {
- new
- szMessage[128];
- format(szMessage, sizeof(szMessage), "~b~%s: ~w~%s",GetPlayerNameEx(playerid), params);
- foreach(Player, i) GameTextForPlayer(i, szMessage, 5000, 6);
- }
- else SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cnn [message]. ~n~ = new line, ~r~ = red, ~g~ = green, ~b~ = blue, ~w~ = white, ~y~ = yellow.");
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:cnnn(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- iTextID,
- szMessage[128];
- if(sscanf(params, "is[128]", iTextID, szMessage)) {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cnnn [type 1-6] [message]. ~n~ = new line, ~r~ = red, ~g~ = green, ~b~ = blue, ~w~ = white, ~y~ = yellow.");
- }
- else if(!(0 <= iTextID <= 6 && iTextID != 2)) {
- SendClientMessage(playerid, COLOR_GRAD2, "Text ID must be between 0 and 6, but not 2 (due to SA:MP bugs).");
- }
- else foreach(Player, i) GameTextForPlayer(i, szMessage, 5000, iTextID);
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:motd(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /motd [message]");
- new string[128];
- format(string, sizeof(string), "AdmCmd: %s has changed the Global MOTD to '%s'.", GetPlayerNameEx(playerid), params);
- ABroadCast(COLOR_LIGHTRED, string, 5);
- format(GlobalMOTD, sizeof(GlobalMOTD), "%s", params);
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted the Global MOTD.");
- format(string, sizeof(string), "%s", params);
- TextDrawSetString(MainMenuTxtdraw[8], string);
- Misc_Save();
- }
- return 1;
- }
- CMD:amotd(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /amotd [message]");
- new string[128];
- format(AdminMOTD, sizeof(AdminMOTD), "%s", params);
- format(string, sizeof(string), "AdmCmd: %s has changed the Admin MOTD to '%s'.", GetPlayerNameEx(playerid), params);
- ABroadCast(COLOR_LIGHTRED, string, 5);
- SendClientMessage(playerid, COLOR_WHITE, "You've adjusted the Admin MOTD.");
- Misc_Save();
- }
- return 1;
- }
- CMD:paused(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- szMessage[42 + MAX_PLAYER_NAME];
- SendClientMessage(playerid,COLOR_WHITE,"Listing all paused players...");
- foreach(Player, i) if(playerTabbed[i] != 0) {
- if(playerTabbedTime[i] > 60) format(szMessage, sizeof(szMessage), "* %s (ID %d), tabbed for %d minutes.", GetPlayerNameEx(i), i, playerTabbedTime[i] / 60);
- else format(szMessage, sizeof(szMessage), "* %s (ID %d), tabbed for %d seconds.", GetPlayerNameEx(i), i, playerTabbedTime[i]);
- if(PlayerInfo[i][pAdmin] >= 2) SendClientMessage(playerid,COLOR_WHITE, szMessage);
- else SendClientMessage(playerid,COLOR_GREY, szMessage);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use this command.");
- return 1;
- }
- CMD:afk(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new
- szMessage[36 + MAX_PLAYER_NAME];
- SendClientMessage(playerid,COLOR_WHITE,"Listing all AFK players...");
- foreach(Player, i) if(playerAFK[i] != 0 && playerAFKTime[i] > 60) {
- format(szMessage,sizeof(szMessage),"* %s (ID %d), AFK for %d minutes.", GetPlayerNameEx(i), i, playerAFKTime[i] / 60);
- if(PlayerInfo[i][pAdmin] >= 2) SendClientMessage(playerid,COLOR_RED,szMessage);
- else SendClientMessage(playerid,COLOR_GREY,szMessage);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use this command.");
- return 1;
- }
- CMD:gotoco(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new Float: pos[3], int;
- if(sscanf(params, "fffd", pos[0], pos[1], pos[2], int)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotoco [x coordinate] [y coordinate] [z coordinate] [interior]");
- SendClientMessage(playerid, COLOR_GRAD2, "You have been teleported to the coordinates specified.");
- SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- SetPlayerInterior(playerid, int);
- }
- return 1;
- }
- CMD:check(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /check [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- ShowStats(playerid,giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:ocheck(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] < 3)
- return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- if(isnull(params))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ocheck [name]");
- if(doesAccountExist(params))
- {
- OnPlayerOfflineLogin(params);
- new facgang[20], employer[64], rank[64], division[64], jtext[20], jtext2[20];
- new level = PlayerInfo[MAX_PLAYERS][pLevel];
- new phours = PlayerInfo[MAX_PLAYERS][pConnectTime];
- new respect = PlayerInfo[MAX_PLAYERS][pRespect];
- new nxtlevel = PlayerInfo[MAX_PLAYERS][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- new costlevel = nxtlevel*2500;
- new pnumber = PlayerInfo[MAX_PLAYERS][pNumber];
- new warns = PlayerInfo[MAX_PLAYERS][pWarns];
- facgang = "Faction";
- employer = "None";
- rank = "None";
- if(PlayerInfo[MAX_PLAYERS][pGang] < 255)
- {
- facgang = "Family"; division = "None";
- format(employer, sizeof(employer), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyName]);
- switch(PlayerInfo[MAX_PLAYERS][pRank])
- {
- case 1: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank1]);
- case 2: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank2]);
- case 3: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank3]);
- case 4: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank4]);
- case 5: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank5]);
- case 6: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank6]);
- default: format(rank, sizeof(rank), "%s", FamilyInfo[PlayerInfo[MAX_PLAYERS][pGang]][FamilyRank1]);
- }
- }
- else {
- GetPlayerFactionInfo(MAX_PLAYERS, rank, division, employer);
- }
- switch(PlayerInfo[MAX_PLAYERS][pJob])
- {
- case 1: jtext = "Detective";
- case 2: jtext = "Lawyer";
- case 3: jtext = "Whore";
- case 4: jtext = "Drugs Dealer";
- case 5: jtext = "Car Jacker";
- //case 6: jtext = "News Reporter";
- case 7: jtext = "Car Mechanic";
- case 8: jtext = "Bodyguard";
- case 9: jtext = "Arms Dealer";
- //case 10: jtext = "Car Dealer";
- case 12: jtext = "Boxer";
- case 14: jtext = "Drug Smuggler";
- //case 15: jtext = "Paper Boy";
- //case 16: jtext = "Trucker";
- case 17: jtext = "Taxi Driver";
- case 18: jtext = "Craftsman";
- case 19: jtext = "Bartender";
- case 20: jtext = "Trucker";
- case 21: jtext = "Pizza Boy";
- default: jtext = "None";
- }
- switch(PlayerInfo[MAX_PLAYERS][pJob2])
- {
- case 1: jtext2 = "Detective";
- case 2: jtext2 = "Lawyer";
- case 3: jtext2 = "Whore";
- case 4: jtext2 = "Drugs Dealer";
- case 5: jtext2 = "Car Jacker";
- //case 6: jtext2 = "News Reporter";
- case 7: jtext2 = "Car Mechanic";
- case 8: jtext2 = "Bodyguard";
- case 9: jtext2 = "Arms Dealer";
- //case 10: jtext2 = "Car Dealer";
- case 12: jtext2 = "Boxer";
- case 14: jtext2 = "Drug Smuggler";
- //case 15: jtext2 = "Paper Boy";
- //case 16: jtext2 = "Trucker";
- case 17: jtext2 = "Taxi Driver";
- case 18: jtext2 = "Craftsman";
- case 19: jtext2 = "Bartender";
- case 20: jtext2 = "Trucker";
- case 21: jtext2 = "Pizza Boy";
- default: jtext2 = "None";
- }
- new jlevel;
- switch(PlayerInfo[MAX_PLAYERS][pJob])
- {
- case 1:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pDetSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 2:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pLawSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 3:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pSexSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 4:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pDrugsSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 5:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pCarSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 7:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pMechSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 9:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pArmsSkill];
- if(skilllevel >= 0 && skilllevel < 50) { jlevel = 1; }
- else if(skilllevel >= 50 && skilllevel < 100) { jlevel = 2; }
- else if(skilllevel >= 100 && skilllevel < 200) { jlevel = 3; }
- else if(skilllevel >= 200 && skilllevel < 400) { jlevel = 4; }
- else if(skilllevel >= 400) { jlevel = 5; }
- }
- case 12:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pBoxSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- case 14:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pSmugSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- /*case 18:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pCraftSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }*/
- case 20:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pTruckSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel = 4; }
- else if(skilllevel >= 401) { jlevel = 5; }
- }
- default: jlevel = 0;
- }
- /*new jlevel2;
- switch(PlayerInfo[MAX_PLAYERS][pJob2])
- {
- case 1:
- {
- new skilllevel = PlayerInfo[MAX_PLAYERS][pDetSkill];
- if(skilllevel >= 0 && skilllevel <= 50) { jlevel2 = 1; }
- else if(skilllevel >= 51 && skilllevel <= 100) { jlevel2 = 2; }
- else if(skilllevel >= 101 && skilllevel <= 200) { jlevel2 = 3; }
- else if(skilllevel >= 201 && skilllevel <= 400) { jlevel2 = 4; }
- else if(skilllevel >= 401) { jlevel2 = 5; }
- }
- }*/
- new upgrade = PlayerInfo[MAX_PLAYERS][gPupgrade];
- new Float:sarmor = PlayerInfo[MAX_PLAYERS][pSarmor];
- new cash = PlayerInfo[MAX_PLAYERS][pCash];
- new bank = PlayerInfo[MAX_PLAYERS][pBank];
- new totalwealth = cash + bank;
- new insur[20];
- switch(PlayerInfo[MAX_PLAYERS][pInsurance])
- {
- case 1: insur = "County General";
- case 2: insur = "All Saints";
- default: insur = "None";
- }
- new crimes = PlayerInfo[MAX_PLAYERS][pCrimes];
- new arrests = PlayerInfo[MAX_PLAYERS][pArrested];
- new wanted = PlayerInfo[MAX_PLAYERS][pWantedLevel];
- new Float:health, Float:armor;
- health = PlayerInfo[MAX_PLAYERS][pHealth];
- armor = PlayerInfo[MAX_PLAYERS][pArmor];
- new pot = PlayerInfo[MAX_PLAYERS][pPot];
- new crack = PlayerInfo[MAX_PLAYERS][pCrack];
- new packages = PlayerInfo[MAX_PLAYERS][pPackages];
- new crates = PlayerInfo[MAX_PLAYERS][pCrates];
- new radiofreq = PlayerInfo[MAX_PLAYERS][pRadioFreq];
- new mats = PlayerInfo[MAX_PLAYERS][pMats];
- new rope = PlayerInfo[MAX_PLAYERS][pRope];
- new cigars = PlayerInfo[MAX_PLAYERS][pCigar];
- new sprunk = PlayerInfo[MAX_PLAYERS][pSprunk];
- new spray = PlayerInfo[MAX_PLAYERS][pSpraycan];
- new bigfish = PlayerInfo[MAX_PLAYERS][pBiggestFish];
- // Eight line (admin only)
- new house = PlayerInfo[MAX_PLAYERS][pHouse];
- //new house2 = PlayerInfo[MAX_PLAYERS][pHouse2];
- new rent = PlayerInfo[MAX_PLAYERS][pRenting];
- new interior = PlayerInfo[MAX_PLAYERS][pInt];
- new vw = PlayerInfo[MAX_PLAYERS][pVW];
- new realvw = PlayerInfo[MAX_PLAYERS][pVW];
- new jtime = PlayerInfo[MAX_PLAYERS][pJailTime];
- // Added
- new married[20];
- strmid(married, PlayerInfo[MAX_PLAYERS][pMarriedTo], 0, strlen(PlayerInfo[MAX_PLAYERS][pMarriedTo]), 255);
- //new screwdrivers = PlayerInfo[MAX_PLAYERS][pScrewdriver];
- new reftokens = PlayerInfo[MAX_PLAYERS][pRefTokens];
- new sext[16];
- if(PlayerInfo[MAX_PLAYERS][pSex] == 1) { sext = "Male"; } else { sext = "Female"; }
- new age = PlayerInfo[MAX_PLAYERS][pAge];
-
- new donatortxt[16];
- if(PlayerInfo[MAX_PLAYERS][pDonator] == 0) { donatortxt = "No"; }
- else if(PlayerInfo[MAX_PLAYERS][pDonator] == 1) { donatortxt = "Ruby"; }
- else if(PlayerInfo[MAX_PLAYERS][pDonator] == 2) { donatortxt = "Sapphire"; }
- else if(PlayerInfo[MAX_PLAYERS][pDonator] == 3) { donatortxt = "Diamond"; }
- else { donatortxt = "No"; }
- new nmutes = PlayerInfo[MAX_PLAYERS][pNMuteTotal];
- new admutes = PlayerInfo[MAX_PLAYERS][pADMuteTotal];
- new rmutes = PlayerInfo[MAX_PLAYERS][pRMutedTotal];
- new adminlevel = PlayerInfo[MAX_PLAYERS][pAdmin];
- new banned = PlayerInfo[MAX_PLAYERS][pBanned];
- new permabanned = PlayerInfo[MAX_PLAYERS][pPermaBanned];
- new disabled = PlayerInfo[MAX_PLAYERS][pDisabled];
- SendClientMessage(playerid, COLOR_NEWS,"___________________________________________________________________________________________________");
- new coordsstring[128];
- format(coordsstring, sizeof(coordsstring),"%s - (Level: %d) - (Playing hours: %d) - (Gender: %s) - (Age: %d) - (Phone number: %d) - (Warnings: %d)", params, level, phours, sext, age, pnumber, warns);
- SendClientMessage(playerid, COLOR_WHITE, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(%s: %s) - (Rank: %s [%d]) - (Division: %s) - (Job: %s [lvl: %d]) - (Radio freq: %d kHz)", facgang, employer, rank, PlayerInfo[MAX_PLAYERS][pRank], division, jtext, jlevel, radiofreq);
- SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Total wealth: $%d) - (Cash: $%d) - (Bank balance: $%d) - (Insurance: %s) - (Married to: %s)", totalwealth, cash, bank, insur, married);
- SendClientMessage(playerid, COLOR_WHITE, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Respect points: %d/%d [$%d]) - (Upgrade Points: %d) - (Spawn armor: %.1f) - (Health: %.1f) - (Armor: %.1f)", respect, expamount, costlevel, upgrade, sarmor, health, armor);
- SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Crimes: %d) - (Arrests: %d) - (Wanted Level: %d) - (Materials: %d) - (Pot: %d) - (Crack: %d) - (Packages: %d) - (Crates: %d)", crimes, arrests, wanted, mats, pot, crack, packages, crates);
- SendClientMessage(playerid, COLOR_WHITE, coordsstring);
- format(coordsstring, sizeof(coordsstring),"(Rope: %d) - (Cigars: %d) - (Sprunk: %d) - (Spray: %d) - (Biggest fish: %d) - (Referral Tokens: %d) - (Donator: %s)", rope, cigars, sprunk, spray, bigfish, reftokens, donatortxt);
- SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
- format(coordsstring, sizeof(coordsstring), "(Admin Level: %d) - (Banned: %d) - (Permabanned: %d) - (Account disabled: %d)", adminlevel, banned, permabanned, disabled);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(coordsstring, sizeof(coordsstring), "(House: %d) - (Renting: %d) - (Int: %d) - (VW: %d) - (Real VW: %d) - (Jail: %d secs) - (Mutes: [N: %d] [AD: %d] [R: %d])", house, rent, interior, vw, realvw, jtime, nmutes, admutes, rmutes);
- SendClientMessage(playerid, COLOR_FORSTATS,coordsstring);
- /*if(PlayerInfo[MAX_PLAYERS][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1)
- {
- format(coordsstring, sizeof(coordsstring), "Accepted reports: %d | Trashed reports: %d", PlayerInfo[MAX_PLAYERS][pAcceptReport], PlayerInfo[MAX_PLAYERS][pTrashReport]);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);
- }*/
- /*new tabbed[4];
- if(playerTabbedTime[MAX_PLAYERS] > 0) tabbed = "Yes";
- else tabbed = "No";
- new afk[4];
- if(playerAFK[MAX_PLAYERS] != 0 && playerAFKTime[MAX_PLAYERS] > 0) afk = "Yes";
- else afk = "No";
- format(coordsstring, sizeof(coordsstring), "(Alt-tabbed: %s [%d secs]) - (AFK: %s [%d secs])", tabbed, playerTabbedTime[MAX_PLAYERS], afk, playerAFKTime[MAX_PLAYERS]);
- SendClientMessage(playerid, COLOR_WHITE,coordsstring);*/
- }
- SendClientMessage(playerid, COLOR_NEWS,"___________________________________________________________________________________________________");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE,"That account does not exist!");
- }
- return 1;
- }
- CMD:househelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** HOUSE HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** HOUSE *** /houselock /setrentable /setrent /evict /evictall /sellhouse /sellmyhouse /ringbell");
- SendClientMessage(playerid, COLOR_GRAD3,"*** HOUSE *** /hwithdraw /hdeposit /hbalance /getgun /storegun /houseinvite");
- return 1;
- }
- CMD:crewhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_WHITE,"*** HELP *** - type a command for more information.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** CREW HELP *** /createcrew /disbandcrew /invitecrew (/cr)ew /kickcrew /switchcrew");
- return 1;
- }
- CMD:backpackhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_WHITE,"*** HELP *** - type a command for more information.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** BACKPACK HELP *** /backpack /removebackpack /mybackpack /buybackpack /acceptbackpack /sellbackpack");
- SendClientMessage(playerid, COLOR_GRAD3,"*** BACKPACK HELP *** /bpwithdraw /bpdeposit");
- return 1;
- }
- CMD:bankhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** BANK HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** BANK *** /withdraw /deposit /balance /wiretransfer");
- return 1;
- }
- CMD:bizhelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_GRAD3,"*** Business Help: - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** Business Help ***: /buybusiness /sellbusiness");
- SendClientMessage(playerid, COLOR_GRAD3,"*** Business Help ***: /businessmenu");
- return 1;
- }
- CMD:samphelp(playerid, params[])
- {
- SendClientMessageEx(playerid, COLOR_GREEN, "______________________________________________");
- SendClientMessageEx(playerid, COLOR_ORANGE, "* Sleepless Roleplay: Samphelp");
- SendClientMessageEx(playerid, COLOR_GRAD3, "Mikko[Bot] : /q /interior /save /headmove /timestamp /dl");
- SendClientMessageEx(playerid, COLOR_GRAD3, "Mikko[Bot] : /pagesize /rs /fpslimit");
- return 1;
- }
- CMD:renthelp(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
- SendClientMessage(playerid, COLOR_WHITE,"*** RENTING HELP *** - type a command for more infomation.");
- SendClientMessage(playerid, COLOR_GRAD3,"*** RENT *** /unrent /enter /exit");
- return 1;
- }
- CMD:hnext(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_RED, "* Listing next available house...");
- for(new x;x<MAX_HOUSES;x++)
- {
- if(HouseInfo[x][hOwned] == 0)
- {
- new string[128];
- format(string, sizeof(string), "%d is available to use.", x);
- SendClientMessage(playerid, COLOR_WHITE, string);
- break;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- return 1;
- }
- CMD:goinhouse(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new housenum;
- if(sscanf(params, "d", housenum)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /goinhouse [housenumber]");
- SetPlayerInterior(playerid,HouseInfo[housenum][hHInteriorWorld]);
- if(HouseInfo[housenum][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[housenum][hInteriorX],HouseInfo[housenum][hInteriorY],HouseInfo[housenum][hInteriorZ]);
- GameTextForPlayer(playerid, "~w~Teleporting", 5000, 1);
- PlayerInfo[playerid][pInt] = HouseInfo[housenum][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = housenum+60000;
- SetPlayerVirtualWorld(playerid, housenum+60000);
- }
- return 1;
- }
- CMD:gotohouse(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new housenum;
- if(sscanf(params, "d", housenum)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gotohouse [housenumber]");
- SetPlayerPos(playerid,HouseInfo[housenum][hExteriorX],HouseInfo[housenum][hExteriorY],HouseInfo[housenum][hExteriorZ]);
- GameTextForPlayer(playerid, "~w~Teleporting", 5000, 1);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- return 1;
- }
- CMD:hedit(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], choice[32], houseid, amount;
- if(sscanf(params, "s[32]dD", choice, houseid, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hedit [name] [houseid] [(Optional)amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Exterior, Interior, CustomInterior, CustomExterior, Level, Price, Owner");
- return 1;
- }
- if(strcmp(choice, "interior", true) == 0)
- {
- GetPlayerPos(playerid, HouseInfo[houseid][hInteriorX], HouseInfo[houseid][hInteriorY], HouseInfo[houseid][hInteriorZ]);
- GetPlayerFacingAngle(playerid, HouseInfo[houseid][hInteriorA]);
- HouseInfo[houseid][hHInteriorWorld] = GetPlayerInterior(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the interior!");
- SaveHouses();
- format(string, sizeof(string), "%s has edited HouseID %d's Interior.", GetPlayerNameEx(playerid), houseid);
- Log("logs/hedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "custominterior", true) == 0)
- {
- if(HouseInfo[houseid][hCustomInterior] == 0)
- {
- HouseInfo[houseid][hCustomInterior] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "House set to custom interior!");
- }
- else
- {
- HouseInfo[houseid][hCustomInterior] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "House set to normal (not custom) interior!");
- }
- SaveHouses();
- format(string, sizeof(string), "%s has edited HouseID %d's Custom Interior.", GetPlayerNameEx(playerid), houseid);
- Log("logs/hedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "customexterior", true) == 0)
- {
- if(HouseInfo[houseid][hCustomExterior] == 0)
- {
- HouseInfo[houseid][hCustomExterior] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "House set to custom exterior!");
- }
- else
- {
- HouseInfo[houseid][hCustomExterior] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "House set to normal (not custom) exterior!");
- }
- SaveHouses();
- format(string, sizeof(string), "%s has edited HouseID %d's Custom Exterior.", GetPlayerNameEx(playerid), houseid);
- Log("logs/hedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "exterior", true) == 0)
- {
- GetPlayerPos(playerid, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]);
- GetPlayerFacingAngle(playerid, HouseInfo[houseid][hExteriorA]);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the exterior!");
- DestroyPickup(HouseInfo[houseid][hPickupID]);
- SaveHouses();
- format(string, sizeof(string), "%s has edited HouseID %d's Exterior.", GetPlayerNameEx(playerid), houseid);
- Log("logs/hedit.log", string);
- if(HouseInfo[houseid][hOwned] ==0)
- {
- DestroyPickup(HouseInfo[houseid][hPickupID]);
- DestroyDynamic3DTextLabel(HouseInfo[houseid][hTextID]);
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[houseid][hLevel],houseid,HouseInfo[houseid][hValue]);
- HouseInfo[houseid][hTextID] = CreateDynamic3DTextLabel(string, COLOR_HOUSEGREEN, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- HouseInfo[houseid][hPickupID] = CreatePickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ], -1);
- }
- else
- {
- if(HouseInfo[houseid][hRentable] == 0)
- {
- DestroyPickup(HouseInfo[houseid][hPickupID]);
- DestroyDynamic3DTextLabel(HouseInfo[houseid][hTextID]);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid);
- HouseInfo[houseid][hTextID] = CreateDynamic3DTextLabel(string,COLOR_HOUSEGREEN,HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- HouseInfo[houseid][hPickupID] = CreatePickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ], -1);
- }
- else
- {
- DestroyPickup(HouseInfo[houseid][hPickupID]);
- DestroyDynamic3DTextLabel(HouseInfo[houseid][hTextID]);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid,HouseInfo[houseid][hRentFee]);
- HouseInfo[houseid][hTextID] = CreateDynamic3DTextLabel(string,COLOR_HOUSEGREEN,HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- HouseInfo[houseid][hPickupID] = CreatePickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ], -1);
- }
- }
- }
- else if(strcmp(choice, "level", true) == 0)
- {
- HouseInfo[houseid][hLevel] = amount;
- format(string, sizeof(string), "You have set the house level to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(HouseInfo[houseid][hOwned] ==0)
- {
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[houseid][hLevel],houseid,HouseInfo[houseid][hValue]);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- else
- {
- if(HouseInfo[houseid][hRentable] == 0)
- {
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- else
- {
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid,HouseInfo[houseid][hRentFee]);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- }
- format(string, sizeof(string), "%s has edited HouseID %d's Level to %d.", GetPlayerNameEx(playerid), houseid, amount);
- Log("logs/hedit.log", string);
- }
- else if(strcmp(choice, "price", true) == 0)
- {
- HouseInfo[houseid][hValue] = amount;
- format(string, sizeof(string), "You have set the houses price to $%d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(HouseInfo[houseid][hOwned] ==0)
- {
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[houseid][hLevel],houseid,HouseInfo[houseid][hValue]);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- format(string, sizeof(string), "%s has edited HouseID %d's Price to $%d.", GetPlayerNameEx(playerid), amount);
- Log("logs/hedit.log", string);
- }
- /*else if(strcmp(choice, "class", true) == 0)
- {
- switch(amount)
- {
- case 1:
- {
- format(HouseInfo[houseid][hDescription], 128, "Low");
- SendClientMessage(playerid, COLOR_WHITE, "You have set the house's class to 1 (Low)");
- }
- case 2:
- {
- format(HouseInfo[houseid][hDescription], 128, "Medium");
- SendClientMessage(playerid, COLOR_WHITE, "You have set the house's class to 2 (Medium)");
- }
- case 3:
- {
- format(HouseInfo[houseid][hDescription], 128, "High");
- SendClientMessage(playerid, COLOR_WHITE, "You have set the house's class to 3 (High)");
- }
- }
- if(HouseInfo[houseid][hOwned] ==0)
- {
- format(string, sizeof(string), "This home is for sale!\n Description: %s\nPrice: $%d\n Level: %d\nID: %d\nTo buy this house type /buyhouse",HouseInfo[houseid][hDescription],HouseInfo[houseid][hValue],HouseInfo[houseid][hLevel],houseid);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- format(string, sizeof(string), "%s has edited HouseID %d's Class to %d.", GetPlayerNameEx(playerid), houseid, amount);
- Log("logs/hedit.log", string);
- }*/
- else if(strcmp(choice, "owner", true) == 0)
- {
- if(!IsPlayerConnected(amount))
- {
- SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified.");
- return 1;
- }
- if(PlayerInfo[amount][pHouse] == INVALID_HOUSE_ID)
- {
- PlayerInfo[amount][pHouse] = houseid;
- new szPlayerName[MAX_PLAYER_NAME];
- GetPlayerName(amount, szPlayerName, sizeof(szPlayerName));
- format(string, MAX_PLAYER_NAME, "%s", szPlayerName);
- format(HouseInfo[houseid][hOwner], MAX_PLAYER_NAME, string);
- format(string, sizeof(string), "You have set the house ID %d owner to playerid %d.", houseid, amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(PlayerInfo[amount][pHouse2] == INVALID_HOUSE_ID)
- {
- PlayerInfo[amount][pHouse2] = houseid;
- new szPlayerName[MAX_PLAYER_NAME];
- GetPlayerName(amount, szPlayerName, sizeof(szPlayerName));
- format(string, MAX_PLAYER_NAME, "%s", szPlayerName);
- format(HouseInfo[houseid][hOwner], MAX_PLAYER_NAME, string);
- format(string, sizeof(string), "You have set the house ID %d's owner to %s.", houseid, GetPlayerNameEx(amount));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, "That player does not have any free house space left.");
- return 1;
- }
- if(HouseInfo[houseid][hRentable] == 0)
- {
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- else
- {
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid,HouseInfo[houseid][hRentFee]);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- }
- format(string, sizeof(string), "%s has edited HouseID %d's Owner to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(amount));
- Log("logs/hedit.log", string);
- }
- SaveHouses();
- return 1;
- }
- CMD:hname(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], houseid, ownername[24];
- if(sscanf(params, "ds[24]", houseid, ownername)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hname [houseid] [name]");
- format(HouseInfo[houseid][hOwner], 24, "%s", ownername);
- format(string, sizeof(string), "You have set the house owner to %s", ownername);
- HouseInfo[houseid][hOwned] = 1;
- HouseInfo[houseid][hRentable] = 0;
- SendClientMessage(playerid, COLOR_WHITE, string);
- DestroyPickup(HouseInfo[houseid][hPickupID]);
- HouseInfo[houseid][hPickupID] = CreatePickup(1273, 23, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ], -1);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[houseid][hOwner],HouseInfo[houseid][hLevel],houseid);
- UpdateDynamic3DTextLabelText(HouseInfo[houseid][hTextID], COLOR_HOUSEGREEN, string);
- format(string, sizeof(string), "%s has edited HouseID %d's Owner to %s.", GetPlayerNameEx(playerid), houseid, ownername);
- Log("logs/hedit.log", string);
- return 1;
- }
- CMD:edit(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], choice[32], amount;
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "|__________________ Edit __________________|");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /edit [name] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Level, Price");
- SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
- return 1;
- }
- for(new i = 0; i < sizeof(HouseInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
- {
- format(string, sizeof(string), "House: %d", i);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- if(amount > 0)
- {
- if(strcmp(choice,"level",true) == 0)
- {
- HouseInfo[i][hLevel] = amount;
- }
- else if(strcmp(choice,"price",true) == 0)
- {
- HouseInfo[i][hValue] = amount;
- }
- }
- if(HouseInfo[i][hOwned] ==0)
- {
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[i][hLevel],i,HouseInfo[i][hValue]);
- UpdateDynamic3DTextLabelText(HouseInfo[i][hTextID], COLOR_HOUSEGREEN, string);
- }
- else
- {
- if(HouseInfo[i][hRentable] == 0)
- {
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[i][hOwner],HouseInfo[i][hLevel],i);
- UpdateDynamic3DTextLabelText(HouseInfo[i][hTextID], COLOR_HOUSEGREEN, string);
- }
- else
- {
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[i][hOwner],HouseInfo[i][hLevel],i,HouseInfo[i][hRentFee]);
- UpdateDynamic3DTextLabelText(HouseInfo[i][hTextID], COLOR_HOUSEGREEN, string);
- }
- }
- }
- }
- return 1;
- }
- CMD:rentroom(playerid, params[])
- {
- //new string[128];
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[h][hExteriorX], HouseInfo[h][hExteriorY], HouseInfo[h][hExteriorZ]) && HouseInfo[h][hRentFee] >= 1)
- {
- if(! strcmp(HouseInfo[h][hOwner], "Nobody", true))
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't rent an unowned house.");
- }
- else
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, " You already own a house, type /sellhouse if you want to rent this one.");
- return 1;
- }
- if(GetPlayerCash(playerid) > HouseInfo[h][hRentFee])
- {
- if(HouseInfo[h][hRentable] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This house is not rentable.");
- return 1;
- }
- else
- {
- PlayerInfo[playerid][pRenting] = h;
- GivePlayerCash(playerid,-HouseInfo[h][hRentFee]);
- HouseInfo[h][hSafeMoney] = HouseInfo[h][hSafeMoney]+HouseInfo[h][hRentFee];
- SetPlayerInterior(playerid,HouseInfo[h][hHInteriorWorld]);
- if(HouseInfo[h][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[h][hInteriorX],HouseInfo[h][hInteriorY],HouseInfo[h][hInteriorZ]);
- GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and typing /exit.", 5000, 3);
- PlayerInfo[playerid][pInt] = HouseInfo[h][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = 60000+h;
- SetPlayerVirtualWorld(playerid, h+60000);
- SendClientMessage(playerid, COLOR_WHITE, "Congratulations. You can enter and exit here any time you want.");
- SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the property help section.");
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- //new ip[32];
- //GetPlayerIp(playerid,ip,sizeof(ip));
- //format(string,sizeof(string),"%s (IP: %s) has rented house ID %d (owned by %s) for $%d.",GetPlayerNameEx(playerid),ip,h,HouseInfo[h][hOwner],HouseInfo[h][hRentFee]);
- //Log("logs/house.log", string);
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- return 1;
- }
- }
- }
- }
- return 1;
- }
- CMD:unrent(playerid, params[])
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, " You own this house!");
- return 1;
- }
- if(PlayerInfo[playerid][pRenting] != INVALID_HOUSE_ID)
- {
- PlayerInfo[playerid][pRenting] = INVALID_HOUSE_ID;
- SendClientMessage(playerid, COLOR_WHITE, "You're now homeless.");
- }
- return 1;
- }
-
- CMD:houselock(playerid, params[]) {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorZ]))) {
- new
- szMessage[30 + MAX_PLAYER_NAME];
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hLock] == 1)
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hLock] = 0;
- format(szMessage, sizeof(szMessage), "* %s has unlocked their house.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hLock] = 1;
- format(szMessage, sizeof(szMessage), "* %s has locked their house.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorZ]))) {
- new
- szMessage[30 + MAX_PLAYER_NAME];
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hLock] == 1)
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hLock] = 0;
- format(szMessage, sizeof(szMessage), "* %s has unlocked their house.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hLock] = 1;
- format(szMessage, sizeof(szMessage), "* %s has locked their house.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You either don't own a house, or are not at one of them.");
- return 1;
- }
- CMD:setrentable(playerid, params[]) {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorZ]))) {
- new
- szMessage[128];
- if(!HouseInfo[PlayerInfo[playerid][pHouse]][hRentable]) {
- HouseInfo[PlayerInfo[playerid][pHouse]][hRentable] = 1;
- format(szMessage, sizeof(szMessage), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[PlayerInfo[playerid][pHouse]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse]][hLevel],PlayerInfo[playerid][pHouse],HouseInfo[PlayerInfo[playerid][pHouse]][hRentFee]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[playerid][pHouse]][hTextID], COLOR_HOUSEGREEN, szMessage);
- SendClientMessage(playerid, COLOR_WHITE, "This house is now rentable.");
- }
- else {
- HouseInfo[PlayerInfo[playerid][pHouse]][hRentable] = 0;
- format(szMessage, sizeof(szMessage), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[playerid][pHouse]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse]][hLevel],PlayerInfo[playerid][pHouse]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[playerid][pHouse]][hTextID], COLOR_HOUSEGREEN, szMessage);
- SendClientMessage(playerid, COLOR_WHITE, "This house is no longer rentable.");
- }
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorZ]))) {
- new
- szMessage[128];
- if(!HouseInfo[PlayerInfo[playerid][pHouse2]][hRentable]) {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hRentable] = 1;
- format(szMessage, sizeof(szMessage), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse2]][hLevel],PlayerInfo[playerid][pHouse2],HouseInfo[PlayerInfo[playerid][pHouse2]][hRentFee]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[playerid][pHouse2]][hTextID], COLOR_HOUSEGREEN, szMessage);
- SendClientMessage(playerid, COLOR_WHITE, "This house is now rentable.");
- }
- else {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hRentable] = 0;
- format(szMessage, sizeof(szMessage), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse2]][hLevel],PlayerInfo[playerid][pHouse2]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[playerid][pHouse2]][hTextID], COLOR_HOUSEGREEN, szMessage);
- SendClientMessage(playerid, COLOR_WHITE, "This house is no longer rentable.");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You either don't own a house, or are not at one of them.");
- return 1;
- }
- CMD:setrent(playerid, params[])
- {
- new string[128], fee;
- if(sscanf(params, "d", fee)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrent [fee]");
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorZ])))
- {
- if(!(1 <= fee <= 1000))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Minimum rent is $1, maximum rent is $1000.");
- }
- else
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hRentFee] = fee;
- format(string, sizeof(string), "You have set your house's rent fee to $%i.", HouseInfo[PlayerInfo[playerid][pHouse]][hRentFee]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hRentable]) format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[PlayerInfo[playerid][pHouse]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse]][hLevel],PlayerInfo[playerid][pHouse],HouseInfo[PlayerInfo[playerid][pHouse]][hRentFee]);
- else format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[playerid][pHouse]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse]][hLevel],PlayerInfo[playerid][pHouse]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[playerid][pHouse]][hTextID], COLOR_HOUSEGREEN, string);
- }
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorZ])))
- {
- if(!(1 <= fee <= 1000))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Minimum rent is $1, maximum rent is $1000.");
- }
- else {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hRentFee] = fee;
- format(string, sizeof(string), "You have set your house's rent fee to $%i.", HouseInfo[PlayerInfo[playerid][pHouse2]][hRentFee]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hRentable]) format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d\nRent: $%d\nType /rentroom to rent a room",HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse2]][hLevel],PlayerInfo[playerid][pHouse2],HouseInfo[PlayerInfo[playerid][pHouse2]][hRentFee]);
- else format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner],HouseInfo[PlayerInfo[playerid][pHouse2]][hLevel],PlayerInfo[playerid][pHouse2]);
- UpdateDynamic3DTextLabelText(HouseInfo[PlayerInfo[playerid][pHouse2]][hTextID], COLOR_HOUSEGREEN, string);
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You either don't own a house, or are not at one of them.");
- return 1;
- }
- CMD:evict(playerid, params[])
- {
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /evict [playerid/partofname]");
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorZ])))
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- return SendClientMessage(playerid, COLOR_WHITE, "You can't evict yourself.");
- }
- else if(PlayerInfo[giveplayerid][pRenting] == PlayerInfo[playerid][pHouse])
- {
- format(string, sizeof(string), "%s has evicted you from their house.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "You have evicted %s from your house.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[giveplayerid][pRenting] = INVALID_HOUSE_ID;
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That person isn't renting at your house.");
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorZ])))
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid == playerid)
- {
- return SendClientMessage(playerid, COLOR_WHITE, "You can't evict yourself.");
- }
- else if(PlayerInfo[giveplayerid][pRenting] == PlayerInfo[playerid][pHouse2])
- {
- format(string, sizeof(string), "%s has evicted you from their house.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "You have evicted %s from your house.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- PlayerInfo[giveplayerid][pRenting] = INVALID_HOUSE_ID;
- }
- else SendClientMessage(playerid, COLOR_WHITE, "That person isn't renting at your house.");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You either don't own a house, or are not at one of them.");
- return 1;
- }
- CMD:evictall(playerid, params[])
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hInteriorZ])))
- {
- new giveplayerid, string[56];
- foreach(Player, i) if(PlayerInfo[i][pRenting] == PlayerInfo[playerid][pHouse]) {
- format(string, sizeof(string), "%s has evicted you from their house.", GetPlayerNameEx(playerid));
- SendClientMessage(i, COLOR_WHITE, string);
- PlayerInfo[i][pRenting] = INVALID_HOUSE_ID;
- ++giveplayerid;
- }
- format(string, sizeof(string), "%i online players have been evicted from your house.", giveplayerid);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && (IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hExteriorZ]) || IsPlayerInRangeOfPoint(playerid, 2.0, HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorX], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorY], HouseInfo[PlayerInfo[playerid][pHouse2]][hInteriorZ])))
- {
- new giveplayerid, string[56];
- foreach(Player, i) if(PlayerInfo[i][pRenting] == PlayerInfo[playerid][pHouse2]) {
- format(string, sizeof(string), "%s has evicted you from their house.", GetPlayerNameEx(playerid));
- SendClientMessage(i, COLOR_WHITE, string);
- PlayerInfo[i][pRenting] = INVALID_HOUSE_ID;
- ++giveplayerid;
- }
- format(string, sizeof(string), "%i online players have been evicted from your house.", giveplayerid);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "You either don't own a house, or are not at one of them.");
- return 1;
- }
- CMD:buyhouse(playerid, params[])
- {
- new string[128];
- new playername[MAX_PLAYER_NAME];
- new sendername[MAX_PLAYER_NAME];
- new Float:oldposx, Float:oldposy, Float:oldposz;
- GetPlayerName(playerid, playername, sizeof(playername));
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- if(IsPlayerInRangeOfPoint(playerid,5.0, 0.0, 0.0, 0.0))
- {// This is to prevent players from buying non-ready houses at the 0,0,0 coordinates
- SendClientMessage(playerid, COLOR_WHITE, "You can't purchase houses in this area.");
- return 1;
- }
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,HouseInfo[h][hExteriorX], HouseInfo[h][hExteriorY], HouseInfo[h][hExteriorZ]))
- {
- if(HouseInfo[h][hOwned] == 0)
- {
- if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
- {
- format(string, sizeof(string), " You must be Level %d to purchase this!", HouseInfo[h][hLevel]);
- SendClientMessage(playerid, COLOR_GRAD5, string);
- return 1;
- }
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD5, "You already own a house.");
- return 1;
- }
- if(PlayerInfo[playerid][pHouse] == INVALID_HOUSE_ID)
- {
- if(GetPlayerCash(playerid) >= HouseInfo[h][hValue])
- {
- if(GetPVarInt(playerid, "BuyHouseConfirm") == 0)
- {
- SetPVarInt(playerid, "BuyHouseConfirm", 1);
- SendClientMessage(playerid, COLOR_WHITE, "You're about to buy this house. The money can't be returned once you have bought this house.");
- SendClientMessage(playerid, COLOR_WHITE, "If you're sure you want to buy this house, please re-type the command (/buyhouse).");
- return 1;
- }
- DeletePVar(playerid, "BuyHouseConfirm");
- PlayerInfo[playerid][pHouse] = h;
- HouseInfo[h][hOwned] = 1;
- HouseInfo[h][hRentable] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
- GivePlayerCash(playerid,-HouseInfo[h][hValue]);
- SetPlayerInterior(playerid,HouseInfo[h][hHInteriorWorld]);
- if(HouseInfo[h][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- format(string, sizeof(string), "* %s has entered their house.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerPos(playerid,HouseInfo[h][hInteriorX],HouseInfo[h][hInteriorY],HouseInfo[h][hInteriorZ]);
- SetPlayerFacingAngle(playerid,HouseInfo[h][hInteriorA]);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and typing /exit.", 5000, 3);
- PlayerInfo[playerid][pInt] = HouseInfo[h][hHInteriorWorld];
- SendClientMessage(playerid, COLOR_WHITE, "Congratulations on your new purchase!");
- SendClientMessage(playerid, COLOR_WHITE, "Type /househelp to review the help section!");
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- PlayerInfo[playerid][pVW] = h+60000;
- SetPlayerVirtualWorld(playerid, h+60000);
- DestroyPickup(HouseInfo[h][hPickupID]);
- HouseInfo[h][hPickupID] = CreatePickup(1273, 23, HouseInfo[h][hExteriorX], HouseInfo[h][hExteriorY], HouseInfo[h][hExteriorZ], -1);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel],h);
- UpdateDynamic3DTextLabelText(HouseInfo[h][hTextID], COLOR_HOUSEGREEN, string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has bought house ID %d for $%d.",GetPlayerNameEx(playerid),ip,h,HouseInfo[h][hValue]);
- Log("logs/house.log", string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You don't have the cash for that.");
- return 1;
- }
- }
- // (TEMPORARY - Howard NOTE) No second houses for now
- else if(PlayerInfo[playerid][pHouse2] == INVALID_HOUSE_ID)
- {
- if(GetPlayerCash(playerid) > HouseInfo[h][hValue])
- {
- PlayerInfo[playerid][pHouse2] = h;
- HouseInfo[h][hOwned] = 1;
- HouseInfo[h][hRentable] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
- GivePlayerCash(playerid,-HouseInfo[h][hValue]);
- SetPlayerInterior(playerid,HouseInfo[h][hHInteriorWorld]);
- if(HouseInfo[h][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[h][hInteriorX],HouseInfo[h][hInteriorY],HouseInfo[h][hInteriorZ]);
- SetPlayerFacingAngle(playerid,HouseInfo[h][hInteriorA]);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and typing /exit.", 5000, 3);
- PlayerInfo[playerid][pInt] = HouseInfo[h][hHInteriorWorld];
- SendClientMessage(playerid, COLOR_WHITE, "Congratulations on your new purchase!");
- SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the property help section!");
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- PlayerInfo[playerid][pVW] = h+60000;
- SetPlayerVirtualWorld(playerid, h+60000);
- DestroyPickup(HouseInfo[h][hPickupID]);
- HouseInfo[h][hPickupID] = CreatePickup(1273, 23, HouseInfo[h][hExteriorX], HouseInfo[h][hExteriorY], HouseInfo[h][hExteriorZ], -1);
- format(string, sizeof(string), "House owner: %s\nLevel: %d\nID: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel],h);
- UpdateDynamic3DTextLabelText(HouseInfo[h][hTextID], COLOR_HOUSEGREEN, string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has bought house ID %d for $%d.",GetPlayerNameEx(playerid),ip,h,HouseInfo[h][hValue]);
- Log("logs/house.log", string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, " You don't have the cash for that!");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "This house is owned.");
- }
- }
- }
- return 1;
- }
- CMD:interiors(playerid, params[])
- {
- if (PlayerInfo[playerid][pAdmin] >= 3)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 5)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can only chat while off-duty. Type /aduty to go on-duty.");
- return 1;
- }
- ShowInteriorDialog(playerid);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
- }
- return 1;
- }
- CMD:sellhouse(playerid, params[])
- {
- new string[128];
- new house = PlayerInfo[playerid][pHouse];
- new house2 = PlayerInfo[playerid][pHouse2];
- if(house == INVALID_HOUSE_ID && house2 == INVALID_HOUSE_ID)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 4.0,HouseInfo[house][hExteriorX],HouseInfo[house][hExteriorY],HouseInfo[house][hExteriorZ]))
- {
- if(GetPVarInt(playerid, "SellHouseConfirm") == 0)
- {
- SetPVarInt(playerid, "SellHouseConfirm", 1);
- SendClientMessage(playerid, COLOR_WHITE, "You're about to sell your house for free. You will receive no money for this.");
- SendClientMessage(playerid, COLOR_WHITE, "If you're sure you want to sell your house, please re-type the command (/sellhouse).");
- return 1;
- }
- DeletePVar(playerid, "SellHouseConfirm");
- ClearHouse(house);
- HouseInfo[house][hLock] = 1;
- format(HouseInfo[house][hOwner], 128, "Nobody");
- HouseInfo[house][hGLUpgrade] = 1;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~n~~w~You have sold your property!");
- GameTextForPlayer(playerid, string, 4000, 3);
- PlayerInfo[playerid][pHouse] = INVALID_HOUSE_ID;
- if(PlayerInfo[playerid][pVW] == house+60000)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,HouseInfo[house][hExteriorX],HouseInfo[house][hExteriorY],HouseInfo[house][hExteriorZ]);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pHouse] = INVALID_HOUSE_ID;
- }
- //PlayerInfo[playerid][pInsurance] = 0;
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- DestroyPickup(HouseInfo[house][hPickupID]);
- HouseInfo[house][hPickupID] = CreatePickup(1273, 23, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ], -1);
- DestroyDynamic3DTextLabel(HouseInfo[house][hTextID]);
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[house][hLevel],house,HouseInfo[house][hValue]);
- HouseInfo[house][hTextID] = CreateDynamic3DTextLabel(string, COLOR_HOUSEGREEN, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.5, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has sold their house (ID %d) for $%d.",GetPlayerNameEx(playerid),ip,house,HouseInfo[house][hValue]);
- Log("logs/house.log", string);
- return 1;
- }
- // (TEMPORARY - Howard NOTE) No second houses for now
- else if(IsPlayerInRangeOfPoint(playerid, 4.0,HouseInfo[house2][hExteriorX],HouseInfo[house2][hExteriorY],HouseInfo[house2][hExteriorZ]))
- {
- if(GetPVarInt(playerid, "SellHouseConfirm") == 0)
- {
- SetPVarInt(playerid, "SellHouseConfirm", 1);
- SendClientMessage(playerid, COLOR_WHITE, "You're about to sell your house for free. You will receive no money for this.");
- SendClientMessage(playerid, COLOR_WHITE, "If you're sure you want to sell your house, please re-type the command (/sellhouse).");
- return 1;
- }
- DeletePVar(playerid, "SellHouseConfirm");
- ClearHouse(house2);
- HouseInfo[house2][hLock] = 1;
- format(HouseInfo[house2][hOwner], 128, "Nobody");
- HouseInfo[house2][hGLUpgrade] = 1;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "~w~You have sold your property!");
- GameTextForPlayer(playerid, string, 4000, 3);
- PlayerInfo[playerid][pHouse2] = INVALID_HOUSE_ID;
- if(PlayerInfo[playerid][pVW] == house2+60000)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,HouseInfo[house2][hExteriorX],HouseInfo[house2][hExteriorY],HouseInfo[house2][hExteriorZ]);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pHouse2] = INVALID_HOUSE_ID;
- }
- //PlayerInfo[playerid][pInsurance] = 0;
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- DestroyPickup(HouseInfo[house2][hPickupID]);
- HouseInfo[house2][hPickupID] = CreatePickup(1273, 23, HouseInfo[house2][hExteriorX], HouseInfo[house2][hExteriorY], HouseInfo[house2][hExteriorZ], -1);
- DestroyDynamic3DTextLabel(HouseInfo[house2][hTextID]);
- format(string, sizeof(string), "This house is for sale!\n Level: %d\nID: %d\nPrice: $%d\nTo buy this house type /buyhouse",HouseInfo[house][hLevel],house,HouseInfo[house][hValue]);
- HouseInfo[house2][hTextID] = CreateDynamic3DTextLabel(string, COLOR_HOUSEGREEN, HouseInfo[house2][hExteriorX], HouseInfo[house2][hExteriorY], HouseInfo[house2][hExteriorZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has sold their house (ID %d) for $%d.",GetPlayerNameEx(playerid),ip,house2,HouseInfo[house2][hValue]);
- Log("logs/house.log", string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You need to be near your house(exterior) in order to sell it.");
- }
- return 1;
- }
- CMD:ringbell(playerid, params[])
- {
- for(new h; h < sizeof(HouseInfo); h++) if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[h][hExteriorX], HouseInfo[h][hExteriorY], HouseInfo[h][hExteriorZ])) {
- new
- string[75 + MAX_PLAYER_NAME];
- foreach(Player, i) if(GetPlayerVirtualWorld(i) == h + 60000 && GetPlayerInterior(i) == HouseInfo[h][hHInteriorWorld]) {
- format(string,sizeof(string),"%s's doorbell rings.", HouseInfo[h][hOwner]);
- SendClientMessage(i,COLOR_PURPLE,string);
- GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~w~The doorbell rings...", 4000,3);
- }
- format(string,sizeof(string),"* %s presses a button next to the door, ringing the doorbell of %s's house.",GetPlayerNameEx(playerid), HouseInfo[h][hOwner]);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
- CMD:sellmyhouse(playerid, params[])
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if((PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0) || (PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0))
- {
- new string[128], giveplayerid, price;
- if(sscanf(params, "ud", giveplayerid, price)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /sellmyhouse [playerid/partofname] [price]");
- if(price < 1) return SendClientMessage(playerid, COLOR_GREY, "Price must be higher than 0.");
- if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Player is currently not connected to the server.");
- if(PlayerInfo[giveplayerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[giveplayerid][pHouse]][hOwner], true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "They already own a house.");
- return 1;
- }
- new house = PlayerInfo[playerid][pHouse];
- new house2 = PlayerInfo[playerid][pHouse2];
- if(PlayerInfo[giveplayerid][pLevel] >= HouseInfo[PlayerInfo[playerid][pHouse]][hLevel])
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0,HouseInfo[house][hExteriorX],HouseInfo[house][hExteriorY],HouseInfo[house][hExteriorZ]))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- if(GetPVarInt(playerid, "SellMyTimer") > 0)
- {
- format(string, sizeof(string), "You must wait %d seconds before offering a sale again.", GetPVarInt(playerid, "SellMyTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- HouseOffer[giveplayerid] = playerid;
- HousePrice[giveplayerid] = price;
- House[giveplayerid] = 1;
- format(string, sizeof(string), "* You offered %s to buy your house for $%d.", GetPlayerNameEx(giveplayerid), price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered you their house for $%d, (type /accept house) to buy.", GetPlayerNameEx(playerid), price);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- SetPVarInt(playerid, "SellMyTimer", 30); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_SELLMYTIMER);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 4.0,HouseInfo[house2][hExteriorX],HouseInfo[house2][hExteriorY],HouseInfo[house2][hExteriorZ]))
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- HouseOffer[giveplayerid] = playerid;
- HousePrice[giveplayerid] = price;
- House[giveplayerid] = 2;
- format(string, sizeof(string), "* You offered %s to buy your house for $%d.", GetPlayerNameEx(giveplayerid), price);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s has offered you their house for $%d, (type /accept house) to buy.", GetPlayerNameEx(playerid), price);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "That player is not near you.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not near your house");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "The player you're trying to sell your house to is not the appropriate level to buy this house.");
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
- }
- return 1;
- }
- CMD:hwithdraw(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new string[128], amount, choice[32];
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hwithdraw [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Cash, Pot, Crack, Materials");
- return 1;
- }
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse]+60000)
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- if(strcmp(choice, "Cash", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]-=amount;
- PlayerInfo[playerid][pCash] += amount;
- format(string, sizeof(string), "You have withdrawn $%d from your house money safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some money from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn $%d from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money to withdraw.");
- }
- }
- else if(strcmp(choice, "Pot", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hPot] >= amount)
- {
- if(PlayerInfo[playerid][pPot] > 500)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're already carrying 500 grams of pot.");
- return 1;
- }
- if(amount+PlayerInfo[playerid][pPot] > 500)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't carry more than 500 grams of pot.");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse]][hPot]-=amount;
- PlayerInfo[playerid][pPot] += amount;
- format(string, sizeof(string), "You have withdrawn %d grams of pot from your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some pot from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d grams of pot from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough pot to withdraw.");
- }
- }
- else if(strcmp(choice, "Materials", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hMaterials] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hMaterials]-=amount;
- PlayerInfo[playerid][pMats] += amount;
- format(string, sizeof(string), "You have withdrawn %d materials from your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some materials from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d materials from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough materials to withdraw.");
- }
- }
- else if(strcmp(choice, "Crack", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hCrack] >= amount)
- {
- if(PlayerInfo[playerid][pCrack] > 250)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You already have 250 grams of crack.");
- return 1;
- }
- if(amount+PlayerInfo[playerid][pCrack] > 250)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't carry more than 250 grams of crack.");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse]][hCrack]-=amount;
- PlayerInfo[playerid][pCrack] += amount;
- format(string, sizeof(string), "You have withdrawn %d grams of crack from your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some crack from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d grams of crack from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough crack to withdraw.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hwithdraw [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Cash, Pot, Crack, Materials");
- }
- }
- }
- else if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse2]+60000)
- {
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(playername, HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
- {
- if(strcmp(choice, "Cash", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney]-=amount;
- PlayerInfo[playerid][pCash] += amount;
- format(string, sizeof(string), "You have withdrawn $%d from your house money safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some money from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn $%d from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money to withdraw.");
- }
- }
- else if(strcmp(choice, "Pot", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hPot] >= amount)
- {
- if(PlayerInfo[playerid][pPot] > 500)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You already have 500 grams of pot.");
- return 1;
- }
- if(amount+PlayerInfo[playerid][pPot] > 500)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't carry more than 500 grams of pot.");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse2]][hPot]-=amount;
- PlayerInfo[playerid][pPot] += amount;
- format(string, sizeof(string), "You have withdrawn %d grams of pot from your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some pot from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d grams of pot from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough pot to withdraw.");
- }
- }
- else if(strcmp(choice, "Materials", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hMaterials] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hMaterials]-=amount;
- PlayerInfo[playerid][pMats] += amount;
- format(string, sizeof(string), "You have withdrawn %d materials from your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some materials from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d materials from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough materials to withdraw.");
- }
- }
- else if(strcmp(choice, "Crack", true, strlen(choice)) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't withdraw less than one.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hCrack] >= amount)
- {
- if(PlayerInfo[playerid][pCrack] > 250)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You already have 250 grams of crack.");
- return 1;
- }
- if(amount+PlayerInfo[playerid][pCrack] > 250)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't carry more than 250 grams of pot.");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse2]][hCrack]-=amount;
- PlayerInfo[playerid][pCrack] += amount;
- format(string, sizeof(string), "You have withdrawn %d grams of crack from your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s withdraws some crack from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has withdrawn %d grams of crack from their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough crack to withdraw.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hwithdraw [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Cash, Pot, Crack, Materials");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in any house");
- return 1;
- }
- return 1;
- }
- CMD:hdeposit(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128], choice[32], amount;
- if(sscanf(params, "s[32]d", choice, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hdeposit [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Cash, Pot, Crack, Materials");
- return 1;
- }
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse]+60000)
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID)
- {
- if(strcmp(choice, "Cash", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+=amount;
- PlayerInfo[playerid][pCash] -= amount;
- format(string, sizeof(string), "You have deposited $%d in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some money and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited $%d into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money to deposit.");
- }
- }
- else if(strcmp(choice, "Pot", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] >= amount)
- {
- if(amount + HouseInfo[PlayerInfo[playerid][pHouse]][hPot] > 100000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Your house safe is already full of pot!");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse]][hPot]+=amount;
- PlayerInfo[playerid][pPot] -= amount;
- format(string, sizeof(string), "You have deposited %d grams of pot in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some pot and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d grams of pot into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough pot to deposit.");
- }
- }
- else if(strcmp(choice, "Materials", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pMats] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hMaterials]+=amount;
- PlayerInfo[playerid][pMats] -= amount;
- format(string, sizeof(string), "You have deposited %d materials in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some materials and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d materials into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough materials to deposit.");
- }
- }
- else if(strcmp(choice, "Crack", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] >= amount)
- {
- if(amount + HouseInfo[PlayerInfo[playerid][pHouse]][hCrack] > 100000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Your house safe is already full of crack!");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse]][hCrack]+=amount;
- PlayerInfo[playerid][pCrack] -= amount;
- format(string, sizeof(string), "You have deposited %d grams of crack in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some crack and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d grams of crack into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough crack to deposit.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hdeposit [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Cash, Pot, Crack, Materials");
- }
- }
- }
- else if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse2]+60000)
- {
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID)
- {
- if(strcmp(choice, "Cash", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pCash] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney]+=amount;
- PlayerInfo[playerid][pCash] -= amount;
- format(string, sizeof(string), "You have deposited $%d in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some money and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited $%d into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough money to deposit.");
- }
- }
- else if(strcmp(choice, "Pot", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pPot] >= amount)
- {
- if(amount + HouseInfo[PlayerInfo[playerid][pHouse2]][hPot] > 100000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Your house safe is already full of pot!");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse2]][hPot]+=amount;
- PlayerInfo[playerid][pPot] -= amount;
- format(string, sizeof(string), "You have deposited %d grams of pot in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some pot and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d grams of pot into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough pot to deposit.");
- }
- }
- else if(strcmp(choice, "Materials", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pMats] >= amount)
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hMaterials]+=amount;
- PlayerInfo[playerid][pMats] -= amount;
- format(string, sizeof(string), "You have deposited %d materials in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some materials and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d materials into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough materials to deposit.");
- }
- }
- else if(strcmp(choice, "Crack", true) == 0)
- {
- if(amount < 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't deposit less than one.");
- return 1;
- }
- if(PlayerInfo[playerid][pCrack] >= amount)
- {
- if(amount + HouseInfo[PlayerInfo[playerid][pHouse2]][hCrack] > 100000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Your house safe is already full of crack!");
- return 1;
- }
- HouseInfo[PlayerInfo[playerid][pHouse2]][hCrack]+=amount;
- PlayerInfo[playerid][pCrack] -= amount;
- format(string, sizeof(string), "You have deposited %d grams of crack in your house safe.", amount);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string,sizeof(string), "* %s takes out some crack and puts it in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SaveHouses();
- OnPlayerStatsUpdate(playerid);
- /*new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(string,sizeof(string),"%s (IP: %s) has deposited %d grams of crack into their house (house ID %d).",GetPlayerNameEx(playerid),ip,amount,PlayerInfo[playerid][pHouse2]);
- Log("logs/house.log", string);*/
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have enough crack to deposit.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hdeposit [name] [amount]");
- SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Cash, Pot, Crack, Materials");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in any house");
- }
- return 1;
- }
- CMD:hbalance(playerid, params[])
- {
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse]+60000)
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID)
- {
- new weaponsinlocker;
- for(new s = 0; s < 5; s++)
- {
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][s] != 0)
- {
- weaponsinlocker++;
- }
- }
- new string[80];
- format(string, sizeof(string), "Gunlocker(s): %d/%d | Cash: $%d | Pot: %d | Crack: %d | Materials: %d", weaponsinlocker,HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade], HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney], HouseInfo[PlayerInfo[playerid][pHouse]][hPot], HouseInfo[PlayerInfo[playerid][pHouse]][hCrack], HouseInfo[PlayerInfo[playerid][pHouse]][hMaterials]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- else if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse2]+60000)
- {
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID)
- {
- new weaponsinlocker;
- for(new s = 0; s < 5; s++)
- {
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][s] != 0)
- {
- weaponsinlocker++;
- }
- }
- new string[80];
- format(string, sizeof(string), "Gunlocker(s): %d/%d | Cash: $%d | Pot: %d | Crack: %d | Materials: %d", weaponsinlocker,HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade], HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney], HouseInfo[PlayerInfo[playerid][pHouse2]][hPot], HouseInfo[PlayerInfo[playerid][pHouse2]][hCrack], HouseInfo[PlayerInfo[playerid][pHouse2]][hMaterials]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not inside a house you own.");
- }
- return 1;
- }
- CMD:getgun(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- new string[128], slot;
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse]+60000)
- {
- if(PlayerInfo[playerid][pHouse])
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- if(sscanf(params, "d", slot))
- {
- new weaponname[50];
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- format(string, sizeof(string), "*** %s's Safe ***", GetPlayerNameEx(playerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- for(new s = 0; s < 5; s++)
- {
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][s] != 0)
- {
- GetWeaponName(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][s], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "Slot %d: %s", s+1, weaponname);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getgun [slot]");
- return 1;
- }
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before getting another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new maxslots = HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade];
- if(slot > maxslots)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1] != 0)
- {
- new weaponname[50];
- GetWeaponName(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1], weaponname, sizeof(weaponname));
- GivePlayerValidWeapon(playerid, HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1], 60000);
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1] = 0;
- if(strcmp(weaponname, "silenced pistol", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a silenced pistol from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a silenced pistol from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "desert eagle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a Desert Eagle from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a Desert Eagle from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "shotgun", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a shotgun from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a shotgun from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "combat shotgun", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a combat shotgun from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a combat shotgun from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "mp5", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an MP5 from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an MP5 from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "ak47", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an AK-47 from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an AK-47 from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "m4", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an M4 from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an M4 from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "rifle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a rifle from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a rifle from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "sniper rifle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a sniper rifle from your gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn a sniper rifle from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(strcmp(weaponname, "micro smg", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an uzi from your gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn an uzi from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(strcmp(weaponname, "tec9", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an uzi from your gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn an uzi from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have a weapon stored in that slot.");
- return 1;
- }
- }
- }
- else if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse2]+60000)
- {
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- if(sscanf(params, "d", slot))
- {
- new weaponname[50];
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- format(string, sizeof(string), "*** %s's Safe ***", GetPlayerNameEx(playerid));
- SendClientMessage(playerid, COLOR_WHITE, string);
- for(new s = 0; s < 5; s++)
- {
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][s] != 0)
- {
- GetWeaponName(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][s], weaponname, sizeof(weaponname));
- format(string, sizeof(string), "Slot %d: %s", s+1, weaponname);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- SendClientMessage(playerid, COLOR_GREEN, "________________________________________________");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getgun [slot]");
- return 1;
- }
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before getting another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new maxslots = HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade];
- if(slot > maxslots)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1] != 0)
- {
- new weaponname[50];
- GetWeaponName(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1], weaponname, sizeof(weaponname));
- GivePlayerValidWeapon(playerid, HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1], 60000);
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1] = 0;
- if(strcmp(weaponname, "silenced pistol", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a silenced pistol from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a silenced pistol from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "desert eagle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a Desert Eagle from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a Desert Eagle from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "shotgun", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a shotgun from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a shotgun from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "combat shotgun", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a combat shotgun from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a combat shotgun from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "mp5", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an MP5 from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an MP5 from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "ak47", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an AK-47 from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an AK-47 from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "m4", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an M4 from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn an M4 from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "rifle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a rifle from your gun locker.");
- format(string,sizeof(string), "* %s has withdrawn a rifle from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- if(strcmp(weaponname, "sniper rifle", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn a sniper rifle from your gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn a sniper rifle from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(strcmp(weaponname, "micro smg", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an uzi from your gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn an uzi from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(strcmp(weaponname, "tec9", true, strlen(weaponname)) == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have withdrawn an uzi from your gun locker.");
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- format(string,sizeof(string), "* %s has withdrawn an uzi from their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have a weapon stored in that slot.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in any house");
- }
- return 1;
- }
- CMD:storegun(playerid, params[])
- {
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't use this command while on-duty as admin.");
- return 1;
- }
- if(GetPVarInt(playerid, "PBM") > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not able to do this while in a paintball game.");
- return 1;
- }
- if(GetPVarInt(playerid, "EventToken") != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't use this while you're in an event.");
- return 1;
- }
- new string[128], weaponchoice[32], slot;
- if(sscanf(params, "s[32]d", weaponchoice, slot)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /storegun [weapon] [slot]");
- if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse]+60000)
- {
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID)
- {
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before depositing another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new maxslots = HouseInfo[PlayerInfo[playerid][pHouse]][hGLUpgrade];
- if(slot > maxslots)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have a weapon stored in that slot already.");
- return 1;
- }
- new weapon;
- if(strcmp(weaponchoice, "sdpistol", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 23 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a silenced pistol into your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their silenced pistol in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "deagle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 24 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a Desert Eagle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their Desert Eagle in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "shotgun", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 25 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a shotgun in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Shotgun in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "spas12", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 27 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a combat shotgun in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Combat Shotgun in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "mp5", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 29 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an MP5 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their MP5 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "ak47", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 30 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an AK-47 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their AK-47 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "m4", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 31 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an M4 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their M4 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "rifle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 33 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a rifle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their riflein their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "sniper", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 34 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a sniper rifle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their sniper rifle in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "uzi", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 28 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an uzi in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their uzi in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "tec9", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 32 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a tec9 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their tec9 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- if(weapon == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon.");
- if(HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1] == 0)
- {
- HouseInfo[PlayerInfo[playerid][pHouse]][hWeapons][slot-1] = weapon;
- RemovePlayerWeapon(playerid, weapon);
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- return 1;
- }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid weapon name!"); return 1; }
- }
- }
- else if(GetPlayerVirtualWorld(playerid) == PlayerInfo[playerid][pHouse2]+60000)
- {
- if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID)
- {
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- format(string, sizeof(string), " You must wait %d seconds before depositing another weapon.", GetPVarInt(playerid, "GiveWeaponTimer"));
- SendClientMessage(playerid,COLOR_GREY,string);
- return 1;
- }
- new maxslots = HouseInfo[PlayerInfo[playerid][pHouse2]][hGLUpgrade];
- if(slot > maxslots)
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid slot.");
- return 1;
- }
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1] != 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have a weapon stored in that slot already.");
- return 1;
- }
- new weapon;
- if(strcmp(weaponchoice, "sdpistol", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 23 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a silenced pistol into your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their silenced pistol in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "deagle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][2] == 24 && PlayerInfo[playerid][pAGuns][2] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a Desert Eagle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][2];
- format(string,sizeof(string), "* %s deposited their Desert Eagle in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "shotgun", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 25 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a shotgun in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Shotgun in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "spas12", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][3] == 27 && PlayerInfo[playerid][pAGuns][3] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a combat shotgun in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][3];
- format(string,sizeof(string), "* %s deposited their Combat Shotgun in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "mp5", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 29 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an MP5 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their MP5 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "ak47", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 30 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an AK-47 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their AK-47 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "m4", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][5] == 31 && PlayerInfo[playerid][pAGuns][5] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an M4 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][5];
- format(string,sizeof(string), "* %s deposited their M4 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "rifle", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 33 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a rifle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their riflein their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "sniper", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][6] == 34 && PlayerInfo[playerid][pAGuns][6] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a sniper rifle in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][6];
- format(string,sizeof(string), "* %s deposited their sniper rifle in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "uzi", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 28 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited an uzi in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their uzi in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(strcmp(weaponchoice, "tec9", true, strlen(weaponchoice)) == 0)
- {
- if(PlayerInfo[playerid][pGuns][4] == 29 && PlayerInfo[playerid][pAGuns][4] == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have deposited a tec9 in your gun locker.");
- weapon = PlayerInfo[playerid][pGuns][4];
- format(string,sizeof(string), "* %s deposited their tec9 in their house safe.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPVarInt(playerid, "GiveWeaponTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- if(weapon == 0) return SendClientMessage(playerid, COLOR_GREY, "You don't have that weapon.");
- if(HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1] == 0)
- {
- HouseInfo[PlayerInfo[playerid][pHouse2]][hWeapons][slot-1] = weapon;
- RemovePlayerWeapon(playerid, weapon);
- SaveHouses();
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- return 1;
- }
- else { SendClientMessage(playerid,COLOR_GREY," Invalid weapon name!"); return 1; }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in any house");
- }
- return 1;
- }
- CMD:home(playerid, params[])
- {
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 1;
- }
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID)
- {
- SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorX], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorY], HouseInfo[PlayerInfo[playerid][pHouse]][hExteriorZ], 4.0);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
- }
- else
- {
- GameTextForPlayer(playerid, "~w~You're homeless", 5000, 1);
- }
- return 1;
- }
- CMD:houseinvite(playerid, params[])
- {
- new giveplayerid;
- if(PlayerInfo[playerid][pHouse] == INVALID_HOUSE_ID)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
- return 1;
- }
- else
- {
- if(sscanf(params, "u", giveplayerid)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /houseinvite [playerid/partofname]");
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't /houseinvite yourself!");
- return 1;
- }
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new string[59 + MAX_PLAYER_NAME];
- hInviteHouse[giveplayerid] = PlayerInfo[playerid][pHouse];
- hInviteOffer[giveplayerid] = playerid;
- format(string, sizeof(string), " %s has invited you to their house (type /accept invite).", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), " You have invited %s to your house.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "Invalid player specified.");
- }
- return 1;
- }
- CMD:setvw(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, vw;
- if(sscanf(params, "ud", giveplayerid, vw)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setvw [playerid/partofname] [virtual world]");
- if(IsPlayerConnected(giveplayerid))
- {
- PlayerInfo[giveplayerid][pVW] = vw;
- SetPlayerVirtualWorld(giveplayerid, vw);
- format(string, sizeof(string), "You have set %s's virtual world to %d.", GetPlayerNameEx(giveplayerid), vw);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:setint(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid, int;
- if(sscanf(params, "ud", giveplayerid, int)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setint [playerid/partofname] [interiorid]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] <= PlayerInfo[playerid][pAdmin]) {
- PlayerInfo[giveplayerid][pInt] = int;
- SetPlayerInterior(giveplayerid, int);
- format(string, sizeof(string), "You have set %s's interior to %d.", GetPlayerNameEx(giveplayerid), int);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- } else return SendClientMessage(playerid, COLOR_GRAD1, "You can't execute this command on equal or higher level admins.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:setskin(playerid, params[]) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- return SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- new
- string[128],
- giveplayerid,
- skinid;
- if(sscanf(params, "ud", giveplayerid, skinid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [playerid/partofname] [skinid]");
- if(giveplayerid != INVALID_PLAYER_ID) {
- if(!IsInvalidSkin(skinid)) {
- if(GetPlayerSkin(giveplayerid) == skinid)
- return SendClientMessage(playerid, COLOR_WHITE, "That player is already wearing the skin you chose.");
- if(AdminDuty[giveplayerid] == 0 || giveplayerid == playerid) {
- PlayerInfo[giveplayerid][pSkin] = skinid;
- format(string, sizeof(string), "Your skin has been changed to ID %d by Admin %s.", skinid, GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- format(string, sizeof(string), "You have given %s skin ID %d.", GetPlayerNameEx(giveplayerid), skinid);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SetPlayerSkin(giveplayerid, PlayerInfo[giveplayerid][pSkin]);
- } else return SendClientMessage(playerid, COLOR_GRAD1, "You can't set skins for on-duty admins, unless you're setting your own skin.");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "Invalid skin ID!");
- }
- }
- else return SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- return 1;
- }
- CMD:gotoid(playerid, params[])
- {
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid))
- return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotoid [playerid/partofname]");
- new Float:plocx,Float:plocy,Float:plocz;
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(GetPlayerState(giveplayerid) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is spectating someone.");
- return 1;
- }
- if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't do this while spectating.");
- return 1;
- }
- GetPlayerPos(giveplayerid, plocx, plocy, plocz);
- Streamer_UpdateEx(playerid, plocx, plocy, plocz);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- fVehSpeed[playerid] = 0.0;
- }
- else
- {
- SetPlayerPos(playerid,plocx,plocy+2, plocz);
- }
- SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
- new giveplayeridvw = GetPlayerVirtualWorld(giveplayerid);
- new giveplayerint = GetPlayerInterior(giveplayerid);
- PlayerInfo[playerid][pVW] = giveplayeridvw;
- PlayerInfo[playerid][pInt] = giveplayerint;
- SendClientMessage(playerid, COLOR_WHITE, "You have been teleported!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:gethere(playerid, params[])
- {
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gethere [playerid/partofname]");
- new Float:plocx,Float:plocy,Float:plocz;
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && AdminDuty[giveplayerid] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't perform this action on an equal or higher level admin that is on-duty.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(GetPlayerState(giveplayerid) == PLAYER_STATE_SPECTATING)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player is spectating someone.");
- return 1;
- }
- GetPlayerPos(playerid, plocx, plocy, plocz);
- Streamer_UpdateEx(giveplayerid, plocx, plocy, plocz);
- SetPVarInt(playerid, "BeingTeleported", 1);
- if(GetPlayerState(giveplayerid) == 2)
- {
- TelePos[giveplayerid][0] = 0.0;
- TelePos[giveplayerid][1] = 0.0;
- fVehSpeed[giveplayerid] = 0.0;
- new tmpcar = GetPlayerVehicleID(giveplayerid);
- SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
- LinkVehicleToInterior(GetPlayerVehicleID(giveplayerid), GetPlayerInterior(playerid));
- SetPlayerInterior(giveplayerid, GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(GetPlayerVehicleID(giveplayerid), GetPlayerVirtualWorld(playerid));
- SetPlayerVirtualWorld(giveplayerid, GetPlayerVirtualWorld(playerid));
- }
- else
- {
- SetPlayerPos(giveplayerid,plocx,plocy+2, plocz);
- }
- SetPlayerInterior(giveplayerid, GetPlayerInterior(playerid));
- SetPlayerVirtualWorld(giveplayerid, GetPlayerVirtualWorld(playerid));
- new playeridvw = GetPlayerVirtualWorld(playerid);
- new playerint = GetPlayerInterior(playerid);
- PlayerInfo[giveplayerid][pVW] = playeridvw;
- PlayerInfo[giveplayerid][pInt] = playerint;
- SendClientMessage(giveplayerid, COLOR_WHITE, "You have been teleported!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- }
- else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified.");
- return 1;
- }
- CMD:slap(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >=2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap [playerid/partofname]");
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- SendClientMessage(playerid,COLOR_WHITE, "You can't slap a higher admin.");
- return 1;
- }
- new
- Float:shealth;
- if(IsPlayerConnected(giveplayerid)) {
- GetPlayerHealth(giveplayerid, shealth);
- SetPlayerHealth(giveplayerid, shealth-5);
- GetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]);
- SetPlayerPos(giveplayerid, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]+5);
- PlayerPlaySound(giveplayerid, 1130, PlayerInfo[giveplayerid][pPos_x], PlayerInfo[giveplayerid][pPos_y], PlayerInfo[giveplayerid][pPos_z]+5);
- format(string, sizeof(string), "AdmCmd: %s was slapped by %s",GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:freeze(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't freeze a higher admin.");
- return 1;
- }
- TogglePlayerControllable(giveplayerid, 0);
- SetPVarInt(giveplayerid, "IsFrozen", 1);
- format(string, sizeof(string), "AdmCmd: %s was frozen by %s",GetPlayerNameEx(giveplayerid),GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:unfreeze(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 2)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unfreeze [playerid/partofname]");
- if(IsPlayerConnected(giveplayerid))
- {
- DeletePVar(giveplayerid, "IsFrozen");
- TogglePlayerControllable(giveplayerid, 1);
- format(string, sizeof(string), "AdmCmd: %s was unfrozen by %s",GetPlayerNameEx(giveplayerid),GetPlayerNameEx(playerid));
- ABroadCast(COLOR_LIGHTRED,string,1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid player specified.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:spec(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- if(strcmp(params, "off", true) == 0)
- {
- if(Spectating[playerid] > 0 && PlayerInfo[playerid][pAdmin] >= 2)
- {
- GettingSpectated[Spectate[playerid]] = 999;
- Spectating[playerid] = 0;
- Spectate[playerid] = 999;
- SetPVarInt(playerid, "SpecOff", 1);
- TogglePlayerSpectating(playerid, false);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not spectating anyone.");
- return 1;
- }
- }
- if(strcmp(params, "o", true) == 0)
- {
- if(Spectating[playerid] > 0 && PlayerInfo[playerid][pAdmin] >= 2)
- {
- GettingSpectated[Spectate[playerid]] = 999;
- Spectating[playerid] = 0;
- Spectate[playerid] = 999;
- SetPVarInt(playerid, "SpecOff", 1);
- TogglePlayerSpectating(playerid, false);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not spectating anyone.");
- return 1;
- }
- }
- new giveplayerid;
- if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spec (player/off)");
- if(IsPlayerConnected(giveplayerid))
- {
- if(InsideTut[giveplayerid] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "NOTE: This player is in the tutorial. Please consider this before assuming that they're air-breaking.");
- }
- if(GetPVarInt(giveplayerid, "PBM") > 0) SendClientMessage(playerid, COLOR_WHITE, "NOTE: This player is in paintball. Ensure they haven't stepped out of the boundaries before assuming they are airbreaking.");
- if(Spectating[playerid] == 0)
- {
- new Float: pPositions[ 3 ];
- GetPlayerPos(playerid, pPositions[0], pPositions[1], pPositions[2]);
- SetPVarFloat(playerid, "SpecPosX", pPositions[0]);
- SetPVarFloat(playerid, "SpecPosY", pPositions[1]);
- SetPVarFloat(playerid, "SpecPosZ", pPositions[2]);
- SetPVarInt(playerid, "SpecInt", GetPlayerInterior(playerid));
- SetPVarInt(playerid, "SpecVW", GetPlayerVirtualWorld(playerid));
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- TogglePlayerSpectating(playerid, true);
- new carid = GetPlayerVehicleID(giveplayerid);
- PlayerSpectateVehicle(playerid, carid);
- SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
- }
- else
- {
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, giveplayerid);
- SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
- }
- GettingSpectated[giveplayerid] = playerid;
- Spectate[playerid] = giveplayerid;
- Spectating[playerid] = 1;
- }
- else
- {
- if(IsPlayerInAnyVehicle(giveplayerid))
- {
- TogglePlayerSpectating(playerid, true);
- new carid = GetPlayerVehicleID(giveplayerid);
- PlayerSpectateVehicle(playerid, carid);
- SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
- }
- else
- {
- TogglePlayerSpectating(playerid, true);
- PlayerSpectatePlayer(playerid, giveplayerid);
- SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
- SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
- }
- GettingSpectated[Spectate[playerid]] = 999;
- GettingSpectated[giveplayerid] = playerid;
- Spectate[playerid] = giveplayerid;
- Spectating[playerid] = 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Target is not available.");
- }
- return 1;
- }
- CMD:dmpedit(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- new string[128], choice[32], mapiconid, amount;
- if(sscanf(params, "s[32]dD", choice, mapiconid, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dmpedit [name] [mapiconid] [(Optional)amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Position, MarkerType, Color, Delete");
- return 1;
- }
- if(mapiconid < 0 || mapiconid >= MAX_DMAPICONS)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid Map Icon ID!");
- }
- if(strcmp(choice, "position", true) == 0)
- {
- GetPlayerPos(playerid, DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ]);
- DMPInfo[mapiconid][dmpInt] = GetPlayerInterior(playerid);
- DMPInfo[mapiconid][dmpVW] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the position!");
- if(IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
- DMPInfo[mapiconid][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ], DMPInfo[mapiconid][dmpMarkerType], DMPInfo[mapiconid][dmpColor], DMPInfo[mapiconid][dmpVW], DMPInfo[mapiconid][dmpInt], -1, 500.0);
- SaveDynamicMapIcons();
- format(string, sizeof(string), "%s has edited MapIconID %d's Position.", GetPlayerNameEx(playerid), mapiconid);
- Log("logs/dmpedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "delete", true) == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have deleted the map icon!");
- DMPInfo[mapiconid][dmpPosX] = 0.0;
- DMPInfo[mapiconid][dmpPosY] = 0.0;
- DMPInfo[mapiconid][dmpPosZ] = 0.0;
- DMPInfo[mapiconid][dmpVW] = 0;
- DMPInfo[mapiconid][dmpInt] = 0;
- DMPInfo[mapiconid][dmpMarkerType] = 0;
- DMPInfo[mapiconid][dmpColor] = 0;
- SaveDynamicMapIcons();
- if(IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
- format(string, sizeof(string), "%s has deleted MapIconID %d.", GetPlayerNameEx(playerid), mapiconid);
- Log("logs/dmpedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "markertype", true) == 0)
- {
- DMPInfo[mapiconid][dmpMarkerType] = amount;
- format(string, sizeof(string), "You have set the marker type to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
- DMPInfo[mapiconid][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ], DMPInfo[mapiconid][dmpMarkerType], DMPInfo[mapiconid][dmpColor], DMPInfo[mapiconid][dmpVW], DMPInfo[mapiconid][dmpInt], -1, 500.0);
- format(string, sizeof(string), "%s has edited MapIconID %d's Marker Type to %d.", GetPlayerNameEx(playerid), mapiconid, amount);
- Log("logs/dmpedit.log", string);
- }
- else if(strcmp(choice, "color", true) == 0)
- {
- DMPInfo[mapiconid][dmpColor] = amount;
- format(string, sizeof(string), "You have set the color to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- if(IsValidDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID])) DestroyDynamicMapIcon(DMPInfo[mapiconid][dmpMapIconID]);
- DMPInfo[mapiconid][dmpMapIconID] = CreateDynamicMapIcon(DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ], DMPInfo[mapiconid][dmpMarkerType], DMPInfo[mapiconid][dmpColor], DMPInfo[mapiconid][dmpVW], DMPInfo[mapiconid][dmpInt], -1, 500.0);
- format(string, sizeof(string), "%s has edited MapIconID %d's Color to %d.", GetPlayerNameEx(playerid), mapiconid, amount);
- Log("logs/dmpedit.log", string);
- }
- SaveDynamicMapIcons();
- return 1;
- }
- CMD:dmpnext(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- SendClientMessage(playerid, COLOR_RED, "* Listing next available map icon...");
- for(new x;x<MAX_DMAPICONS;x++)
- {
- if(DMPInfo[x][dmpMarkerType] == 0)
- {
- new string[128];
- format(string, sizeof(string), "%d is available to use.", x);
- SendClientMessage(playerid, COLOR_WHITE, string);
- break;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- return 1;
- }
- CMD:dmpnear(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- SendClientMessage(playerid, COLOR_RED, "* Listing all map icons within 30 meters of you");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- for(new i;i<MAX_DMAPICONS;i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 30, DMPInfo[i][dmpPosX], DMPInfo[i][dmpPosY], DMPInfo[i][dmpPosZ]))
- {
- if(DMPInfo[i][dmpMarkerType] != 0)
- {
- new string[128];
- format(string, sizeof(string), "MapIcon ID %d | %f from you", i, GetDistance(DMPInfo[i][dmpPosX], DMPInfo[i][dmpPosY], DMPInfo[i][dmpPosZ], X, Y, Z));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:gotodmp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use this command!");
- return 1;
- }
- new mapiconid;
- if(sscanf(params, "d", mapiconid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotodmp [mapiconid]");
- if(mapiconid >= MAX_DMAPICONS || mapiconid < 0)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gotodmp [mapiconid]");
- return 1;
- }
- SetPlayerPos(playerid, DMPInfo[mapiconid][dmpPosX], DMPInfo[mapiconid][dmpPosY], DMPInfo[mapiconid][dmpPosZ]);
- SetPlayerVirtualWorld(playerid, DMPInfo[mapiconid][dmpVW]);
- SetPlayerInterior(playerid, DMPInfo[mapiconid][dmpInt]);
- return 1;
- }
- CMD:ddnear(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_RED, "* Listing all dynamic doors within 15 meters of you");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- for(new i;i<MAX_DDOORS;i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 15, DDoorsInfo[i][ddExteriorX], DDoorsInfo[i][ddExteriorY], DDoorsInfo[i][ddExteriorZ]))
- {
- if(DDoorsInfo[i][ddDescription] != 0)
- {
- new string[128];
- format(string, sizeof(string), "DynamicDoor ID %d | %f from you", i, GetDistance(DDoorsInfo[i][ddExteriorX], DDoorsInfo[i][ddExteriorY], DDoorsInfo[i][ddExteriorZ], X, Y, Z));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- }
- return 1;
- }
- CMD:ddedit(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], choice[32], doorid, amount;
- if(sscanf(params, "s[32]dD", choice, doorid, amount))
- {
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ddedit [name] [doorid] [amount]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: Exterior, Interior, CustomInterior, CustomExterior, VIP");
- SendClientMessage(playerid, COLOR_GREY, "Gang, Faction, Wanted, Admin, VehicleAble, Color, PickupModel, Delete");
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- SendClientMessage(playerid, COLOR_GREY, "NotEditable");
- }
- return 1;
- }
- if(doorid >= MAX_DDOORS)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Invalid Door ID!");
- return 1;
- }
- if(strcmp(choice, "noteditable", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- if(DDoorsInfo[doorid][ddNotEditable] == 0)
- {
- DDoorsInfo[doorid][ddNotEditable] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Door set to not editable (can no longer be edited)!");
- }
- else
- {
- DDoorsInfo[doorid][ddNotEditable] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Door set to editable (can be edited again)!");
- }
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's NotEditable.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- }
- return 1;
- }
- if(DDoorsInfo[doorid][ddNotEditable] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This door has been set to non-editable by a Level 6 Admin, contact them if you wish to make any changes.");
- return 1;
- }
- if(strcmp(choice, "interior", true) == 0)
- {
- GetPlayerPos(playerid, DDoorsInfo[doorid][ddInteriorX], DDoorsInfo[doorid][ddInteriorY], DDoorsInfo[doorid][ddInteriorZ]);
- GetPlayerFacingAngle(playerid, DDoorsInfo[doorid][ddInteriorA]);
- DDoorsInfo[doorid][ddInteriorInt] = GetPlayerInterior(playerid);
- DDoorsInfo[doorid][ddInteriorVW] = GetPlayerVirtualWorld(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the interior!");
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Interior.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "custominterior", true) == 0)
- {
- if(DDoorsInfo[doorid][ddCustomInterior] == 0)
- {
- DDoorsInfo[doorid][ddCustomInterior] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Door set to custom interior!");
- }
- else
- {
- DDoorsInfo[doorid][ddCustomInterior] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Door set to normal (not custom) interior!");
- }
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's CustomInterior.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "customexterior", true) == 0)
- {
- if(DDoorsInfo[doorid][ddCustomExterior] == 0)
- {
- DDoorsInfo[doorid][ddCustomExterior] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Door set to custom exterior!");
- }
- else
- {
- DDoorsInfo[doorid][ddCustomExterior] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Door set to normal (not custom) exterior!");
- }
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's CustomExterior.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "exterior", true) == 0)
- {
- GetPlayerPos(playerid, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]);
- GetPlayerFacingAngle(playerid, DDoorsInfo[doorid][ddExteriorA]);
- DDoorsInfo[doorid][ddExteriorVW] = GetPlayerVirtualWorld(playerid);
- DDoorsInfo[doorid][ddExteriorInt] = GetPlayerInterior(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the exterior!");
- //if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- if(IsValidDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID])) DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
- CreateDynamicDoor(doorid);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Exterior.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- }
- else if(strcmp(choice, "donator", true) == 0)
- {
- DDoorsInfo[doorid][ddVIP] = amount;
- format(string, sizeof(string), "You have changed the Donator Level to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Donator Level.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "gang", true) == 0)
- {
- DDoorsInfo[doorid][ddGang] = amount;
- format(string, sizeof(string), "You have changed the Family to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Family.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "faction", true) == 0)
- {
- DDoorsInfo[doorid][ddFaction] = amount;
- format(string, sizeof(string), "You have changed the Faction to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Faction.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "admin", true) == 0)
- {
- DDoorsInfo[doorid][ddAdmin] = amount;
- format(string, sizeof(string), "You have changed the Admin Level to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Admin Level.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "wanted", true) == 0)
- {
- DDoorsInfo[doorid][ddWanted] = amount;
- format(string, sizeof(string), "You have changed the Wanted to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Wanted.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "vehicleable", true) == 0)
- {
- DDoorsInfo[doorid][ddVehicleAble] = amount;
- format(string, sizeof(string), "You have changed the VehicleAble to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's VehicleAble.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "color", true) == 0)
- {
- DDoorsInfo[doorid][ddColor] = amount;
- format(string, sizeof(string), "You have changed the Color to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- //if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- if(IsValidDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID])) DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
- CreateDynamicDoor(doorid);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Color.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "pickupmodel", true) == 0)
- {
- DDoorsInfo[doorid][ddPickupModel] = amount;
- format(string, sizeof(string), "You have changed the PickupModel to %d.", amount);
- SendClientMessage(playerid, COLOR_WHITE, string);
- //if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- if(IsValidDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID])) DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
- CreateDynamicDoor(doorid);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's PickupModel.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- else if(strcmp(choice, "delete", true) == 0)
- {
- if(DDoorsInfo[doorid][ddDescription] == 0) {
- format(string, sizeof(string), "DoorID %d does not exist.", doorid);
- SendClientMessage(playerid, COLOR_WHITE, string);
- return 1;
- }
- //if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
- DDoorsInfo[doorid][ddDescription] = 0;
- DDoorsInfo[doorid][ddCustomInterior] = 0;
- DDoorsInfo[doorid][ddExteriorVW] = 0;
- DDoorsInfo[doorid][ddExteriorInt] = 0;
- DDoorsInfo[doorid][ddInteriorVW] = 0;
- DDoorsInfo[doorid][ddInteriorInt] = 0;
- DDoorsInfo[doorid][ddExteriorX] = 0;
- DDoorsInfo[doorid][ddExteriorY] = 0;
- DDoorsInfo[doorid][ddExteriorZ] = 0;
- DDoorsInfo[doorid][ddExteriorA] = 0;
- DDoorsInfo[doorid][ddInteriorX] = 0;
- DDoorsInfo[doorid][ddInteriorY] = 0;
- DDoorsInfo[doorid][ddInteriorZ] = 0;
- DDoorsInfo[doorid][ddInteriorA] = 0;
- DDoorsInfo[doorid][ddCustomExterior] = 0;
- DDoorsInfo[doorid][ddVIP] = 0;
- DDoorsInfo[doorid][ddGang] = 0;
- DDoorsInfo[doorid][ddFaction] = 0;
- DDoorsInfo[doorid][ddAdmin] = 0;
- DDoorsInfo[doorid][ddWanted] = 0;
- DDoorsInfo[doorid][ddVehicleAble] = 0;
- DDoorsInfo[doorid][ddColor] = 0;
- DDoorsInfo[doorid][ddPass] = 0;
- DDoorsInfo[doorid][ddLocked] = 0;
- DDoorsInfo[doorid][ddNotEditable] = 0;
- SaveDynamicDoors();
- format(string, sizeof(string), "You have deleted DoorID %d.", doorid);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s has deleted DoorID %d.", GetPlayerNameEx(playerid), doorid);
- Log("logs/ddedit.log", string);
- return 1;
- }
- return 1;
- }
- CMD:ddnext(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- SendClientMessage(playerid, COLOR_RED, "* Listing next available dynamic door...");
- for(new x;x<MAX_DDOORS;x++)
- {
- if(DDoorsInfo[x][ddDescription] == 0)
- {
- new string[128];
- format(string, sizeof(string), "%d is available to use.", x);
- SendClientMessage(playerid, COLOR_WHITE, string);
- break;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- return 1;
- }
- CMD:ddname(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- return 1;
- }
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128], doorid, doorname[128];
- if(sscanf(params, "ds[128]", doorid, doorname)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ddname [doorid] [name]");
- if(DDoorsInfo[doorid][ddNotEditable] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This door has been set to non-editable by a Level 6 Admin, contact them if you wish to make any changes.");
- return 1;
- }
- format(DDoorsInfo[doorid][ddDescription], 128, "%s", doorname);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the name of the door!");
- //if(IsValidDynamicPickup(DDoorsInfo[doorid][ddPickupID])) DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- DestroyPickup(DDoorsInfo[doorid][ddPickupID]);
- if(IsValidDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID])) DestroyDynamic3DTextLabel(DDoorsInfo[doorid][ddTextID]);
- CreateDynamicDoor(doorid);
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's Name to %s.", GetPlayerNameEx(playerid), doorid, doorname);
- Log("logs/ddedit.log", string);
- return 1;
- }
- CMD:lockdoor(playerid, params[])
- {
- for(new i = 0; i < sizeof(DDoorsInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3.0,DDoorsInfo[i][ddExteriorX], DDoorsInfo[i][ddExteriorY], DDoorsInfo[i][ddExteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddExteriorVW] || IsPlayerInRangeOfPoint(playerid,3.0,DDoorsInfo[i][ddInteriorX], DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddInteriorVW]) {
- if(DDoorsInfo[i][ddPass] < 1)
- return SendClientMessage(playerid, COLOR_GREY, "This door isn't allowed to be locked");
- if(strcmp(DDoorsInfo[i][ddPass], "None", true) == 0)
- return SendClientMessage(playerid, COLOR_GREY, "This door isn't allowed to be locked");
- ShowPlayerDialogEx(playerid, DOORLOCK, DIALOG_STYLE_INPUT, "Door Security","Enter the password for this door","Login","Cancel");
- SetPVarInt(playerid, "Door", i);
- }
- }
- return 1;
- }
- CMD:ddpass(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 5)
- return SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new string[128],
- doorid,
- doorpass[24];
- if(sscanf(params, "ds[24]", doorid, doorpass)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ddpass [doorid] [pass]"); SendClientMessage(playerid, COLOR_WHITE, "To remove the password on the door set the password to 'none' "); return 1; }
- if(DDoorsInfo[doorid][ddNotEditable] == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This door has been set to non-editable by a Level 6 Admin, contact them if you wish to make any changes.");
- return 1;
- }
- format(DDoorsInfo[doorid][ddPass], 24, "%s", doorpass);
- SendClientMessage(playerid, COLOR_WHITE, "You have changed the password of that door.");
- SaveDynamicDoors();
- format(string, sizeof(string), "%s has edited DoorID %d's password to %s.", GetPlayerNameEx(playerid), doorid, doorpass);
- Log("logs/ddedit.log", string);
- return 1;
- }
- CMD:goindoor(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new doornum;
- if(sscanf(params, "d", doornum)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /goindoor [doornumber]");
- Streamer_UpdateEx(playerid, DDoorsInfo[doornum][ddInteriorX],DDoorsInfo[doornum][ddInteriorY],DDoorsInfo[doornum][ddInteriorZ]);
- SetPlayerInterior(playerid,DDoorsInfo[doornum][ddInteriorInt]);
- SetPlayerPos(playerid,DDoorsInfo[doornum][ddInteriorX],DDoorsInfo[doornum][ddInteriorY],DDoorsInfo[doornum][ddInteriorZ]);
- SetPlayerFacingAngle(playerid,DDoorsInfo[doornum][ddInteriorA]);
- if(DDoorsInfo[doornum][ddCustomInterior])
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- PlayerInfo[playerid][pInt] = DDoorsInfo[doornum][ddInteriorInt];
- PlayerInfo[playerid][pVW] = DDoorsInfo[doornum][ddInteriorVW];
- SetPlayerVirtualWorld(playerid, DDoorsInfo[doornum][ddInteriorVW]);
- }
- return 1;
- }
- CMD:gotodoor(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 5)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
- return 1;
- }
- new doornum;
- if(sscanf(params, "d", doornum)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotodoor [doornumber]");
- Streamer_UpdateEx(playerid, DDoorsInfo[doornum][ddExteriorX],DDoorsInfo[doornum][ddExteriorY],DDoorsInfo[doornum][ddExteriorZ]);
- if(DDoorsInfo[doornum][ddCustomExterior])
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerInterior(playerid,DDoorsInfo[doornum][ddExteriorInt]);
- SetPlayerPos(playerid,DDoorsInfo[doornum][ddExteriorX],DDoorsInfo[doornum][ddExteriorY],DDoorsInfo[doornum][ddExteriorZ]);
- SetPlayerFacingAngle(playerid,DDoorsInfo[doornum][ddExteriorA]);
- PlayerInfo[playerid][pInt] = DDoorsInfo[doornum][ddExteriorInt];
- SetPlayerVirtualWorld(playerid, DDoorsInfo[doornum][ddExteriorVW]);
- PlayerInfo[playerid][pVW] = DDoorsInfo[doornum][ddExteriorVW];
- }
- return 1;
- }
- CMD:doublexp(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 8)
- {
- new string[128];
- if(DoubleXP == 0)
- {
- SendClientMessageToAll(COLOR_PINK, "An Server Manager has enabled double experience! invite your friends and enjoy!");
- DoubleXP = 1;
- format(string, sizeof(string), "AdmCmd: %s has enabled double experience", GetPlayerNameEx(playerid));
- Log("logs/admin.log", string);
- }
- else
- {
- SendClientMessageToAll(COLOR_PINK, "Sadly, that will be all of the double experience event, good luck next time!");
- DoubleXP = 0;
- format(string, sizeof(string), "AdmCmd: %s has disabled double experience", GetPlayerNameEx(playerid));
- Log("logs/admin.log", string);
- }
- }
- return 1;
- }
- CMD:enter(playerid, params[])
- {
- if(GetPVarInt(playerid, "PBM") > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- return 1;
- }
- if(PlayerCuffed[playerid] >= 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- new string[128];
- for(new i = 0; i < sizeof(DDoorsInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.0,DDoorsInfo[i][ddExteriorX], DDoorsInfo[i][ddExteriorY], DDoorsInfo[i][ddExteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddExteriorVW])
- {
- if(DDoorsInfo[i][ddVIP] > 0 && PlayerInfo[playerid][pDonator] < DDoorsInfo[i][ddVIP]) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, you're not a high enough Donator level.");
- return 1;
- }
- if(DDoorsInfo[i][ddGang] > 0) {
- if(PlayerInfo[playerid][pGang] != DDoorsInfo[i][ddGang]) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, this door is gang restricted.");
- return 1;
- }
- }
- if(DDoorsInfo[i][ddFaction] > 0) {
- if(PlayerInfo[playerid][pFaction] != DDoorsInfo[i][ddFaction])
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, this door is faction restricted.");
- return 1;
- }
- }
- if(DDoorsInfo[i][ddAdmin] > 0 && PlayerInfo[playerid][pAdmin] < DDoorsInfo[i][ddAdmin]) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, you're not a high enough admin level.");
- return 1;
- }
- if(DDoorsInfo[i][ddWanted] > 0 && PlayerInfo[playerid][pWantedLevel] != 0) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, this door restricts those with wanted levels.");
- return 1;
- }
- if(DDoorsInfo[i][ddLocked] == 1) {
- return SendClientMessage(playerid, COLOR_GRAD2, "This door is currently locked.");
- }
- format(string, sizeof(string), "* %s has entered %s.", GetPlayerNameEx(playerid), DDoorsInfo[i][ddDescription]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,DDoorsInfo[i][ddInteriorInt]);
- PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddInteriorInt];
- PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddInteriorVW];
- SetPVarInt(playerid, "DoorID", i);
- SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddInteriorVW]);
- if(DDoorsInfo[i][ddCustomInterior]) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorA]);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorVW]);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorInt]);
- }
- else {
- SetPlayerPos(playerid,DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- SetPlayerFacingAngle(playerid,DDoorsInfo[i][ddInteriorA]);
- SetCameraBehindPlayer(playerid);
- }
- foreach(Player, x)
- {
- if(IsABoomboxNearby(DDoorsInfo[i][ddInteriorX] ,DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ], x) < 150.0 && DDoorsInfo[i][ddInteriorVW] == BoomboxInfo[x][bbVW] && DDoorsInfo[i][ddInteriorInt] == BoomboxInfo[x][bbInt])
- {
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
- }
- }
- return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- }
- }
- for(new i = 0; i < sizeof(HouseInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
- {
- if(PlayerInfo[playerid][pHouse] == i || PlayerInfo[playerid][pHouse2] == i || HouseInfo[i][hLock] == 0 || PlayerInfo[playerid][pRenting] == i)
- {
- if(PlayerInfo[playerid][pHouse] == i || PlayerInfo[playerid][pHouse2] == i)
- {
- format(string, sizeof(string), "* %s has entered their house.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- format(string, sizeof(string), "* %s has entered %s's house.", GetPlayerNameEx(playerid), HouseInfo[i][hOwner]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = i+60000;
- SetPlayerVirtualWorld(playerid, i+60000);
- SetPVarInt(playerid, "HouseID", i);
- if(HouseInfo[i][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
- SetCameraBehindPlayer(playerid);
- if(PlayerInfo[playerid][pHouse] == i || PlayerInfo[playerid][pHouse2] == i)
- {
- GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
- }
- foreach(Player, x)
- {
- if(IsABoomboxNearby(HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ], x) < 150.0 && i+60000 == BoomboxInfo[x][bbVW] && HouseInfo[i][hHInteriorWorld] == BoomboxInfo[x][bbInt])
- {
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
- }
- }
- Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
- }
- return 1;
- }
- }
-
- // Hitman HQ
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1938.545898, 165.629531, 37.281250))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 666420);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerInterior(playerid, 42);
- PlayerInfo[playerid][pInt] = 42;
- SetPlayerPos(playerid, 1277.019165, -758.428771, 5080.750000);
- SetPlayerFacingAngle(playerid, 358.16);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50512);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2800.419433, -1070.314086, 30.693412))
- {
- if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerPos(playerid, 959.6879,677.0198,16.7539);
- SetPlayerFacingAngle(playerid, 186.9793);
- SetCameraBehindPlayer(playerid);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 959.6879,677.0198,16.7539);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- SetPlayerInterior(playerid, 0);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
- SetPlayerVirtualWorld(playerid, 0);
- PutPlayerInVehicle(playerid, tmpcar, 0);
- }
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5.0, 959.6879,677.0198,16.7539))
- {
- if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerPos(playerid, 2800.419433, -1073.314086, 30.693412);
- SetCameraBehindPlayer(playerid);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2800.419433, -1073.314086, 30.693412);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- SetPlayerInterior(playerid, 0);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
- SetPlayerVirtualWorld(playerid, 0);
- PutPlayerInVehicle(playerid, tmpcar, 0);
- }
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1974.8, -1671.1, 15.9))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 666420);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerInterior(playerid, 42);
- PlayerInfo[playerid][pInt] = 42;
- SetPlayerPos(playerid, 1256.2, -759.0, 5080.9);
- SetPlayerFacingAngle(playerid, 358.16);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50513);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 2205.8, -987.3 ,63.9))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 666420);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerInterior(playerid, 42);
- PlayerInfo[playerid][pInt] = 42;
- SetPlayerPos(playerid, 1266.2, -758.8, 5080.9);
- SetPlayerFacingAngle(playerid, 358.16);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50514);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
- }
- }
-
- // The Lubu Gentlemen's Club
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 511.817230, -1510.971679, 14.566996))
- {
- format(string, sizeof(string), "* %s has entered The Lubu Gentlemen's Club.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 373737);
- PlayerInfo[playerid][pVW] = 373737;
- SetPlayerInterior(playerid, 37);
- PlayerInfo[playerid][pInt] = 37;
- SetPlayerPos(playerid, -1077.946533, 613.206665, 1116.507812);
- SetPlayerFacingAngle(playerid, 92.42);
- SetCameraBehindPlayer(playerid);
-
- SetPVarInt(playerid, "DoorID", 50515);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=242774", -1087.677978, 615.239807, 1116.507812, 40.0, 1);
- }
- // The Tableau Club
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 561.802795, -1506.722412, 14.548986))
- {
- format(string, sizeof(string), "* %s has entered The Tableau Club.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 363636);
- PlayerInfo[playerid][pVW] = 363636;
- SetPlayerInterior(playerid, 36);
- PlayerInfo[playerid][pInt] = 36;
- SetPlayerPos(playerid, 308.045654, 1053.886840, 1098.540039);
- SetPlayerFacingAngle(playerid, 267.57);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 0);
- SetPVarInt(playerid, "DoorID", 50516);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200", 321.139465, 1034.947753, 1098.914062, 120.0, 1);
- }
- // The Tableau Club (VIP ROOM)
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 307.904296, 1025.602294, 1098.540039))
- {
- if(GetPlayerCash(playerid) >= 100)
- {
- format(string, sizeof(string), "* %s has entered The Tableau VIP Room.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerCash(playerid, -100);
- GameTextForPlayer(playerid, "~r~-$100", 3000, 1);
-
- SetPVarInt(playerid, "DoorID", 50517);
- SetPlayerVirtualWorld(playerid, 363636);
- PlayerInfo[playerid][pVW] = 363636;
- SetPlayerInterior(playerid, 36);
- PlayerInfo[playerid][pInt] = 36;
- SetPlayerPos(playerid, 293.066436, 1029.785278, 1104.560058);
- SetPlayerFacingAngle(playerid, 352.47);
- SetCameraBehindPlayer(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You do not have the cash for that.");
- }
- }
- // Santa Maria Surfer's Lounge
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 387.958374, -1870.688110, 7.835937))
- {
- format(string, sizeof(string), "* %s has entered Santa Maria Surfer's Lounge.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 353535);
- PlayerInfo[playerid][pVW] = 353535;
- SetPlayerInterior(playerid, 35);
- PlayerInfo[playerid][pInt] = 35;
- SetPlayerPos(playerid, 271.742034, 1074.419677, 5096.750000);
- SetPlayerFacingAngle(playerid, 86.54);
- SetPVarInt(playerid, "DoorID", 50518);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585", 271.742034, 1074.419677, 5096.750000, 120.0, 1);
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, vehicleid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 6.0) && GetVehicleModel(closestcar) == 519)
- {
- if(VehicleStatus{closestcar} == 1) return SendClientMessage(playerid, COLOR_WHITE, "You're not allowed to enter this Shamal as it's been damaged!");
- format(string, sizeof(string), "* %s enters the Shamal airplane as a passenger.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerPos(playerid, 2.509036, 23.118730, 1199.593750);
- SetPlayerFacingAngle(playerid, 82.14);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pVW] = closestcar;
- SetPlayerVirtualWorld(playerid, closestcar);
- SetPVarInt(playerid, "DoorID", 50519);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerInterior(playerid, 1);
- InsideShamal[playerid] = closestcar;
- SendClientMessage(playerid, COLOR_WHITE, "Type /exit near the door to exit the vehicle, or /window to look outside.");
-
- foreach(Player, x)
- {
- if(IsABoomboxNearby(2.509036, 23.118730, 1199.593750, x) < 150.0 && closestcar == BoomboxInfo[x][bbVW] && BoomboxInfo[x][bbInt] == 1)
- {
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
- }
- }
- }
- return 1;
- }
- CMD:exit(playerid, params[])
- {
- if(GetPVarInt(playerid, "PBM") > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] > 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- new string[128];
- for(new i = 0; i < sizeof(DDoorsInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3,DDoorsInfo[i][ddInteriorX], DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddInteriorVW])
- {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,DDoorsInfo[i][ddExteriorInt]);
- PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddExteriorInt];
- SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddExteriorVW]);
- PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddExteriorVW];
- if(DDoorsInfo[i][ddCustomExterior]) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorA]);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorVW]);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorInt]);
- }
- else {
- SetPlayerPos(playerid,DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
- SetPlayerFacingAngle(playerid, DDoorsInfo[i][ddExteriorA]);
- SetCameraBehindPlayer(playerid);
- }
- return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- }
- }
- for(new i = 0; i < sizeof(HouseInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]) && PlayerInfo[playerid][pVW] == i+60000)
- {
- format(string, sizeof(string), "* %s has exited the house.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- if(HouseInfo[i][hCustomExterior])
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
- SetPlayerFacingAngle(playerid, HouseInfo[i][hExteriorA]);
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- return Streamer_UpdateEx(playerid, HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
- }
- }
-
- // Hitman HQ
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1277.019165, -758.428771, 5080.750000) && (GetPlayerVirtualWorld(playerid) == 666420))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 1938.545898, 165.629531, 37.281250);
- SetPlayerFacingAngle(playerid, 338.54);
- SetCameraBehindPlayer(playerid);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1256.2, -759.0, 5080.9) && (GetPlayerVirtualWorld(playerid) == 666420))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 1974.8, -1671.1, 15.9);
- SetPlayerFacingAngle(playerid, 338.54);
- SetCameraBehindPlayer(playerid);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1266.2, -758.8, 5080.9) && (GetPlayerVirtualWorld(playerid) == 666420))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 2205.8, -987.3 ,63.9);
- SetPlayerFacingAngle(playerid, 338.54);
- SetCameraBehindPlayer(playerid);
- }
- }
-
- // The Lubu Gentlemen's Club
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -1077.946533, 613.206665, 1116.507812) && (GetPlayerVirtualWorld(playerid) == 373737))
- {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 511.817230, -1510.971679, 14.566996);
- SetPlayerFacingAngle(playerid, 272.11);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- }
- // The Tableau Club
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 308.045654, 1053.886840, 1098.540039) && (GetPlayerVirtualWorld(playerid) == 363636))
- {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 561.802795, -1506.722412, 14.548986);
- SetPlayerFacingAngle(playerid, 86.78);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- }
- // The Tableau Club (VIP ROOM)
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 293.066436, 1029.785278, 1104.560058) && (GetPlayerVirtualWorld(playerid) == 363636))
- {
- SetPlayerVirtualWorld(playerid, 363636);
- PlayerInfo[playerid][pVW] = 363636;
- SetPlayerInterior(playerid, 36);
- PlayerInfo[playerid][pInt] = 36;
- SetPlayerPos(playerid, 307.904296, 1025.602294, 1098.540039);
- SetPlayerFacingAngle(playerid, 264.06);
- SetCameraBehindPlayer(playerid);
- }
- // Santa Maria Surfer's Lounge
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 271.742034, 1074.419677, 5096.750000) && (GetPlayerVirtualWorld(playerid) == 353535))
- {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 387.958374, -1870.688110, 7.835937);
- SetPlayerFacingAngle(playerid, 89.99);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- }
- // Shamal
- else if(InsideShamal[playerid] != INVALID_VEHICLE_ID && IsPlayerInRangeOfPoint(playerid,3,2.509036, 23.118730, 1199.593750))
- {
- format(string, sizeof(string), "* %s exits the Shamal airplane.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519) {
- PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(playerid, 46, 60000);
- SetPlayerPos(playerid, 0.000000, 0.000000, 420.000000);
- }
- else {
- new Float:X, Float:Y, Float:Z;
- GetVehiclePos(InsideShamal[playerid], X, Y, Z);
- SetPlayerPos(playerid, X-4, Y-2.3, Z);
- new Float:XB, Float:YB, Float:ZB;
- GetVehiclePos(InsideShamal[playerid], XB, YB, ZB);
- if(ZB > 50.0) {
- PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(playerid, 46, 60000);
- }
- }
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerInterior(playerid, 0);
- InsideShamal[playerid] = INVALID_VEHICLE_ID;
- }
- return 1;
- }
- main()
- {
- printf("\n----------------------------------");
- printf("Sleepless Roleplay");
- printf("August 2020");
- printf("Created by Mikko Lee");
- printf("----------------------------------\n");
- }
- forward OnPlayerStatsUpdate(playerid);
- public OnPlayerStatsUpdate(playerid)
- {
- if(GetPVarInt(playerid, "TempName") != 1 && gPlayerLogged[playerid])
- {
- new string3[64];
- new playername3[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername3, sizeof(playername3));
- format(string3, sizeof(string3), "users/%s.ini", playername3);
- new File: hFile = fopen(string3, io_write);
- new var[156];
- format(var, 156, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
- format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
- format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
- format(var, 32, "AdminName=%s\n", PlayerInfo[playerid][pAdminName]);fwrite(hFile, var);
- format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
- format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
- format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
- format(var, 32, "HelperMod=%d\n",PlayerInfo[playerid][pHelperMod]);fwrite(hFile, var);
- format(var, 32, "Donator=%d\n",PlayerInfo[playerid][pDonator]);fwrite(hFile, var);
- format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBanned]);fwrite(hFile, var);
- format(var, 32, "WalkStyle=%d\n",PlayerInfo[playerid][pWalkStyle]);fwrite(hFile, var);
- format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermaBanned]);fwrite(hFile, var);
- format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
- format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
- format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
- format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
- format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
- format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
- format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
- format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
- format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
- format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
- format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pPos_r]);fwrite(hFile, var);
- format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
- format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pRespect]);fwrite(hFile, var);
- format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pNumber]);fwrite(hFile, var);
- format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
- format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
- format(var, 32, "Faction=%d\n",PlayerInfo[playerid][pFaction]);fwrite(hFile, var);
- format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
- format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
- format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
- format(var, 32, "Job2=%d\n",PlayerInfo[playerid][pJob2]);fwrite(hFile, var);
- format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
- format(var, 32, "SpawnArmor=%.1f\n",PlayerInfo[playerid][pSarmor]);fwrite(hFile, var);
- format(var, 32, "Cash=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
- format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(hFile, var);
- format(var, 32, "Insurance=%d\n",PlayerInfo[playerid][pInsurance]);fwrite(hFile, var);
- format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
- format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
- format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
- GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
- format(var, 32, "Health=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
- GetPlayerArmour(playerid,PlayerInfo[playerid][pArmor]);
- format(var, 32, "Armor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
- format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
- format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
- format(var, 32, "Radio=%d\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var);
- format(var, 32, "RadioFreq=%d\n",PlayerInfo[playerid][pRadioFreq]);fwrite(hFile, var);
- format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
- format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
- format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
- format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
- format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
- format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigar]);fwrite(hFile, var);
- format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
- format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
- format(var, 32, "House=%d\n",PlayerInfo[playerid][pHouse]);fwrite(hFile, var);
- format(var, 32, "House2=%d\n",PlayerInfo[playerid][pHouse2]);fwrite(hFile, var);
- format(var, 32, "Renting=%d\n",PlayerInfo[playerid][pRenting]);fwrite(hFile, var);
- format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
- format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVW]);fwrite(hFile, var);
- format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
- format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
- for(new s = 0; s < 12; s++)
- {
- format(var, 32, "Gun%d=%d\n", s, PlayerInfo[playerid][pGuns][s]);fwrite(hFile, var);
- }
- format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
- format(var, 32, "PayReady=%d\n",PlayerInfo[playerid][pPayReady]);fwrite(hFile, var);
- format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
- format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
- format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
- format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
- format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
- format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugSkill]);fwrite(hFile, var);
- format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
- format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
- format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
- format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
- format(var, 32, "TruckSkill=%d\n",PlayerInfo[playerid][pTruckSkill]);fwrite(hFile, var);
- format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
- //format(var, 32, "CraftSkill=%d\n",PlayerInfo[playerid][pCraftSkill]);fwrite(hFile, var);
- format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
- format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
- format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
- format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
- format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
- format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
- format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
- format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
- format(var, 32, "pWExists=%d\n",PlayerInfo[playerid][pWeedObject]);fwrite(hFile, var);
- format(var, 32, "pWX=%f\n",PlayerInfo[playerid][pWeedPos][0]);fwrite(hFile, var);
- format(var, 32, "pWY=%f\n",PlayerInfo[playerid][pWeedPos][1]);fwrite(hFile, var);
- format(var, 32, "pWZ=%f\n",PlayerInfo[playerid][pWeedPos][2]);fwrite(hFile, var);
- format(var, 32, "pWVW=%d\n",PlayerInfo[playerid][pWeedVW]);fwrite(hFile, var);
- format(var, 32, "pWInt=%d\n",PlayerInfo[playerid][pWeedInt]);fwrite(hFile, var);
- format(var, 32, "pWValue=%d\n",PlayerInfo[playerid][pWeedGrowth]);fwrite(hFile, var);
- format(var, 32, "pWSeeds=%d\n",PlayerInfo[playerid][pWSeeds]);fwrite(hFile, var);
- format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
- format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
- format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightStyle]);fwrite(hFile, var);
- format(var, 32, "Screwdriver=%d\n",PlayerInfo[playerid][pScrewdriver]);fwrite(hFile, var);
- format(var, 32, "Smslog=%d\n",PlayerInfo[playerid][pSmslog]);fwrite(hFile, var);
- format(var, 32, "Wristwatch=%d\n",PlayerInfo[playerid][pWristwatch]);fwrite(hFile, var);
- format(var, 32, "Tire=%d\n",PlayerInfo[playerid][pTire]);fwrite(hFile, var);
- format(var, 32, "Firstaid=%d\n",PlayerInfo[playerid][pFirstaid]);fwrite(hFile, var);
- format(var, 32, "Rccam=%d\n",PlayerInfo[playerid][pRccam]);fwrite(hFile, var);
- format(var, 32, "Receiver=%d\n",PlayerInfo[playerid][pReceiver]);fwrite(hFile, var);
- format(var, 32, "GPS=%d\n",PlayerInfo[playerid][pGPS]);fwrite(hFile, var);
- format(var, 32, "Sweep=%d\n",PlayerInfo[playerid][pSweep]);fwrite(hFile, var);
- format(var, 32, "SweepLeft=%d\n",PlayerInfo[playerid][pSweepLeft]);fwrite(hFile, var);
- format(var, 32, "Bugged=%d\n",PlayerInfo[playerid][pBugged]);fwrite(hFile, var);
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- format(var, 32, "pv%dPosX=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosX]);fwrite(hFile, var);
- format(var, 32, "pv%dPosY=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosY]);fwrite(hFile, var);
- format(var, 32, "pv%dPosZ=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosZ]);fwrite(hFile, var);
- format(var, 32, "pv%dPosAngle=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosAngle]);fwrite(hFile, var);
- format(var, 32, "pv%dModelId=%d\n", v, PlayerVehicleInfo[playerid][v][pvModelId]);fwrite(hFile, var);
- format(var, 32, "pv%dLock=%d\n", v, PlayerVehicleInfo[playerid][v][pvLock]);fwrite(hFile, var);
- format(var, 32, "pv%dLocked=%d\n", v, PlayerVehicleInfo[playerid][v][pvLocked]);fwrite(hFile, var);
- format(var, 32, "pv%dPaintJob=%d\n", v, PlayerVehicleInfo[playerid][v][pvPaintJob]);fwrite(hFile, var);
- format(var, 32, "pv%dColor1=%d\n", v, PlayerVehicleInfo[playerid][v][pvColor1]);fwrite(hFile, var);
- format(var, 32, "pv%dColor2=%d\n", v, PlayerVehicleInfo[playerid][v][pvColor2]);fwrite(hFile, var);
- format(var, 32, "pv%dPrice=%d\n", v, PlayerVehicleInfo[playerid][v][pvPrice]);fwrite(hFile, var);
- format(var, 32, "pv%dTicket=%d\n", v, PlayerVehicleInfo[playerid][v][pvTicket]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon0=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][0]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon1=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][1]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon2=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][2]);fwrite(hFile, var);
- format(var, 32, "pv%dWepUpgrade=%d\n", v, PlayerVehicleInfo[playerid][v][pvWepUpgrade]);fwrite(hFile, var);
- format(var, 32, "pv%dFuel=%.2f\n", v, PlayerVehicleInfo[playerid][v][pvFuel]);fwrite(hFile, var);
- format(var, 32, "pv%dImpound=%d\n", v, PlayerVehicleInfo[playerid][v][pvImpounded]);fwrite(hFile, var);
- format(var, 32, "pv%dSpawned=%d\n", v, PlayerVehicleInfo[playerid][v][pvSpawned]);fwrite(hFile, var);
- format(var, 32, "pv%dDisabled=%d\n", v, PlayerVehicleInfo[playerid][v][pvDisabled]);fwrite(hFile, var);
- format(var, 128, "pv%dNumPlate=%s\n", v, PlayerVehicleInfo[playerid][v][pvNumberPlate]);fwrite(hFile, var);
- for(new m = 0; m < MAX_MODS; m++)
- {
- format(var, 32, "pv%dMod%d=%d\n", v, m, PlayerVehicleInfo[playerid][v][pvMods][m]);fwrite(hFile, var);
- }
- //format(var, 32, "pv%dAllowedPlayer=%s\n", v, PlayerVehicleInfo[playerid][v][pvAllowPlayer]);fwrite(hFile, var);
- }
- format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pDuty]);fwrite(hFile, var);
- format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
- format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
- format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
- format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
- format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
- format(var, 32, "Division=%d\n",PlayerInfo[playerid][pDivision]);fwrite(hFile, var);
- format(var, 32, "TicketTime=%d\n",PlayerInfo[playerid][pTicketTime]);fwrite(hFile, var);
- format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
- format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
- format(var, 64, "ContractDetail=%s\n",PlayerInfo[playerid][pContractDetail]);fwrite(hFile, var);
- format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
- format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
- format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
- format(var, 32, "PrisonedBy=%s\n", PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
- format(var, 128, "PrisonReason=%s\n", PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
- format(var, 32, "AcceptReport=%d\n",PlayerInfo[playerid][pAcceptReport]);fwrite(hFile, var);
- format(var, 32, "TrashReport=%d\n",PlayerInfo[playerid][pTrashReport]);fwrite(hFile, var);
- format(var, 32, "Accent=%d\n",PlayerInfo[playerid][pAccent]);fwrite(hFile, var);
- format(var, 32, "NewMuted=%d\n",PlayerInfo[playerid][pNMute]);fwrite(hFile, var);
- format(var, 32, "NewMutedTotal=%d\n",PlayerInfo[playerid][pNMuteTotal]);fwrite(hFile, var);
- format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pADMute]);fwrite(hFile, var);
- format(var, 32, "AdMutedTotal=%d\n",PlayerInfo[playerid][pADMuteTotal]);fwrite(hFile, var);
- format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pRMuted]);fwrite(hFile, var);
- format(var, 32, "ReportMutedTotal=%d\n",PlayerInfo[playerid][pRMutedTotal]);fwrite(hFile, var);
- format(var, 32, "ReportMutedTime=%d\n",PlayerInfo[playerid][pRMutedTime]);fwrite(hFile, var);
- format(var, 32, "Speedo=%d\n",PlayerInfo[playerid][pSpeedo]);fwrite(hFile, var);
- format(var, 32, "GCMuted=%d\n",PlayerInfo[playerid][pGCMuted]);fwrite(hFile, var);
- format(var, 32, "GCMutedTime=%d\n",PlayerInfo[playerid][pGCMutedTime]);fwrite(hFile, var);
- format(var, 32, "CallsAccepted=%d\n", PlayerInfo[playerid][pCallsAccepted]);fwrite(hFile, var);
- format(var, 32, "PatientsDelivered=%d\n",PlayerInfo[playerid][pPatientsDelivered]);fwrite(hFile, var);
- format(var, 32, "TriageTime=%d\n",PlayerInfo[playerid][pTriageTime]);fwrite(hFile, var);
- format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
- format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
- for(new v = 0; v < MAX_PLAYERTOYS; v++)
- {
- format(var, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);fwrite(hFile, var);
- format(var, 32, "pt%dBone=%d\n", v, PlayerToyInfo[playerid][v][ptBone]);fwrite(hFile, var);
- format(var, 32, "pt%dPosX=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosX]);fwrite(hFile, var);
- format(var, 32, "pt%dPosY=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosY]);fwrite(hFile, var);
- format(var, 32, "pt%dPosZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosZ]);fwrite(hFile, var);
- format(var, 32, "pt%dRotX=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotX]);fwrite(hFile, var);
- format(var, 32, "pt%dRotY=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotY]);fwrite(hFile, var);
- format(var, 32, "pt%dRotZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotZ]);fwrite(hFile, var);
- format(var, 32, "pt%dScaX=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleX]);fwrite(hFile, var);
- format(var, 32, "pt%dScaY=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleY]);fwrite(hFile, var);
- format(var, 32, "pt%dScaZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleZ]);fwrite(hFile, var);
- }
- format(var, 256, "KillLog0=%s\n",PlayerInfo[playerid][pKillLog0]);fwrite(hFile, var);
- format(var, 256, "KillLog1=%s\n",PlayerInfo[playerid][pKillLog1]);fwrite(hFile, var);
- format(var, 256, "KillLog2=%s\n",PlayerInfo[playerid][pKillLog2]);fwrite(hFile, var);
- format(var, 256, "KillLog3=%s\n",PlayerInfo[playerid][pKillLog3]);fwrite(hFile, var);
- format(var, 256, "KillLog4=%s\n",PlayerInfo[playerid][pKillLog4]);fwrite(hFile, var);
- format(var, 256, "KillLog5=%s\n",PlayerInfo[playerid][pKillLog5]);fwrite(hFile, var);
- format(var, 256, "KillLog6=%s\n",PlayerInfo[playerid][pKillLog6]);fwrite(hFile, var);
- format(var, 256, "KillLog7=%s\n",PlayerInfo[playerid][pKillLog7]);fwrite(hFile, var);
- format(var, 256, "KillLog8=%s\n",PlayerInfo[playerid][pKillLog8]);fwrite(hFile, var);
- format(var, 256, "KillLog9=%s\n",PlayerInfo[playerid][pKillLog9]);fwrite(hFile, var);
- format(var, 128, "Flag=%s\n", PlayerInfo[playerid][pFlag]);fwrite(hFile, var);
- format(var, 128, "ReferredBy=%s\n", PlayerInfo[playerid][pReferredBy]);fwrite(hFile, var);
- format(var, 32, "RefTokens=%d\n",PlayerInfo[playerid][pRefTokens]);fwrite(hFile, var);
- format(var, 32, "WepRes=%d\n",PlayerInfo[playerid][pWepRes]);fwrite(hFile, var);
- format(var, 32, "TT=%d\n",PlayerInfo[playerid][pTT]);fwrite(hFile, var);
- format(var, 32, "NC=%d\n",PlayerInfo[playerid][pNC]);fwrite(hFile, var);
- format(var, 32, "BizID=%d\n",PlayerInfo[playerid][pBizID]);fwrite(hFile, var);
- format(var, 32, "Claim=%d\n",PlayerInfo[playerid][pClaim]);fwrite(hFile, var);
- format(var, 32, "Land=%d\n",PlayerInfo[playerid][pLand]);fwrite(hFile, var);
- format(var, 32, "Pills=%d\n",PlayerInfo[playerid][pPills]);fwrite(hFile, var);
- format(var, 32, "Crew1=%d\n",PlayerInfo[playerid][pCrew1]);fwrite(hFile, var);
- format(var, 32, "Crew2=%d\n",PlayerInfo[playerid][pCrew2]);fwrite(hFile, var);
- format(var, 32, "Crew3=%d\n",PlayerInfo[playerid][pCrew3]);fwrite(hFile, var);
- format(var, 32, "Former=%d\n",PlayerInfo[playerid][pFormer]);fwrite(hFile, var);
- format(var, 32, "Old School=%d\n",PlayerInfo[playerid][pOS]);fwrite(hFile, var);
- format(var, 32, "Vintage=%d\n",PlayerInfo[playerid][pVintage]);fwrite(hFile, var);
- format(var, 32, "Famed=%d\n",PlayerInfo[playerid][pFamed]);fwrite(hFile, var);
- format(var, 32, "RefTokensOffline=%d\n",PlayerInfo[playerid][pRefTokensOffline]);fwrite(hFile, var);
- format(var, 32, "Helper=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
- format(var, 32, "Backpack=%d\n",PlayerInfo[playerid][pBackpack]);fwrite(hFile, var);
- format(var, 32, "BackpackPot=%d\n",PlayerInfo[playerid][pBPPot]);fwrite(hFile, var);
- format(var, 32, "BackpackCrack=%d\n",PlayerInfo[playerid][pBPCrack]);fwrite(hFile, var);
- format(var, 32, "Wearing=%d\n",PlayerInfo[playerid][pWearingBP]);fwrite(hFile, var);
- format(var, 32, "LiveBanned=%d\n",PlayerInfo[playerid][pLiveBanned]);fwrite(hFile, var);
- fclose(hFile);
- }
- return 1;
- }
- forward OnPlayerLogin(playerid,password[]);
- public OnPlayerLogin(playerid,password[])
- {
- new string[128];
- new playername2[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername2, sizeof(playername2));
- format(string, sizeof(string), "users/%s.ini", playername2);
- new File: UserFile = fopen(string, io_read);
- if(UserFile)
- {
- new PassData[256];
- new keytmp[256], valtmp[256];
- fread(UserFile , PassData , sizeof(PassData));
- keytmp = ini_GetKey(PassData);
- if(strcmp(keytmp , "Key" , true) == 0)
- {
- valtmp = Ini_Value(PassData);
- strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
- }
- if(strcmp(PlayerInfo[playerid][pKey],password,true) == 0)
- {
- new key[ 256 ] , val[ 256 ];
- new Data[ 256 ];
- while (fread(UserFile , Data , sizeof(Data)))
- {
- key = ini_GetKey(Data);
- if(strcmp(key , "Level" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLevel] = strval(val); }
- if(strcmp(key , "AdminLevel" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pAdmin] = strval(val); }
- if(strcmp(key, "AdminName", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pAdminName], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "BanAppealer" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBanAppealer] = strval(val); }
- if(strcmp(key , "GangMod" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGangMod] = strval(val); }
- if(strcmp(key , "FactionMod" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFactionMod] = strval(val); }
- if(strcmp(key , "HelperMod" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHelperMod] = strval(val); }
- if(strcmp(key , "Donator" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDonator] = strval(val); }
- if(strcmp(key , "Band" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBanned] = strval(val); }
- if(strcmp(key , "WalkStyle" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWalkStyle] = strval(val); }
- if(strcmp(key , "PermBand" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPermaBanned] = strval(val); }
- if(strcmp(key , "Disabled" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDisabled] = strval(val); }
- if(strcmp(key , "IP" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "Registered" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pReg] = strval(val); }
- if(strcmp(key , "Tutorial" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTut] = strval(val); }
- if(strcmp(key , "Sex" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSex] = strval(val); }
- if(strcmp(key , "Age" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pAge] = strval(val); }
- if(strcmp(key , "Skin" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSkin] = strval(val); }
- if(strcmp(key , "SPos_x" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPos_x] = floatstr(val); }
- if(strcmp(key , "SPos_y" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPos_y] = floatstr(val); }
- if(strcmp(key , "SPos_z" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPos_z] = floatstr(val); }
- if(strcmp(key , "SPos_r" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPos_r] = floatstr(val); }
- if(strcmp(key , "ConnectedTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pConnectTime] = strval(val); }
- if(strcmp(key , "Respect" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRespect] = strval(val); }
- if(strcmp(key , "PhoneNr" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pNumber] = strval(val); }
- if(strcmp(key , "Warnings" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWarns] = strval(val); }
- if(strcmp(key , "Gang" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGang] = strval(val); }
- if(strcmp(key , "Faction" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFaction] = strval(val); }
- if(strcmp(key , "Leader" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLeader] = strval(val); }
- if(strcmp(key , "Rank" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRank] = strval(val); }
- if(strcmp(key , "Job" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pJob] = strval(val); }
- if(strcmp(key , "Job2" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pJob2] = strval(val); }
- if(strcmp(key , "UpgradePoints" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][gPupgrade] = strval(val); }
- if(strcmp(key , "SpawnArmor" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSarmor] = strval(val); }
- if(strcmp(key , "Cash" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCash] = strval(val); }
- if(strcmp(key , "Bank" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBank] = strval(val); }
- if(strcmp(key , "Insurance" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pInsurance] = strval(val); }
- if(strcmp(key , "Crimes" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCrimes] = strval(val); }
- if(strcmp(key , "Arrested" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pArrested] = strval(val); }
- if(strcmp(key , "WantedLevel" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWantedLevel] = strval(val); }
- if(strcmp(key , "Health" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHealth] = floatstr(val); }
- if(strcmp(key , "Armor" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pArmor] = floatstr(val); }
- if(strcmp(key , "Pot" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPot] = strval(val); }
- if(strcmp(key , "Crack" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCrack] = strval(val); }
- if(strcmp(key , "Radio" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRadio] = strval(val); }
- if(strcmp(key , "RadioFreq" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRadioFreq] = strval(val); }
- if(strcmp(key , "Phonebook" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPhoneBook] = strval(val); }
- if(strcmp(key , "Dice" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDice] = strval(val); }
- if(strcmp(key , "CDPlayer" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCDPlayer] = strval(val); }
- if(strcmp(key , "Materials" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pMats] = strval(val); }
- if(strcmp(key , "Rope" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRope] = strval(val); }
- if(strcmp(key , "Cigars" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCigar] = strval(val); }
- if(strcmp(key , "Sprunk" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSprunk] = strval(val); }
- if(strcmp(key , "Spraycan" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSpraycan] = strval(val); }
- if(strcmp(key , "House" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHouse] = strval(val); }
- if(strcmp(key , "House2" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHouse2] = strval(val); }
- if(strcmp(key , "Renting" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRenting] = strval(val); }
- if(strcmp(key , "Int" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pInt] = strval(val); }
- if(strcmp(key , "VirtualWorld" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pVW] = strval(val); }
- if(strcmp(key , "Jailed" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pJailed] = strval(val); }
- if(strcmp(key , "JailTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pJailTime] = strval(val); }
- for(new s = 0; s < 12; s++)
- {
- format(string, 128, "Gun%d", s);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGuns][s] = strval(val); }
- }
- if(strcmp(key , "Paycheck" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPayCheck] = strval(val); }
- if(strcmp(key , "PayReady" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPayReady] = strval(val); }
- if(strcmp(key , "Hospital" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHospital] = strval(val); }
- if(strcmp(key , "DetSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDetSkill] = strval(val); }
- if(strcmp(key , "LawSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLawSkill] = strval(val); }
- if(strcmp(key , "SexSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSexSkill] = strval(val); }
- if(strcmp(key , "DrugsSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDrugsSkill] = strval(val); }
- if(strcmp(key , "SmugglerSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSmugSkill] = strval(val); }
- if(strcmp(key , "ArmsSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pArmsSkill] = strval(val); }
- if(strcmp(key , "MechSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pMechSkill] = strval(val); }
- if(strcmp(key , "FishSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFishSkill] = strval(val); }
- if(strcmp(key , "BoxSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBoxSkill] = strval(val); }
- if(strcmp(key , "TruckSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTruckSkill] = strval(val); }
- if(strcmp(key , "CarSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCarSkill] = strval(val); }
- //if(strcmp(key , "CraftSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCraftSkill] = strval(val); }
- if(strcmp(key , "LawyerTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLawyerTime] = strval(val); }
- if(strcmp(key , "LawyerFreeTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLawyerFreeTime] = strval(val); }
- if(strcmp(key , "DrugsTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDrugsTime] = strval(val); }
- if(strcmp(key , "MechTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pMechTime] = strval(val); }
- if(strcmp(key , "SexTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSexTime] = strval(val); }
- if(strcmp(key , "CarTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCarTime] = strval(val); }
- if(strcmp(key , "Fishes" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFishes] = strval(val); }
- if(strcmp(key , "BiggestFish" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBiggestFish] = strval(val); }
- if(strcmp(key , "pWExists" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedObject] = strval(val); }
- if(strcmp(key , "pWX" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedPos][0] = floatstr(val); }
- if(strcmp(key , "pWY" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedPos][1] = floatstr(val); }
- if(strcmp(key , "pWZ" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedPos][2] = floatstr(val); }
- if(strcmp(key , "pWVW" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedVW] = strval(val); }
- if(strcmp(key , "pWInt" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedInt] = strval(val); }
- if(strcmp(key , "pWValue" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWeedGrowth] = strval(val); }
- if(strcmp(key , "pWSeeds" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWSeeds] = strval(val); }
- if(strcmp(key , "Wins" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWins] = strval(val); }
- if(strcmp(key , "Loses" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLoses] = strval(val); }
- if(strcmp(key , "FightingStyle" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFightStyle] = strval(val); }
- if(strcmp(key , "Screwdriver" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pScrewdriver] = strval(val); }
- if(strcmp(key , "Smslog" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSmslog] = strval(val); }
- if(strcmp(key , "Wristwatch" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWristwatch] = strval(val); }
- if(strcmp(key , "Tire" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTire] = strval(val); }
- if(strcmp(key , "Firstaid" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFirstaid] = strval(val); }
- if(strcmp(key , "Rccam" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRccam] = strval(val); }
- if(strcmp(key , "Receiver" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pReceiver] = strval(val); }
- if(strcmp(key , "GPS" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGPS] = strval(val); }
- if(strcmp(key , "Sweep" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSweep] = strval(val); }
- if(strcmp(key , "SweepLeft" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSweepLeft] = strval(val); }
- if(strcmp(key , "Bugged" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBugged] = strval(val); }
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- format(string, 128, "pv%dPosX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvPosX] = floatstr(val); }
- format(string, 128, "pv%dPosY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvPosY] = floatstr(val); }
- format(string, 128, "pv%dPosZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvPosZ] = floatstr(val); }
- format(string, 128, "pv%dPosAngle",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvPosAngle] = floatstr(val); }
- format(string, 128, "pv%dModelId",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvModelId] = strval(val); }
- format(string, 128, "pv%dLock",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvLock] = strval(val); }
- format(string, 128, "pv%dLocked",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvLocked] = strval(val); }
- format(string, 128, "pv%dPaintJob",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvPaintJob] = strval(val); }
- format(string, 128, "pv%dColor1",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvColor1] = strval(val); }
- format(string, 128, "pv%dColor2",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvColor2] = strval(val); }
- format(string, 128, "pv%dPrice",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvPrice] = strval(val); }
- format(string, 128, "pv%dTicket",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvTicket] = strval(val); }
- format(string, 128, "pv%dWeapon0",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvWeapons][0] = strval(val); }
- format(string, 128, "pv%dWeapon1",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvWeapons][1] = strval(val); }
- format(string, 128, "pv%dWeapon2",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvWeapons][2] = strval(val); }
- format(string, 128, "pv%dWepUpgrade",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvWepUpgrade] = strval(val); }
- format(string, 128, "pv%dFuel",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvFuel] = floatstr(val); }
- format(string, 128, "pv%dImpound",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvImpounded] = strval(val); }
- format(string, 128, "pv%dSpawned",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvSpawned] = strval(val); }
- format(string, 128, "pv%dDisabled",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvDisabled] = strval(val); }
- format(string, 128, "pv%dNumPlate",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); strmid(PlayerVehicleInfo[playerid][v][pvNumberPlate], val, 0, strlen(val)-1, 32); }
- for(new m = 0; m < MAX_MODS; m++)
- {
- format(string, 128, "pv%dMod%d", v, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[playerid][v][pvMods][m] = strval(val); }
- }
- //format(string, 128, "pv%dAllowedPlayer",v);
- //if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); strmid(PlayerVehicleInfo[playerid][v][pvAllowPlayer], val, 0, strlen(val)-1, 255); }
- }
- if(strcmp(key , "OnDuty" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDuty] = strval(val); }
- if(strcmp(key , "CarLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCarLic] = strval(val); }
- if(strcmp(key , "FlyLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFlyLic] = strval(val); }
- if(strcmp(key , "BoatLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBoatLic] = strval(val); }
- if(strcmp(key , "FishLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFishLic] = strval(val); }
- if(strcmp(key , "GunLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGunLic] = strval(val); }
- if(strcmp(key , "Division" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pDivision] = strval(val); }
- if(strcmp(key , "TicketTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTicketTime] = strval(val); }
- if(strcmp(key , "HeadValue" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHeadValue] = strval(val); }
- if(strcmp(key , "ContractBy" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pContractBy], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "ContractDetail" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pContractDetail], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "Bombs" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBombs] = strval(val); }
- if(strcmp(key , "CHits" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCHits] = strval(val); }
- if(strcmp(key , "FHits" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFHits] = strval(val); }
- if(strcmp(key, "PrisonedBy", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pPrisonedBy], val, 0, strlen(val)-1, 255); }
- if(strcmp(key, "PrisonReason", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pPrisonReason], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "AcceptReport" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pAcceptReport] = strval(val); }
- if(strcmp(key , "TrashReport" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTrashReport] = strval(val); }
- if(strcmp(key , "Accent" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pAccent] = strval(val); }
- if(strcmp(key , "NewMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pNMute] = strval(val); }
- if(strcmp(key , "NewMutedTotal" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pNMuteTotal] = strval(val); }
- if(strcmp(key , "AdMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pADMute] = strval(val); }
- if(strcmp(key , "AdMutedTotal" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pADMuteTotal] = strval(val); }
- if(strcmp(key , "ReportMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRMuted] = strval(val); }
- if(strcmp(key , "ReportMutedTotal" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRMutedTotal] = strval(val); }
- if(strcmp(key , "ReportMutedTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRMutedTime] = strval(val); }
- if(strcmp(key , "Speedo" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pSpeedo] = strval(val); }
- if(strcmp(key , "GCMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGCMuted] = strval(val); }
- if(strcmp(key , "GCMutedTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pGCMutedTime] = strval(val); }
- if(strcmp(key , "CallsAccepted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pCallsAccepted] = strval(val); }
- if(strcmp(key , "PatientsDelivered" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPatientsDelivered] = strval(val); }
- if(strcmp(key , "TriageTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTriageTime] = strval(val); }
- if(strcmp(key , "Married" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pMarried] = strval(val); }
- if(strcmp(key , "MarriedTo" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
- for(new v = 0; v < MAX_PLAYERTOYS; v++)
- {
- format(string, 128, "pt%dModelID",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptModelID] = strval(val); }
- format(string, 128, "pt%dBone",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptBone] = strval(val); }
- format(string, 128, "pt%dPosX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptPosX] = floatstr(val); }
- format(string, 128, "pt%dPosY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptPosY] = floatstr(val); }
- format(string, 128, "pt%dPosZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptPosZ] = floatstr(val); }
- format(string, 128, "pt%dRotX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptRotX] = floatstr(val); }
- format(string, 128, "pt%dRotY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptRotY] = floatstr(val); }
- format(string, 128, "pt%dRotZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptRotZ] = floatstr(val); }
- format(string, 128, "pt%dScaX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptScaleX] = floatstr(val); }
- format(string, 128, "pt%dScaY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptScaleY] = floatstr(val); }
- format(string, 128, "pt%dScaZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[playerid][v][ptScaleZ] = floatstr(val); }
- }
- if(strcmp(key , "KillLog0" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog0], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog1" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog1], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog2" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog2], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog3" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog3], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog4" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog4], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog5" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog5], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog6" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog6], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog7" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog7], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog8" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog8], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog9" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pKillLog9], val, 0, strlen(val)-1, 255); }
- if(strcmp(key, "Flag", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pFlag], val, 0, strlen(val)-1, 255); }
- if(strcmp(key, "ReferredBy", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[playerid][pReferredBy], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "RefTokens" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRefTokens] = strval(val); }
- if(strcmp(key , "WepRes" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWepRes] = strval(val); }
- if(strcmp(key , "TT" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pTT] = strval(val); }
- if(strcmp(key , "NC" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pNC] = strval(val); }
- if(strcmp(key , "BizID" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBizID] = strval(val); }
- if(strcmp(key , "Claim" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pClaim] = strval(val); }
- if(strcmp(key , "Land" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLand] = strval(val); }
- if(strcmp(key , "Pills" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pPills] = strval(val); }
- if(strcmp(key , "Crew1" , true ) == 0 ) { val = Ini_Value(Data); PlayerInfo[playerid][pCrew1] = strval(val); }
- if(strcmp(key , "Crew2" , true ) == 0 ) { val = Ini_Value(Data); PlayerInfo[playerid][pCrew2] = strval(val); }
- if(strcmp(key , "Crew3" , true ) == 0 ) { val = Ini_Value(Data); PlayerInfo[playerid][pCrew3] = strval(val); }
- if(strcmp(key , "Former" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFormer] = strval(val); }
- if(strcmp(key , "Old School" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pOS] = strval(val); }
- if(strcmp(key , "Vintage" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pVintage] = strval(val); }
- if(strcmp(key , "Famed" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pFamed] = strval(val); }
- if(strcmp(key , "RefTokensOffline" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pRefTokensOffline] = strval(val); }
- if(strcmp(key , "Helper" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pHelper] = strval(val); }
- if(strcmp(key , "Backpack", true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBackpack] = strval(val); }
- if(strcmp(key , "BackpackPot", true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBPPot] = strval(val); }
- if(strcmp(key , "BackpackCrack", true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBPCrack] = strval(val); }
- if(strcmp(key , "BackpackCash", true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pBPCash] = strval(val); }
- if(strcmp(key , "Wearing", true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pWearingBP] = strval(val); }
- if(strcmp(key , "LiveBanned" , true) == 0) { val = Ini_Value(Data); PlayerInfo[playerid][pLiveBanned] = strval(val); }
- if(PlayerInfo[playerid][pWearingBP] == 1)
- {
- SetPlayerAttachedObject(playerid, 9, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0); // Backpack
- PlayerInfo[MAX_PLAYERS][pWearingBP] = 1;
- }
-
- }//end while
- fclose(UserFile);//close the file after everything has been read in the while
- }
- else
- {
- ShowMainMenuDialog(playerid, 3);
- gPlayerLogTries[playerid] += 1;
- if(gPlayerLogTries[playerid] == 2) { SendClientMessage(playerid, COLOR_NEWS, "Wrong password, you have been kicked out automatically."); Kick(playerid); }
- return 1;
- }
- if(PlayerInfo[playerid][pHospital] == 1)
- {
- PlayerInfo[playerid][pHospital] = 0;
- SetPVarInt(playerid, "MedicBill", 1);
- }
-
- TotalLogin++;
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 16);
- if(PlayerInfo[playerid][pBanned] >= 1 || PlayerInfo[playerid][pPermaBanned] >= 1)
- {
- format(string, sizeof(string), "WARNING: %s (IP:%s) tried to login whilst banned and has been auto-banned.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pIP]);
- ABroadCast(COLOR_YELLOW, string, 1);
- AddBan(PlayerInfo[playerid][pIP]);
- Log("logs/ban.log", string);
- return Kick(playerid);
- }
- if(PlayerInfo[playerid][pTut] == 1)
- PlayerPlaySound(playerid,SOUND_OFF,2050.1995, 1344.5500, 13.2378); //Music Off
- gPlayerLogged[playerid] = 1;
- SpawnPlayer(playerid);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- if(PlayerInfo[playerid][pTut] == 1)
- {
- HideMainMenuGUI(playerid);
- InsideTut[playerid] = 0;
- }
-
- if(PlayerInfo[playerid][pSmslog] >= 1) {
- format(string, sizeof(string), "SMS logs have been removed, you have been refunded %d materials.", PlayerInfo[playerid][pSmslog] * 2000);
- SendClientMessage(playerid, COLOR_GREY, string);
- PlayerInfo[playerid][pMats] += PlayerInfo[playerid][pSmslog] * 2000;
- PlayerInfo[playerid][pSmslog] = 0;
- }
-
- if(PlayerInfo[playerid][pSprunk] > 10) {
- format(string, sizeof(string), "You're carrying too much Sprunk. You now have 10 cans, and have been refunded $%d for your loss.", PlayerInfo[playerid][pSprunk] - 10);
- SendClientMessage(playerid, COLOR_GREY, string);
- PlayerInfo[playerid][pCash] += PlayerInfo[playerid][pSprunk] - 10;
- PlayerInfo[playerid][pSprunk] = 10;
- }
- if(PlayerInfo[playerid][pDisabled] != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has been auto kicked because their account is disabled.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 4);
- SendClientMessage(playerid, COLOR_NEWS, "This account is disabled. Please contact us via the forum ("WEBSITE").");
- return Kick(playerid);
- }
- if(PlayerInfo[playerid][pAdmin] < 0 || PlayerInfo[playerid][pAdmin] > 8)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s attempted to log in with Admin Level %d.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pAdmin]);
- PlayerInfo[playerid][pAdmin] = 0;
- ABroadCast(COLOR_YELLOW, string, 4);
- return Kick(playerid);
- }
- if(AdminLoggedInBefore[playerid] == 0 && PlayerInfo[playerid][pTut] == 1)
- {
- format(string, sizeof(string), "Welcome to Sleepless Roleplay, %s.", GetPlayerNameEx(playerid));
- SendClientMessage(playerid, COLOR_NEWS, string);
- }
- if(PlayerInfo[playerid][pPos_x] == 0.0 && PlayerInfo[playerid][pPos_y] == 0.0 && PlayerInfo[playerid][pPos_z] == 0.0)
- {
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin],1529.6,-1691.2,13.3, 1.0, -1, -1, -1, -1, -1, -1);
- }
- else
- {
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
- }
-
- if(PlayerInfo[playerid][pAdmin] > 0 && AdminLoggedInBefore[playerid] == 0 && PlayerInfo[playerid][pTut] == 1)
- {
- format(string, sizeof(string), "You have logged in as Level %d Admin.",PlayerInfo[playerid][pAdmin]);
- SendClientMessage(playerid, COLOR_WHITE,string);
- if(strlen(PlayerInfo[playerid][pAdminName]) > 2 && strlen(PlayerInfo[playerid][pAdminName]) < 20)
- {
- format(string, sizeof(string), "%s (%s) has logged in as Level %d Admin.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pAdminName], PlayerInfo[playerid][pAdmin]);
- }
- else
- {
- format(string, sizeof(string), "%s (No admin name set) has logged in as Level %d Admin.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pAdmin]);
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 5 && PlayerInfo[i][pAdmin] >= PlayerInfo[playerid][pAdmin] && i != playerid)
- {
- SendClientMessage(i, COLOR_WHITE, string);
- }
- }
- StopAudioStreamForPlayer(playerid);
- }
- if(PlayerInfo[playerid][pInt] > 0 || PlayerInfo[playerid][pVW] > 0)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SkinDelay(playerid);
- if(AdminLoggedInBefore[playerid] == 0 && PlayerInfo[playerid][pTut] == 1)
- {
- format(string, sizeof(string), "~w~Welcome~n~~y~%s", GetPlayerNameEx(playerid));
- GameTextForPlayer(playerid, string, 5000, 1);
- new motdstring[128];
- format(motdstring, sizeof(motdstring), "News: %s", GlobalMOTD);
- SendClientMessage(playerid, COLOR_WHITE, motdstring);
- new amotdstring[128];
- format(amotdstring, sizeof(amotdstring), "Admin News: %s", AdminMOTD);
- if(PlayerInfo[playerid][pAdmin] > 0) SendClientMessage(playerid, COLOR_YELLOW, amotdstring);
- }
- SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightStyle]);
- if(AdminLoggedInBefore[playerid] == 0)
- {
- LoadPlayerVehicles(playerid);
- }
- SetPlayerToTeamColor(playerid);
- if(AdminLoggedInBefore[playerid] == 0)
- {
- if(PlayerInfo[playerid][pGang] < 255 && PlayerInfo[playerid][pTut] == 1)
- {
- format(string, sizeof(string), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pGang]][FamilyMOTD]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s from your family has logged in.", GetPlayerNameEx(playerid));
- SendNewFamilyMessage(PlayerInfo[playerid][pGang], COLOR_LIGHTSLATEGRAY, string);
- }
-
- if(PlayerInfo[playerid][pFaction] >= 1)
- {
- if(PlayerInfo[playerid][pFaction] == 1)
- {
- format(string, sizeof(string), "LSPD MOTD: %s.", LSPDmotd);
- SCM(playerid, COLOR_YELLOW, string);
- }
- else if(PlayerInfo[playerid][pFaction] == 2)
- {
- format(string, sizeof(string), "FBI MOTD: %s", FBImotd);
- SCM(playerid, COLOR_YELLOW, string);
- }
- else if(PlayerInfo[playerid][pFaction] == 10)
- {
- format(string, sizeof(string), "ARES MOTD: %s", ARESmotd);
- SCM(playerid, COLOR_YELLOW, string);
- }
- else if(PlayerInfo[playerid][pFaction] == 11)
- {
- format(string, sizeof(string), "SASD MOTD: %s", SASDmotd);
- SCM(playerid, COLOR_YELLOW, string);
- }
-
- else if(PlayerInfo[playerid][pFaction] == 3)
- {
- format(string, sizeof(string), "FMD MOTD: %s", FMDmotd);
- SCM(playerid, COLOR_YELLOW, string);
- }
-
- format(string, sizeof(string), "* %s from your faction has logged in.", GetPlayerNameEx(playerid));
- SendRadioMessage(PlayerInfo[playerid][pFaction], COLOR_LIGHTSLATEGRAY, string);
- }
- if(!isnull(PlayerInfo[playerid][pFlag]))
- {
- format(string, sizeof(string), "%s has an outstanding flag.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_WHITE, string, 1);
- }
- if(PlayerInfo[playerid][pRefTokensOffline] != 0)
- {
- format(string, sizeof(string), "You have gained %d referral token(s) while you were offline. Use /refshop to spend them.", PlayerInfo[playerid][pRefTokensOffline]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- PlayerInfo[playerid][pRefTokens] += PlayerInfo[playerid][pRefTokensOffline];
- PlayerInfo[playerid][pRefTokensOffline] = 0;
- }
- if(PlayerInfo[playerid][pJob2] >= 1 && PlayerInfo[playerid][pDonator] < 2 && PlayerInfo[playerid][pLevel] < 25)
- {
- PlayerInfo[playerid][pJob2] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "You have lost your secondary job due to the fact that you no longer have a donator package or are below level 25.");
- }
- }
- new
- iCheckOne = INVALID_HOUSE_ID,
- iCheckTwo = INVALID_HOUSE_ID,
- szPlayerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, szPlayerName, sizeof(szPlayerName));
- for(new i = 0; i < MAX_HOUSES; ++i) if(strcmp(szPlayerName, HouseInfo[i][hOwner], false) == 0)
- {
- if(iCheckOne != INVALID_HOUSE_ID) iCheckTwo = i;
- else if(iCheckTwo == INVALID_HOUSE_ID) iCheckOne = i;
- else break;
- }
- if(iCheckOne != INVALID_HOUSE_ID) PlayerInfo[playerid][pHouse] = iCheckOne;
- else PlayerInfo[playerid][pHouse] = INVALID_HOUSE_ID;
- if(iCheckTwo != INVALID_HOUSE_ID) PlayerInfo[playerid][pHouse2] = iCheckTwo;
- else PlayerInfo[playerid][pHouse2] = INVALID_HOUSE_ID;
- if(AdminLoggedInBefore[playerid] == 0)
- {
- if(PlayerInfo[playerid][pWeedObject] != 0) {
- PlayerInfo[playerid][pWeedObject] = CreateDynamicObject(3409, PlayerInfo[playerid][pWeedPos][0], PlayerInfo[playerid][pWeedPos][1], PlayerInfo[playerid][pWeedPos][2], 0.0, 0.0, 0.0, PlayerInfo[playerid][pWeedVW], PlayerInfo[playerid][pWeedInt]);
- }
- }
- if(PlayerInfo[playerid][pRenting] != INVALID_HOUSE_ID && (PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID || PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID)) {
- PlayerInfo[playerid][pRenting] = INVALID_HOUSE_ID;
- }
- }
- AdminLoggedInBefore[playerid] = 1;
- return 1;
- }
- forward OnPlayerOfflineLogin(playername[]);
- public OnPlayerOfflineLogin(playername[])
- {
- new string2[64];
- format(string2, sizeof(string2), "users/%s.ini", playername);
- new File: UserFile = fopen(string2, io_read);
- //printf("[DEBUG] OnPlayerOfflineLogin: string2 (%s) | MAX_PLAYERS (%d)", string2, MAX_PLAYERS);
- if(UserFile)
- {
- //print("[DEBUG] OnPlayerOfflineLogin: UserFile exists, the handle parsed.");
- new key[ 256 ] , val[ 256 ];
- new Data[ 256 ];
- //print("[DEBUG] Starting while (fread(UserFile , Data , sizeof(Data)))");
- while (fread(UserFile , Data , sizeof(Data)))
- {
- key = ini_GetKey(Data);
- if(strcmp(key , "Key" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKey], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "Level" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLevel] = strval(val); }
- if(strcmp(key , "AdminLevel" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pAdmin] = strval(val); }
- if(strcmp(key, "AdminName", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pAdminName], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "BanAppealer" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBanAppealer] = strval(val); }
- if(strcmp(key , "GangMod" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGangMod] = strval(val); }
- if(strcmp(key , "FactionMod" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFactionMod] = strval(val); }
- if(strcmp(key , "HelperMod" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHelperMod] = strval(val); }
- if(strcmp(key , "Donator" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDonator] = strval(val); }
- if(strcmp(key , "Band" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBanned] = strval(val); }
- if(strcmp(key , "WalkStyle" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWalkStyle] = strval(val); }
- if(strcmp(key , "PermBand" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPermaBanned] = strval(val); }
- if(strcmp(key , "Disabled" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDisabled] = strval(val); }
- if(strcmp(key , "IP" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pIP], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "Registered" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pReg] = strval(val); }
- if(strcmp(key , "Tutorial" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pTut] = strval(val); }
- if(strcmp(key , "Sex" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSex] = strval(val); }
- if(strcmp(key , "Age" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pAge] = strval(val); }
- if(strcmp(key , "Skin" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSkin] = strval(val); }
- if(strcmp(key , "SPos_x" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPos_x] = floatstr(val); }
- if(strcmp(key , "SPos_y" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPos_y] = floatstr(val); }
- if(strcmp(key , "SPos_z" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPos_z] = floatstr(val); }
- if(strcmp(key , "SPos_r" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPos_r] = floatstr(val); }
- if(strcmp(key , "ConnectedTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pConnectTime] = strval(val); }
- if(strcmp(key , "Respect" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRespect] = strval(val); }
- if(strcmp(key , "PhoneNr" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pNumber] = strval(val); }
- if(strcmp(key , "Warnings" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWarns] = strval(val); }
- if(strcmp(key , "Gang" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGang] = strval(val); }
- if(strcmp(key , "Faction" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFaction] = strval(val); }
- if(strcmp(key , "Leader" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLeader] = strval(val); }
- if(strcmp(key , "Rank" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRank] = strval(val); }
- if(strcmp(key , "Job" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pJob] = strval(val); }
- if(strcmp(key , "Job2" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pJob2] = strval(val); }
- if(strcmp(key , "UpgradePoints" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][gPupgrade] = strval(val); }
- if(strcmp(key , "SpawnArmor" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSarmor] = strval(val); }
- if(strcmp(key , "Cash" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCash] = strval(val); }
- if(strcmp(key , "Bank" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBank] = strval(val); }
- if(strcmp(key , "Insurance" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pInsurance] = strval(val); }
- if(strcmp(key , "Crimes" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCrimes] = strval(val); }
- if(strcmp(key , "Arrested" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pArrested] = strval(val); }
- if(strcmp(key , "WantedLevel" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWantedLevel] = strval(val); }
- if(strcmp(key , "Health" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHealth] = floatstr(val); }
- if(strcmp(key , "Armor" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pArmor] = floatstr(val); }
- if(strcmp(key , "Pot" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPot] = strval(val); }
- if(strcmp(key , "Crack" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCrack] = strval(val); }
- if(strcmp(key , "Radio" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRadio] = strval(val); }
- if(strcmp(key , "RadioFreq" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRadioFreq] = strval(val); }
- if(strcmp(key , "Phonebook" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPhoneBook] = strval(val); }
- if(strcmp(key , "Dice" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDice] = strval(val); }
- if(strcmp(key , "CDPlayer" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCDPlayer] = strval(val); }
- if(strcmp(key , "Materials" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pMats] = strval(val); }
- if(strcmp(key , "Rope" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRope] = strval(val); }
- if(strcmp(key , "Cigars" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCigar] = strval(val); }
- if(strcmp(key , "Sprunk" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSprunk] = strval(val); }
- if(strcmp(key , "Spraycan" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSpraycan] = strval(val); }
- if(strcmp(key , "House" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHouse] = strval(val); }
- if(strcmp(key , "House2" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHouse2] = strval(val); }
- if(strcmp(key , "Renting" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRenting] = strval(val); }
- if(strcmp(key , "Int" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pInt] = strval(val); }
- if(strcmp(key , "VirtualWorld" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pVW] = strval(val); }
- if(strcmp(key , "Jailed" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pJailed] = strval(val); }
- if(strcmp(key , "JailTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pJailTime] = strval(val); }
- new string[128];
- for(new s = 0; s < 12; s++)
- {
- format(string, 128, "Gun%d", s);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGuns][s] = strval(val); }
- }
- if(strcmp(key , "Paycheck" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPayCheck] = strval(val); }
- if(strcmp(key , "PayReady" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPayReady] = strval(val); }
- if(strcmp(key , "Hospital" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHospital] = strval(val); }
- if(strcmp(key , "DetSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDetSkill] = strval(val); }
- if(strcmp(key , "LawSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLawSkill] = strval(val); }
- if(strcmp(key , "SexSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSexSkill] = strval(val); }
- if(strcmp(key , "DrugsSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDrugsSkill] = strval(val); }
- if(strcmp(key , "SmugglerSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSmugSkill] = strval(val); }
- if(strcmp(key , "ArmsSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pArmsSkill] = strval(val); }
- if(strcmp(key , "MechSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pMechSkill] = strval(val); }
- if(strcmp(key , "FishSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFishSkill] = strval(val); }
- if(strcmp(key , "BoxSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBoxSkill] = strval(val); }
- if(strcmp(key , "TruckSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pTruckSkill] = strval(val); }
- if(strcmp(key , "CarSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCarSkill] = strval(val); }
- //if(strcmp(key , "CraftSkill" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCraftSkill] = strval(val); }
- if(strcmp(key , "LawyerTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLawyerTime] = strval(val); }
- if(strcmp(key , "LawyerFreeTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLawyerFreeTime] = strval(val); }
- if(strcmp(key , "DrugsTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDrugsTime] = strval(val); }
- if(strcmp(key , "MechTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pMechTime] = strval(val); }
- if(strcmp(key , "SexTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSexTime] = strval(val); }
- if(strcmp(key , "CarTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCarTime] = strval(val); }
- if(strcmp(key , "Fishes" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFishes] = strval(val); }
- if(strcmp(key , "BiggestFish" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBiggestFish] = strval(val); }
- if(strcmp(key , "pWExists" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedObject] = strval(val); }
- if(strcmp(key , "pWX" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedPos][0] = floatstr(val); }
- if(strcmp(key , "pWY" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedPos][1] = floatstr(val); }
- if(strcmp(key , "pWZ" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedPos][2] = floatstr(val); }
- if(strcmp(key , "pWVW" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedVW] = strval(val); }
- if(strcmp(key , "pWInt" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedInt] = strval(val); }
- if(strcmp(key , "pWValue" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWeedGrowth] = strval(val); }
- if(strcmp(key , "pWSeeds" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWSeeds] = strval(val); }
- if(strcmp(key , "Wins" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWins] = strval(val); }
- if(strcmp(key , "Loses" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLoses] = strval(val); }
- if(strcmp(key , "FightingStyle" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFightStyle] = strval(val); }
- if(strcmp(key , "Screwdriver" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pScrewdriver] = strval(val); }
- if(strcmp(key , "Smslog" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSmslog] = strval(val); }
- if(strcmp(key , "Wristwatch" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pWristwatch] = strval(val); }
- if(strcmp(key , "Tire" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pTire] = strval(val); }
- if(strcmp(key , "Firstaid" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFirstaid] = strval(val); }
- if(strcmp(key , "Rccam" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRccam] = strval(val); }
- if(strcmp(key , "Receiver" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pReceiver] = strval(val); }
- if(strcmp(key , "GPS" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGPS] = strval(val); }
- if(strcmp(key , "Sweep" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSweep] = strval(val); }
- if(strcmp(key , "SweepLeft" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSweepLeft] = strval(val); }
- if(strcmp(key , "Bugged" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBugged] = strval(val); }
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- format(string, 128, "pv%dPosX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvPosX] = floatstr(val); }
- format(string, 128, "pv%dPosY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvPosY] = floatstr(val); }
- format(string, 128, "pv%dPosZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvPosZ] = floatstr(val); }
- format(string, 128, "pv%dPosAngle",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvPosAngle] = floatstr(val); }
- format(string, 128, "pv%dModelId",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvModelId] = strval(val); }
- format(string, 128, "pv%dLock",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvLock] = strval(val); }
- format(string, 128, "pv%dLocked",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvLocked] = strval(val); }
- format(string, 128, "pv%dPaintJob",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvPaintJob] = strval(val); }
- format(string, 128, "pv%dColor1",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvColor1] = strval(val); }
- format(string, 128, "pv%dColor2",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvColor2] = strval(val); }
- format(string, 128, "pv%dPrice",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvPrice] = strval(val); }
- format(string, 128, "pv%dTicket",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvTicket] = strval(val); }
- format(string, 128, "pv%dWeapon0",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvWeapons][0] = strval(val); }
- format(string, 128, "pv%dWeapon1",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvWeapons][1] = strval(val); }
- format(string, 128, "pv%dWeapon2",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvWeapons][2] = strval(val); }
- format(string, 128, "pv%dWepUpgrade",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvWepUpgrade] = strval(val); }
- format(string, 128, "pv%dFuel",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvFuel] = floatstr(val); }
- format(string, 128, "pv%dImpound",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvImpounded] = strval(val); }
- format(string, 128, "pv%dSpawned",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvSpawned] = strval(val); }
- format(string, 128, "pv%dDisabled",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvDisabled] = strval(val); }
- format(string, 128, "pv%dNumPlate",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); strmid(PlayerVehicleInfo[MAX_PLAYERS][v][pvNumberPlate], val, 0, strlen(val)-1, 32); }
- for(new m = 0; m < MAX_MODS; m++)
- {
- format(string, 128, "pv%dMod%d", v, m);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerVehicleInfo[MAX_PLAYERS][v][pvMods][m] = strval(val); }
- }
- //format(string, 128, "pv%dAllowedPlayer",v);
- //if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); strmid(PlayerVehicleInfo[MAX_PLAYERS][v][pvAllowPlayer], val, 0, strlen(val)-1, 255); }
- }
- if(strcmp(key , "OnDuty" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDuty] = strval(val); }
- if(strcmp(key , "CarLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCarLic] = strval(val); }
- if(strcmp(key , "FlyLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFlyLic] = strval(val); }
- if(strcmp(key , "BoatLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBoatLic] = strval(val); }
- if(strcmp(key , "FishLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFishLic] = strval(val); }
- if(strcmp(key , "GunLic" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGunLic] = strval(val); }
- if(strcmp(key , "Division" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pDivision] = strval(val); }
- if(strcmp(key , "TicketTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pTicketTime] = strval(val); }
- if(strcmp(key , "HeadValue" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHeadValue] = strval(val); }
- if(strcmp(key , "ContractBy" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pContractBy], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "ContractDetail" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pContractDetail], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "Bombs" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pBombs] = strval(val); }
- if(strcmp(key , "CHits" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCHits] = strval(val); }
- if(strcmp(key , "FHits" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pFHits] = strval(val); }
- if(strcmp(key, "PrisonedBy", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pPrisonedBy], val, 0, strlen(val)-1, 255); }
- if(strcmp(key, "PrisonReason", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pPrisonReason], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "AcceptReport" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pAcceptReport] = strval(val); }
- if(strcmp(key , "TrashReport" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pTrashReport] = strval(val); }
- if(strcmp(key , "Accent" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pAccent] = strval(val); }
- if(strcmp(key , "NewMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pNMute] = strval(val); }
- if(strcmp(key , "NewMutedTotal" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pNMuteTotal] = strval(val); }
- if(strcmp(key , "AdMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pADMute] = strval(val); }
- if(strcmp(key , "AdMutedTotal" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pADMuteTotal] = strval(val); }
- if(strcmp(key , "ReportMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRMuted] = strval(val); }
- if(strcmp(key , "ReportMutedTotal" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRMutedTotal] = strval(val); }
- if(strcmp(key , "ReportMutedTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRMutedTime] = strval(val); }
- if(strcmp(key , "Speedo" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pSpeedo] = strval(val); }
- if(strcmp(key , "GCMuted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGCMuted] = strval(val); }
- if(strcmp(key , "GCMutedTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pGCMutedTime] = strval(val); }
- if(strcmp(key , "CallsAccepted" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCallsAccepted] = strval(val); }
- if(strcmp(key , "PatientsDelivered" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pPatientsDelivered] = strval(val); }
- if(strcmp(key , "TriageTime" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pTriageTime] = strval(val); }
- if(strcmp(key , "Married" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pMarried] = strval(val); }
- if(strcmp(key , "MarriedTo" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pMarriedTo], val, 0, strlen(val)-1, 255); }
- for(new v = 0; v < MAX_PLAYERTOYS; v++)
- {
- format(string, 128, "pt%dModelID",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptModelID] = strval(val); }
- format(string, 128, "pt%dBone",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptBone] = strval(val); }
- format(string, 128, "pt%dPosX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptPosX] = floatstr(val); }
- format(string, 128, "pt%dPosY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptPosY] = floatstr(val); }
- format(string, 128, "pt%dPosZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptPosZ] = floatstr(val); }
- format(string, 128, "pt%dRotX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptRotX] = floatstr(val); }
- format(string, 128, "pt%dRotY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptRotY] = floatstr(val); }
- format(string, 128, "pt%dRotZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptRotZ] = floatstr(val); }
- format(string, 128, "pt%dScaX",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptScaleX] = floatstr(val); }
- format(string, 128, "pt%dScaY",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptScaleY] = floatstr(val); }
- format(string, 128, "pt%dScaZ",v);
- if(strcmp(key , string , true) == 0) { val = Ini_Value(Data); PlayerToyInfo[MAX_PLAYERS][v][ptScaleZ] = floatstr(val); }
- }
- if(strcmp(key , "KillLog0" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog0], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog1" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog1], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog2" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog2], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog3" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog3], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog4" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog4], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog5" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog5], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog6" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog6], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog7" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog7], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog8" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog8], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "KillLog9" , true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pKillLog9], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "Crew1" , true ) == 0 ) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCrew1] = strval(val); }
- if(strcmp(key , "Crew2" , true ) == 0 ) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCrew2] = strval(val); }
- if(strcmp(key , "Crew3" , true ) == 0 ) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pCrew3] = strval(val); }
- if(strcmp(key, "Flag", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pFlag], val, 0, strlen(val)-1, 255); }
- if(strcmp(key, "ReferredBy", true) == 0) { val = Ini_Value(Data); strmid(PlayerInfo[MAX_PLAYERS][pReferredBy], val, 0, strlen(val)-1, 255); }
- if(strcmp(key , "RefTokens" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRefTokens] = strval(val); }
- if(strcmp(key , "RefTokensOffline" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pRefTokensOffline] = strval(val); }
- if(strcmp(key , "Helper" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pHelper] = strval(val); }
- if(strcmp(key , "LiveBanned" , true) == 0) { val = Ini_Value(Data); PlayerInfo[MAX_PLAYERS][pLiveBanned] = strval(val); }
- }//end while
- fclose(UserFile);//close the file after everything has been read in the while
- }
- //printf("[DEBUG] OnPlayerOfflineLogin has completed processing file '%s'", playername);
- }
- forward OnPlayerOfflineSave(playername[]);
- public OnPlayerOfflineSave(playername[])
- {
- new string3[32];
- //GetPlayerName(MAX_PLAYERS, playername, MAX_PLAYER_NAME);
- format(string3, sizeof(string3), "users/%s.ini", playername);
- new File: hFile = fopen(string3, io_write);
- if(hFile)
- {
- new var[156];
- format(var, 156, "Key=%s\n", PlayerInfo[MAX_PLAYERS][pKey]);fwrite(hFile, var);
- format(var, 32, "Level=%d\n",PlayerInfo[MAX_PLAYERS][pLevel]);fwrite(hFile, var);
- format(var, 32, "AdminLevel=%d\n",PlayerInfo[MAX_PLAYERS][pAdmin]);fwrite(hFile, var);
- format(var, 32, "AdminName=%s\n", PlayerInfo[MAX_PLAYERS][pAdminName]);fwrite(hFile, var);
- format(var, 32, "BanAppealer=%d\n",PlayerInfo[MAX_PLAYERS][pBanAppealer]);fwrite(hFile, var);
- format(var, 32, "Donator=%d\n",PlayerInfo[MAX_PLAYERS][pDonator]);fwrite(hFile, var);
- format(var, 32, "GangMod=%d\n",PlayerInfo[MAX_PLAYERS][pGangMod]);fwrite(hFile, var);
- format(var, 32, "FactionMod=%d\n",PlayerInfo[MAX_PLAYERS][pFactionMod]);fwrite(hFile, var);
- format(var, 32, "HelperMod=%d\n",PlayerInfo[MAX_PLAYERS][pHelperMod]);fwrite(hFile, var);
- format(var, 32, "Band=%d\n",PlayerInfo[MAX_PLAYERS][pBanned]);fwrite(hFile, var);
- format(var, 32, "WalkStyle=%d\n",PlayerInfo[MAX_PLAYERS][pWalkStyle]);fwrite(hFile, var);
- format(var, 32, "PermBand=%d\n",PlayerInfo[MAX_PLAYERS][pPermaBanned]);fwrite(hFile, var);
- format(var, 32, "Disabled=%d\n",PlayerInfo[MAX_PLAYERS][pDisabled]);fwrite(hFile, var);
- format(var, 32, "IP=%s\n",PlayerInfo[MAX_PLAYERS][pIP]);fwrite(hFile, var);
- format(var, 32, "Registered=%d\n",PlayerInfo[MAX_PLAYERS][pReg]);fwrite(hFile, var);
- format(var, 32, "Tutorial=%d\n",PlayerInfo[MAX_PLAYERS][pTut]);fwrite(hFile, var);
- format(var, 32, "Sex=%d\n",PlayerInfo[MAX_PLAYERS][pSex]);fwrite(hFile, var);
- format(var, 32, "Age=%d\n",PlayerInfo[MAX_PLAYERS][pAge]);fwrite(hFile, var);
- format(var, 32, "Skin=%d\n",PlayerInfo[MAX_PLAYERS][pSkin]);fwrite(hFile, var);
- format(var, 32, "SPos_x=%.1f\n",PlayerInfo[MAX_PLAYERS][pPos_x]);fwrite(hFile, var);
- format(var, 32, "SPos_y=%.1f\n",PlayerInfo[MAX_PLAYERS][pPos_y]);fwrite(hFile, var);
- format(var, 32, "SPos_z=%.1f\n",PlayerInfo[MAX_PLAYERS][pPos_z]);fwrite(hFile, var);
- format(var, 32, "SPos_r=%.1f\n",PlayerInfo[MAX_PLAYERS][pPos_r]);fwrite(hFile, var);
- format(var, 32, "ConnectedTime=%d\n",PlayerInfo[MAX_PLAYERS][pConnectTime]);fwrite(hFile, var);
- format(var, 32, "Respect=%d\n",PlayerInfo[MAX_PLAYERS][pRespect]);fwrite(hFile, var);
- format(var, 32, "PhoneNr=%d\n",PlayerInfo[MAX_PLAYERS][pNumber]);fwrite(hFile, var);
- format(var, 32, "Warnings=%d\n",PlayerInfo[MAX_PLAYERS][pWarns]);fwrite(hFile, var);
- format(var, 32, "Gang=%d\n",PlayerInfo[MAX_PLAYERS][pGang]);fwrite(hFile, var);
- format(var, 32, "Faction=%d\n",PlayerInfo[MAX_PLAYERS][pFaction]);fwrite(hFile, var);
- format(var, 32, "Leader=%d\n",PlayerInfo[MAX_PLAYERS][pLeader]);fwrite(hFile, var);
- format(var, 32, "Rank=%d\n",PlayerInfo[MAX_PLAYERS][pRank]);fwrite(hFile, var);
- format(var, 32, "Job=%d\n",PlayerInfo[MAX_PLAYERS][pJob]);fwrite(hFile, var);
- format(var, 32, "Job2=%d\n",PlayerInfo[MAX_PLAYERS][pJob2]);fwrite(hFile, var);
- format(var, 32, "UpgradePoints=%d\n",PlayerInfo[MAX_PLAYERS][gPupgrade]);fwrite(hFile, var);
- format(var, 32, "SpawnArmor=%.1f\n",PlayerInfo[MAX_PLAYERS][pSarmor]);fwrite(hFile, var);
- format(var, 32, "Cash=%d\n",PlayerInfo[MAX_PLAYERS][pCash]);fwrite(hFile, var);
- format(var, 32, "Bank=%d\n",PlayerInfo[MAX_PLAYERS][pBank]);fwrite(hFile, var);
- format(var, 32, "Insurance=%d\n",PlayerInfo[MAX_PLAYERS][pInsurance]);fwrite(hFile, var);
- format(var, 32, "Crimes=%d\n",PlayerInfo[MAX_PLAYERS][pCrimes]);fwrite(hFile, var);
- format(var, 32, "Arrested=%d\n",PlayerInfo[MAX_PLAYERS][pArrested]);fwrite(hFile, var);
- format(var, 32, "WantedLevel=%d\n",PlayerInfo[MAX_PLAYERS][pWantedLevel]);fwrite(hFile, var);
- format(var, 32, "Health=%.1f\n",PlayerInfo[MAX_PLAYERS][pHealth]);fwrite(hFile, var);
- format(var, 32, "Armor=%.1f\n",PlayerInfo[MAX_PLAYERS][pArmor]);fwrite(hFile, var);
- format(var, 32, "Pot=%d\n",PlayerInfo[MAX_PLAYERS][pPot]);fwrite(hFile, var);
- format(var, 32, "Crack=%d\n",PlayerInfo[MAX_PLAYERS][pCrack]);fwrite(hFile, var);
- format(var, 32, "Radio=%d\n",PlayerInfo[MAX_PLAYERS][pRadio]);fwrite(hFile, var);
- format(var, 32, "RadioFreq=%d\n",PlayerInfo[MAX_PLAYERS][pRadioFreq]);fwrite(hFile, var);
- format(var, 32, "Phonebook=%d\n",PlayerInfo[MAX_PLAYERS][pPhoneBook]);fwrite(hFile, var);
- format(var, 32, "Dice=%d\n",PlayerInfo[MAX_PLAYERS][pDice]);fwrite(hFile, var);
- format(var, 32, "CDPlayer=%d\n",PlayerInfo[MAX_PLAYERS][pCDPlayer]);fwrite(hFile, var);
- format(var, 32, "Materials=%d\n",PlayerInfo[MAX_PLAYERS][pMats]);fwrite(hFile, var);
- format(var, 32, "Rope=%d\n",PlayerInfo[MAX_PLAYERS][pRope]);fwrite(hFile, var);
- format(var, 32, "Cigars=%d\n",PlayerInfo[MAX_PLAYERS][pCigar]);fwrite(hFile, var);
- format(var, 32, "Sprunk=%d\n",PlayerInfo[MAX_PLAYERS][pSprunk]);fwrite(hFile, var);
- format(var, 32, "Spraycan=%d\n",PlayerInfo[MAX_PLAYERS][pSpraycan]);fwrite(hFile, var);
- format(var, 32, "House=%d\n",PlayerInfo[MAX_PLAYERS][pHouse]);fwrite(hFile, var);
- format(var, 32, "House2=%d\n",PlayerInfo[MAX_PLAYERS][pHouse2]);fwrite(hFile, var);
- format(var, 32, "Renting=%d\n",PlayerInfo[MAX_PLAYERS][pRenting]);fwrite(hFile, var);
- format(var, 32, "Int=%d\n",PlayerInfo[MAX_PLAYERS][pInt]);fwrite(hFile, var);
- format(var, 32, "VirtualWorld=%d\n",PlayerInfo[MAX_PLAYERS][pVW]);fwrite(hFile, var);
- format(var, 32, "Jailed=%d\n",PlayerInfo[MAX_PLAYERS][pJailed]);fwrite(hFile, var);
- format(var, 32, "JailTime=%d\n",PlayerInfo[MAX_PLAYERS][pJailTime]);fwrite(hFile, var);
- for(new s = 0; s < 12; s++)
- {
- format(var, 32, "Gun%d=%d\n", s, PlayerInfo[MAX_PLAYERS][pGuns][s]);fwrite(hFile, var);
- }
- format(var, 32, "Paycheck=%d\n",PlayerInfo[MAX_PLAYERS][pPayCheck]);fwrite(hFile, var);
- format(var, 32, "PayReady=%d\n",PlayerInfo[MAX_PLAYERS][pPayReady]);fwrite(hFile, var);
- format(var, 32, "Hospital=%d\n",PlayerInfo[MAX_PLAYERS][pHospital]);fwrite(hFile, var);
- format(var, 32, "DetSkill=%d\n",PlayerInfo[MAX_PLAYERS][pDetSkill]);fwrite(hFile, var);
- format(var, 32, "LawSkill=%d\n",PlayerInfo[MAX_PLAYERS][pLawSkill]);fwrite(hFile, var);
- format(var, 32, "SexSkill=%d\n",PlayerInfo[MAX_PLAYERS][pSexSkill]);fwrite(hFile, var);
- format(var, 32, "DrugsSkill=%d\n",PlayerInfo[MAX_PLAYERS][pDrugsSkill]);fwrite(hFile, var);
- format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[MAX_PLAYERS][pSmugSkill]);fwrite(hFile, var);
- format(var, 32, "ArmsSkill=%d\n",PlayerInfo[MAX_PLAYERS][pArmsSkill]);fwrite(hFile, var);
- format(var, 32, "MechSkill=%d\n",PlayerInfo[MAX_PLAYERS][pMechSkill]);fwrite(hFile, var);
- format(var, 32, "FishSkill=%d\n",PlayerInfo[MAX_PLAYERS][pFishSkill]);fwrite(hFile, var);
- format(var, 32, "BoxSkill=%d\n",PlayerInfo[MAX_PLAYERS][pBoxSkill]);fwrite(hFile, var);
- format(var, 32, "TruckSkill=%d\n",PlayerInfo[MAX_PLAYERS][pTruckSkill]);fwrite(hFile, var);
- format(var, 32, "CarSkill=%d\n",PlayerInfo[MAX_PLAYERS][pCarSkill]);fwrite(hFile, var);
- //format(var, 32, "CraftSkill=%d\n",PlayerInfo[MAX_PLAYERS][pCraftSkill]);fwrite(hFile, var);
- format(var, 32, "LawyerTime=%d\n",PlayerInfo[MAX_PLAYERS][pLawyerTime]);fwrite(hFile, var);
- format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[MAX_PLAYERS][pLawyerFreeTime]);fwrite(hFile, var);
- format(var, 32, "DrugsTime=%d\n",PlayerInfo[MAX_PLAYERS][pDrugsTime]);fwrite(hFile, var);
- format(var, 32, "MechTime=%d\n",PlayerInfo[MAX_PLAYERS][pMechTime]);fwrite(hFile, var);
- format(var, 32, "SexTime=%d\n",PlayerInfo[MAX_PLAYERS][pSexTime]);fwrite(hFile, var);
- format(var, 32, "CarTime=%d\n",PlayerInfo[MAX_PLAYERS][pCarTime]);fwrite(hFile, var);
- format(var, 32, "Fishes=%d\n",PlayerInfo[MAX_PLAYERS][pFishes]);fwrite(hFile, var);
- format(var, 32, "BiggestFish=%d\n",PlayerInfo[MAX_PLAYERS][pBiggestFish]);fwrite(hFile, var);
- format(var, 32, "pWExists=%d\n",PlayerInfo[MAX_PLAYERS][pWeedObject]);fwrite(hFile, var);
- format(var, 32, "pWX=%f\n",PlayerInfo[MAX_PLAYERS][pWeedPos][0]);fwrite(hFile, var);
- format(var, 32, "pWY=%f\n",PlayerInfo[MAX_PLAYERS][pWeedPos][1]);fwrite(hFile, var);
- format(var, 32, "pWZ=%f\n",PlayerInfo[MAX_PLAYERS][pWeedPos][2]);fwrite(hFile, var);
- format(var, 32, "pWVW=%d\n",PlayerInfo[MAX_PLAYERS][pWeedVW]);fwrite(hFile, var);
- format(var, 32, "pWInt=%d\n",PlayerInfo[MAX_PLAYERS][pWeedInt]);fwrite(hFile, var);
- format(var, 32, "pWValue=%d\n",PlayerInfo[MAX_PLAYERS][pWeedGrowth]);fwrite(hFile, var);
- format(var, 32, "pWSeeds=%d\n",PlayerInfo[MAX_PLAYERS][pWSeeds]);fwrite(hFile, var);
- format(var, 32, "Wins=%d\n",PlayerInfo[MAX_PLAYERS][pWins]);fwrite(hFile, var);
- format(var, 32, "Loses=%d\n",PlayerInfo[MAX_PLAYERS][pLoses]);fwrite(hFile, var);
- format(var, 32, "FightingStyle=%d\n",PlayerInfo[MAX_PLAYERS][pFightStyle]);fwrite(hFile, var);
- format(var, 32, "Screwdriver=%d\n",PlayerInfo[MAX_PLAYERS][pScrewdriver]);fwrite(hFile, var);
- format(var, 32, "Smslog=%d\n",PlayerInfo[MAX_PLAYERS][pSmslog]);fwrite(hFile, var);
- format(var, 32, "Wristwatch=%d\n",PlayerInfo[MAX_PLAYERS][pWristwatch]);fwrite(hFile, var);
- format(var, 32, "Tire=%d\n",PlayerInfo[MAX_PLAYERS][pTire]);fwrite(hFile, var);
- format(var, 32, "Firstaid=%d\n",PlayerInfo[MAX_PLAYERS][pFirstaid]);fwrite(hFile, var);
- format(var, 32, "Rccam=%d\n",PlayerInfo[MAX_PLAYERS][pRccam]);fwrite(hFile, var);
- format(var, 32, "Receiver=%d\n",PlayerInfo[MAX_PLAYERS][pReceiver]);fwrite(hFile, var);
- format(var, 32, "GPS=%d\n",PlayerInfo[MAX_PLAYERS][pGPS]);fwrite(hFile, var);
- format(var, 32, "Sweep=%d\n",PlayerInfo[MAX_PLAYERS][pSweep]);fwrite(hFile, var);
- format(var, 32, "SweepLeft=%d\n",PlayerInfo[MAX_PLAYERS][pSweepLeft]);fwrite(hFile, var);
- format(var, 32, "Bugged=%d\n",PlayerInfo[MAX_PLAYERS][pBugged]);fwrite(hFile, var);
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- format(var, 32, "pv%dPosX=%.1f\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvPosX]);fwrite(hFile, var);
- format(var, 32, "pv%dPosY=%.1f\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvPosY]);fwrite(hFile, var);
- format(var, 32, "pv%dPosZ=%.1f\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvPosZ]);fwrite(hFile, var);
- format(var, 32, "pv%dPosAngle=%.1f\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvPosAngle]);fwrite(hFile, var);
- format(var, 32, "pv%dModelId=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvModelId]);fwrite(hFile, var);
- format(var, 32, "pv%dLock=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvLock]);fwrite(hFile, var);
- format(var, 32, "pv%dLocked=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvLocked]);fwrite(hFile, var);
- format(var, 32, "pv%dPaintJob=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvPaintJob]);fwrite(hFile, var);
- format(var, 32, "pv%dColor1=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvColor1]);fwrite(hFile, var);
- format(var, 32, "pv%dColor2=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvColor2]);fwrite(hFile, var);
- format(var, 32, "pv%dPrice=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvPrice]);fwrite(hFile, var);
- format(var, 32, "pv%dTicket=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvTicket]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon0=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvWeapons][0]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon1=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvWeapons][1]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon2=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvWeapons][2]);fwrite(hFile, var);
- format(var, 32, "pv%dWepUpgrade=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvWepUpgrade]);fwrite(hFile, var);
- format(var, 32, "pv%dFuel=%.2f\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvFuel]);fwrite(hFile, var);
- format(var, 32, "pv%dImpound=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvImpounded]);fwrite(hFile, var);
- format(var, 32, "pv%dSpawned=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvSpawned]);fwrite(hFile, var);
- format(var, 32, "pv%dDisabled=%d\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvDisabled]);fwrite(hFile, var);
- format(var, 128, "pv%dNumPlate=%s\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvNumberPlate]);fwrite(hFile, var);
- for(new m = 0; m < MAX_MODS; m++)
- {
- format(var, 32, "pv%dMod%d=%d\n", v, m, PlayerVehicleInfo[MAX_PLAYERS][v][pvMods][m]);fwrite(hFile, var);
- }
- //format(var, 32, "pv%dAllowedPlayer=%s\n", v, PlayerVehicleInfo[MAX_PLAYERS][v][pvAllowPlayer]);fwrite(hFile, var);
- }
- format(var, 32, "OnDuty=%d\n",PlayerInfo[MAX_PLAYERS][pDuty]);fwrite(hFile, var);
- format(var, 32, "CarLic=%d\n",PlayerInfo[MAX_PLAYERS][pCarLic]);fwrite(hFile, var);
- format(var, 32, "FlyLic=%d\n",PlayerInfo[MAX_PLAYERS][pFlyLic]);fwrite(hFile, var);
- format(var, 32, "BoatLic=%d\n",PlayerInfo[MAX_PLAYERS][pBoatLic]);fwrite(hFile, var);
- format(var, 32, "FishLic=%d\n",PlayerInfo[MAX_PLAYERS][pFishLic]);fwrite(hFile, var);
- format(var, 32, "GunLic=%d\n",PlayerInfo[MAX_PLAYERS][pGunLic]);fwrite(hFile, var);
- format(var, 32, "Division=%d\n",PlayerInfo[MAX_PLAYERS][pDivision]);fwrite(hFile, var);
- format(var, 32, "TicketTime=%d\n",PlayerInfo[MAX_PLAYERS][pTicketTime]);fwrite(hFile, var);
- format(var, 32, "HeadValue=%d\n",PlayerInfo[MAX_PLAYERS][pHeadValue]);fwrite(hFile, var);
- format(var, 32, "ContractBy=%s\n",PlayerInfo[MAX_PLAYERS][pContractBy]);fwrite(hFile, var);
- format(var, 64, "ContractDetail=%s\n",PlayerInfo[MAX_PLAYERS][pContractDetail]);fwrite(hFile, var);
- format(var, 32, "Bombs=%d\n",PlayerInfo[MAX_PLAYERS][pBombs]);fwrite(hFile, var);
- format(var, 32, "CHits=%d\n",PlayerInfo[MAX_PLAYERS][pCHits]);fwrite(hFile, var);
- format(var, 32, "FHits=%d\n",PlayerInfo[MAX_PLAYERS][pFHits]);fwrite(hFile, var);
- format(var, 32, "PrisonedBy=%s\n", PlayerInfo[MAX_PLAYERS][pPrisonedBy]);fwrite(hFile, var);
- format(var, 128, "PrisonReason=%s\n", PlayerInfo[MAX_PLAYERS][pPrisonReason]);fwrite(hFile, var);
- format(var, 32, "AcceptReport=%d\n",PlayerInfo[MAX_PLAYERS][pAcceptReport]);fwrite(hFile, var);
- format(var, 32, "TrashReport=%d\n",PlayerInfo[MAX_PLAYERS][pTrashReport]);fwrite(hFile, var);
- format(var, 32, "Accent=%d\n",PlayerInfo[MAX_PLAYERS][pAccent]);fwrite(hFile, var);
- format(var, 32, "NewMuted=%d\n",PlayerInfo[MAX_PLAYERS][pNMute]);fwrite(hFile, var);
- format(var, 32, "NewMutedTotal=%d\n",PlayerInfo[MAX_PLAYERS][pNMuteTotal]);fwrite(hFile, var);
- format(var, 32, "AdMuted=%d\n",PlayerInfo[MAX_PLAYERS][pADMute]);fwrite(hFile, var);
- format(var, 32, "AdMutedTotal=%d\n",PlayerInfo[MAX_PLAYERS][pADMuteTotal]);fwrite(hFile, var);
- format(var, 32, "ReportMuted=%d\n",PlayerInfo[MAX_PLAYERS][pRMuted]);fwrite(hFile, var);
- format(var, 32, "ReportMutedTotal=%d\n",PlayerInfo[MAX_PLAYERS][pRMutedTotal]);fwrite(hFile, var);
- format(var, 32, "ReportMutedTime=%d\n",PlayerInfo[MAX_PLAYERS][pRMutedTime]);fwrite(hFile, var);
- format(var, 32, "Speedo=%d\n",PlayerInfo[MAX_PLAYERS][pSpeedo]);fwrite(hFile, var);
- format(var, 32, "GCMuted=%d\n",PlayerInfo[MAX_PLAYERS][pGCMuted]);fwrite(hFile, var);
- format(var, 32, "GCMutedTime=%d\n",PlayerInfo[MAX_PLAYERS][pGCMutedTime]);fwrite(hFile, var);
- format(var, 32, "CallsAccepted=%d\n", PlayerInfo[MAX_PLAYERS][pCallsAccepted]);fwrite(hFile, var);
- format(var, 32, "PatientsDelivered=%d\n",PlayerInfo[MAX_PLAYERS][pPatientsDelivered]);fwrite(hFile, var);
- format(var, 32, "TriageTime=%d\n",PlayerInfo[MAX_PLAYERS][pTriageTime]);fwrite(hFile, var);
- format(var, 32, "Married=%d\n",PlayerInfo[MAX_PLAYERS][pMarried]);fwrite(hFile, var);
- format(var, 32, "MarriedTo=%s\n",PlayerInfo[MAX_PLAYERS][pMarriedTo]);fwrite(hFile, var);
- for(new v = 0; v < MAX_PLAYERTOYS; v++)
- {
- format(var, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptModelID]);fwrite(hFile, var);
- format(var, 32, "pt%dBone=%d\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptBone]);fwrite(hFile, var);
- format(var, 32, "pt%dPosX=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptPosX]);fwrite(hFile, var);
- format(var, 32, "pt%dPosY=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptPosY]);fwrite(hFile, var);
- format(var, 32, "pt%dPosZ=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptPosZ]);fwrite(hFile, var);
- format(var, 32, "pt%dRotX=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptRotX]);fwrite(hFile, var);
- format(var, 32, "pt%dRotY=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptRotY]);fwrite(hFile, var);
- format(var, 32, "pt%dRotZ=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptRotZ]);fwrite(hFile, var);
- format(var, 32, "pt%dScaX=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptScaleX]);fwrite(hFile, var);
- format(var, 32, "pt%dScaY=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptScaleY]);fwrite(hFile, var);
- format(var, 32, "pt%dScaZ=%.5f\n", v, PlayerToyInfo[MAX_PLAYERS][v][ptScaleZ]);fwrite(hFile, var);
- }
- format(var, 256, "KillLog0=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog0]);fwrite(hFile, var);
- format(var, 256, "KillLog1=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog1]);fwrite(hFile, var);
- format(var, 256, "KillLog2=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog2]);fwrite(hFile, var);
- format(var, 256, "KillLog3=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog3]);fwrite(hFile, var);
- format(var, 256, "KillLog4=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog4]);fwrite(hFile, var);
- format(var, 256, "KillLog5=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog5]);fwrite(hFile, var);
- format(var, 256, "KillLog6=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog6]);fwrite(hFile, var);
- format(var, 256, "KillLog7=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog7]);fwrite(hFile, var);
- format(var, 256, "KillLog8=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog8]);fwrite(hFile, var);
- format(var, 256, "KillLog9=%s\n",PlayerInfo[MAX_PLAYERS][pKillLog9]);fwrite(hFile, var);
- format(var, 32, "Crew1=%d\n",PlayerInfo[MAX_PLAYERS][pCrew1]);fwrite(hFile, var);
- format(var, 32, "Crew2=%d\n",PlayerInfo[MAX_PLAYERS][pCrew2]);fwrite(hFile, var);
- format(var, 32, "Crew3=%d\n",PlayerInfo[MAX_PLAYERS][pCrew3]);fwrite(hFile, var);
- format(var, 128, "Flag=%s\n",PlayerInfo[MAX_PLAYERS][pFlag]);fwrite(hFile, var);
- format(var, 128, "ReferredBy=%s\n", PlayerInfo[MAX_PLAYERS][pReferredBy]);fwrite(hFile, var);
- format(var, 32, "RefTokens=%d\n",PlayerInfo[MAX_PLAYERS][pRefTokens]);fwrite(hFile, var);
- format(var, 32, "RefTokensOffline=%d\n",PlayerInfo[MAX_PLAYERS][pRefTokensOffline]);fwrite(hFile, var);
- format(var, 32, "Helper=%d\n",PlayerInfo[MAX_PLAYERS][pHelper]);fwrite(hFile, var);
- format(var, 32, "LiveBanned=%d\n",PlayerInfo[MAX_PLAYERS][pLiveBanned]);fwrite(hFile, var);
- fclose(hFile);
- }
- return 1;
- }
- forward splits(const strsrc[], strdest[][], delimiter);
- public splits(const strsrc[], strdest[][], delimiter)
- {
- new i, li;
- new aNum;
- new len;
- while(i <= strlen(strsrc)){
- if(strsrc[i]==delimiter || i==strlen(strsrc)){
- len = strmid(strdest[aNum], strsrc, li, i, 128);
- strdest[aNum][len] = 0;
- li = i+1;
- aNum++;
- }
- i++;
- }
- return 1;
- }
- stock ini_GetKey(line[])
- {
- new keyRes[64];
- keyRes[0] = 0;
- if(strfind(line , "=" , true) == -1) return keyRes;
- strmid(keyRes , line , 0 , strfind(line , "=" , true) , sizeof(keyRes));
- return keyRes;
- }
- stock Ini_Value(line[])
- {
- new valRes[156];
- valRes[0]=0;
- if(strfind(line , "=" , true) == -1) return valRes;
- strmid(valRes , line , strfind(line , "=" , true)+1 , strlen(line) , sizeof(valRes));
- return valRes;
- }
- forward OnPlayerRegister(playerid, password[]);
- public OnPlayerRegister(playerid, password[])
- {
- if(IsPlayerConnected(playerid))
- {
- new string3[32];
- new playername3[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername3, sizeof(playername3));
- format(string3, sizeof(string3), "users/%s.ini", playername3);
- new File: hFile = fopen(string3, io_write);
- if(hFile)
- {
- strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
- new var[156];
- format(var, 156, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
- format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
- format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
- format(var, 32, "AdminName=%s\n", PlayerInfo[playerid][pAdminName]);fwrite(hFile, var);
- format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
- format(var, 32, "Donator=%d\n",PlayerInfo[playerid][pDonator]);fwrite(hFile, var);
- format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
- format(var, 32, "FactionMod=%d\n",PlayerInfo[playerid][pFactionMod]);fwrite(hFile, var);
- format(var, 32, "HelperMod=%d\n",PlayerInfo[playerid][pHelperMod]);fwrite(hFile, var);
- format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBanned]);fwrite(hFile, var);
- format(var, 32, "WalkStyle=%d\n",PlayerInfo[playerid][pWalkStyle]);fwrite(hFile, var);
- format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermaBanned]);fwrite(hFile, var);
- format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
- format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
- format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
- format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
- format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
- format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
- format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
- format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
- format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
- format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
- format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pPos_r]);fwrite(hFile, var);
- format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
- format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pRespect]);fwrite(hFile, var);
- format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pNumber]);fwrite(hFile, var);
- format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
- format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
- format(var, 32, "Faction=%d\n",PlayerInfo[playerid][pFaction]);fwrite(hFile, var);
- format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
- format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
- format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
- format(var, 32, "Job2=%d\n",PlayerInfo[playerid][pJob2]);fwrite(hFile, var);
- format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
- format(var, 32, "SpawnArmor=%.1f\n",PlayerInfo[playerid][pSarmor]);fwrite(hFile, var);
- format(var, 32, "Cash=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
- format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(hFile, var);
- format(var, 32, "Insurance=%d\n",PlayerInfo[playerid][pInsurance]);fwrite(hFile, var);
- format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
- format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
- format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
- format(var, 32, "Health=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
- format(var, 32, "Armor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
- format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
- format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
- format(var, 32, "Radio=%d\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var);
- format(var, 32, "RadioFreq=%d\n",PlayerInfo[playerid][pRadioFreq]);fwrite(hFile, var);
- format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
- format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
- format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
- format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
- format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
- format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigar]);fwrite(hFile, var);
- format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
- format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
- format(var, 32, "House=%d\n",PlayerInfo[playerid][pHouse]);fwrite(hFile, var);
- format(var, 32, "House2=%d\n",PlayerInfo[playerid][pHouse2]);fwrite(hFile, var);
- format(var, 32, "Renting=%d\n",PlayerInfo[playerid][pRenting]);fwrite(hFile, var);
- format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
- format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVW]);fwrite(hFile, var);
- format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
- format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
- for(new s = 0; s < 12; s++)
- {
- format(var, 32, "Gun%d=%d\n", s, PlayerInfo[playerid][pGuns][s]);fwrite(hFile, var);
- }
- format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
- format(var, 32, "PayReady=%d\n",PlayerInfo[playerid][pPayReady]);fwrite(hFile, var);
- format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
- format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
- format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
- format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
- format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
- format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugSkill]);fwrite(hFile, var);
- format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
- format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
- format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
- format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
- format(var, 32, "TruckSkill=%d\n",PlayerInfo[playerid][pTruckSkill]);fwrite(hFile, var);
- format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
- //format(var, 32, "CraftSkill=%d\n",PlayerInfo[playerid][pCraftSkill]);fwrite(hFile, var);
- format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
- format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
- format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
- format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
- format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
- format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
- format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
- format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
- format(var, 32, "pWExists=%d\n",PlayerInfo[playerid][pWeedObject]);fwrite(hFile, var);
- format(var, 32, "pWX=%f\n",PlayerInfo[playerid][pWeedPos][0]);fwrite(hFile, var);
- format(var, 32, "pWY=%f\n",PlayerInfo[playerid][pWeedPos][1]);fwrite(hFile, var);
- format(var, 32, "pWZ=%f\n",PlayerInfo[playerid][pWeedPos][2]);fwrite(hFile, var);
- format(var, 32, "pWVW=%d\n",PlayerInfo[playerid][pWeedVW]);fwrite(hFile, var);
- format(var, 32, "pWInt=%d\n",PlayerInfo[playerid][pWeedInt]);fwrite(hFile, var);
- format(var, 32, "pWValue=%d\n",PlayerInfo[playerid][pWeedGrowth]);fwrite(hFile, var);
- format(var, 32, "pWSeeds=%d\n",PlayerInfo[playerid][pWSeeds]);fwrite(hFile, var);
- format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
- format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
- format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightStyle]);fwrite(hFile, var);
- format(var, 32, "Screwdriver=%d\n",PlayerInfo[playerid][pScrewdriver]);fwrite(hFile, var);
- format(var, 32, "Smslog=%d\n",PlayerInfo[playerid][pSmslog]);fwrite(hFile, var);
- format(var, 32, "Wristwatch=%d\n",PlayerInfo[playerid][pWristwatch]);fwrite(hFile, var);
- format(var, 32, "Tire=%d\n",PlayerInfo[playerid][pTire]);fwrite(hFile, var);
- format(var, 32, "Firstaid=%d\n",PlayerInfo[playerid][pFirstaid]);fwrite(hFile, var);
- format(var, 32, "Rccam=%d\n",PlayerInfo[playerid][pRccam]);fwrite(hFile, var);
- format(var, 32, "Receiver=%d\n",PlayerInfo[playerid][pReceiver]);fwrite(hFile, var);
- format(var, 32, "GPS=%d\n",PlayerInfo[playerid][pGPS]);fwrite(hFile, var);
- format(var, 32, "Sweep=%d\n",PlayerInfo[playerid][pSweep]);fwrite(hFile, var);
- format(var, 32, "SweepLeft=%d\n",PlayerInfo[playerid][pSweepLeft]);fwrite(hFile, var);
- format(var, 32, "Bugged=%d\n",PlayerInfo[playerid][pBugged]);fwrite(hFile, var);
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- format(var, 32, "pv%dPosX=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosX]);fwrite(hFile, var);
- format(var, 32, "pv%dPosY=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosY]);fwrite(hFile, var);
- format(var, 32, "pv%dPosZ=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosZ]);fwrite(hFile, var);
- format(var, 32, "pv%dPosAngle=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosAngle]);fwrite(hFile, var);
- format(var, 32, "pv%dModelId=%d\n", v, PlayerVehicleInfo[playerid][v][pvModelId]);fwrite(hFile, var);
- format(var, 32, "pv%dLock=%d\n", v, PlayerVehicleInfo[playerid][v][pvLock]);fwrite(hFile, var);
- format(var, 32, "pv%dLocked=%d\n", v, PlayerVehicleInfo[playerid][v][pvLocked]);fwrite(hFile, var);
- format(var, 32, "pv%dPaintJob=%d\n", v, PlayerVehicleInfo[playerid][v][pvPaintJob]);fwrite(hFile, var);
- format(var, 32, "pv%dColor1=%d\n", v, PlayerVehicleInfo[playerid][v][pvColor1]);fwrite(hFile, var);
- format(var, 32, "pv%dColor2=%d\n", v, PlayerVehicleInfo[playerid][v][pvColor2]);fwrite(hFile, var);
- format(var, 32, "pv%dPrice=%d\n", v, PlayerVehicleInfo[playerid][v][pvPrice]);fwrite(hFile, var);
- format(var, 32, "pv%dTicket=%d\n", v, PlayerVehicleInfo[playerid][v][pvTicket]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon0=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][0]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon1=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][1]);fwrite(hFile, var);
- format(var, 32, "pv%dWeapon2=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][2]);fwrite(hFile, var);
- format(var, 32, "pv%dWepUpgrade=%d\n", v, PlayerVehicleInfo[playerid][v][pvWepUpgrade]);fwrite(hFile, var);
- format(var, 32, "pv%dFuel=%.2f\n", v, PlayerVehicleInfo[playerid][v][pvFuel]);fwrite(hFile, var);
- format(var, 32, "pv%dImpound=%d\n", v, PlayerVehicleInfo[playerid][v][pvImpounded]);fwrite(hFile, var);
- format(var, 32, "pv%dSpawned=%d\n", v, PlayerVehicleInfo[playerid][v][pvSpawned]);fwrite(hFile, var);
- format(var, 32, "pv%dDisabled=%d\n", v, PlayerVehicleInfo[playerid][v][pvDisabled]);fwrite(hFile, var);
- format(var, 128, "pv%dNumPlate=%s\n", v, PlayerVehicleInfo[playerid][v][pvNumberPlate]);fwrite(hFile, var);
- for(new m = 0; m < MAX_MODS; m++)
- {
- format(var, 32, "pv%dMod%d=%d\n", v, m, PlayerVehicleInfo[playerid][v][pvMods][m]);fwrite(hFile, var);
- }
- //format(var, 32, "pv%dAllowedPlayer=%s\n", v, PlayerVehicleInfo[playerid][v][pvAllowPlayer]);fwrite(hFile, var);
- }
- format(var, 32, "OnDuty=%d\n",PlayerInfo[playerid][pDuty]);fwrite(hFile, var);
- format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
- format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
- format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
- format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
- format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
- format(var, 32, "Division=%d\n",PlayerInfo[playerid][pDivision]);fwrite(hFile, var);
- format(var, 32, "TicketTime=%d\n",PlayerInfo[playerid][pTicketTime]);fwrite(hFile, var);
- format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
- format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
- format(var, 64, "ContractDetail=%s\n",PlayerInfo[playerid][pContractDetail]);fwrite(hFile, var);
- format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
- format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
- format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
- format(var, 32, "PrisonedBy=%s\n", PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
- format(var, 128, "PrisonReason=%s\n", PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
- format(var, 32, "AcceptReport=%d\n",PlayerInfo[playerid][pAcceptReport]);fwrite(hFile, var);
- format(var, 32, "TrashReport=%d\n",PlayerInfo[playerid][pTrashReport]);fwrite(hFile, var);
- format(var, 32, "Accent=%d\n",PlayerInfo[playerid][pAccent]);fwrite(hFile, var);
- format(var, 32, "NewMuted=%d\n",PlayerInfo[playerid][pNMute]);fwrite(hFile, var);
- format(var, 32, "NewMutedTotal=%d\n",PlayerInfo[playerid][pNMuteTotal]);fwrite(hFile, var);
- format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pADMute]);fwrite(hFile, var);
- format(var, 32, "AdMutedTotal=%d\n",PlayerInfo[playerid][pADMuteTotal]);fwrite(hFile, var);
- format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pRMuted]);fwrite(hFile, var);
- format(var, 32, "ReportMutedTotal=%d\n",PlayerInfo[playerid][pRMutedTotal]);fwrite(hFile, var);
- format(var, 32, "ReportMutedTime=%d\n",PlayerInfo[playerid][pRMutedTime]);fwrite(hFile, var);
- format(var, 32, "Speedo=%d\n",PlayerInfo[playerid][pSpeedo]);fwrite(hFile, var);
- format(var, 32, "GCMuted=%d\n",PlayerInfo[playerid][pGCMuted]);fwrite(hFile, var);
- format(var, 32, "GCMutedTime=%d\n",PlayerInfo[playerid][pGCMutedTime]);fwrite(hFile, var);
- format(var, 32, "CallsAccepted=%d\n", PlayerInfo[playerid][pCallsAccepted]);fwrite(hFile, var);
- format(var, 32, "PatientsDelivered=%d\n",PlayerInfo[playerid][pPatientsDelivered]);fwrite(hFile, var);
- format(var, 32, "TriageTime=%d\n",PlayerInfo[playerid][pTriageTime]);fwrite(hFile, var);
- format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
- format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
- for(new v = 0; v < MAX_PLAYERTOYS; v++)
- {
- format(var, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);fwrite(hFile, var);
- format(var, 32, "pt%dBone=%d\n", v, PlayerToyInfo[playerid][v][ptBone]);fwrite(hFile, var);
- format(var, 32, "pt%dPosX=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosX]);fwrite(hFile, var);
- format(var, 32, "pt%dPosY=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosY]);fwrite(hFile, var);
- format(var, 32, "pt%dPosZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosZ]);fwrite(hFile, var);
- format(var, 32, "pt%dRotX=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotX]);fwrite(hFile, var);
- format(var, 32, "pt%dRotY=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotY]);fwrite(hFile, var);
- format(var, 32, "pt%dRotZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotZ]);fwrite(hFile, var);
- format(var, 32, "pt%dScaX=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleX]);fwrite(hFile, var);
- format(var, 32, "pt%dScaY=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleY]);fwrite(hFile, var);
- format(var, 32, "pt%dScaZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleZ]);fwrite(hFile, var);
- }
- format(var, 256, "KillLog0=%s\n",PlayerInfo[playerid][pKillLog0]);fwrite(hFile, var);
- format(var, 256, "KillLog1=%s\n",PlayerInfo[playerid][pKillLog1]);fwrite(hFile, var);
- format(var, 256, "KillLog2=%s\n",PlayerInfo[playerid][pKillLog2]);fwrite(hFile, var);
- format(var, 256, "KillLog3=%s\n",PlayerInfo[playerid][pKillLog3]);fwrite(hFile, var);
- format(var, 256, "KillLog4=%s\n",PlayerInfo[playerid][pKillLog4]);fwrite(hFile, var);
- format(var, 256, "KillLog5=%s\n",PlayerInfo[playerid][pKillLog5]);fwrite(hFile, var);
- format(var, 256, "KillLog6=%s\n",PlayerInfo[playerid][pKillLog6]);fwrite(hFile, var);
- format(var, 256, "KillLog7=%s\n",PlayerInfo[playerid][pKillLog7]);fwrite(hFile, var);
- format(var, 256, "KillLog8=%s\n",PlayerInfo[playerid][pKillLog8]);fwrite(hFile, var);
- format(var, 256, "KillLog9=%s\n",PlayerInfo[playerid][pKillLog9]);fwrite(hFile, var);
- format(var, 32, "Crew1=%d\n",PlayerInfo[playerid][pCrew1]);fwrite(hFile, var);
- format(var, 32, "Crew2=%d\n",PlayerInfo[playerid][pCrew2]);fwrite(hFile, var);
- format(var, 32, "Crew3=%d\n",PlayerInfo[playerid][pCrew3]);fwrite(hFile, var);
- format(var, 128, "Flag=%s\n", PlayerInfo[playerid][pFlag]);fwrite(hFile, var);
- format(var, 128, "ReferredBy=%s\n", PlayerInfo[playerid][pReferredBy]);fwrite(hFile, var);
- format(var, 32, "RefTokens=%d\n",PlayerInfo[playerid][pRefTokens]);fwrite(hFile, var);
- format(var, 32, "RefTokensOffline=%d\n",PlayerInfo[playerid][pRefTokensOffline]);fwrite(hFile, var);
- format(var, 32, "Helper=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
- format(var, 32, "Backpack=%d\n",PlayerInfo[playerid][pBackpack]);fwrite(hFile, var);
- format(var, 32, "BackpackPot=%d\n",PlayerInfo[playerid][pBPPot]);fwrite(hFile, var);
- format(var, 32, "BackpackCrack=%d\n",PlayerInfo[playerid][pBPCrack]);fwrite(hFile, var);
- format(var, 32, "BackpackCash=%d\n",PlayerInfo[playerid][pBPCash]);fwrite(hFile, var);
- format(var, 32, "Wearing=%d\n",PlayerInfo[playerid][pWearingBP]);fwrite(hFile, var);
- format(var, 32, "LiveBanned=%d\n",PlayerInfo[playerid][pLiveBanned]);fwrite(hFile, var);
- fclose(hFile);
- OnPlayerLogin(playerid, password);
- PlayerInfo[playerid][pReg] = 1;
- TotalRegister++;
- }
- }
- return 1;
- }
- stock AntiDeAMX()
- {
- new a[][] = {
- "Unarmed (Fist)",
- "Brass K"
- };
- #pragma unused a
- printf("Get shit on by Anti-DeAMX");
- }
- #if defined TREASURE_HUNT_ENABLED
- stock SetRandomHuntPos() {
- iHuntLocation = random(sizeof(fTreasureHuntLS));
- DestroyPickup(iHuntPickup);
- DestroyDynamic3DTextLabel(lHunt);
- iHuntPickup = CreatePickup(1279, 1, fTreasureHuntLS[iHuntLocation][0], fTreasureHuntLS[iHuntLocation][1], fTreasureHuntLS[iHuntLocation][2], 0);
- lHunt = CreateDynamic3DTextLabel("Treasure Hunt\nEnter the pickup!", COLOR_YELLOW, fTreasureHuntLS[iHuntLocation][0], fTreasureHuntLS[iHuntLocation][1], fTreasureHuntLS[iHuntLocation][2]+0.5, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- return 1;
- }
- stock PrizeMenu(playerid) {
- ShowPlayerDialogEx(playerid, DIALOG_HUNT_PRIZE, DIALOG_STYLE_LIST, "Treasure Hunt Prize Selection", "20 pot, 10 crack\n2,000 materials\nDesert Eagle\n1 respect point\n", "OK", "Cancel");
- return 1;
- }
- stock AskHuntQuestion(playerid) {
- if(!IsPlayerConnected(playerid))
- return 0;
- SetPVarInt(playerid, "HuntQ", random(10));
- SendClientMessage(playerid, COLOR_WHITE, "To unlock the prize, you must answer a question. If you get the answer wrong, the treasure will be moved before you have a chance to try again.");
- switch(GetPVarInt(playerid, "HuntQ")) {
- case 0: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "What was the date the server opened? (EU/US timezone)", "January 6th\nJanuary 3rd\nJanuary 5th\nJanuary 8th", "OK", "Cancel");
- case 1: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "What is Jay Chawla's favourite catchphrase?", "Game on\nPlug in\nMastication for the Nation\nMatch on\n", "OK", "Cancel");
- case 2: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "Do you know a man named Miles Thorson?", "Yes, we're good friends\nHe kicked my dog\nNo, He's an imaginary character from The Mentalist\n", "OK", "Cancel");
- case 3: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "When was the theoretical physicist Albert Einstein born?", "December 25th, 2011\nMarch 14th, 1879\nApril 18th, 1955\nJanuary 4th, 1804", "OK", "Cancel");
- case 4: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "What is the 'sizeof' function in Pawn?", "A stock function\nA forwarded function\nA macro which gets the size of a string\nThe name of a cereal", "OK", "Cancel");
- case 5: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "What is the callsign of the Campo's team in Battlefield 3?", "Kimball 4-6\nMisfit 1-3\nFitmissie 69\nActual 1-3", "OK", "Cancel");
- case 6: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "In the popular US TV show 'Psych', what is the name of the sidekick?", "Burton Guster\nCarlton Lassiter\nJames Roday\nHenry Spencer", "OK", "Cancel");
- case 7: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "Which company developed the iPhone?", "Grapefruit\nOrange\nApple\nBlackBerry", "OK", "Cancel");
- case 8: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "What symbol is used for hashtags on Twitter?", "#\n$\n£\n&", "OK", "Cancel");
- case 9: ShowPlayerDialogEx(playerid, DIALOG_HUNT_QUESTION, DIALOG_STYLE_LIST, "3 robbers robbed a store. Once they came out, they were totally changed, but they still continued robbing. Why?", "Developers, developers, developers, developers (cont.)\nThey changed their clothes, not their ways\nThey used Harry Potter's cloak of invisibility\nThe sun is shining everyday", "OK", "Cancel");
- }
- return 1;
- }
- #endif
- forward RandomMessages();
- public RandomMessages()
- {
- new randomMsg = random(sizeof(randomMessages)); //create a variable "randomMsg" and give it the value of our array we've created ("randomMessages")
- //the word "random" is included into PAWN, which will tell the script, to work randomly with the array
- SendClientMessageToAllEx(COLOR_NEWS, randomMessages[randomMsg]); //this will send the content of our array to EVERYBODY on the server
- // the content are strings, and we're using our array "randomMessages" with our created variable "randomMsg" again
- }
- forward loadbiz_data(idx, name[], value[]);
- public loadbiz_data(idx, name[], value[])
- {
- INI_Int("bOwned", BusinessInfo[idx][bOwned]);
- INI_Int("bPrice", BusinessInfo[idx][bPrice]);
- INI_String("bOwner", BusinessInfo[idx][bOwner], 24);
- INI_Int("bType", BusinessInfo[idx][bType]);
- INI_Int("bLocked", BusinessInfo[idx][bLocked]);
- INI_Int("bMoney", BusinessInfo[idx][bMoney]);
- INI_Float("bEntranceX", BusinessInfo[idx][bEntranceX]);
- INI_Float("bEntranceY", BusinessInfo[idx][bEntranceY]);
- INI_Float("bEntranceZ", BusinessInfo[idx][bEntranceZ]);
- INI_Float("bEntranceA", BusinessInfo[idx][bEntranceA]);
- INI_Float("bExitX", BusinessInfo[idx][bExitX]);
- INI_Float("bExitY", BusinessInfo[idx][bExitY]);
- INI_Float("bExitZ", BusinessInfo[idx][bExitZ]);
- INI_Float("bExitA", BusinessInfo[idx][bExitA]);
- INI_Int("bInt", BusinessInfo[idx][bInt]);
- INI_Int("bWorld", BusinessInfo[idx][bWorld]);
- INI_Int("bInsideInt", BusinessInfo[idx][bInsideInt]);
- INI_Int("bInsideWorld", BusinessInfo[idx][bInsideWorld]);
- INI_String("bName", BusinessInfo[idx][bName], 128);
- INI_String("bIT", BusinessInfo[idx][bIT], 128);
- return 1;
- }
- forward loadland_data(idx, name[], value[]);
- public loadland_data(idx, name[], value[])
- {
- INI_Int("lOwned", LandsInfo[idx][lOwned]);
- INI_Int("lPrice", LandsInfo[idx][lPrice]);
- INI_String("lOwner", LandsInfo[idx][lOwner], 24);
- INI_Int("lType", LandsInfo[idx][lType]);
- INI_Float("pos_X", LandsInfo[idx][pos_X]);
- INI_Float("pos_Y", LandsInfo[idx][pos_Y]);
- INI_Float("pos_Z", LandsInfo[idx][pos_Z]);
- INI_Int("lObjectCount", LandsInfo[idx][lObjectCount]);
- return 1;
- }
- stock Comma(numbers) //by Gamer931215
- {
- new temp[24],counter = -1;
- valstr(temp,numbers);
- for(new i = strlen(temp);i > 0; i--)
- {
- counter++;
- if(counter == 3)
- {
- strins(temp,",",i);
- counter = 0;
- }
- }
- return temp;
- }
- public OnGameModeInit()
- {
- new string[128];
- Create3DTextLabel("{1C77B3}ARES\n/locker to open ares locker", -1, -1109.457641, -95.517982, 2040.269287, 20.0, 885312, 0);
- CreateObject(4242, 956.67639, 680.76337, 17.62670, 90.00000, 0.00000, 0.00000);
- CreateObject(4242, 948.76538, 648.00201, 17.62670, 90.00000, 0.00000, 90.00000);
- CreateObject(4232, 937.45050, 645.64307, 16.20184, 0.00000, 0.00000, 0.00000);
- CreateVehicle(408, 2499.9541, -2523.0374, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2527.4976, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2531.6584, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2536.1375, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.6973, -2540.3386, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.8213, -2544.5789, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2559.8306, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2564.3313, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2568.4824, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2572.5356, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9541, -2576.6038, 14.0741, 90.0000, -1, -1, 100);
- CreateVehicle(408, 2499.9688, -2580.7673, 14.0741, 90.0000, -1, -1, 100);
- CreateObject(19379, 279.65729, 1527.75024, 1081.59729, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.65280, 1547.01160, 1082.51501, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.65729, 1537.39001, 1081.59729, 0.00000, 90.00000, 0.00000);
- CreateObject(19378, 280.82541, 1523.05444, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19379, 269.21439, 1527.75024, 1081.59729, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 269.21439, 1537.39001, 1081.59729, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 269.21439, 1547.01160, 1082.51501, 0.00000, 90.00000, 0.00000);
- CreateObject(19378, 271.21021, 1523.05444, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 261.68759, 1523.05444, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 263.98792, 1527.65479, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 263.98792, 1546.81030, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 263.98792, 1537.22803, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(1557, 271.71490, 1523.08582, 1081.69482, 0.00000, 0.00000, 0.00000);
- CreateObject(1557, 274.58200, 1523.08582, 1081.69482, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 284.85797, 1526.71387, 1077.63733, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 284.85800, 1533.83350, 1077.63733, 0.00000, 0.00000, 180.00000);
- CreateObject(19324, 268.82184, 1523.51477, 1082.31396, 0.00000, 0.00000, 180.00000);
- CreateObject(19943, 273.87344, 1530.06311, 1081.67712, 0.00000, 0.00000, 0.00000);
- CreateObject(1978, 281.25131, 1528.70142, 1082.71936, 0.00000, 0.00000, -90.00000);
- CreateObject(1978, 281.25131, 1531.71912, 1082.71936, 0.00000, 0.00000, -90.00000);
- CreateObject(1978, 281.25131, 1534.39661, 1082.71936, 0.00000, 0.00000, -90.00000);
- CreateObject(1895, 281.16141, 1523.23474, 1084.29883, 0.00000, 0.00000, 180.00000);
- CreateObject(2964, 282.53580, 1525.80298, 1081.68347, 0.00000, 0.00000, 90.00000);
- CreateObject(2964, 280.11871, 1525.80298, 1081.68347, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1525.87866, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1775, 265.60962, 1523.44458, 1082.63904, 0.00000, 0.00000, 180.00000);
- CreateObject(1515, 264.52209, 1526.65491, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1527.42358, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1529.97717, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1530.75745, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1531.51733, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1533.56091, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1534.33984, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(1515, 264.52209, 1535.07825, 1081.45386, 0.00000, 0.00000, 90.00000);
- CreateObject(14394, 273.99551, 1537.51624, 1081.75061, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 269.96841, 1542.16406, 1077.33508, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 278.06210, 1542.16406, 1077.33508, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 268.28619, 1538.72742, 1077.33508, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 280.12219, 1538.72742, 1077.33508, 0.00000, 0.00000, 90.00000);
- CreateObject(19379, 269.11469, 1543.49890, 1082.51501, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.43738, 1543.50391, 1082.51501, 0.00000, 90.00000, 0.00000);
- CreateObject(19304, 264.81540, 1538.67017, 1082.92053, 0.00000, 0.00000, 0.00000);
- CreateObject(19304, 268.32089, 1538.67017, 1082.92053, 0.00000, 0.00000, 0.00000);
- CreateObject(19304, 279.68890, 1538.67017, 1082.92053, 0.00000, 0.00000, 0.00000);
- CreateObject(19304, 283.17111, 1538.67017, 1082.92053, 0.00000, 0.00000, 0.00000);
- CreateObject(19943, 267.41470, 1537.39185, 1081.67712, 0.00000, 0.00000, 0.00000);
- CreateObject(19943, 280.72379, 1537.39185, 1081.67712, 0.00000, 0.00000, 0.00000);
- CreateObject(1895, 264.16431, 1526.72559, 1084.30371, 0.00000, 0.00000, 90.00000);
- CreateObject(1895, 264.16431, 1530.82886, 1084.30371, 0.00000, 0.00000, 90.00000);
- CreateObject(1895, 264.16431, 1534.38977, 1084.30371, 0.00000, 0.00000, 90.00000);
- CreateObject(19943, 273.87341, 1546.24695, 1081.67712, 0.00000, 0.00000, 0.00000);
- CreateObject(2188, 273.87460, 1544.91528, 1083.44263, 0.00000, 0.00000, 0.00000);
- CreateObject(2188, 275.35269, 1546.20129, 1083.44263, 0.00000, 0.00000, 90.00000);
- CreateObject(2188, 274.01068, 1547.77063, 1083.44263, 0.00000, 0.00000, 180.00000);
- CreateObject(2188, 272.25458, 1546.34583, 1083.44263, 0.00000, 0.00000, -90.00000);
- CreateObject(1726, 266.63449, 1539.91199, 1082.59863, 0.00000, 0.00000, 180.00000);
- CreateObject(1726, 264.62921, 1543.03992, 1082.59863, 0.00000, 0.00000, -360.00000);
- CreateObject(2311, 264.77960, 1541.46814, 1082.60022, 0.00000, 0.00000, 0.00000);
- CreateObject(1726, 266.62189, 1544.87231, 1082.59863, 0.00000, 0.00000, 180.00000);
- CreateObject(2311, 264.75961, 1546.51306, 1082.60022, 0.00000, 0.00000, 0.00000);
- CreateObject(1726, 264.66919, 1548.13940, 1082.59863, 0.00000, 0.00000, -360.00000);
- CreateObject(19378, 268.75589, 1551.54785, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 278.29871, 1551.54785, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 287.91870, 1551.54785, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19378, 284.85800, 1541.44714, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 284.85800, 1550.87305, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(3858, 284.78146, 1529.32385, 1085.16296, 0.00000, 0.00000, 315.09982);
- CreateObject(19378, 284.85800, 1531.81860, 1092.80701, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 284.85800, 1522.23633, 1092.80701, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 289.60001, 1523.05444, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19379, 285.29547, 1525.08142, 1081.59729, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 285.29678, 1534.46692, 1081.59729, 0.00000, 90.00000, 0.00000);
- CreateObject(19378, 289.38614, 1527.91370, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 289.40015, 1537.18359, 1083.77441, 0.00000, 0.00000, 180.00000);
- CreateObject(19378, 289.61795, 1536.69641, 1083.77441, 0.00000, 0.00000, 90.00000);
- CreateObject(19841, 286.56583, 1533.48914, 1073.40076, 0.00000, 0.00000, -90.00000);
- CreateObject(19379, 269.11469, 1543.49890, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 269.21439, 1547.01160, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.65280, 1547.01160, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.65280, 1543.49890, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.65729, 1537.39001, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 279.65729, 1527.75024, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 269.21439, 1527.75024, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 269.21439, 1537.39001, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(898, 292.75912, 1533.62915, 1079.33362, 0.00000, 0.00000, 0.00000);
- CreateObject(898, 292.52261, 1528.35706, 1079.33362, 0.00000, 0.00000, 0.00000);
- CreateObject(1557, 284.82291, 1547.90759, 1082.60022, 0.00000, 0.00000, 90.00000);
- CreateObject(1557, 284.84991, 1550.80066, 1082.60022, 0.00000, 0.00000, -90.00000);
- CreateObject(1557, 284.81018, 1550.89758, 1082.60022, 0.00000, 0.00000, -90.00000);
- CreateObject(19379, 286.39117, 1527.62402, 1088.93799, 0.00000, 90.00000, 0.00000);
- CreateObject(19379, 286.38000, 1534.69678, 1088.93799, 0.00000, 90.00000, 0.00000);
- ARESVehicles[0] = CreateVehicle(411, 970.0504, 640.0577, 10.9980, 90.0000, 0, 2, 100);
- ARESVehicles[1] = CreateVehicle(411, 970.0504, 636.2254, 10.9980, 90.0000, 0, 2, 100);
- ARESVehicles[2] = CreateVehicle(415, 970.0504, 632.0792, 10.9980, 90.0000, 0, 2, 100);
- ARESVehicles[3] = CreateVehicle(415, 970.0504, 628.5795, 10.9980, 90.0000, 0, 2, 100);
- ARESVehicles[4] = CreateVehicle(601, 970.0504, 624.5279, 10.9980, 90.0000, 0, 2, 100);
- ARESVehicles[5] = CreateVehicle(601, 970.0612, 619.8692, 10.9980, 90.0000, 0, 2, 100);
- ARESVehicles[6] = CreateVehicle(598, 963.9072, 614.0214, 10.9980, 0.0000, 0, 2, 100);
- ARESVehicles[7] = CreateVehicle(598, 960.0891, 614.0214, 10.9980, 0.0000, 0, 2, 100);
- ARESVehicles[8] = CreateVehicle(598, 955.7955, 614.0214, 10.9980, 0.0000, 0, 2, 100);
- ARESVehicles[9] = CreateVehicle(598, 952.1777, 614.0214, 10.9980, 0.0000, 0, 2, 100);
- ARESVehicles[10] = CreateVehicle(598, 955.1327, 652.2392, 10.9980, -90.0000, 0, 2, 100);
- ARESVehicles[11] = CreateVehicle(598, 955.0643, 656.1273, 10.9980, -90.0000, 0, 2, 100);
- ARESVehicles[12] = CreateVehicle(487, 2802.6848, -1069.1533, 94.2659, -90.0000, 0, 2, 100);
- ARESVehicles[13] = CreateVehicle(487, 2802.6848, -1102.8323, 94.2659, -90.0000, 0, 2, 100);
- ARESVehicles[14] = CreateVehicle(490, 2808.5381, -1110.2419, 30.8791, 0.0000, 0, 201, 100);
- ARESVehicles[15] = CreateVehicle(490, 2802.6980, -1110.2419, 30.8791, 0.0000, 0, 201, 100);
- ARESVehicles[16] = CreateVehicle(490, 2807.7148, -1068.6200, 30.3500, 180.0000, 0, 201, 100);
- ARESVehicles[17] = CreateVehicle(490, 2801.5515, -1068.9802, 30.7700, 180.0000, 0, 201, 100);
- ARESVehicles[18] = CreateVehicle(598, 2798.4260, -1079.0966, 30.4153, -90.0000, 0, 201, 100);
- ARESVehicles[19] = CreateVehicle(598, 2798.4292, -1096.4363, 30.4153, -90.0000, 0, 201, 100);
- ARESVehicles[20] = CreateVehicle(411, 2820.8408, -1078.8547, 30.4365, 90.0000, 0, 201, 100);
- ARESVehicles[21] = CreateVehicle(411, 2821.1436, -1083.4385, 30.4365, 90.0000, 0, 201, 100);
- ARESVehicles[22] = CreateVehicle(541, 2821.4480, -1087.6206, 30.2146, 90.0000, 0, 201, 100);
- ARESVehicles[23] = CreateVehicle(541, 2821.4280, -1092.7406, 30.2146, 90.0000, 0, 201, 100);
- ARESVehicles[24] = CreateVehicle(598, 2795.8860, -1093.0365, 30.4153, -90.0000, 0, 201, 100);
- ARESVehicles[25] = CreateVehicle(598, 2795.8787, -1081.7758, 30.4153, -90.0000, 0, 201, 100);
- ARESVehicles[26] = CreateVehicle(487, 2804.6150, -1067.9597, 94.3814, -90.0000, 0, 201, 100);
- ARESVehicles[27] = CreateVehicle(487, 2804.6150, -1104.6597, 94.3814, -90.0000, 0, 201, 100);
- // Casino interior (Credits: Charly)
- CreateDynamicObject(14777, 1095.62341, 19.60990, 999.67188, 360.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, 1088.61060, 28.64991, 1001.41998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, 1088.60901, 19.09576, 1001.41998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, 1088.60901, 19.09580, 1004.90997, 180.00000, 0.00000, 0.00000);
- CreateDynamicObject(19461, 1088.61060, 28.64990, 1004.90997, 180.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1086.98096, 25.14653, 1000.74048, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19450, 1086.97839, 19.32791, 1000.74048, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19450, 1086.97839, 19.32790, 1002.45001, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19450, 1086.98096, 25.14650, 1002.45001, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(1838, 1088.67651, 27.62889, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1838, 1088.67065, 26.70870, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1838, 1088.64441, 25.78710, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1838, 1088.64148, 19.15041, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1838, 1088.64099, 18.17435, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1838, 1088.64563, 17.25409, 1001.08667, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19825, 1093.04260, 29.57410, 1002.50000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2755, 1097.24146, 31.52200, 1001.20001, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2008, 1097.78552, 31.04761, 999.68158, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2700, 1099.47974, 30.33538, 1002.00000, 0.00000, 0.00000, 132.17999);
- CreateDynamicObject(2921, 1092.42932, 30.16140, 1002.29999, 0.00000, 0.00000, 612.05939);
- CreateDynamicObject(1892, 1095.71838, 29.82068, 999.68146, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1892, 1094.51782, 29.82010, 999.68146, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2879, 1091.57410, 32.46852, 1000.71722, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.66467, 33.19600, 1000.76001, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19810, 1091.67126, 32.83610, 1000.76001, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 32.83610, 1001.00000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 33.19610, 1001.00000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 33.55610, 1001.00000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 33.55610, 1000.76001, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 33.55610, 1000.52002, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 33.19610, 1000.52002, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19810, 1091.67126, 32.83610, 1000.52002, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(6978, 1141.61914, -15.83100, 1020.14001, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(19474, 1087.33521, 8.58034, 1000.25000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1671, 1089.11536, 9.18831, 1000.08002, 0.00000, 0.00000, -90.00004);
- CreateDynamicObject(1671, 1089.07861, 7.91157, 1000.08002, 0.00000, 0.00000, -90.00004);
- CreateDynamicObject(1671, 1087.31970, 6.12466, 1000.08002, 0.00000, 0.00000, -180.00011);
- CreateDynamicObject(1671, 1085.70862, 7.95822, 1000.08002, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1671, 1085.70557, 9.18081, 1000.08002, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1671, 1087.30371, 10.43131, 1000.08002, 0.00000, 0.00000, 1.00000);
- CreateDynamicObject(2783, 1111.32788, 19.55914, 1000.29999, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19461, 1094.83496, 8.58782, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1104.05823, 8.58278, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1113.63513, 8.58510, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1113.66333, 8.58510, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1104.03882, 8.58509, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1094.83496, 8.58780, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1094.43994, 8.58700, 1002.53998, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1094.44873, 8.60245, 1006.03998, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19461, 1089.72144, 3.84820, 1002.53998, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11686, 1098.77649, 13.99268, 999.65082, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11686, 1094.01965, 13.99680, 999.65082, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2188, 1101.82739, 19.62250, 1000.64941, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2188, 1095.25427, 19.58691, 1000.64941, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2188, 1103.63574, 17.92224, 1000.64941, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2188, 1103.63086, 21.27263, 1000.64941, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19953, 1088.69238, 20.53487, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19953, 1088.69287, 20.53490, 1004.64001, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19954, 1088.68958, 23.84310, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19953, 1088.70349, 23.83603, 1004.64001, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19954, 1088.68250, 15.49803, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19953, 1088.70032, 15.50823, 1004.64001, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19953, 1088.70654, 28.84904, 999.00177, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19953, 1088.69055, 28.85040, 1004.64001, 180.00000, 0.00000, 90.00000);
-
- // BM
- CreateDynamicObject(19700, 21.11000, 6.13000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 8.75000, 6.14000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 20.98000, -6.21000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 8.79000, -6.27000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 33.57000, 6.08000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 33.48000, -6.04000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 8.82000, -18.71000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 21.18000, -18.58000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 33.56000, -18.49000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 21.16000, 18.07000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 8.97000, 18.15000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 33.37000, 18.11000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -3.41000, 18.06000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -3.70000, 5.67000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -3.62000, -6.67000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -3.59000, -18.63000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -15.91000, -6.63000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -15.68000, -18.83000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -15.78000, 5.52000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, -15.89000, 17.96000, 465.92999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14416, -24.92000, 4.48000, 466.03000, 0.00000, 0.00000, 90.72000);
- CreateDynamicObject(14416, -24.87000, 0.55000, 466.03000, 0.00000, 0.00000, 89.94000);
- CreateDynamicObject(19377, -21.93000, 11.39000, 470.89999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, -22.11000, 19.51000, 470.89999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, -21.92000, -10.45000, 470.89999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, -21.90000, -19.87000, 470.89999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14416, -24.82000, -3.20000, 466.03000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19700, -33.89000, 0.27000, 469.00000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(19377, -40.21000, -0.01000, 473.37000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(19377, -35.45000, 6.44000, 473.48001, 0.00000, 0.00000, -88.56000);
- CreateDynamicObject(19377, -35.32000, -5.75000, 473.42999, 0.00000, 0.00000, 270.28000);
- CreateDynamicObject(14416, -24.86000, -6.57000, 466.03000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19377, -26.82000, -5.68000, 471.09000, 0.00000, 0.00000, 269.62000);
- CreateDynamicObject(19377, -40.20000, -9.40000, 473.37000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, -40.18000, 9.47000, 473.37000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19377, -26.73000, 6.51000, 471.01999, 0.00000, 0.00000, -89.82000);
- CreateDynamicObject(19377, -16.97000, -24.29000, 470.89999, 0.00000, 0.00000, -91.50000);
- CreateDynamicObject(19377, -7.38000, -24.43000, 470.89999, 0.00000, 0.00000, -89.88000);
- CreateDynamicObject(19377, 1.99000, -24.51000, 470.89999, 0.00000, 0.00000, -90.60000);
- CreateDynamicObject(19377, 11.56000, -24.65000, 470.89999, 0.00000, 0.00000, -90.60000);
- CreateDynamicObject(19377, 21.15000, -24.83000, 470.89999, 0.00000, 0.00000, -89.76000);
- CreateDynamicObject(19377, 30.68000, -24.90000, 470.89999, 0.00000, 0.00000, -90.60000);
- CreateDynamicObject(19377, 40.21000, -24.88000, 470.89999, 0.00000, 0.00000, -90.60000);
- CreateDynamicObject(19377, 39.88000, -20.36000, 470.89999, 0.00000, 0.00000, 0.96000);
- CreateDynamicObject(19377, 39.85000, -11.59000, 470.89999, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(19377, 39.81000, -2.15000, 470.89999, 0.00000, 0.00000, -0.30000);
- CreateDynamicObject(19377, 39.83000, 6.68000, 470.89999, 0.00000, 0.00000, -0.72000);
- CreateDynamicObject(19377, 39.71000, 15.45000, 470.89999, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(19377, 39.76000, 24.90000, 470.89999, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(19377, 39.62000, 24.04000, 470.89999, 0.00000, 0.00000, -90.30000);
- CreateDynamicObject(19377, 30.09000, 24.10000, 470.89999, 0.00000, 0.00000, -90.18000);
- CreateDynamicObject(19377, 21.00000, 24.14000, 470.89999, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19377, 11.39000, 24.07000, 470.89999, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19377, 1.83000, 24.04000, 470.89999, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19377, -7.80000, 23.91000, 470.89999, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19377, -17.37000, 23.92000, 470.89999, 0.00000, 0.00000, -88.32000);
- CreateDynamicObject(1299, -38.35000, -4.34000, 469.53000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, -31.67000, -4.93000, 469.53000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, -30.69000, 3.75000, 469.42001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, -36.37000, 4.63000, 469.53000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18688, 13.37000, 6.20000, 466.04001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19552, -12.51000, 7.82000, 476.12000, 0.00000, 0.00000, -0.12000);
- CreateDynamicObject(19537, 19.74000, -5.64000, 475.85001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, -21.75000, -5.79000, 467.42001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, -21.81000, 6.39000, 467.42001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, -4.69000, -19.19000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, -2.36000, -19.62000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 8.07000, -20.78000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 6.05000, -19.13000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 12.02000, -15.95000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 12.83000, -19.07000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 17.47000, -22.50000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 15.61000, -18.48000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 19.83000, -19.33000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 24.18000, -20.91000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 24.93000, -18.17000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 30.44000, -19.63000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 30.95000, -15.48000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 0.35000, -18.45000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, -10.95000, -17.44000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1299, 4.01000, -16.59000, 466.75000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3472, -27.01000, 0.37000, 464.29001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(941, -20.25000, 21.31000, 466.76001, 0.00000, 0.00000, 0.83000);
- CreateDynamicObject(356, -20.55000, 21.24000, 467.39001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(356, -19.52000, 20.93000, 467.39001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14394, -26.07000, -1.94000, 468.54001, 0.00000, 0.00000, -179.94000);
- CreateDynamicObject(14394, -22.81000, 5.93000, 466.37000, 0.00000, 0.00000, -179.94000);
- CreateDynamicObject(14394, -22.75000, -1.63000, 466.37000, 0.00000, 0.00000, -179.94000);
- CreateDynamicObject(14394, -23.78000, -1.86000, 467.09000, 0.00000, 0.00000, -179.94000);
- CreateDynamicObject(14394, -26.05000, 6.02000, 468.54001, 0.00000, 0.00000, -179.94000);
- CreateDynamicObject(14394, -23.87000, 6.02000, 467.09000, 0.00000, 0.00000, -179.94000);
- CreateDynamicObject(14782, -21.01000, 17.03000, 467.17999, 0.00000, 0.00000, 90.95000);
- CreateDynamicObject(2773, -19.42000, 13.93000, 466.47000, 0.00000, 0.00000, 271.57999);
- CreateDynamicObject(2773, -19.42000, 13.93000, 466.47000, 0.00000, 0.00000, 271.57999);
- CreateDynamicObject(2773, -19.45000, 20.22000, 466.47000, 0.00000, 0.00000, 267.50000);
- CreateDynamicObject(19128, -20.41000, 15.95000, 466.04999, 0.00000, 0.00000, 359.70999);
- CreateDynamicObject(19128, -20.42000, 18.09000, 466.04999, 0.00000, 0.00000, 359.70999);
- CreateDynamicObject(19129, 39.73000, 0.02000, -476.12000, 59.28000, -184.20000, -0.36000);
- CreateDynamicObject(19129, 39.55000, 0.99000, 471.82999, -65.28000, 627.29999, 357.66000);
- CreateDynamicObject(18761, 36.07000, 1.51000, 470.37000, 0.00000, 0.00000, 97.41000);
- CreateDynamicObject(19608, 36.98000, 1.45000, 466.04001, 0.00000, 0.00000, -88.38000);
- CreateDynamicObject(19609, 36.68000, 1.23000, 466.09000, 0.00000, 0.00000, -88.26000);
- CreateDynamicObject(2232, 35.69000, 5.02000, 466.69000, 0.00000, 0.00000, -63.78000);
- CreateDynamicObject(2232, 35.95000, 4.43000, 466.69000, 0.00000, 0.00000, -63.78000);
- CreateDynamicObject(19614, 36.33000, -1.46000, 466.09000, 0.00000, 0.00000, -86.58000);
- CreateDynamicObject(19317, 36.09000, -0.89000, 466.84000, 0.00000, 0.00000, 266.73999);
- CreateDynamicObject(2714, -39.98000, 0.24000, 475.01001, 0.00000, 0.00000, 93.22000);
- CreateDynamicObject(19452, -18.13000, 13.48000, 467.57999, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19452, -8.61000, 13.49000, 467.57999, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19943, -3.05000, 13.37000, 466.04001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19943, -2.29000, 23.06000, 466.04001, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 10.06000, -16.68000, 466.87000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 11.84000, -20.31000, 466.87000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 2.21000, -20.14000, 466.87000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, -7.02000, -17.34000, 466.87000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 22.70000, -17.70000, 466.87000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 35.94000, -19.75000, 466.87000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 27.00000, 7.58000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 21.43000, 7.33000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 25.65000, -0.01000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 21.42000, 4.09000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 21.56000, -1.02000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 25.06000, -4.29000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 27.95000, 4.08000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 17.92000, 1.87000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 18.41000, -2.74000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1594, 17.53000, 5.94000, 466.54999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18102, -16.09000, 17.42000, 475.62000, 0.00000, 0.00000, -177.42000);
- CreateDynamicObject(18102, -10.48288, 2.72740, 475.62000, 0.00000, 0.00000, -177.42000);
- CreateDynamicObject(18102, 4.90643, 3.15941, 475.62000, 0.00000, 0.00000, -177.42000);
- // FMD interior by Lance
- CreateDynamicObject(14595, 1392.51416, -934.13049, -12.78820, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19465, 1389.23523, -931.88312, -14.29140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19465, 1389.25366, -936.27942, -14.29140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 1389.19897, -935.49524, -16.83910, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1491, 1389.14722, -931.10736, -16.83910, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11711, 1389.16260, -936.24573, -14.07250, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11711, 1389.34265, -936.24573, -14.07250, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1523, 1367.32935, -939.22717, -16.75250, 0.00000, 0.00000, 1.00000);
- CreateDynamicObject(1523, 1381.11157, -939.12085, -16.75250, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1398.40564, -938.41107, -16.74190, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(1827, 1398.85974, -936.24689, -16.74170, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1401.18567, -938.41107, -16.74190, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(19464, 1395.63904, -946.66760, -15.26200, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 1391.71875, -920.97107, -16.74310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2207, 1387.47205, -933.15271, -16.77170, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1663, 1388.75659, -934.05292, -16.38300, 0.00000, 0.00000, -89.00000);
- CreateDynamicObject(1239, 1387.34875, -934.03259, -16.37560, 0.00000, 0.00000, 93.00000);
- CreateDynamicObject(1771, 1384.27368, -944.51288, -16.14230, 0.00000, 0.00000, -1.00000);
- CreateDynamicObject(2907, 1384.20557, -944.63470, -15.86760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2908, 1384.23315, -945.22821, -15.88770, 0.00000, 86.00000, 4.00000);
- CreateDynamicObject(2906, 1383.92871, -944.70099, -15.88710, 0.00000, 164.00000, 13.00000);
- CreateDynamicObject(2906, 1384.46484, -944.75928, -15.94710, 0.00000, 0.00000, -14.00000);
- CreateDynamicObject(2905, 1384.38074, -943.89209, -15.94705, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2905, 1384.13306, -943.80463, -15.94705, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1893, 1384.22717, -943.85553, -13.11460, 0.00000, 0.00000, -89.00000);
- CreateDynamicObject(3383, 1376.86511, -946.08337, -16.74160, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3383, 1376.86511, -942.04437, -16.74160, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2907, 1377.04419, -945.85138, -15.56760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2908, 1377.11829, -946.51453, -15.54770, 0.00000, 86.00000, 4.00000);
- CreateDynamicObject(2905, 1377.14795, -942.24463, -15.60710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2905, 1376.89185, -942.25793, -15.60710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2906, 1376.88428, -941.64636, -15.60710, 0.00000, 164.00000, -98.00000);
- CreateDynamicObject(2906, 1377.08752, -940.95416, -15.60710, 0.00000, 164.00000, -98.00000);
- CreateDynamicObject(2603, 1366.32776, -947.05792, -16.30230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2603, 1365.28369, -947.05737, -16.30230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1723, 1371.32983, -945.51971, -16.74140, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1827, 1369.40015, -946.52350, -16.74211, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11729, 1376.59253, -919.89893, -16.74630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(11729, 1376.59253, -919.25891, -16.74630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(11729, 1376.59253, -917.95892, -16.74630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(11729, 1376.59253, -917.29889, -16.74630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2605, 1390.78186, -910.38031, -16.36170, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2605, 1387.00195, -910.38031, -16.36170, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2607, 1388.36865, -909.54260, -16.38150, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2607, 1392.18872, -909.54260, -16.38150, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19999, 1390.86169, -909.02380, -16.74260, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19999, 1386.92175, -909.14380, -16.74260, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2370, 1389.48169, -916.70117, -16.76190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1704, 1388.30652, -916.70282, -16.74190, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2370, 1389.48169, -915.02118, -16.76190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1704, 1388.30652, -915.06281, -16.74190, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1704, 1389.40515, -913.21802, -16.74120, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1704, 1390.26208, -917.80170, -16.74120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1704, 1391.22986, -915.82800, -16.74220, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1704, 1391.22986, -914.28802, -16.74220, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1522, 1395.58545, -946.52112, -16.79560, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(11730, 1376.59253, -918.61090, -16.74630, 0.00000, 0.00000, 90.00000);
- // 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);
- new smbank;
- smbank = CreateDynamicObjectEx(19377,1097.182,1529.330,4451.389,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(2205,1102.148,1530.403,4451.292,-0.000,-0.000,-270.002,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1107.739,1530.403,4451.292,-0.000,-0.000,-270.002,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19377,1107.678,1529.345,4451.389,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1103.179,1519.727,4451.389,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1092.204,1534.813,4451.389,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1106.759,1530.423,4451.292,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1104.459,1530.423,4451.292,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1107.745,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1104.816,1515.057,4454.050,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1105.916,1515.057,4452.912,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19375,1096.819,1534.106,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1107.745,1531.410,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1106.745,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1105.755,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1104.766,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1106.439,1534.106,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1111.268,1534.106,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1103.726,1515.057,4452.912,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19089,1104.804,1515.054,4454.010,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1102.585,1534.500,4453.872,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1107.085,1534.500,4453.872,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.373,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.373,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1099.043,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1099.043,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1096.723,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1096.723,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1094.393,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1094.393,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.143,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.104,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1117.884,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1117.884,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1115.554,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1115.554,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1113.234,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1113.234,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1110.904,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1110.904,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1108.654,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1108.614,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1103.923,1534.008,4452.383,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1105.594,1534.008,4452.383,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1092.197,1521.179,4451.389,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1096.819,1524.526,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1101.557,1519.779,4451.389,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19357,1104.828,1518.519,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1104.828,1521.718,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1104.828,1524.908,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1104.828,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1101.338,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1097.848,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1094.397,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1107.828,1519.779,4451.389,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19377,1103.179,1512.028,4451.547,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1104.828,1515.308,4451.552,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1103.179,1511.647,4451.715,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1104.828,1514.888,4451.721,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1104.838,1514.959,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1105.594,1534.008,4452.070,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1104.244,1534.008,4452.070,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1103.545,1536.511,4455.881,-90.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1104.515,1536.511,4455.881,-90.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1105.485,1536.511,4455.881,-90.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1106.466,1536.511,4455.881,-90.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19357,1108.297,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1111.798,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1529.345,4451.389,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19359,1104.881,1534.087,4454.661,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterialText(smbank, 0, "BANK", 140, "Times New Roman", 160, 1, 0xFF303030, 0x00000000, 1);
- smbank = CreateDynamicObjectEx(19359,1104.881,1534.087,4453.852,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterialText(smbank, 0, "G", 140, "Webdings", 120, 0, 0xFF303030, 0x00000000, 1);
- smbank = CreateDynamicObjectEx(19359,1104.881,1534.087,4453.093,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterialText(smbank, 0, "Los Santos", 140, "Times New Roman", 100, 1, 0xFF303030, 0x00000000, 1);
- smbank = CreateDynamicObjectEx(19375,1112.579,1524.526,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1122.218,1524.526,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1118.174,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1118.174,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1115.844,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1115.844,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1113.524,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1113.524,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1111.194,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1111.194,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1108.944,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1108.905,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1108.186,1524.140,4453.872,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1101.195,1524.140,4453.872,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1523.413,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1523.413,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1521.082,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1521.083,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1518.761,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1518.761,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1516.433,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1516.433,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1514.182,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1107.719,1514.143,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1523.413,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1523.413,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1521.082,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1521.083,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1518.761,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1518.761,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1516.433,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1516.433,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1514.182,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.668,1514.143,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1108.233,1515.087,4455.453,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1108.233,1515.087,4455.802,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1105.903,1515.087,4455.802,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1105.903,1515.087,4455.453,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1103.582,1515.087,4455.453,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1103.582,1515.087,4455.802,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.254,1515.088,4455.802,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1101.254,1515.087,4455.453,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1099.003,1515.087,4455.802,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1098.963,1515.087,4455.453,-0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1100.213,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1100.213,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1097.883,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1097.883,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1095.563,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1095.563,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1093.233,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1093.234,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1090.983,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1090.944,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19379,1104.180,1519.791,4456.341,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19379,1104.180,1529.411,4456.341,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19379,1093.730,1529.411,4456.341,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1092.207,1528.389,4459.715,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1103.775,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.288,1527.094,4451.542,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1529.375,4451.542,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1529.375,4454.418,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1527.125,4454.418,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1525.975,4453.579,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1525.975,4452.460,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1529.925,4452.460,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1529.925,4453.860,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1526.735,4453.300,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1526.735,4452.400,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1529.265,4452.400,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1529.265,4453.589,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1527.926,4453.970,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1092.288,1528.106,4453.970,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19379,1114.640,1529.411,4456.341,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(18762,1102.796,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1102.115,1530.430,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1102.115,1531.420,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1101.168,1531.774,4451.292,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1099.439,1531.774,4451.286,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1101.135,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1100.145,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1099.145,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1098.155,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1098.086,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1098.098,1532.643,4451.292,-0.000,-0.000,-270.002,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1098.086,1533.661,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1098.086,1532.721,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1111.448,1531.774,4451.292,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1109.719,1531.774,4451.286,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1111.415,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1110.425,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1109.426,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1108.435,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1111.456,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2205,1111.469,1532.643,4451.292,0.000,-0.000,89.997,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19004, "roundbuilding1", "stonewalltile4", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1111.456,1533.661,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1111.456,1532.721,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1102.116,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1107.746,1531.781,4449.696,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19089,1101.792,1530.001,4452.791,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19089,1104.023,1530.001,4452.791,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19089,1105.823,1530.001,4452.791,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19089,1108.054,1530.001,4452.791,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19327,1102.028,1530.003,4452.648,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterialText(smbank, 0, "1.", 140, "Comic Sans MS", 100, 1, 0xFFFFFFFF, 0x00000000, 1);
- smbank = CreateDynamicObjectEx(19327,1106.058,1530.003,4452.648,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterialText(smbank, 0, "2.", 140, "Comic Sans MS", 100, 1, 0xFFFFFFFF, 0x00000000, 1);
- smbank = CreateDynamicObjectEx(2263,1103.195,1530.865,4452.324,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF404040);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2263,1103.155,1529.884,4452.324,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19348,1103.183,1530.359,4451.793,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2040,1103.185,1530.376,4452.121,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19808,1103.212,1530.641,4452.236,0.000,0.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19806,1104.777,1527.104,4455.499,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19089,1104.763,1527.091,4462.816,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2263,1106.805,1530.865,4452.324,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF404040);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2263,1106.765,1529.884,4452.324,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19348,1106.793,1530.359,4451.793,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2040,1106.795,1530.376,4452.121,-0.000,0.000,-89.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19808,1106.822,1530.641,4452.236,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2263,1109.665,1532.185,4452.324,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF404040);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2263,1109.625,1531.204,4452.324,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19348,1109.653,1531.678,4451.793,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2040,1109.655,1531.696,4452.121,-0.000,0.000,-89.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19808,1109.682,1531.960,4452.236,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2263,1099.215,1532.185,4452.324,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF404040);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2263,1099.175,1531.204,4452.324,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19348,1099.203,1531.678,4451.793,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2040,1099.204,1531.696,4452.121,-0.000,0.000,-89.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19808,1099.232,1531.960,4452.236,-0.000,-0.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19357,1115.297,1528.058,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1115.297,1531.268,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1118.788,1531.268,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1118.788,1528.057,4451.395,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1121.708,1529.245,4451.389,0.000,180.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19379,1125.090,1529.411,4456.341,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1123.049,1534.106,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1118.189,1534.115,4458.915,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1120.174,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.894,1534.008,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1120.184,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.574,1534.008,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1714,1106.679,1531.660,4451.444,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1714,1103.199,1531.660,4451.444,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1714,1100.159,1532.980,4451.444,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1714,1109.679,1532.980,4451.444,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(627,1108.197,1525.139,4453.236,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 4604, "buildblk555", "gm_labuld5_b", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(627,1101.147,1525.139,4453.236,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 4604, "buildblk555", "gm_labuld5_b", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1722,1098.067,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1097.456,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1096.846,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1096.235,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1095.625,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1095.015,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(18762,1117.215,1529.300,4453.872,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(18762,1117.135,1529.370,4449.177,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1117.135,1529.220,4449.177,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1117.295,1529.220,4449.177,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1117.295,1529.370,4449.177,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(1722,1113.677,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1113.067,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1112.456,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1111.845,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1111.235,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(1722,1110.625,1524.669,4451.481,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 9514, "711_sfw", "ws_carpark2", 0xFF808080);
- smbank = CreateDynamicObjectEx(18762,1117.135,1529.370,4458.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1117.135,1529.220,4458.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1117.295,1529.220,4458.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(18762,1117.295,1529.370,4458.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19834,1121.540,1533.823,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1533.823,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1531.493,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1531.493,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1529.172,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1529.172,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1526.843,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1526.844,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1524.913,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1121.540,1524.763,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1533.823,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1533.823,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1531.493,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1531.493,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1529.172,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1529.172,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1526.843,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1526.844,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1524.913,4455.802,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1092.320,1524.763,4455.453,-0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19087,1104.278,1529.932,4452.071,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19087,1104.969,1529.932,4451.953,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19087,1105.659,1529.932,4451.845,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19087,1106.280,1529.932,4451.726,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19087,1107.120,1529.932,4451.617,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(19087,1108.191,1529.932,4451.528,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1113.478,1531.225,4451.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1120.558,1531.225,4451.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1120.558,1527.825,4451.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1117.968,1526.415,4451.827,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1114.927,1526.415,4451.827,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1114.927,1532.965,4451.827,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2773,1119.188,1532.965,4451.827,0.000,0.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2161,1094.835,1534.018,4451.475,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- SetDynamicObjectMaterial(smbank, 2, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2161,1096.125,1534.018,4451.475,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- SetDynamicObjectMaterial(smbank, 2, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2608,1093.323,1533.891,4452.068,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 10765, "airportgnd_sfse", "white", 0xFF000000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0x00000000);
- SetDynamicObjectMaterial(smbank, 3, 10765, "airportgnd_sfse", "white", 0xFF808080);
- SetDynamicObjectMaterial(smbank, 5, 10765, "airportgnd_sfse", "white", 0xFF303030);
- smbank = CreateDynamicObjectEx(2811,1107.212,1515.433,4451.782,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(2811,1102.052,1515.433,4451.782,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(2811,1094.212,1524.892,4451.394,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19354,1116.024,1535.637,4452.109,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0x00000000);
- smbank = CreateDynamicObjectEx(19354,1118.315,1535.637,4452.109,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0x00000000);
- smbank = CreateDynamicObjectEx(19834,1120.364,1524.638,4455.802,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19834,1120.364,1524.638,4455.453,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(2811,1114.572,1524.892,4451.394,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(2811,1121.282,1524.892,4451.394,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1539.876,4450.725,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1529.586,4451.220,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1529.856,4451.051,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1530.086,4450.883,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1530.286,4450.725,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19377,1118.168,1538.866,4453.753,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- smbank = CreateDynamicObjectEx(19375,1118.809,1534.076,4446.209,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1118.809,1534.316,4446.050,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1118.809,1534.586,4445.881,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1118.809,1534.816,4445.702,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1123.049,1537.186,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1111.279,1537.186,4451.389,0.000,180.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1122.409,1539.526,4451.389,0.000,180.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1112.999,1540.386,4451.389,0.000,180.000,-180.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19375,1117.669,1543.456,4451.389,0.000,180.000,-270.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 9582, "fort_sfw", "mallfloor2", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(948,1108.586,1530.902,4451.194,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- SetDynamicObjectMaterial(smbank, 3, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(948,1101.275,1530.902,4451.194,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- SetDynamicObjectMaterial(smbank, 3, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(948,1112.225,1533.682,4451.194,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19595, "lsappartments1", "carpet4-256x256", 0x00000000);
- SetDynamicObjectMaterial(smbank, 3, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1119.387,1540.267,4450.741,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(19357,1115.888,1540.267,4450.741,0.000,-90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- smbank = CreateDynamicObjectEx(2067,1113.334,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1115.225,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1117.176,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1119.176,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1121.076,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1120.125,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1118.185,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1116.215,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1114.274,1542.844,4450.827,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1113.334,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1115.225,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1117.176,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1119.176,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1121.076,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1120.125,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1118.185,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1116.215,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2067,1114.274,1542.844,4452.222,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 1, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2161,1113.074,1537.748,4450.808,0.000,0.000,-270.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- SetDynamicObjectMaterial(smbank, 2, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2161,1113.074,1539.208,4450.808,0.000,0.000,-270.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- SetDynamicObjectMaterial(smbank, 1, 19597, "lsbeachside", "carpet19-128x128", 0x00000000);
- SetDynamicObjectMaterial(smbank, 2, 10765, "airportgnd_sfse", "white", 0xFF000000);
- smbank = CreateDynamicObjectEx(2208,1116.369,1540.267,4450.411,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19595, "lsappartments1", "carpet4-256x256", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1550,1116.898,1540.359,4451.494,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1550,1118.648,1540.359,4451.494,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(1550,1117.768,1540.359,4451.494,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, -1, "none", "none", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19857,1116.431,1537.236,4452.020,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19426, "all_walls", "officewallsnew1", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19857,1114.941,1537.236,4452.020,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19426, "all_walls", "officewallsnew1", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19857,1117.901,1537.236,4452.020,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19426, "all_walls", "officewallsnew1", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19857,1114.941,1537.236,4454.508,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19426, "all_walls", "officewallsnew1", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19857,1117.901,1537.236,4454.508,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19426, "all_walls", "officewallsnew1", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19857,1117.931,1537.236,4454.469,0.000,-180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(smbank, 0, 19426, "all_walls", "officewallsnew1", 0xFFFFFFFF);
- smbank = CreateDynamicObjectEx(19466,1104.833,1515.051,4453.030,0.000,0.000,-90.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(19466,1104.833,1515.051,4451.095,0.000,0.000,-90.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(19325,1092.279,1528.022,4453.011,0.000,0.000,0.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(19466,1102.906,1530.009,4451.820,0.000,0.000,90.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(19466,1106.937,1530.009,4451.820,0.000,0.000,89.999,300.000,300.000);
- smbank = CreateDynamicObjectEx(18643,1115.833,1537.225,4452.388,0.000,0.000,0.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(18643,1115.833,1537.225,4452.537,0.000,0.000,0.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(18643,1115.833,1537.225,4452.697,0.000,0.000,0.000,300.000,300.000);
- smbank = CreateDynamicObjectEx(18643,1115.833,1537.225,4452.845,0.000,0.000,0.000,300.000,300.000);
-
- new tmpobjid;
- //FBI by Ray Lucker (AlabamaRP Old)
- tmpobjid = CreateDynamicObjectEx(19071,-1115.119,-91.519,2043.670,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1112.209,-49.609,2043.670,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- tmpobjid = CreateDynamicObjectEx(2395,-1122.949,-96.559,2039.219,0.000,0.000,0.000,150.000,150.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2395,-1122.989,-80.610,2039.219,0.000,0.000,0.000,150.000,150.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2267,-1112.000,-70.129,2042.229,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(2267,-1119.660,-81.949,2042.229,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(2267,-1119.680,-97.949,2042.229,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(2267,-1099.660,-72.720,2042.229,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(2267,-1099.699,-82.879,2042.229,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(19327,-1099.688,-72.739,2042.210,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "KAÁÈHET ÄÈPEKTOPA", 110, "Ariel", 25, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1099.689,-82.870,2042.220,0.000,0.000,270.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "KAÁÈHET COBEÙAHÈÉ", 110, "Ariel", 25, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1119.680,-97.929,2042.250,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ÄÎÏÐÎÑÍÀß ¹ 1", 110, "Ariel", 30, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1119.639,-81.949,2042.260,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ÄÎÏÐÎÑÍÀß ¹ 2", 110, "Ariel", 30, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(2267,-1104.739,-87.639,2042.229,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(2267,-1104.469,-94.259,2042.229,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 14736, "whorerooms", "blu_paper2", 0);
- tmpobjid = CreateDynamicObjectEx(19327,-1104.750,-86.869,2041.900,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "KAÁÈHET ¹ 1", 110, "Ariel", 30, 1, -16777216, 0, 0);
- tmpobjid = CreateDynamicObjectEx(19327,-1104.480,-94.279,2042.230,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "OPÓÆÅÉÍÀß", 110, "Ariel", 25, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1112.010,-70.130,2042.210,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "APXÈB", 110, "Ariel", 35, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1099.609,-93.809,2041.289,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ÔÁÐ", 120, "Ariel", 80, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1099.589,-92.889,2040.720,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ÔÅÄÅÐÀËÜÍÎÅ ÁÞÐÎ", 120, "Ariel", 50, 1, -16777216, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19327,-1099.589,-94.920,2040.720,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "ÐÀÑÑËÅÄÎÂÀÍÈÉ", 120, "Ariel", 50, 1, -16777216, 0, 1);
- //
- tmpobjid = CreateDynamicObjectEx(19325,-1099.609,-77.819,2041.089,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10973, "mall_sfse", "ws_grilleshade", 0);
- tmpobjid = CreateDynamicObjectEx(18766,-1109.349,-101.419,2043.099,90.000,180.000,180.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1102.469,-83.879,2038.270,0.000,179.994,0.000,200.000,200.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "ws_stationfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18766,-1093.680,-101.919,2038.819,90.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(14455,-1096.719,-81.269,2040.939,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1099.559,-98.909,2037.780,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(2737,-1096.780,-103.510,2040.989,0.000,0.000,180.241,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1098.890,-133.639,2045.260,0.000,270.000,179.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1091.910,-112.819,2045.260,0.000,270.000,89.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1069.739,-104.609,2045.260,0.000,270.000,89.989,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1146.679,-104.659,2045.260,0.000,270.000,89.999,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19395,-1104.579,-94.279,2040.979,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19368,-1104.579,-97.479,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19368,-1104.579,-91.079,2040.969,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1099.559,-98.909,2043.760,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1099.569,-89.289,2037.780,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1099.549,-89.299,2043.760,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1114.019,-94.179,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1109.319,-89.539,2041.020,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19395,-1099.559,-82.879,2040.979,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1099.509,-84.859,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1099.509,-103.459,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1089.029,-81.459,2045.260,0.000,270.000,179.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.829,-89.569,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1113.859,-89.549,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1116.139,-133.659,2045.260,0.000,90.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 1631, "landjump", "plasticdrum1_128", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1115.779,-103.939,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1115.750,-115.919,2039.420,0.000,90.000,89.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1115.729,-115.889,2042.349,0.000,90.000,89.999,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18766,-1115.790,-115.650,2041.770,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1113.859,-99.059,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.909,-99.000,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1109.309,-98.969,2041.000,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.829,-92.419,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.829,-96.039,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19450,-1090.009,-92.289,2040.650,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18029, "genintintsmallrest", "GB_restaursmll10", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1099.509,-81.339,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1099.569,-74.610,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1099.540,-70.760,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1109.949,-70.029,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1124.400,-75.150,2045.260,0.000,270.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19395,-1104.889,-87.619,2040.979,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.829,-85.650,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1113.849,-84.339,2037.890,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1113.849,-84.339,2043.760,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1113.859,-82.389,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1104.849,-80.819,2037.890,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1104.849,-80.789,2043.760,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.829,-82.389,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1104.859,-75.879,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1109.260,-75.680,2037.890,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1113.859,-75.879,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1113.810,-80.260,2037.869,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1113.829,-80.790,2043.760,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1109.260,-75.680,2043.760,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1109.250,-75.680,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1118.739,-70.189,2041.020,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19395,-1111.949,-70.019,2040.979,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1113.989,-70.069,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1117.030,-63.529,2045.260,0.000,270.000,269.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1109.839,-65.050,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(2439,-1114.040,-69.150,2039.270,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8480, "csrspalace01", "black32", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- tmpobjid = CreateDynamicObjectEx(2439,-1114.030,-68.169,2039.270,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8480, "csrspalace01", "black32", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- tmpobjid = CreateDynamicObjectEx(2439,-1114.030,-67.180,2039.270,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8480, "csrspalace01", "black32", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- tmpobjid = CreateDynamicObjectEx(2439,-1113.989,-65.040,2039.270,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8480, "csrspalace01", "black32", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1094.689,-81.369,2040.979,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(2008,-1094.959,-79.309,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1119.779,-104.369,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19384,-1119.790,-97.959,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19384,-1119.779,-94.759,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1119.780,-88.360,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.669,-86.739,2041.020,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.630,-96.430,2037.790,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.629,-96.429,2043.560,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(3077,-1091.729,-83.000,2039.270,0.000,0.000,323.996,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14853, "gen_pol_vegas", "mp_cop_pinboard", 0);
- SetDynamicObjectMaterial(tmpobjid, 1, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19172,-1110.359,-99.089,2041.369,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 10028, "copshop_sfe", "dt_cops_US_flag", 0);
- tmpobjid = CreateDynamicObjectEx(19384,-1119.769,-81.949,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.529,-80.529,2037.819,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1123.349,-75.719,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.639,-90.809,2041.020,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.530,-80.480,2043.619,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19384,-1119.799,-78.769,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1119.790,-72.349,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1124.569,-74.159,2041.020,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1113.829,-95.919,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(19395,-1099.540,-72.769,2040.979,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19071,-1079.519,-69.339,2045.260,0.000,270.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(19446,-1119.609,-65.339,2041.020,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18008, "intclothesa", "mp_cloth_vicfloor", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1108.239,-83.849,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1107.219,-82.800,2039.270,0.000,0.000,180.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1108.250,-79.330,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1107.229,-78.300,2039.270,0.000,0.000,179.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1110.569,-82.760,2039.270,0.000,0.000,179.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1111.589,-83.800,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1111.609,-79.330,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2198,-1110.599,-78.279,2039.270,0.000,0.000,179.994,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(18980,-1116.619,-103.319,2051.770,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14661, "int_tatoo", "counter1", 0);
- tmpobjid = CreateDynamicObjectEx(19450,-1089.989,-75.589,2040.780,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18029, "genintintsmallrest", "GB_restaursmll10", 0);
- tmpobjid = CreateDynamicObjectEx(2424,-1109.979,-100.500,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2423,-1107.209,-100.509,2039.260,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2424,-1107.160,-99.469,2039.250,0.000,0.000,90.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2424,-1109.050,-100.500,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2424,-1108.119,-100.500,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2424,-1110.890,-100.500,2039.270,0.000,0.000,0.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 14865, "gf2", "mp_bobbie_carpwhite", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- tmpobjid = CreateDynamicObjectEx(2423,-1111.929,-100.430,2039.270,0.000,0.000,270.000,250.000,250.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 3, 3899, "hospital2", "black", 0);
- SetDynamicObjectMaterial(tmpobjid, 4, 3899, "hospital2", "black", 0);
- //
- CreateObject(2310,-1122.2199707,-92.8700027,2039.7700195,0.0000000,0.0000000,90.0000000); //object(mike_din_chair) (2)
- CreateObject(2008,-1122.8800049,-94.0599976,2039.2700195,0.0000000,0.0000000,90.0000000); //object(officedesk1) (3)
- CreateObject(2008,-1122.7900391,-77.1900024,2039.2700195,0.0000000,0.0000000,90.0000000); //object(officedesk1) (3)
- CreateObject(2310,-1121.9699707,-100.4100037,2039.7700195,0.0000000,0.0000000,90.0000000); //object(mike_din_chair) (3)
- CreateObject(2310,-1122.1300049,-83.2900009,2039.7700195,0.0000000,0.0000000,90.0000000); //object(mike_din_chair) (4)
- CreateObject(2310,-1121.8299561,-75.7200012,2039.7700195,0.0000000,0.0000000,90.0000000); //object(mike_din_chair) (1)
- CreateDynamicObjectEx(19450,-1107.400,-113.410,2037.040,90.000,179.994,0.000,250.000,250.000);
- CreateDynamicObjectEx(2986,-1101.760,-109.750,2042.640,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1714,-1094.189,-102.870,2039.300,0.000,0.000,175.989,250.000,250.000);
- CreateDynamicObjectEx(1533,-1108.890,-111.750,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1533,-1107.449,-111.750,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(19450,-1110.459,-113.449,2037.040,90.000,180.005,359.978,250.000,250.000);
- CreateDynamicObjectEx(19404,-1108.949,-113.400,2041.780,0.000,90.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1104.569,-95.029,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1099.559,-100.409,2041.329,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1099.559,-94.179,2041.150,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1099.559,-87.909,2041.329,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1099.569,-83.619,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(2164,-1109.179,-89.389,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1601,-1115.869,-107.730,2040.410,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1601,-1116.030,-110.489,2041.040,0.000,0.000,358.000,250.000,250.000);
- CreateDynamicObjectEx(1605,-1116.439,-109.229,2040.959,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1605,-1116.119,-108.449,2040.959,0.000,0.000,182.993,250.000,250.000);
- CreateDynamicObjectEx(19325,-1115.349,-107.429,2041.329,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2782,-1115.689,-109.209,2040.130,0.000,0.000,79.996,250.000,250.000);
- CreateDynamicObjectEx(1603,-1115.650,-107.949,2041.400,0.000,0.000,344.500,250.000,250.000);
- CreateDynamicObjectEx(2207,-1093.099,-100.409,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(19450,-1088.419,-92.219,2042.280,0.000,90.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(19450,-1088.380,-92.250,2039.350,0.000,90.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(19404,-1088.379,-87.419,2040.770,270.000,180.001,269.995,250.000,250.000);
- CreateDynamicObjectEx(19404,-1088.409,-97.089,2040.770,270.000,179.998,269.992,250.000,250.000);
- CreateDynamicObjectEx(19325,-1104.869,-84.309,2041.329,90.000,180.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1113.810,-85.800,2041.329,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1104.839,-78.800,2041.329,0.000,179.994,0.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1111.339,-75.629,2041.329,90.000,180.005,89.989,250.000,250.000);
- CreateDynamicObjectEx(19325,-1107.069,-75.689,2041.329,90.000,180.005,89.989,250.000,250.000);
- CreateDynamicObjectEx(19325,-1104.910,-79.459,2041.329,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1113.779,-79.159,2041.329,0.000,179.994,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1093.520,-95.500,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1097.020,-95.500,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1097.019,-92.689,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1097.020,-90.279,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1093.520,-90.279,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1093.520,-92.690,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1093.530,-87.949,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2110,-1097.020,-87.949,2039.119,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(16780,-1094.829,-94.510,2042.939,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(16780,-1096.089,-77.589,2042.859,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(16780,-1115.930,-67.419,2042.859,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2066,-1091.270,-103.139,2039.319,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2066,-1097.900,-80.849,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(14632,-1110.109,-73.069,2040.780,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2197,-1118.119,-66.089,2039.250,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(16378,-1116.699,-66.739,2040.020,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1808,-1090.360,-77.959,2039.270,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(2225,-1096.680,-103.470,2039.359,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1096.839,-86.459,2039.270,0.000,0.000,180.000,250.000,250.000);
- CreateDynamicObjectEx(1721,-1096.089,-86.459,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1093.390,-86.459,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1092.609,-86.459,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1092.589,-88.690,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1093.369,-88.650,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1096.920,-88.709,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1096.050,-88.739,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1096.050,-91.089,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1097.000,-91.120,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1096.050,-93.910,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1097.000,-93.959,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1093.569,-93.910,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1092.439,-93.959,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1092.510,-91.230,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1721,-1093.420,-91.180,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(632,-1111.290,-65.050,2039.719,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1726,-1104.269,-111.219,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1726,-1112.979,-111.359,2039.250,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1726,-1100.560,-104.569,2039.270,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1093.709,-71.089,2039.270,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1114.689,-111.839,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1114.639,-106.889,2039.270,0.000,0.000,89.994,250.000,250.000);
- CreateDynamicObjectEx(1726,-1100.709,-109.559,2039.270,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1100.369,-111.239,2039.250,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1714,-1094.739,-80.800,2039.270,0.000,0.000,175.989,250.000,250.000);
- CreateDynamicObjectEx(19325,-1099.469,-78.329,2041.329,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(19325,-1123.109,-96.410,2041.329,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(1721,-1122.989,-102.559,2039.270,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(19325,-1123.170,-80.489,2041.329,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(976,-1113.959,-95.919,2036.890,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(976,-1113.959,-95.919,2044.500,179.994,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(373,-1105.300,-98.239,2039.520,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(349,-1108.369,-98.500,2039.670,90.000,170.000,4.000,250.000,250.000);
- CreateDynamicObjectEx(348,-1111.599,-98.379,2039.650,90.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(343,-1109.819,-98.470,2039.650,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1112.530,-90.290,2039.270,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1108.670,-90.250,2039.270,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(356,-1109.270,-98.209,2040.599,69.999,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1099.560,-73.519,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1096.770,-71.089,2039.270,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1727,-1095.869,-77.260,2039.270,0.000,0.000,10.244,250.000,250.000);
- CreateDynamicObjectEx(1727,-1094.170,-77.059,2039.270,0.000,0.000,352.238,250.000,250.000);
- CreateDynamicObjectEx(2197,-1118.099,-66.790,2039.250,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1112.729,-70.050,2039.260,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1119.799,-79.519,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1119.760,-82.699,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1119.780,-95.510,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1494,-1119.819,-98.699,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(2164,-1110.949,-89.389,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2164,-1107.400,-89.379,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2607,-1122.089,-101.699,2039.660,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2607,-1122.189,-84.669,2039.660,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1721,-1123.160,-85.760,2039.270,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(2066,-1098.479,-80.839,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2066,-1091.209,-80.779,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2066,-1090.640,-80.779,2039.270,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2776,-1107.760,-76.930,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2776,-1111.130,-76.889,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2776,-1111.390,-81.160,2039.770,0.000,0.000,16.000,250.000,250.000);
- CreateDynamicObjectEx(2776,-1107.579,-85.379,2039.770,0.000,0.000,180.000,250.000,250.000);
- CreateDynamicObjectEx(2776,-1110.939,-85.260,2039.770,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2776,-1110.670,-80.620,2039.770,0.000,0.000,193.994,250.000,250.000);
- CreateDynamicObjectEx(2776,-1107.310,-80.809,2039.770,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1494,-1104.859,-88.363,2039.260,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.180,-103.370,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1117.469,-103.069,2039.229,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.119,-93.089,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.089,-85.440,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.160,-89.589,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.160,-77.110,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.020,-72.559,2039.250,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1119.339,-70.879,2039.300,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1108.689,-70.849,2039.300,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1105.819,-70.870,2039.300,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1726,-1102.829,-70.830,2039.300,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2855,-1094.920,-79.120,2040.079,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2852,-1103.329,-111.250,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1100.390,-99.080,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1100.459,-93.540,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1100.459,-88.489,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1100.429,-82.379,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1115.140,-81.709,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1115.199,-87.889,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1115.290,-93.169,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1115.329,-97.419,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1119.760,-82.629,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(14687,-1119.829,-98.860,2041.250,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2063,-1106.799,-98.399,2040.180,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2063,-1109.409,-98.389,2040.180,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2063,-1112.020,-98.400,2040.180,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(2007,-1105.139,-97.319,2039.270,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(2007,-1105.140,-97.319,2040.650,0.000,0.000,270.000,250.000,250.000);
- CreateDynamicObjectEx(2007,-1113.449,-97.319,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(2007,-1113.449,-97.319,2040.670,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(373,-1113.290,-98.150,2039.709,330.000,300.000,32.000,250.000,250.000);
- CreateDynamicObjectEx(1822,-1110.109,-90.680,2039.270,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1822,-1101.219,-107.980,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(1822,-1104.030,-111.250,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(1822,-1115.380,-108.330,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(1822,-1119.900,-100.260,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(1822,-1119.819,-86.489,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(1822,-1119.790,-73.809,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(1822,-1116.689,-70.809,2039.270,0.000,0.000,309.995,250.000,250.000);
- CreateDynamicObjectEx(2852,-1100.589,-107.989,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2852,-1114.650,-108.360,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2852,-1119.229,-100.339,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2852,-1119.060,-86.629,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2852,-1119.089,-73.860,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2852,-1116.000,-71.019,2039.770,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(1808,-1111.959,-111.589,2039.270,0.000,0.000,180.000,250.000,250.000);
- CreateDynamicObjectEx(1808,-1119.489,-90.339,2039.270,0.000,0.000,90.000,250.000,250.000);
- CreateDynamicObjectEx(19450,-1090.011,-75.595,2037.750,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(2066,-1090.699,-103.139,2039.319,0.000,0.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(356,-1107.140,-98.300,2040.599,69.999,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(356,-1107.140,-98.300,2040.119,69.999,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(19404,-1088.410,-80.339,2040.869,270.000,180.001,269.995,250.000,250.000);
- CreateDynamicObjectEx(19404,-1088.369,-70.739,2040.900,270.000,180.000,269.994,250.000,250.000);
- CreateDynamicObjectEx(19450,-1088.510,-75.550,2042.479,0.000,90.000,179.994,250.000,250.000);
- CreateDynamicObjectEx(362,-1112.920,-98.470,2040.420,0.000,30.000,12.000,250.000,250.000);
- CreateDynamicObjectEx(362,-1110.140,-98.610,2040.420,0.000,29.998,21.997,250.000,250.000);
- CreateDynamicObjectEx(362,-1108.160,-98.610,2039.920,0.000,29.992,15.994,250.000,250.000);
- CreateDynamicObjectEx(363,-1105.930,-98.620,2039.949,0.000,0.000,0.000,250.000,250.000);
- CreateDynamicObjectEx(355,-1110.550,-97.839,2039.520,0.000,300.000,251.999,250.000,250.000);
- CreateDynamicObjectEx(355,-1110.199,-97.900,2039.520,0.000,299.998,251.998,250.000,250.000);
- CreateDynamicObjectEx(355,-1110.369,-97.879,2039.520,0.000,299.998,251.998,250.000,250.000);
-
-
- CreateDynamicObject(19376, 3776.33862, -917.46863, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.31567, -927.01746, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.34277, -936.65021, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.35986, -946.29266, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.39551, -955.86194, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.89355, -955.86908, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.25366, -955.86908, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.60571, -955.87042, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.59473, -946.24719, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.60571, -936.61041, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.62476, -927.00000, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.62476, -917.35999, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.20483, -917.35999, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.84473, -917.35999, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.79565, -927.01752, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.23560, -927.01752, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.23560, -936.65747, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.23560, -946.29749, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.75586, -946.25751, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.73022, -936.64038, 9.79650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19943, 3772.19531, -959.17761, 9.87960, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(19379, 3771.13940, -927.08643, 11.71240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3771.15552, -917.45001, 11.71240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19943, 3772.25928, -913.78137, 9.87870, 0.00000, 0.00000, 58.00000);
- CreateDynamicObject(19379, 3775.89648, -912.66028, 11.69850, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3785.49658, -912.62030, 11.71850, -0.02000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3795.09668, -912.62030, 11.71850, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3804.65674, -912.62030, 11.71850, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3808.07666, -912.62030, 11.71850, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19943, 3811.41040, -913.76422, 9.87370, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3812.79858, -917.39642, 11.72360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3812.79858, -927.05640, 11.72360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3812.79858, -936.67639, 11.72360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3812.79858, -946.29639, 11.72360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3812.79858, -955.89642, 11.72360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19943, 3811.27173, -947.85144, 9.87760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3775.89795, -960.59711, 11.70270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3785.45801, -960.61713, 11.70270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3794.89795, -960.61713, 11.70270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3804.39795, -960.61713, 11.70270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19379, 3807.99780, -960.61713, 11.70270, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 3807.62476, -917.35999, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.62476, -927.00000, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.60571, -936.61041, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.59473, -946.24719, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3807.60571, -955.87042, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.25366, -955.86908, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.23560, -946.29749, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.23560, -936.65747, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.23560, -927.01752, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3797.20483, -917.35999, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.84473, -917.35999, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.79565, -927.01752, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.87354, -955.86908, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.75586, -946.25751, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3786.73022, -936.64038, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.39551, -955.86188, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.35986, -946.29272, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.34277, -936.65021, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19376, 3776.31567, -927.01752, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(2783, 3771.39111, -951.18939, 10.42940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2783, 3771.35962, -940.24738, 10.42940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2783, 3771.33447, -928.11249, 10.42940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2783, 3771.33447, -918.57251, 10.42940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2785, 3778.16089, -913.03400, 10.69780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, 3784.06079, -913.03400, 10.69780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, 3789.80078, -913.03400, 10.69780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, 3795.16089, -913.03400, 10.69780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, 3802.60083, -913.03400, 10.69780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19840, 3807.47412, -958.84637, 10.03950, 35.00000, 0.00000, 180.00000);
- CreateDynamicObject(19840, 3803.13403, -958.88641, 9.65950, 35.00000, 0.00000, 180.00000);
- CreateDynamicObject(19840, 3796.69409, -958.88641, 9.63950, 35.00000, 0.00000, 180.00000);
- CreateDynamicObject(19840, 3794.15405, -958.88641, 9.81950, 35.00000, 0.00000, 180.00000);
- CreateDynamicObject(19840, 3799.67407, -958.80640, 9.55950, 35.00000, 0.00000, 180.00000);
- CreateDynamicObject(19840, 3804.37402, -958.88641, 9.97950, 35.00000, 0.00000, 180.00000);
- CreateDynamicObject(19379, 3788.65088, -959.52130, 11.71240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3795.08301, -954.78131, 15.19730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3799.38281, -954.78131, 15.19730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3803.68286, -954.78131, 15.19730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3808.02295, -954.78131, 15.19730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3810.68286, -954.78131, 15.19730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3810.68286, -954.78131, 11.97730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3808.02295, -954.78131, 11.97730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3803.68286, -954.78131, 11.97730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3799.36279, -954.78131, 11.97730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3795.08301, -954.78131, 11.97730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1649, 3790.82300, -954.78131, 11.97730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 3807.92358, -954.80463, 9.33800, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 3798.36353, -954.80463, 9.33800, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19450, 3793.52368, -954.80463, 9.33800, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(1274, 3771.24341, -935.74402, 14.01880, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1274, 3771.27588, -932.66803, 14.01880, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1649, 3790.78296, -954.78131, 15.19730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, 3785.97168, -960.06409, 10.69780, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2785, 3777.08154, -960.11115, 10.69780, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1978, 3803.10083, -950.00604, 10.91510, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3794.72900, -949.97363, 10.91510, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3786.99902, -949.93768, 10.91510, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3778.90015, -949.27502, 10.91510, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19474, 3779.36865, -936.47247, 10.37650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19474, 3787.18457, -937.19397, 10.37650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19474, 3794.76660, -936.08136, 10.37650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19474, 3803.25684, -936.24103, 10.37650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3779.51318, -923.54956, 10.89230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3787.06128, -923.78925, 10.89230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3794.98486, -922.38715, 10.89230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1978, 3803.57446, -920.33783, 10.89230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16151, 3811.75952, -918.32428, 10.22880, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1536, 3812.74023, -930.93658, 9.81240, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(16151, 3811.73950, -942.88428, 10.22880, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18102, -6265.33691, -1405.66980, 1345.08716, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3771.17944, -955.74640, 11.71240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 3776.33862, -917.46863, 16.87650, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(2942, 3812.36792, -935.84998, 10.51010, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19379, 3771.13940, -936.72638, 11.71240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 3771.13940, -946.32642, 11.71240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18028, 1031.98694, -1399.38074, -5.43740, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1532, 1033.30249, -1388.62964, -7.62240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(358, 1028.33496, -1401.74023, -6.49950, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(358, 1028.33496, -1401.50024, -6.49950, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(358, 1028.33496, -1401.20020, -6.49950, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(358, 1028.33496, -1400.92017, -6.49950, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1029.64697, -1400.90967, -6.39930, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1029.64697, -1401.18970, -6.39930, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1029.64697, -1401.48975, -6.39930, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1029.64697, -1401.72974, -6.39930, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1030.90198, -1400.87561, -6.39940, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1030.90198, -1401.17566, -6.39940, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1030.90198, -1401.47559, -6.39940, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1030.90198, -1401.71558, -6.39940, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1031.65039, -1401.72034, -6.35970, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1031.65039, -1401.48035, -6.35970, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1031.65039, -1401.18030, -6.35970, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1031.65039, -1400.90027, -6.35970, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(983, 1024.86182, -1401.45508, -5.91430, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(983, 1024.86182, -1401.45508, -4.65430, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(983, 1028.05725, -1398.25513, -5.90530, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(983, 1028.05725, -1398.25513, -4.64530, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(983, 1032.87732, -1398.25513, -4.64530, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(983, 1032.85730, -1398.25513, -5.90530, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2311, 1039.61841, -1410.12524, -7.41400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2311, 1041.87842, -1410.12524, -7.41400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2311, 1037.35840, -1410.12524, -7.41400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(358, 1037.27734, -1410.54578, -6.85230, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(358, 1037.27734, -1410.30579, -6.85230, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(358, 1037.28540, -1410.08337, -6.85230, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(358, 1037.27734, -1409.84595, -6.85230, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1038.42578, -1410.52661, -6.79000, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1038.42578, -1410.28662, -6.79000, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1038.42578, -1410.04663, -6.79000, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1038.42578, -1409.82666, -6.79000, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(1242, 1039.74194, -1410.41638, -6.71000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1242, 1039.74194, -1410.15637, -6.71000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1242, 1039.74194, -1409.89636, -6.71000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1240, 1040.22266, -1410.12976, -6.78970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1240, 1040.22266, -1410.40979, -6.78970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1240, 1040.22266, -1409.84985, -6.78970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(351, 1040.54895, -1410.53381, -6.91020, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1040.54895, -1410.27380, -6.91020, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1040.54895, -1409.99377, -6.91020, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(351, 1040.54895, -1409.81384, -6.91020, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1041.99097, -1409.78845, -6.76960, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1041.99097, -1410.00854, -6.76960, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1041.99097, -1410.28845, -6.76960, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(355, 1041.99097, -1410.52844, -6.76960, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(348, 1043.12549, -1409.77356, -6.76990, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(348, 1043.12549, -1410.01355, -6.76990, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(348, 1043.12549, -1410.27356, -6.76990, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(348, 1043.12549, -1410.51355, -6.76990, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19087, 1029.67603, -1398.25696, -6.10860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(348, 1029.58142, -1397.78687, -6.70900, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(348, 1029.58154, -1397.72693, -6.70900, 0.00000, 0.00000, 186.00000);
- CreateDynamicObject(14847, 1782.43909, -1047.93115, -23.01740, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 1774.95630, -1037.03650, -25.93650, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1789.77625, -1037.03650, -25.93650, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18084, 1776.61340, -1036.24670, -25.63320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1776.63342, -1036.24670, -23.31320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1778.45337, -1036.24670, -25.63320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1778.45337, -1036.24670, -23.39320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1786.19336, -1036.24670, -23.37320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1787.97339, -1036.24670, -23.37320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1787.97339, -1036.24670, -25.69320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1786.21338, -1036.24670, -25.69320, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1792.89307, -1036.24963, -24.47190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1792.89307, -1036.24963, -26.79190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19375, 1801.00745, -1057.22510, -25.64060, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1801.05408, -1036.81055, -24.79200, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19370, 1807.72656, -1036.74536, -24.73290, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19370, 1813.06726, -1036.76563, -24.73290, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18084, 1807.44556, -1036.03467, -26.43730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1812.86560, -1036.03467, -24.09730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1812.86560, -1036.03467, -26.41730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1807.40564, -1036.03467, -24.09730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1800.34558, -1036.03467, -24.09730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1800.34558, -1036.03467, -26.41730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19450, 1782.96436, -1037.02942, -22.15030, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19433, 1784.69006, -1037.03540, -25.69910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19433, 1779.95020, -1037.03540, -25.69910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14410, 1771.59766, -1043.62988, -28.20990, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1771.59155, -1038.21204, -26.41180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1771.43762, -1055.30994, -28.20990, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19431, 1765.13452, -1051.49231, -23.26440, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19431, 1765.13452, -1052.63232, -23.26440, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1763.85461, -1036.86096, -23.30470, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18084, 1763.58374, -1036.10339, -22.34640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1763.58374, -1036.10339, -24.68640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1757.95459, -1036.90100, -23.30470, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18084, 1758.00366, -1036.10339, -22.34640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1758.10376, -1036.10339, -24.68640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1751.88367, -1036.10339, -24.68640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1751.92371, -1036.10339, -22.34640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1751.91455, -1036.90100, -23.30470, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19370, 1751.78625, -1057.56824, -23.08470, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18084, 1751.78625, -1056.38818, -24.34470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1751.78625, -1056.38818, -22.00470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1758.18628, -1056.38818, -22.00470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1758.18628, -1056.38818, -24.34470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1763.74634, -1056.38818, -24.34470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18084, 1763.72632, -1056.38818, -22.00470, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19370, 1758.06628, -1057.56824, -23.08470, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19370, 1763.72632, -1057.56824, -23.08470, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(4100, 1782.54065, -1049.44263, -22.81375, 0.00000, 180.00000, -140.00000);
- CreateDynamicObject(19087, 1776.51685, -1049.53223, -25.23200, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2193, 1787.41650, -1052.39197, -26.41360, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2165, 1784.97229, -1052.44226, -26.41279, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2356, 1788.01550, -1053.05286, -26.43220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2356, 1785.52637, -1053.10254, -26.43220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2181, 1776.19666, -1052.61108, -26.41360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2356, 1776.64966, -1052.04919, -26.41230, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2604, 1780.55139, -1051.65027, -25.63310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2125, 1779.79541, -1052.58484, -26.09210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2125, 1781.73535, -1052.58484, -26.09210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2604, 1793.07361, -1041.14685, -25.67160, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2125, 1793.95557, -1040.32031, -26.09190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2125, 1792.15564, -1040.32031, -26.09190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11730, 1768.01514, -1040.00293, -25.01170, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1768.02844, -1040.66711, -25.01180, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1768.02844, -1039.34705, -25.01180, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1768.02844, -1038.70715, -25.01180, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(11729, 1768.02844, -1041.30713, -25.01180, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14883, 1761.45825, -1045.91455, -22.95170, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(50, 1761.15308, -1049.40808, -24.01170, 90.00000, 0.00000, 180.00000);
- CreateDynamicObject(50, 1763.35120, -1049.39978, -24.01170, 90.00000, 0.00000, 180.00000);
- CreateDynamicObject(19375, 1781.82202, -1037.01794, -26.41260, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1557, 1780.77795, -1037.03967, -26.36680, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1557, 1783.79797, -1037.03967, -26.36680, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(984, 1775.57739, -1046.76111, -23.84206, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(984, 1788.90381, -1040.15613, -23.84206, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11665, 1786.96558, -1039.06042, -25.61307, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1704, 1785.94482, -1040.65881, -26.38784, 0.00000, 0.00000, 90.24001);
- CreateDynamicObject(1704, 1785.92139, -1038.37793, -26.38784, 0.00000, 0.00000, 90.24001);
- CreateDynamicObject(8417, 1357.32947, -1035.09448, -25.15220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1377.82715, -1020.00623, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1377.82715, -1029.52625, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1377.82715, -1039.12622, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1377.82715, -1048.64624, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1377.84717, -1058.14734, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1373.12390, -1055.01611, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1363.48389, -1055.01611, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1354.00391, -1055.01611, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1344.48389, -1055.01611, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1334.92395, -1055.01611, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1336.72705, -1048.66736, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1336.72705, -1058.14734, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1336.72705, -1039.12622, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1336.72705, -1029.52625, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1336.72705, -1020.00623, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1334.92395, -1015.27612, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1344.46387, -1015.27612, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1354.00391, -1015.27612, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1363.50391, -1015.27570, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1373.12390, -1015.27612, -20.09360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19376, 1355.58716, -1032.80615, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1355.58716, -1051.62732, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1355.58716, -1042.40625, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1355.58716, -1023.22620, -20.06850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19388, 1355.58716, -1016.88452, -23.44970, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19376, 1355.58716, -1013.66620, -16.54850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 1355.62280, -1017.63629, -25.18500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(9833, 1358.42749, -1052.05396, -22.02800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9833, 1372.72107, -1051.27893, -22.02800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(9833, 1364.82751, -1052.05396, -22.02800, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3525, 1355.87964, -1018.27887, -20.93950, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3525, 1355.83960, -1015.55890, -20.93950, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3524, 1355.67761, -1020.27173, -22.30670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3524, 1355.67761, -1023.83173, -22.30670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3524, 1355.67761, -1027.53174, -22.30670, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(16151, 1356.64539, -1034.52014, -24.84850, -0.04000, 0.00000, 180.00000);
- CreateDynamicObject(923, 1343.75635, -1017.12018, -24.42840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(923, 1346.39624, -1015.98022, -24.42840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(923, 1349.31628, -1016.10022, -24.42840, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 1342.13977, -1054.67639, -24.34780, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3092, 1339.02539, -1054.85999, -24.13298, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1339.51990, -1053.32605, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1341.71985, -1053.30603, -24.92400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2370, 1351.93323, -1051.12756, -25.18750, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(356, 1352.13379, -1051.54895, -24.26340, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1352.13379, -1051.24890, -24.26340, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1352.13379, -1050.84888, -24.26340, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1352.09375, -1050.38892, -24.26340, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(356, 1352.13379, -1050.04895, -24.26340, 0.00000, 0.00000, 6.00000);
- CreateDynamicObject(8417, 1357.31836, -1035.11426, -14.85220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11726, 1352.06628, -1032.33069, -15.82520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11726, 1352.06628, -1037.47070, -15.82520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11726, 1352.06628, -1041.79065, -15.82520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14637, 1356.07813, -1034.52661, -16.56999, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1339.51990, -1051.14600, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1339.51990, -1049.18604, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1342.35986, -1049.46594, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1342.59985, -1049.46594, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1344.79993, -1049.46594, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1344.79993, -1051.12598, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2907, 1344.79993, -1053.18604, -25.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1829, 1337.56995, -1035.25989, -24.64790, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1829, 1337.56995, -1035.25989, -23.74790, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1829, 1337.52930, -1036.25879, -24.64790, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1829, 1337.56995, -1036.27991, -23.74790, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1550, 1337.06995, -1031.40039, -24.78550, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1550, 1337.06995, -1030.14038, -24.78550, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1550, 1337.06995, -1028.58044, -24.78550, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1550, 1337.06995, -1027.14038, -24.78550, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2035, 1341.53748, -1029.00964, -25.18380, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2035, 1341.53748, -1030.64966, -25.18380, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2035, 1341.53748, -1032.62964, -25.18380, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2035, 1342.55750, -1032.62964, -25.18380, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19473, 1354.17651, -1027.49487, -25.18712, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19473, 1354.17651, -1025.47485, -25.18710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19473, 1354.17651, -1022.93488, -25.18710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19473, 1354.17651, -1030.55493, -25.18710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19473, 1354.17651, -1033.23486, -25.18710, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18848, 1346.47449, -1029.42224, -25.18702, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1496, 1367.19226, -1015.38647, -25.22130, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1496, 1370.21228, -1015.38647, -25.22130, 0.00000, 0.00000, 180.00000);
- // LSPD Interior Texture Map By Jekrz
- tmpobjid = CreateDynamicObjectEx(19378,-1637.449,707.239,1000.739,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "LASLACMA6", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1637.449,697.609,1000.739,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "LASLACMA6", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1626.959,697.609,1000.739,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "LASLACMA6", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1625.079,695.549,1002.459,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1625.089,699.460,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1631.020,700.520,1002.500,0.000,0.000,47.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1631.500,695.549,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1636.099,698.330,1002.500,0.000,0.000,47.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1632.170,706.359,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.380,710.530,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1642.640,704.099,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1642.640,706.500,1002.500,0.000,0.000,0.239,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1642.640,701.690,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1641.170,701.590,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1642.640,708.900,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1631.400,716.849,1000.739,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "LASLACMA6", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1632.170,715.890,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1636.650,712.049,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.390,713.580,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1636.650,715.219,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1636.650,718.429,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1631.400,726.479,1000.739,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4829, "airport_las", "LASLACMA6", 0);
- tmpobjid = CreateDynamicObjectEx(19379,-1641.890,718.450,1000.739,0.000,90.000,0.059,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8391, "ballys01", "ws_floortiles4", 0);
- tmpobjid = CreateDynamicObjectEx(19379,-1641.890,728.080,1000.739,0.000,90.000,0.059,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 8391, "ballys01", "ws_floortiles4", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1636.650,721.630,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1636.650,724.830,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.390,724.570,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1632.170,722.299,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1634.989,723.859,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1631.790,723.859,1002.500,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1644.359,718.270,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1644.359,727.890,1002.500,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1626.660,695.549,1005.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1626.660,699.479,1005.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1616.729,694.640,1004.229,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15041, "bigsfsave", "AH_flroortile9", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1616.729,704.260,1004.229,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15041, "bigsfsave", "AH_flroortile9", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1616.020,699.309,1005.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1620.689,703.609,1005.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1620.670,691.570,1005.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1616.020,689.690,1005.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1629.829,698.539,1005.940,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1630.270,691.570,1005.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1630.290,703.609,1005.960,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 4593, "buildblk55", "sl_plazatile01", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1635.359,704.200,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19366,-1628.449,701.020,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19439,-1627.449,693.859,1007.650,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19366,-1628.449,704.210,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19439,-1628.809,693.849,1007.640,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19439,-1627.449,690.380,1007.650,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19439,-1629.040,690.409,1007.650,0.000,90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1629.819,693.559,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1629.819,701.559,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1626.660,695.549,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1626.660,699.479,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1630.270,691.570,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1620.670,691.570,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1620.689,703.609,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1626.209,706.219,1009.440,0.000,0.000,-50.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1630.489,695.179,1009.440,0.000,0.000,62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1634.849,694.569,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1630.530,691.940,1009.440,0.000,0.000,-62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1629.069,695.169,1009.440,0.000,0.000,-62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1629.099,691.950,1009.440,0.000,0.000,62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1630.469,699.849,1009.440,0.000,0.000,-62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1629.150,699.869,1009.440,0.000,0.000,62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19434,-1629.099,703.260,1009.440,0.000,0.000,-62.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1621.920,699.570,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1621.920,689.940,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1636.660,691.570,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1639.839,691.570,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1636.660,703.609,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1639.839,703.609,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.349,686.830,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.349,708.349,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1644.540,708.349,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1644.540,690.020,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1646.209,688.500,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1634.859,684.950,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14651, "ab_trukstpd", "Bow_bar_flooring", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1643.010,688.500,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1648.380,687.460,1009.440,0.000,0.000,-50.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1649.520,684.869,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1648.349,682.340,1009.440,0.000,0.000,50.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1646.000,681.340,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1631.380,686.890,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1641.349,680.429,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1633.189,681.340,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1631.380,680.500,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1625.569,713.789,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1636.069,713.750,1007.669,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19366,-1628.400,707.390,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1631.430,706.669,1009.440,0.000,0.000,-50.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.349,717.979,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1636.579,716.229,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1626.949,716.229,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1652.980,693.033,1007.669,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3603, "bevmans01_la", "sjmlahus29", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1652.980,702.666,1007.669,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3603, "bevmans01_la", "sjmlahus29", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.349,708.349,1005.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.349,717.979,1005.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1644.540,708.349,1005.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1645.989,712.049,1005.750,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1644.540,717.979,1005.960,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1646.229,716.609,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1647.750,690.030,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1649.270,703.630,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1657.420,700.640,1009.440,0.000,0.000,-50.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1660.900,693.159,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1658.880,688.500,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1649.369,688.500,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1652.510,688.500,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1647.790,696.450,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1647.750,702.840,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19435,-1652.130,701.900,1008.080,90.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "dirtywhite", 0);
- tmpobjid = CreateDynamicObjectEx(19435,-1650.810,699.090,1008.080,90.000,0.000,50.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "dirtywhite", 0);
- tmpobjid = CreateDynamicObjectEx(19435,-1647.780,698.000,1008.080,90.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3629, "arprtxxref_las", "dirtywhite", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1644.709,697.400,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1646.219,698.950,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1646.239,695.890,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1644.540,717.979,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1639.609,681.340,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1636.150,675.340,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14651, "ab_trukstpd", "Bow_bar_flooring", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.349,674.080,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1631.380,674.080,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1635.969,670.570,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1642.380,670.570,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1627.069,703.609,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19366,-1624.939,707.380,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1627.750,714.500,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1624.290,711.880,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1663.475,702.666,1007.669,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3603, "bevmans01_la", "sjmlahus29", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1663.475,693.033,1007.669,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3603, "bevmans01_la", "sjmlahus29", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1645.859,704.200,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1645.348,694.569,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19378,-1645.348,684.950,1007.650,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet2", 0);
- tmpobjid = CreateDynamicObjectEx(19453,-1647.750,696.450,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19361,-1646.119,703.614,1009.440,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 13007, "sw_bankint", "bank_wall1", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1647.790,702.840,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19390,-1647.790,690.030,1009.440,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 3922, "bistro", "Marble2", 0);
- tmpobjid = CreateDynamicObjectEx(19379,-1646.604,683.725,1007.655,0.000,-90.000,0.300,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 15055, "svlamid", "AH_flroortile3", 0);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- tmpobjid = CreateDynamicObjectEx(19453,-1621.869,697.590,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14416,-1623.810,697.510,1001.119,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1640.800,706.020,1001.309,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1638.969,707.679,1001.309,90.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1998,-1639.560,707.609,1000.830,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1714,-1640.609,707.900,1000.869,0.000,0.000,20.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1641.520,709.969,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2007,-1642.060,707.940,1000.830,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1641.560,706.479,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(948,-1642.170,710.080,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1640.890,710.390,1003.330,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19385,-1642.719,704.099,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1647.919,706.270,1000.729,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19428,-1642.719,701.700,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19302,-1647.709,701.590,1002.020,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1649.770,696.700,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1647.989,696.640,1000.719,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1642.719,696.099,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1644.949,692.409,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19355,-1644.380,701.590,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19355,-1650.729,701.590,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19385,-1647.560,701.590,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1658.449,696.710,1000.719,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1658.399,706.320,1000.719,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19385,-1653.920,701.590,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19302,-1654.020,701.640,1002.020,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19355,-1657.099,701.590,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1657.430,696.760,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1654.589,692.409,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1647.449,705.679,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1657.079,705.679,1002.500,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19447,-1657.439,706.359,1002.500,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14401,-1637.040,678.859,1000.799,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14401,-1644.920,678.940,1000.799,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14401,-1663.400,688.830,1000.799,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14401,-1671.109,688.940,1000.799,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2738,-1643.380,701.030,1001.349,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2524,-1644.550,700.919,1000.809,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2738,-1650.359,701.039,1001.349,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2524,-1651.500,701.000,1000.809,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1502,-1636.630,714.469,1000.830,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1502,-1636.619,720.880,1000.830,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1638.430,718.700,1001.109,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1641.920,718.700,1001.109,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1645.400,718.700,1001.109,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1638.449,718.679,1004.630,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19466,-1637.750,718.729,1002.869,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1641.920,718.700,1004.630,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19435,-1645.400,718.700,1004.630,90.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19466,-1639.989,718.729,1002.869,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19466,-1642.219,718.729,1002.869,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19466,-1644.459,718.729,1002.869,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1642.000,721.169,1000.830,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1640.920,721.140,1000.830,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1639.930,721.140,1000.830,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2165,-1642.770,722.780,1000.830,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1671,-1643.520,723.909,1001.289,0.000,0.000,8.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1638.819,723.909,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1775,-1637.390,724.020,1001.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1516,-1641.660,715.909,1001.010,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1516,-1641.660,717.049,1001.010,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1639.829,716.975,1000.830,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1639.865,716.043,1000.830,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1643.305,716.540,1000.830,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1886,-1637.520,714.450,1004.359,12.000,0.000,-115.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1640.930,724.440,1003.280,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1886,-1643.920,714.479,1004.359,12.000,0.000,-229.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1886,-1643.310,705.359,1004.359,12.000,0.000,-69.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1886,-1656.969,705.289,1004.359,12.000,0.000,75.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1643.869,721.840,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2613,-1643.780,714.719,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2613,-1641.790,723.809,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2194,-1642.430,722.469,1001.840,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1641.800,723.549,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1641.790,713.909,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1631.310,723.330,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1631.300,713.780,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1641.729,704.289,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1631.270,704.309,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1635.010,694.690,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1647.859,694.719,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1658.300,694.719,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1652.199,704.309,1004.280,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1886,-1632.609,723.219,1004.359,12.000,0.000,-35.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1634.329,723.729,1003.280,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1632.510,723.479,1000.830,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14416,-1624.849,701.580,1004.539,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14416,-1624.849,693.640,1004.539,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(0,-1629.130,702.710,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19466,-1629.760,698.650,1007.849,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19466,-1629.760,696.400,1007.849,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1319,-1629.790,697.479,1008.280,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19453,-1616.020,689.690,1009.440,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1944,-1616.020,699.309,1009.440,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19453,-1616.020,699.309,1009.440,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1616.160,697.559,1006.830,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19378,-1616.729,694.640,1007.669,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19378,-1616.760,704.229,1007.669,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3440,-1631.319,695.510,1008.840,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3440,-1631.300,699.500,1008.840,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14387,-1643.219,710.099,1006.739,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19453,-1641.359,716.609,1005.960,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14819,-1642.939,716.690,1006.960,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14819,-1642.949,716.409,1006.960,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2008,-1650.010,699.260,1007.760,0.000,0.000,500.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1671,-1649.579,700.409,1008.260,0.000,0.000,-76.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2008,-1651.579,701.969,1007.760,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1671,-1650.699,702.840,1008.260,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2007,-1648.359,698.549,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1651.589,700.650,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1660.619,697.000,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1660.640,696.250,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1660.609,695.570,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1660.619,694.820,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2309,-1660.660,694.099,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1723,-1648.439,695.539,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1827,-1650.150,694.580,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1648.369,697.270,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1569,-1660.829,689.640,1007.669,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1569,-1660.829,692.599,1007.669,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2412,-1648.410,691.419,1007.760,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2412,-1648.410,689.380,1007.760,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1502,-1643.790,688.479,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2184,-1646.560,683.780,1007.760,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1714,-1648.069,684.799,1007.739,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2190,-1646.880,685.400,1008.530,0.000,0.000,-69.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2310,-1645.420,685.549,1008.239,0.000,0.000,18.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2310,-1645.569,684.059,1008.239,0.000,0.000,-20.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14852,-1649.250,654.510,1013.239,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1704,-1642.099,683.640,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1704,-1642.750,681.969,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1641.910,682.020,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1649.079,683.469,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1649.069,686.369,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14852,-1678.369,682.659,1013.239,0.000,0.000,40.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1644.869,681.469,1010.260,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2194,-1651.869,701.679,1008.809,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2194,-1647.479,683.919,1008.789,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1495,-1647.790,703.599,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1495,-1647.753,689.288,1007.760,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1660.760,695.500,1010.260,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1654.040,688.630,1010.260,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1644.569,697.409,1010.260,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14782,-1634.560,681.859,1008.809,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14401,-1627.949,670.340,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14401,-1627.949,673.030,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2400,-1631.500,687.369,1008.580,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14782,-1634.739,691.039,1008.809,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1502,-1640.400,681.289,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14852,-1608.680,670.840,1013.239,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2627,-1632.829,679.530,1007.750,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2627,-1634.329,679.539,1007.750,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2627,-1635.819,679.549,1007.750,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2627,-1637.260,679.549,1007.750,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2629,-1632.290,675.419,1007.750,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2629,-1632.280,673.159,1007.750,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2628,-1635.319,671.619,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2628,-1636.619,671.619,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14819,-1625.989,716.320,1008.859,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(14819,-1626.040,716.039,1008.859,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1624.579,707.989,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2607,-1638.420,714.510,1007.960,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1640.339,714.530,1007.960,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1640.380,713.580,1007.960,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1641.020,716.099,1008.539,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1640.219,712.450,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1640.479,716.099,1008.539,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1639.839,715.549,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1640.939,711.260,1008.539,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1640.939,710.710,1008.539,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1635.489,709.469,1007.960,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1635.939,708.539,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1636.760,709.330,1008.539,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2612,-1637.219,716.099,1010.219,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2612,-1627.890,714.728,1010.219,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1629.599,712.989,1007.960,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2607,-1631.510,713.020,1007.960,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1629.959,711.900,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2611,-1632.979,716.099,1010.229,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2611,-1632.280,706.119,1010.229,0.000,0.000,220.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2186,-1636.204,704.197,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1640.768,708.993,1007.760,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1633.959,705.859,1007.960,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1634.000,706.859,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2607,-1632.119,706.830,1007.960,0.000,0.000,40.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1635.459,710.380,1007.960,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1635.479,711.460,1007.760,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1634.199,710.419,1008.539,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1631.189,707.760,1008.539,0.000,0.000,222.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1632.709,712.909,1008.539,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2605,-1628.387,715.192,1007.960,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2356,-1630.469,714.979,1007.760,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2610,-1628.102,713.939,1008.539,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1502,-1640.630,691.539,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1502,-1640.630,703.599,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(349,-1631.560,685.020,1010.320,0.000,10.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(349,-1631.719,685.059,1010.299,0.000,10.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(349,-1631.880,685.039,1010.260,0.000,10.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.489,686.799,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.510,687.400,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.750,686.809,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.890,686.809,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.890,686.809,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.609,687.380,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.689,687.369,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.780,687.380,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.609,686.809,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(353,-1631.880,687.380,1009.479,1.000,98.000,100.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(358,-1631.540,686.909,1010.309,0.000,10.000,113.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(358,-1631.739,686.929,1010.309,0.000,10.000,113.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(358,-1631.959,686.929,1010.309,0.000,10.000,113.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(356,-1631.670,685.070,1009.479,0.000,8.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(356,-1631.569,685.130,1009.500,0.000,8.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(356,-1631.839,685.030,1009.460,0.000,8.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(356,-1631.920,685.030,1009.419,0.000,8.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(334,-1631.750,685.869,1009.580,1.000,95.000,91.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(334,-1631.790,685.880,1009.580,1.000,95.000,91.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(334,-1631.839,685.900,1009.559,1.000,95.000,91.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(334,-1631.900,685.900,1009.559,1.000,95.000,91.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(373,-1631.609,686.090,1010.320,-29.000,-54.000,2.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(373,-1631.790,686.090,1010.320,-29.000,-54.000,2.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(373,-1631.869,686.099,1010.320,-29.000,-54.000,2.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1639.359,711.539,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1628.869,711.539,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1628.940,701.929,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1639.410,701.919,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1649.910,701.940,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1660.339,701.929,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1660.349,692.309,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1649.900,692.309,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1639.439,692.309,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1629.010,692.320,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1618.520,696.010,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1618.440,705.630,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1646.540,682.690,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1636.099,682.729,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(19377,-1636.130,673.109,1011.140,0.000,90.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(334,-1631.670,685.880,1009.580,1.000,95.000,91.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(334,-1631.609,685.890,1009.599,1.000,95.000,91.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1624.535,714.345,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1627.471,714.345,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1723,-1644.067,696.418,1007.756,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2256,-1647.686,700.481,1010.226,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2257,-1644.431,706.738,1009.846,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2258,-1641.453,704.865,1010.226,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2259,-1631.942,689.297,1009.807,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2260,-1640.784,688.296,1009.807,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2261,-1640.761,684.354,1009.807,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1640.863,681.806,1007.736,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(630,-1637.627,671.016,1008.725,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(3802,-1631.879,671.291,1010.213,0.000,0.000,86.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2254,-1631.491,677.610,1010.311,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2278,-1634.928,680.758,1010.091,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2264,-1640.763,674.356,1010.071,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1641.213,678.653,1010.260,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1640.788,686.305,1007.735,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1640.828,671.159,1007.735,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(631,-1640.601,675.814,1008.725,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(632,-1639.782,680.708,1008.076,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2267,-1635.612,691.677,1010.206,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2271,-1637.373,703.036,1009.947,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2614,-1622.053,697.510,1010.239,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1628.069,709.085,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1630.140,703.256,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1634.141,703.887,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1638.597,703.219,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1647.185,699.500,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1644.652,703.233,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1641.135,703.282,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2011,-1644.129,689.093,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2001,-1641.751,689.212,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1645.016,689.108,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1647.180,695.434,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1630.847,695.878,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1630.641,699.088,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1630.119,692.414,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1634.707,691.805,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1723,-1631.866,692.177,1007.756,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1723,-1635.535,692.177,1007.756,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1640.832,691.953,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2002,-1638.593,692.129,1007.735,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2280,-1631.338,705.981,1009.947,0.000,0.000,40.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2283,-1627.644,711.708,1010.267,0.000,0.000,90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2289,-1624.407,711.627,1010.267,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1616.561,692.007,1004.315,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1616.303,703.305,1004.315,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1724,-1617.197,699.467,1004.314,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1724,-1618.562,699.468,1004.314,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1724,-1617.537,695.820,1004.314,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1724,-1616.157,695.820,1004.314,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1724,-1616.681,694.884,1004.314,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(1724,-1616.659,701.412,1004.314,0.000,0.000,-90.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2286,-1657.598,688.611,1010.206,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2285,-1650.062,689.077,1009.947,0.000,0.000,180.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2282,-1650.217,703.055,1009.947,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1656.916,700.552,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1660.589,693.110,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1660.619,688.828,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1655.931,688.819,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1651.896,688.781,1007.760,0.000,0.000,0.000,300.000,300.000);
- tmpobjid = CreateDynamicObjectEx(2010,-1648.182,692.192,1007.760,0.000,0.000,0.000,300.000,300.000);
- // Simple New Hospital Interior Map By Jekrz
- CreateDynamicObject(18030, 1163.30908, -1320.85718, -42.91639, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1172.91382, -1316.41748, -45.91558, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18092, 1167.12793, -1326.00476, -44.79440, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2185, 1174.18933, -1315.81470, -45.28478, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2185, 1172.02869, -1315.81470, -45.28480, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2185, 1169.76953, -1315.81470, -45.28480, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1715, 1175.05432, -1314.24292, -45.28399, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1715, 1172.94055, -1314.29333, -45.28400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1715, 1170.51819, -1314.29333, -45.28400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19387, 1167.55603, -1314.69080, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1172.28540, -1313.12109, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1172.48450, -1308.97131, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19387, 1166.67578, -1308.96936, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19387, 1168.61646, -1310.65308, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19430, 1168.61841, -1312.36963, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1164.94580, -1314.89734, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19387, 1166.47534, -1316.41748, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19357, 1164.94580, -1311.68799, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1164.94775, -1310.40698, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2008, 1173.94373, -1312.51819, -45.28440, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1714, 1175.52881, -1312.00610, -45.15990, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1715, 1172.04395, -1311.28967, -45.28380, 0.00000, 0.00000, 77.00000);
- CreateDynamicObject(1715, 1172.01575, -1312.67920, -45.28380, 0.00000, 0.00000, 102.00000);
- CreateDynamicObject(2007, 1176.20386, -1309.62170, -44.80449, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2007, 1176.20386, -1310.62305, -44.80450, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2613, 1176.21399, -1311.97400, -45.28836, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14455, 1173.70740, -1309.17566, -43.68773, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1808, 1174.65430, -1309.24780, -45.28379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2007, 1176.12427, -1310.62305, -46.23550, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2007, 1176.12427, -1309.62170, -46.23550, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2194, 1176.55481, -1311.77795, -44.48066, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2194, 1176.55957, -1311.38916, -44.48070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2194, 1176.58704, -1312.21606, -44.48066, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2194, 1176.57800, -1312.63745, -44.48066, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2010, 1169.05457, -1312.65100, -45.28379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2007, 1176.31201, -1313.77576, -44.80449, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2007, 1176.30908, -1314.77551, -44.80449, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14782, 1173.00916, -1307.89587, -44.05260, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(14782, 1174.62781, -1307.89978, -44.05460, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(14782, 1172.61865, -1304.66309, -44.05260, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19449, 1158.18201, -1328.43970, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1153.31311, -1333.16711, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1163.01538, -1328.54712, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19357, 1167.74402, -1330.15881, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1167.74402, -1333.36670, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1167.74207, -1333.82776, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18092, 1165.32898, -1324.21838, -44.79640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1160.99951, -1326.93005, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1161.00171, -1325.33936, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1163.07996, -1330.15881, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18092, 1163.92639, -1340.67249, -44.79440, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(18092, 1162.12769, -1338.82788, -44.79640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19387, 1166.06738, -1334.07019, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19357, 1163.07800, -1332.50647, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1801, 1164.97302, -1332.10742, -45.28364, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1163.07996, -1334.06824, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19387, 1159.88123, -1334.07019, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19357, 1158.18408, -1332.55688, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2333, 1164.66382, -1333.55737, -45.28360, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2251, 1163.41370, -1333.02954, -43.47816, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2167, 1163.71228, -1328.67188, -45.09077, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2167, 1162.44946, -1328.67188, -45.09080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1801, 1160.06628, -1332.10742, -45.28360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2333, 1161.52478, -1332.50928, -45.28360, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2251, 1162.51099, -1333.02771, -43.47820, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2596, 1161.47131, -1333.66870, -42.45050, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2596, 1164.78455, -1333.66870, -42.45050, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1823, 1166.46277, -1329.65588, -45.28392, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2853, 1167.10022, -1329.13501, -44.78861, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2647, 1166.60815, -1329.39026, -44.64582, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1823, 1158.49377, -1329.72803, -45.28392, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2853, 1158.98096, -1329.25317, -44.78861, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1997, 1160.33508, -1326.90918, -45.28415, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1997, 1160.37097, -1324.85217, -45.28415, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19387, 1156.31750, -1338.25305, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1150.00439, -1337.95544, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1157.84338, -1342.98792, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1154.80176, -1336.56409, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1154.80371, -1334.84326, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2333, 1155.97717, -1334.84863, -45.28360, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2251, 1156.36499, -1333.71423, -43.47820, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2194, 1157.06702, -1333.74585, -44.04884, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2194, 1155.90613, -1333.74585, -44.04880, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19387, 1156.49548, -1323.69507, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1150.09021, -1323.69702, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3657, 1174.36011, -1329.02283, -44.82290, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3657, 1174.36011, -1331.09692, -44.82290, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3657, 1174.36011, -1333.21228, -44.82290, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2773, 1169.42297, -1317.64478, -44.74807, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, 1171.69397, -1317.65588, -44.74807, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, 1173.95789, -1317.67529, -44.74810, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, 1167.75281, -1317.70178, -44.74807, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(932, 1168.79993, -1316.92224, -45.28402, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(932, 1168.79626, -1317.72754, -45.28402, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(932, 1168.80029, -1318.47388, -45.28402, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1160.10242, -1316.41553, -43.53460, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1155.37683, -1308.57092, -43.53460, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2146, 1150.20959, -1310.55676, -44.88593, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2146, 1150.18469, -1313.28125, -44.88593, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(15036, 1153.24377, -1336.12036, -44.15332, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2994, 1156.03821, -1342.28552, -44.80390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2994, 1154.22583, -1342.35107, -44.80390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2637, 1150.66626, -1341.81287, -44.91124, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2639, 1152.38757, -1341.73608, -44.65756, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2134, 1158.38232, -1341.33875, -45.28400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2341, 1158.38806, -1342.31018, -45.28420, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2132, 1160.38074, -1342.29651, -45.28400, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1808, 1158.14087, -1340.52881, -45.28400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1964, 1163.95581, -1338.92383, -44.15190, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2190, 1164.21240, -1342.29810, -44.29410, 0.00000, 0.00000, 222.00000);
- CreateDynamicObject(2190, 1161.67725, -1338.29993, -44.29410, 0.00000, 0.00000, 4.00000);
- CreateDynamicObject(1715, 1161.84961, -1340.33984, -45.28400, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1715, 1162.46350, -1341.38782, -45.28400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, 1174.43591, -1335.66663, -43.36420, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3440, 1171.17017, -1335.67932, -43.11276, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, 1171.17017, -1341.70142, -43.36420, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3440, 1171.17017, -1338.24036, -43.11280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1768, 1162.06641, -1317.11865, -45.30917, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1768, 1174.99902, -1342.16565, -45.30920, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1768, 1175.75293, -1339.46497, -45.30920, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(18014, 1176.57068, -1338.02930, -44.29411, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18014, 1176.59045, -1342.60986, -44.29610, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2011, 1175.77478, -1342.40247, -45.28350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1814, 1173.32361, -1340.85718, -45.28356, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1808, 1173.80859, -1335.88562, -45.28352, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1808, 1168.43970, -1316.11914, -45.28380, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19449, 1172.91382, -1316.41748, -41.23349, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, 1171.33215, -1316.41748, -41.69795, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, 1177.92041, -1316.41943, -41.69800, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(16101, 1173.93445, -1316.41748, -53.15890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1171.69397, -1316.41748, -53.15890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16101, 1169.42297, -1316.41748, -53.15890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2011, 1164.75708, -1316.84375, -45.28350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2011, 1161.39612, -1316.84717, -45.28350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2146, 1151.28992, -1310.53223, -44.88593, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2146, 1151.30078, -1313.17261, -44.88593, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1997, 1159.41003, -1326.91821, -45.28415, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2341, 1161.58716, -1327.98389, -45.28420, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2134, 1161.57910, -1327.01428, -45.28400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2132, 1163.57104, -1327.96790, -45.28400, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1964, 1167.20032, -1324.59448, -44.15190, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2190, 1167.41223, -1327.56140, -44.29410, 0.00000, 0.00000, 222.00000);
- CreateDynamicObject(2190, 1164.45313, -1323.74353, -44.29410, 0.00000, 0.00000, 4.00000);
- CreateDynamicObject(1715, 1164.80518, -1325.74646, -45.28400, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1715, 1165.41968, -1326.87598, -45.28400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1808, 1161.30652, -1326.21045, -45.28400, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1997, 1155.95654, -1310.14563, -45.28415, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3383, 1160.25964, -1312.26855, -45.28420, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2341, 1164.33374, -1309.56396, -45.28420, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2132, 1162.34326, -1309.57849, -45.28400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2132, 1164.31970, -1310.53235, -45.28400, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3396, 1164.25378, -1314.72180, -45.28381, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2606, 1164.57068, -1314.40405, -42.90788, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2133, 1161.34106, -1309.57849, -45.28400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2133, 1160.34106, -1309.55859, -45.28400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2603, 1150.52405, -1329.01318, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2603, 1150.52405, -1326.89209, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2603, 1150.52405, -1324.85083, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2603, 1150.52405, -1331.16467, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2603, 1156.95081, -1331.16467, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2603, 1156.95081, -1329.01318, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2603, 1156.95081, -1326.89209, -44.90500, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2596, 1153.56042, -1332.75562, -42.78730, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2596, 1153.56042, -1324.10510, -42.78730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1533, 1176.77271, -1324.46033, -45.28440, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1533, 1176.75879, -1325.93994, -45.28440, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1886, 1168.35229, -1325.56812, -41.27430, 16.00000, 0.00000, 91.00000);
- CreateDynamicObject(1886, 1159.97913, -1336.37793, -41.27430, 16.00000, 0.00000, 76.00000);
- CreateDynamicObject(1886, 1159.81689, -1318.24207, -41.27430, 16.00000, 0.00000, 76.00000);
- CreateDynamicObject(1886, 1159.07678, -1322.03967, -41.27430, 16.00000, 0.00000, -92.00000);
- CreateDynamicObject(2251, 1173.69666, -1340.36841, -43.93500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 1165.68774, -1316.44983, -45.28395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 1167.52722, -1313.90332, -45.28390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1523, 1168.58203, -1309.85535, -45.28390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1523, 1165.88379, -1309.00793, -45.28390, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 1169.75037, -1305.09265, -45.06800, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14401, 1162.85083, -1305.62805, -45.06398, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14401, 1154.72559, -1293.60718, -45.06600, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1523, 1155.35254, -1313.38110, -45.28390, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1523, 1155.70508, -1323.71460, -45.28395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1523, 1155.41321, -1316.41907, -45.28390, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19449, 1155.37292, -1311.68201, -40.99503, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19449, 1160.10425, -1316.41345, -40.46843, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19357, 1164.94409, -1311.68689, -40.99500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1164.94409, -1314.89624, -40.99500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19357, 1164.94604, -1310.40588, -40.99500, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1533, 1149.42163, -1321.80444, -45.28440, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1533, 1149.42529, -1320.36682, -45.28440, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2774, 1148.82996, -1318.05542, -45.20044, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, 1148.82996, -1322.63342, -45.20040, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1159.09863, -1334.08252, -45.28405, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, 1166.81567, -1334.04443, -45.28400, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(18072, 1176.72900, -1325.89856, -43.19949, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1651, 1167.81055, -1304.27026, -43.44110, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1749, 1174.62805, -1316.42896, -41.56990, 14.00000, 0.00000, 0.00000);
- CreateDynamicObject(1749, 1171.32861, -1316.42896, -41.56990, 14.00000, 0.00000, 0.00000);
- // MAP MAXIMUS CLUB EXTRA!
- CreateObject(9482, 1931.23181, -1681.95801, 18.93309, 0.00000, 0.00000, 359.21863);
- CreateObject(1566, 1909.54272, -1682.69263, 13.66236, 0.00000, 0.00000, -269.75961);
- CreateObject(1566, 1909.54895, -1679.52100, 13.68098, 0.00000, 0.00000, -449.63983);
- CreateObject(3525, 1909.67126, -1682.54944, 15.41630, 36.78001, 2.34000, 90.65997);
- CreateObject(2773, 1910.96790, -1679.56543, 12.96230, 0.00000, 0.00000, 89.68265);
- CreateObject(2773, 1918.21313, -1682.63306, 13.04079, 0.00000, 0.00000, 90.71512);
- CreateObject(3525, 1909.69873, -1679.72839, 15.41630, 36.78001, 2.34000, 90.65997);
- CreateObject(2773, 1911.04065, -1682.69458, 13.04079, 0.00000, 0.00000, 92.13010);
- CreateObject(2773, 1914.94775, -1682.60840, 13.04079, 0.00000, 0.00000, 91.93323);
- CreateObject(2773, 1915.06250, -1679.39783, 13.04079, 0.00000, 0.00000, 91.12115);
- CreateObject(2773, 1918.19543, -1679.45166, 13.04079, 0.00000, 0.00000, 90.71512);
- // MAP Pizza and LSPD HQ Extra!
- CreateDynamicObject(984, 1537.76697, -1673.55444, 13.05382, 0.00000, 0.00000, -0.30000);
- CreateDynamicObject(970, 2100.51465, -1772.78174, 12.95935, 0.00000, 0.00000, -100.19999);
- CreateDynamicObject(970, 2099.66040, -1778.39233, 12.95935, 0.00000, 0.00000, -100.19999);
- CreateDynamicObject(970, 2098.67188, -1783.95410, 12.95935, 0.00000, 0.00000, -100.19999);
- CreateDynamicObject(970, 2103.55005, -1785.95752, 12.95935, 0.00000, 0.00000, -179.27998);
- CreateDynamicObject(970, 2109.90552, -1785.96875, 12.95935, 0.00000, 0.00000, -181.20001);
- CreateDynamicObject(970, 2117.75952, -1785.92578, 12.95935, 0.00000, 0.00000, -181.74001);
- CreateDynamicObject(970, 2103.27515, -1768.73779, 12.95935, 0.00000, 0.00000, -152.64001);
- // MAP [/kiosk] EXTRA!
- CreateDynamicObject(19459, 1807.90405, -1907.93591, 11.86538, 0.00000, 0.00000, 0.24301);
- CreateDynamicObject(19440, 1808.66296, -1912.68274, 14.31634, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19440, 1810.14758, -1903.27710, 14.31634, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19440, 1808.57446, -1903.23267, 14.31634, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19440, 1810.18860, -1912.68689, 14.31634, 0.00000, 0.00000, -90.24000);
- CreateDynamicObject(19459, 1809.46362, -1907.93506, 15.93556, 0.00000, 90.00000, 540.23212);
- CreateDynamicObject(2162, 1810.86914, -1904.14209, 14.01294, 0.00000, 0.00000, -87.83998);
- CreateDynamicObject(2162, 1810.85291, -1910.98999, 14.01294, 0.00000, 0.00000, -91.25999);
- CreateDynamicObject(2199, 1810.81885, -1906.24414, 12.58146, 0.00000, 0.00000, -88.61997);
- CreateDynamicObject(2199, 1810.78162, -1908.78259, 12.58146, 0.00000, 0.00000, -88.19997);
- CreateDynamicObject(2206, 1809.10840, -1905.00903, 12.56457, 0.00000, 0.00000, -75.00001);
- CreateDynamicObject(2190, 1809.64978, -1906.14172, 13.50924, 0.00000, 0.00000, -86.10000);
- CreateDynamicObject(2894, 1809.17004, -1905.11194, 13.49319, 0.00000, 0.00000, -49.20000);
- CreateDynamicObject(2894, 1809.68018, -1906.82385, 13.49319, 0.00000, 0.00000, -49.20000);
- // MAP PAINTBALL v.2 EXTRA HOT! (CREATED: CHARLY MESINA) NOTE: SIMPLE PERO MAY DATING!
- CreateDynamicObject(14623, 1941.60864, -1704.80920, -22.11504, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3430, 1941.35657, -1704.31873, -25.99762, 0.00000, 0.00000, 2.04000);
- CreateDynamicObject(19439, 1941.35376, -1704.17700, -23.11180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19439, 1941.66052, -1705.25513, -24.84414, 185.00000, 90.00000, 0.59424);
- CreateDynamicObject(19439, 1941.61438, -1703.67542, -24.84414, 185.00000, 90.00000, 0.59424);
- CreateDynamicObject(19439, 1941.64111, -1702.06506, -24.84004, 179.00000, 90.00000, 0.52000);
- CreateDynamicObject(19439, 1939.09839, -1704.50317, -24.84410, 179.00000, 90.00000, -89.00000);
- CreateDynamicObject(19439, 1944.17004, -1704.21619, -24.84410, 179.00000, 90.00000, -89.00000);
- CreateDynamicObject(19439, 1941.71851, -1706.82642, -24.84004, 179.00000, 90.00000, 0.52000);
- CreateDynamicObject(1566, 1938.13037, -1666.48083, -22.44091, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1566, 1941.26074, -1666.60815, -22.44091, 0.00000, 0.00000, -182.28006);
- CreateDynamicObject(19376, 1945.56189, -1743.44250, -27.67320, 0.00000, 0.00000, -89.64006);
- CreateDynamicObject(19376, 1935.98303, -1743.52185, -27.67320, 0.00000, 0.00000, -89.16006);
- CreateDynamicObject(3124, 1941.34680, -1705.21179, -26.14296, 0.00000, 0.00000, -158.64000);
- CreateDynamicObject(351, 1940.10828, -1704.18384, -25.70789, 0.00000, 0.00000, 60.78751);
- CreateDynamicObject(356, 1940.51929, -1705.25952, -25.77457, 0.00000, 0.00000, 120.64095);
- CreateDynamicObject(348, 1942.60559, -1703.82593, -25.71859, 0.00000, 0.00000, 115.13998);
- CreateDynamicObject(349, 1942.37744, -1705.25085, -25.98804, 0.00000, 0.00000, 71.76001);
- CreateDynamicObject(353, 1940.90930, -1703.17041, -25.81017, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(353, 1941.78979, -1702.99243, -25.81017, 0.00000, 0.00000, -150.54007);
- CreateDynamicObject(2558, 1941.61975, -1701.50110, -24.43008, 0.00000, 0.00000, 90.77982);
- CreateDynamicObject(2558, 1940.87646, -1702.08618, -24.43008, 0.00000, 0.00000, -89.28017);
- CreateDynamicObject(19360, 1941.41418, -1702.79395, -28.31864, 0.00000, 0.00000, 89.58000);
- CreateDynamicObject(19360, 1939.84277, -1704.40234, -28.31864, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(19360, 1943.08789, -1704.52295, -28.31864, 0.00000, 0.00000, 4.74001);
- CreateDynamicObject(19360, 1941.46350, -1706.04749, -28.31864, 0.00000, 0.00000, -90.17995);
- CreateDynamicObject(16151, 1923.68079, -1700.36584, -27.25897, 0.00000, 0.00000, -192.17998);
- CreateDynamicObject(1541, 1924.40356, -1701.34253, -26.31364, 0.00000, 0.00000, 74.04002);
- CreateDynamicObject(14657, 1952.08521, -1730.46606, -26.95049, 0.00000, 0.00000, -0.84000);
- CreateDynamicObject(14657, 1931.13037, -1730.32886, -26.95049, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(19608, 1941.43396, -1740.89978, -27.67704, 0.00000, 0.00000, -178.55995);
- CreateDynamicObject(19609, 1941.14490, -1740.78394, -27.64050, 0.00000, 0.00000, -181.26001);
- CreateDynamicObject(2232, 1944.47083, -1740.10889, -27.13191, 0.00000, 0.00000, 202.98004);
- CreateDynamicObject(2232, 1938.31274, -1740.26587, -27.13191, 0.00000, 0.00000, 136.56009);
- CreateDynamicObject(19128, 1943.23010, -1740.74402, -27.63147, 0.00000, 0.00000, 1.32000);
- CreateDynamicObject(19128, 1939.28113, -1740.86584, -27.63147, 0.00000, 0.00000, 1.32000);
- CreateDynamicObject(19128, 1943.51257, -1740.71716, -27.63147, 0.00000, 0.00000, 1.32000);
- CreateDynamicObject(14410, 1932.03699, -1676.97852, -26.94818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1935.88574, -1676.98279, -26.94818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1939.69177, -1677.00818, -26.94818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1943.15356, -1677.03418, -26.94818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1946.92114, -1677.03577, -26.94818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1950.39502, -1677.02966, -26.94818, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 1935.44727, -1668.97314, -23.77597, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 1947.92444, -1668.94385, -23.77597, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14410, 1954.27661, -1677.04077, -26.94818, 0.00000, 0.00000, 0.00000);
- /*// Joingame new event
- CreateDynamicObject(5004, 1284.98328, -1329.42188, 11.91022, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1376.38660, 11.30550, 0.00000, 0.00000, 18.14640);
- CreateDynamicObject(3578, 1306.21204, -1298.05188, 11.30546, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1304.75110, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1311.03491, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.94800, -1297.50464, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93469, -1324.48987, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93469, -1332.14172, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93469, -1341.99255, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93469, -1350.24451, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1365.81360, 11.30550, 0.00000, 0.00000, 18.14640);
- CreateDynamicObject(3578, 1324.93469, -1358.02563, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1358.35535, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1349.68298, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1341.50525, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1332.10205, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.21204, -1324.44775, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1306.22620, -1317.77258, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93469, -1317.81445, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93811, -1311.25024, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3578, 1324.93909, -1304.49048, 11.30550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19913, 1332.15759, -1359.45325, 11.83100, 0.00000, 0.00000, 90.00881);
- CreateDynamicObject(19913, 1332.25244, -1316.31250, 11.83100, 0.00000, 0.00000, 90.00880);
- CreateDynamicObject(19912, 1309.24060, -1384.48889, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19912, 1332.16943, -1384.39233, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19912, 1320.71033, -1384.43701, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19912, 1298.83948, -1384.51624, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19913, 1287.40466, -1359.66699, 11.83100, 0.00000, 0.00000, 90.00881);
- CreateDynamicObject(19913, 1287.18286, -1333.28918, 11.83100, 0.00000, 0.00000, 90.00881);
- CreateDynamicObject(19912, 1332.55188, -1292.86865, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19912, 1321.09070, -1292.75146, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19912, 1309.39355, -1292.69702, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19912, 1297.89563, -1292.62292, 14.61338, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(6965, 1313.81116, -1339.25208, 15.82422, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1322.13550, -1374.02954, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1302.19409, -1373.81653, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1322.04602, -1354.98376, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1302.30054, -1354.17468, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1322.54895, -1335.11243, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1302.47278, -1334.85791, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1322.41821, -1315.09839, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1302.55347, -1314.64600, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1931, 1527.75537, -1596.13525, 12.33145, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19527, 2294.54102, -1732.46460, 12.35974, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(6865, 1462.57458, -1749.53748, 22.21646, 0.00000, 0.00000, 226.68024);
- CreateDynamicObject(6865, 1499.88110, -1750.21497, 22.21646, 0.00000, 0.00000, 226.68024);
- CreateDynamicObject(5714, 2255.21582, -1744.64185, 14.53137, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3524, 2225.75488, -1732.44299, 13.77380, 0.00000, 0.00000, 278.41080);
- CreateDynamicObject(3524, 2276.22729, -1732.25464, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(3524, 2237.21143, -1732.31482, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(3524, 2230.35986, -1732.24268, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(3524, 2241.98364, -1732.32288, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(3524, 2247.78662, -1732.36279, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(3524, 2255.59595, -1732.41638, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(3524, 2264.88086, -1732.47998, 13.77380, 0.00000, 0.00000, 276.07086);
- CreateDynamicObject(18761, 1308.79199, -1378.12891, 16.43755, 0.00000, 0.00000, -0.84000);
- CreateDynamicObject(16770, 1307.52808, -1374.58008, 13.60965, 0.00000, 0.00000, 269.64282);
- CreateDynamicObject(2599, 1315.10229, -1377.59253, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1313.45972, -1377.49219, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1311.85559, -1377.57739, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1310.46350, -1377.69092, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1308.85669, -1377.75220, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1307.31799, -1377.76270, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1305.96436, -1377.61914, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1304.44751, -1377.58130, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1302.83643, -1377.49109, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(2599, 1301.49341, -1377.49805, 12.62209, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(19458, 1315.74084, -1379.04871, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1314.23450, -1378.88989, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1312.76379, -1379.03003, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1311.23279, -1378.92664, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1309.68298, -1379.02942, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1308.20740, -1378.99255, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1306.65930, -1378.96558, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1305.21362, -1378.92078, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1303.78821, -1378.89929, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1302.30200, -1378.91675, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1300.86377, -1378.90686, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 1321.68103, -1377.93494, 12.18321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 1309.31299, -1377.81616, 12.18321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 1296.85107, -1377.85840, 12.18321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19700, 1288.56458, -1377.70679, 12.18321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1282.26953, -1373.47424, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1282.34326, -1353.56628, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1282.54468, -1333.67810, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1284.97778, -1313.86804, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1322.37390, -1296.07678, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1303.36597, -1295.11719, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, 1283.40454, -1296.66736, 12.11935, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1317.18347, -1378.97156, 12.49747, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1317.05127, -1373.95581, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1315.77698, -1374.18799, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1314.22302, -1374.06543, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1312.71948, -1374.12146, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1311.24475, -1374.08557, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1309.65857, -1374.10107, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1308.20447, -1374.10132, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1306.74109, -1374.08325, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1305.23462, -1374.02588, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1303.79883, -1374.09460, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1302.38574, -1373.97803, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1300.93323, -1374.01550, 13.92664, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19458, 1315.48315, -1378.96899, 14.22880, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1312.06201, -1378.95142, 14.22880, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1308.57617, -1378.94812, 14.22880, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1305.13208, -1378.92603, 14.22880, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19458, 1302.42542, -1378.88770, 14.22880, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19700, 1333.63770, -1377.92517, 12.18321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3533, 1286.93335, -1292.93762, 16.74854, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3533, 1287.50574, -1308.30823, 16.74854, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1285.61462, -1292.62402, 13.90938, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1286.09131, -1308.16321, 13.90938, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1287.08582, -1308.23633, 22.95426, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1286.57397, -1292.83240, 22.94259, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2745, 1308.00623, -1378.06726, 15.61657, 0.00000, 0.00000, 179.30191);
- CreateDynamicObject(3858, 1308.25244, -1374.05408, 11.46624, 0.00000, 0.00000, 44.82000);
- CreateDynamicObject(19700, 1309.43640, -1365.53223, 12.18321, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1312.52112, -1379.72510, 15.11239, 0.00000, 0.00000, 90.24001);
- CreateDynamicObject(19459, 1304.80432, -1379.68298, 15.11239, 0.00000, 0.00000, 89.46001);
- CreateDynamicObject(3533, 1318.07764, -1378.25037, 16.42148, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3533, 1299.70337, -1378.08191, 16.94220, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1308.86584, -1377.84973, 15.29724, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3461, 1307.20154, -1378.03845, 15.29724, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19364, 1306.74561, -1378.80872, 14.95449, 0.00000, 0.00000, -0.24000);
- CreateDynamicObject(19364, 1309.18970, -1378.85376, 14.95449, 0.00000, 0.00000, -0.24000);*/
- // Wood DM EVENT! (Paintball v.2)
- CreateDynamicObject(19379, 643.93219, 1630.27539, 61.28905, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 643.93671, 1620.65625, 61.28905, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 643.92017, 1611.04199, 61.28905, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 643.86908, 1601.70557, 61.28905, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19379, 648.01923, 1634.85999, 61.28905, 0.00000, 0.00000, -89.45998);
- CreateDynamicObject(19379, 657.59277, 1634.97021, 61.28905, 0.00000, 0.00000, -89.45998);
- CreateDynamicObject(19379, 666.60992, 1635.02551, 61.28905, 0.00000, 0.00000, -89.45998);
- CreateDynamicObject(19379, 676.06451, 1635.09790, 61.28905, 0.00000, 0.00000, -89.45998);
- CreateDynamicObject(19379, 685.37189, 1635.21155, 61.28905, 0.00000, 0.00000, -89.45998);
- CreateDynamicObject(19379, 645.89099, 1601.97864, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 655.48328, 1601.91187, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 665.14886, 1601.73230, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 673.89551, 1601.81262, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 682.96362, 1601.91602, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 690.38739, 1633.71826, 61.28905, 0.00000, 0.00000, -180.05995);
- CreateDynamicObject(19379, 690.48010, 1624.85791, 61.28905, 0.00000, 0.00000, -179.81992);
- CreateDynamicObject(19379, 690.50995, 1617.42358, 61.28905, 0.00000, 0.00000, -179.45993);
- CreateDynamicObject(19379, 690.50964, 1611.78784, 61.28905, 0.00000, 0.00000, -179.93991);
- CreateDynamicObject(19379, 691.19104, 1601.79761, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 695.13165, 1607.10669, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 698.87610, 1601.77075, 61.28905, 0.00000, 0.00000, -90.35999);
- CreateDynamicObject(19379, 723.06244, 1603.68213, 66.61985, 0.00000, 0.00000, -179.81993);
- CreateDynamicObject(19379, 723.03345, 1613.09595, 66.61985, 0.00000, 0.00000, -179.81993);
- CreateDynamicObject(19379, 718.35834, 1621.35950, 66.61985, 0.00000, 0.00000, -270.89987);
- CreateDynamicObject(19379, 703.42139, 1597.01563, 61.28905, 0.00000, 0.00000, -182.21999);
- CreateDynamicObject(19379, 708.26208, 1598.13623, 66.05761, 0.00000, 0.00000, -269.70004);
- CreateDynamicObject(19379, 717.64532, 1598.20239, 66.13433, 0.00000, 0.00000, -269.82004);
- CreateDynamicObject(19379, 727.10242, 1598.24451, 65.98432, 0.00000, 0.00000, -269.82004);
- CreateDynamicObject(19379, 699.31763, 1612.00964, 67.20643, 0.00000, 0.00000, -215.10011);
- CreateDynamicObject(19379, 713.78912, 1621.42114, 66.61985, 0.00000, 0.00000, -270.89987);
- CreateDynamicObject(19379, 705.58777, 1618.64868, 66.61985, 0.00000, 0.00000, -231.89990);
- CreateDynamicObject(19379, 723.00134, 1621.99426, 66.61985, 0.00000, 0.00000, -179.81993);
- CreateDynamicObject(19377, 649.18256, 1606.89832, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 649.39716, 1616.25549, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 649.11609, 1625.76306, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 649.16479, 1635.51904, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 659.65442, 1606.69055, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 659.57446, 1615.88953, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 659.54810, 1625.55237, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 659.49347, 1635.11963, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 669.87994, 1634.71118, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 669.88422, 1625.24963, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 669.95081, 1615.63574, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 670.02808, 1606.16724, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 679.83167, 1635.17969, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 689.86078, 1635.19250, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 680.11169, 1625.86206, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 690.38452, 1625.90222, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 680.19586, 1616.31018, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 690.49176, 1616.36682, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 678.87421, 1606.79724, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 678.87421, 1606.79724, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 688.99371, 1606.71436, 66.14463, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19129, 722.85699, 1618.65173, 61.96490, 0.00000, 90.00000, -179.93996);
- CreateDynamicObject(19129, 722.83459, 1598.88794, 61.96490, 0.00000, 90.00000, -179.93996);
- CreateDynamicObject(19377, 708.78284, 1602.68140, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 719.21930, 1602.81580, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 719.27924, 1612.45068, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 719.30231, 1621.88843, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 711.21448, 1612.09436, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 711.22406, 1621.35205, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 700.87946, 1618.39185, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 698.81018, 1598.00562, 66.05761, 0.00000, 0.00000, -448.97977);
- CreateDynamicObject(19377, 700.91998, 1612.22461, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 700.60626, 1617.79260, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19377, 700.54602, 1612.02161, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 699.78058, 1602.44104, 71.24877, 0.00000, 0.00000, -182.21999);
- CreateDynamicObject(19377, 694.71814, 1606.75049, 66.25079, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 699.75665, 1611.96228, 71.24877, 0.00000, 0.00000, -182.21999);
- CreateDynamicObject(19377, 705.02545, 1602.54114, 70.90851, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 649.19080, 1629.98462, 56.02637, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 649.22461, 1620.35718, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 649.22443, 1610.76489, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 649.14893, 1601.12231, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 659.51965, 1601.26855, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 659.41138, 1610.63672, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 659.36304, 1619.87891, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 659.38208, 1629.43774, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 659.41962, 1639.18420, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 669.88391, 1610.70007, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 669.85089, 1601.32251, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 669.76459, 1620.02124, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 669.78540, 1629.65051, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 669.80066, 1638.98962, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 680.08545, 1636.79907, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 680.07349, 1627.14478, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 680.09235, 1617.66272, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 680.09113, 1608.14734, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 680.16534, 1598.53601, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 690.20990, 1637.01013, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 690.50079, 1627.70386, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 689.56897, 1619.01062, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 690.02460, 1610.03455, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19379, 688.00470, 1601.58923, 55.96219, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(14410, 697.50281, 1606.25208, 59.12586, 0.00000, 0.00000, -88.02000);
- CreateDynamicObject(14410, 697.59631, 1602.97510, 59.12586, 0.00000, 0.00000, -88.55997);
- CreateDynamicObject(19379, 709.02893, 1605.44080, 62.17337, 0.00000, 90.00000, 1.33031);
- CreateDynamicObject(19379, 700.64630, 1612.20471, 62.17337, 0.00000, 90.00000, 2.71031);
- CreateDynamicObject(19379, 708.70258, 1614.40515, 62.17337, 0.00000, 90.00000, 2.71031);
- CreateDynamicObject(19379, 708.33734, 1597.02344, 62.17337, 0.00000, 90.00000, 1.33031);
- CreateDynamicObject(19379, 718.62610, 1596.22375, 62.17337, 0.00000, 90.00000, 1.33031);
- CreateDynamicObject(19379, 718.84357, 1616.31958, 62.17337, 0.00000, 90.00000, 2.71031);
- CreateDynamicObject(19379, 719.06964, 1605.72546, 62.17337, 0.00000, 90.00000, 2.71031);
- CreateDynamicObject(19379, 719.51111, 1606.66858, 62.17337, 0.00000, 90.00000, 2.71031);
- CreateDynamicObject(19379, 708.02045, 1623.59460, 62.17337, 0.00000, 90.00000, 2.71031);
- // NEW MAP OF TDM (Paintball v.2)
- CreateDynamicObject(17864, 1734.47388, -1883.79285, 1059.97900, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(17864, 1734.37488, -1851.99902, 1059.97900, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(18981, 1714.40869, -1887.17908, 1070.46533, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18981, 1714.40869, -1862.19995, 1070.46533, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18981, 1714.40869, -1837.20422, 1070.46533, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18981, 1726.59253, -1899.77844, 1070.46533, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18981, 1751.58716, -1899.77844, 1070.46533, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18981, 1754.39209, -1889.56140, 1070.46533, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18981, 1754.39209, -1864.57385, 1070.46533, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18981, 1754.39209, -1839.59656, 1070.46533, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18981, 1744.61646, -1836.30066, 1070.46533, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18981, 1719.63953, -1836.30066, 1070.46533, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(683, 1725.02673, -1879.56140, 1059.60486, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(683, 1738.91528, -1877.66699, 1059.35608, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(683, 1731.52698, -1864.10120, 1060.02783, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(683, 1745.52283, -1856.80066, 1059.63623, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(683, 1734.01575, -1845.39734, 1059.47192, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(831, 1725.56616, -1856.25366, 1061.01440, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(831, 1731.55981, -1873.79968, 1061.01440, 0.00000, 0.00000, -185.00000);
- CreateDynamicObject(831, 1744.72473, -1879.13806, 1061.01440, 0.00000, 0.00000, 55.00000);
- CreateDynamicObject(831, 1739.61426, -1856.59033, 1061.01440, 0.00000, 0.00000, -185.00000);
- CreateDynamicObject(1418, 1752.49426, -1880.13452, 1060.59924, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19641, 1723.66333, -1862.98743, 1059.24011, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3260, 1737.49854, -1877.56323, 1061.05103, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(879, 1730.95947, -1848.46558, 1060.12109, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(807, 1741.53491, -1874.75854, 1060.38745, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(807, 1733.33972, -1872.17847, 1060.38745, 0.00000, 0.00000, 80.00000);
- CreateDynamicObject(807, 1723.29578, -1873.10864, 1060.38745, 0.00000, 0.00000, -80.00000);
- CreateDynamicObject(807, 1730.51294, -1880.48572, 1060.38745, 0.00000, 0.00000, -30.00000);
- CreateDynamicObject(807, 1727.54736, -1858.85925, 1060.38745, 0.00000, 0.00000, 20.00000);
- CreateDynamicObject(807, 1730.69348, -1852.24329, 1060.38745, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(807, 1718.74585, -1850.75781, 1060.38745, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(807, 1740.35730, -1861.66296, 1060.38745, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(906, 1733.30615, -1866.26782, 1059.08276, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(807, 1746.55872, -1889.00024, 1059.93811, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(807, 1749.72522, -1879.63599, 1060.08936, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(16281, 1721.57617, -1877.60962, 1059.92102, 0.00000, 0.00000, 150.00000);
- CreateDynamicObject(890, 1747.18835, -1871.64380, 1060.30750, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(830, 1731.86414, -1860.00098, 1060.71899, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(848, 1727.76709, -1876.43225, 1061.44226, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1463, 1744.05688, -1856.66833, 1060.47424, 0.00000, 0.00000, -4.00000);
- CreateDynamicObject(3302, 1747.76074, -1863.06335, 1060.95142, 76.00000, 0.00000, 0.00000);
- CreateDynamicObject(19412, 1752.68237, -1855.96155, 1061.49109, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19412, 1728.58618, -1856.43262, 1059.70972, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19412, 1729.25159, -1870.67322, 1061.55090, 0.00000, 0.00000, 48.00000);
- CreateDynamicObject(865, 1734.59277, -1877.12903, 1060.01282, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(865, 1740.51941, -1871.78027, 1060.01282, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(865, 1742.29602, -1866.39258, 1060.01282, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(865, 1729.70007, -1867.38892, 1060.01282, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(865, 1725.92993, -1860.34790, 1060.01282, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(865, 1717.71594, -1855.88208, 1060.01282, 0.00000, 0.00000, 70.00000);
- CreateDynamicObject(865, 1727.13013, -1846.38635, 1060.01282, 0.00000, 0.00000, 70.00000);
- CreateDynamicObject(865, 1742.45374, -1851.71143, 1060.01282, 0.00000, 0.00000, 65.00000);
- CreateDynamicObject(865, 1736.31030, -1847.50391, 1060.01282, 0.00000, 0.00000, 65.00000);
- CreateDynamicObject(871, 1749.49158, -1862.25964, 1060.32983, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(871, 1752.81470, -1857.99963, 1060.32983, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1748.71252, -1856.71619, 1060.16199, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1749.35291, -1847.47461, 1060.16199, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1742.20166, -1842.34363, 1059.79126, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1742.90930, -1884.02441, 1060.07520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1737.90735, -1881.45642, 1060.07520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1731.81287, -1885.83411, 1060.07520, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(866, 1723.66345, -1882.62463, 1060.07520, 0.00000, 0.00000, 30.00000);
- CreateDynamicObject(866, 1725.66028, -1889.12915, 1060.07520, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(842, 1721.83081, -1889.54077, 1060.05542, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(842, 1732.92444, -1879.68958, 1060.05542, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19838, 1731.02710, -1855.00415, 1060.01379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19838, 1730.01489, -1857.01978, 1060.01379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19838, 1728.42749, -1864.61926, 1060.01379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19838, 1734.89954, -1869.72083, 1060.01379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19838, 1738.81970, -1867.92761, 1060.01379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19838, 1748.09216, -1866.30310, 1060.01379, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1750.19519, -1865.83679, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1745.21118, -1861.15137, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1741.52515, -1877.29968, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1744.28687, -1873.30957, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1749.25757, -1876.14282, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1734.28467, -1856.42419, 1060.12378, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(761, 1752.13123, -1872.80530, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(761, 1737.02832, -1857.68591, 1060.12378, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1751.30652, -1893.16235, 1061.49121, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19386, 1746.40222, -1894.68030, 1061.49121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19356, 1746.40222, -1897.88916, 1061.49121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19386, 1723.16223, -1841.50696, 1061.49121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19356, 1723.16223, -1838.30554, 1061.49121, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19448, 1718.26038, -1843.03015, 1061.49121, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19860, 1753.90088, -1898.57910, 1061.03516, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19860, 1714.89746, -1838.59729, 1060.91248, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19307, 1723.17896, -1839.16162, 1062.45313, 0.00000, 28.00000, 180.00000);
- CreateDynamicObject(19306, 1746.33875, -1897.18945, 1062.32666, 0.00000, 30.00000, 0.00000);
- CreateDynamicObject(697, 1720.13049, -1868.25757, 1059.63855, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(697, 1751.04895, -1886.18469, 1059.63855, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(782, 1725.59021, -1892.31262, 1059.30859, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(782, 1738.87036, -1889.95752, 1059.30859, 0.00000, 0.00000, 50.00000);
- CreateDynamicObject(659, 1747.87939, -1843.60547, 1058.90393, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(659, 1741.75391, -1846.39673, 1058.90393, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(659, 1720.73450, -1854.42224, 1058.90393, 0.00000, 0.00000, 0.00000);
- // Death Arena by Jack Deen
- tmpobjid = CreateDynamicObjectEx(19447,2012.964,-2504.003,1021.101,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19447,2022.594,-2504.003,1021.101,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19447,2032.203,-2504.003,1021.101,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19447,2008.173,-2504.003,1021.103,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19447,2012.964,-2491.003,1025.102,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19385,2003.515,-2503.951,1019.312,0.000,0.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19385,2036.693,-2504.003,1019.312,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19447,2032.203,-2516.904,1025.102,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2022.594,-2516.904,1025.102,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2012.964,-2516.904,1025.102,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2008.173,-2516.904,1025.103,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2022.594,-2491.003,1025.102,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2032.203,-2491.003,1025.102,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2008.173,-2491.003,1025.103,0.000,-90.000,270.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2020.683,-2497.888,1019.174,24.198,90.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19385,2033.895,-2508.870,1019.312,0.000,0.000,-89.999,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2033.895,-2504.093,1021.103,0.000,-90.000,360.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19385,2033.764,-2499.674,1019.312,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2033.895,-2497.169,1023.117,24.198,-90.000,360.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2033.885,-2510.773,1023.117,24.198,90.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2020.683,-2510.087,1019.174,24.198,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -1280);
- tmpobjid = CreateDynamicObjectEx(19074,2020.149,-2504.132,1039.676,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -36096);
- SetDynamicObjectMaterial(tmpobjid, 1, -1, "none", "none", -36096);
- tmpobjid = CreateDynamicObjectEx(19447,2006.384,-2510.773,1023.117,24.198,90.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19385,2006.395,-2508.870,1019.312,0.000,0.000,-89.999,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2006.395,-2504.093,1021.104,0.000,-90.000,360.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19385,2006.394,-2499.674,1019.312,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2006.395,-2497.169,1023.117,24.198,-90.000,360.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(4708,2019.437,-2508.427,1056.012,0.000,-180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 2, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 3, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 4, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 5, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 6, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 7, -1, "none", "none", -65536);
- tmpobjid = CreateDynamicObjectEx(8419,2023.750,-2498.135,1005.927,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 1, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 2, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 3, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 4, -1, "none", "none", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2033.454,-2499.995,1038.562,39.999,180.000,112.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2022.634,-2503.967,1037.838,0.000,-90.000,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2040.790,-2503.968,1019.796,0.000,0.000,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2039.967,-2503.968,1024.494,0.000,-20.003,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2037.905,-2503.968,1028.924,0.000,-30.003,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2035.126,-2503.967,1032.910,0.000,-40.006,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2038.927,-2497.727,1032.135,49.999,180.000,112.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2040.682,-2496.997,1028.137,59.999,180.000,112.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2041.713,-2496.571,1023.963,69.999,180.000,112.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2041.939,-2496.477,1020.927,89.999,180.000,112.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2032.363,-2510.596,1038.562,39.999,180.000,67.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2021.902,-2505.753,1037.838,0.000,-90.000,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2031.692,-2503.967,1036.358,0.000,-50.006,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2027.614,-2503.967,1037.838,0.000,-90.000,0.001,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2026.729,-2491.726,1038.562,39.999,180.000,157.498,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2021.886,-2502.186,1037.838,0.000,-90.000,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2034.725,-2489.347,1019.796,0.000,0.000,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2034.144,-2489.930,1024.494,0.000,-20.003,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2032.686,-2491.388,1028.924,0.000,-30.003,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2030.720,-2493.352,1032.910,0.000,-40.006,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2028.994,-2486.251,1032.135,49.999,180.000,157.498,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(18762,2034.739,-2518.593,1019.796,0.000,0.000,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2034.157,-2518.011,1024.494,0.000,-20.003,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2032.699,-2516.553,1028.924,0.000,-30.003,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2030.735,-2514.587,1032.910,0.000,-40.006,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2037.836,-2512.863,1032.135,49.999,180.000,67.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2039.593,-2513.589,1028.137,60.000,180.000,67.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2040.624,-2514.016,1023.963,69.999,180.000,67.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2040.849,-2514.110,1020.927,90.000,488.179,119.319,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2028.308,-2512.159,1036.358,0.000,-50.006,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2025.423,-2509.275,1037.838,0.000,-90.000,-44.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2029.720,-2484.495,1028.137,59.999,180.000,157.498,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2030.147,-2483.465,1023.963,69.999,180.000,157.498,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2030.241,-2483.238,1020.927,90.000,192.492,145.007,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2028.292,-2495.780,1036.358,0.000,-50.006,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2025.407,-2498.664,1037.838,0.000,-90.000,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2016.126,-2490.634,1038.562,39.999,180.000,-157.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2020.098,-2501.454,1037.838,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.099,-2483.298,1019.796,0.000,0.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.100,-2484.122,1024.494,0.000,-20.003,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.099,-2486.184,1028.924,0.000,-30.003,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.098,-2488.961,1032.910,0.000,-40.006,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2013.859,-2485.160,1032.135,49.999,180.000,-157.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2013.130,-2483.405,1028.137,59.999,180.000,-157.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2012.703,-2482.375,1023.963,69.999,180.000,-157.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2012.609,-2482.147,1020.927,90.000,333.166,49.332,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2020.098,-2492.395,1036.358,0.000,-50.006,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.098,-2496.475,1037.838,0.000,-90.000,90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2007.858,-2497.358,1038.562,39.999,180.000,-112.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2018.317,-2502.201,1037.838,0.000,-90.000,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2005.479,-2489.362,1019.796,0.000,0.000,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2006.062,-2489.944,1024.494,0.000,-20.003,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2007.520,-2491.402,1028.924,0.000,-30.003,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2009.484,-2493.367,1032.910,0.000,-40.006,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2002.385,-2495.093,1032.135,49.999,180.000,-112.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 1, -1, "none", "none", -65536);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2000.626,-2494.366,1028.137,59.999,180.000,-112.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,1999.597,-2493.939,1023.963,69.999,180.000,-112.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,1999.369,-2493.845,1020.927,90.000,186.257,-118.758,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2011.911,-2495.795,1036.358,0.000,-50.006,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2014.796,-2498.679,1037.838,0.000,-90.000,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2006.765,-2507.960,1038.562,39.999,180.000,-67.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2017.587,-2503.989,1037.838,0.000,-90.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,1999.430,-2503.988,1019.796,0.000,0.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2000.254,-2503.988,1024.494,0.000,-20.003,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2002.316,-2503.988,1028.924,0.000,-30.003,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2005.093,-2503.989,1032.910,0.000,-40.006,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2001.292,-2510.229,1032.135,49.999,180.000,-67.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,1999.536,-2510.958,1028.137,59.999,180.000,-67.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,1998.506,-2511.385,1023.963,69.999,180.000,-67.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,1998.281,-2511.479,1020.927,90.000,340.565,131.934,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2008.526,-2503.989,1036.358,0.000,-50.006,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2012.607,-2503.989,1037.838,0.000,-90.000,-179.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2013.490,-2516.229,1038.562,39.999,180.000,-22.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2018.333,-2505.770,1037.838,0.000,-90.000,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2005.494,-2518.607,1019.796,0.000,0.000,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2006.077,-2518.024,1024.494,0.000,-20.003,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2007.535,-2516.566,1028.924,0.000,-30.003,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2009.500,-2514.604,1032.910,0.000,-40.006,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2011.224,-2521.704,1032.135,49.999,180.000,-22.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2010.499,-2523.460,1028.137,60.000,180.000,-22.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2010.072,-2524.490,1023.963,69.999,180.000,-22.500,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2009.978,-2524.718,1020.927,90.000,486.811,30.687,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2011.927,-2512.177,1036.358,0.000,-50.006,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2014.812,-2509.291,1037.838,0.000,-90.000,-134.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2024.093,-2517.322,1038.562,39.999,180.000,22.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2020.121,-2506.501,1037.838,0.000,-90.000,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.119,-2524.657,1019.796,0.000,0.000,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.119,-2523.833,1024.494,0.000,-20.003,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.119,-2521.771,1028.924,0.000,-30.003,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.120,-2518.993,1032.910,0.000,-40.006,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(4848,2026.360,-2522.794,1032.135,49.999,180.000,22.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2027.090,-2524.551,1028.137,60.000,180.000,22.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(4848,2027.517,-2525.581,1023.963,69.999,180.000,22.499,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -65536);
- tmpobjid = CreateDynamicObjectEx(4848,2027.610,-2525.808,1020.927,90.000,347.505,-145.005,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 2, 3925, "weemap", "steel128", -16733441);
- tmpobjid = CreateDynamicObjectEx(18762,2020.121,-2515.561,1036.358,0.000,-50.006,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(18762,2020.120,-2511.480,1037.838,0.000,-90.000,-89.998,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 18808, "MatTextures", "ab_sheetSteel", -8224896);
- tmpobjid = CreateDynamicObjectEx(19482,2026.507,-2488.772,1029.893,-0.000,19.999,-112.500,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2013.881,-2488.703,1029.893,0.000,20.000,-67.500,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2004.904,-2497.581,1029.893,0.000,19.999,-22.499,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2004.835,-2510.207,1029.893,0.000,19.999,22.500,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2013.713,-2519.184,1029.893,0.000,19.999,67.500,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2026.339,-2519.253,1029.893,-0.000,19.999,112.499,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2035.316,-2510.375,1029.893,-0.000,19.999,157.499,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2035.386,-2497.749,1029.893,-0.000,19.999,-157.500,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "DEATH", 120, "Engravers MT", 50, 1, -36096, 0, 1);
- tmpobjid = CreateDynamicObjectEx(19482,2011.538,-2521.526,1019.148,0.000,0.000,67.500,300.000,300.000);
- SetDynamicObjectMaterialText(tmpobjid, 0, "Blast Gaming", 90, "Calibri", 50, 1, -16776961, 0, 0);
- tmpobjid = CreateDynamicObjectEx(13649,2019.879,-2503.926,1024.677,0.000,0.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 2707, "Shopping", "white", -5635841);
- SetDynamicObjectMaterial(tmpobjid, 1, 2707, "Shopping", "white", -16730113);
- tmpobjid = CreateDynamicObjectEx(13649,2019.879,-2503.926,1024.677,0.000,180.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, 2707, "Shopping", "white", -5635841);
- SetDynamicObjectMaterial(tmpobjid, 1, 2707, "Shopping", "white", -16730113);
- tmpobjid = CreateDynamicObjectEx(19447,2019.795,-2510.383,1025.101,0.000,-90.000,360.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19447,2019.934,-2497.571,1025.101,0.000,-90.000,360.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -16711936);
- tmpobjid = CreateDynamicObjectEx(19454,2004.314,-2503.831,1028.377,0.000,90.000,-179.999,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -6487809);
- tmpobjid = CreateDynamicObjectEx(19447,2010.456,-2504.155,1026.728,-19.800,-90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -6487809);
- tmpobjid = CreateDynamicObjectEx(19447,2019.606,-2504.114,1025.103,-0.000,-90.000,-90.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -6487809);
- tmpobjid = CreateDynamicObjectEx(19447,2020.614,-2504.112,1025.102,0.000,-90.000,450.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -6487809);
- tmpobjid = CreateDynamicObjectEx(19447,2029.764,-2504.071,1026.727,-19.800,-90.000,450.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -6487809);
- tmpobjid = CreateDynamicObjectEx(19454,2035.907,-2504.395,1028.376,0.000,90.000,0.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", -6487809);
- tmpobjid = CreateDynamicObjectEx(8064,2021.122,-2503.646,1014.287,0.000,0.000,45.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 1, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 2, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 3, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 4, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 5, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 6, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 7, -1, "none", "none", -65536);
- SetDynamicObjectMaterialText(tmpobjid, 7, "Blast RP", 130, "Ariel", 50, 0, -861401, 0, 1);
- tmpobjid = CreateDynamicObjectEx(8064,2020.330,-2504.439,1014.277,0.000,0.000,135.000,300.000,300.000);
- SetDynamicObjectMaterial(tmpobjid, 0, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 1, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 2, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 3, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 4, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 5, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 6, -1, "none", "none", 16711680);
- SetDynamicObjectMaterial(tmpobjid, 7, -1, "none", "none", -65536);
- SetDynamicObjectMaterialText(tmpobjid, 7, "*", 130, "Webdings", 250, 0, -65536, 0, 1);
- CreateDynamicObjectEx(3785,2020.133,-2490.700,1034.001,0.000,40.000,-90.000,300.000,300.000);
- CreateDynamicObjectEx(3785,2029.515,-2494.605,1034.001,0.000,40.000,-135.000,300.000,300.000);
- CreateDynamicObjectEx(3785,2010.738,-2494.572,1034.001,0.000,40.000,-45.000,300.000,300.000);
- CreateDynamicObjectEx(3785,2006.833,-2503.955,1034.001,0.000,40.000,0.000,300.000,300.000);
- CreateDynamicObjectEx(3785,2010.704,-2513.350,1034.001,0.000,39.999,44.999,300.000,300.000);
- CreateDynamicObjectEx(3785,2020.087,-2517.254,1034.001,0.000,39.999,89.999,300.000,300.000);
- CreateDynamicObjectEx(3785,2029.483,-2513.383,1034.001,0.000,39.999,134.998,300.000,300.000);
- CreateDynamicObjectEx(3785,2033.386,-2504.000,1034.001,0.000,39.999,179.998,300.000,300.000);
- CreateDynamicObject(3046, 2019.95740, -2504.51733, 1025.78174, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2019.95776, -2503.18164, 1025.78174, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2019.09753, -2503.86621, 1025.82898, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1370, 2020.81714, -2503.90942, 1025.82898, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2035.87830, -2508.25830, 1028.92908, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2035.67139, -2500.30640, 1028.92908, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2036.80786, -2504.22266, 1029.03516, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2004.32300, -2499.80615, 1028.92908, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2004.44971, -2507.93970, 1028.92908, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2003.61426, -2503.67114, 1028.94678, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2019.58643, -2517.83936, 1025.68835, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2033.29016, -2516.81543, 1025.73401, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1370, 2006.85559, -2516.90503, 1025.71448, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2020.13208, -2490.54395, 1025.66895, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2007.20435, -2491.36157, 1025.73779, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1370, 2033.21326, -2491.30640, 1025.72949, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2019.95776, -2503.18164, 1021.69019, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2020.80811, -2503.18384, 1021.69019, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2020.85645, -2503.95947, 1021.74164, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1370, 2020.09241, -2503.97705, 1021.74164, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2036.46167, -2504.17505, 1021.70935, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2036.46594, -2505.32861, 1021.60718, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1370, 2036.72827, -2502.68213, 1021.70892, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2004.22693, -2503.86230, 1021.63062, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(1370, 2004.19336, -2502.79224, 1021.58350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1370, 2004.06921, -2505.17090, 1021.58350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3046, 2025.43042, -2486.03613, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2016.49072, -2485.58569, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2009.02893, -2488.94067, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2003.61841, -2496.91626, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2002.31458, -2503.28516, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2004.49255, -2511.51563, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2011.56750, -2518.15308, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2021.07129, -2519.97705, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2032.47534, -2516.50098, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2036.72192, -2507.66772, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2035.76440, -2497.09277, 1018.14587, 88.31999, 159.60011, 0.06000);
- CreateDynamicObject(3046, 2034.40771, -2490.12305, 1018.14587, 88.31999, 159.60011, 0.06000);
- // Lance's PD precinct
- CreateDynamicObject(19375, 1176.07593, 2967.45361, 1005.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1176.10046, 2977.08643, 1005.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1165.60327, 2977.08789, 1005.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1165.65308, 2967.45776, 1005.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19459, 1181.26221, 2977.08496, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1181.26465, 2967.54541, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1177.46033, 2962.68115, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 1163.31531, 2962.71460, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 1160.42664, 2967.42578, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1160.41748, 2976.96411, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1165.15625, 2981.73145, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 1174.67639, 2981.72485, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 1184.17712, 2981.71606, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19375, 1170.48901, 2957.86401, 1005.00000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19459, 1172.72400, 2957.93140, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1168.03784, 2957.91675, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1170.08887, 2953.24390, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1569, 1169.56274, 2953.29077, 1005.08002, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19459, 1165.23718, 2970.07520, 1004.70001, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 1165.23718, 2970.07520, 1009.70001, 180.00000, 0.00000, 90.00000);
- CreateDynamicObject(19367, 1171.64258, 2970.08008, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19395, 1174.82263, 2970.07056, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19459, 1181.13208, 2970.08228, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19466, 1161.35913, 2970.04126, 1007.34003, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19466, 1163.59998, 2970.04126, 1007.34003, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19466, 1165.83850, 2970.04126, 1007.34003, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19466, 1168.07800, 2970.04126, 1007.34003, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19466, 1170.31750, 2970.04126, 1007.34003, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14782, 1180.85974, 2978.05103, 1006.09998, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(19459, 1171.98706, 2981.23315, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19395, 1171.98779, 2974.85229, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19367, 1171.98804, 2971.72559, 1006.84003, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1491, 1172.02026, 2974.10376, 1005.08759, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2308, 1171.50635, 2971.66748, 1005.05219, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(2165, 1169.56494, 2970.62231, 1005.05219, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(2173, 1167.65430, 2970.61377, 1005.05219, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(2165, 1165.70471, 2970.62915, 1005.05219, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(2605, 1163.28162, 2970.60107, 1005.45221, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(2605, 1161.33521, 2970.59888, 1005.45221, 0.00000, 0.00000, -180.00000);
- CreateDynamicObject(19459, 1160.87830, 2977.27051, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19367, 1170.47473, 2977.27441, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19395, 1167.28467, 2977.26294, 1006.84003, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1491, 1166.49780, 2977.22241, 1005.08759, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19927, 1160.92114, 2978.28662, 1005.06909, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19929, 1160.91284, 2980.65259, 1005.06909, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2047, 1174.76099, 2969.98535, 1008.12482, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 1178.59448, 2963.02026, 1005.08643, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 1177.79883, 2962.97876, 1005.08643, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 1176.90430, 2962.95288, 1005.08643, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1721, 1175.99622, 2962.96875, 1005.08643, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(15038, 1168.38647, 2962.97925, 1005.72479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(15038, 1172.41187, 2962.98267, 1005.72479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(15038, 1171.82385, 2953.85596, 1005.72479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(15038, 1168.83313, 2953.89648, 1005.72479, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(949, 1180.60376, 2969.46118, 1005.70477, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(949, 1180.57983, 2963.21875, 1005.70477, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(949, 1174.97852, 2963.19727, 1005.70477, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1368, 1166.18311, 2963.29126, 1005.72583, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1368, 1163.67834, 2963.29004, 1005.72583, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1368, 1161.15735, 2963.29614, 1005.72583, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(19375, 1170.48901, 2957.86401, 1008.56000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1164.67249, 2967.45386, 1008.56000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1175.16931, 2967.48071, 1008.56000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1185.52429, 2967.10181, 1008.56000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1177.09534, 2976.88574, 1008.56097, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1183.30237, 2967.30371, 1008.56097, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1167.99890, 2977.00098, 1008.56000, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(19375, 1160.65125, 2976.96875, 1008.56097, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(3383, 1171.03064, 2979.52710, 1005.00751, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2111, 1164.27051, 2980.22656, 1005.42810, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2310, 1163.45593, 2981.12622, 1005.52777, 0.00000, 0.00000, 95.28001);
- CreateDynamicObject(2310, 1165.69580, 2981.12256, 1005.52777, 0.00000, 0.00000, 33.60000);
- CreateDynamicObject(2310, 1165.66040, 2979.60254, 1005.52777, 0.00000, 0.00000, -30.60000);
- CreateDynamicObject(2310, 1162.94324, 2979.87158, 1005.52777, 0.00000, 0.00000, -169.73999);
- CreateDynamicObject(2858, 1164.16418, 2980.44897, 1005.84161, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(11722, 1164.06812, 2979.98315, 1005.96167, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2684, 1170.73547, 2980.51831, 1006.06183, 90.00000, 90.00000, 25.62000);
- CreateDynamicObject(2684, 1171.07263, 2979.43823, 1006.06183, 90.00000, 90.00000, 3.24000);
- CreateDynamicObject(2684, 1170.87488, 2978.35693, 1006.06183, 90.00000, 90.00000, -49.44001);
- CreateDynamicObject(2612, 1176.34570, 2981.56006, 1006.88849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2611, 1174.42090, 2981.58496, 1006.88849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2615, 1178.58582, 2981.57178, 1006.88849, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19273, 1173.49268, 2970.00049, 1006.60028, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19273, 1176.24414, 2970.13599, 1006.60028, 0.00000, 0.00000, -180.00000);
-
- //vip hq
- CreateDynamicObject(4571, -4107.36963, 919.73480, -61.92410, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14623, -4107.36914, 939.01758, 7.64760, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3586, -4107.38525, 878.55334, 5.56740, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(12814, -4042.93237, 869.06372, 2.08650, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4718, -4147.46582, 949.30847, 2.08420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(4718, -4084.54346, 949.28674, 2.07507, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(4718, -4102.82568, 949.31830, 46.78777, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(4718, -4111.38135, 864.16669, -46.89890, 0.00000, -90.00000, -90.00000);
- CreateDynamicObject(4718, -4037.99902, 911.03381, -46.89890, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(4718, -4037.99902, 834.62567, -46.90090, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(4718, -4101.44238, 956.49524, 2.08420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(4718, -4018.39233, 867.96863, -46.90090, 0.00000, -90.00000, 0.00000);
- CreateDynamicObject(7191, -4100.42920, 870.12292, 8.92840, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(7191, -4100.42920, 870.12292, 7.89130, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(7191, -4100.42725, 866.15967, 8.92640, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(7191, -4100.38916, 862.23901, 8.92840, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(7191, -4100.42725, 866.17157, 7.89330, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(7191, -4100.42920, 862.24127, 7.89130, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(4718, -4171.40576, 867.72980, 2.08420, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(4718, -4029.41235, 847.51825, 2.08420, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(4718, -4043.58032, 815.17560, 2.08420, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(7191, -4055.50806, 866.19098, 8.92640, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(4718, -3991.66870, 888.40497, 2.46820, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(4718, -4087.67505, 866.26453, -52.75532, 0.00000, -90.00000, -90.00000);
- CreateDynamicObject(7191, -4079.90259, 894.18683, 8.92640, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4083.83936, 894.18683, 8.92440, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4087.79004, 894.18683, 8.92440, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4091.75952, 894.18683, 8.92440, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(3586, -4103.29395, 876.66431, 12.40820, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2774, -4100.37695, 872.16199, 14.23030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4110.17627, 872.18427, 14.23030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4093.80444, 872.13379, 14.23034, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4121.61523, 872.16199, 14.23030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4093.80396, 899.42358, 14.23030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, -4104.18066, 872.16199, 5.87858, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(8650, -4116.39648, 872.16199, 2.77176, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, -4110.82324, 872.16125, 5.87860, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, -4117.46436, 872.16199, 5.87860, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(7191, -4091.75952, 894.18683, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4083.83936, 894.18683, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4087.79004, 894.18683, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4079.90259, 894.18683, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(8650, -4093.80396, 877.24359, 2.77180, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4093.76782, 892.64288, 14.23030, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4093.34595, 887.92285, 7.90950, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(19325, -4093.70483, 888.59723, 5.87860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, -4093.70532, 881.99701, 5.87860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, -4093.70483, 875.38782, 5.87860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, -4093.70483, 868.94000, 5.87860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19325, -4093.69946, 864.06244, 5.87860, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4082.87500, 892.64288, -4.15761, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(2774, -4082.87500, 872.16199, -4.15760, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32495, 909.64679, 7.90950, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32300, 879.27844, 7.90950, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(18755, -4123.99316, 896.74854, 4.02201, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1472, -4063.04297, 894.30615, 2.42425, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1472, -4071.56177, 894.31531, 2.42425, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1479, -4076.38647, 871.71216, -1.43191, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14387, -4075.43213, 869.89307, 0.79860, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14387, -4075.36621, 874.38690, -0.93837, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(4718, -4091.66431, 813.53546, 2.08420, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(7191, -4132.53271, 871.75641, 14.94630, 0.00000, 180.00000, -90.00000);
- CreateDynamicObject(4718, -4065.01880, 958.98871, 14.81181, 0.00000, 180.00000, -90.00000);
- CreateDynamicObject(2714, -4098.97217, 862.31451, 11.88760, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(7191, -4054.89380, 890.19427, 8.92440, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4050.99658, 890.19427, 8.92240, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4047.06543, 890.19427, 8.92440, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4043.15259, 890.19427, 8.92240, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4039.50903, 890.19427, 8.92440, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4054.89380, 890.19427, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4050.99658, 890.19427, 7.89530, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4047.06543, 890.19427, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4043.15259, 890.19427, 7.89530, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4039.50903, 890.19427, 7.89330, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(8650, -4056.50073, 885.39587, 8.97549, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4056.50000, 883.41528, 8.97750, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2624, -4112.86035, 869.65045, 10.57560, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1499, -4109.98828, 865.92236, 9.03140, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(7191, -4109.49561, 860.05225, 30.50070, -90.00000, 0.00000, -90.00000);
- CreateDynamicObject(19129, -4039.93677, 896.85388, 9.06869, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4051.62671, 908.67572, 9.57640, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18766, -4052.42749, 898.32123, 8.94943, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(18766, -4054.15552, 898.31946, 9.06500, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(19129, -4046.47949, 900.28864, 17.88647, 0.00000, 90.00000, -90.00000);
- CreateDynamicObject(19129, -4040.68066, 891.42493, 17.87383, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(3851, -4056.55908, 896.47980, 11.99300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4056.55908, 885.16669, 11.99300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4056.55908, 873.91888, 11.99300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4056.55908, 896.47980, 15.97290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4056.55908, 885.16669, 15.97290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4056.55908, 873.91888, 15.97290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2774, -4056.08472, 867.57520, 20.98083, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(7191, -4055.50806, 866.19098, 7.89330, 0.00000, 90.00000, 90.00000);
- CreateDynamicObject(8650, -4093.34595, 856.21698, 7.90950, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4108.58789, 871.71899, 7.90950, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(8650, -4062.76123, 867.79468, 7.90550, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(8650, -4033.06494, 867.79669, 7.90350, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(1698, -4055.12451, 894.28955, 9.02141, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1698, -4055.12451, 894.28955, 9.23395, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1698, -4055.12598, 893.78101, 9.02140, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14582, -4047.70190, 876.39954, 12.47358, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, -4046.75220, 873.95807, 16.67067, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19129, -4046.74219, 893.94092, 16.67067, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4056.50073, 885.39587, 17.67220, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4056.49487, 872.71503, 17.67420, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(14787, -4085.19653, 901.68860, 9.01888, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(10632, -4108.30127, 860.17181, 17.90101, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(2068, -4117.52197, 866.99475, 15.23386, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18102, -4053.01318, 900.72668, 9.94430, 90.00000, 0.00000, 180.00000);
- CreateDynamicObject(18102, -4040.17163, 895.49939, 10.65927, 90.00000, 0.00000, 90.00000);
- CreateDynamicObject(2799, -4055.38330, 885.46112, 9.51640, 0.00000, 0.00000, 28.00000);
- CreateDynamicObject(2799, -4055.43726, 882.34778, 9.51640, 0.00000, 0.00000, 28.00000);
- CreateDynamicObject(2799, -4055.41064, 888.34619, 9.51640, 0.00000, 0.00000, 28.00000);
- CreateDynamicObject(2725, -4050.58594, 884.62933, 9.41210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2725, -4051.13550, 887.80011, 9.41210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2725, -4046.93921, 884.14667, 9.41210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2725, -4043.93213, 883.85132, 9.41210, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(12814, -4092.23291, 835.07678, 12.70020, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(12814, -4096.47754, 834.94452, 12.69820, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(983, -4097.23779, 871.95972, 9.65230, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(982, -4093.46851, 885.78296, 9.61249, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1798, -4054.18066, 887.18866, 1.71060, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1798, -4054.19287, 890.24878, 1.71060, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1798, -4054.20850, 883.96820, 1.71060, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1255, -4052.40405, 879.03528, 2.48533, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1255, -4052.41968, 876.82794, 2.48533, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1255, -4052.30786, 874.55560, 2.48533, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1645, -4046.67090, 889.81238, 2.31150, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1645, -4046.72095, 887.14063, 2.31150, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1645, -4046.74634, 884.34741, 2.31150, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1645, -4046.85181, 881.93512, 2.31150, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(16151, -4041.69604, 870.41382, 2.41241, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(16151, -4047.54492, 865.27838, 2.41240, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(649, -4043.34204, 892.87073, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(649, -4043.23267, 889.80133, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(649, -4043.24121, 886.27753, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(649, -4043.11938, 882.16370, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(649, -4043.50317, 878.14575, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(649, -4050.08032, 892.71716, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(649, -4055.62573, 892.64807, 2.09070, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32300, 885.39587, 8.97550, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32690, 883.41418, 8.97350, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32300, 885.39587, 17.67220, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32593, 872.71234, 17.67420, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(3851, -4078.32300, 896.47980, 11.99300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4078.32300, 885.16669, 11.99300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4078.32300, 873.91888, 11.99300, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4078.32300, 873.91888, 15.97290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4078.32300, 885.16669, 15.97290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3851, -4078.32300, 896.47980, 15.97290, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(984, -4071.73682, 868.09967, 9.58910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(984, -4071.73682, 868.09967, 9.58910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(984, -4062.13257, 868.09650, 9.58910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2774, -4078.32300, 867.57520, 20.98080, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18756, -4120.15186, 896.80042, 4.03846, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18757, -4120.15186, 896.80042, 4.03850, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2627, -4079.82861, 899.02655, 9.02409, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2627, -4081.62134, 899.04431, 9.02409, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2627, -4083.18579, 899.03046, 9.02409, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2627, -4084.76855, 898.99500, 9.02409, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14782, -4089.66748, 899.81622, 9.97268, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14401, -4090.30859, 894.45947, 9.01942, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2628, -4087.40210, 895.38525, 9.02410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2628, -4087.40601, 893.57855, 9.02410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2630, -4079.75879, 894.75342, 9.02410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2630, -4079.75708, 893.25079, 9.02410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2630, -4079.80078, 891.83710, 9.02410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2629, -4087.31885, 891.32806, 9.02410, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(12814, -4063.65625, 877.54572, 18.54460, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(14629, -4062.00269, 895.96973, 17.68047, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14629, -4061.92358, 887.67365, 17.68047, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(7191, -4103.26270, 905.26727, 14.75318, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4103.26270, 905.26727, 15.75217, 0.00000, 90.00000, 180.00000);
- CreateDynamicObject(7191, -4095.79419, 894.96375, 15.75220, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4099.41699, 894.96368, 15.74820, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4107.22266, 894.96368, 15.74820, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4110.91650, 894.95972, 15.74420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4114.81982, 894.95972, 15.74020, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4118.75684, 894.95972, 15.74420, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4122.61328, 894.96368, 15.73963, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4107.22266, 894.96368, 14.75320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4110.91650, 894.95972, 14.75520, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4118.75684, 894.95972, 14.75520, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4114.81982, 894.95972, 14.75320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4122.61328, 894.96368, 14.75320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4095.79419, 894.96368, 14.75520, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4099.41699, 894.96368, 14.75320, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(8650, -4094.19897, 887.78369, 14.72669, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4109.49854, 872.51270, 14.72670, 0.00000, 180.00000, 90.00000);
- CreateDynamicObject(8650, -4109.47998, 872.47949, 16.83298, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(12814, -4093.52441, 880.01648, 19.60783, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32446, 872.71100, 19.87490, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(8650, -4078.32129, 885.39679, 19.87490, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(3437, -4091.99829, 887.04504, 1.98189, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(6965, -4107.38525, 892.35498, 2.08600, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14629, -4098.74756, 898.52307, 13.89730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14629, -4117.54590, 898.52307, 13.89730, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2946, -4105.68750, 907.47699, 2.09540, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2946, -4108.87061, 907.47699, 2.09540, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(7313, -4092.43848, 883.14044, 6.72102, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1698, -4091.34570, 884.81268, 2.08597, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1698, -4091.34644, 881.53082, 2.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1698, -4092.70581, 881.53168, 2.08400, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1698, -4092.70581, 884.81268, 2.08600, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, -4090.55054, 881.33160, 2.62176, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2773, -4090.54028, 884.79321, 2.62176, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3437, -4091.99829, 879.34161, 1.98190, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(14642, -4088.33936, 872.27478, 6.94890, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, -4087.83838, 871.53436, 2.89022, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2785, -4087.84033, 872.43781, 2.88820, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(1716, -4085.83325, 873.70837, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4086.74951, 873.75171, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4087.59253, 873.70514, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4088.47339, 873.66339, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4089.27808, 873.66882, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4089.21582, 870.76727, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4088.42480, 870.77112, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4087.57227, 870.78644, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4086.61865, 870.75128, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1716, -4085.76807, 870.72675, 2.08720, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(8650, -4109.47852, 872.48108, 19.05010, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(12814, -4107.98877, 847.10565, 15.64780, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(7191, -4105.43896, 870.45984, 17.68241, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(12814, -4092.99951, 846.79486, 30.64454, 0.00000, 90.00000, 0.00000);
- CreateDynamicObject(7191, -4105.43896, 918.40277, 17.68240, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1502, -4105.41797, 892.56812, 15.82490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1502, -4105.46338, 895.60272, 15.82490, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(7191, -4105.44092, 873.58282, 20.28799, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(12814, -4104.76904, 879.59381, 19.60980, 0.00000, 180.00000, 0.00000);
- CreateDynamicObject(7191, -4112.94385, 881.44312, 17.68241, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2564, -4110.29004, 873.77521, 15.83940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2564, -4110.31836, 879.97717, 15.83940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2564, -4110.34131, 886.39795, 15.83940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2564, -4110.38672, 892.96368, 15.83940, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2020, -4106.51367, 891.14349, 15.84420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2020, -4106.51367, 888.35492, 15.84420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2020, -4106.51367, 885.55408, 15.84420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2020, -4106.51367, 882.73389, 15.84420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2020, -4106.51367, 879.37659, 15.84420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2020, -4106.51367, 876.10022, 15.84420, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(982, -4093.95874, 885.77063, 16.42232, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1709, -4099.69189, 874.27100, 15.84720, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1709, -4095.52808, 878.86511, 15.84720, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1825, -4095.48120, 885.27197, 15.84756, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1825, -4095.54297, 889.84302, 15.84756, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1825, -4095.66577, 894.47076, 15.84756, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(984, -4101.31934, 876.77130, 16.42230, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2236, -4098.52881, 874.82446, 15.84320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2236, -4098.54980, 876.89935, 15.84320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2236, -4095.58496, 875.35162, 15.84320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2236, -4095.58521, 877.57605, 15.84320, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2251, -4096.21338, 878.13593, 17.19023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2251, -4096.23389, 875.87341, 17.19023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2251, -4099.17529, 877.39160, 17.19023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2251, -4099.16162, 875.31012, 17.19023, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(7191, -4109.98730, 869.43048, 30.50070, -90.00000, 0.00000, 180.00000);
- CreateDynamicObject(2206, -4052.51416, 893.97430, 9.56630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(2206, -4052.56274, 897.67834, 9.56630, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14820, -4052.54590, 898.65417, 10.50260, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(14820, -4052.52344, 894.93909, 10.50260, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(2232, -4050.74292, 893.85236, 10.12936, 0.00000, 0.00000, 52.00000);
- CreateDynamicObject(2232, -4050.74292, 893.85236, 11.30278, 0.00000, 0.00000, 52.00000);
- CreateDynamicObject(2232, -4050.39063, 899.19092, 11.24647, 0.00000, 0.00000, 84.00000);
- CreateDynamicObject(2232, -4050.39014, 899.18817, 10.09021, 0.00000, 0.00000, 84.00000);
- CreateDynamicObject(1840, -4051.75098, 893.74512, 10.69250, 0.00000, 0.00000, -32.00000);
- CreateDynamicObject(1840, -4051.76709, 896.13678, 10.69250, 0.00000, 0.00000, 11.00000);
- CreateDynamicObject(1840, -4051.80420, 897.29883, 10.69250, 0.00000, 0.00000, -40.00000);
- CreateDynamicObject(1840, -4051.59814, 899.84601, 10.69250, 0.00000, 0.00000, 40.00000);
- CreateDynamicObject(4718, -4068.50757, 949.28796, 2.07507, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1538, -4101.61865, 900.21143, 15.80280, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19176, -4122.32324, 866.96027, 3.54490, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(7191, -4109.98730, 863.93640, 30.50070, -90.00000, 0.00000, 0.00000);
- CreateDynamicObject(14782, -4121.90479, 868.24420, 9.95740, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, -4114.22803, 871.91095, 10.91909, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(19325, -4120.86963, 871.91089, 10.91910, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(14782, -4119.34473, 862.90399, 9.95740, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(14401, -4117.48486, 867.79327, 9.23580, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(14782, -4113.17139, 862.88110, 9.95740, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(7191, -4109.98926, 866.63348, 33.66086, -90.00000, 0.00000, 0.00000);
-
- // All Saints Hospital & Los Santos Police Department Addons
- CreateDynamicObject(970, 1270.25769, -1327.16003, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1270.17920, -1348.46558, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(982, 1283.76160, -1290.83423, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.19824, -1307.50830, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.19849, -1311.64807, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.21936, -1315.82825, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.22046, -1320.02930, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.20386, -1324.19202, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.18982, -1328.31433, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.19214, -1332.49524, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.19458, -1336.63513, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.21643, -1340.75586, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1287.19702, -1344.85571, 18.30000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1257, 1268.95337, -1322.62122, 13.50000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1257, 1268.76099, -1352.95166, 13.50000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.55811, -1306.66882, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.55737, -1309.29700, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.55713, -1311.97754, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.56714, -1314.63794, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.57678, -1317.22278, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.57166, -1319.88257, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.57275, -1322.57593, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.57336, -1325.23145, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.54272, -1327.90051, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.54089, -1330.56702, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.54089, -1333.22876, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.55371, -1335.90967, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.58667, -1338.60901, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.57874, -1341.26941, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.59009, -1343.95032, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1287.57971, -1345.51147, 18.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.73816, -1334.13208, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.63391, -1333.33850, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.66614, -1332.38220, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.63391, -1333.33850, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.65796, -1331.16895, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1178.63391, -1333.33850, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.66614, -1332.38220, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.87390, -1330.60889, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1178.63391, -1333.33850, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.66614, -1332.38220, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.65796, -1331.16895, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1177.23975, -1330.64233, 13.40000, 0.00000, 0.00000, -0.90000);
- CreateDynamicObject(870, 1178.63391, -1333.33850, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.66919, -1332.40198, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1178.55627, -1316.46777, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1178.87390, -1330.60889, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1175.79919, -1330.62488, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.43567, -1330.45337, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.41772, -1332.27783, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.43567, -1330.45337, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1175.53137, -1332.40723, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.43567, -1330.45337, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.41772, -1332.27783, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1176.41064, -1333.36414, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.43567, -1330.45337, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.41772, -1332.27783, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1175.53137, -1332.40723, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1176.38049, -1334.07751, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.43567, -1330.45337, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.41772, -1332.27783, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1175.53137, -1332.40723, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1176.41064, -1333.36414, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.36462, -1334.13000, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1176.60278, -1334.20496, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.68103, -1333.31140, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1176.60278, -1334.20496, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1174.68103, -1333.31140, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1177.30029, -1334.13538, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1177.11060, -1332.28247, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1177.30029, -1334.13538, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1178.74133, -1330.93298, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1178.87390, -1330.60889, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1179.01025, -1316.68127, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1178.80151, -1315.56702, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1179.01025, -1316.68127, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1178.55627, -1316.46777, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1178.83447, -1316.78845, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1178.89856, -1314.96228, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1178.55627, -1316.46777, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1177.29565, -1316.86841, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1178.76672, -1315.68835, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1176.86646, -1315.16113, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1178.99329, -1313.27759, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1178.41357, -1313.30017, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1178.41357, -1313.30017, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1178.50464, -1316.61841, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1178.50464, -1316.61841, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1177.87781, -1316.92590, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1176.09375, -1316.83508, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1177.87781, -1316.92590, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1175.11621, -1316.91296, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1174.39697, -1316.94080, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1175.31433, -1315.32422, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1174.39697, -1316.94080, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1175.11621, -1316.91296, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1174.39697, -1316.94080, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1176.72546, -1314.04883, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1177.11133, -1313.17383, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1176.72546, -1314.04883, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1175.82556, -1313.04358, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1176.72546, -1314.04883, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1177.11133, -1313.17383, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1173.96338, -1313.01624, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1176.72546, -1314.04883, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1177.11133, -1313.17383, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1175.82556, -1313.04358, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1174.02454, -1314.57446, 13.40000, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(870, 1176.72546, -1314.04883, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1177.11133, -1313.17383, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1175.82556, -1313.04358, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1174.95337, -1314.27930, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1174.02454, -1314.57446, 13.40000, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(870, 1176.72546, -1314.04883, 13.40000, 0.00000, 0.00000, -0.54000);
- CreateDynamicObject(870, 1177.11133, -1313.17383, 13.40000, 0.00000, 0.00000, -0.60000);
- CreateDynamicObject(870, 1174.75110, -1313.22461, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1173.96338, -1313.01624, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1174.02454, -1314.57446, 13.40000, 0.00000, 0.00000, -0.36000);
- CreateDynamicObject(870, 1174.95337, -1314.27930, 13.40000, 0.00000, 0.00000, -0.42000);
- CreateDynamicObject(870, 1178.85706, -1314.40295, 13.40000, 0.00000, 0.00000, -1.14000);
- CreateDynamicObject(627, 1176.71509, -1328.63074, 14.80000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1176.63843, -1318.99744, 14.80000, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(627, 1172.01685, -1328.50183, 16.20000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1172.08984, -1318.99792, 16.20000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1181.23865, -1328.68542, 14.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1181.24573, -1318.80164, 14.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19786, 1172.83130, -1327.09338, 25.94065, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(19786, 1172.83130, -1327.09338, 25.94065, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1181.95056, -1341.79736, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1179.49316, -1341.79407, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1179.09900, -1341.81189, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1178.56409, -1341.80640, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1177.95630, -1341.78223, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1177.43298, -1341.76355, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1176.85266, -1341.78943, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1176.19019, -1341.78149, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1181.48938, -1341.76929, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1180.94409, -1341.79395, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1180.41467, -1341.79517, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1179.95605, -1341.74182, 17.54690, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(3802, 1176.34241, -1305.89246, 18.34330, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3802, 1177.11877, -1305.92358, 18.34330, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3802, 1177.72607, -1305.89893, 18.34330, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3802, 1178.42566, -1305.91968, 18.34330, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(970, 1182.03455, -1344.55542, 18.90000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1182.02209, -1348.73950, 18.90000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1182.03699, -1352.26001, 18.90000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1179.91980, -1354.30408, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1175.75757, -1354.30286, 18.90000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(970, 1179.91980, -1354.30408, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1171.61584, -1354.34094, 18.90000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(970, 1179.92236, -1342.49377, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1175.76147, -1342.49329, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1171.57800, -1342.49207, 18.90000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.57385, -1341.10608, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.56836, -1338.40515, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.56311, -1335.72400, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.57861, -1333.08276, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.57300, -1330.38257, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.58655, -1327.66077, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.58118, -1324.97949, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.55786, -1322.37891, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.52576, -1319.69885, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.53308, -1317.01770, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.52747, -1314.35742, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.53784, -1311.65747, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.53540, -1308.97620, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.53784, -1311.65747, 18.93310, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1175.53430, -1306.29578, 18.93310, 0.00000, 0.00000, -0.30000);
- CreateDynamicObject(618, 1177.39612, -1332.97729, 12.55674, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(618, 1177.35901, -1315.68774, 12.55674, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1182.78455, -1342.89795, 17.54690, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1182.82153, -1343.51831, 17.54690, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1182.80249, -1344.13855, 17.54690, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1182.79590, -1344.81873, 17.54690, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1182.75037, -1345.45728, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.79785, -1346.13660, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.80676, -1346.95630, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.81543, -1347.73621, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.80676, -1346.95630, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.80005, -1348.47620, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.79736, -1349.23706, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.80005, -1348.47620, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.75391, -1350.03625, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.74841, -1350.89722, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.75708, -1351.67786, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.75952, -1352.39844, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.74341, -1353.05872, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.73169, -1353.53833, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1182.73425, -1354.24243, 17.54690, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3515, 1177.66650, -1361.30396, 13.10028, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18014, 1181.70044, -1362.83667, 13.60000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18014, 1181.69958, -1359.63611, 13.60000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18014, 1179.02881, -1357.66455, 13.60000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18014, 1176.43079, -1357.67639, 13.60000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18014, 1174.45703, -1360.35583, 13.60000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18014, 1174.47095, -1362.81409, 13.60000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(18014, 1177.18201, -1364.75098, 13.60000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(18014, 1179.36194, -1364.78809, 13.60000, 0.00000, 0.00000, 90.06000);
- CreateDynamicObject(1231, 1174.02246, -1366.85059, 15.60000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1231, 1173.77441, -1354.96899, 15.60000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(618, 1175.04211, -1364.58582, 12.55674, 0.00000, 0.00000, 2.58000);
- CreateDynamicObject(618, 1175.28528, -1359.03906, 12.55674, 0.00000, 0.00000, 2.58000);
- CreateDynamicObject(618, 1180.44507, -1359.07471, 12.55674, 0.00000, 0.00000, 2.58000);
- CreateDynamicObject(618, 1180.43457, -1364.79919, 12.55674, 0.00000, 0.00000, 2.58000);
- CreateDynamicObject(870, 1183.19031, -1344.32422, 13.40000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1183.96399, -1343.83337, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1184.05115, -1345.37000, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1183.10046, -1345.76697, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1182.79626, -1347.49988, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1183.10046, -1345.76697, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1184.08362, -1346.43091, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1183.10046, -1345.76697, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1182.79626, -1347.49988, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1184.22742, -1347.85510, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1183.10046, -1345.76697, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1182.79578, -1347.51990, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1184.08362, -1346.43091, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1183.04199, -1348.84595, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1184.18311, -1348.85425, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1183.04199, -1348.84595, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1182.66260, -1350.41711, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1183.90820, -1350.22803, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1182.66260, -1350.41711, 13.40000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1182.67883, -1352.15771, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.02856, -1351.77112, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1182.67883, -1352.15771, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.09937, -1350.53271, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.12622, -1349.47314, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.18066, -1347.31335, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.18066, -1347.31335, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.18066, -1347.31335, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.20862, -1346.27417, 13.40000, 0.00000, 0.00000, 0.24000);
- CreateDynamicObject(870, 1184.18066, -1347.31335, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.10889, -1344.67114, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1184.20862, -1346.27417, 13.40000, 0.00000, 0.00000, 0.24000);
- CreateDynamicObject(870, 1184.04565, -1343.93469, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1182.56506, -1343.99329, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1183.94019, -1344.54663, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(870, 1182.82581, -1353.44214, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1183.97974, -1353.73096, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1182.82581, -1353.44214, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1184.10278, -1352.81665, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1184.12122, -1354.55884, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1182.04260, -1355.76208, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1183.93005, -1356.08801, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1182.04260, -1355.76208, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1182.95508, -1357.72571, 13.40000, 0.00000, 0.00000, 4.56000);
- CreateDynamicObject(870, 1181.22864, -1355.16467, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1181.79431, -1356.39185, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1183.98938, -1357.87256, 13.40000, 0.00000, 0.00000, 4.56000);
- CreateDynamicObject(870, 1184.09827, -1356.79651, 13.40000, 0.00000, 0.00000, 4.56000);
- CreateDynamicObject(870, 1184.08325, -1355.79504, 13.40000, 0.00000, 0.00000, 4.56000);
- CreateDynamicObject(870, 1184.08325, -1355.79504, 13.40000, 0.00000, 0.00000, 4.56000);
- CreateDynamicObject(870, 1181.79431, -1356.39185, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1180.22363, -1356.14014, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1178.83325, -1355.89722, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1178.83325, -1355.89722, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1177.10901, -1356.05420, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1178.83325, -1355.89722, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1175.54651, -1356.13525, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1174.58105, -1355.53149, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1174.58105, -1355.53149, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.81348, -1356.75159, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.14954, -1359.23401, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.05823, -1360.43652, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.16406, -1361.32886, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.05823, -1360.43652, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.03943, -1362.26135, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1172.96887, -1363.72607, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1173.92773, -1366.09302, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1175.55823, -1366.02136, 13.40000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1173.92773, -1366.09302, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1177.13818, -1366.14502, 13.40000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1173.92773, -1366.09302, 13.40000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1175.55823, -1366.02136, 13.40000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1178.46606, -1366.32568, 13.40000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1179.70178, -1366.30969, 13.40000, 0.00000, 0.00000, 0.66000);
- CreateDynamicObject(870, 1178.46606, -1366.32568, 13.40000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1181.02563, -1366.24622, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1178.46606, -1366.32568, 13.40000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1179.70178, -1366.30969, 13.40000, 0.00000, 0.00000, 0.66000);
- CreateDynamicObject(870, 1182.12012, -1366.22900, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1178.46606, -1366.32568, 13.40000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1179.70178, -1366.30969, 13.40000, 0.00000, 0.00000, 0.66000);
- CreateDynamicObject(870, 1181.02563, -1366.24622, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1183.27991, -1366.21191, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1184.05701, -1366.16345, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1184.15173, -1364.73450, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1183.08875, -1364.09497, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1183.07251, -1362.97498, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1183.99500, -1363.50464, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1184.22729, -1362.50269, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1183.02905, -1361.33972, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1184.20544, -1361.64307, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1182.81909, -1359.90833, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.20544, -1361.64307, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1184.00977, -1360.51111, 13.40000, 0.00000, 0.00000, 0.60000);
- CreateDynamicObject(870, 1184.04871, -1359.04919, 13.40000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1180.12195, -1363.18054, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1180.21008, -1361.52026, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1180.12195, -1363.18054, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1180.05908, -1359.94080, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1178.85583, -1359.50903, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1177.59497, -1359.45740, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1179.67322, -1359.12256, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1178.68140, -1363.20959, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1177.22058, -1363.16589, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1178.68140, -1363.20959, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1175.48022, -1363.38245, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1178.68140, -1363.20959, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1177.22058, -1363.16589, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1175.62585, -1361.65955, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1176.08398, -1359.40552, 13.40000, 0.00000, 0.00000, 0.72000);
- CreateDynamicObject(870, 1175.95996, -1358.91052, 13.40000, 0.00000, 0.00000, 0.78000);
- CreateDynamicObject(970, 1185.79932, -1365.39795, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1185.80640, -1361.23682, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1185.82153, -1357.07556, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1185.81665, -1352.89490, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1185.79968, -1348.72717, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1185.80652, -1344.58569, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1183.72791, -1342.48596, 13.70000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1184.18396, -1343.90869, 13.40000, 0.00000, 0.00000, 0.06000);
- CreateDynamicObject(3802, 1179.90417, -1305.15735, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.93652, -1304.51685, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.90417, -1305.15735, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.91895, -1303.85559, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.21240, -1305.85864, 18.34330, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(3802, 1179.93201, -1303.25549, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.91760, -1302.67712, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.92883, -1301.98560, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.91553, -1301.38318, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.91284, -1300.68188, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.92261, -1299.98132, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.91260, -1299.28088, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.92334, -1298.64050, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.90503, -1298.04041, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.90625, -1297.41992, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.90991, -1296.87952, 18.34330, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1179.90723, -1296.25977, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.91455, -1295.63660, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.92322, -1295.07629, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.91687, -1294.41504, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.92407, -1293.89148, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.92944, -1293.25623, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.93945, -1292.64026, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.92944, -1293.25623, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.92834, -1292.00354, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1179.90942, -1291.38342, 18.34330, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(970, 1181.36096, -1305.17847, 13.70000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1183.54541, -1305.23291, 13.70000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1185.65686, -1303.10388, 13.70000, 0.00000, 0.00000, 89.50200);
- CreateDynamicObject(970, 1185.69250, -1298.95801, 13.70000, 0.00000, 0.00000, 89.70000);
- CreateDynamicObject(970, 1185.70532, -1294.84009, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1185.73804, -1292.83752, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1183.66663, -1290.76160, 13.70000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1181.34521, -1290.79236, 13.70000, 0.00000, 0.00000, 0.99600);
- CreateDynamicObject(870, 1181.59705, -1303.31104, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1180.34204, -1303.42114, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1182.89917, -1303.53918, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1181.59705, -1303.31104, 13.40000, 0.00000, 0.00000, -1.26000);
- CreateDynamicObject(870, 1183.96301, -1303.55042, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1184.10620, -1302.16846, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1184.08289, -1301.24121, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1182.94287, -1301.31531, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1181.94373, -1301.26477, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1180.87976, -1301.37244, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1180.14282, -1301.24976, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1180.06714, -1303.72888, 13.40000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1180.28735, -1299.13293, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1180.06714, -1303.72888, 13.40000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1181.70740, -1299.17627, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1182.80591, -1299.26990, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1182.73584, -1297.62671, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1181.61072, -1297.11182, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1180.29395, -1296.97144, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1180.28088, -1295.42993, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1181.96130, -1295.46118, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1183.38293, -1295.44446, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1183.96790, -1295.96289, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1184.04541, -1300.49927, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1184.15955, -1295.11609, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1183.38293, -1295.44446, 13.40000, 0.00000, 0.00000, -1.20000);
- CreateDynamicObject(870, 1184.00842, -1293.97815, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1184.05994, -1293.11768, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1184.00842, -1293.97815, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1182.08838, -1293.99744, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1180.56641, -1293.79199, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1179.97668, -1292.87817, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1181.35742, -1292.90430, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1182.61743, -1292.91187, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1183.26526, -1292.78137, 13.40000, 0.00000, 0.00000, -1.32000);
- CreateDynamicObject(870, 1183.75671, -1292.33801, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(1256, 1178.36145, -1328.60803, 13.70000, 0.00000, 0.00000, -90.00000);
- CreateDynamicObject(1256, 1178.37549, -1318.96472, 13.70000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.53198, -1653.49475, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.52637, -1657.67908, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.52368, -1661.87854, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.50122, -1666.07800, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.49292, -1670.25806, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.50598, -1697.69312, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.50793, -1693.51318, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.50757, -1689.37280, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.48083, -1685.23218, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1539.45654, -1681.09167, 13.10000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(717, 1548.66821, -1656.80481, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1548.48767, -1665.70105, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1544.82690, -1665.69336, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1544.82446, -1656.76233, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(1257, 1523.62207, -1671.20923, 13.60000, 0.00000, 0.00000, -900.00000);
- CreateDynamicObject(717, 1544.66809, -1685.31628, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1544.67090, -1694.62122, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1548.67749, -1694.56714, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1548.67810, -1685.30225, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1546.90698, -1661.14050, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(717, 1546.82568, -1689.90015, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1543.60803, -1657.59546, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1543.59949, -1661.75928, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1543.59839, -1664.92261, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1545.68164, -1667.00330, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1547.77612, -1667.01233, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1549.85022, -1664.92505, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1549.85925, -1660.74622, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1549.84900, -1657.58533, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1547.74585, -1655.50623, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1545.70398, -1655.52893, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1543.59045, -1686.32507, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1543.58679, -1690.47070, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1543.59778, -1693.61169, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1545.67578, -1695.69543, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1547.75586, -1695.72412, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1549.85132, -1693.63684, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1549.85388, -1689.45483, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1549.85596, -1686.29431, 13.40000, 0.00000, 0.00000, 90.00000);
- CreateDynamicObject(970, 1547.75415, -1684.22681, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(970, 1545.68652, -1684.20288, 13.40000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(2942, 1545.70532, -1650.45593, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.89331, -1652.76099, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.89160, -1655.44092, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.88940, -1658.08142, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.89893, -1660.72180, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.88953, -1663.40576, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.88452, -1666.08618, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.87720, -1668.78784, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.88245, -1670.96716, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.85522, -1680.35266, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.86096, -1683.03345, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.86670, -1685.71387, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.83191, -1688.37488, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.84485, -1691.03772, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.84521, -1693.71753, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.85608, -1696.41748, 13.12000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(638, 1539.85461, -1698.49902, 13.13000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(3802, 1542.57422, -1650.05005, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.52917, -1649.39233, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.50476, -1648.73169, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.50977, -1648.08142, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.48486, -1647.43860, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.48193, -1646.82178, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.49438, -1646.22217, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.50024, -1645.55737, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.51660, -1644.87708, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.54724, -1644.17651, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.53918, -1643.48584, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.53284, -1642.80469, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.52661, -1642.12341, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.53430, -1641.45667, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.50122, -1640.77637, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.48914, -1640.18298, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.52905, -1639.48425, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.48071, -1638.87830, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.46069, -1638.23792, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(870, 1542.22522, -1637.93140, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.57666, -1637.79443, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.03516, -1637.78967, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.57666, -1637.79443, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.02026, -1639.18726, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.57666, -1637.79443, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1543.89893, -1637.94336, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.76941, -1639.75000, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.57666, -1637.79443, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.03467, -1637.76978, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.28198, -1639.28320, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.09644, -1640.36719, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.57666, -1637.79443, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.05505, -1637.78955, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.07910, -1639.12622, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.76941, -1639.75000, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.83936, -1640.86719, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.94421, -1642.02722, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1541.02356, -1641.69250, 13.10000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1541.94421, -1642.02722, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1540.92310, -1642.83301, 13.10000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1540.92310, -1642.83301, 13.10000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1542.23633, -1643.31006, 13.10000, 0.00000, 0.00000, 0.30000);
- CreateDynamicObject(870, 1541.75024, -1644.01868, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.95459, -1643.76392, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1541.75024, -1644.01868, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1541.00256, -1645.28467, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1542.18103, -1645.66016, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1542.22546, -1645.28271, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1542.18640, -1646.80823, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.96545, -1646.40234, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.85327, -1647.69800, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.96777, -1648.57654, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.85327, -1647.69800, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1541.08350, -1649.53491, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.85327, -1647.69800, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1540.96777, -1648.57654, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1542.22852, -1648.57593, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1542.38293, -1649.45374, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1541.03467, -1637.76978, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1543.07861, -1637.95642, 13.10000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1543.88293, -1649.45544, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1546.44336, -1685.98096, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1548.03467, -1686.65039, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1546.58679, -1687.85535, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1548.16467, -1688.22461, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1548.21350, -1690.16431, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1548.21362, -1691.94592, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1548.26074, -1692.54431, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1546.92029, -1692.10425, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.53430, -1691.98645, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.45374, -1686.66541, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.53174, -1688.38342, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.45374, -1686.66541, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.49121, -1689.70605, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.13196, -1691.06384, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.31909, -1692.97754, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1546.61255, -1694.14026, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.42749, -1687.10645, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1546.87024, -1686.18823, 13.10000, 0.00000, 0.00000, 0.48000);
- CreateDynamicObject(870, 1546.48364, -1657.52856, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1547.10205, -1657.45105, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1548.38562, -1658.97522, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1546.61426, -1659.28528, 13.10000, 0.00000, 0.00000, 0.36000);
- CreateDynamicObject(870, 1545.37219, -1657.83838, 13.10000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1545.16235, -1659.68481, 13.10000, 0.00000, 0.00000, 0.42000);
- CreateDynamicObject(870, 1545.06909, -1661.40820, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1545.05798, -1663.16882, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1544.01208, -1701.77832, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1547.13940, -1661.06824, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1548.08704, -1660.60095, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1548.28223, -1662.57593, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1546.86267, -1662.61584, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1548.28223, -1662.57593, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1546.41418, -1660.16711, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1548.03967, -1663.96204, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1546.73755, -1665.34033, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1545.45996, -1664.05505, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(627, 1539.25342, -1672.11646, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1539.08081, -1679.27466, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1545.77393, -1678.80737, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1545.82349, -1672.53467, 14.30000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1554.76099, -1673.29114, 17.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(627, 1554.72571, -1678.01953, 17.00000, 0.00000, 0.00000, 0.00000);
- CreateDynamicObject(870, 1545.45996, -1664.05505, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1542.67273, -1701.72351, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1541.42432, -1701.79492, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1542.03040, -1703.42200, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1541.42432, -1701.79492, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1540.81079, -1701.63965, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1540.57056, -1701.67773, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1540.57117, -1703.35864, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1542.03040, -1703.42200, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1542.17358, -1705.35669, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1540.59473, -1705.28479, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1540.59473, -1705.28479, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1541.84143, -1707.22046, 13.10000, 0.00000, 0.00000, 0.18000);
- CreateDynamicObject(870, 1540.48145, -1707.28516, 13.10000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1542.25757, -1708.96863, 13.10000, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(870, 1540.48145, -1707.28516, 13.10000, 0.00000, 0.00000, 0.12000);
- CreateDynamicObject(870, 1540.49878, -1709.04565, 13.10000, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(870, 1542.39392, -1710.68689, 13.10000, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(870, 1540.65039, -1710.50305, 13.10000, 0.00000, 0.00000, -0.06000);
- CreateDynamicObject(870, 1542.21338, -1712.49048, 13.10000, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(870, 1540.52808, -1712.22522, 13.10000, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(870, 1542.45276, -1714.34631, 13.10000, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(870, 1540.58752, -1714.10522, 13.10000, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(870, 1544.16785, -1714.09106, 13.10000, 0.00000, 0.00000, -0.18000);
- CreateDynamicObject(3802, 1542.49084, -1701.14917, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.49707, -1701.87061, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.50488, -1702.57300, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.51257, -1703.25391, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.49329, -1703.92737, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.52209, -1704.66772, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.53625, -1705.28845, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.51282, -1705.95959, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.48840, -1706.56042, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.46655, -1707.24207, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.50623, -1707.86011, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.51453, -1708.47876, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.51404, -1709.77588, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.49377, -1709.14148, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.54236, -1710.41663, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.51294, -1711.09753, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.53528, -1711.70044, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.52771, -1712.30579, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.52710, -1712.97058, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(3802, 1542.53955, -1713.57349, 17.65120, 0.00000, 0.00000, 180.00000);
- CreateDynamicObject(2942, 1546.91040, -1650.47314, 13.10000, 0.00000, 0.00000, 0.00000);
-
- // miner mappings
- CreateDynamicObject(3214,1277.7990700,-1258.8350800,20.9226000,0.0000000,0.0000000,-90.0000000); //
- CreateDynamicObject(17033,1233.7236300,-1266.4901100,11.7162000,0.0000000,0.0000000,-48.0000000); //
- CreateDynamicObject(899,1260.1379400,-1261.4006300,6.3516000,-15.0000000,0.0000000,-50.0000000); //
- CreateDynamicObject(901,1235.7368200,-1251.2432900,13.9622000,12.0000000,-35.0000000,132.0000000); //
- CreateDynamicObject(898,1255.8817100,-1245.7943100,13.5716000,0.0000000,25.0000000,-30.0000000); //
- CreateDynamicObject(8873,1246.2618400,-1244.5792200,18.2100000,0.0000000,0.0000000,-50.0000000); //
- CreateDynamicObject(8874,1244.8524200,-1250.6547900,19.0376000,0.0000000,0.0000000,-50.0000000); //
- CreateDynamicObject(8873,1228.6597900,-1260.4421400,18.2900000,0.0000000,0.0000000,55.0000000); //
- CreateDynamicObject(8874,1234.8278800,-1260.3496100,19.1776000,0.0000000,0.0000000,55.0000000); //
- CreateDynamicObject(8873,1246.4541000,-1265.2119100,18.2100000,0.0000000,0.0000000,155.0000000); //
- CreateDynamicObject(8874,1245.2639200,-1259.1793200,19.0376000,0.0000000,0.0000000,515.0000000); //
- CreateDynamicObject(3929,1242.1699200,-1252.1143800,13.2249000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(3929,1245.5736100,-1252.2762500,11.9449000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(3929,1242.3726800,-1261.6992200,12.2649000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(3929,1243.8170200,-1251.3470500,11.9649000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(3929,1244.7651400,-1250.2681900,11.9449000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(3929,1240.8890400,-1262.1449000,13.0649000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(3929,1240.0146500,-1261.3233600,12.2649000,0.0000000,0.0000000,0.0200000); //
- CreateDynamicObject(897,1271.5629900,-1245.9299300,12.5316000,0.0000000,25.0000000,-55.0000000); //
- CreateDynamicObject(3722,1257.9979200,-1234.4896200,18.1781000,0.0000000,0.0000000,90.0000000); //
- CreateDynamicObject(5153,1250.2524400,-1234.6562500,14.9548000,90.0000000,113.8000000,90.0000000); //
- CreateDynamicObject(5153,1250.2823500,-1238.0561500,14.9748000,90.0000000,113.8000000,90.0000000); //
- CreateDynamicObject(3722,1279.3949000,-1241.6052200,15.1981000,0.0000000,0.0000000,0.0000000); //
-
-
-
- CM = CreateActor(90, 36.805793,1.408629,467.086883, 91.63);
- //Create3DTextLabel("Jason Slayer", COLOR_ORANGE, 2128.2251,-1776.7285,14.5580, 10.0, 0, 0);
- TW = CreateActor(294, 2128.176513, -1775.101318, 13.558402, 89.94);
- Create3DTextLabel("Dustin Corman", COLOR_ORANGE, 2128.176513,-1775.101318,14.558402, 10.0, 0, 0);
- FW = CreateActor(294, 1309.271362,-1369.367919,19.000312, 86.89);
- //Create3DTextLabel("Aira Salvador", COLOR_ORANGE, 2128.227539, -1773.333618, 14.558834, 10.0, 0, 0);
- HM = CreateActor(2, 2126.507324,-1775.125122,13.558396, 89.74);
- Create3DTextLabel("Howard McAdam", COLOR_ORANGE, 2126.507324,-1775.125122,13.558396, 10.0, 0, 0);
- JP = CreateActor(294, 2128.197753,-1771.971801,13.559165, 89.74);
- Create3DTextLabel("Paolo Villaflor", COLOR_ORANGE, 2128.197753,-1771.971801,13.559165, 10.0, 0, 0);
- RDR = CreateActor(60, 1809.292846,-1907.967773,13.571975, 92.73);
- //Create3DTextLabel("Ronald_Dela_Rosa", COLOR_ORANGE, 2128.224604,-1777.788085,13.557745, 10.0, 0, 0);
- //JS = CreateActor(174, 2128.227050,-1777.152954,13.557901, 86.21);
- //Create3DTextLabel("John Smithy", COLOR_ORANGE, 2128.227050,-1777.152954,13.557901, 10.0, 0, 0);
- ApplyActorAnimation(CM, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
- ApplyActorAnimation(TW, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- ApplyActorAnimation(FW, "DANCING", "DAN_Right_A", 4.0, 1, 0, 0, 0, 0);
- ApplyActorAnimation(HM, "BEACH", "Lay_Bac_Loop", 4.0, 1, 0, 0, 0, 0);
- ApplyActorAnimation(JP, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- //ApplyActorAnimation(JS, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- //ApplyActorAnimation(RDR, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- SetActorInvulnerable(CM, true);
- SetActorInvulnerable(TW, true);
- SetActorInvulnerable(FW, true);
- SetActorInvulnerable(HM, true);
- SetActorInvulnerable(JP, true);
- SetActorInvulnerable(RDR, true);
- //SetActorInvulnerable(JS, true);
- LockTD = TextDrawCreate(260.000030, 149.333312, "VEHICLE LOCKED");
- TextDrawLetterSize(LockTD, 0.315600, 1.921064);
- TextDrawAlignment(LockTD, 1);
- TextDrawColor(LockTD, COLOR_RED);
- TextDrawSetShadow(LockTD, 0);
- TextDrawSetOutline(LockTD, 1);
- TextDrawBackgroundColor(LockTD, 51);
- TextDrawFont(LockTD, 2);
- TextDrawSetProportional(LockTD, 1);
-
- Text0 = TextDrawCreate(577.687011, 2.333317, "Serenity");
- TextDrawLetterSize(Text0, 0.201683, 1.454166);
- TextDrawAlignment(Text0, 1);
- TextDrawColor(Text0, -1);
- TextDrawSetShadow(Text0, 0);
- TextDrawSetOutline(Text0, 1);
- TextDrawBackgroundColor(Text0, 51);
- TextDrawFont(Text0, 3);
- TextDrawSetProportional(Text0, 1);
-
-
- // Blood Effects
- Blood[0] = TextDrawCreate(86.666648, 121.814811, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[0], 0.000000, 0.000000);
- TextDrawTextSize(Blood[0], 24.000000, 34.000000);
- TextDrawAlignment(Blood[0], 1);
- TextDrawColor(Blood[0], -1);
- TextDrawSetShadow(Blood[0], 0);
- TextDrawSetOutline(Blood[0], 0);
- TextDrawBackgroundColor(Blood[0], 255);
- TextDrawFont(Blood[0], 4);
- TextDrawSetProportional(Blood[0], 0);
- TextDrawSetShadow(Blood[0], 0);
- Blood[1] = TextDrawCreate(477.333312, 246.674102, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[1], 0.000000, 0.000000);
- TextDrawTextSize(Blood[1], 36.000000, 41.000000);
- TextDrawAlignment(Blood[1], 1);
- TextDrawColor(Blood[1], -1);
- TextDrawSetShadow(Blood[1], 0);
- TextDrawSetOutline(Blood[1], 0);
- TextDrawBackgroundColor(Blood[1], 255);
- TextDrawFont(Blood[1], 4);
- TextDrawSetProportional(Blood[1], 0);
- TextDrawSetShadow(Blood[1], 0);
- Blood[2] = TextDrawCreate(24.000041, 249.992660, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[2], 0.000000, 0.000000);
- TextDrawTextSize(Blood[2], 70.000000, 57.000000);
- TextDrawAlignment(Blood[2], 1);
- TextDrawColor(Blood[2], -1);
- TextDrawSetShadow(Blood[2], 0);
- TextDrawSetOutline(Blood[2], 0);
- TextDrawBackgroundColor(Blood[2], 255);
- TextDrawFont(Blood[2], 4);
- TextDrawSetProportional(Blood[2], 0);
- TextDrawSetShadow(Blood[2], 0);
- Blood[3] = TextDrawCreate(546.333374, 323.414916, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[3], 0.000000, 0.000000);
- TextDrawTextSize(Blood[3], 70.000000, 57.000000);
- TextDrawAlignment(Blood[3], 1);
- TextDrawColor(Blood[3], -1);
- TextDrawSetShadow(Blood[3], 0);
- TextDrawSetOutline(Blood[3], 0);
- TextDrawBackgroundColor(Blood[3], 255);
- TextDrawFont(Blood[3], 4);
- TextDrawSetProportional(Blood[3], 0);
- TextDrawSetShadow(Blood[3], 0);
- Blood[4] = TextDrawCreate(276.666717, 340.007568, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[4], 0.000000, 0.000000);
- TextDrawTextSize(Blood[4], 70.000000, 57.000000);
- TextDrawAlignment(Blood[4], 1);
- TextDrawColor(Blood[4], -1);
- TextDrawSetShadow(Blood[4], 0);
- TextDrawSetOutline(Blood[4], 0);
- TextDrawBackgroundColor(Blood[4], 255);
- TextDrawFont(Blood[4], 4);
- TextDrawSetProportional(Blood[4], 0);
- TextDrawSetShadow(Blood[4], 0);
- Blood[5] = TextDrawCreate(442.666748, 12.718672, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[5], 0.000000, 0.000000);
- TextDrawTextSize(Blood[5], 17.000000, 25.000000);
- TextDrawAlignment(Blood[5], 1);
- TextDrawColor(Blood[5], -1);
- TextDrawSetShadow(Blood[5], 0);
- TextDrawSetOutline(Blood[5], 0);
- TextDrawBackgroundColor(Blood[5], 255);
- TextDrawFont(Blood[5], 4);
- TextDrawSetProportional(Blood[5], 0);
- TextDrawSetShadow(Blood[5], 0);
- Blood[6] = TextDrawCreate(201.666732, 16.866807, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[6], 0.000000, 0.000000);
- TextDrawTextSize(Blood[6], 48.000000, 49.000000);
- TextDrawAlignment(Blood[6], 1);
- TextDrawColor(Blood[6], -1);
- TextDrawSetShadow(Blood[6], 0);
- TextDrawSetOutline(Blood[6], 0);
- TextDrawBackgroundColor(Blood[6], 255);
- TextDrawFont(Blood[6], 4);
- TextDrawSetProportional(Blood[6], 0);
- TextDrawSetShadow(Blood[6], 0);
- Blood[7] = TextDrawCreate(117.000106, 148.777893, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[7], 0.000000, 0.000000);
- TextDrawTextSize(Blood[7], 127.000000, 70.000000);
- TextDrawAlignment(Blood[7], 1);
- TextDrawColor(Blood[7], -1);
- TextDrawSetShadow(Blood[7], 0);
- TextDrawSetOutline(Blood[7], 0);
- TextDrawBackgroundColor(Blood[7], 255);
- TextDrawFont(Blood[7], 4);
- TextDrawSetProportional(Blood[7], 0);
- TextDrawSetShadow(Blood[7], 0);
- Blood[8] = TextDrawCreate(428.666717, 118.911254, "particle:bloodpool_64");
- TextDrawLetterSize(Blood[8], 0.000000, 0.000000);
- TextDrawTextSize(Blood[8], 59.000000, 50.000000);
- TextDrawAlignment(Blood[8], 1);
- TextDrawColor(Blood[8], -1);
- TextDrawSetShadow(Blood[8], 0);
- TextDrawSetOutline(Blood[8], 0);
- TextDrawBackgroundColor(Blood[8], 255);
- TextDrawFont(Blood[8], 4);
- TextDrawSetProportional(Blood[8], 0);
- TextDrawSetShadow(Blood[8], 0);
- // Damage Informer Textdraw
- for(new i; i < MAX_PLAYERS; ++i)
- {
- Damage[i] = TextDrawCreate(198.000015, 382.874114, "Damage: You were shot by");
- TextDrawLetterSize(Damage[i], 0.213333, 1.110517);
- TextDrawAlignment(Damage[i], 1);
- TextDrawColor(Damage[i], -1);
- TextDrawSetShadow(Damage[i], 0);
- TextDrawSetOutline(Damage[i], 1);
- TextDrawBackgroundColor(Damage[i], 51);
- TextDrawFont(Damage[i], 1);
- TextDrawSetProportional(Damage[i], 1);
- }
-
- // Maximus Club
- CreateObject(19700, 1062.70215, -1713.99854, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1062.71533, -1726.45984, -25.05750, -0.06000, -0.18000, 0.00000);
- CreateObject(19700, 1062.71729, -1738.83984, -25.05750, -0.24000, 0.06000, 0.00000);
- CreateObject(19700, 1062.68494, -1701.54578, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1100.13525, -25.05750, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1075.17737, -1701.51099, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1075.19531, -1713.99976, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1075.20752, -1726.27234, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1075.21533, -1738.73975, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1071.77075, -1726.56909, -24.43840, 0.00000, 0.00000, 90.00000);
- CreateObject(19128, 1070.73987, -1724.45422, -24.95720, 0.00000, 0.00000, 0.00000);
- CreateObject(19128, 1066.82031, -1724.43420, -24.95720, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1068.75073, -1726.66479, -24.43840, 0.00000, 0.00000, 90.06000);
- CreateObject(2773, 1065.79065, -1726.68616, -24.43840, 0.00000, 0.00000, 90.00000);
- CreateObject(19128, 1066.80029, -1720.49426, -24.95720, 0.00000, 0.00000, 0.00000);
- CreateObject(19128, 1070.73987, -1720.49414, -24.95720, 0.00000, 0.00000, 0.00000);
- CreateObject(19128, 1070.75989, -1716.53418, -24.95720, 0.00000, 0.00000, 0.00000);
- CreateObject(19128, 1066.76038, -1716.53430, -24.95720, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1068.75073, -1714.38757, -24.43840, 0.00000, 0.00000, 90.00000);
- CreateObject(2773, 1065.79065, -1714.38757, -24.43840, 0.00000, 0.00000, 90.00000);
- CreateObject(2773, 1071.77075, -1714.38757, -24.43840, 0.00000, 0.00000, 90.00000);
- CreateObject(643, 1062.09375, -1723.91687, -24.13690, 0.00000, 0.00000, 0.00000);
- CreateObject(643, 1061.78955, -1720.15894, -24.13690, 0.00000, 0.00000, 6.24000);
- CreateObject(643, 1061.70874, -1716.41345, -24.13690, 0.00000, 0.00000, 0.00000);
- CreateObject(19400, 1084.95642, -1723.64294, -23.24140, 0.00000, 0.00000, 0.00000);
- CreateObject(19400, 1084.95642, -1726.82288, -23.24140, 0.00000, 0.00000, 0.00000);
- CreateObject(19400, 1084.95642, -1729.98291, -23.24140, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1720.46057, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1717.30066, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1714.18054, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1707.90063, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1733.17004, -23.24450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1736.34998, -23.24450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1739.52991, -23.24450, 0.00000, 0.06000, 0.00000);
- CreateObject(19354, 1084.95642, -1742.70996, -23.24450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1742.70996, -23.24450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1739.52991, -23.24450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1736.34998, -23.24450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1733.17004, -23.24450, 0.00000, 0.00000, -0.06000);
- CreateObject(19400, 1056.55640, -1729.98291, -23.24140, 0.00000, 0.00000, 0.00000);
- CreateObject(19400, 1056.55640, -1726.82288, -23.24140, 0.00000, 0.00000, 0.00000);
- CreateObject(19400, 1056.55640, -1723.64294, -23.24140, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1720.46057, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1717.30066, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1714.18054, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1711.10059, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1707.90063, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19786, 1085.07642, -1730.03247, -23.70080, 0.00000, 0.00000, -90.00000);
- CreateObject(19786, 1085.07642, -1730.03247, -22.48080, 0.00000, 0.00000, -90.00000);
- CreateObject(19786, 1085.07642, -1726.85254, -22.48080, 0.00000, 0.00000, -90.00000);
- CreateObject(19786, 1085.07642, -1723.59253, -22.48080, 0.00000, 0.00000, -90.00000);
- CreateObject(19786, 1085.07642, -1723.59253, -23.70080, 0.00000, 0.00000, -90.00000);
- CreateObject(19786, 1085.07642, -1726.85254, -23.70080, 0.00000, 0.00000, -90.00000);
- CreateObject(19786, 1056.45605, -1723.59253, -22.48080, 0.00000, 0.00000, 90.00000);
- CreateObject(19786, 1056.45605, -1723.59253, -23.70080, 0.00000, 0.00000, 90.00000);
- CreateObject(19786, 1056.45605, -1726.77246, -23.70080, 0.00000, 0.00000, 90.00000);
- CreateObject(19786, 1056.45605, -1726.77246, -22.48080, 0.00000, 0.00000, 90.00000);
- CreateObject(19786, 1056.45605, -1730.11255, -23.70080, 0.00000, 0.00000, 90.00000);
- CreateObject(19786, 1056.45605, -1730.11255, -22.48150, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 2442.76147, -10428.56836, -5246.53711, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1076.62061, -1744.24463, -23.23890, 0.00000, 0.00000, -90.00000);
- CreateObject(19446, 1067.08057, -1744.24463, -23.23890, 0.00000, 0.00000, -90.00000);
- CreateObject(19446, 1057.62061, -1744.24463, -23.23890, 0.00000, 0.00000, -90.00000);
- CreateObject(19446, 1084.95642, -1701.52734, -23.24080, 0.00000, 0.00000, 0.12000);
- CreateObject(19446, 1056.55640, -1701.52734, -23.24080, 0.00000, 0.00000, 0.06000);
- CreateObject(14416, 1075.88782, -1711.12427, -24.67840, 0.00000, 0.00000, -90.00000);
- CreateObject(19354, 1084.95642, -1711.12061, -23.24080, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1074.49646, -1713.00061, -23.22080, 0.00000, 0.00000, -90.00000);
- CreateObject(19354, 1077.19641, -1713.02063, -23.22080, 0.00000, 0.00000, -90.12000);
- CreateObject(19446, 1077.68140, -1709.19482, -23.23920, 0.00000, 0.00000, 90.06000);
- CreateObject(19446, 1060.44104, -1709.19482, -23.23920, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1054.82104, -1709.19482, -23.23920, 0.00000, 0.00000, 90.00000);
- CreateObject(19360, 1058.19727, -1710.87366, -21.55790, 0.00000, 90.00000, 0.00000);
- CreateObject(19360, 1058.19727, -1714.05359, -21.55790, 0.00000, 90.00000, 0.00000);
- CreateObject(19360, 1058.19727, -1717.23364, -21.55790, 0.00000, 90.00000, 0.00000);
- CreateObject(19360, 1058.19727, -1720.43359, -21.55790, 0.00000, 90.06000, 0.00000);
- CreateObject(19360, 1058.19727, -1723.61365, -21.55790, 0.00000, 90.00000, 0.00000);
- CreateObject(19360, 1058.19727, -1726.77356, -21.55790, 0.00000, 90.00000, 0.00000);
- CreateObject(19354, 1078.41602, -1709.48059, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19354, 1078.41602, -1712.56055, -23.24080, 0.02000, 0.00000, 0.00000);
- CreateObject(19360, 1710.54736, -1710.81616, -21.57570, 0.00000, 90.00000, 0.00000);
- CreateObject(19354, 1079.96094, -1714.06018, -23.27600, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1084.95642, -1736.34998, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1733.17004, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1729.98291, -19.88450, 0.06000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1726.82288, -19.88450, 0.00000, 0.12000, 0.00000);
- CreateObject(19354, 1084.95642, -1723.64294, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1720.46057, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1717.30066, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1714.18054, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1085.03137, -1707.83740, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1085.03137, -1698.31738, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1056.55640, -1698.31738, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1056.55640, -1707.83740, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1714.18054, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1717.30066, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1720.46057, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1723.64294, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1726.82288, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1729.98291, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1733.17004, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1736.34998, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1056.55640, -1739.52991, -19.88450, 0.00000, 0.00000, 0.06000);
- CreateObject(19354, 1056.55640, -1742.70996, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(1704, 1084.37830, -1715.47705, -24.95460, 0.00000, 0.00000, -90.00000);
- CreateObject(1704, 1084.37830, -1719.11707, -24.95460, 0.00000, 0.00000, -90.00000);
- CreateObject(1704, 1084.37830, -1722.65710, -24.95460, 0.00000, 0.00000, -90.00000);
- CreateObject(1704, 1084.37830, -1726.09705, -24.95460, 0.00000, 0.00000, -90.00000);
- CreateObject(2229, 1084.94604, -1728.11511, -24.86670, 0.00000, 0.00000, -90.00000);
- CreateObject(2229, 1084.94604, -1721.55505, -24.86670, 0.00000, 0.06000, -90.00000);
- CreateObject(2229, 1084.88599, -1714.89514, -24.86670, 0.00000, 0.00000, -90.00000);
- CreateObject(3533, 1077.05334, -1713.91199, -20.91920, 0.00000, 0.00000, -0.42000);
- CreateObject(19354, 1058.15649, -1713.00061, -23.22080, 0.00000, 0.00000, -90.00000);
- CreateObject(19354, 1061.19653, -1713.00061, -23.22080, 0.00000, 0.00000, -90.00000);
- CreateObject(19354, 1063.65649, -1713.00061, -23.22080, 0.00000, 0.00000, -90.00000);
- CreateObject(14416, 1061.80127, -1711.00281, -24.67840, 0.00000, 0.00000, 90.00000);
- CreateObject(3533, 1061.24817, -1713.91199, -20.91920, 0.00000, 0.00000, -0.42000);
- CreateObject(14608, 1069.20435, -1707.88684, -23.84200, 0.00000, 0.00000, 135.00000);
- CreateObject(3858, 1069.50830, -1709.27515, -24.39810, 0.00000, 0.00000, 45.00000);
- CreateObject(19376, 1076.48755, -1704.00537, -21.54070, 0.00000, 90.00000, 90.36000);
- CreateObject(19376, 1066.94763, -1704.00537, -21.54070, 0.00000, 90.00000, 90.00000);
- CreateObject(19376, 1057.34766, -1704.00537, -21.54070, 0.00000, 90.00000, 89.94000);
- CreateObject(19360, 1058.20557, -1697.09546, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1061.40564, -1697.09546, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1064.60559, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1067.78564, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1070.94556, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1074.12561, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1077.32556, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19360, 1080.54565, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19354, 1056.54565, -1695.13989, -23.23780, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1084.95642, -1695.16736, -23.24080, 0.00000, 0.00000, 0.00000);
- CreateObject(19608, 1069.04761, -1707.07849, -21.49580, 0.00000, 0.00000, 0.00000);
- CreateObject(2315, 1068.27893, -1708.94775, -21.44720, 0.00000, 0.00000, 0.00000);
- CreateObject(14820, 1068.99915, -1708.88513, -20.95610, 0.00000, 0.00000, 0.00000);
- CreateObject(2232, 1067.13574, -1708.91309, -20.88730, 0.00000, 0.00000, 0.00000);
- CreateObject(2232, 1065.97571, -1708.91309, -20.88730, 0.00000, 0.00000, 0.00000);
- CreateObject(2232, 1071.01575, -1708.91309, -20.88730, 0.00000, 0.00000, 0.00000);
- CreateObject(2232, 1072.27576, -1708.91309, -20.88730, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1061.44714, -1695.39539, -23.31910, 0.00000, 0.00000, 90.06000);
- CreateObject(19446, 1070.88721, -1695.39539, -23.31910, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1080.20715, -1695.39539, -23.31910, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1069.16724, -1705.75537, -23.31910, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1072.94629, -1707.48669, -23.35540, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1065.12634, -1707.48669, -23.35540, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1074.50085, -1704.72205, -19.87540, 0.00000, 0.00000, 90.00000);
- CreateObject(19384, 1083.68506, -1704.71106, -19.87380, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1064.92090, -1704.72205, -19.85540, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1055.54089, -1704.72205, -19.85540, 0.00000, 0.00000, 90.00000);
- CreateObject(19128, 1071.02795, -1704.77356, -20.15610, 90.00000, 0.00000, 0.00000);
- CreateObject(19128, 1067.04810, -1704.77356, -20.15610, 90.00000, 0.00000, 0.00000);
- CreateObject(1491, 1082.89319, -1704.72217, -21.61330, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1080.20715, -1695.39539, -19.87540, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1070.88721, -1695.39539, -19.87540, 0.00000, 0.00000, 90.00000);
- CreateObject(19446, 1061.44714, -1695.39539, -19.87540, 0.00000, 0.00000, 90.06000);
- CreateObject(11729, 1074.81885, -1700.75293, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(11729, 1074.81885, -1700.07288, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(11729, 1074.81885, -1699.41284, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(11729, 1074.81885, -1698.79285, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1055.54089, -1704.68201, -19.85540, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1064.92090, -1704.68201, -19.85540, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1074.50085, -1704.68201, -19.85540, 0.00000, 0.06000, 90.00000);
- CreateObject(19391, 1083.67957, -1704.68005, -19.86430, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1056.65149, -1699.75415, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19454, 1084.95642, -1699.97974, -19.88450, 0.00000, 0.00000, 0.12000);
- CreateObject(19454, 1061.47705, -1695.41711, -19.87540, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1070.88721, -1695.41711, -19.87540, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1080.20715, -1695.41711, -19.87540, 0.00000, 0.00000, 90.00000);
- CreateObject(19454, 1074.61218, -1696.94922, -20.94450, 0.00000, 0.00000, 0.00000);
- CreateObject(11729, 1074.81885, -1698.15283, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(11729, 1074.81885, -1697.53284, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(11729, 1074.81885, -1696.89282, -21.45520, 0.00000, 0.00000, 90.00000);
- CreateObject(11729, 1074.32141, -1700.73474, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1074.32141, -1700.09473, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1074.32141, -1699.47473, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1074.32141, -1698.81470, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1074.32141, -1698.19470, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11730, 1074.28101, -1697.55554, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11730, 1074.28101, -1696.91565, -21.46550, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1084.62952, -1697.24854, -21.50910, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1084.62952, -1697.86853, -21.50910, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1084.62952, -1698.52844, -21.50910, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1084.62952, -1699.18848, -21.50910, 0.00000, 0.00000, -90.00000);
- CreateObject(11729, 1084.62939, -1699.84851, -21.50910, 0.00000, 0.00000, -90.00000);
- CreateObject(11730, 1084.63428, -1700.48889, -21.50440, 0.00000, 0.00000, -90.00000);
- CreateObject(2063, 1072.03528, -1704.33167, -20.71500, 0.00000, 0.00000, 0.00000);
- CreateObject(19454, 1064.82544, -1699.81018, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(2063, 1068.53528, -1704.33167, -20.71500, 0.00000, 0.00000, 0.00000);
- CreateObject(358, 1069.04968, -1704.25244, -19.89070, -84.00000, 55.00000, 237.00000);
- CreateObject(358, 1068.00964, -1704.17236, -19.87070, -84.00000, 55.00000, 237.00000);
- CreateObject(358, 1068.00964, -1704.31226, -20.32270, -84.00000, 55.00000, 235.00000);
- CreateObject(358, 1069.04968, -1704.31238, -20.32270, -84.00000, 55.00000, 235.00000);
- CreateObject(358, 1069.04968, -1704.37256, -20.75670, -84.00000, 55.00000, 235.00000);
- CreateObject(358, 1068.05164, -1704.31030, -20.75670, -84.00000, 55.00000, 235.00000);
- CreateObject(358, 1068.00964, -1704.25220, -21.23670, -83.99000, 55.00000, 235.00000);
- CreateObject(358, 1069.06970, -1704.33252, -21.24070, -84.00000, 55.00000, 235.00000);
- CreateObject(355, 1071.74072, -1704.35596, -19.88010, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1072.92310, -1704.27527, -19.87610, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1071.74072, -1704.35596, -20.30410, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1072.92310, -1704.27527, -20.31810, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1072.92310, -1704.27527, -20.74410, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1072.92310, -1704.27527, -21.23210, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1071.74072, -1704.35596, -21.23210, -84.00000, 55.00000, 237.00000);
- CreateObject(355, 1071.74072, -1704.35596, -20.74410, -84.00000, 55.00000, 237.00000);
- CreateObject(1271, 1065.42297, -1703.45374, -21.07770, 0.00000, 0.00000, -1.74000);
- CreateObject(937, 1065.47754, -1700.44312, -21.01400, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.96924, -1700.16504, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.96924, -1700.66296, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.96924, -1701.18701, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.72119, -1700.16504, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.45325, -1700.16504, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.22925, -1700.16504, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.01123, -1700.16504, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.72119, -1700.66296, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.45325, -1700.66296, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.22925, -1700.66296, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.01123, -1700.66296, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.72119, -1701.18701, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.45325, -1701.18701, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.22925, -1701.18701, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(11738, 1065.01123, -1701.18701, -20.50650, 0.00000, 0.00000, 90.00000);
- CreateObject(2912, 1065.54517, -1697.81995, -21.46710, 0.00000, 0.00000, 0.00000);
- CreateObject(2912, 1065.54517, -1696.65588, -21.46710, 0.00000, 0.00000, 0.00000);
- CreateObject(2912, 1065.54517, -1696.65588, -20.76710, 0.00000, 0.00000, 47.00000);
- CreateObject(2063, 1068.24426, -1695.77332, -20.60760, 0.00000, 0.00000, -180.00000);
- CreateObject(1242, 1068.70569, -1695.83960, -19.64420, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.11572, -1695.83960, -19.64420, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1067.55969, -1695.83960, -19.64420, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1067.55969, -1695.84155, -20.11220, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.11572, -1695.83960, -20.10020, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.70569, -1695.83960, -20.08420, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.70569, -1695.83960, -20.53820, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.11572, -1695.83960, -20.52020, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1067.55969, -1695.84155, -20.53820, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1067.55969, -1695.84155, -21.01420, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.11572, -1695.83960, -21.00820, 0.00000, 0.00000, 0.00000);
- CreateObject(1242, 1068.70569, -1695.83960, -21.01420, 0.00000, 0.00000, 0.00000);
- CreateObject(643, 1068.29382, -1727.66687, -24.13690, 0.00000, 0.00000, 0.00000);
- CreateObject(16151, 1068.79395, -1731.97705, -24.57120, 0.00000, 0.00000, -90.00000);
- CreateObject(19354, 1076.25732, -1734.73584, -23.33970, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1076.25732, -1737.88574, -23.33970, 0.00000, 0.00000, 0.00000);
- CreateObject(14608, 1069.01123, -1737.62219, -23.86220, 0.00000, 0.00000, 135.00000);
- CreateObject(19354, 1061.75732, -1737.88574, -23.33970, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1061.75732, -1734.73584, -23.33970, 0.00000, 0.00000, 0.00000);
- CreateObject(19354, 1071.75696, -1733.06458, -23.38620, 0.00000, 0.00000, 90.00000);
- CreateObject(3858, 1068.93323, -1739.40295, -24.53890, 0.00000, 0.00000, 45.00000);
- CreateObject(19354, 1074.75696, -1733.06458, -23.38620, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1062.92505, -1734.38550, -23.33530, 0.00000, 0.00000, 43.00000);
- CreateObject(19354, 1065.52502, -1735.48535, -23.23530, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1068.47498, -1735.48535, -23.23530, 0.00000, 0.12000, 90.00000);
- CreateObject(19354, 1072.42505, -1735.48535, -23.23530, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1075.07764, -1734.27405, -23.28490, 0.00000, 0.00000, -43.00000);
- CreateObject(19354, 1070.37500, -1735.48535, -23.23530, 0.00000, 0.12000, 90.00000);
- CreateObject(3858, 1068.93323, -1733.05298, -24.53890, 0.00000, 0.00000, 45.00000);
- CreateObject(19354, 1063.20703, -1733.06458, -23.38620, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1066.20703, -1733.06458, -23.38620, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1074.71704, -1739.40601, -23.21230, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1063.31702, -1739.40601, -23.21230, 0.00000, 0.00000, 90.00000);
- CreateObject(19376, 1080.06421, -1733.12085, -21.53730, 0.00000, 90.00000, 0.00000);
- CreateObject(19376, 1079.98926, -1742.67090, -21.53730, 0.00000, 90.00000, 0.00000);
- CreateObject(19376, 1069.56421, -1742.67090, -21.53730, 0.00000, 90.00000, 0.00000);
- CreateObject(19376, 1059.33936, -1742.67090, -21.53730, 0.00000, 90.00000, 0.00000);
- CreateObject(19376, 1069.56421, -1733.12085, -21.53730, 0.00000, 90.00000, 0.00000);
- CreateObject(19376, 1059.51416, -1733.12085, -21.53730, 0.00000, 90.00000, 0.00000);
- CreateObject(19446, 1057.62061, -1744.24463, -19.88450, 0.00000, 0.00000, -90.00000);
- CreateObject(19446, 1076.62061, -1744.24463, -19.88450, 0.00000, 0.00000, -90.00000);
- CreateObject(19446, 1067.08057, -1744.24463, -19.88450, 0.00000, 0.00000, -90.00000);
- CreateObject(19376, 1082.63745, -1714.28040, -21.54070, 0.00000, 90.06000, 90.36000);
- CreateObject(19376, 1082.71252, -1724.33044, -21.54070, 0.12000, 90.17999, 90.36000);
- CreateObject(19700, 1087.47742, -1701.51099, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1087.47742, -1713.96106, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1087.47742, -1726.41101, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19700, 1087.55237, -1738.71106, -25.05750, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1086.22058, -1744.24463, -23.23890, 0.00000, 0.00000, -90.00000);
- CreateObject(19354, 1084.95642, -1742.70996, -19.88450, 0.00000, 0.00000, 0.00000);
- CreateObject(19376, 1085.86255, -1704.00537, -21.54070, 0.00000, 90.00000, 90.36000);
- CreateObject(19360, 1083.54565, -1697.07544, -21.55370, 0.00000, 90.00000, 90.00000);
- CreateObject(19354, 1080.61011, -1704.71106, -19.87380, 0.00000, 0.00000, 90.00000);
- CreateObject(19362, 1080.76624, -1704.68652, -19.83820, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1084.95642, -1739.52991, -19.88450, 0.00000, 0.00000, 0.06000);
- CreateObject(19446, 1086.07056, -1744.24463, -19.88450, 0.00000, 0.00000, -90.00000);
- CreateObject(19384, 1058.05579, -1728.46619, -19.87680, 0.00000, 0.00000, 90.00000);
- CreateObject(1491, 1057.27637, -1728.51074, -21.52560, 0.00000, 0.00000, 0.00000);
- CreateObject(3858, 1066.60120, -1728.41040, -18.45250, 0.00000, 0.00000, 45.00000);
- CreateObject(19400, 1061.18896, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(19400, 1064.33899, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(19400, 1067.48901, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(19400, 1070.63904, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(19400, 1073.78894, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(3858, 1081.18115, -1728.41040, -18.45250, 0.00000, 0.00000, 45.00000);
- CreateObject(19400, 1076.93884, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(19400, 1080.08887, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(19400, 1083.23889, -1728.48633, -19.88480, 0.00000, 0.00000, 90.00000);
- CreateObject(2773, 1059.71008, -1714.07300, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1059.71008, -1716.50305, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1059.71008, -1718.93298, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1059.71008, -1721.36304, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1059.71008, -1723.79297, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1059.71008, -1726.40295, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(3811, 1056.95044, -1730.49133, -21.00150, 0.00000, 0.00000, 0.00000);
- CreateObject(3811, 1056.95044, -1733.19128, -21.00150, 0.06000, -0.06000, 0.00000);
- CreateObject(11706, 1059.33057, -1728.83960, -21.45020, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1072.44629, -1733.22266, -19.92320, 0.00000, 0.00000, 0.00000);
- CreateObject(19446, 1072.44629, -1745.19263, -19.86320, 0.00000, 0.00000, 0.00000);
- CreateObject(19384, 1072.42737, -1738.95923, -19.83380, 0.00000, 0.00000, 0.00000);
- CreateObject(1491, 1072.46057, -1738.19128, -21.53930, 0.00000, 0.00000, -90.00000);
- CreateObject(3811, 1073.06042, -1730.49133, -21.00150, 0.00000, 0.00000, 0.00000);
- CreateObject(3811, 1072.88037, -1733.19128, -21.00150, 0.06000, -0.06000, 0.00000);
- CreateObject(11706, 1075.08057, -1728.92957, -21.45020, 0.00000, 0.00000, 0.00000);
- CreateObject(11665, 1083.28479, -1735.06213, -20.64450, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1082.21106, -1729.07385, -21.45370, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1077.35095, -1729.07385, -21.45370, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1067.18103, -1729.07385, -21.45370, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1062.68103, -1729.07385, -21.45370, 0.00000, 0.00000, 0.00000);
- CreateObject(1968, 1066.83350, -1737.94788, -20.82340, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1082.98315, -1727.92578, -21.45320, 0.00000, 0.00000, 180.00000);
- CreateObject(2635, 1082.19202, -1725.95679, -21.00260, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1081.00317, -1724.05579, -21.45320, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1084.32397, -1725.03418, -21.43820, 0.00000, 0.00000, -90.00000);
- CreateObject(1723, 1084.32397, -1718.10425, -21.43820, 0.00000, 0.00000, -90.00000);
- CreateObject(1723, 1081.00317, -1717.03577, -21.45320, 0.00000, 0.00000, 0.00000);
- CreateObject(2635, 1082.19202, -1719.20679, -21.00260, 0.00000, 0.00000, 0.00000);
- CreateObject(1723, 1082.98315, -1721.89575, -21.45320, 0.00000, 0.00000, 180.00000);
- CreateObject(2773, 1078.16016, -1727.12305, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1078.16016, -1724.42297, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1078.16016, -1721.72302, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1078.16016, -1719.02295, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(2773, 1078.16016, -1715.78296, -20.93150, 0.00000, 0.00000, 0.00000);
- CreateObject(1557, 1067.43811, -1744.21606, -24.91360, 0.00000, 0.00000, 0.00000);
- CreateObject(1557, 1070.46423, -1744.22607, -24.91160, 0.06000, 0.06000, 180.00000);
- CreateObject(3811, 1072.30005, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(3811, 1075.35999, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(3811, 1079.38000, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(3811, 1082.80005, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(3811, 1065.64001, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(3811, 1062.33997, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(3811, 1059.04004, -1743.85339, -24.51170, 0.00000, 0.00000, 90.00000);
- CreateObject(2229, 1056.44824, -1743.78113, -24.92520, 0.00000, 0.00000, 139.00000);
- CreateObject(2229, 1084.62427, -1744.29895, -24.93450, 0.00000, 0.00000, -129.00000);
- CreateObject(19354, 1082.72095, -1714.06018, -23.27600, 0.00000, 0.00000, 90.00000);
- CreateObject(19354, 1085.84094, -1714.06018, -23.27600, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1056.76550, -1725.22388, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1728.40393, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1731.82385, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1735.18396, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1738.06384, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1741.48389, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1058.17017, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1059.91016, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1061.95020, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1063.87024, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1066.33020, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1070.89026, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1073.65015, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1076.77014, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1080.07019, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1083.07019, -1744.02100, -22.51090, 0.00000, 0.00000, 90.00000);
- CreateObject(3785, 1084.74658, -1740.39465, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1738.05469, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1734.63464, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1731.15466, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1728.45471, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1724.91467, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1722.15466, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1719.15466, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1715.97473, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1084.74658, -1713.51465, -22.57570, 0.00000, 0.00000, 180.00000);
- CreateObject(3785, 1056.76550, -1721.80396, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1718.62390, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1715.38391, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3785, 1056.76550, -1713.22388, -22.84280, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1078.15247, -1723.10425, -20.05380, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1078.15247, -1720.34436, -19.95380, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1078.15247, -1717.52429, -20.05380, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1078.15247, -1714.10425, -20.05380, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1078.15247, -1725.80432, -20.05380, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1072.59399, -1712.92139, -23.43600, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, 1065.51404, -1712.92139, -23.43600, 0.00000, 0.00000, 0.00000);
- CreateObject(19377, 1079.74854, -1739.43140, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1069.24854, -1739.43140, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1058.86853, -1739.43140, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1079.74854, -1729.93140, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1069.44849, -1729.83142, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1059.24854, -1729.83142, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1079.74854, -1720.33142, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1079.74854, -1711.03137, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1079.74854, -1701.73145, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1079.74854, -1692.33142, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1069.24854, -1692.33142, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1059.14856, -1692.33142, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1059.14856, -1701.43140, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1059.14856, -1710.63135, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1059.14856, -1720.23145, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1069.54858, -1720.23145, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1069.54858, -1710.63135, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19377, 1069.54858, -1701.53125, -18.16590, 0.00000, 90.00000, 0.00000);
- CreateObject(19324, 1084.46680, -1713.83716, -20.87920, 0.00000, 0.00000, -90.00000);
- #if defined TREASURE_HUNT_ENABLED
- SetRandomHuntPos();
- #endif
- new str[40];
- for(new idx = 1; idx < sizeof(BusinessInfo); idx++)//Creates a loop, that goes through all of the businesses.
- {
- format(str, sizeof(str), BPATH, idx);//formats the file path, with the biz ID
- INI_ParseFile(str, "loadbiz_%s", .bExtra = true, .extra = idx );//This is very hard to explain, but it basically loads the info from the file(More in Y_Less y_ini tutorial.)
- BusinessInfo[idx][bOutsideIcon] = CreateDynamicPickup(1272, 1, BusinessInfo[idx][bEntranceX], BusinessInfo[idx][bEntranceY], BusinessInfo[idx][bEntranceZ], BusinessInfo[idx][bWorld]); //Creates a pickup at the business entrance.
- new strs[142];
- if(BusinessInfo[idx][bOwned] == 0)
- {
- format(strs, 142, "This business is for sale!\nType: %s\nPrice\nID: %d", BusinessType(idx), BusinessInfo[idx][bPrice], idx);
- BusinessInfo[idx][bText] = CreateDynamic3DTextLabel(strs, COLOR_REALRED, BusinessInfo[idx][bEntranceX], BusinessInfo[idx][bEntranceY], BusinessInfo[idx][bEntranceZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- }
- else if(BusinessInfo[idx][bOwned] == 1)
- {
- format(strs, 142, "%s\nOwner: %s (%d)", BusinessInfo[idx][bName], BusinessInfo[idx][bOwner], idx);
- BusinessInfo[idx][bText] = CreateDynamic3DTextLabel(strs, COLOR_REALRED, BusinessInfo[idx][bEntranceX], BusinessInfo[idx][bEntranceY], BusinessInfo[idx][bEntranceZ]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- }
- }
- for(new id = 1; id < sizeof(LandsInfo); id++)//Creates a loop, that goes through all of the businesses.
- {
- format(str, sizeof(str), LPATH, id);//formats the file path, with the biz ID
- INI_ParseFile(str, "loadland_%s", .bExtra = true, .extra = id);//This is very hard to explain, but it basically loads the info from the file(More in Y_Less y_ini tutorial.)
- LandsInfo[id][lIcon] = CreateDynamicPickup(19523, 1, LandsInfo[id][pos_X], LandsInfo[id][pos_Y], LandsInfo[id][pos_Z], 0);//Creates a pickup at your location
- new strss[142];
- if(LandsInfo[id][lOwned] == 0)
- {
- format(strss, sizeof(strss), "This land is for sale! (%d)\nPrice: $%s\nType: %s", id, Comma(LandsInfo[id][lPrice]), LandType(id));
- LandsInfo[id][lText] = CreateDynamic3DTextLabel(strss, COLOR_REALRED, LandsInfo[id][pos_X], LandsInfo[id][pos_Y], LandsInfo[id][pos_Z]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- }
- else if(LandsInfo[id][lOwned] == 1)
- {
- format(strss, 142, "%s's land (%d)", LandsInfo[id][lOwner], id);
- LandsInfo[id][lText] = CreateDynamic3DTextLabel(strss, COLOR_REALRED, LandsInfo[id][pos_X], LandsInfo[id][pos_Y], LandsInfo[id][pos_Z]+0.5,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 10.0);
- }
- }
- SetTimer("RandomMessages", 60000, true); //here, you're defining a timer with the name "RandomMessages", which should appear every minute
- Textdraw0s = TextDrawCreate(58.399978, 423.360137, "TURF OWNER:");
- TextDrawLetterSize(Textdraw0s, 0.190797, 1.502933);
- TextDrawAlignment(Textdraw0s, 1);
- TextDrawColor(Textdraw0s, -1);
- TextDrawSetShadow(Textdraw0s, 0);
- TextDrawSetOutline(Textdraw0s, 1);
- TextDrawBackgroundColor(Textdraw0s, COLOR_BLACK);
- TextDrawFont(Textdraw0s, 1);
- TextDrawSetProportional(Textdraw0s, 1);
- TurfsInfo[0][TurfID] = GangZoneCreate(991.6937, -2810.916, 2151.559, -2084.531);
- TurfsInfo[1][TurfID] = GangZoneCreate(839.5802, -2084.531, 1691.416, -1800.294);
- TurfsInfo[2][TurfID] = GangZoneCreate(181.6896, -2124.009, 847.1859, -1662.123);
- TurfsInfo[3][TurfID] = GangZoneCreate(147.4641, -1654.228, 554.3676, -1069.962);
- TurfsInfo[4][TurfID] = GangZoneCreate(2604.096, -2262.18, 2934.943, -1658.175);
- TurfsInfo[5][TurfID] = GangZoneCreate(1649.584, -1267.349, 2079.305, -1144.969);
- TurfsInfo[6][TurfID] = GangZoneCreate(1094.37, -1413.416, 1349.16, -1141.021);
- TurfsInfo[7][TurfID] = GangZoneCreate(831.9745, -1125.23, 1094.37, -762.0381);
- TurfsInfo[8][TurfID] = GangZoneCreate(1444.231, -1733.182, 1539.302, -1614.75);
- TurfsInfo[9][TurfID] = GangZoneCreate(1060.145, -1579.221, 1212.258, -1397.625);
- format(TurfsInfo[0][TurfsName], 128, "Willowfield");
- format(TurfsInfo[0][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[0][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[0][TurfsHours] = 72;
- TurfsInfo[0][TurfsGang] = 255;
- format(TurfsInfo[1][TurfsName], 128, "Verona Beach 1");
- format(TurfsInfo[1][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[1][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[1][TurfsHours] = 72;
- TurfsInfo[1][TurfsGang] = 255;
- format(TurfsInfo[2][TurfsName], 128, "Verona Beach 2");
- format(TurfsInfo[2][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[2][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[2][TurfsHours] = 72;
- TurfsInfo[2][TurfsGang] = 255;
- format(TurfsInfo[3][TurfsName], 128, "Rodeo");
- format(TurfsInfo[3][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[3][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[3][TurfsHours] = 72;
- TurfsInfo[3][TurfsGang] = 255;
- format(TurfsInfo[4][TurfsName], 128, "Ocean Docks");
- format(TurfsInfo[4][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[4][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[4][TurfsHours] = 72;
- TurfsInfo[4][TurfsGang] = 255;
- format(TurfsInfo[5][TurfsName], 128, "Downtown Los Santos");
- format(TurfsInfo[5][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[5][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[5][TurfsHours] = 72;
- TurfsInfo[5][TurfsGang] = 255;
- format(TurfsInfo[6][TurfsName], 128, "Market 2");
- format(TurfsInfo[6][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[6][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[6][TurfsHours] = 72;
- TurfsInfo[6][TurfsGang] = 255;
- format(TurfsInfo[7][TurfsName], 128, "Vinewood");
- format(TurfsInfo[7][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[7][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[7][TurfsHours] = 72;
- TurfsInfo[7][TurfsGang] = 255;
- format(TurfsInfo[8][TurfsName], 128, "Commerce");
- format(TurfsInfo[8][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[8][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[8][TurfsHours] = 72;
- TurfsInfo[8][TurfsGang] = 255;
- format(TurfsInfo[9][TurfsName], 128, "Market");
- format(TurfsInfo[9][TurfsOwner], 128, "Neutral");
- format(TurfsInfo[9][TurfsCapper], 128, "Law Enforcement");
- TurfsInfo[9][TurfsHours] = 72;
- TurfsInfo[9][TurfsGang] = 255;
- AntiDeAMX();
- Streamer_TickRate(125);
- SetGameModeText("BRP " SERVER_VERSION);
- format(pdleader, 128, "No-one");
- format(fmdleader, 128, "No-one");
- format(fbileader, 128, "No-one");
- format(GMAleader, 128, "No-one");
- format(governmentleader, 128, "No-one");
- format(aresleader, 128, "No-one");
- format(sasdleader, 128, "No-one");
- SetWeather(10);
-
- Create3DTextLabel("{FFFF00}Information Kiosk\nType {FFFFFF}/kiosk{FFFF00} for more info", -1, 1806.878173,-1908.002563,13.573719, 20.0, 0, 0);
- Create3DTextLabel("{FFFF00}Want to donate to help our community stay alive, then ask an admin [/report]", -1, 1780.144409,-1929.310668,13.388019, 20.0, 0, 0);
- //Create3DTextLabel("{AAC5E3}The Maximus Club", -1, 1311.563476, -1372.238281, 13.650312, 20.0, 0, 0);
- Create3DTextLabel("{FFFF00}Sleepless Roleplay Managements", -1, 2126.164794,-1775.033569,13.558418, 20.0, 0, 0);
- Create3DTextLabel("{FFFF00}Type /dlocker to purchase items", -1, 1073.607177,-1698.576782,-20.464061, 20.0, 0, 0);
- //Create3DTextLabel("{FFFF00}The Maximus Club{FFFFFF}\nType {AAC5E3}/dtoys", -1, 2371.557373,-1472.172851,-18.824062, 20.0, 0, 0);
- //Create3DTextLabel("{FFFF00}The Maximus Club{FFFFFF}\nType {AAC5E3}/maximusclothes", -1, 2371.556884,-1471.276489,-18.824062, 20.0, 0, 0);
- Create3DTextLabel("{FFFF00}Enjoy Playing at Sleepless Roleplay <3", -1, 1309.229003,-1369.515380,19.000312, 20.0, 0, 0);
- Create3DTextLabel("{FFFF00}Press {FFFFFF}Y {FFFF00}to Enter.", -1, 2803.852294,-1070.076416,30.456432, 20.0, 0, 0);
- Create3DTextLabel("{FFFF00}/spawnatmc\nTo respawn here instead.", -1, 1075.941894,-1706.718261,-20.454763, 20.0, 0, 0);
- CreatePickup(1239, 23, 1075.975830,-1706.627807,-20.454763, -1); //spawnatmc
- Create3DTextLabel("{FFFF00}Type /bankhelp for the commands ", -1, 1667.425415,-972.651367,683.687316, 20.0, 0, 0);
- //Create3DTextLabel("{FFFF00}/joingame ", -1, 1316.399291,-1373.334228,13.308210, 20.0, 0, 0);
- EnableStuntBonusForAll(0);
- ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
- DisableInteriorEnterExits();
- SetNameTagDrawDistance(45.0);
- AllowInteriorWeapons(1);
- SetDamageSounds(true, true);
- UsePlayerPedAnims();
-
- //ShowNameTags(0);
- //SetTimer("UpdateNametag", 500, true);// by nnahtann
-
- // mSelection
- skinlist = LoadModelSelectionMenu("skinlist.txt");
-
- if(Jackpot < 0) Jackpot = 0;
- //if(TaxValue < 0) TaxValue = 0;
- // Dynamic systems
- LoadPoints();
- LoadFamilies();
- LoadHouses();
- LoadDynamicDoors();
- LoadDynamicMapIcons();
- LoadcDealerships();
- LoadThePay();
- Misc_Load();
- GiftAllowed = 1;
-
- //Fire System Progress
- SetTimer("OnFireUpdate", 500, 1);
- for(new i; i < MAX_PLAYERS; i++)
- {
- ExtTimer[i] = -1;
- }
- for(new f = 0; f < sizeof(FamilyInfo); f++)
- {
- for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
- {
- FamilyVehicleInfo[f][fv][fvModelId] = 0;
- FamilyVehicleInfo[f][fv][fvSpawnx] = 0.0;
- FamilyVehicleInfo[f][fv][fvSpawny] = 0.0;
- FamilyVehicleInfo[f][fv][fvSpawnz] = 0.0;
- FamilyVehicleInfo[f][fv][fvSpawna] = 0.0;
- FamilyVehicleInfo[f][fv][fvPaintJob] = -1;
- FamilyVehicleInfo[f][fv][fvColor1] = 126;
- FamilyVehicleInfo[f][fv][fvColor2] = 126;
- FamilyVehicleInfo[f][fv][fvPrice] = 0;
- FamilyVehicleInfo[f][fv][fvFuel] = 100.00;
- FamilyVehicleInfo[f][fv][fvId] = INVALID_VEHICLE_ID;
- }
- }
- LoadFamiliesHQ();
- ClearReports();
- for(new h = 0; h < sizeof(FamilyInfo); h++)
- {
- if(FamilyInfo[h][FamilyUSafe] > 0)
- {
- FamilyInfo[h][FamilyPickup] = CreatePickup(1239, 23, FamilyInfo[h][FamilySafe][0], FamilyInfo[h][FamilySafe][1], FamilyInfo[h][FamilySafe][2], -1);
- }
- if(FamilyInfo[h][FamilyEntrance][0] != 0.0 && FamilyInfo[h][FamilyEntrance][1] != 0.0)
- {
- FamilyInfo[h][FamilyEntrancePickup] = CreatePickup(1318, 23, FamilyInfo[h][FamilyEntrance][0], FamilyInfo[h][FamilyEntrance][1], FamilyInfo[h][FamilyEntrance][2], -1);
- format(string, sizeof(string), "%s", FamilyInfo[h][FamilyName]);
- FamilyInfo[h][FamilyEntranceText] = CreateDynamic3DTextLabel(string,COLOR_YELLOW,FamilyInfo[h][FamilyEntrance][0], FamilyInfo[h][FamilyEntrance][1], FamilyInfo[h][FamilyEntrance][2]+0.6,4.0);
- }
- LoadGangVehicles(h);
- }
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(Points[h][Type] == 3)
- {
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[h][Stock]);
- Points[h][TextLabel] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz], 4.0);
- Points[h][CratePoint] = 1;
- }
- else if(Points[h][Type] == 4)
- {
- format(string, sizeof(string), " CRACK AVAILABLE: %d grams.", Points[h][Stock]);
- Points[h][TextLabel] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz], 4.0);
- Points[h][CratePoint] = 2;
- }
- CreatePickup(1239, 23, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz], -1);
- }
- new text_info[128];
- for(new d = 0; d < sizeof(CarDealershipInfo); d++)
- {
- if(CarDealershipInfo[d][cdEntranceX] != 0.0 && CarDealershipInfo[d][cdEntranceY] != 0.0)
- {
- CarDealershipInfo[d][cdPickupID] = CreatePickup(1272, 1, CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ], -1);
- if(CarDealershipInfo[d][cdOwned])
- {
- format(text_info, sizeof(text_info),"Car Dealership %s\nOwner: %s\nID: %d", CarDealershipInfo[d][cdMessage], CarDealershipInfo[d][cdOwner], d);
- CarDealershipInfo[d][cdTextLabel] = CreateDynamic3DTextLabel(text_info,COLOR_LIGHTBLUE,CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]+0.5,3.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1);
- }
- else
- {
- format(text_info, sizeof(text_info),"Car Dealership %s For Sale\nPrice: %d\nID: %d", CarDealershipInfo[d][cdMessage], CarDealershipInfo[d][cdPrice], d);
- CarDealershipInfo[d][cdTextLabel] = CreateDynamic3DTextLabel(text_info,COLOR_YELLOW,CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]+0.5,3.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1);
- }
- }
- for(new v = 0; v < MAX_DEALERSHIPVEHICLES; v++)
- {
- if(CarDealershipInfo[d][cdVehicleModel][v] != 0)
- {
- new carcreated = CreateVehicle(CarDealershipInfo[d][cdVehicleModel][v], CarDealershipInfo[d][cdVehicleSpawnX][v], CarDealershipInfo[d][cdVehicleSpawnY][v], CarDealershipInfo[d][cdVehicleSpawnZ][v], CarDealershipInfo[d][cdVehicleSpawnAngle][v], 0, 0, 6);
- format(text_info, sizeof(text_info), "%s For Sale | Price: %d", GetVehicleName(carcreated), CarDealershipInfo[d][cdVehicleCost][v]);
- CarDealershipInfo[d][cdVehicleLabel][v] = CreateDynamic3DTextLabel(text_info,COLOR_LIGHTBLUE,0.0, 0.0, 0.0,8.0,INVALID_PLAYER_ID,carcreated);
- CarDealershipInfo[d][cdVehicleId][v] = carcreated;
- }
- }
- }
- gettime(ghour, gminute, gsecond);
- FixHour(ghour);
- ghour = shifthour;
- SetWorldTime(ghour);
- for(new i = 0; i <= sizeof(Peds)-1; i++)
- {
- AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
- }
- for(new i = 0; i < sizeof(CreatedCars); i++)
- {
- CreatedCars[i] = INVALID_VEHICLE_ID;
- }
- //LSPD Button
- lspdcopsonly = CreateButton(1789.65979, -1046.26721, -25.05176, 3.0); // ONLYS ONLY
- lspdeveryone = CreateButton(1788.80115, -1046.20093, -25.05176, 92.0); // People, ^^==LSPD
-
- lspdcopsonly1 = CreateButton(1775.26172, -1040.63013, -24.64567, 3.0); // ONLYS ONLY
- lspdeveryone1 = CreateButton(1775.74243, -1040.70056, -24.84514, 92.0); // People, ^^==LSPD
-
- CreateDynamicObject(2886, 1788.80115, -1046.20093, -25.05176, 0.00000, 0.00000, -85.74003, 20002); //lspdeveryone button
- CreateDynamicObject(2886, 1789.65979, -1046.26721, -25.05176, 0.00000, 0.00000, -362.22012, 20002); //lspdcopsonly button
-
- CreateDynamicObject(2886, 1775.74243, -1040.70056, -24.84514, 0.00000, 0.00000, -271.56003, 20002); //lspdeveryone1 button
- CreateDynamicObject(2886, 1775.26172, -1040.63013, -24.64567, 0.00000, 0.00000, -91.20003, 20002); //lspdcopsonly1 button
-
- lspddoor1 = CreateDynamicObject(1569, 1788.90442, -1046.27759, -26.38650, 0.00000, 0.00000, -88.86001);
- lspddoor2 = CreateDynamicObject(1569, 1788.99072, -1049.24573, -26.40553, 0.00000, 0.00000, 90.70854);
-
-
- lspddoor3 = CreateDynamicObject(1569, 1775.41260, -1040.68811, -26.41463, 0.00000, 0.00000, 89.86352);
- lspddoor4 = CreateDynamicObject(1569, 1775.44702, -1037.73376, -26.41463, 0.00000, 0.00000, -93.24004);
- // Faction gates
- LSPDGate = CreateDynamicObject(968, 1544.6943359375, -1630.73046875, 13.27956199646, 0.000000, 90, 90); //
- LSPDGate2 = CreateDynamicObject(971, 1588.6428222656, -1638.02734375, 15.240161895752, 0, 0, 181.03271484375);
- FBIGate1 = CreateDynamicObject(971, 320.40628051758, -1487.9129638672, 26.900407791138, 0.000000, 0.000000, 144.85501098633); //
- FBIGate2 = CreateDynamicObject(971, 283.96463012695, -1543.154296875, 27.167940139771, 0.000000, 0.000000, 326.25500488281); //
- // Faction text labels and pickups
- //arrest
- CreatePickup(1247, 23, 1528.082397, -1677.978637, 5.890625, -1); // LSPD
- CreateDynamic3DTextLabel("/arrest",COLOR_YELLOW,1528.082397, -1677.978637, 5.890625+0.6,4.0); // LSPD
- CreatePickup(1247, 23, 1564.830932, -1652.506469, 28.395606, -1); // LSPD roof
- CreateDynamic3DTextLabel("/arrest",COLOR_YELLOW,1564.830932, -1652.506469, 28.395606+0.6,4.0); // LSPD roof
- CreatePickup(1247, 23, 304.796508, -1526.349731, 76.539062, -1); // FBI roof
- CreateDynamic3DTextLabel("/arrest",COLOR_YELLOW,304.796508, -1526.349731, 76.539062+0.6,4.0); // FBI roof
- CreatePickup(1247, 23, 298.313842, -1536.036865, 24.593750, -1); // FBI
- CreateDynamic3DTextLabel("/arrest",COLOR_YELLOW,298.313842, -1536.036865, 24.593750+0.6,4.0); // FBI
-
- // Miner Dynamic 3d textdraws..
- CreateDynamic3DTextLabel("/mine\nTo begin mining rocks",COLOR_YELLOW,1250.1315,-1251.8857,13.6803+0.6,4.0);
- CreateDynamic3DTextLabel("/mine\nTo begin mining rocks",COLOR_YELLOW,1244.8136,-1267.3768,14.0674+0.6,4.0);
- CreateDynamic3DTextLabel("/mine\nTo begin mining rocks",COLOR_YELLOW,1242.2014,-1251.1252,14.1024+0.6,4.0);
- CreateDynamic3DTextLabel("/mine\nTo begin mining rocks",COLOR_YELLOW,1235.3142,-1250.9010,19.2036+0.6,4.0);
- //deliver
- CreatePickup(1247, 23, 1992.484130, -2312.814208, 13.546875, -1);
- CreateDynamic3DTextLabel("/deliver\nFor most wanted suspects",COLOR_YELLOW,1992.484130, -2312.814208, 13.546875+0.6,4.0);
- CreateDynamicObject(1681,1994.44226074,-2315.96582031,14.67000008,0.00000000,0.00000000,90.00000000); //object(ap_learjet1_01) (1)
-
- //LSPD Dildo
- dildo = CreatePickup(321, 2, 261.6014, 71.2014, 1003.2422, -1);
- //impounding
- CreateDynamic3DTextLabel("Impound Yard \nType /impound to impound a vehicle",COLOR_YELLOW,1602.002197, -1608.801879, 13.662560+0.6,5.0);
- // LSPD lockers
- CreateDynamic3DTextLabel("{2641FE}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,1767.054321,-1039.901733,-24.009588+0.6,4.0);
- // LSPD lockerss
- CreateDynamic3DTextLabel("{2641FE}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,1180.122680,2977.833496,1006.085937+0.6,4.0);
-
- // SASD lockers
- CreateDynamic3DTextLabel("{FFA500}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,-1632.767700,685.920898,1008.735961+0.6,4.0);
-
- // Ares lockers
- CreateDynamic3DTextLabel("{1C77B3}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,-1109.457641, -95.517982, 2040.269287+0.6,4.0);
- // GMA lockers
- CreateDynamic3DTextLabel("{33AA33}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,2654.473632,-1834.064331,-38.724376+0.6,4.0);
- // Blackmarket Weapons
- CreateDynamic3DTextLabel("/blackmarket",COLOR_REALREDS,-20.229053,17.140705,467.120300+0.6,4.0);
- // Blackmarket Weapons v2
- CreateDynamic3DTextLabel("/blackmarket",COLOR_REALREDS,1040.369995,-1409.241210,-6.406630+0.6,4.0);
- // Blackmarket Weapons v3
- CreateDynamic3DTextLabel("/blackmarket",COLOR_REALREDS,-4118.0459, 863.6408, 10.0257+0.6,4.0);
- /*// Casino
- CreateDynamic3DTextLabel("[Casino]\n/Dicebet\n{00FFFF}To bet someone.",COLOR_YELLOW,1130.6852,-1.6767,1000.6797+0.6,4.0);///fbi*/
- //FBI lockers
- CreateDynamic3DTextLabel("{8D8DFF}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,310.3679,-1537.5204,-45.1338+0.6,4.0);///fbi
- // LSFMD lockers
- CreateDynamic3DTextLabel("{FF8282}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,1188.5157470703,-1350.9741210938, 2423.2648925781+0.6,4.0);
- CreateDynamic3DTextLabel("{FF8282}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,1377.696655,-918.741760,-15.741325+0.6,4.0);
- CreateDynamic3DTextLabel("{FF8282}/locker\n{FFFF00}To open your locker.",COLOR_YELLOW,280.822174,1711.853393,2046.205932+0.6,4.0);
- // /deliver
- CreatePickup(1240, 23, 1142.4733,-1326.3633,13.6259, -1);// Deliverpt
- CreatePickup(1240, 23, 1165.1564,-1368.8240,26.6502, -1);// Deliverpt
- CreatePickup(1240, 23, 2027.0599,-1410.6870,16.9922, -1);// Deliverpt
- CreatePickup(1240, 23, 2024.5742,-1382.7844,48.3359, -1);// Deliverpt
- CreatePickup(1240, 23, 1607.820434,-2158.261718,13.554687, -1);// Deliverpt
- CreateDynamic3DTextLabel("/deliverpt",COLOR_LIGHTRED,1142.4733,-1326.3633,13.6259+0.6,4.0);///Deliverpt
- CreateDynamic3DTextLabel("/deliverpt",COLOR_LIGHTRED,1165.1564,-1368.8240,26.6502+0.6,4.0);///Deliverpt
- CreateDynamic3DTextLabel("/deliverpt",COLOR_LIGHTRED,2027.0599,-1410.6870,16.9922+0.6,4.0);///Deliverpt
- CreateDynamic3DTextLabel("/deliverpt",COLOR_LIGHTRED,2024.5742,-1382.7844,48.3359+0.6,4.0);///Deliverpt
- CreateDynamic3DTextLabel("/deliverpt",COLOR_LIGHTRED,1607.820434,-2158.261718,13.554687+0.6,4.0);///Deliverpt
-
- // advance mining and lumber jack job
- CreateDynamic3DTextLabel("Minable {777777}average {FFFFFF}rock\n{C1C1C1}To start mining, walk up to these rocks",COLOR_WHITE,-1854.7035,-1650.9668,25.7248+0.6,4.0);
- CreateDynamic3DTextLabel("Minable {777777}average {FFFFFF}rock\n{C1C1C1}To start mining, walk up to these rocks",COLOR_WHITE,-1803.5344,-1655.2640,25.8294+0.6,4.0);
- CreateDynamic3DTextLabel("Minable {777777}average {FFFFFF}rock\n{C1C1C1}To start mining, walk up to these rocks",COLOR_WHITE,-1788.5780,-1640.7179,27.0669+0.6,4.0);
- CreateDynamic3DTextLabel("Minable {DDFF00}quality {FFFFFF}rock\n{C1C1C1}To start mining, walk up to these rocks",COLOR_WHITE,-1869.1316,-1634.7915,-58.500+0.6,4.0);
- CreateDynamic3DTextLabel("Minable {DDFF00}quality {FFFFFF}rock\n{C1C1C1}To start mining, walk up to these rocks",COLOR_WHITE,-1868.9603,-1643.6682,-58.046+0.6,4.0);
- pickup777 = CreatePickup(1275, 23, -1830.2748,-1639.3976,22.2496, 0);
- CreateDynamic3DTextLabel("[SIDE JOB]\nMiner Job\n Location: Near Mt. Chilliad",COLOR_YELLOW,-1830.2748,-1639.3976,22.2496+0.6,4.0);
- CreateDynamic3DTextLabel("{DDFF00}Oak {FFFFFF}tree\n{C1C1C1}To get started, go to the tree",COLOR_WHITE,-1931.063354,-2360.959228,30.820381+0.6,4.0);
- CreateDynamic3DTextLabel("{DDFF00}Oak {FFFFFF}tree\n{C1C1C1}To get started, go to the tree",COLOR_WHITE,-1914.466308,-2369.007685,29.804220+0.6,4.0);
- CreateDynamic3DTextLabel("{DDFF00}Oak {FFFFFF}tree\n{C1C1C1}To get started, go to the tree",COLOR_WHITE,-1903.706787,-2361.488769,31.170394+0.6,4.0);
- CreateDynamic3DTextLabel("{DDFF00}Spruce {FFFFFF}tree\n{C1C1C1}To get started, go to the tree",COLOR_WHITE,-1934.799438,-2243.597412,65.4831+0.6,4.0);
- CreateDynamic3DTextLabel("{DDFF00}Spruce {FFFFFF}tree\n{C1C1C1}To get started, go to the tree",COLOR_WHITE,-1917.573364,-2251.707519,65.8043+0.6,4.0);
- CreateDynamic3DTextLabel("[SIDE JOB]\nLumberjack Job\n Location: Angel Pine",COLOR_YELLOW,-1991.550659, -2389.910644, 30.625000+0.6,4.0);
- // /healme
- CreatePickup(1240, 23, 1179.4012451172,-1331.5632324219,2423.0461425781, -1);
- CreateDynamic3DTextLabel("/healme \nTo cure your disease",COLOR_LIGHTRED,1179.4012451172,-1331.5632324219,2423.0461425781+0.6,4.0);
- // /buyinsurance
- CreatePickup(1239, 23, 1169.7209472656,-1348.3218994141,2423.0461425781, -1);// /Old Insurance: 2086.4915,2826.7122,-16.1744
- CreateDynamic3DTextLabel("/buyinsurance \n To buy insurance",COLOR_YELLOW,1169.7209472656,-1348.3218994141,2423.0461425781+0.6,4.0);// Insurance
- CreateDynamic3DTextLabel("/govl\nTo open your locker.",COLOR_YELLOW, -1221.620849, -155.842590, 4891.833007, 4.0);// Government lockers
- // Faction vehicles
- // LSPD
- LSPDVehicles[0] = AddStaticVehicleEx(596, 1601.795898, -1684.209350, 5.631327, 90.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[1] = AddStaticVehicleEx(596, 1601.790527, -1688.099243, 5.611071, 90.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[2] = AddStaticVehicleEx(596, 1601.790649, -1692.043945, 5.627151, 90.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[3] = AddStaticVehicleEx(596, 1601.790527, -1696.380981, 5.617440, 90.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[4] = AddStaticVehicleEx(596, 1601.790161, -1700.374267, 5.618237, 90.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[5] = AddStaticVehicleEx(596, 1601.791015, -1704.578247, 5.613302, 90.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[6] = AddStaticVehicleEx(596, 1595.375122, -1710.665039, 5.629010, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[7] = AddStaticVehicleEx(596, 1591.266113, -1711.172851, 5.562825, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[8] = AddStaticVehicleEx(596, 1587.176269, -1711.167724, 5.559627, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[9] = AddStaticVehicleEx(596, 1583.157104, -1711.164550, 5.575726, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[10] = AddStaticVehicleEx(596, 1578.746948, -1711.159790, 5.579936, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[11] = AddStaticVehicleEx(596, 1574.747192, -1711.155517, 5.616508, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[12] = AddStaticVehicleEx(596, 1570.507080, -1711.150390, 5.631289, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Car (LSPD)
- LSPDVehicles[13] = AddStaticVehicleEx(560, 1545.363403, -1684.183715, 5.776185, 90.0, 0, 0, VEHICLE_RESPAWN); // Tow Truck
- LSPDVehicles[14] = AddStaticVehicleEx(560, 1545.271606, -1680.033325, 5.789134, 90.0, 0, 0, VEHICLE_RESPAWN); // Tow Truck
- LSPDVehicles[15] = AddStaticVehicleEx(560, 1545.206909, -1676.062377, 5.768874, 90.0, 0, 0, VEHICLE_RESPAWN); // Tow Truck
- LSPDVehicles[16] = AddStaticVehicleEx(525, 1545.136840, -1671.935791, 5.796144, 90.0, 0, 79, VEHICLE_RESPAWN); // Tow Truck
- LSPDVehicles[17] = AddStaticVehicleEx(525, 1545.113891, -1667.590332, 5.768740, 90.0, 0, 79, VEHICLE_RESPAWN); // Tow Truck
- LSPDVehicles[18] = AddStaticVehicleEx(525, 1545.052978, -1663.159057, 5.769451, 90.0, 0, 79, VEHICLE_RESPAWN); // Tow Truck
- LSPDVehicles[19] = AddStaticVehicleEx(528, 1539.080932, -1644.956298, 6.022599, 180.0, 0, 1, VEHICLE_RESPAWN); // FBI Truck
- LSPDVehicles[20] = AddStaticVehicleEx(528, 1534.736694, -1644.953979, 6.025968, 180.0, 0, 1, VEHICLE_RESPAWN); // FBI Truck
- LSPDVehicles[21] = AddStaticVehicleEx(601, 1530.765136, -1644.953735, 5.626488, 180.0, 0, 0, VEHICLE_RESPAWN); // S.W.A.T. Van
- LSPDVehicles[22] = AddStaticVehicleEx(601, 1526.807250, -1644.952392, 5.685305, 180.0, 0, 0, VEHICLE_RESPAWN); // S.W.A.T. Van
- LSPDVehicles[23] = AddStaticVehicleEx(523, 1586.753173, -1680.919067, 5.467967, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[24] = AddStaticVehicleEx(523, 1583.504272, -1680.935913, 5.456614, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[25] = AddStaticVehicleEx(523, 1583.508789, -1678.958862, 5.454283, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[26] = AddStaticVehicleEx(523, 1583.510498, -1677.093017, 5.481368, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[27] = AddStaticVehicleEx(523, 1583.519409, -1675.270629, 5.453042, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[28] = AddStaticVehicleEx(523, 1586.685302, -1678.958740, 5.490104, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[29] = AddStaticVehicleEx(523, 1586.702880, -1677.099365, 5.452620, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[30] = AddStaticVehicleEx(523, 1586.705566, -1675.270629, 5.434679, 270.0, 0, 0, VEHICLE_RESPAWN); // HPV-1000
- LSPDVehicles[31] = AddStaticVehicleEx(599, 1585.306152, -1667.855957, 6.086935, 270.0, 0, 1, VEHICLE_RESPAWN); // Police Ranger
- LSPDVehicles[32] = AddStaticVehicleEx(599, 1585.286010, -1671.934448, 6.118605, 270.0, 0, 1, VEHICLE_RESPAWN); // Police Ranger
- LSPDVehicles[33] = AddStaticVehicleEx(427, 1544.986694, -1659.187500, 6.019245, 90.0, 0, 1, VEHICLE_RESPAWN); // Enforcer
- LSPDVehicles[34] = AddStaticVehicleEx(598, 1544.987060, -1655.224243, 6.054365, 90.0, 0, 1, VEHICLE_RESPAWN); // Enforcer
- LSPDVehicles[35] = AddStaticVehicleEx(598, 1544.987182, -1651.171020, 6.010422, 90.0, 0, 1, VEHICLE_RESPAWN); // Enforcer
- LSPDVehicles[36] = AddStaticVehicleEx(599, 1558.675781, -1711.144897, 6.032533, 0.0, 0, 1, VEHICLE_RESPAWN); // Police Ranger
- LSPDVehicles[37] = AddStaticVehicleEx(497,1564.34960938,-1648.89172363,28.66711426,90.00000000,0,1,VEHICLE_RESPAWN); //Police Maverick
- LSPDVehicles[38] = AddStaticVehicleEx(497,1564.30908203,-1700.77612305,28.66711426,90.00000000,0,1,VEHICLE_RESPAWN); //Police Maverick
- for(new x;x<sizeof(LSPDVehicles);x++)
- {
- format(string, sizeof(string), "LSPD %d", LSPDVehicles[x]);
- SetVehicleNumberPlate(LSPDVehicles[x], string);
- }
- // FBI
- FBIVehicles[0] = AddStaticVehicleEx(490,278.2950,-1535.1125,24.7221,234.8203,0,0,2000); // FBI car 1
- FBIVehicles[1] = AddStaticVehicleEx(490,281.3488,-1531.0051,24.7211,234.4913,0,0,2000); // FBI car 2
- FBIVehicles[2] = AddStaticVehicleEx(490,284.1479,-1526.7838,24.7219,235.9317,0,0,2000); // FBI car 3
- FBIVehicles[3] = AddStaticVehicleEx(402,287.9204,-1522.4076,24.4254,233.3578,0,0,2000); // FBI car 4
- FBIVehicles[4] = AddStaticVehicleEx(402,291.0083,-1518.0157,24.4255,235.8604,0,0,2000); // FBI car 5
- FBIVehicles[5] = AddStaticVehicleEx(426,294.4281,-1513.3267,24.3367,233.7115,0,0,2000); // FBI car 6
- FBIVehicles[6] = AddStaticVehicleEx(426,297.6391,-1508.7694,24.3367,233.2394,0,0,2000); // FBI car 7
- FBIVehicles[7] = AddStaticVehicleEx(482,301.1381,-1504.8762,24.7139,233.2884,0,0,2000); // FBI Car 8
- FBIVehicles[8] = AddStaticVehicleEx(415,304.2608,-1486.6423,24.2188,235.1092,0,0,2000); // FBI Car 9
- FBIVehicles[9] = AddStaticVehicleEx(415,307.1080,-1482.1565,24.2188,234.6429,0,0,2000); // FBI Car 10
- FBIVehicles[10] = AddStaticVehicleEx(487, 316.47, -1516.18, 77.24, 228.39, 0, 79, 2000); // Levithian - FBI Roof
- FBIVehicles[11] = AddStaticVehicleEx(487, 329.79, -1500.35, 77.24, 222.55, 0, 79, 2000); // Levithian - FBI Roof
- FBIVehicles[12] = AddStaticVehicleEx(427, 300.645629, -1490.589233, 24.723447, 233.09, 0, 0, 2000); // FBI Enforcer
-
- // LSFMD
- LSFMDVehicles[1] = AddStaticVehicleEx(452,721.1721,-1628.0261,-0.6700,180.6752,1,53, VEHICLE_RESPAWN); // LSFD Boat 2
- LSFMDVehicles[2] = AddStaticVehicleEx(452,720.1046,-1693.4014,-0.4581,179.7505,1,35, VEHICLE_RESPAWN); // LSFD Boat 3
- LSFMDVehicles[3] = AddStaticVehicleEx(416,1607.2472,-2153.6628,13.7036,88.4947,1,3, VEHICLE_RESPAWN); // FDA Ambulance
- LSFMDVehicles[4] = AddStaticVehicleEx(416,1590.8926,-2152.0854,13.7039,268.5291,1,3, VEHICLE_RESPAWN); // LSFMD ambulance
- LSFMDVehicles[5] = AddStaticVehicleEx(416,1590.9957,-2159.7983,13.7047,269.8668,1,3, VEHICLE_RESPAWN); // LSFMD ambulance
- LSFMDVehicles[6] = AddStaticVehicleEx(416,1591.0316,-2167.6848,13.7039,269.8569,1,3, VEHICLE_RESPAWN); // LSFMD ambulance
- LSFMDVehicles[7] = AddStaticVehicleEx(407, 1544.7987060547, -2173.884765625, 13.916874885559, 270, -1, -1, VEHICLE_RESPAWN); //Ambulance
- LSFMDVehicles[8] = AddStaticVehicleEx(407, 1544.7987060547, -2165.47265625, 13.916874885559, 270, -1, -1, VEHICLE_RESPAWN); //Ambulance
- LSFMDVehicles[9] = AddStaticVehicleEx(544, 1513.0217285156, -2173.1804199219, 13.916874885559, 90, -1, -1, VEHICLE_RESPAWN);//Ambulance
- LSFMDVehicles[10] = AddStaticVehicleEx(416, 87.18, -160.59, 2.74, 357.75, 1, 3, VEHICLE_RESPAWN);//Ambulance - LSFMD Sub Station
- LSFMDVehicles[11] = AddStaticVehicleEx(490, 97.63, -171.87, 2.75, 271.18, 3, 1, VEHICLE_RESPAWN); // LSFMD Rancher - Sub Station
- LSFMDVehicles[12] = AddStaticVehicleEx(407, 95.26, -164.77, 2.82, 269.32, 3, 1, VEHICLE_RESPAWN); // Fire Truck - Sub Station
- LSFMDVehicles[13] = AddStaticVehicleEx(563, 152.42, -167.52, 2.28, 92.43, 3, 1, VEHICLE_RESPAWN); // Raindance - Sub Station
- LSFMDVehicles[14] = AddStaticVehicleEx(416,1220.61, 301.97, 19.70, 155.82,1,3, VEHICLE_RESPAWN); // Memorial - Ambulance
- LSFMDVehicles[15] = AddStaticVehicleEx(416,1227.83, 298.53, 19.70, 155.16,1,3, VEHICLE_RESPAWN); // Memorial - Ambulance
- LSFMDVehicles[16] = AddStaticVehicleEx(563,1230.78, 318.34, 25.46, 153.57,1,3, VEHICLE_RESPAWN); // Memorial - Raindance
- LSFMDVehicles[17] = AddStaticVehicleEx(416,1609.2712,-2181.0779,13.7039,177.3877,1,3, VEHICLE_RESPAWN); // LSFD Ambulance
- LSFMDVehicles[18] = AddStaticVehicleEx(554,1580.2485,-2147.9507,13.6308,270.7723,3,1, VEHICLE_RESPAWN); // LSFD Car
- LSFMDVehicles[19] = AddStaticVehicleEx(554,1545.3405,-2183.1868,13.6328,269.7860,3,1, VEHICLE_RESPAWN); // LSFD Car 2
- LSFMDVehicles[20] = AddStaticVehicleEx(416,1179.9149,-1308.8851,13.8767,268.7781,1,3, VEHICLE_RESPAWN); //Ambulance 1
- LSFMDVehicles[21] = AddStaticVehicleEx(416,1179.3976,-1338.5197,13.9653,270.0616,1,3, VEHICLE_RESPAWN); //Ambulance 2
- LSFMDVehicles[22] = AddStaticVehicleEx(416,2036.9012,-1425.9266,17.1406,359.5312,1,3, VEHICLE_RESPAWN); //Ambulance 3
- LSFMDVehicles[23] = AddStaticVehicleEx(416,2008.3009,-1411.0936,17.1413,88.3472,1,3, VEHICLE_RESPAWN); //Ambulance 4
- LSFMDVehicles[24] = AddStaticVehicleEx(407,1545.6364,-2155.6382,13.7988,273.9738,3,1, VEHICLE_RESPAWN); //Ambulance 5
- LSFMDVehicles[25] = AddStaticVehicleEx(407,1516.0275,-2162.9231,13.7834,89.9683,3,1, VEHICLE_RESPAWN); //Ambulance 6
- LSFMDVehicles[26] = AddStaticVehicleEx(416,1606.9974,-2167.0830,13.7039,91.1709,1,3, VEHICLE_RESPAWN); //Ambulance 7
- LSFMDVehicles[27] = AddStaticVehicleEx(416,1607.3264,-2148.6665,13.7040,89.7026,1,3, VEHICLE_RESPAWN); //Ambulance 8
- LSFMDVehicles[28] = AddStaticVehicleEx(490,1616.3599,-2144.3535,13.6824,88.7370,3,1, VEHICLE_RESPAWN); // LSFMDFBIRANCHER main station
- LSFMDVehicles[29] = AddStaticVehicleEx(490,1628.9847,-2151.2844,13.6831,269.9678,3,1, VEHICLE_RESPAWN); // LSFMDFBIRANCHER sub station new
- LSFMDVehicles[30] = AddStaticVehicleEx(416,-2668.79589844,605.40057373,14.75412750,180.00000000,1,3,VEHICLE_RESPAWN); //Ambulance
- LSFMDVehicles[31] = AddStaticVehicleEx(416,-2662.53906250,605.74005127,14.75412750,180.00000000,1,3,VEHICLE_RESPAWN); //Ambulance
- LSFMDVehicles[32] = AddStaticVehicleEx(416,-2655.28808594,605.89562988,14.75412750,180.00000000,1,3,VEHICLE_RESPAWN); //Ambulance
- LSFMDVehicles[33] = AddStaticVehicleEx(407,-2021.93737793,84.03466797,28.25847435,270.00000000,3,1,VEHICLE_RESPAWN); //Firetruck
- LSFMDVehicles[34] = AddStaticVehicleEx(407,-2022.07055664,92.80475616,28.41874695,270.00000000,3,1,VEHICLE_RESPAWN); //Firetruck
- LSFMDVehicles[35] = AddStaticVehicleEx(407,-2022.19433594,76.03833008,28.25847435,270.00000000,3,11,VEHICLE_RESPAWN); //Firetruck
- LSFMDVehicles[36] = AddStaticVehicleEx(563,1633.9830,-2180.9321,14.2601,267.5514,3,1,VEHICLE_RESPAWN); // fda raindance
- LSFMDVehicles[37] = AddStaticVehicleEx(563,1489.1141,-2168.0686,14.2523,180.3227,3,1,VEHICLE_RESPAWN); // raindance 2
- LSFMDVehicles[38] = AddStaticVehicleEx(487,-2703.3201,624.0250,14.1766,180.2649, 1, 3, VEHICLE_RESPAWN);//Medic Chopper/*Maverick*/
- LSFMDVehicles[39] = AddStaticVehicleEx(487, 1610.3516,-2180.1248,19.9312,354.8875,1, 0, VEHICLE_RESPAWN);//Medic Chopper/*Maverick*/ -- in LS
- LSFMDVehicles[40] = AddStaticVehicleEx(487, 1620.5365,-2179.8254,19.9498,5.4440,1, 0, VEHICLE_RESPAWN);//Medic Chopper/*Maverick*/ -- in LS
- for(new x;x<sizeof(LSFMDVehicles);x++) {
- format(string, sizeof(string), "LSFMD %d", LSFMDVehicles[x]);
- SetVehicleNumberPlate(LSFMDVehicles[x], string);
- SetVehicleToRespawn(LSFMDVehicles[x]);
- }
- // Government vehicles
- GovVehicles[0] = AddStaticVehicleEx(409,1278.07080078,-2014.19921875,58.83128357,0.00000000,0, 0, VEHICLE_RESPAWN); //Stretch
- GovVehicles[1] = AddStaticVehicleEx(409,1278.27148438,-2024.24951172,58.83128357,0.00000000,0, 0, VEHICLE_RESPAWN); //Stretch
- GovVehicles[2] = AddStaticVehicleEx(489,1246.49230957,-2009.86267090,60.20861435,270.00000000,0, 0, VEHICLE_RESPAWN); //Rancher
- GovVehicles[3] = AddStaticVehicleEx(489,1246.25427246,-2015.10778809,60.20861435,270.00000000,0, 0, VEHICLE_RESPAWN); //Rancher
- GovVehicles[4] = AddStaticVehicleEx(489,1245.95520020,-2019.85485840,60.20861435,270.00000000,0, 0, VEHICLE_RESPAWN); //Rancher
- GovVehicles[5] = AddStaticVehicleEx(489,1245.90637207,-2024.60449219,60.20861435,270.00000000,0, 0, VEHICLE_RESPAWN); //Rancher
- GovVehicles[6] = AddStaticVehicleEx(463,1263.28942871,-2009.04907227,58.94292068,180.00000000,0, 0, VEHICLE_RESPAWN); //Freeway
- GovVehicles[7] = AddStaticVehicleEx(463,1266.04895020,-2008.95178223,58.94292068,180.00000000,0, 0, VEHICLE_RESPAWN); //Freeway
- GovVehicles[8] = AddStaticVehicleEx(487,1116.52880859,-2055.13989258,74.69468689,0.00000000,0, 0, VEHICLE_RESPAWN); //Maverick
- GovVehicles[9] = AddStaticVehicleEx(487,1115.95190430,-2019.10473633,74.69468689,180.00000000,0, 0, VEHICLE_RESPAWN); //Maverick
- GovVehicles[10] = AddStaticVehicleEx(426, 1257.2582, -2010.0286, 59.6413, 179.5065, 0, 0, VEHICLE_RESPAWN); // Premier
- GovVehicles[11] = AddStaticVehicleEx(426, 1462.2908, -1845.3002, 13.6906, 270.0187, 0, 0, VEHICLE_RESPAWN); // Premier
- GovVehicles[12] = AddStaticVehicleEx(426, 1487.0929, -1845.2926, 13.6904, 270.0193, 0, 0, VEHICLE_RESPAWN); // Premier
- GovVehicles[13] = AddStaticVehicleEx(426, 1509.3724, -1847.7166, 13.6876, 265.7939, 0, 0, VEHICLE_RESPAWN); // Premier
- GovVehicles[14] = AddStaticVehicleEx(560, 1532.8997, -1846.7733, 13.6909, 1.3031, 0, 0, VEHICLE_RESPAWN); // Sultan
- GovVehicles[15] = AddStaticVehicleEx(560, 1551.6821, -1840.1754, 13.6897, 260.9821, 0, 0, VEHICLE_RESPAWN); // Sultan
- GovVehicles[16] = AddStaticVehicleEx(560, 1554.8734, -1783.5621, 13.6906, 359.1968, 0, 0, VEHICLE_RESPAWN); // Sultan
- GovVehicles[17] = AddStaticVehicleEx(560, 1554.6436, -1718.8489, 13.6926, 88.5928, 0, 0, VEHICLE_RESPAWN); // Sultan
- for(new x;x<sizeof(GovVehicles);x++) {
- format(string, sizeof(string), "GOV %d", GovVehicles[x]);
- SetVehicleNumberPlate(GovVehicles[x], string);
- SetVehicleToRespawn(GovVehicles[x]);
- }
-
- // GMA vehicles
- SANVehicles[0] = AddStaticVehicleEx(582,753.6042480469,-1334.6889648438,13.6949853897,180.5405273438,49,11,2000); //Newsvan
- SANVehicles[1] = AddStaticVehicleEx(582,757.6818237305,-1334.6668701172,13.6950349808,180.5405273438,49,11,2000); //Newsvan
- SANVehicles[2] = AddStaticVehicleEx(582,762.3946533203,-1334.4571533203,13.6954946518,180.6304321289,49,11,2000); //Newsvan
- SANVehicles[3] = AddStaticVehicleEx(582,766.1726684570,-1334.3752441406,13.6956758499,180.5405273438,49,11,2000); //Newsvan
- SANVehicles[4] = AddStaticVehicleEx(488, 736.0602, -1376.2152, 25.8823, 270.2599, 2, 26, 2000); //News Chopper
- SANVehicles[5] = AddStaticVehicleEx(488,743.5921630859,-1366.7655029297,25.9572105408,0.0000000000,2,26,2000); //News Chopper
-
- for(new x;x<sizeof(SANVehicles);x++) {
- format(string, sizeof(string), "SAN %d", SANVehicles[x]);
- SetVehicleNumberPlate(SANVehicles[x], string);
- SetVehicleToRespawn(SANVehicles[x]);
- }
- // Trucker Vehicles
- TruckerVehicles[0] = AddStaticVehicleEx(456,2223.45068359,-2675.48315430,13.79090691,0.00000000,-1,-1,300); //Yankee
- TruckerVehicles[1] = AddStaticVehicleEx(456,2229.94897461,-2675.69653320,13.79090691,0.00000000,-1,-1,300); //Yankee
- TruckerVehicles[2] = AddStaticVehicleEx(456,2247.59399414,-2678.06005859,13.79090691,0.00000000,-1,-1,300); //Yankee
- TruckerVehicles[3] = AddStaticVehicleEx(414,2252.95361328,-2678.02856445,13.70086479,0.00000000,-1,-1,300); //Mule
- TruckerVehicles[4] = AddStaticVehicleEx(414,2257.94824219,-2677.81347656,13.70086479,0.00000000,-1,-1,300); //Mule
- TruckerVehicles[5] = AddStaticVehicleEx(414,2263.20507812,-2677.70410156,13.70086479,0.00000000,-1,-1,300); //Mule
- TruckerVehicles[6] = AddStaticVehicleEx(456,2165.29052734,-2657.01904297,13.79687500,270.00000000,-1,-1,300); //Yankee
- TruckerVehicles[7] = AddStaticVehicleEx(456,2167.83178711,-2650.11987305,13.79687500,270.00000000,-1,-1,300); //Yankee
- TruckerVehicles[8] = AddStaticVehicleEx(456,2203.90942383,-2641.51489258,13.79687500,270.00000000,-1,-1,300); //Yankee
- TruckerVehicles[9] = AddStaticVehicleEx(499,2175.12963867,-2637.71411133,13.64687538,180.00000000,-1,-1,300); //Benson
- TruckerVehicles[10] = AddStaticVehicleEx(499,2180.41625977,-2638.07910156,13.64687538,180.00000000,-1,-1,300); //Benson
- TruckerVehicles[11] = AddStaticVehicleEx(499,2185.71166992,-2638.12036133,13.64687538,180.00000000,-1,-1,300); //Benson
- TruckerVehicles[12] = AddStaticVehicleEx(414,2205.19726562,-2597.21484375,13.69090652,270.00000000,-1,-1,300); //Mule
- TruckerVehicles[13] = AddStaticVehicleEx(499,2213.06250000,-2583.26538086,13.64687538,0.00000000,-1,-1,300); //Benson
- TruckerVehicles[14] = AddStaticVehicleEx(456,2204.75000000,-2569.27026367,13.79687500,270.00000000,-1,-1,300); //Yankee
- TruckerVehicles[15] = AddStaticVehicleEx(456,2239.31396484,-2644.32055664,13.79451466,90.00000000,-1,-1,300); //Yankee
- TruckerVehicles[16] = AddStaticVehicleEx(456,2239.52050781,-2638.99414062,13.79451466,90.00000000,-1,-1,300); //Yankee
- TruckerVehicles[17] = AddStaticVehicleEx(456,2239.46142578,-2633.49414062,13.79451466,90.00000000,-1,-1,300); //Yankee
- TruckerVehicles[18] = AddStaticVehicleEx(456,2239.34033203,-2627.85107422,13.79451466,90.00000000,-1,-1,300); //Yankee
- TruckerVehicles[19] = AddStaticVehicleEx(456,2206.29296875,-2530.18920898,13.79687500,270.00000000,-1,-1,300); //Yankee
- TruckerVehicles[20] = AddStaticVehicleEx(456,2206.20117188,-2524.10937500,13.79687500,270.00000000,-1,-1,300); //Yankee
- TruckerVehicles[21] = AddStaticVehicleEx(456,2206.03466797,-2518.52441406,13.79687500,270.00000000,-1,-1,300); //Yankee
- // Paintball (pickup + 3dtextlabel)
- Create3DTextLabel("{FFFF00}Paintball v2 - Type /paintball to play", -1, 1941.132446,-1699.301757,-26.661914, 20.0, 0, 0);
- CreatePickup(1254, 23, 1941.132446,-1699.301757,-26.661914, -1);
- // Added by Calgon (extra vehicles really needed)
- TruckerVehicles[22] = AddStaticVehicle(456,2453.1619,-2639.1846,13.8379,270.4689,102,300); // Ocean Docks 1
- TruckerVehicles[23] = AddStaticVehicle(456,2473.5852,-2639.2966,13.8242,268.3057,102,300); // Ocean Docks 2
- TruckerVehicles[24] = AddStaticVehicle(456,2453.1306,-2649.3818,13.8346,271.3797,102,300); // Ocean Docks 3
- TruckerVehicles[25] = AddStaticVehicle(456,2471.5981,-2649.7627,13.8288,269.0897,102,300); // Ocean Docks 4
- TruckerVehicles[26] = AddStaticVehicle(456,2393.3713,-2670.7224,13.8374,89.5815,102,300); // Ocean Docks 5
- TruckerVehicles[27] = AddStaticVehicle(456,2397.2883,-2627.0601,13.8374,358.5510,102,300); // Ocean Docks 6
- TruckerVehicles[28] = AddStaticVehicle(456,2397.9001,-2602.9380,13.8374,358.5483,102,300); // Ocean Docks 7
- TruckerVehicles[29] = AddStaticVehicle(456,2203.0491,-2632.2080,13.2632,91.2853,53,300); // Ocean Docks Truck x1 (needs model)
- TruckerVehicles[30] = AddStaticVehicle(456,2247.2212,-2605.2102,8.0225,356.8250,53,300); // Ocean Docks Truck x2 (needs model)
- TruckerVehicles[31] = AddStaticVehicle(456,2248.7383,-2577.7927,8.0144,356.8441,53,300); // Ocean Docks Truck x3 (needs model)
- TruckerVehicles[32] = AddStaticVehicle(456,2248.7473,-2556.0659,8.0211,359.6938,53,300); // Ocean Docks Truck x4 (needs model)
- TruckerVehicles[33] = AddStaticVehicle(456,2248.8784,-2531.6667,8.0229,359.6888,53,300); // Ocean Docks Truck x5 (needs model)
- TruckerVehicles[34] = AddStaticVehicle(456,2248.9675,-2515.1245,8.0156,359.6818,53,300); // Ocean Docks Truck x6 (needs model)
- TruckerVehicles[35] = AddStaticVehicle(456,2249.0857,-2494.2341,8.0111,359.7150,53,300); // Ocean Docks Truck x7 (needs model)
- TruckerVehicles[36] = AddStaticVehicle(456,2264.4348,-2484.6040,8.0058,261.9050,53,300); // Ocean Docks Truck x8 (needs model)
-
- // Street Sweeper Vehicle (LS)
- SweeperVehicles[0] = AddStaticVehicleEx(574,2193.00000000,-1984.80004883,13.30000019,90.00000000, 1, 1, 120);
- SweeperVehicles[1] = AddStaticVehicleEx(574,2192.89990234,-1987.59997559,13.30000019,90.00000000, 1, 1, 120);
- SweeperVehicles[2] = AddStaticVehicleEx(574,2193.00000000,-1990.30004883,13.30000019,90.00000000, 1, 1, 120);
- SweeperVehicles[3] = AddStaticVehicleEx(574,2193.19995117,-1993.30004883,13.30000019,90.00000000, 1, 1, 120);
- SweeperVehicles[4] = AddStaticVehicleEx(574,2193.30004883,-1996.30004883,13.30000019,90.00000000, 1, 1, 120);
- SweeperVehicles[5] = AddStaticVehicleEx(574,2193.39990234,-2000.09997559,13.30000019,90.00000000, 1, 1, 120);
- SweeperVehicles[6] = AddStaticVehicleEx(574,2182.60009766,-1996.09997559,13.30000019,320.00000000, 1, 1, 120);
- SweeperVehicles[7] = AddStaticVehicleEx(574,2181.10009766,-1992.80004883,13.30000019,319.99877930, 1, 1, 120);
- SweeperVehicles[8] = AddStaticVehicleEx(574,2179.00000000,-1990.59997559,13.30000019,319.99877930, 1, 1, 120);
- SweeperVehicles[9] = AddStaticVehicleEx(574,2176.39990234,-1988.30004883,13.30000019,319.99877930, 1, 1, 120);
- SweeperVehicles[10] = AddStaticVehicleEx(574,2173.80004883,-1986.30004883,13.30000019,319.99877930, 1, 1, 120);
- SweeperVehicles[11] = AddStaticVehicleEx(574,2187.50000000,-1976.09997559,13.30000019,180.00000000, 1, 1, 120);
- SweeperVehicles[12] = AddStaticVehicleEx(574,2184.69995117,-1976.09997559,13.30000019,180.00000000, 1, 1, 120);
- SweeperVehicles[13] = AddStaticVehicleEx(574,2181.39990234,-1976.00000000,13.30000019,180.00000000, 1, 1, 120);
- SweeperVehicles[14] = AddStaticVehicleEx(574,2178.39990234,-1975.80004883,13.30000019,180.00000000, 1, 1, 120);
- SweeperVehicles[15] = AddStaticVehicleEx(574,2174.89990234,-1976.00000000,13.30000019,180.00000000, 1, 1, 120);
- SweeperVehicles[16] = AddStaticVehicleEx(574,2171.10009766,-1975.80004883,13.30000019,180.00000000, 1, 1, 120);
- //LSPD - LSFMD - All Saints
- CreateDynamicObject(18030, 2092.279296875, 2817.1181640625, -14.807208061218, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(2951, 2109.0756835938, 2812.5268554688, -17.188125610352, 0.000000, 0.000000, 270.67498779297); //
- CreateDynamicObject(2951, 2087.53515625, 2803.2150878906, -17.674396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(3386, 2103.3381347656, 2830.3115234375, -17.174396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(3387, 2103.4313964844, 2826.3564453125, -17.174396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(3389, 2101.015625, 2830.6564941406, -17.174396514893, 0.000000, 0.000000, 91.894958496094); //
- CreateDynamicObject(1997, 2071.7292480469, 2806.0947265625, -17.174396514893, 0.000000, 0.000000, 93.295013427734); //
- CreateDynamicObject(1997, 2071.7165527344, 2807.8830566406, -17.174396514893, 0.000000, 0.000000, 91.310028076172); //
- CreateDynamicObject(1997, 2071.7561035156, 2809.45703125, -17.174396514893, 0.000000, 0.000000, 91.310028076172); //
- CreateDynamicObject(3384, 2103.1545410156, 2822.3237304688, -15.731789588928, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(3383, 2100.4477539063, 2827.2509765625, -17.174396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(3383, 2100.5051269531, 2822.8688964844, -17.174396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(3383, 2094.5844726563, 2825.0227050781, -17.174396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(1796, 2100.0754394531, 2808.0727539063, -17.174396514893, 0.000000, 0.000000, 179.28002929688); //
- CreateDynamicObject(1796, 2098.4482421875, 2808.1791992188, -17.174396514893, 0.000000, 0.000000, 178.9150390625); //
- CreateDynamicObject(1796, 2102.0798339844, 2807.9851074219, -17.174396514893, 0.000000, 0.000000, 179.05505371094); //
- CreateDynamicObject(2239, 2103.4404296875, 2804.8537597656, -17.174396514893, 0.000000, 0.000000, 218.75506591797); //
- CreateDynamicObject(2184, 2085.3012695313, 2828.1159667969, -17.174396514893, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(1671, 2086.1975097656, 2829.4157714844, -16.714181900024, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(2190, 2087.134765625, 2828.1010742188, -16.398658752441, 0.000000, 0.000000, 230.5249786377); //
- CreateDynamicObject(2854, 2085.673828125, 2828.6516113281, -16.398658752441, 0.000000, 0.000000, 133.07997131348); //
- CreateDynamicObject(2946, 2081.85546875, 2831.0966796875, -17.174396514893, 0.000000, 0.000000, 91.310028076172); //
- CreateDynamicObject(10182, 1145.3453369141, -1326.4350585938, 14.297383308411, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(16656, 1421.5529785156, -2445.5986328125, -9.6055564880371, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(1997, 1430.8905029297, -2437.8049316406, -12.598474502563, 0.000000, 0.000000, 269.9599609375); //
- CreateDynamicObject(3384, 1431.6123046875, -2441.9572753906, -11.155867576599, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(1886, 1426.7391357422, -2451.6730957031, -7.6691589355469, 0.000000, 358.01501464844, 182.52499389648); //
- CreateDynamicObject(2951, 1420.4285888672, -2442.7119140625, -13.105556488037, 0.000000, 0.000000, 270.44995117188); //
- CreateDynamicObject(2951, 1420.4750976563, -2450.1713867188, -13.098474502563, 0.000000, 0.000000, 270.53997802734); //
- CreateDynamicObject(2946, 1425.0671386719, -2436.9409179688, -12.605556488037, 0.000000, 0.000000, 268.69006347656); //
- CreateDynamicObject(2606, 1422.2109375, -2436.7719726563, -10.66157245636, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(1999, 1421.7412109375, -2437.5876464844, -12.605556488037, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(2356, 1422.6676025391, -2438.5456542969, -12.605556488037, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(11008, 1530.6383056641, -2167.5698242188, 19.045516967773, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(8356, 1560.9700927734, -2091.2924804688, 12.568482398987, 0.000000, 0.000000, 180); //
- CreateDynamicObject(8356, 1600.9536132813, -2091.2219238281, 12.568482398987, 0.000000, 0.000000, 180); //
- CreateDynamicObject(8356, 1501.1728515625, -2091.2724609375, 12.568482398987, 0.000000, 0.000000, 180); //
- CreateDynamicObject(5711, 1581.1998291016, -2159.6352539063, 16.031856536865, 0.000000, 0.000000, 180); //
- CreateDynamicObject(16564, 1618.6606445313, -2164.0412597656, 12.494687080383, 0.000000, 0.000000, 90); //
- CreateDynamicObject(8356, 1640.9392089844, -2091.2358398438, 12.568482398987, 0.000000, 0.000000, 179.99450683594); //
- CreateDynamicObject(12839, 1604.3753662109, -2180.419921875, 16.050001144409, 0.000000, 0.000000, 0.000000); //
- /*CreateDynamicObject(994, 2222.9479980469, -1707.8178710938, 12.554218292236, 0.000000, 0.000000, 83.25);
- CreateDynamicObject(994, 2222.2282714844, -1714.1044921875, 12.554218292236, 0.000000, 0.000000, 83.248901367188);
- CreateDynamicObject(994, 2221.666015625, -1720.4332275391, 12.554218292236, 0.000000, 0.000000, 84.998901367188);
- CreateDynamicObject(997, 2221.5944824219, -1720.4653320313, 12.554218292236, 0.000000, 0.000000, 270.39489746094);
- CreateDynamicObject(997, 2221.6120605469, -1723.6779785156, 12.554218292236, 0.000000, 0.000000, 308.13818359375);
- CreateDynamicObject(997, 2223.5490722656, -1726.2283935547, 12.554218292236, 0.000000, 0.000000, 343.46838378906);
- CreateDynamicObject(994, 2232.9912109375, -1727.2038574219, 12.554218292236, 0.000000, 0.000000, 179.2939453125);
- CreateDynamicObject(994, 2239.298828125, -1727.1459960938, 12.554218292236, 0.000000, 0.000000, 180.29138183594);
- CreateDynamicObject(994, 2245.6069335938, -1727.1053466797, 12.554218292236, 0.000000, 0.000000, 180.29113769531);
- CreateDynamicObject(994, 2230.0375976563, -1702.1334228516, 12.554218292236, 0.000000, 0.000000, 174.55895996094);
- CreateDynamicObject(994, 2245.8688964844, -1720.8118896484, 12.554218292236, 0.000000, 0.000000, 267.63110351563);*/
- CreateDynamicObject(1495, 1582.6011962891, -1637.8992919922, 12.552812576294, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(11326,1604.98535156,-1623.68457031,14.71534920,0.00000000,0.00000000,90.00000000); //object(sfse_hublockup) (1)
- CreateDynamicObject(1886,1581.56628418,-1633.38085938,16.76438522,0.00000000,0.00000000,308.90148926); //object(shop_sec_cam) (1)
- CreateDynamicObject(983, 1544.6878662109, -1620.4252929688, 13.038116455078, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(983, 1544.7156982422, -1635.9808349609, 13.237470626831, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(1344, 1544.7709960938, -1617.0625, 13.191030502319, 0.000000, 0.000000, 180); //
- CreateDynamicObject(13644, 1582.6353759766, -1639.0125732422, 10.541254043579, 0.000000, 19.14501953125, 268.55499267578); //
- //CreateDynamicObject(969, 1635.2663574219, -1852.6921386719, 12.548987388611, 0.000000, 0.000000, 179.99450683594); //
- CreateDynamicObject(1496, 1564.2520751953, -1667.3739013672, 27.395606994629, 0.000000, 0.000000, 0.000000); //
- CreateDynamicObject(12814, 264.49127197266, 1882.6428222656, 16.587562561035, 0, 0, 0);
- CreateDynamicObject(991, 226.45503234863, 1872.4094238281, 13.949615478516, 0, 0, 270.27062988281);
- CreateDynamicObject(3029, 2175.6774902344, 1594.2722167969, 998.97888183594, 0, 0, 268.69067382813); // Drug Factory Doors
- CreateDynamicObject(10832, 296.68603515625, -1549.5653076172, 77.338836669922, 0.000000, 0.000000, 162.94946289063); //
- CreateDynamicObject(3029, 2223.58203125, 1598.2083740234, 998.9765625, 0, 0, 268.69067382813);
- CreateDynamicObject(3471,1564.04772949,-1881.44250488,13.82141495,0.00000000,0.00000000,90.00000000); // TRIADS object(vgschinalion1) (2)
- CreateDynamicObject(3471,1571.83093262,-1881.41430664,13.82141495,0.00000000,0.00000000,90.00000000); // TRIADS object(vgschinalion1) (3)
- CreateDynamicObject(9482,1567.88854980,-1882.18041992,19.17709923,0.00000000,0.00000000,90.00000000); // TRIADS object(chinagate) (2)
- CreateDynamicObject(2948,968.48669434,-53.18999100,1000.12457275,0.00000000,0.00000000,0.00000000, .interiorid = 3); //object(cr_door_02) (1)
- CreateDynamicObject(2948,968.48632812,-53.18945312,1000.12457275,0.00000000,0.00000000,180.00000000, .interiorid = 3); //object(cr_door_02) (5)
- CreateDynamicObject(2885,968.70294189,-56.50698090,1005.57806396,0.00000000,0.00000000,90.00000000, .interiorid = 3); //object(xref_garagedoor) (1)
- CreateDynamicObject(2714,968.44470215,-53.15001678,1003.11096191,0.00000000,0.00000000,270.00000000, .interiorid = 3); //object(cj_open_sign_2) (1)
- CreateDynamicObject(2885,963.42553711,-56.52644730,1003.82830811,270.00000000,180.69543457,270.69543457, .interiorid = 3); //object(xref_garagedoor) (3)
- CreateDynamicObject(10671,680.26983643,-444.72039795,-24.75238800,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(savehousegdoor_sfs) (1)
- CreateDynamicObject(10671,682.69573975,-444.75363159,-24.75238800,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(savehousegdoor_sfs) (2)
- CreateDynamicObject(10671,680.79193115,-447.47885132,-26.72739220,0.00000000,90.00000000,0.00000000, .interiorid = 1); //object(savehousegdoor_sfs) (3)
- CreateDynamicObject(11319,680.67449951,-443.91644287,-26.69394875,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(sprayshpdr2_sfse) (1)
- //---------------FBI HQ Interior--------------------//
- CreateDynamicObject(1536,293.27246094,-1481.46582031,-34.53342056,0.00000000,0.00000000,179.99450684,1324123, .interiorid = 1); //object(gen_doorext15) (2)
- CreateDynamicObject(1536,290.27832031,-1481.50488281,-34.53342056,0.00000000,0.00000000,0.00000000,1324123, .interiorid = 1); //object(gen_doorext15) (2)
- CreateDynamicObject(1776,291.19232178,-1512.44006348,-45.03078842,0.00000000,0.00000000,90.00000000,1324123, .interiorid = 1); //object(cj_candyvendor) (2)
- FBILobbyLeftBTN[0] = CreateButton(297.66613770,-1498.67749023,-44.59006119,0.79565430); //Lobby Button Left
- FBILobbyLeftBTN[1] = CreateButton(297.24850464,-1498.23107910,-44.59006119,180); //Lobby Button Left
- FBILobbyRightBTN[0] = CreateButton(300.05300903,-1521.40747070,-44.59006119,180); //Lobby Button Right
- FBILobbyRightBTN[1] = CreateButton(300.16033936,-1521.84387207,-44.59006119,0); //Lobby Button Right
- FBIPrivateBTN[0] = CreateButton(298.87384033,-1495.87316895,-27.32773209,270); //Private Office Button
- FBIPrivateBTN[1] = CreateButton(300.49453735,-1495.33837891,-27.28091812,180.49487305); //Private Office Button
- CreateDynamicObject(2886,297.66613770,-1498.67749023,-44.59006119,0,0,0.79565430, 1324123); //Lobby Button Left
- CreateDynamicObject(2886,297.24850464,-1498.23107910,-44.59006119,0,0,180, 1324123); //Lobby Button Left
- CreateDynamicObject(2886,300.05300903,-1521.40747070,-44.59006119,0,0,180, 1324123); //Lobby Button Right
- CreateDynamicObject(2886,300.16033936,-1521.84387207,-44.59006119,0,0,0, 1324123); //Lobby Button Right
- CreateDynamicObject(2886,298.87384033,-1495.87316895,-27.32773209,0,0,270, 1324123); //Private Office Button
- CreateDynamicObject(2886,300.49453735,-1495.33837891,-27.28091812,0,0,180.49487305, 1324123); //Private Office Button
- FBIPrivate[0] = CreateDynamicObject(1536,299.29986572,-1492.82666016,-28.73300552,0.00000000,0.00000000,270.00000000,1324123, .interiorid = 1); //Private Office Door Left
- FBIPrivate[1] = CreateDynamicObject(1536,299.33737183,-1495.83911133,-28.73300552,0.00000000,0.00000000,90.00000000,1324123, .interiorid = 1); //Private Office Door Right
- FBILobbyLeft = CreateDynamicObject(1536,295.40136719,-1498.43457031,-46.13965225,0.00000000,0.00000000,0.00000000,1324123, .interiorid = 1); //Lobby Door Left
- FBILobbyRight = CreateDynamicObject(1536,302.39355469,-1521.62988281,-46.13965225,0.00000000,0.00000000,179.99450684,1324123, .interiorid = 1); //Lobby Door Right
- CreateDynamicObject(1536,281.51000977,-1513.26867676,23.89100075,0.00000000,0.00000000,55.00000000); // Door in FBI garage
- CreateDynamicObject(14858,309.24609375,-1498.32812500,-29.38235855,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(veg_pol_main1) (1)
- CreateDynamicObject(14596,294.02929688,-1490.56835938,-35.43539047,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(paperchase_stairs) (1)
- CreateDynamicObject(14602,291.64355469,-1505.73730469,-40.76299286,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(paperchase01) (1)
- CreateDynamicObject(14593,308.32128906,-1535.68750000,-43.80562592,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(paperchase04) (1)
- CreateDynamicObject(8231,308.96191406,-1496.32617188,-38.62692261,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(vgsbikeschl05) (1)
- CreateDynamicObject(2395,300.22045898,-1490.45019531,-40.34618378,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,300.22143555,-1495.39575195,-40.34618378,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (2)
- CreateDynamicObject(2395,300.21777344,-1492.38110352,-38.05657196,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (3)
- CreateDynamicObject(1523,300.42980957,-1495.13427734,-40.51028061,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(gen_doorext10) (2)
- CreateDynamicObject(1491,317.16406250,-1489.74243164,-40.33905029,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(gen_doorint01) (3)
- CreateDynamicObject(18001,300.45489502,-1489.20227051,-38.69902802,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(int_barbera07) (2)
- CreateDynamicObject(8169,300.41653442,-1489.28137207,-37.95204163,73.49853516,270.00000000,179.99450684, .interiorid = 1); //object(vgs_guardhseflr) (2)
- CreateDynamicObject(2197,300.78768921,-1490.73352051,-40.85678101,90.00000000,0.00000000,0.00000000, .interiorid = 1); //object(filling_cabinet) (1)
- CreateDynamicObject(2197,300.78659058,-1489.06945801,-40.85678101,90.00000000,0.00000000,0.00000000, .interiorid = 1); //object(filling_cabinet) (2)
- CreateDynamicObject(2197,300.78652954,-1487.39941406,-40.85678101,90.00000000,0.00000000,0.00000000, .interiorid = 1); //object(filling_cabinet) (3)
- CreateDynamicObject(2515,300.82122803,-1491.78662109,-39.25311279,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_bs_sink) (1)
- CreateDynamicObject(2515,300.81488037,-1490.82836914,-39.25311279,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_bs_sink) (1)
- CreateDynamicObject(2515,300.80892944,-1489.84216309,-39.25311279,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_bs_sink) (1)
- CreateDynamicObject(2515,300.80908203,-1488.83654785,-39.25311279,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_bs_sink) (1)
- CreateDynamicObject(2738,313.09997559,-1491.99609375,-39.72719574,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_toilet_bs) (2)
- CreateDynamicObject(2957,314.01480103,-1489.76110840,-38.71026230,0.00000000,90.00000000,0.31311035, .interiorid = 1); //object(chinatgaragedoor) (2)
- CreateDynamicObject(2957,312.46731567,-1491.96643066,-38.71386337,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(chinatgaragedoor) (3)
- CreateDynamicObject(2957,312.46868896,-1491.96606445,-38.47619247,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(chinatgaragedoor) (4)
- CreateDynamicObject(2957,318.77011108,-1489.75573730,-38.71026230,0.00000000,90.00000000,0.00000000, .interiorid = 1); //object(chinatgaragedoor) (5)
- CreateDynamicObject(2957,317.91894531,-1489.73242188,-36.22134018,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(chinatgaragedoor) (6)
- CreateDynamicObject(2602,310.02233887,-1498.55773926,-39.60855103,0.00000000,0.00000000,225.12634277, .interiorid = 1); //object(police_cell_toilet) (1)
- CreateDynamicObject(2602,311.27764893,-1498.55688477,-39.60855103,0.00000000,0.00000000,225.12084961, .interiorid = 1); //object(police_cell_toilet) (2)
- CreateDynamicObject(2602,312.52236938,-1498.55688477,-39.60855103,0.00000000,0.00000000,225.12084961, .interiorid = 1); //object(police_cell_toilet) (3)
- CreateDynamicObject(2741,300.51300049,-1487.71777344,-38.53912735,0.00000000,0.00000000,90.19226074, .interiorid = 1); //object(cj_soap_disp) (1)
- CreateDynamicObject(2742,300.63558960,-1493.05334473,-38.75522995,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_handdrier) (1)
- CreateDynamicObject(2685,300.49490356,-1495.37646484,-38.65332794,0.00000000,0.00000000,90.04394531, .interiorid = 1); //object(cj_food_post1) (1)
- CreateDynamicObject(1522,276.98992920,-1506.53881836,-46.13738251,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(gen_doorshop3) (1)
- CreateDynamicObject(3798,301.63208008,-1521.53662109,-48.13918304,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(acbox3_sfs) (1)
- CreateDynamicObject(14420,301.31414795,-1504.62548828,-25.47793198,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(madddoggs09) (1)
- CreateDynamicObject(2395,296.75616455,-1490.17004395,-28.86031342,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,299.82714844,-1492.76855469,-28.86031342,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2952,299.73284912,-1476.11962891,-28.81253433,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(kmb_gimpdoor) (1)
- CreateDynamicObject(2952,299.73013306,-1473.99279785,-28.81253433,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(kmb_gimpdoor) (2)
- CreateDynamicObject(10558,307.77490234,-1490.10229492,-26.71455383,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(tbnsfs) (4)
- CreateDynamicObject(10558,303.61007690,-1474.12097168,-26.71455383,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(tbnsfs) (5)
- CreateDynamicObject(12814,313.29492188,-1478.75097656,-28.73871231,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(cuntyeland04) (1)
- CreateDynamicObject(12814,313.79980469,-1473.21289062,-34.54065323,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cuntyeland04) (2)
- CreateDynamicObject(5066,310.43295288,-1484.74877930,-33.05167389,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(mondoshave_las) (1)
- CreateDynamicObject(14598,303.44128418,-1505.88110352,-30.57250977,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(paperchase_glass) (1)
- CreateDynamicObject(2395,305.25082397,-1489.78857422,-28.86031342,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,301.95947266,-1490.32165527,-28.86031342,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,301.95996094,-1494.03027344,-28.86031342,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,303.02163696,-1495.31762695,-28.86031342,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(10558,299.79708862,-1485.71166992,-26.71455383,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(tbnsfs) (5)
- CreateDynamicObject(10558,299.79199219,-1477.44433594,-26.71455383,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(tbnsfs) (5)
- CreateDynamicObject(10558,308.07742310,-1477.47680664,-26.71455383,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(tbnsfs) (5)
- CreateDynamicObject(10558,308.07962036,-1485.49145508,-26.71455383,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(tbnsfs) (5)
- CreateDynamicObject(2395,303.70001221,-1495.32324219,-34.54189301,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,303.47012329,-1481.95263672,-34.54189301,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,303.47064209,-1485.67785645,-34.54189301,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,303.47103882,-1489.40173340,-34.54189301,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,303.47222900,-1493.12512207,-34.54189301,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,300.50918579,-1485.34570312,-34.54189301,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,300.50698853,-1489.05407715,-34.54189301,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,300.50997925,-1492.77001953,-34.54189301,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,300.50823975,-1484.68981934,-34.54189301,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (1)
- CreateDynamicObject(14782,309.60202026,-1543.15441895,-45.20714951,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(int3int_boxing30) (1)
- CreateDynamicObject(14782,309.58764648,-1536.19519043,-45.20714951,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(int3int_boxing30) (2)
- CreateDynamicObject(1827,305.07128906,-1533.61816406,-46.13375092,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(man_sdr_tables) (1)
- CreateDynamicObject(1811,304.16955566,-1531.93151855,-45.50744629,0.00000000,0.00000000,117.60995483, .interiorid = 1); //object(med_din_chair_5) (1)
- CreateDynamicObject(1811,305.66729736,-1531.85888672,-45.50744629,0.00000000,0.00000000,69.65365601, .interiorid = 1); //object(med_din_chair_5) (2)
- CreateDynamicObject(16000,309.58935547,-1500.71423340,-26.22244644,270.00000000,0.00000000,90.00000000, .interiorid = 1); //object(drvin_screen) (1)
- CreateDynamicObject(16000,310.02539062,-1492.14257812,-31.78104019,270.00000000,0.00000000,90.00000000, .interiorid = 1); //object(drvin_screen) (2)
- CreateDynamicObject(2395,309.09744263,-1546.07031250,-46.13375092,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (19)
- CreateDynamicObject(2395,309.09747314,-1542.33789062,-46.13375092,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (20)
- CreateDynamicObject(2395,309.09802246,-1538.61096191,-46.13375092,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (21)
- CreateDynamicObject(2395,309.09780884,-1534.87768555,-46.13375092,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (22)
- CreateDynamicObject(2395,309.09716797,-1534.07751465,-46.13375092,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_sports_wall) (23)
- CreateDynamicObject(2395,308.94421387,-1531.32495117,-46.13555145,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (24)
- CreateDynamicObject(2395,308.94485474,-1535.05346680,-46.13555145,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (25)
- CreateDynamicObject(2395,308.94528198,-1538.78503418,-46.13555145,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (26)
- CreateDynamicObject(2395,308.94180298,-1542.47778320,-46.13555145,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (27)
- CreateDynamicObject(2395,308.94659424,-1543.31518555,-46.13555145,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_sports_wall) (28)
- CreateDynamicObject(1432,307.47851562,-1544.94921875,-46.13375092,0.00000000,0.00000000,350.07385254, .interiorid = 1); //object(dyn_table_2) (1)
- CreateDynamicObject(1703,297.30395508,-1520.81726074,-46.12367630,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(kb_couch02) (1)
- CreateDynamicObject(1703,298.31497192,-1517.79614258,-46.12367630,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(kb_couch02) (2)
- CreateDynamicObject(2725,298.29296875,-1520.72167969,-45.69048691,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(lm_striptable) (1)
- CreateDynamicObject(1806,309.10546875,-1505.52636719,-46.12367630,0.00000000,0.00000000,105.87994385, .interiorid = 1); //object(med_office_chair) (1)
- CreateDynamicObject(2190,307.29687500,-1506.07812500,-45.40361786,0.00000000,0.00000000,104.99633789, .interiorid = 1); //object(pc_1) (1)
- CreateDynamicObject(1892,278.57611084,-1506.30029297,-46.13018036,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(security_gatsh) (1)
- CreateDynamicObject(2773,304.49935913,-1504.94628906,-45.61295319,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,304.50588989,-1506.51086426,-45.61295319,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (2)
- CreateDynamicObject(2773,302.58798218,-1506.51135254,-45.61295319,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (3)
- CreateDynamicObject(2773,303.51632690,-1503.98291016,-45.61295319,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_airprt_bar) (4)
- CreateDynamicObject(2773,302.57733154,-1503.02441406,-45.61295319,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (5)
- CreateDynamicObject(2773,301.60446167,-1505.54931641,-45.61295319,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_airprt_bar) (6)
- CreateDynamicObject(2773,300.64788818,-1503.04052734,-45.61295319,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (7)
- CreateDynamicObject(2773,299.66088867,-1503.99853516,-45.61295319,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_airprt_bar) (8)
- CreateDynamicObject(2773,298.72500610,-1504.95776367,-45.61115265,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (9)
- CreateDynamicObject(2773,300.66802979,-1506.51232910,-45.61115265,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (10)
- CreateDynamicObject(2773,298.75299072,-1506.51000977,-45.61295319,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_airprt_bar) (11)
- CreateDynamicObject(12814,309.92465210,-1460.12158203,-34.53705215,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cuntyeland04) (2)
- CreateDynamicObject(8169,304.51583862,-1444.51806641,-32.52923965,107.00000000,90.00000000,180.00000000, .interiorid = 1); //object(vgs_guardhseflr) (1)
- CreateDynamicObject(8169,304.51293945,-1449.76049805,-32.52923965,106.99584961,90.00000000,179.99450684, .interiorid = 1); //object(vgs_guardhseflr) (3)
- CreateDynamicObject(8169,313.10473633,-1444.55773926,-32.52923965,106.99588013,90.00000000,0.00000000, .interiorid = 1); //object(vgs_guardhseflr) (4)
- CreateDynamicObject(8169,313.10540771,-1449.97326660,-32.52923965,106.99584961,90.00000000,0.00000000, .interiorid = 1); //object(vgs_guardhseflr) (5)
- CreateDynamicObject(8169,301.08428955,-1441.09985352,-32.52923965,106.99588013,90.00000000,270.00000000, .interiorid = 1); //object(vgs_guardhseflr) (7)
- CreateDynamicObject(8169,300.08203125,-1441.09960938,-32.52923965,106.99584961,90.00000000,270.00000000, .interiorid = 1); //object(vgs_guardhseflr) (8)
- CreateDynamicObject(8169,316.52737427,-1441.10034180,-32.52923965,106.99588013,90.00000000,270.00000000, .interiorid = 1); //object(vgs_guardhseflr) (9)
- CreateDynamicObject(8169,319.76895142,-1441.10217285,-32.52923965,106.99584961,90.00000000,270.00000000, .interiorid = 1); //object(vgs_guardhseflr) (10)
- CreateDynamicObject(8169,321.71502686,-1444.51538086,-32.52923965,106.99584961,90.00000000,179.99450684, .interiorid = 1); //object(vgs_guardhseflr) (11)
- CreateDynamicObject(8169,321.71609497,-1451.29589844,-32.52923965,106.99584961,90.00000000,179.99450684, .interiorid = 1); //object(vgs_guardhseflr) (12)
- CreateDynamicObject(8169,296.79656982,-1444.37243652,-32.52923965,106.99584961,90.00000000,0.00000000, .interiorid = 1); //object(vgs_guardhseflr) (13)
- CreateDynamicObject(8169,296.80148315,-1451.28527832,-32.52923965,106.99584961,90.00000000,0.00000000, .interiorid = 1); //object(vgs_guardhseflr) (14)
- CreateDynamicObject(14856,309.25753784,-1451.73974609,-32.65511322,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cellsa) (1)
- CreateDynamicObject(8169,314.25317383,-1444.62646484,-32.52923965,106.99588013,90.00000000,90.00000000, .interiorid = 1); //object(vgs_guardhseflr) (15)
- CreateDynamicObject(8169,304.31835938,-1444.62304688,-32.52923965,106.99584961,90.00000000,90.00000000, .interiorid = 1); //object(vgs_guardhseflr) (16)
- CreateDynamicObject(2957,308.80404663,-1453.56689453,-32.47067261,0.00000000,90.00000000,0.00000000, .interiorid = 1); //object(chinatgaragedoor) (1)
- CreateDynamicObject(2957,305.55273438,-1453.56542969,-30.41305542,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(chinatgaragedoor) (7)
- CreateDynamicObject(2957,311.57226562,-1453.56542969,-30.41333008,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(chinatgaragedoor) (8)
- CreateDynamicObject(1491,305.67440796,-1453.56250000,-34.52923965,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(gen_doorint01) (1)
- CreateDynamicObject(1491,310.42266846,-1453.56958008,-34.52923965,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(gen_doorint01) (2)
- CreateDynamicObject(2957,304.04525757,-1453.56958008,-32.47067261,0.00000000,90.00000000,0.00000000, .interiorid = 1); //object(chinatgaragedoor) (1)
- CreateDynamicObject(2957,313.55474854,-1453.56701660,-32.47067261,0.00000000,90.00000000,0.00000000, .interiorid = 1); //object(chinatgaragedoor) (1)
- CreateDynamicObject(1649,308.91375732,-1451.29418945,-32.86349869,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(wglasssmash) (1)
- CreateDynamicObject(1649,308.91308594,-1451.29394531,-32.86349869,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(wglasssmash) (2)
- CreateDynamicObject(8169,308.91879272,-1450.16955566,-32.52923965,106.99588013,90.00000000,180.00000000, .interiorid = 1); //object(vgs_guardhseflr) (8)
- CreateDynamicObject(1649,308.91668701,-1451.29418945,-29.60837173,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(wglasssmash) (3)
- CreateDynamicObject(1649,308.91128540,-1451.29431152,-29.60297012,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(wglasssmash) (4)
- CreateDynamicObject(14532,309.53399658,-1452.88830566,-33.54652023,0.00000000,0.00000000,315.00000000, .interiorid = 1); //object(tv_stand_driv) (1)
- CreateDynamicObject(1671,311.07064819,-1450.01330566,-34.06902695,0.00000000,0.00000000,311.60888672, .interiorid = 1); //object(swivelchair_a) (1)
- CreateDynamicObject(1671,311.91442871,-1451.20056152,-34.06902695,0.00000000,0.00000000,282.31018066, .interiorid = 1); //object(swivelchair_a) (2)
- CreateDynamicObject(1810,305.47702026,-1450.94470215,-34.52923965,0.00000000,0.00000000,87.65490723, .interiorid = 1); //object(cj_foldchair) (1)
- CreateDynamicObject(1810,307.89422607,-1451.39428711,-34.52923965,0.00000000,0.00000000,273.15954590, .interiorid = 1); //object(cj_foldchair) (2)
- CreateDynamicObject(1827,306.67138672,-1451.28918457,-34.52923965,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(man_sdr_tables) (2)
- CreateDynamicObject(2009,290.45791626,-1468.11608887,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(officedesk2l) (1)
- CreateDynamicObject(2197,286.46551514,-1467.00256348,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(filling_cabinet) (4)
- CreateDynamicObject(2200,292.76733398,-1469.83776855,-34.52298355,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(med_office5_unit_1) (1)
- CreateDynamicObject(2204,287.41705322,-1471.50622559,-34.52298355,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(med_office8_cabinet) (1)
- CreateDynamicObject(1714,290.53604126,-1467.20202637,-34.52298355,0.00000000,0.00000000,289.61608887, .interiorid = 1); //object(kb_swivelchair1) (1)
- CreateDynamicObject(1778,329.46221924,-1474.47827148,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_mop_pail) (1)
- CreateDynamicObject(1771,328.46612549,-1476.94348145,-33.88931656,0.00000000,0.00000000,268.69885254, .interiorid = 1); //object(cj_bunk_bed1) (1)
- CreateDynamicObject(1337,322.30862427,-1474.60803223,-33.87375641,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(binnt07_la) (2)
- CreateDynamicObject(1338,326.28952026,-1476.88671875,-33.81167221,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(binnt08_la) (1)
- CreateDynamicObject(1440,324.06448364,-1476.95019531,-34.00386810,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(dyn_box_pile_3) (1)
- CreateDynamicObject(1265,325.22683716,-1476.19226074,-34.05393982,0.00000000,0.00000000,296.25524902, .interiorid = 1); //object(blackbag2) (1)
- CreateDynamicObject(1264,323.25726318,-1474.70031738,-34.05083847,0.00000000,0.00000000,279.02832031, .interiorid = 1); //object(blackbag1) (1)
- CreateDynamicObject(11631,329.22161865,-1468.77941895,-33.27708054,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(ranch_desk) (1)
- CreateDynamicObject(2607,325.18939209,-1468.12915039,-34.12730026,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(polce_desk2) (1)
- CreateDynamicObject(2356,328.48495483,-1469.47021484,-34.52298355,0.00000000,0.00000000,303.83496094, .interiorid = 1); //object(police_off_chair) (1)
- CreateDynamicObject(2207,303.88574219,-1480.73437500,-28.73089981,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(med_office7_desk_1) (1)
- CreateDynamicObject(1714,305.63839722,-1481.56811523,-28.75525284,0.00000000,0.00000000,286.04431152, .interiorid = 1); //object(kb_swivelchair1) (2)
- CreateDynamicObject(2190,303.95974731,-1482.46374512,-27.95352745,0.00000000,0.00000000,111.03887939, .interiorid = 1); //object(pc_1) (2)
- CreateDynamicObject(2311,304.88085938,-1489.10546875,-28.73089981,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_tv_table2) (2)
- CreateDynamicObject(2700,300.06005859,-1481.78222656,-25.16612434,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_sex_tv2) (1)
- CreateDynamicObject(1893,301.89276123,-1493.61791992,-31.40267563,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(shoplight1) (1)
- CreateDynamicObject(1893,301.88687134,-1486.12084961,-31.40267563,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(shoplight1) (2)
- CreateDynamicObject(1893,301.28695679,-1483.02026367,-31.40267563,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(shoplight1) (3)
- CreateDynamicObject(2007,285.47372437,-1461.86901855,-34.53079605,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(filing_cab_nu01) (1)
- CreateDynamicObject(2007,285.47827148,-1465.82226562,-34.53079605,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(filing_cab_nu01) (2)
- CreateDynamicObject(2008,289.19281006,-1463.93908691,-34.53079605,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(officedesk1) (1)
- CreateDynamicObject(1714,290.24304199,-1463.02392578,-34.52298355,0.00000000,0.00000000,289.61608887, .interiorid = 1); //object(kb_swivelchair1) (1)
- CreateDynamicObject(2608,292.67315674,-1465.32287598,-33.81932449,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(polce_shelf) (1)
- CreateDynamicObject(2609,292.52435303,-1461.60766602,-33.79908752,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_p_fileing1) (1)
- CreateDynamicObject(2191,292.37973022,-1462.93566895,-34.53079605,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(med_office2_cab) (1)
- CreateDynamicObject(16662,309.20010376,-1463.23413086,-24.77413940,63.39999390,90.00000000,270.00000000, .interiorid = 1); //object(a51_radar_stuff) (1)
- CreateDynamicObject(1668,304.25622559,-1480.90881348,-27.78682327,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(propvodkabotl1) (1)
- CreateDynamicObject(2855,303.82894897,-1481.18969727,-27.95352745,0.00000000,0.00000000,65.86511230, .interiorid = 1); //object(gb_bedmags05) (1)
- CreateDynamicObject(2852,303.61880493,-1482.01403809,-27.95352745,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(gb_bedmags02) (1)
- CreateDynamicObject(1736,307.49340820,-1481.78393555,-25.27207184,0.00000000,0.00000000,269.48693848, .interiorid = 1); //object(cj_stags_head) (1)
- CreateDynamicObject(2491,308.43945312,-1467.54589844,-35.16662979,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(model_stand) (1)
- CreateDynamicObject(1730,300.42053223,-1474.60668945,-28.73089981,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(swank_cabinet_3) (1)
- CreateDynamicObject(2204,301.84945679,-1474.26086426,-28.73089981,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(med_office8_cabinet) (2)
- CreateDynamicObject(2200,302.21353149,-1474.26831055,-26.94274521,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(med_office5_unit_1) (2)
- CreateDynamicObject(1703,304.62121582,-1474.67419434,-28.73089981,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(kb_couch02) (3)
- CreateDynamicObject(12814,313.29492188,-1478.75097656,-24.23483658,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(cuntyeland04) (1)
- CreateDynamicObject(2002,302.75833130,-1489.31335449,-28.73089981,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(water_coolnu) (1)
- CreateDynamicObject(2288,300.29425049,-1479.18029785,-26.33251381,0.00000000,0.00000000,90.09881592, .interiorid = 1); //object(frame_3) (1)
- CreateDynamicObject(2007,314.12896729,-1505.99865723,-46.13018036,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(filing_cab_nu01) (3)
- CreateDynamicObject(1806,312.65527344,-1512.03027344,-46.12367630,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(med_office_chair) (1)
- CreateDynamicObject(1806,312.62911987,-1518.00183105,-46.12367630,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(med_office_chair) (1)
- CreateDynamicObject(1806,312.64999390,-1499.31555176,-46.12367630,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(med_office_chair) (1)
- CreateDynamicObject(1806,312.67895508,-1493.98632812,-46.12367630,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(med_office_chair) (1)
- CreateDynamicObject(2190,310.62237549,-1512.26940918,-45.21636200,0.00000000,0.00000000,104.99630737, .interiorid = 1); //object(pc_1) (1)
- CreateDynamicObject(2190,310.59692383,-1518.19750977,-45.21636200,0.00000000,0.00000000,104.99630737, .interiorid = 1); //object(pc_1) (1)
- CreateDynamicObject(2190,310.74307251,-1499.55859375,-45.21636200,0.00000000,0.00000000,104.99630737, .interiorid = 1); //object(pc_1) (1)
- CreateDynamicObject(2190,310.70114136,-1494.10925293,-45.21636200,0.00000000,0.00000000,104.99633789, .interiorid = 1); //object(pc_1) (1)
- CreateDynamicObject(1886,308.70672607,-1467.93701172,-30.56187057,16.16790771,0.19573975,179.06506348, .interiorid = 1); //object(shop_sec_cam) (1)
- CreateDynamicObject(2747,308.48376465,-1472.51135254,-34.11668777,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_donut_table) (1)
- CreateDynamicObject(2747,310.08023071,-1472.51135254,-34.11668777,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_donut_table) (2)
- CreateDynamicObject(2747,306.88693237,-1472.51135254,-34.11668777,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_donut_table) (3)
- CreateDynamicObject(2747,306.88693237,-1473.50244141,-34.11668777,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_donut_table) (4)
- CreateDynamicObject(2747,308.48376465,-1473.50244141,-34.11668777,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_donut_table) (5)
- CreateDynamicObject(2747,310.08023071,-1473.50244141,-34.11668777,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(cj_donut_table) (6)
- CreateDynamicObject(1806,306.94726562,-1474.57141113,-34.52923965,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(med_office_chair) (6)
- CreateDynamicObject(1806,308.53701782,-1474.58837891,-34.52923965,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(med_office_chair) (7)
- CreateDynamicObject(1806,310.08981323,-1474.62011719,-34.52923965,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(med_office_chair) (8)
- CreateDynamicObject(1806,310.13595581,-1471.40625000,-34.52923965,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(med_office_chair) (9)
- CreateDynamicObject(1806,308.49731445,-1471.39831543,-34.52923965,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(med_office_chair) (10)
- CreateDynamicObject(1806,306.94650269,-1471.37988281,-34.52923965,0.00000000,0.00000000,179.99450684, .interiorid = 1); //object(med_office_chair) (11)
- CreateDynamicObject(1806,305.62155151,-1473.00012207,-34.52923965,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(med_office_chair) (12)
- CreateDynamicObject(1806,311.44116211,-1472.99316406,-34.52923965,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(med_office_chair) (13)
- CreateDynamicObject(16782,322.13433838,-1469.29296875,-32.56002808,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(a51_radar_scan) (1)
- CreateDynamicObject(2611,325.91857910,-1473.77783203,-32.58835220,0.00000000,0.00000000,179.93066406, .interiorid = 1); //object(police_nb1) (1)
- CreateDynamicObject(14527,304.30047607,-1480.94714355,-26.86861801,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(fannyfan) (1)
- CreateDynamicObject(2198,289.17578125,-1474.82629395,-34.53079605,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(med_office2_desk_3) (1)
- CreateDynamicObject(1714,290.23767090,-1474.06457520,-34.53079605,0.00000000,0.00000000,300.22509766, .interiorid = 1); //object(kb_swivelchair1) (4)
- CreateDynamicObject(2182,292.43322754,-1475.33679199,-34.53079605,0.00000000,0.00000000,180.00000000, .interiorid = 1); //object(med_office5_desk_1) (1)
- CreateDynamicObject(2000,285.47576904,-1472.12133789,-34.53079605,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(filing_cab_nu) (1)
- CreateDynamicObject(2000,285.47576904,-1472.64123535,-34.53079605,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(filing_cab_nu) (2)
- CreateDynamicObject(14632,321.33325195,-1475.83569336,-33.03472900,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(paperchase_bits2b) (1)
- CreateDynamicObject(2186,329.36141968,-1464.33728027,-34.52298355,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(photocopier_1) (1)
- CreateDynamicObject(2206,329.35076904,-1471.45605469,-34.52298355,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(med_office8_desk_02) (1)
- CreateDynamicObject(2606,329.50375366,-1472.36730957,-33.36120224,0.00000000,0.00000000,270.00000000, .interiorid = 1); //object(cj_police_counter2) (1)
- CreateDynamicObject(2612,304.02514648,-1463.07299805,-32.50022888,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(police_nb2) (1)
- CreateDynamicObject(2611,314.25363159,-1463.07299805,-32.39287949,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(police_nb1) (2)
- CreateDynamicObject(1722,323.52783203,-1485.03967285,-34.52298355,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(off_chairnu) (1)
- CreateDynamicObject(1722,322.35116577,-1485.02929688,-34.52298355,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(off_chairnu) (2)
- CreateDynamicObject(1722,321.10070801,-1485.05798340,-34.52298355,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(off_chairnu) (3)
- CreateDynamicObject(1722,325.25961304,-1481.93444824,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(off_chairnu) (4)
- CreateDynamicObject(1722,325.27322388,-1480.63781738,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(off_chairnu) (5)
- CreateDynamicObject(1722,325.24453735,-1479.48413086,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(off_chairnu) (6)
- CreateDynamicObject(1808,317.90686035,-1482.45349121,-34.52298355,0.00000000,0.00000000,90.00000000, .interiorid = 1); //object(cj_watercooler2) (1)
- CreateDynamicObject(15038,325.23391724,-1478.51025391,-33.90579605,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(plant_pot_3_sv) (1)
- CreateDynamicObject(1616,317.07241821,-1498.25427246,-37.11650085,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(nt_securecam1_01) (1)
- CreateDynamicObject(1616,281.14285278,-1481.05761719,-31.00306702,0.00000000,0.00000000,267.23352051, .interiorid = 1); //object(nt_securecam1_01) (2)
- CreateDynamicObject(1616,318.01690674,-1485.05334473,-31.00306702,0.00000000,0.00000000,267.23144531, .interiorid = 1); //object(nt_securecam1_01) (3)
- CreateDynamicObject(1616,277.92636108,-1509.63354492,-43.22993469,0.00000000,0.00000000,267.23144531, .interiorid = 1); //object(nt_securecam1_01) (4)
- // Hospital Interior
- CreateDynamicObject(18030, 1174.7900390625, -1343.57421875, 2424.4133300781, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(14466, 1214.5484619141, -1360.7130126953, 2432.2053222656, 0, 0, 270.5, .interiorid = 1);
- CreateDynamicObject(7191, 1191.828125, -1351.0107421875, 2421.6208496094, 0, 270, 0, .interiorid = 1);
- CreateDynamicObject(14782, 1187.7976074219, -1353.7375488281, 2423.0622558594, 0, 0, 90.5, .interiorid = 1);
- CreateDynamicObject(1523, 1190.55078125, -1350.01953125, 2422.2648925781, 0, 0, 180.24719238281, .interiorid = 1);
- CreateDynamicObject(18070, 1169.6414794922, -1345.1927490234, 2422.5458984375, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(4724, 1158.5886230469, -1353.6053466797, 2423.7512207031, 0, 0, 0.25, .interiorid = 1);
- CreateDynamicObject(2001, 1163.2530517578, -1355.927734375, 2422.0461425781, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(932, 1185.4672851563, -1355.8714599609, 2422.0461425781, 0, 0, 272.5, .interiorid = 1);
- CreateDynamicObject(932, 1183.7150878906, -1355.9479980469, 2422.0461425781, 0, 0, 272.49938964844, .interiorid = 1);
- CreateDynamicObject(932, 1182.11328125, -1355.9810791016, 2422.0461425781, 0, 0, 272.49938964844, .interiorid = 1);
- CreateDynamicObject(932, 1180.4866943359, -1355.9487304688, 2422.0461425781, 0, 0, 272.49938964844, .interiorid = 1);
- CreateDynamicObject(1557, 1168.1516113281, -1357.0413818359, 2422.0461425781, 0, 0, 359.5, .interiorid = 1);
- CreateDynamicObject(1557, 1171.1590576172, -1357.0489501953, 2422.0461425781, 0, 0, 180, .interiorid = 1);
- CreateDynamicObject(2596, 1156.7939453125, -1348.4765625, 2425.3452148438, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2596, 1163.4686279297, -1354.6719970703, 2425.3083496094, 0, 0, 270.25, .interiorid = 1);
- CreateDynamicObject(2773, 1185.4097900391, -1354.6234130859, 2422.5634765625, 0, 0, 90.25, .interiorid = 1);
- CreateDynamicObject(2773, 1183.4921875, -1354.6352539063, 2422.5634765625, 0, 0, 90.247192382813, .interiorid = 1);
- CreateDynamicObject(2773, 1181.576171875, -1354.6499023438, 2422.5634765625, 0, 0, 90.247192382813, .interiorid = 1);
- CreateDynamicObject(2190, 1168.4984130859, -1346.9685058594, 2423.0561523438, 0, 0.25, 182.75, .interiorid = 1);
- CreateDynamicObject(2190, 1170.7844238281, -1346.9844970703, 2423.0561523438, 0, 0.2471923828125, 182.74658203125, .interiorid = 1);
- CreateDynamicObject(1663, 1170.712890625, -1345.3366699219, 2422.5063476563, 0, 0, 17.25, .interiorid = 1);
- CreateDynamicObject(1663, 1168.3572998047, -1345.3454589844, 2422.5063476563, 0, 0, 355.99853515625, .interiorid = 1);
- CreateDynamicObject(2894, 1169.7390136719, -1347.2918701172, 2423.0561523438, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(7930, 1189.5693359375, -1345.9460449219, 2423.5441894531, 90, 180.0054931640600549316406, 269.98352050781, .interiorid = 1);
- CreateDynamicObject(3962, 1156.3192138672, -1357.0517578125, 2424.2602539063, 0, 0, 268.5, .interiorid = 1);
- CreateDynamicObject(2257, 1152.9465332031, -1351.5755615234, 2424.3505859375, 0, 180, 89.999969482422, .interiorid = 1);
- CreateDynamicObject(2243, 1166.4963378906, -1348.0822753906, 2422.3195800781, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2243, 1172.7916259766, -1347.9880371094, 2422.3195800781, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2954, 1190.2352294922, -1346.0294189453, 2422.0461425781, 0, 0, 270.5, .interiorid = 1);
- CreateDynamicObject(1726, 1155.638671875, -1348.72265625, 2422.0461425781, 0, 0, 0.25, .interiorid = 1);
- CreateDynamicObject(1726, 1153.4948730469, -1352.5561523438, 2422.0461425781, 0, 0, 89.997192382813, .interiorid = 1);
- CreateDynamicObject(1726, 1157.3165283203, -1355.7957763672, 2422.0461425781, 0, 0, 179.99450683594, .interiorid = 1);
- CreateDynamicObject(1727, 1154.0897216797, -1354.7977294922, 2422.0461425781, 0, 0, 123, .interiorid = 1);
- CreateDynamicObject(1727, 1153.9633789063, -1349.6390380859, 2422.0461425781, 0, 0, 44.997436523438, .interiorid = 1);
- CreateDynamicObject(1727, 1162.5498046875, -1354.5593261719, 2422.0461425781, 0, 0, 220.99743652344, .interiorid = 1);
- CreateDynamicObject(7191, 1157.6741943359, -1339.1177978516, 2424.0207519531, 0, 0, 270, .interiorid = 1);
- CreateDynamicObject(7191, 1157.6701660156, -1338.3753662109, 2424.0207519531, 0, 0, 270, .interiorid = 1);
- CreateDynamicObject(1776, 1153.2979736328, -1343.3521728516, 2423.1455078125, 0, 0, 90.75, .interiorid = 1);
- CreateDynamicObject(1209, 1153.2958984375, -1346.2855224609, 2422.0461425781, 0, 0, 90.5, .interiorid = 1);
- CreateDynamicObject(7191, 1167.7000732422, -1313.4320068359, 2427.9807128906, 0, 0, 180, .interiorid = 1);
- CreateDynamicObject(7191, 1191.1739501953, -1335.5490722656, 2424.0207519531, 0, 0, 90, .interiorid = 1);
- CreateDynamicObject(7191, 1167.69921875, -1313.431640625, 2424.0207519531, 0, 0, 179.99450683594, .interiorid = 1);
- CreateDynamicObject(7191, 1191.173828125, -1335.548828125, 2427.9807128906, 0, 0, 90, .interiorid = 1);
- CreateDynamicObject(2603, 1154.3084716797, -1331.0260009766, 2422.4995117188, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2603, 1157.8651123047, -1331.033203125, 2422.4995117188, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2603, 1162.1901855469, -1330.9475097656, 2422.4995117188, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2603, 1165.8120117188, -1330.8693847656, 2422.4995117188, 0, 0, 0, .interiorid = 1);
- CreateDynamicObject(2596, 1156.2908935547, -1337.9664306641, 2424.7763671875, 0, 0, 179.25, .interiorid = 1);
- CreateDynamicObject(2596, 1163.3677978516, -1337.9395751953, 2424.7763671875, 0, 0, 179.24743652344, .interiorid = 1);
- CreateDynamicObject(3383, 1175.9519042969, -1330.5677490234, 2422.0461425781, 0, 0, 179.75, .interiorid = 1);
- CreateDynamicObject(3383, 1183.3975830078, -1330.3992919922, 2422.0461425781, 0, 0, 179.74731445313, .interiorid = 1);
- CreateDynamicObject(3388, 1172.5631103516, -1329.8569335938, 2422.0461425781, 0, 0, 90.25, .interiorid = 1);
- CreateDynamicObject(3388, 1180.3153076172, -1329.8544921875, 2422.0461425781, 0, 0, 90.247192382813, .interiorid = 1);
- CreateDynamicObject(3394, 1184.6655273438, -1334.9022216797, 2422.0461425781, 0, 0, 269.75, .interiorid = 1);
- CreateDynamicObject(3394, 1175.7877197266, -1334.8275146484, 2422.0461425781, 0, 0, 269.74731445313, .interiorid = 1);
-
- // Fire Department
- CreateDynamicObject(14853, 233.17, 151.00, 2002.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(14855, 199.40, 146.71, 2000.94, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(8133, 222.43, 152.07, 2022.76, 90.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(14858, 213.01, 151.55, 2002.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(8133, 172.93, 150.34, 1997.00, 0.00, 90.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2206, 189.63, 132.41, 1996.78, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2206, 184.74, 132.63, 1996.84, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2737, 189.22, 135.20, 1999.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(1663, 188.62, 130.16, 1997.31, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1663, 189.68, 130.87, 1997.31, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1663, 187.74, 130.89, 1997.31, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1663, 184.92, 131.06, 1997.31, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1663, 183.72, 130.35, 1997.31, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1663, 182.57, 131.09, 1997.31, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1671, 188.75, 133.92, 1997.30, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(1671, 183.78, 133.49, 1997.30, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(16378, 178.77, 133.37, 1997.58, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(1721, 178.29, 132.04, 1997.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(1721, 176.43, 132.10, 1997.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2161, 175.98, 128.29, 1996.90, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2161, 175.98, 129.59, 1996.90, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2163, 181.20, 127.73, 1996.88, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2163, 181.20, 127.73, 1997.78, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(14455, 191.37, 128.10, 1998.53, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2002, 186.88, 135.02, 1997.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2002, 181.72, 134.96, 1997.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(644, 190.81, 134.36, 1997.00, 0.00, 0.00, 104.00, .interiorid = 73);
- CreateDynamicObject(2240, 185.72, 127.87, 1997.26, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(14782, 189.27, 167.67, 1997.86, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(14782, 192.03, 167.76, 1997.86, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(14401, 179.46, 171.55, 1997.00, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(14401, 185.46, 171.59, 1997.00, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(14401, 202.21, 176.02, 1997.00, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(14401, 197.28, 176.04, 1997.00, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(14401, 191.47, 176.12, 1997.00, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(14401, 195.93, 175.97, 1997.00, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(366, 189.03, 171.99, 1997.95, 0.00, 40.00, 0.00, .interiorid = 73);
- CreateDynamicObject(14397, 204.39, 172.34, 1996.37, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(366, 189.59, 172.00, 1997.95, 0.00, 40.00, 0.00, .interiorid = 73);
- CreateDynamicObject(366, 190.07, 172.02, 1997.95, 0.00, 40.00, 0.00, .interiorid = 73);
- CreateDynamicObject(366, 190.51, 172.01, 1997.95, 0.00, 40.00, 0.00, .interiorid = 73);
- CreateDynamicObject(366, 191.01, 172.03, 1997.95, 0.00, 40.00, 0.00, .interiorid = 73);
- CreateDynamicObject(366, 191.45, 172.01, 1997.95, 0.00, 40.00, 0.00, .interiorid = 73);
- CreateDynamicObject(366, 192.19, 172.26, 1997.94, 0.00, 40.00, 236.00, .interiorid = 73);
- CreateDynamicObject(2395, 193.89, 162.71, 1996.87, 0.00, 0.00, 309.00, .interiorid = 73);
- CreateDynamicObject(2395, 193.90, 162.70, 1999.58, 0.00, 0.00, 309.00, .interiorid = 73);
- CreateDynamicObject(1523, 193.71, 163.13, 1996.83, 0.00, 0.00, 129.00, .interiorid = 73);
- CreateDynamicObject(2395, 192.61, 164.30, 2002.55, 0.00, 90.00, 309.00, .interiorid = 73);
- CreateDynamicObject(2395, 195.92, 160.21, 2000.08, 0.00, 90.00, 309.00, .interiorid = 73);
- CreateDynamicObject(2395, 193.89, 162.71, 1996.87, 0.00, 180.00, 309.00, .interiorid = 73);
- CreateDynamicObject(2395, 195.81, 160.69, 1999.58, 0.00, 0.00, 129.00, .interiorid = 73);
- CreateDynamicObject(2395, 195.81, 160.69, 1996.87, 0.00, 0.00, 129.00, .interiorid = 73);
- CreateDynamicObject(2395, 197.83, 158.17, 2000.08, 0.00, 90.00, 129.00, .interiorid = 73);
- CreateDynamicObject(2395, 194.50, 162.28, 2002.55, 0.00, 90.00, 129.00, .interiorid = 73);
- CreateDynamicObject(2198, 187.40, 148.76, 1996.80, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2198, 188.44, 149.81, 1996.80, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2198, 189.37, 148.76, 1996.80, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2198, 186.49, 149.80, 1996.80, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2356, 187.91, 147.53, 1996.85, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2356, 187.76, 150.76, 1996.85, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2356, 190.04, 149.26, 1996.85, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2356, 185.33, 149.21, 1996.85, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2198, 180.87, 147.97, 1997.00, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2198, 179.89, 149.01, 1997.00, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2198, 179.86, 147.06, 1997.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2198, 180.88, 149.94, 1997.00, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2356, 180.23, 151.13, 1996.85, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2356, 180.45, 145.81, 1996.85, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2356, 181.97, 148.37, 1996.85, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2356, 178.87, 148.29, 1996.85, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2202, 184.09, 159.46, 1996.85, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2202, 178.75, 159.42, 1996.80, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2197, 190.60, 159.55, 1996.80, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2197, 190.62, 158.86, 1996.80, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2197, 190.62, 158.19, 1996.80, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2197, 190.63, 157.51, 1996.81, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2191, 191.16, 156.67, 1996.73, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2198, 183.86, 153.59, 1997.00, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2198, 184.94, 154.59, 1996.80, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2198, 185.87, 153.57, 1996.80, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2198, 182.97, 154.58, 1996.80, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2356, 182.00, 154.01, 1996.85, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2356, 184.37, 152.52, 1996.85, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2356, 186.76, 154.00, 1996.85, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2356, 184.40, 155.67, 1996.85, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2204, 191.66, 145.73, 1996.80, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2001, 191.50, 154.56, 1996.82, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2001, 191.50, 151.45, 1996.82, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2001, 191.55, 147.75, 1996.82, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2266, 184.69, 143.75, 1998.76, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(2258, 177.72, 154.14, 1999.00, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(638, 172.83, 157.38, 1997.53, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(638, 172.78, 144.98, 1997.53, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2013, 199.64, 164.01, 1996.70, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2014, 199.64, 162.03, 1996.70, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2014, 199.63, 165.00, 1996.70, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2017, 199.62, 166.01, 1996.71, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2016, 199.62, 167.00, 1996.71, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(2015, 199.65, 161.04, 1996.70, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1786, 195.53, 167.94, 1997.33, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2314, 194.92, 167.69, 1996.86, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(1769, 196.16, 165.31, 1996.59, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1769, 197.60, 166.14, 1996.59, 0.00, 0.00, 222.00, .interiorid = 73);
- CreateDynamicObject(1769, 193.80, 165.91, 1996.59, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(1594, 197.53, 161.01, 1997.28, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(1594, 195.60, 162.44, 1997.28, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2748, 201.20, 122.87, 1997.24, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1775, 198.92, 122.92, 1997.93, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(8133, 208.60, 141.42, 2013.00, 0.00, 90.00, 180.00, .interiorid = 73);
- CreateDynamicObject(637, 196.63, 131.45, 1997.03, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(860, 196.75, 132.35, 1997.27, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(860, 196.68, 130.50, 1997.27, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(861, 196.66, 131.45, 1997.20, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(3660, 208.64, 134.32, 1998.99, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(3660, 208.65, 153.92, 1998.99, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(2356, 200.61, 150.34, 1996.80, 0.00, 0.00, 265.00, .interiorid = 73);
- CreateDynamicObject(2356, 200.63, 147.43, 1996.80, 0.00, 0.00, 287.00, .interiorid = 73);
- CreateDynamicObject(2356, 200.10, 143.63, 1996.80, 0.00, 0.00, 229.00, .interiorid = 73);
- CreateDynamicObject(950, 186.46, 123.30, 1997.35, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(950, 191.70, 123.31, 1997.35, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(950, 181.10, 123.31, 1997.35, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(950, 175.87, 123.29, 1997.35, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2252, 199.55, 141.45, 1997.71, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2252, 201.91, 145.19, 1997.71, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2252, 202.09, 151.59, 1997.71, 0.00, 0.00, 0.00, .interiorid = 73);
- CreateDynamicObject(2190, 200.38, 141.99, 1997.40, 0.00, 0.00, 193.00, .interiorid = 73);
- CreateDynamicObject(2190, 202.09, 147.77, 1997.40, 0.00, 0.00, -91.00, .interiorid = 73);
- CreateDynamicObject(2190, 202.07, 150.05, 1997.40, 0.00, 0.00, -91.00, .interiorid = 73);
- CreateDynamicObject(1533, 208.12, 121.16, 1996.86, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1533, 206.63, 121.16, 1996.86, 0.00, 0.00, 180.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.49, 128.82, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.49, 128.20, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.50, 127.58, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.49, 126.97, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.47, 126.34, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.44, 125.08, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.45, 124.50, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.46, 123.93, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(1721, 196.47, 123.34, 1996.83, 0.00, 0.00, 270.00, .interiorid = 73);
- CreateDynamicObject(14397, 201.89, 161.46, 2000.14, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(14397, 201.89, 161.46, 2000.63, 0.00, 0.00, 90.00, .interiorid = 73);
- CreateDynamicObject(3117, 201.29, 142.76, 2002.69, 0.00, 90.00, 149.00, .interiorid = 73);
- CreateDynamicObject(2690, 201.43, 142.68, 2001.29, 0.00, 90.00, 55.00, .interiorid = 73);
-
- // Hitman Interiors
- CreateDynamicObject(14415, 39.16, 1539.34, -2.51, 0.00, 0.00, 0.00);
- CreateDynamicObject(1536, 64.37, 1549.61, -8.74, 0.00, 0.00, 268.43);
- CreateDynamicObject(1536, 64.34, 1546.66, -8.74, 0.00, 0.00, 87.68);
- CreateDynamicObject(19450, 64.64, 1546.84, -7.34, 0.00, 0.00, 0.00);
- CreateDynamicObject(1491, 46.85, 1542.62, -8.65, 0.00, 0.00, 359.42);
- CreateDynamicObject(1491, 49.82, 1542.64, -8.65, 0.00, 0.00, 179.81);
- CreateDynamicObject(1491, 49.81, 1534.58, -8.65, 0.00, 0.00, 179.81);
- CreateDynamicObject(1491, 46.80, 1534.57, -8.65, 0.00, 0.00, 359.42);
- CreateDynamicObject(1491, 31.26, 1528.10, -8.55, 0.00, 0.00, 90.67);
- CreateDynamicObject(1491, 31.27, 1528.19, -8.55, 0.00, 0.00, 267.67);
- CreateDynamicObject(19450, 18.70, 1546.62, -7.19, 0.00, 0.00, 0.00);
- CreateDynamicObject(2229, 26.23, 1534.98, -8.68, 0.00, 0.00, 177.28);
- CreateDynamicObject(1516, 22.90, 1546.22, -8.68, 0.00, 0.00, 0.00);
- CreateDynamicObject(1516, 24.04, 1546.24, -8.68, 0.00, 0.00, 0.00);
- CreateDynamicObject(1516, 25.16, 1546.26, -8.68, 0.00, 0.00, 0.00);
- CreateDynamicObject(1516, 26.25, 1546.25, -8.68, 0.00, 0.00, 0.00);
- CreateDynamicObject(358, 22.82, 1546.14, -8.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(356, 23.82, 1546.20, -8.05, 0.00, 0.00, 0.00);
- CreateDynamicObject(351, 25.27, 1546.10, -8.16, 0.00, 0.00, 0.00);
- CreateDynamicObject(19129, 26.48, 1544.19, -8.67, 0.00, 0.00, 0.72);
- CreateDynamicObject(18102, 27.50, 1548.24, 1.03, 0.00, 0.00, 0.00);
- CreateDynamicObject(9833, 20.63, 1545.72, -6.29, 0.00, 0.00, 0.00);
- CreateDynamicObject(9833, 28.81, 1546.62, -6.29, 0.00, 0.00, 0.00);
- CreateDynamicObject(19122, 22.20, 1546.17, -8.24, 0.00, 0.00, 264.25);
- CreateDynamicObject(19122, 26.99, 1546.35, -8.24, 0.00, 0.00, 264.25);
- CreateDynamicObject(2229, 22.86, 1534.99, -8.68, 0.00, 0.00, 177.28);
- CreateDynamicObject(2773, 26.24, 1535.64, -8.22, 0.00, 0.00, 2.44);
- CreateDynamicObject(2773, 23.43, 1535.64, -8.22, 0.00, 0.00, 2.44);
- CreateDynamicObject(19465, 25.00, 1534.66, -6.29, 0.00, 0.00, 91.19);
- CreateDynamicObject(1491, 24.25, 1534.58, -8.64, 0.00, 0.00, 1.16);
- // Hitman interior
- CreateDynamicObject(14390, 1249.41, -775.23, 5083.00, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(14597, 1233.17, -751.84, 5081.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2395, 1246.36, -755.39, 5082.07, 0.00, 90.00, 90.00, .interiorid = 42);
- CreateDynamicObject(5056, 1246.25, -751.18, 5079.65, 0.00, 90.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1557, 1275.37, -760.01, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1557, 1278.39, -760.02, 5079.75, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(14399, 1257.84, -756.54, 5079.72, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2051, 1239.18, -738.26, 5082.22, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2051, 1241.72, -738.28, 5082.22, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2050, 1240.47, -738.27, 5082.10, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(18051, 1243.84, -739.91, 5081.25, 0.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(14397, 1252.44, -743.42, 5081.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(941, 1238.20, -747.91, 5080.19, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2041, 1239.44, -748.19, 5080.85, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2041, 1239.22, -748.19, 5080.85, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(348, 1238.59, -747.54, 5080.66, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(348, 1238.97, -747.50, 5080.66, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(352, 1237.44, -748.13, 5080.67, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2509, 1243.02, -765.45, 5081.59, 0.00, 90.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2509, 1241.14, -765.44, 5081.59, 0.00, 90.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2509, 1239.28, -765.44, 5081.59, 0.00, 90.00, 180.00, .interiorid = 42);
- CreateDynamicObject(352, 1238.59, -765.42, 5081.92, 0.00, 5.00, 1.00, .interiorid = 42);
- CreateDynamicObject(352, 1238.59, -765.42, 5081.44, 0.00, 5.00, 1.00, .interiorid = 42);
- CreateDynamicObject(356, 1239.29, -765.45, 5081.84, 0.00, 0.00, 8.00, .interiorid = 42);
- CreateDynamicObject(356, 1239.29, -765.45, 5081.38, 0.00, 0.00, 8.00, .interiorid = 42);
- CreateDynamicObject(355, 1240.87, -765.44, 5081.91, 0.00, 5.00, 5.00, .interiorid = 42);
- CreateDynamicObject(355, 1240.87, -765.44, 5081.45, 0.00, 5.00, 5.00, .interiorid = 42);
- CreateDynamicObject(351, 1242.02, -765.42, 5081.89, 0.00, 10.00, 3.00, .interiorid = 42);
- CreateDynamicObject(351, 1242.02, -765.42, 5081.42, 0.00, 10.00, 3.00, .interiorid = 42);
- CreateDynamicObject(358, 1243.56, -765.38, 5081.30, -5.00, -40.00, 180.00, .interiorid = 42);
- CreateDynamicObject(3015, 1243.93, -765.21, 5079.83, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3015, 1243.47, -765.22, 5079.83, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(941, 1243.81, -762.82, 5080.16, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(941, 1243.80, -760.36, 5080.16, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(363, 1243.86, -758.95, 5080.69, 270.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(363, 1243.87, -759.23, 5080.69, 270.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(363, 1243.89, -759.54, 5080.69, 270.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(363, 1243.89, -759.85, 5080.69, 270.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(364, 1243.28, -759.35, 5080.62, 0.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(342, 1244.01, -760.72, 5080.63, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(342, 1243.83, -760.72, 5080.63, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(342, 1243.69, -760.73, 5080.63, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(342, 1243.55, -760.74, 5080.63, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(347, 1243.43, -761.88, 5080.70, 270.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(347, 1243.42, -762.60, 5080.70, 270.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(2043, 1244.12, -761.88, 5080.73, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2043, 1244.11, -762.62, 5080.73, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2358, 1237.18, -760.90, 5079.87, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2358, 1237.16, -760.22, 5079.87, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2358, 1237.17, -759.56, 5079.87, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2358, 1237.18, -758.90, 5079.87, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2358, 1237.15, -759.58, 5080.05, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2358, 1237.15, -760.30, 5080.05, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(942, 1232.92, -764.60, 5081.91, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3800, 1236.09, -761.58, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3800, 1236.15, -760.43, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3800, 1236.15, -759.28, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3800, 1236.19, -759.66, 5080.76, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3800, 1236.13, -760.89, 5080.76, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3793, 1229.77, -760.39, 5080.77, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(3788, 1229.99, -760.36, 5080.24, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(359, 1229.99, -760.15, 5080.22, 270.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(359, 1230.29, -760.16, 5080.22, 270.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2207, 1231.98, -742.15, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1714, 1233.03, -739.87, 5079.72, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1663, 1232.14, -743.12, 5080.17, 0.00, 0.00, 160.00, .interiorid = 42);
- CreateDynamicObject(1663, 1231.21, -742.56, 5080.17, 0.00, 0.00, 140.00, .interiorid = 42);
- CreateDynamicObject(1663, 1233.38, -743.18, 5080.17, 0.00, 0.00, 190.00, .interiorid = 42);
- CreateDynamicObject(1663, 1234.41, -742.64, 5080.17, 0.00, 0.00, 210.00, .interiorid = 42);
- CreateDynamicObject(18044, 1226.95, -762.62, 5081.44, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(18052, 1244.05, -761.95, 5082.21, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(11353, 1233.08, -737.75, 5079.75, 90.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(1736, 1233.00, -738.63, 5082.97, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2163, 1234.32, -737.90, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2163, 1232.56, -737.91, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2163, 1230.80, -737.90, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1665, 1233.18, -742.43, 5080.55, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1665, 1232.06, -742.18, 5080.55, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1665, 1232.34, -741.41, 5080.55, 0.00, 0.00, 55.00, .interiorid = 42);
- CreateDynamicObject(2894, 1233.51, -741.73, 5080.52, 0.00, 0.00, 207.00, .interiorid = 42);
- CreateDynamicObject(14455, 1236.64, -743.26, 5081.37, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(14455, 1236.65, -747.57, 5081.37, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(14455, 1229.36, -739.01, 5081.41, 0.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(14455, 1229.36, -743.34, 5081.41, 0.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(2737, 1223.06, -748.98, 5082.15, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2737, 1222.65, -754.68, 5082.15, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2737, 1226.06, -754.67, 5082.15, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(7294, 1226.08, -749.01, 5076.88, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(7294, 1220.08, -751.91, 5076.60, 0.00, 0.00, 270.00, .interiorid = 42);
- CreateDynamicObject(2953, 1233.43, -741.36, 5080.54, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1727, 1269.49, -754.55, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1726, 1271.47, -754.57, 5079.91, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1727, 1265.94, -757.02, 5079.88, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(1726, 1266.67, -754.61, 5079.91, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1651, 1270.53, -757.70, 5082.56, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2229, 1271.95, -758.16, 5080.96, 0.00, 90.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2229, 1269.05, -758.13, 5081.58, 0.00, 270.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2233, 1265.93, -758.23, 5079.90, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2233, 1266.68, -753.86, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2233, 1269.53, -753.79, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2233, 1271.39, -753.79, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2233, 1274.45, -753.90, 5079.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(335, 1243.37, -763.38, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(335, 1243.56, -763.38, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(335, 1243.73, -763.38, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(335, 1243.95, -763.39, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2001, 1263.06, -749.78, 5079.73, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2001, 1263.08, -755.89, 5079.73, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2001, 1273.10, -757.39, 5079.89, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2001, 1246.76, -749.64, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2001, 1246.67, -753.53, 5079.69, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2252, 1257.67, -754.83, 5081.39, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2252, 1258.00, -758.88, 5081.39, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2252, 1252.36, -754.62, 5081.39, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2257, 1267.86, -748.62, 5082.48, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3806, 1262.76, -753.09, 5083.84, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1249.39, -759.21, 5082.37, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1248.43, -759.25, 5082.37, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1247.09, -759.28, 5082.37, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1246.50, -758.11, 5082.37, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1246.50, -758.11, 5081.78, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1247.72, -759.30, 5081.78, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1249.20, -759.27, 5081.78, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1249.20, -759.27, 5081.18, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1248.33, -759.27, 5081.18, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1247.04, -759.32, 5081.18, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1668, 1246.54, -757.68, 5081.18, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1248.94, -759.27, 5082.24, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1247.92, -759.24, 5082.24, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1246.54, -758.36, 5082.24, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1246.54, -758.36, 5081.67, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1248.01, -759.28, 5081.67, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1248.01, -759.28, 5081.12, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1520, 1246.58, -758.48, 5081.06, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1248.66, -759.23, 5082.41, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1247.44, -759.27, 5082.41, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1246.48, -757.93, 5082.41, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1246.48, -757.93, 5081.74, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1246.48, -757.93, 5081.20, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1247.50, -759.35, 5081.20, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1247.29, -759.32, 5081.81, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1512, 1246.83, -759.23, 5081.81, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1665, 1250.68, -754.33, 5081.11, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1665, 1251.71, -754.35, 5081.11, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1665, 1253.47, -754.34, 5081.11, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1665, 1254.49, -754.26, 5081.11, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1665, 1255.60, -754.30, 5081.11, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1665, 1256.73, -754.28, 5081.11, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1541, 1247.90, -755.23, 5081.29, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1541, 1248.80, -755.23, 5081.29, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(1548, 1248.31, -754.75, 5081.09, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1547, 1249.64, -754.72, 5081.09, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2125, 1256.23, -753.59, 5080.06, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2125, 1254.90, -753.63, 5080.06, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2125, 1253.67, -753.62, 5080.06, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2125, 1251.27, -753.63, 5080.06, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2125, 1250.37, -753.55, 5080.06, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2271, 1251.02, -749.09, 5082.93, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2270, 1254.56, -749.09, 5082.94, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1246.53, -758.92, 5082.21, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1246.52, -757.55, 5081.60, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1248.93, -759.31, 5081.60, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1248.72, -759.29, 5081.60, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1248.72, -759.29, 5081.03, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1249.02, -759.28, 5081.03, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1544, 1246.56, -758.95, 5081.03, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3806, 1261.99, -753.12, 5083.84, 0.00, 0.00, 180.00, .interiorid = 42);
- CreateDynamicObject(2051, 1243.20, -738.25, 5082.22, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2050, 1238.27, -738.28, 5082.10, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2208, 1223.33, -751.86, 5079.76, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(367, 1226.13, -751.96, 5080.62, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(367, 1225.75, -751.96, 5080.62, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(367, 1225.36, -751.96, 5080.62, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(369, 1224.43, -751.85, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(369, 1224.23, -751.85, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(369, 1224.01, -751.83, 5080.62, 90.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(367, 1223.42, -751.96, 5080.62, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(18766, 1279.89, -760.49, 5081.79, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(2847, 1276.39, -759.68, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(3462, 1278.68, -750.33, 5081.26, 0.00, 0.00, 47.00, .interiorid = 42);
- CreateDynamicObject(18652, 1279.88, -750.04, 5079.78, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(18652, 1278.83, -749.02, 5079.78, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(2258, 1274.97, -755.53, 5081.91, 0.00, 0.00, 90.00, .interiorid = 42);
- CreateDynamicObject(1892, 1278.68, -759.08, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(1892, 1274.09, -759.06, 5079.75, 0.00, 0.00, 0.00, .interiorid = 42);
- CreateDynamicObject(644, 1273.94, -749.60, 5079.91, 0.00, 0.00, 0.00, .interiorid = 42);
- // Door fix for Denise's house and covered pilot area for Shamal interior
- CreateDynamicObject(1498,2401.75927734,-1714.56994629,13.13000011,0.00000000,0.00000000,0.00000000); //object(gen_doorext03) (1)
- CreateDynamicObject(2634,1.74394608,31.97999954,1199.72998047,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(ab_vaultdoor) (3)
- CreateDynamicObject(2634,1.74316406,31.97949219,1202.69995117,0.00000000,0.00000000,0.00000000, .interiorid = 1); //object(ab_vaultdoor) (4)
- // Mall Interior
- CreateDynamicObject(3989,455.68774400,-2404.30932600,5.33563600,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(7493,523.24963400,-2413.61035200,13.25608600,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(7493,419.32476800,-2425.11035200,13.25608600,0.00000000,0.00000000,180.48182006, .interiorid = 18);
- CreateDynamicObject(7493,489.72479200,-2484.48779300,13.25608600,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(7493,487.52450600,-2329.01171900,13.25608600,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(7493,489.69986000,-2484.63720700,16.78107800,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(7493,487.59942600,-2328.79052700,17.20606800,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(1560,474.51272600,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,476.01260400,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,477.48742700,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,478.98742700,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,486.41214000,-2377.77294900,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,484.91226200,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,483.38751200,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1560,481.86264000,-2377.74804700,9.80654800,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(3530,481.18234300,-2376.96899400,15.60875100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(3530,481.15734900,-2377.16821300,20.78376000,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(994,480.82080100,-2390.36132800,9.89794700,0.00000000,0.00000000,88.52197935, .interiorid = 18);
- CreateDynamicObject(1984,478.56616200,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,475.49148600,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,472.39157100,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,469.24166900,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,466.06658900,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,462.91674800,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,459.76684600,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1984,456.71698000,-2389.01904300,9.78588800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1663,479.69928000,-2386.61132800,10.24607800,0.00000000,0.00000000,-73.91155557, .interiorid = 18);
- CreateDynamicObject(1663,476.47433500,-2386.66113300,10.24607800,0.00000000,0.00000000,-73.91155557, .interiorid = 18);
- CreateDynamicObject(1663,473.39917000,-2386.63623000,10.24607800,0.00000000,0.00000000,-73.91155557, .interiorid = 18);
- CreateDynamicObject(1663,470.32437100,-2386.63623000,10.24607800,0.00000000,0.00000000,-73.91155557, .interiorid = 18);
- CreateDynamicObject(1843,487.57012900,-2392.18725600,9.78098000,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1843,487.62011700,-2395.16137700,9.78098000,0.00000000,0.00000000,-88.52197935, .interiorid = 18);
- CreateDynamicObject(1843,487.77008100,-2401.03686500,9.78098000,0.00000000,0.00000000,-88.52197935, .interiorid = 18);
- CreateDynamicObject(1844,487.70239300,-2398.10913100,9.78064700,0.00000000,0.00000000,-88.52197935, .interiorid = 18);
- CreateDynamicObject(1844,487.90234400,-2408.15502900,9.78064700,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1844,487.92733800,-2411.10522500,9.78064700,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1887,487.97479200,-2414.06201200,9.78038000,0.00000000,0.00000000,-88.52197935, .interiorid = 18);
- CreateDynamicObject(1887,488.07476800,-2419.93847700,9.78038000,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1843,488.04068000,-2416.99829100,9.78043200,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1890,483.91915900,-2392.20166000,9.78272600,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,480.01214600,-2395.14526400,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,483.91198700,-2395.12036100,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,483.91915900,-2398.05224600,9.78272600,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,483.91915900,-2400.97949200,9.78272600,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,483.91287200,-2403.88818400,9.78243600,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,479.99008200,-2398.14819300,9.78434000,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1884,479.94009400,-2401.07348600,9.78434000,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1884,479.91510000,-2404.02465800,9.78434000,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1890,476.08337400,-2395.20532200,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,472.43722500,-2395.14526400,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(2365,481.95449800,-2381.40698200,9.78423100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(2365,481.95449800,-2381.38208000,10.07572000,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1349,481.83047500,-2384.01928700,10.35518100,0.00000000,1.71887339,-90.24079544, .interiorid = 18);
- CreateDynamicObject(1349,481.83047500,-2384.51733400,10.35518100,0.00000000,1.71887339,-90.24079544, .interiorid = 18);
- CreateDynamicObject(1349,481.83047500,-2386.24243200,10.35518100,0.00000000,1.71887339,-51.56614427, .interiorid = 18);
- CreateDynamicObject(1349,487.19693000,-2386.69409200,10.35294000,0.00000000,1.71887339,260.40943248, .interiorid = 18);
- CreateDynamicObject(2365,483.75006100,-2389.97168000,9.78319500,0.00000000,0.00000000,94.53803620, .interiorid = 18);
- CreateDynamicObject(2365,475.91857900,-2393.15820300,9.78712900,0.00000000,0.00000000,94.53803620, .interiorid = 18);
- CreateDynamicObject(1890,476.08337400,-2398.15454100,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,476.08337400,-2401.10668900,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,476.06506300,-2404.04956100,9.78434000,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1889,472.43722500,-2398.09448200,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,472.45840500,-2401.05688500,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,472.45840500,-2404.00708000,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,483.92062400,-2406.87548800,9.78221300,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,479.91510000,-2406.97387700,9.78434000,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1884,476.06506300,-2407.02465800,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1848,485.17611700,-2421.95288100,9.78149000,0.00000000,0.00000000,-178.76300397, .interiorid = 18);
- CreateDynamicObject(1890,483.92062400,-2412.79882800,9.78221300,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,483.92062400,-2415.79785200,9.78221300,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1845,482.43237300,-2424.07226600,9.78731700,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1845,482.45736700,-2427.02246100,9.78731700,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(1845,482.45736700,-2429.94873000,9.78731700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1848,485.32608000,-2431.95092800,9.78149000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1848,485.31097400,-2426.82568400,9.78730800,0.00000000,0.00000000,269.00351293, .interiorid = 18);
- CreateDynamicObject(1842,478.89740000,-2424.58203100,10.25606400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,478.87240600,-2429.21142600,10.25606400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1889,479.88073700,-2412.85937500,9.78417300,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,479.89468400,-2415.85253900,9.78445900,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,476.06506300,-2412.79760700,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,476.06506300,-2415.74487300,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1991,454.33581500,-2397.91992200,9.81896800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2394.97680700,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1996,454.32177700,-2393.97998000,9.81063400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1889,472.43722500,-2406.94409200,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2395.95092800,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2396.92407200,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,472.43722500,-2409.87036100,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,472.43722500,-2412.82153300,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,472.44009400,-2415.74487300,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,472.44009400,-2418.69409200,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,472.45260600,-2421.62524400,9.78730800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,472.45260600,-2424.57348600,9.78730800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,472.45260600,-2427.52172900,9.78730800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,472.46508800,-2430.46997100,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(2412,479.30438200,-2378.38232400,9.80765400,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(2412,476.35424800,-2378.30761700,9.80765400,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2400.86743200,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2403.84057600,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,468.43347200,-2406.80395500,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,468.43347200,-2409.75317400,9.78643000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,468.44015500,-2412.67797900,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,468.44015500,-2415.65307600,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,468.44015500,-2418.57641600,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2421.51293900,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2424.45922900,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1848,488.30081200,-2434.88085900,9.78730800,0.00000000,0.00000000,-89.38147334, .interiorid = 18);
- CreateDynamicObject(1890,484.38366700,-2437.15112300,9.78730800,0.00000000,0.00000000,179.62232607, .interiorid = 18);
- CreateDynamicObject(1848,488.35080000,-2439.83203100,9.78730800,0.00000000,0.00000000,-90.24091003, .interiorid = 18);
- CreateDynamicObject(1890,481.43377700,-2437.12622100,9.78730800,0.00000000,0.00000000,179.62232607, .interiorid = 18);
- CreateDynamicObject(1890,478.50869800,-2437.12622100,9.78730800,0.00000000,0.00000000,179.62232607, .interiorid = 18);
- CreateDynamicObject(1884,475.58224500,-2437.13354500,9.77759300,0.00000000,0.00000000,179.62238337, .interiorid = 18);
- CreateDynamicObject(1889,469.69757100,-2437.13232400,9.76570700,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2427.38549800,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2430.33569300,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,466.73388700,-2437.12622100,9.78730800,0.00000000,0.00000000,179.62232607, .interiorid = 18);
- CreateDynamicObject(1890,463.68402100,-2436.25659200,9.78730800,0.00000000,0.00000000,147.82316844, .interiorid = 18);
- CreateDynamicObject(1890,461.40927100,-2434.00659200,9.78730800,0.00000000,0.00000000,122.89938976, .interiorid = 18);
- CreateDynamicObject(1890,460.53448500,-2430.87915000,9.78730800,0.00000000,0.00000000,90.24073814, .interiorid = 18);
- CreateDynamicObject(1889,460.51226800,-2427.88354500,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1842,476.09741200,-2424.58203100,10.25606400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,476.09741200,-2429.20654300,10.25606400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,460.56561300,-2424.89941400,10.25791500,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,460.59060700,-2422.02685500,10.25791500,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1889,464.56225600,-2427.38549800,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,464.57769800,-2424.44897500,9.78730800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1890,464.57769800,-2421.49877900,9.78730800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,464.56524700,-2418.55151400,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,464.56524700,-2415.60229500,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,464.56524700,-2412.62915000,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,463.88546800,-2409.50683600,9.79196000,0.00000000,0.00000000,-66.17662534, .interiorid = 18);
- CreateDynamicObject(1889,461.83560200,-2407.03662100,9.79196000,0.00000000,0.00000000,-34.37752500, .interiorid = 18);
- CreateDynamicObject(1889,458.78555300,-2406.06250000,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1889,458.78555300,-2411.01074200,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1889,458.78555300,-2415.23584000,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1842,464.43753100,-2400.77929700,10.26877400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,461.36248800,-2400.77929700,10.26877400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,458.18759200,-2400.77929700,10.26877400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,476.07522600,-2429.21582000,9.73732100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,476.07522600,-2424.56933600,9.73732100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,478.90008500,-2424.56933600,9.73732100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,478.87509200,-2429.21679700,9.73732100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,458.17645300,-2400.77343800,9.75003100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,461.35122700,-2400.77343800,9.75003100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,464.42614700,-2400.77343800,9.75003100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1890,478.50869800,-2441.45092800,9.78730800,0.00000000,0.00000000,179.62232607, .interiorid = 18);
- CreateDynamicObject(1890,475.55880700,-2441.45092800,9.78730800,0.00000000,0.00000000,179.62232607, .interiorid = 18);
- CreateDynamicObject(1889,472.61200000,-2441.41967800,9.76514600,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1889,469.66204800,-2441.41967800,9.76514600,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1987,464.92349200,-2441.61425800,9.75987100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1988,465.89694200,-2441.59741200,9.75503300,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(1987,461.59832800,-2441.61425800,9.75987100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1988,462.57202100,-2441.59741200,9.75503300,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(1884,481.45620700,-2441.46118200,9.77500600,0.00000000,0.00000000,179.62238337, .interiorid = 18);
- CreateDynamicObject(1884,484.40597500,-2441.46118200,9.77500600,0.00000000,0.00000000,179.62238337, .interiorid = 18);
- CreateDynamicObject(1889,476.54007000,-2420.37280300,9.78541500,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1889,455.48580900,-2419.48388700,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1889,455.53579700,-2423.52880900,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1889,455.56079100,-2427.32470700,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1889,455.61077900,-2431.07373000,9.79196000,0.00000000,0.00000000,-0.00005730, .interiorid = 18);
- CreateDynamicObject(1991,454.33581500,-2408.24560500,9.81896800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2407.27465800,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2406.27563500,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2405.29858400,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2404.30053700,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2403.30444300,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1981,454.32482900,-2402.30835000,9.81466500,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1996,454.32177700,-2401.32666000,9.81063400,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1989,454.67102100,-2437.37011700,9.75281800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1989,454.67102100,-2438.31640600,9.75281800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1989,454.67102100,-2439.29052700,9.75281800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1989,454.67102100,-2440.23681600,9.75281800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1989,454.67102100,-2441.15820300,9.75281800,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(1846,460.54464700,-2424.89379900,9.73917100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1846,460.56964100,-2422.01831100,9.73917100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(1842,459.08441200,-2437.38598600,10.22056800,0.00000000,0.00000000,131.49392857, .interiorid = 18);
- CreateDynamicObject(1846,459.06817600,-2437.37939500,9.70182400,0.00000000,0.00000000,-48.98789148, .interiorid = 18);
- CreateDynamicObject(1987,458.49835200,-2441.61425800,9.75987100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1988,459.47222900,-2441.59741200,9.75503300,0.00000000,0.00000000,0.85943669, .interiorid = 18);
- CreateDynamicObject(1889,468.41217000,-2433.28393600,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1889,464.56225600,-2430.30688500,9.78414700,0.00000000,0.00000000,-90.24085273, .interiorid = 18);
- CreateDynamicObject(1884,472.46508800,-2433.42016600,9.78434000,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(2541,454.43652300,-2410.16333000,9.80253900,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(2541,454.48651100,-2417.21020500,9.80253900,0.00000000,0.00000000,90.24085273, .interiorid = 18);
- CreateDynamicObject(2541,480.01019300,-2393.15820300,9.78999900,0.00000000,0.00000000,180.48176276, .interiorid = 18);
- CreateDynamicObject(2541,487.65844700,-2390.20800800,9.78641000,0.00000000,0.00000000,180.48176276, .interiorid = 18);
- CreateDynamicObject(2541,472.45776400,-2393.13549800,9.79382200,0.00000000,0.00000000,180.48176276, .interiorid = 18);
- CreateDynamicObject(2542,454.30514500,-2392.00537100,9.83844100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(2542,454.30514500,-2391.03222700,9.83844100,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(2542,454.36703500,-2399.57348600,9.84879000,0.00000000,0.00000000,89.38141604, .interiorid = 18);
- CreateDynamicObject(2871,457.48605300,-2446.50805700,9.74788400,0.00000000,0.00000000,179.62238337, .interiorid = 18);
- CreateDynamicObject(2871,458.43594400,-2446.50805700,9.74788400,0.00000000,0.00000000,179.62238337, .interiorid = 18);
- CreateDynamicObject(2871,459.41070600,-2446.50805700,9.74788400,0.00000000,0.00000000,179.62238337, .interiorid = 18);
- CreateDynamicObject(2543,461.85641500,-2446.40673800,9.51721200,0.00000000,0.00000000,180.48187735, .interiorid = 18);
- CreateDynamicObject(2543,462.83136000,-2446.40673800,9.51721200,0.00000000,0.00000000,180.48187735, .interiorid = 18);
- CreateDynamicObject(2543,463.80636600,-2446.40673800,9.51721200,0.00000000,0.00000000,180.48187735, .interiorid = 18);
- CreateDynamicObject(2542,466.05529800,-2446.38793900,9.75391500,0.00000000,0.00000000,180.48176276, .interiorid = 18);
- CreateDynamicObject(2542,467.03018200,-2446.38793900,9.75391500,0.00000000,0.00000000,180.48176276, .interiorid = 18);
- CreateDynamicObject(2542,468.00500500,-2446.38793900,9.75391500,0.00000000,0.00000000,180.48176276, .interiorid = 18);
- CreateDynamicObject(2541,474.92309600,-2446.23535200,9.70359800,0.00000000,0.00000000,180.48187735, .interiorid = 18);
- CreateDynamicObject(2541,475.92303500,-2446.23535200,9.70359800,0.00000000,0.00000000,180.48187735, .interiorid = 18);
- CreateDynamicObject(2541,476.89804100,-2446.23535200,9.70359800,0.00000000,0.00000000,180.48187735, .interiorid = 18);
- CreateDynamicObject(2583,479.35000600,-2446.36889600,10.59204000,0.00000000,0.00000000,180.48182006, .interiorid = 18);
- CreateDynamicObject(2582,483.32833900,-2446.33325200,10.62340500,0.00000000,0.00000000,180.48193465, .interiorid = 18);
- CreateDynamicObject(2582,484.80322300,-2446.33325200,10.62340500,0.00000000,0.00000000,180.48193465, .interiorid = 18);
- CreateDynamicObject(2942,487.70999100,-2383.75439500,10.42487400,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(2942,487.70999100,-2382.95752000,10.42487400,0.00000000,0.00000000,-89.38141604, .interiorid = 18);
- CreateDynamicObject(2412,483.72915600,-2378.35742200,9.80765400,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(2412,486.75384500,-2378.35742200,9.80765400,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(14439,475.54144300,-2385.82763700,18.92340100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(14439,475.54144300,-2401.75097700,18.92340100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(14439,475.54144300,-2418.64746100,18.92340100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(14439,475.54144300,-2435.27002000,18.92340100,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(2583,480.82501200,-2446.36889600,10.59204000,0.00000000,0.00000000,180.48182006, .interiorid = 18);
- CreateDynamicObject(7493,488.62420700,-2424.43994100,23.43117500,0.00000000,-180.48210654,180.48182006, .interiorid = 18);
- CreateDynamicObject(994,480.97076400,-2384.01464800,9.89794700,0.00000000,0.00000000,88.52197935, .interiorid = 18);
- CreateDynamicObject(1889,459.35699500,-2393.92797900,9.79353900,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- CreateDynamicObject(1889,463.85675000,-2393.95288100,9.79353900,0.00000000,0.00000000,0.00000000, .interiorid = 18);
- // ATMs
- CreateDynamicObject(2942, 2065.439453125, -1897.5510253906, 13.19670009613, 0, 0, 0);
- CreateDynamicObject(2942, 1497.7467041016, -1749.8747558594, 15.088212013245, 0, 0, 177.38134765625);
- CreateDynamicObject(2942, 2093.5124511719, -1359.5474853516, 23.62727355957, 0, 0, 0);
- CreateDynamicObject(2942, 1155.6235351563, -1464.9141845703, 15.44321346283, 0, 0, 290.21020507813);
- CreateDynamicObject(2942, 2139.4487304688, -1164.0811767578, 23.63508605957, 0, 0, 91.309509277344);
- CreateDynamicObject(2942, 387.16552734375, -1816.0512695313, 7.4834146499634, 0, 0, 272.48046875);
- CreateDynamicObject(2942, -24.385023117065, -92.001075744629, 1003.1897583008, 0, 0, 180.54052734375);
- CreateDynamicObject(2942, -31.811220169067, -58.106018066406, 1003.1897583008, 0, 0, 181.21594238281);
- CreateDynamicObject(2942, 1212.7785644531, 2.451762676239, 1000.5647583008, 0, 0, 0);
- CreateDynamicObject(2942, 2324.4028320313, -1644.9445800781, 14.469946861267, 0, 0, 0);
- CreateDynamicObject(2942, 2228.39, -1707.78, 13.25, 0.000000, 0.000000, 270.000000); // Ganton Gym ATM
- CreateDynamicObject(2942, 651.19305419922, -520.48815917969, 15.978837013245, 0, 0, 0);
- CreateDynamicObject(2942, 45.78035736084, -291.80926513672, 1.5024013519287, 0, 0, 182.93444824219);
- CreateDynamicObject(2942, 1275.7958984375, 368.31481933594, 19.19758605957, 0, 0, 73.759948730469);
- CreateDynamicObject(2942, 2303.4577636719, -13.539554595947, 26.12727355957, 0, 0, 272.43542480469);
- CreateDynamicObject(2942, 691.08215332031, -618.5625, 15.978837013245, 0, 0, 268.69067382813);
- CreateDynamicObject(2942, 173.23471069336, -155.07606506348, 1.2210245132446, 0, 0, 89.730041503906);
- CreateDynamicObject(2942, 1260.8796386719, 209.30152893066, 19.19758605957, 0, 0, 65.504638671875);
- CreateDynamicObject(2942, 2316.1015625, -88.522567749023, 26.12727355957, 0, 0, 0);
- // Job Pickups
- CreatePickup(1239, 23, 1776.386962,-1047.542968,-25.408025, -1); // Detective job (LS)
- CreatePickup(1239, 23, 1215.1304,-11.8431,1000.9219, -1); //Whore Registration (LS)
- CreatePickup(1239, 23, 378.58, -114.26, 1001.49, -1); // Pizza Boy job (Interior) (LS)
- CreatePickup(1239, 23, 2166.3772, -1675.3829, 15.0859, -1); // Drug Dealer job
- CreatePickup(1239, 23, 2354.2808,-1169.2959,28.0066, -1); //Drug Smuggler (LS)
- CreatePickup(1239, 23, 1380.8955,-1088.6808,27.3844, -1); //Lawyer Registration
- CreatePickup(1239, 23, 2226.1716,-1718.1792,13.5165, -1); //BodyGuard Registration (LS)
- CreatePickup(1239, 23, 1099.73,-1504.67,15.800, -1); //Bodyguard (All Saints Mall) Registration
- CreatePickup(1239, 23, 1366.4325,-1275.2096,13.5469, -1); //ArmsDealer Registration (LS)
- CreatePickup(1239, 23, 2473.52, -2530.29, 13.65, -1);
- CreatePickup(1239, 23, 766.0804,14.5133,1000.7004, -1); //Boxer Registration (LS)
- CreatePickup(1239, 23, 758.98,-60.32,1000.78, -1); //Boxer Registration2 (LS)
- CreatePickup(1239, 23, 1741.6218,-1863.6486,13.5748, -1); //TaxiDriver Registration (LS)
- CreatePickup(1239, 23, 502.6696,-11.6603,1000.6797, -1); //Bartender Registration
- CreatePickup(1239, 23, 2195.8335,-1973.0638,13.5589, -1); //Craftsman Registration
- CreatePickup(1239, 23, 2330.117675, -2315.346435, 13.546875, -1); //Car Mechanic Registration
- CreatePickup(1239, 23, 2214.979736, -2661.346923, 13.546875, -1); //Trucker registration
- CreatePickup(1239, 23, 1280.6154 , -1272.4631, 13.5365, -1); //Miner registration
- // Other job pickups
- CreatePickup(1239, 23, 2104.1999511719, -1787.5999755859, 13.60000038147, -1); // Pizza /getpizza
-
- // Job 3D text labels
- Create3DTextLabel("{FFFF00}Detective Job \nType /join to become one", -1, 1776.386962,-1047.542968,-25.408025, 20.0, 0, 0);// Detective Job (LS)
- Create3DTextLabel("{FFFF00}Whore Job \nType /join to become one", -1, 1215.1304,-11.8431,1000.9219, 20.0, 0, 0);// Whore (LS)
- Create3DTextLabel("{FFFF00}Pizza Boy Job \nType /join to become one", -1, 378.58, -114.26, 1001.49, 20.0, 0, 0);// Pizza Boy Job (LS)
- Create3DTextLabel("{FFFF00}Drug Dealer Job \nType /join to become one", -1, 2166.3772,-1675.3829,15.0859, 20.0, 0, 0);// Drug Dealer (LS)
- Create3DTextLabel("{FFFF00}Drug Smuggler Job \nType /join to become one", -1, 2354.2808,-1169.2959,28.0066, 20.0, 0, 0);// Drug Smuggler (LS)
- Create3DTextLabel("{FFFF00}Lawyer Job \nType /join to become one", -1, 1380.8955,-1088.6808,27.3844, 20.0, 0, 0);// Lawyer (LS)
- Create3DTextLabel("{FFFF00}Bodyguard Job \nType /join to become one", -1, 2226.1716,-1718.1792,13.5165, 20.0, 0, 0);// Bodyguard (LS)
- Create3DTextLabel("{FFFF00}Bodyguard Job \nType /join to become one", -1, 1099.73,-1504.67,15.800, 20.0, 0, 0);// Bodyguard (All Saints Mall)
- Create3DTextLabel("{FFFF00}Arms Dealer Job \nType /join to become one", -1, 1366.4325,-1275.2096,13.5469, 20.0, 0, 0);// Gun Job (LS)
- Create3DTextLabel("{FFFF00}Garbageman Job \nType /join to become one", -1, 2473.52, -2530.29, 13.65, 20.0, 0, 0);// Garbageman Job (LS)
- Create3DTextLabel("{FFFF00}Boxer Job \nType /join to become one", -1, 766.0804,14.5133,1000.7004, 20.0, 0, 0);// Boxer
- Create3DTextLabel("{FFFF00}Boxer Job \nType /join to become one", -1, 758.98,-60.32,1000.78, 20.0, 0, 0);// Boxer2
- Create3DTextLabel("{FFFF00}Taxi Job \nType /join to become one", -1, 1741.6218,-1863.6486,13.5748, 20.0, 0, 0);// Taxi Driver (LS)
- Create3DTextLabel("{FFFF00}Bartender Job \nType /join to become one", -1, 502.6696,-11.6603,1000.6797, 20.0, 0, 0);// Bartender (Alhambra)
- Create3DTextLabel("{FFFF00}Craftsman Job \nType /join to become one", -1,2195.8335,-1973.0638,13.5589, 20.0, 0, 0);// Craftsman (JUNKYARD LS)
- Create3DTextLabel("{FFFF00}Mechanic Job \nType /join to become one", -1, 2330.117675, -2315.346435, 13.546875, 20.0, 0, 0);// Mechanic (LS)
- Create3DTextLabel("{FFFF00}Trucker Job \nType /join to become one", -1, 2214.979736, -2661.346923, 13.546875, 20.0, 0, 0);// Trucker Job (LS)
- Create3DTextLabel("{FFFF00}Miner Job \nType /join to become one", -1,1280.6154 ,-1272.4631, 13.5365, 20.0, 0, 0);// Miner Job(LS)
-
- // Other job 3D text labels
- CreateDynamic3DTextLabel("Type /getpizza from a Pizzaboy \nto get pizzas for delivery!",COLOR_YELLOW,2104.1999511719, -1787.5999755859, 13.60000038147, 4.0); //getpizza
- CreateDynamic3DTextLabel("Use /train\nto get a new fighting style",COLOR_YELLOW,758.43,-78.0,1000.65+0.5,4.0);
- CreateDynamic3DTextLabel("Use /train\nto get a new fighting style",COLOR_YELLOW,756.229125, 5.614504, 1000.698608+0.5,4.0);
- // General 3D text labels
- CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,208.8970,-100.3289,1005.2578,8.0);
- CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,206.5429,-41.2313,1001.8047,8.0);
- CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,209.3064,-8.3033,1005.2109,8.0);
- CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,159.6771,-83.2866,1001.8120,8.0);
- CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,206.4552,-163.0903,1000.5234,8.0);
- CreateDynamic3DTextLabel("/buytoys\n To buy some accessories.",COLOR_YELLOW,206.3253,-100.3268,1005.2578,8.0);
- CreateDynamic3DTextLabel("/buytoys\n To buy some accessories.",COLOR_YELLOW,201.0413,-40.1616,1001.8047,8.0);
- CreateDynamic3DTextLabel("/buytoys\n To buy some accessories.",COLOR_YELLOW,206.3963,-8.2122,1001.2109,8.0);
- CreateDynamic3DTextLabel("/buytoys\n To buy some accessories.",COLOR_YELLOW,162.7706,-83.2726,1001.8047,8.0);
- CreateDynamic3DTextLabel("/buytoys\n To buy some accessories.",COLOR_YELLOW,202.6777,-163.0623,1000.5306,8.0);
- // DMV
- CreateDynamic3DTextLabel("To pay your tickets or\nrelease your cars, type /dmvmenu",COLOR_YELLOW,833.60, 3.23, 1004.17+0.6,4.0);//
- //getlicense
- CreateDynamic3DTextLabel("Type /getlicense to \nacquire a license.",COLOR_YELLOW,366.559448,158.745285,1008.382812+0.5,8.0);// Licenses.
- CreatePickup(1239, 23, -1209.552001, -171.159011, 4891.833007, -1);
- // The Lubu Gentlemen's Club (pickup + text label)
- CreateDynamic3DTextLabel("The Lubu Gentlemen's Club",COLOR_YELLOW,511.817230, -1510.971679, 14.566996+0.7,10.0);
- CreatePickup(1318, 23, 511.817230, -1510.971679, 14.566996, -1);
- // The Tableau Club (pickup + text label)
- CreateDynamic3DTextLabel("The Tableau Club",COLOR_YELLOW,561.802795, -1506.722412, 14.548986+0.7,10.0);
- CreatePickup(1318, 23, 561.802795, -1506.722412, 14.548986, -1);
- CreateDynamic3DTextLabel("Tableau VIP Room\nEntrance cost: $100",COLOR_YELLOW,307.904296, 1025.602294, 1098.540039+0.7,10.0);
- CreatePickup(1318, 23, 307.904296, 1025.602294, 1098.540039, -1);
- // Santa Maria Surfer's Lounge
- CreateDynamic3DTextLabel("Santa Maria Surfer's Lounge",COLOR_YELLOW,387.958374, -1870.688110, 7.835937+0.7,10.0);
- CreatePickup(1318, 23, 387.958374, -1870.688110, 7.835937, -1);
- // Parachute at Startower
- CreateDynamic3DTextLabel("/getparachute",COLOR_YELLOW,1544.2,-1353.4,329.4+0.6,10.0);
- CreatePickup(371, 23, 1544.2,-1353.4,329.4); //LS towertop
- CreatePickup(371, 23, 1536.0, -1360.0, 1150.0); //LS towertop
- // Changename
- CreateDynamic3DTextLabel("Name Change Point \nType /changename to change your name",COLOR_YELLOW,1154.7295,-1440.2323,15.7969+0.6,18.0); // Namechange at mall
- CreatePickup(1239, 23, 1154.7295,-1440.2323,15.7969); //Changename
- // Los Santos Vehicles
- AddStaticVehicleEx(519,1806.1066,-2406.8108,14.4731,220.1901,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(519,1851.0873,-2397.0818,14.4738,221.0776,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(519,1881.2903,-2364.6726,14.4760,231.6925,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(593,1990.4940,-2400.4700,14.0069,126.8314,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(593,1991.9357,-2377.5691,14.0096,111.9823,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(485,2005.4028,-2340.4004,13.2026,353.8798,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(485,1944.1885,-2234.3225,13.2017,358.4947,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(485,1893.2838,-2320.5076,13.2070,285.2385,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(485,1882.2479,-2390.3965,13.2133,266.7464,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(485,1915.2466,-2643.3474,13.2050,2.2446,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(553,1944.5242,-2639.1465,14.8823,28.0299,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(553,1984.2778,-2637.7561,14.8831,9.0602,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(553,2019.7615,-2642.5803,14.8759,318.3256,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(510,2081.9866,-2359.7229,13.1551,64.1485,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(510,1866.6115,-2660.4602,13.1552,18.6151,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(513,1881.0273,-2632.3281,14.0996,40.9586,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(513,1891.9824,-2632.7056,14.1085,332.5663,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(593,1840.4315,-2631.8525,14.0080,319.2033,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(593,1822.1689,-2629.8713,14.0076,35.6965,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(593,1806.7133,-2630.3167,14.0037,32.0461,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(481,1698.6532,-2692.0225,13.0592,256.1956,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(485,1707.5415,-2646.3325,13.2052,359.6846,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(487,1716.0422,-2437.5767,13.7316,148.7897,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(487,1737.4827,-2432.7019,13.7340,192.0326,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(487,1752.5586,-2452.2275,13.7322,147.2027,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(417,1636.0142,-2409.7209,13.6266,193.2301,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(417,1655.8718,-2410.4551,13.6350,156.9428,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(510,1600.9696,-2395.0103,13.2262,298.2056,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(446,728.1595,-1495.2687,-0.4906,179.7909,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(454,720.7040,-1633.3224,0.1487,177.6009,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(454,720.5267,-1699.9827,0.1866,358.9251,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,648.1077,-1507.8370,14.7836,88.3481,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(413,691.4462,-1570.2456,14.3358,179.2636,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(603,259.4689,-1597.9203,33.1167,299.1694,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,258.0661,-1591.6113,33.1217,275.3944,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(409,867.4957,-1285.9368,13.8859,357.4155,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(457,844.4999,-1197.9865,16.6038,0.3980,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(457,880.8410,-1199.7491,16.6031,357.7022,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(457,914.7440,-1199.8364,16.6032,359.8655,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,920.4453,-1290.5063,13.3508,118.6505,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,863.2733,-1375.0151,13.3187,85.7265,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,821.6033,-1473.7249,12.5756,357.5008,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1031.1113,-1446.3105,13.1411,59.0580,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(418,1005.0084,-1461.3424,13.6427,183.0261,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(489,990.5985,-1306.8129,13.5204,179.0488,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1002.5063,-1306.5654,13.1866,359.6424,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,981.5054,-1306.6899,13.1630,181.0135,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,955.8333,-1190.2795,16.6425,270.2728,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,956.0022,-1199.3633,17.1270,268.5538,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(468,956.3898,-1193.4253,16.6297,89.6432,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(567,1085.8342,-1199.3883,17.7945,90.5839,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1097.0354,-1218.1705,17.5471,356.6483,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1084.2866,-1232.2461,15.3945,243.6654,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1083.9337,-1235.0449,15.4088,243.8919,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1083.7941,-1238.1573,15.4110,243.1097,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(405,1109.0310,-1225.8809,15.6987,181.5343,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(458,1000.3081,-1084.5488,23.7069,179.6207,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1015.8254,-1083.9113,23.5711,0.6381,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1032.2993,-1082.4255,23.4136,166.6669,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1003.6659,-1054.6088,30.6946,3.0438,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(560,1070.9109,-1102.3247,24.4439,270.7971,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1137.6492,-1025.5586,31.5121,177.9917,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(558,1131.7341,-1010.0580,29.4899,95.0937,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(581,1205.2384,-977.0176,43.0742,179.7537,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1227.2596,-974.1713,43.2139,180.2966,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(581,989.3703,-1589.3812,13.0903,21.5606,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1061.2451,-1665.2649,13.4966,91.9120,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(405,1136.5767,-1695.5199,13.6956,88.9354,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1137.1466,-1700.1902,13.3869,87.9396,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1280.4908,-1816.1259,13.0556,270.4623,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1250.2468,-1835.0884,13.5047,180.4024,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(527,1196.9360,-1829.6980,13.1197,269.7545,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,1280.9364,-1833.0607,13.0418,90.8050,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,1267.0612,-1795.2074,13.0702,0.6533,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1281.6627,-1805.1254,12.9241,62.4969,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,1238.0167,-1835.2385,13.2008,177.5310,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,1423.8417,-1845.0616,13.4772,270.4685,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(546,1536.6632,-1846.7765,13.2712,0.8185,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1614.0917,-1893.9027,13.3521,357.9483,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(546,1796.2775,-1933.2837,13.1180,180.4499,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,1776.1965,-1917.6884,13.1976,90.7850,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,1776.1498,-1907.3949,13.4788,271.3831,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,1804.1429,-1909.4020,13.3328,269.6684,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(474,1804.4889,-1919.3353,13.1556,269.8831,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1785.9353,-1933.2903,13.1750,0.8605,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1776.2777,-1894.0770,12.9741,272.6132,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1776.5122,-1899.9752,13.5071,87.3522,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1791.3899,-1933.2008,13.5101,180.1195,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1775.7963,-1912.6582,12.9720,269.4815,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1775.7340,-1914.1243,12.9716,262.3925,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1834.7808,-1871.9734,13.0925,179.2434,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1836.6301,-1853.6381,13.1059,179.9886,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(468,1900.5659,-1849.8379,13.2277,44.6102,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1097.5217,-1763.8896,12.8933,267.4286,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,892.6356,-1668.8604,13.3544,179.2466,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,870.1176,-1676.6573,13.1183,186.2732,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,888.5651,-1679.1317,13.2628,357.5185,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1671.9685,-1704.4779,20.2006,270.8929,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1673.9683,-1713.0564,20.0617,67.1318,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(413,327.8443,-1809.2729,4.5733,359.3342,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,311.7234,-1809.8577,4.3552,179.9755,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,334.3875,-1788.6018,4.7803,358.1175,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(467,740.4370,-1793.5476,12.9180,349.2087,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(473,823.7594,-2066.2686,-0.1017,112.6381,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(467,892.0507,-1797.3351,13.4070,175.4098,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(467,944.9136,-1813.5590,13.0146,350.0614,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(491,1096.8945,-1878.8030,13.3031,178.1535,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1206.2454,-1879.0792,13.3341,88.5190,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,346.9617,-1197.2283,76.2875,25.8040,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,481.5187,-1089.5427,82.1051,359.1924,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(426,565.9165,-1067.1946,73.1332,35.3833,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,150.7156,-1473.8826,24.9243,5.9389,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(603,172.0262,-1341.3418,69.5661,168.2207,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(405,406.4772,-1264.2565,50.2499,24.0160,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(535,423.6223,-1266.3209,51.3450,21.9438,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(477,261.5547,-1220.3823,74.6478,183.4546,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(535,276.9328,-1267.3054,73.7098,302.5802,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,280.3806,-1255.7952,73.6166,281.7693,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,569.3154,-1131.7330,50.2950,243.4572,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,687.5812,-1072.8162,49.1274,62.7814,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,724.4913,-995.4954,52.3857,89.4483,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,795.9840,-840.3973,60.4526,174.5740,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(534,831.9914,-858.8560,69.6527,199.3811,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(535,839.4457,-893.5928,68.5340,21.2260,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(477,912.5916,-832.0980,92.1407,218.1897,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,966.6584,-842.2115,95.4213,208.6852,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,1024.2820,-777.6995,102.7277,142.3072,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(477,1460.3851,-633.6793,95.5530,179.4419,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(535,1516.9452,-765.4361,79.7405,142.5422,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(458,1530.6602,-814.2603,71.8145,269.5966,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(560,1536.7003,-841.9440,64.3992,91.2450,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,1088.9662,-644.2655,113.1492,338.4004,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(550,1038.2852,-640.5812,119.9407,3.9959,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(560,946.7752,-705.8109,121.9154,208.3881,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(535,912.4982,-665.0076,116.7563,234.0564,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(477,866.9702,-712.0836,105.4297,301.5712,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,851.5046,-741.6164,94.8512,223.7018,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(603,887.4414,-782.3810,101.1163,325.3539,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(534,834.7188,-754.2109,85.0352,221.3681,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,856.4266,-825.8338,89.3121,35.0684,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,812.7324,-768.6061,76.6226,240.9842,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,792.6622,-824.7413,69.7717,10.8903,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(405,211.8928,-1419.0681,13.1531,135.6236,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,203.5655,-1441.0552,12.6881,319.3540,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,216.6308,-1431.9065,13.3691,313.9951,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(462,338.6057,-1340.7114,14.1075,116.4867,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,343.3987,-1353.3427,14.4033,299.2459,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,412.7446,-1318.5144,14.6645,210.7711,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,411.1232,-1311.2087,14.5024,140.9818,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,500.5935,-1304.4486,16.8673,309.5460,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,531.3096,-1315.9927,16.8135,188.1211,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,587.8506,-1279.8562,15.9628,75.5049,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,588.5497,-1282.7085,15.7110,71.1037,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,569.1940,-1264.3147,16.4483,105.7125,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(474,580.0232,-1310.1290,13.6310,190.1793,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,892.2068,-944.0689,41.3930,346.6371,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1039.0024,-925.8621,42.0801,3.8901,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1028.1858,-887.8458,41.8743,18.1745,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(534,1091.6672,-934.4342,42.7434,181.8923,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1196.4460,-887.2950,42.7778,4.9401,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1184.3699,-898.7025,42.8468,50.8006,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(479,1307.0081,-871.5775,39.3723,88.4695,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1307.4617,-865.4689,39.6982,269.2831,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(543,1307.4490,-856.3735,39.3962,86.8428,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1305.3447,-860.6293,39.1185,240.4489,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(567,1327.1772,-856.8694,39.4427,355.0141,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(458,1422.6184,-915.6990,35.9254,173.6657,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,1455.1505,-920.9677,37.4997,5.5316,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(550,1025.4679,-981.0638,42.4947,275.3589,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(576,929.9745,-996.4139,37.8311,274.6470,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(404,863.1107,-1056.6387,24.8362,216.7097,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,868.9804,-1068.5559,24.6418,26.0884,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,783.3749,-1356.8221,13.4354,272.4747,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,733.6376,-1347.5618,13.0519,258.9138,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1696.6791,-2097.0415,13.2841,179.3459,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1662.7777,-2110.7148,13.2900,90.3870,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,1707.4287,-2142.6919,13.6471,229.0505,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(567,1725.0461,-2130.4683,13.4259,180.7540,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(412,1724.0801,-2092.9343,13.3837,178.9921,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1747.4430,-2097.3616,13.2870,179.0798,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(576,1793.3020,-2149.7551,13.2392,180.6801,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1772.7323,-2096.0732,13.2853,181.7548,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,1948.6121,-2114.0183,13.2416,90.8657,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1948.0044,-2126.9031,13.2611,269.0660,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1941.4159,-2139.8730,13.0970,153.7429,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(576,1938.4186,-2089.9116,13.1725,87.9823,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1998.8810,-2095.2688,13.6603,182.4098,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,2079.6143,-2007.4128,13.6618,267.6052,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(543,2070.6382,-1995.7777,13.3738,177.5505,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2064.7144,-1998.2357,13.0870,323.5498,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1981.1689,-1985.4224,13.3487,0.0153,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(443,2002.9520,-1940.1552,13.9832,90.4363,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(413,2062.2634,-1904.0969,13.6286,358.4263,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(426,2065.5415,-1920.3318,13.2901,179.3121,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(468,2120.8396,-1874.5211,13.2159,331.0408,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(489,2121.7656,-1783.0730,13.5319,181.4553,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(600,2106.7954,-1783.6602,13.0983,178.3882,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2114.6040,-1783.4563,13.4944,359.1006,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(546,2095.9749,-1800.3145,13.1088,268.3826,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2096.2324,-1819.9232,13.4752,269.6763,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(554,1928.4520,-1795.0306,13.4708,269.1664,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1976.6083,-1727.6584,15.7685,270.5382,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2014.2510,-1737.9341,13.6451,89.6673,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(546,2017.8608,-1707.7689,13.2712,91.0950,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1967.9211,-1658.8986,15.7506,88.9660,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(474,2026.2841,-1649.0118,13.3172,268.3413,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2014.0079,-1597.3103,13.3757,134.4442,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(466,2057.4875,-1636.5558,13.2887,269.2682,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,2062.4905,-1694.4796,13.3308,89.8789,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(533,2062.6511,-1738.6663,13.2560,90.7603,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(412,2238.7908,-1630.9789,15.5684,339.3786,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(534,2284.0630,-1681.7241,13.8912,0.3629,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2271.4482,-1634.8553,15.1246,1.4485,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2289.7493,-1685.7275,13.2727,338.6942,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,2296.9233,-1644.5267,14.5451,178.7794,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(474,2328.1565,-1677.1449,14.1746,268.4948,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2416.0103,-1707.7166,13.5772,180.6127,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2443.6687,-1637.1934,13.3619,180.6244,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(404,2516.5413,-1672.2059,13.6568,247.4270,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(600,2501.3005,-1685.7114,13.2052,54.2230,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(426,2500.2908,-1755.7277,13.1737,179.5942,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(479,2452.3486,-1784.1185,13.3435,358.6820,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2498.7920,-1953.6908,13.2268,180.0759,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,2482.8601,-1953.4886,13.5429,359.9536,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2731.4260,-1937.1626,13.3474,270.9490,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(489,2685.5461,-1986.3003,13.6939,358.8623,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2685.3967,-2021.3516,13.2650,179.1453,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2644.9438,-1989.3313,13.3576,178.5030,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(547,2787.8420,-1876.2371,9.5681,179.4587,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(426,2757.7773,-1847.0181,9.4532,21.0801,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(479,2732.6860,-1875.2740,9.3877,359.7763,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(567,2706.5757,-1843.5668,9.3669,339.9568,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(458,2679.1792,-1826.0692,9.2646,129.6775,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,2657.7949,-1812.8765,9.1989,98.6444,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,2697.0117,-1836.8411,9.0454,131.7257,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2757.8318,-1878.8939,9.2421,331.1535,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2813.1143,-1822.5189,9.5068,56.5744,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2808.0325,-1669.0962,9.5088,168.8724,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(466,2829.7585,-1699.7444,9.7443,256.3983,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,2825.0059,-1718.6702,9.8159,77.5273,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(588,2686.6833,-1672.3564,9.3456,1.2872,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(546,2657.6079,-1701.7725,9.0416,92.9747,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2654.6636,-1692.5939,8.8779,251.8571,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2696.4189,-1669.2604,9.0249,152.7104,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(474,2813.8862,-1429.2637,16.0126,357.9624,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(546,2792.6982,-1432.1294,19.9428,95.9562,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2819.5498,-1427.8861,27.7283,97.0200,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2794.7859,-1464.7653,40.1536,180.1253,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(418,2816.5820,-1431.5497,40.1556,268.4159,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2794.0625,-1576.2109,10.4993,252.9832,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(600,2796.4966,-1562.6956,10.6452,89.5535,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(426,2822.3193,-1553.4038,10.6672,89.8755,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(533,2807.4377,-1540.4016,10.6310,180.0459,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,2855.3896,-1354.9142,10.8385,271.7889,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2850.3010,-1323.3470,10.8710,43.7938,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,2845.5762,-1287.0035,18.8725,276.4800,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2802.9653,-1174.3158,25.0878,148.6355,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,2814.8518,-1186.5088,24.9740,125.2599,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,2827.8259,-1165.8298,24.8425,74.4954,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(419,2828.4297,-1193.2813,24.7035,319.2678,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2686.6938,-1102.2723,68.9335,36.2440,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2570.6431,-1101.5728,65.9616,224.2815,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,2589.6411,-967.6470,80.9740,54.8113,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(543,2561.0659,-955.9353,82.5712,189.2468,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(543,2499.9092,-961.6536,82.0865,177.1486,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(478,2492.5671,-951.8682,82.2364,268.9169,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2450.5344,-957.0054,79.5994,88.6032,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2359.4319,-648.6396,127.7032,321.5916,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(478,2368.4819,-651.1127,127.6424,221.5063,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(529,2497.5225,-1063.2612,69.7644,180.0623,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(412,2503.8013,-1024.9954,69.9222,354.6204,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2485.7839,-1015.6508,65.0513,332.0788,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2453.7122,-1011.7231,59.5763,354.2991,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,2432.1267,-1056.5386,54.0339,182.6494,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2366.8833,-1052.4576,53.7198,162.4203,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2334.8330,-1052.5548,51.8916,205.8942,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2328.0398,-1052.3500,52.4471,178.7152,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(468,2368.9734,-1029.3669,53.9112,303.9771,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2222.1743,-1043.8972,57.4453,287.0623,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2200.8208,-1000.4743,62.1100,337.4120,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2073.8337,-972.3666,48.8145,121.6684,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,2057.1284,-987.3378,45.8448,41.0353,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,2032.1614,-966.3978,40.8893,144.2881,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,1994.0328,-1089.3951,24.1790,265.7199,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1910.2012,-1117.5193,25.4453,359.7224,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(576,1934.3488,-1118.8567,26.0909,167.6531,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(540,1991.7618,-1119.2262,26.6329,88.5620,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,2090.1191,-1141.0527,25.2550,91.9199,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2116.0889,-1059.6656,25.4645,1.6788,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,2161.8665,-1148.1637,24.0918,268.7138,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(576,2162.5032,-1162.9884,23.4278,270.5314,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(540,2147.6460,-1180.4316,23.6805,271.2742,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(554,2161.5271,-1192.5657,23.9013,270.6950,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2164.0178,-1178.0918,23.3890,68.9158,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2145.5957,-1162.0776,23.3554,273.2266,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2148.7520,-1242.4739,24.4964,2.1731,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2105.4612,-1242.9531,24.7791,1.3025,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2033.9213,-1285.0781,20.7583,269.6826,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(479,2033.2328,-1294.9094,20.7262,90.1861,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2095.4097,-1365.6405,23.7217,359.4201,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(567,2136.8682,-1366.1549,24.9118,181.6538,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(554,2156.6670,-1408.6438,25.6234,89.8769,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(529,2150.2095,-1423.7836,25.1728,270.8055,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(412,2157.4702,-1454.6027,25.3766,272.0728,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,2168.9004,-1503.8928,24.0567,264.3123,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(554,2191.4373,-1465.7140,25.6253,90.8413,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(489,2185.0557,-1434.4803,25.6846,93.1798,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(529,2229.7317,-1367.4005,23.6257,273.8516,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(405,2229.4822,-1348.8889,23.8603,87.4558,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(600,2230.1382,-1359.4955,23.7003,269.3415,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2196.1318,-1278.5265,24.2447,358.3134,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(479,2426.9795,-1241.6071,24.0514,176.5720,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(603,2414.5007,-1223.4979,24.7468,354.3562,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2431.3196,-1241.5726,24.1538,177.5767,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2430.6926,-1220.7517,24.9012,142.6704,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(467,2556.9187,-1211.2632,54.2710,92.0357,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2559.0198,-1194.6180,61.2624,177.0269,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(412,2491.1543,-1299.4158,32.1578,276.4995,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(554,2489.9026,-1292.7750,32.0910,246.3011,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2493.6797,-1276.2856,33.0028,268.8489,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2390.2915,-1487.7120,23.6330,90.8244,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2390.6387,-1503.7330,23.9272,270.7136,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2389.4578,-1497.8422,23.3752,243.2236,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(545,2396.8088,-1536.9807,23.8111,0.1546,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(479,2407.3284,-1538.0587,23.7968,0.6749,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(466,2412.8625,-1537.3831,23.7432,357.6566,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2449.7637,-1556.8450,23.8046,1.3418,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(529,2454.6299,-1557.0045,23.6327,180.1560,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,2477.5659,-1557.4111,23.7818,358.5618,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,2491.4055,-1535.6182,23.5519,59.4337,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,2491.1179,-1529.3501,23.5688,56.2088,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2491.4360,-1532.5398,23.5717,55.7102,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,2489.5791,-1518.4509,23.7588,269.8171,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(562,2482.6208,-1557.3427,23.6524,2.3099,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(468,2499.0034,-1538.0708,23.6439,335.4962,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2520.1445,-1480.9065,23.7363,1.3232,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(533,2573.5979,-1489.6091,23.7162,87.7542,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2554.3159,-1367.9281,31.7872,241.1393,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,2411.6626,-1390.6456,24.0787,268.8195,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(533,1819.8600,-1403.5051,13.1363,89.9457,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1809.4696,-1432.1268,13.0139,274.7705,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1676.1560,-1106.9868,23.6493,268.6964,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,1649.5083,-1102.5532,23.5644,270.0267,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,1658.4116,-1088.9274,23.6777,89.2744,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1620.9778,-1089.5054,24.0216,89.9049,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1629.4741,-1103.3231,23.5760,268.5257,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1640.7035,-1046.7117,23.5692,359.8533,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1660.7136,-1016.1744,23.9634,11.4114,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1689.9340,-1035.6692,23.6231,178.1297,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1731.1282,-1009.0837,23.6852,348.1700,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1757.4509,-1037.7462,23.8359,180.9093,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1770.8777,-1061.7106,23.7646,179.4640,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1780.0526,-1069.8851,23.6770,359.9332,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1762.5533,-1085.8549,23.6983,180.7030,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1740.1122,-1085.8320,23.6318,181.0830,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1726.2168,-1085.2207,23.6669,182.7872,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(549,1699.9979,-1068.8979,23.6031,357.9710,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,1713.3634,-1061.1498,23.9985,181.1158,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1640.7484,-1038.1542,23.6150,358.3014,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1594.9391,-1009.9454,23.6493,185.8625,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(482,1577.2344,-1040.1863,24.0271,141.0052,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(536,1562.9835,-1011.3809,23.6439,359.5882,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1546.6223,-1026.6492,23.6228,162.1279,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1577.0701,-1008.9494,23.4464,165.1993,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,1592.5432,-1057.9313,23.4784,297.7319,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(461,1651.4000,-1015.1333,23.4877,216.5875,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(463,1694.4098,-1003.8555,23.4463,216.3939,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,1748.7355,-1039.5499,23.5323,15.0375,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1657.5460,-1137.0397,23.6497,178.3330,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(589,1616.6453,-1128.1941,23.5644,92.6623,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(484,2947.8057,-2052.6362,0.4738,359.4145,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(455,2264.7073,-2335.1189,13.9838,314.5604,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(453,2505.7712,-2269.1885,-0.3120,268.6544,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(453,2307.9446,-2414.1733,-0.2071,314.9561,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(525,2510.2681,-2629.5205,13.5251,88.6646,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(455,2498.7861,-2572.7219,14.0866,357.5439,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(422,2516.4746,-2452.8889,13.6216,44.3283,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(470,2764.3169,-2383.4829,13.6235,181.4826,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(470,2779.5730,-2440.3181,13.6296,267.8545,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(470,2737.3740,-2485.6760,13.6431,87.2884,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2744.2754,-2447.5588,13.7433,179.2557,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2765.2122,-2531.8735,13.7407,359.5258,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2784.2922,-2387.0547,13.7279,89.7828,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(400,2753.1467,-2387.5439,13.7358,1.3794,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(552,2656.9172,-2451.1821,13.3204,93.4499,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(422,2428.1499,-2492.5559,13.6317,45.6813,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(530,2435.3372,-2434.5278,13.3911,41.7356,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(530,2418.4021,-2506.5557,13.4131,273.4680,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(455,2152.5361,-2148.2825,13.9860,310.8004,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,1373.6738,-1634.1741,13.2790,271.5004,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1362.9803,-1659.5125,13.1263,270.4668,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1359.6680,-1749.6177,13.1843,0.0962,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,1401.3602,-1507.1211,13.4834,163.4146,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1500.1357,-1487.4355,13.3556,91.3002,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1797.1293,-1701.1102,13.2757,179.5340,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,1807.9387,-1688.3774,13.1068,105.3693,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,306.7730,-1438.4087,27.7341,120.6372,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1277.5547,-1610.1168,13.3511,90.3928,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1145.1482,-1366.7389,13.5456,184.4175,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(418,2090.4797,-1556.7979,13.2113,181.8175,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(554,2224.8198,-2211.0693,13.6286,314.5282,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,2393.2522,-1927.3457,13.2782,179.4218,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,2383.3689,-1928.1165,13.1844,179.4976,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,2376.8760,-1929.3613,12.9563,341.1395,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,2349.1824,-2000.2684,13.2666,267.0585,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1512.3342,-2211.7639,13.2940,359.3842,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1546.2539,-2211.5557,13.2254,178.7042,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,1560.0939,-2243.5127,13.1179,94.0584,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1454.6436,-2224.9185,13.2177,0.2168,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1408.1469,-2242.1521,13.2630,359.3946,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(439,1398.1570,-2225.4885,13.4427,179.6260,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(475,1391.6555,-2241.8704,13.3495,180.5889,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1364.5348,-2242.7036,13.2899,270.7713,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(542,1404.6641,-2314.1211,13.2898,180.5298,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(518,1411.2491,-2347.3430,13.2101,180.0483,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(496,1391.5173,-2364.2131,13.2633,179.7053,-1, -1, VEHICLE_RESPAWN);
- AddStaticVehicleEx(521,1365.7269,-2351.5515,13.1069,87.0619,-1, -1, VEHICLE_RESPAWN);
- // Taxi vehicles
- AddStaticVehicleEx(420,1775.6141,-1860.0100,13.2745,269.2006,6,6, VEHICLE_RESPAWN);
- AddStaticVehicleEx(420,1763.0121,-1860.0037,13.2723,271.2998,6,6, VEHICLE_RESPAWN);
- AddStaticVehicleEx(420,1748.9358,-1859.9502,13.2721,270.3943,6,6, VEHICLE_RESPAWN);
- AddStaticVehicleEx(420,1734.6754,-1859.9305,13.2740,270.5646,6,6, VEHICLE_RESPAWN);
- AddStaticVehicleEx(438,1807.70861816,-1866.13635254,13.78153229,0.00000000,6,6,VEHICLE_RESPAWN); //Cabbie
- AddStaticVehicleEx(438,1802.05126953,-1866.05419922,13.78153229,0.00000000,6,6,VEHICLE_RESPAWN); //Cabbie
- AddStaticVehicleEx(438,1797.65332031,-1866.18798828,13.78153229,0.00000000,6,6,VEHICLE_RESPAWN); //Cabbie
- AddStaticVehicleEx(438,1792.40527344,-1866.47851562,13.78153229,0.00000000,6,6,VEHICLE_RESPAWN); //Cabbie
- // Pount boundaries with gang zones
- pointboundaries[0] = GangZoneCreate(2545.8984375 ,-2153.3203125, 2707.03125, -2062.5); // FFC
- pointboundaries[1] = GangZoneCreate(1361.328125,-1435.546875,1478.515625,-1236.328125); // MP1
- pointboundaries[2] = GangZoneCreate(2077.1484375, -2361.328125, 2285.15625, -2179.6875); // MF1
- pointboundaries[3] = GangZoneCreate(2298.828125,-2064.453125,2546.875,-1935.546875); // MP2
- pointboundaries[4] = GangZoneCreate(2156.25, -1151.3671875, 2320.3125, -1001.953125); // MF2
- pointboundaries[5] = GangZoneCreate(2581.0546875, -2586.9140625, 2862.3046875, -2329.1015625); // AEC
- pointboundaries[6] = GangZoneCreate(2105.46875,-1753.90625,2177.734375,-1626.953125); // Drug House
- pointboundaries[7] = GangZoneCreate(2304.6875,-1181.640625,2361.328125,-1160.15625); // Crack Lab
- pointboundaries[8] = GangZoneCreate(13.671875,-402.34375,167.96875,-208.984375); // Drug Factory
- // Removal of hell hole (VIP Lounge)
- CreateDynamicObject(5397, 1782.96, -1563.40, 20.57, 0.00, 0.00, -4.00);
- CreateDynamicObject(3623, 1756.68, -1578.90, 16.63, 0.00, 0.00, 171.00);
- CreateDynamicObject(9946, 1777.26, -1581.90, 12.23, 0.00, 0.00, 0.00);
- CreateDynamicObject(9946, 1787.87, -1555.69, 12.23, 0.00, 0.00, 0.00);
- CreateDynamicObject(1557, 1781.43, -1564.99, 12.29, 0.00, 0.00, -4.00);
- CreateDynamicObject(1557, 1784.42, -1565.20, 12.29, 0.00, 0.00, 176.00);
- CreateDynamicObject(6057, 1766.17, -1540.20, 13.28, 0.00, 0.00, 180.00);
- CreateDynamicObject(6057, 1798.54, -1541.37, 13.24, 0.00, 0.00, 178.00);
- CreateDynamicObject(9339, 1765.43, -1593.55, 12.08, 0.00, 0.00, 84.00);
- CreateDynamicObject(3660, 1773.95, -1593.39, 14.19, 0.00, 0.00, -4.00);
- CreateDynamicObject(18766, 1821.13, -1537.24, 17.44, 90.00, 0.00, 73.00);
- CreateDynamicObject(18766, 1819.97, -1540.89, 17.44, 90.00, 0.00, 73.00);
- CreateDynamicObject(3623, 1761.02, -1551.50, 16.63, 0.00, 0.00, 171.00);
- // Temporary tombstone joke
- CreateDynamicObject(5777, 1767.33, -1578.64, 12.99, 0.00, 0.00, -11.00);
- CreateDynamicObject(325, 1767.82, -1578.75, 12.53, 0.00, 76.00, 91.00);
- CreateDynamicObject(325, 1767.73, -1578.79, 12.57, 0.00, 76.00, 271.00);
- CreateDynamicObject(1080, 1767.38, -1579.73, 12.85, 0.00, -25.00, 295.00);
- CreateDynamicObject(971, 1766.63, -1578.56, 12.47, 0.00, 0.00, 80.00);
- CreateDynamic3DTextLabel("You Can donate use /charity for the Paradox Roleplay , Flawless Roleplay 2019 - 2019\nMay they all rest in Heaven\nby Howard McAdam",COLOR_YELLOW,1767.881835, -1578.757446, 13.347187+0.1,6.0);
- // 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)
- // Gas station fix
- CreateDynamicObject(970,1942.49000000,-1766.66000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1942.49000000,-1770.81000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1942.49000000,-1774.95000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1942.49000000,-1779.11000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1940.77000000,-1766.66000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1940.77000000,-1770.81000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1940.77000000,-1774.95000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(970,1940.77000000,-1779.11000000,12.90000000,0.00000000,0.00000000,90.00000000);
- CreateDynamicObject(19121,1941.63000000,-1781.03000000,13.16000000,0.00000000,0.00000000,0.00000000);
- CreateDynamicObject(19121,1941.64000000,-1764.87000000,13.16000000,0.00000000,0.00000000,0.00000000);
- // Points
- CreateDynamicObject(970, 2294.1489257813, -1119.072265625, 37.5280418396, 0.000000, 0.000000, 89.559997558594);
- CreateDynamicObject(970, 2294.1589355469, -1114.8975830078, 37.5280418396, 0.000000, 0.000000, 90.0576171875);
- CreateDynamicObject(970, 2294.1552734375, -1110.7277832031, 37.5280418396, 0.000000, 0.000000, 90.054931640625);
- CreateDynamicObject(970, 2294.1496582031, -1106.5516357422, 37.5280418396, 0.000000, 0.000000, 90.054931640625);
- CreateDynamicObject(970, 2293.8994140625, -1102.4005126953, 37.5280418396, 0.000000, 0.000000, 96.804931640625);
- CreateDynamicObject(944, 2290.7561035156, -1103.4783935547, 37.861351013184, 0.000000, 0.000000, 171);
- CreateDynamicObject(3265, 2268.6408691406, -1135.2796630859, 27.531494140625, 0.000000, 0.000000, 346);
- CreateDynamicObject(944, 2386.1618652344, -2008.1566162109, 13.43848991394, 0.000000, 0.000000, 0.000000);
- CreateDynamicObject(1635, 2396.1938476563, -2008.0467529297, 16.3014087677, 0.000000, 0.000000, 90);
- CreateDynamicObject(1522, 2389.7197265625, -2007.4593505859, 12.553703308105, 0.000000, 0.000000, 0.000000);
- // FIX - Stability Glitch for the Welcome
- CreateDynamicObject(4729, 682.85186767578, -446.04205322266, -26.629999160767, 20, 90, 0.000000, -1, 1, -1, 200.0);
- // Admin prison
- CreateDynamicObject(5706,201.06250000,1798.30761719,1605.14282227,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(studiobld03_law) (1)
- CreateDynamicObject(5706,200.97360229,1800.69091797,1624.89306641,0.00000000,180.00000000,180.00000000, .interiorid = 69); //object(studiobld03_law) (2)
- CreateDynamicObject(5706,201.04508972,1785.34130859,1616.89306641,90.00000000,180.00000000,0.00000000, .interiorid = 69); //object(studiobld03_law) (3)
- CreateDynamicObject(5706,187.49099731,1798.58190918,1616.89306641,270.00000000,167.22003174,77.22552490, .interiorid = 69); //object(studiobld03_law) (5)
- CreateDynamicObject(5706,221.26737976,1796.82397461,1616.89306641,270.00000000,0.00000000,90.00000000, .interiorid = 69); //object(studiobld03_law) (6)
- CreateDynamicObject(10974,185.34759521,1795.66455078,1623.84826660,180.00000000,0.00000000,0.00000000, .interiorid = 69); //object(mall_01_sfs) (1)
- CreateDynamicObject(14856,216.09912109,1811.63830566,1610.83496094,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(cellsa) (1)
- CreateDynamicObject(3095,213.05435181,1806.09997559,1612.68823242,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (2)
- CreateDynamicObject(3095,204.07275391,1806.09997559,1612.68823242,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (3)
- CreateDynamicObject(3095,195.12341309,1806.09997559,1612.68823242,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (4)
- CreateDynamicObject(3095,213.12713623,1806.10498047,1613.26379395,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (6)
- CreateDynamicObject(3095,204.15332031,1806.10498047,1613.26379395,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (7)
- CreateDynamicObject(3095,195.16894531,1806.10498047,1613.26379395,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (8)
- CreateDynamicObject(3095,213.20382690,1807.67150879,1608.71374512,90.00000000,180.00549316,269.98904419, .interiorid = 69); //object(a51_jetdoor) (10)
- CreateDynamicObject(3095,213.95382690,1807.67102051,1608.71374512,270.00000000,179.99963379,269.98315430, .interiorid = 69); //object(a51_jetdoor) (11)
- CreateDynamicObject(3095,208.95237732,1807.66687012,1608.71374512,90.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (12)
- CreateDynamicObject(3095,209.71374512,1807.66662598,1608.71374512,270.00000000,180.00041199,269.98388672, .interiorid = 69); //object(a51_jetdoor) (13)
- CreateDynamicObject(3095,205.46282959,1807.69738770,1608.71374512,270.00000000,180.00152588,269.98498535, .interiorid = 69); //object(a51_jetdoor) (15)
- CreateDynamicObject(3095,204.15332031,1807.69628906,1608.98876953,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (16)
- CreateDynamicObject(3095,213.12890625,1807.69628906,1608.98779297,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (17)
- CreateDynamicObject(3095,204.16938782,1809.18554688,1613.41516113,90.00000000,180.00549316,0.00000000, .interiorid = 69); //object(a51_jetdoor) (18)
- CreateDynamicObject(3095,213.16665649,1809.18652344,1613.41442871,90.00000000,180.00549316,0.00000000, .interiorid = 69); //object(a51_jetdoor) (19)
- CreateDynamicObject(1508,217.57765198,1795.53601074,1610.62158203,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(dyn_garage_door) (1)
- CreateDynamicObject(3095,213.95312500,1807.67089844,1617.71423340,270.00000000,179.99450684,269.97802734, .interiorid = 69); //object(a51_jetdoor) (22)
- CreateDynamicObject(3095,213.20312500,1807.67089844,1617.66418457,90.00000000,180.00549316,269.98901367, .interiorid = 69); //object(a51_jetdoor) (23)
- CreateDynamicObject(3095,209.71289062,1807.66601562,1617.38842773,270.00000000,179.99450684,269.97802734, .interiorid = 69); //object(a51_jetdoor) (24)
- CreateDynamicObject(3095,208.95214844,1807.66601562,1617.19018555,90.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (25)
- CreateDynamicObject(3095,205.46191406,1807.67187500,1617.19042969,270.00000000,179.99853516,269.98202515, .interiorid = 69); //object(a51_jetdoor) (26)
- CreateDynamicObject(3095,204.82421875,1807.67285156,1617.76354980,90.00000000,180.00549316,269.98904419, .interiorid = 69); //object(a51_jetdoor) (27)
- CreateDynamicObject(14856,216.09863281,1811.63769531,1615.11096191,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(cellsa) (2)
- CreateDynamicObject(3095,213.12890625,1806.10498047,1617.53784180,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (28)
- CreateDynamicObject(3095,213.05371094,1806.11840820,1616.96350098,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (29)
- CreateDynamicObject(3095,204.17089844,1806.10498047,1616.96374512,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (30)
- CreateDynamicObject(3095,204.14634705,1806.12365723,1617.53930664,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (31)
- CreateDynamicObject(14856,216.09863281,1811.63769531,1619.23608398,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(cellsa) (3)
- CreateDynamicObject(3095,204.16894531,1809.18554688,1622.41491699,90.00000000,179.99450684,0.00549316, .interiorid = 69); //object(a51_jetdoor) (32)
- CreateDynamicObject(3095,213.16601562,1809.18652344,1622.41271973,90.00000000,180.00549316,0.00000000, .interiorid = 69); //object(a51_jetdoor) (33)
- CreateDynamicObject(3095,217.44302368,1806.10583496,1621.96374512,90.00000000,180.00549316,269.98904419, .interiorid = 69); //object(a51_jetdoor) (34)
- CreateDynamicObject(1508,191.36837769,1795.14965820,1610.62158203,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(dyn_garage_door) (2)
- CreateDynamicObject(3095,204.14608765,1806.11840820,1621.06384277,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (35)
- CreateDynamicObject(3095,213.05371094,1806.09960938,1621.06481934,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (36)
- CreateDynamicObject(3095,195.18051147,1807.69628906,1608.98876953,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (37)
- CreateDynamicObject(3095,195.21980286,1809.17871094,1613.41516113,90.00000000,179.99450684,0.01098633, .interiorid = 69); //object(a51_jetdoor) (38)
- CreateDynamicObject(3095,195.21972656,1809.17871094,1622.41491699,90.00000000,179.99450684,0.00549316, .interiorid = 69); //object(a51_jetdoor) (39)
- CreateDynamicObject(3095,199.09042358,1807.69812012,1617.76354980,90.00000000,180.00549316,269.98901367, .interiorid = 69); //object(a51_jetdoor) (40)
- CreateDynamicObject(3095,199.87951660,1807.70117188,1617.19042969,270.00000000,179.99450684,269.98352051, .interiorid = 69); //object(a51_jetdoor) (41)
- CreateDynamicObject(970,211.04483032,1801.64660645,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (1)
- CreateDynamicObject(970,215.34765625,1801.64648438,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (2)
- CreateDynamicObject(970,206.81762695,1801.64660645,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (3)
- CreateDynamicObject(970,202.59719849,1801.64660645,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (4)
- CreateDynamicObject(970,202.59667969,1801.64648438,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (5)
- CreateDynamicObject(970,206.81738281,1801.64648438,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (6)
- CreateDynamicObject(970,211.04394531,1801.64648438,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (7)
- CreateDynamicObject(970,215.34765625,1801.64648438,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (8)
- CreateDynamicObject(970,198.36755371,1801.64660645,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (9)
- CreateDynamicObject(14856,192.71429443,1811.66918945,1610.82006836,0.00000000,0.00000000,180.00000000, .interiorid = 69); //object(cellsa) (4)
- CreateDynamicObject(14856,192.71386719,1811.66894531,1615.09558105,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(cellsa) (5)
- CreateDynamicObject(14856,192.71386719,1811.66894531,1619.24499512,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(cellsa) (6)
- CreateDynamicObject(3095,203.34902954,1807.69787598,1608.71374512,90.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (47)
- CreateDynamicObject(3095,203.34912109,1807.70043945,1616.81311035,90.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (49)
- CreateDynamicObject(3095,199.85475159,1807.69226074,1608.44140625,270.00000000,179.99450684,269.97802734, .interiorid = 69); //object(a51_jetdoor) (52)
- CreateDynamicObject(3095,199.11541748,1807.69702148,1608.26379395,90.00000000,180.00549316,269.98901367, .interiorid = 69); //object(a51_jetdoor) (53)
- CreateDynamicObject(3095,194.85942078,1807.69738770,1617.76354980,90.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (54)
- CreateDynamicObject(3095,195.61764526,1807.69738770,1617.19042969,270.00000000,180.00036621,269.98388672, .interiorid = 69); //object(a51_jetdoor) (55)
- CreateDynamicObject(3095,195.61718750,1807.69726562,1608.51403809,270.00000000,179.99853516,269.98202515, .interiorid = 69); //object(a51_jetdoor) (56)
- CreateDynamicObject(3095,194.85937500,1807.69726562,1608.28735352,90.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (57)
- CreateDynamicObject(3095,195.14624023,1806.11840820,1621.06384277,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (58)
- CreateDynamicObject(3095,195.18821716,1806.10400391,1616.96374512,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(a51_jetdoor) (59)
- CreateDynamicObject(3095,195.15039062,1806.10498047,1617.53930664,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (60)
- CreateDynamicObject(3095,191.34226990,1806.09716797,1617.19042969,270.00000000,179.99853516,269.98205566, .interiorid = 69); //object(a51_jetdoor) (61)
- CreateDynamicObject(3095,191.34179688,1806.09667969,1608.31457520,270.00000000,179.99450684,269.97802734, .interiorid = 69); //object(a51_jetdoor) (62)
- CreateDynamicObject(3095,217.42178345,1806.11962891,1613.11291504,90.00000000,180.00549316,270.00000000, .interiorid = 69); //object(a51_jetdoor) (63)
- CreateDynamicObject(3095,188.47315979,1797.14782715,1613.26379395,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (64)
- CreateDynamicObject(3095,188.47315979,1788.17077637,1613.26379395,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (65)
- CreateDynamicObject(3095,188.47265625,1797.14746094,1617.53979492,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (66)
- CreateDynamicObject(3095,188.47265625,1788.16992188,1617.53881836,0.00000000,179.99450684,270.00000000, .interiorid = 69); //object(a51_jetdoor) (67)
- CreateDynamicObject(3095,188.48295593,1797.18103027,1612.68823242,0.00000000,0.00000000,180.00000000, .interiorid = 69); //object(a51_jetdoor) (68)
- CreateDynamicObject(3095,188.48242188,1797.18066406,1616.96374512,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(a51_jetdoor) (69)
- CreateDynamicObject(3095,188.47740173,1788.21972656,1616.96374512,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(a51_jetdoor) (70)
- CreateDynamicObject(3095,188.47656250,1788.21972656,1612.68920898,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(a51_jetdoor) (71)
- CreateDynamicObject(970,195.12841797,1801.67028809,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (10)
- CreateDynamicObject(970,198.36718750,1801.64648438,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (12)
- CreateDynamicObject(970,195.12792969,1801.66992188,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (13)
- CreateDynamicObject(970,192.93154907,1799.55737305,1613.81237793,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(fencesmallb) (14)
- CreateDynamicObject(970,192.93154907,1795.31909180,1613.81237793,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(fencesmallb) (15)
- CreateDynamicObject(970,192.93066406,1799.55664062,1618.06286621,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(fencesmallb) (17)
- CreateDynamicObject(970,192.93066406,1795.31835938,1618.06286621,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(fencesmallb) (18)
- CreateDynamicObject(3095,197.45889282,1786.73498535,1612.68823242,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(a51_jetdoor) (72)
- CreateDynamicObject(970,192.90052795,1793.24084473,1613.81237793,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(fencesmallb) (19)
- CreateDynamicObject(3095,197.48855591,1786.73596191,1613.26379395,0.00000000,180.00000000,0.00000000, .interiorid = 69); //object(a51_jetdoor) (73)
- CreateDynamicObject(3095,197.48828125,1786.73535156,1617.53601074,0.00000000,179.99450684,0.00000000, .interiorid = 69); //object(a51_jetdoor) (74)
- CreateDynamicObject(3095,197.45800781,1786.73437500,1616.96301270,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(a51_jetdoor) (76)
- CreateDynamicObject(3095,206.43820190,1786.73596191,1613.26379395,0.00000000,179.99450684,0.00000000, .interiorid = 69); //object(a51_jetdoor) (77)
- CreateDynamicObject(3095,206.42300415,1786.73400879,1612.68823242,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(a51_jetdoor) (78)
- CreateDynamicObject(970,192.90039062,1793.24023438,1618.06286621,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(fencesmallb) (20)
- CreateDynamicObject(970,195.08341980,1791.18090820,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (21)
- CreateDynamicObject(970,199.35119629,1791.18090820,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (22)
- CreateDynamicObject(970,203.61909485,1791.18090820,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (23)
- CreateDynamicObject(970,207.91763306,1791.18090820,1613.81237793,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (24)
- CreateDynamicObject(970,195.08300781,1791.18066406,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (25)
- CreateDynamicObject(970,199.35058594,1791.18066406,1618.06286621,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(fencesmallb) (26)
- CreateDynamicObject(12950,214.32031250,1789.71875000,1609.79418945,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(cos_sbanksteps03) (1)
- CreateDynamicObject(12950,205.98063660,1789.62817383,1614.14453125,0.00000000,0.00000000,90.00000000, .interiorid = 69); //object(cos_sbanksteps03) (2)
- CreateDynamicObject(3095,206.42285156,1786.73339844,1612.46301270,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(a51_jetdoor) (80)
- CreateDynamicObject(3095,206.44000244,1786.72985840,1613.03833008,0.00000000,179.99450684,0.00000000, .interiorid = 69); //object(a51_jetdoor) (82)
- CreateDynamicObject(3095,206.40036011,1789.18249512,1607.96301270,90.00000000,180.00000000,180.00000000, .interiorid = 69); //object(a51_jetdoor) (83)
- CreateDynamicObject(3095,210.93899536,1786.74987793,1608.16320801,90.00000000,179.99450684,90.01101685, .interiorid = 69); //object(a51_jetdoor) (84)
- CreateDynamicObject(3095,210.35997009,1786.72998047,1608.18823242,90.00000000,180.00549316,269.98904419, .interiorid = 69); //object(a51_jetdoor) (85)
- CreateDynamicObject(3095,206.40390015,1791.20959473,1605.71276855,90.00000000,179.99450684,179.99450684, .interiorid = 69); //object(a51_jetdoor) (86)
- CreateDynamicObject(3095,202.45399475,1786.74548340,1608.16320801,90.00000000,179.99450684,90.01098633, .interiorid = 69); //object(a51_jetdoor) (87)
- CreateDynamicObject(3095,201.88999939,1786.72998047,1608.18823242,90.00000000,180.00549316,269.98901367, .interiorid = 69); //object(a51_jetdoor) (88)
- CreateDynamicObject(1779,209.17303467,1789.21142578,1610.04138184,0.00000000,0.00000000,180.00000000, .interiorid = 69); //object(cj_ticketmachine) (1)
- CreateDynamicObject(1779,208.34777832,1789.21301270,1610.04138184,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(cj_ticketmachine) (2)
- CreateDynamicObject(1649,208.50978088,1790.75683594,1610.97937012,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(wglasssmash) (1)
- CreateDynamicObject(1649,208.68554688,1790.97949219,1610.97937012,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(wglasssmash) (2)
- CreateDynamicObject(1649,204.25000000,1790.98034668,1610.97937012,0.00000000,0.00000000,179.99450684, .interiorid = 69); //object(wglasssmash) (4)
- CreateDynamicObject(1649,204.12200928,1790.77050781,1610.97937012,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(wglasssmash) (5)
- CreateDynamicObject(1671,207.08955383,1789.63757324,1609.42346191,0.00000000,0.00000000,170.00000000, .interiorid = 69); //object(swivelchair_a) (1)
- CreateDynamicObject(1671,204.79295349,1789.67260742,1609.42346191,0.00000000,0.00000000,181.99694824, .interiorid = 69); //object(swivelchair_a) (2)
- CreateDynamicObject(1886,192.97596741,1791.22827148,1612.89184570,0.00000000,0.00000000,122.00000000, .interiorid = 69); //object(shop_sec_cam) (1)
- CreateDynamicObject(1886,192.97558594,1791.22753906,1617.09228516,0.00000000,0.00000000,149.99768066, .interiorid = 69); //object(shop_sec_cam) (2)
- CreateDynamicObject(1886,191.98481750,1789.51403809,1621.04223633,30.00000000,0.00000000,119.99633789, .interiorid = 69); //object(shop_sec_cam) (3)
- CreateDynamicObject(1886,216.65586853,1790.06823730,1621.04223633,29.99816895,0.00000000,219.99270630, .interiorid = 69); //object(shop_sec_cam) (4)
- CreateDynamicObject(1886,191.82667542,1802.56311035,1621.16735840,11.00000000,0.00000000,82.26770020, .interiorid = 69); //object(shop_sec_cam) (5)
- CreateDynamicObject(1886,191.82617188,1802.56250000,1617.04248047,10.99731445,0.00000000,82.26562500, .interiorid = 69); //object(shop_sec_cam) (6)
- CreateDynamicObject(1886,191.82617188,1802.56250000,1612.81799316,10.99731445,0.00000000,82.26562500, .interiorid = 69); //object(shop_sec_cam) (7)
- CreateDynamicObject(2163,203.82183838,1791.07727051,1609.16345215,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(med_office_unit_2) (1)
- CreateDynamicObject(2163,206.70214844,1791.09375000,1609.16345215,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(med_office_unit_2) (2)
- CreateDynamicObject(2949,201.87556458,1790.66833496,1608.96325684,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(kmb_lockeddoor) (1)
- CreateDynamicObject(2949,202.47567749,1789.17675781,1608.96325684,0.00000000,0.00000000,179.99993896, .interiorid = 69); //object(kmb_lockeddoor) (2)
- CreateDynamicObject(2611,205.84300232,1789.22143555,1610.90124512,0.00000000,0.00000000,180.00000000, .interiorid = 69); //object(police_nb1) (1)
- CreateDynamicObject(2606,210.55937195,1789.67712402,1611.38903809,0.00000000,0.00000000,270.00000000, .interiorid = 69); //object(cj_police_counter2) (1)
- CreateDynamicObject(2606,210.55859375,1789.67675781,1611.86450195,0.00000000,0.00000000,269.99450684, .interiorid = 69); //object(cj_police_counter2) (2)
- CreateDynamicObject(1800,214.45210266,1805.61340332,1617.53454590,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (3)
- CreateDynamicObject(1800,210.21595764,1805.59899902,1617.53454590,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (4)
- CreateDynamicObject(1800,205.95664978,1805.66284180,1617.53454590,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (5)
- CreateDynamicObject(1800,200.50657654,1805.64892578,1617.53454590,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (6)
- CreateDynamicObject(1800,196.11277771,1805.65185547,1617.53454590,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (7)
- CreateDynamicObject(1800,191.83377075,1805.65478516,1617.53454590,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (8)
- CreateDynamicObject(1800,214.45761108,1805.68225098,1613.26037598,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (9)
- CreateDynamicObject(1800,210.19975281,1805.67297363,1613.26037598,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (10)
- CreateDynamicObject(1800,205.95896912,1805.70129395,1613.26037598,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (11)
- CreateDynamicObject(1800,200.48924255,1805.69775391,1613.26037598,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (12)
- CreateDynamicObject(1800,196.09724426,1805.65148926,1613.26037598,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (13)
- CreateDynamicObject(1800,191.82055664,1805.65979004,1613.26037598,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (14)
- CreateDynamicObject(1800,214.42187500,1805.65441895,1608.98449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (15)
- CreateDynamicObject(1800,210.21253967,1805.68786621,1608.98449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (16)
- CreateDynamicObject(1800,205.94084167,1805.60290527,1608.98449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (17)
- CreateDynamicObject(1800,205.94042969,1805.60253906,1609.93542480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (18)
- CreateDynamicObject(1800,210.21191406,1805.68750000,1609.93542480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (19)
- CreateDynamicObject(1800,200.50958252,1805.69555664,1608.98449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (20)
- CreateDynamicObject(1800,200.50878906,1805.69531250,1609.96044922,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (21)
- CreateDynamicObject(1800,196.10487366,1805.67517090,1608.98449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (22)
- CreateDynamicObject(1800,196.10449219,1805.67480469,1609.96044922,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (23)
- CreateDynamicObject(1800,191.86831665,1805.67456055,1608.98449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (24)
- CreateDynamicObject(1800,191.86816406,1805.67382812,1609.93542480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (25)
- CreateDynamicObject(1800,214.42187500,1805.65429688,1609.93542480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (26)
- CreateDynamicObject(1800,214.45703125,1805.68164062,1614.23632812,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (27)
- CreateDynamicObject(1800,210.19921875,1805.67285156,1614.23632812,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (28)
- CreateDynamicObject(1800,205.95800781,1805.70117188,1614.21130371,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (29)
- CreateDynamicObject(1800,200.48828125,1805.69726562,1614.23535156,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (30)
- CreateDynamicObject(1800,196.09667969,1805.65136719,1614.18627930,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (31)
- CreateDynamicObject(1800,191.82031250,1805.65917969,1614.23632812,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (32)
- CreateDynamicObject(1800,191.83300781,1805.65429688,1618.50952148,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (33)
- CreateDynamicObject(1800,196.11230469,1805.65136719,1618.48498535,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (34)
- CreateDynamicObject(1800,200.50585938,1805.64843750,1618.51049805,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (35)
- CreateDynamicObject(1800,205.95605469,1805.66210938,1618.48449707,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (36)
- CreateDynamicObject(1800,210.21582031,1805.59863281,1618.51049805,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (37)
- CreateDynamicObject(1800,214.45117188,1805.61328125,1618.48547363,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(low_bed_1) (38)
- CreateDynamicObject(2774,204.40760803,1803.95361328,1619.56640625,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(cj_airp_pillars) (1)
- CreateDynamicObject(2602,194.12474060,1808.81152344,1613.78393555,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (1)
- CreateDynamicObject(2602,198.33770752,1808.81555176,1613.78393555,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (2)
- CreateDynamicObject(2602,202.66923523,1808.81469727,1613.78393555,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (3)
- CreateDynamicObject(2602,208.20339966,1808.82031250,1613.78393555,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (4)
- CreateDynamicObject(2602,212.51039124,1808.82153320,1613.78393555,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (5)
- CreateDynamicObject(2602,216.61041260,1808.82446289,1613.78393555,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (7)
- CreateDynamicObject(2602,216.61035156,1808.82421875,1618.06042480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (8)
- CreateDynamicObject(2602,212.43417358,1808.79223633,1618.06042480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (9)
- CreateDynamicObject(2602,208.18164062,1808.78283691,1618.06042480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (10)
- CreateDynamicObject(2602,202.55258179,1808.80847168,1618.06042480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (11)
- CreateDynamicObject(2602,198.22427368,1808.81884766,1618.06042480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (12)
- CreateDynamicObject(2602,194.07098389,1808.83593750,1618.06042480,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (13)
- CreateDynamicObject(2602,194.07031250,1808.83593750,1609.50891113,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (15)
- CreateDynamicObject(2602,198.34811401,1808.82019043,1609.50891113,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (16)
- CreateDynamicObject(2602,202.64959717,1808.82995605,1609.50891113,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (17)
- CreateDynamicObject(2602,208.22689819,1808.85144043,1609.50891113,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (18)
- CreateDynamicObject(2602,212.45510864,1808.80895996,1609.50891113,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (19)
- CreateDynamicObject(2602,216.65698242,1808.81689453,1609.50891113,0.00000000,0.00000000,0.00000000, .interiorid = 69); //object(police_cell_toilet) (20)
- CreateDynamicObject(3388,204.12251282,1788.69470215,1608.96325684,0.00000000,0.00000000,270.00000000, .interiorid = 69); //object(a51_srack4_) (1)
- // WristWatch
- WristWatch = TextDrawCreate(549.000000, 16.000000, string);
- TextDrawBackgroundColor(WristWatch, 255);
- TextDrawFont(WristWatch, 3);
- TextDrawLetterSize(WristWatch, 0.589999, 2.299998);
- TextDrawColor(WristWatch, -1);
- TextDrawSetOutline(WristWatch, 1);
- TextDrawSetProportional(WristWatch, 1);
-
- // Unknown command error messages
- Textdraw0z = TextDrawCreate(26.000000, 260.000000, "Unknown Command");
- TextDrawBackgroundColor(Textdraw0z, 255);
- TextDrawFont(Textdraw0z, 2);
- TextDrawLetterSize(Textdraw0z, 0.160000, 1.000000);
- TextDrawColor(Textdraw0z, -16776961);
- TextDrawSetOutline(Textdraw0z, 0);
- TextDrawSetProportional(Textdraw0z, 1);
- TextDrawSetShadow(Textdraw0z, 1);
- TextDrawSetSelectable(Textdraw0z, 0);
- Textdraw1z = TextDrawCreate(26.000000, 269.000000, "/help - /newb - /gethelp");
- TextDrawBackgroundColor(Textdraw1z, 255);
- TextDrawFont(Textdraw1z, 2);
- TextDrawLetterSize(Textdraw1z, 0.150000, 0.900000);
- TextDrawColor(Textdraw1z, COLOR_LIGHTBLUE);
- TextDrawSetOutline(Textdraw1z, 0);
- TextDrawSetProportional(Textdraw1z, 1);
- TextDrawSetShadow(Textdraw1z, 1);
- TextDrawSetSelectable(Textdraw1z, 0);
- Textdraw2z = TextDrawCreate(167.000000, 261.000000, "New Textdraw");
- TextDrawBackgroundColor(Textdraw2z, 255);
- TextDrawFont(Textdraw2z, 1);
- TextDrawLetterSize(Textdraw2z, 0.000000, 1.000000);
- TextDrawColor(Textdraw2z, -1);
- TextDrawSetOutline(Textdraw2z, 0);
- TextDrawSetProportional(Textdraw2z, 1);
- TextDrawSetShadow(Textdraw2z, 1);
- TextDrawUseBox(Textdraw2z, 1);
- TextDrawBoxColor(Textdraw2z, 96);
- TextDrawTextSize(Textdraw2z, -3.000000, 0.000000);
- TextDrawSetSelectable(Textdraw2z, 0);
- Textdraw3z = TextDrawCreate(7.000000, 258.000000, "?");
- TextDrawBackgroundColor(Textdraw3z, 255);
- TextDrawFont(Textdraw3z, 2);
- TextDrawLetterSize(Textdraw3z, 0.620000, 2.499999);
- TextDrawColor(Textdraw3z, COLOR_REALREDS);
- TextDrawSetOutline(Textdraw3z, 0);
- TextDrawSetProportional(Textdraw3z, 1);
- TextDrawSetShadow(Textdraw3z, 1);
- TextDrawSetSelectable(Textdraw3z, 0);
-
- // NEW MainMenuTxtdraw
- MainMenuTxtdraw[0] = TextDrawCreate(641.531494, 40.000000, "usebox");
- TextDrawLetterSize(MainMenuTxtdraw[0], 0.000000, 11.544445);
- TextDrawTextSize(MainMenuTxtdraw[0], -2.000000, 0.000000);
- TextDrawAlignment(MainMenuTxtdraw[0], 1);
- TextDrawColor(MainMenuTxtdraw[0], 0);
- TextDrawUseBox(MainMenuTxtdraw[0], true);
- TextDrawBoxColor(MainMenuTxtdraw[0], 102);
- TextDrawSetShadow(MainMenuTxtdraw[0], 0);
- TextDrawSetOutline(MainMenuTxtdraw[0], 0);
- TextDrawFont(MainMenuTxtdraw[0], 0);
- MainMenuTxtdraw[1] = TextDrawCreate(660.272338, 47.000000, "usebox");
- TextDrawLetterSize(MainMenuTxtdraw[1], 0.041698, -0.919443);
- TextDrawTextSize(MainMenuTxtdraw[1], -2.000000, 0.000000);
- TextDrawAlignment(MainMenuTxtdraw[1], 1);
- TextDrawColor(MainMenuTxtdraw[1], 0);
- TextDrawUseBox(MainMenuTxtdraw[1], true);
- TextDrawBoxColor(MainMenuTxtdraw[1], 102);
- TextDrawSetShadow(MainMenuTxtdraw[1], 0);
- TextDrawSetOutline(MainMenuTxtdraw[1], 0);
- TextDrawFont(MainMenuTxtdraw[1], 0);
- MainMenuTxtdraw[2] = TextDrawCreate(641.531494, 139.166656, "usebox");
- TextDrawLetterSize(MainMenuTxtdraw[2], 0.000000, -0.057406);
- TextDrawTextSize(MainMenuTxtdraw[2], -2.000000, 0.000000);
- TextDrawAlignment(MainMenuTxtdraw[2], 1);
- TextDrawColor(MainMenuTxtdraw[2], 0);
- TextDrawUseBox(MainMenuTxtdraw[2], true);
- TextDrawBoxColor(MainMenuTxtdraw[2], 102);
- TextDrawSetShadow(MainMenuTxtdraw[2], 0);
- TextDrawSetOutline(MainMenuTxtdraw[2], 0);
- TextDrawFont(MainMenuTxtdraw[2], 0);
- MainMenuTxtdraw[3] = TextDrawCreate(249.252960, 62.416679, "Sleepless Roleplay");
- TextDrawLetterSize(MainMenuTxtdraw[3], 0.578843, 3.670834);
- TextDrawAlignment(MainMenuTxtdraw[3], 1);
- TextDrawColor(MainMenuTxtdraw[3], -5963521);
- TextDrawSetShadow(MainMenuTxtdraw[3], 0);
- TextDrawSetOutline(MainMenuTxtdraw[3], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[3], 51);
- TextDrawFont(MainMenuTxtdraw[3], 3);
- TextDrawSetProportional(MainMenuTxtdraw[3], 1);
-
- /*Textdraw3 = TextDrawCreate(249.252960, 62.416679, "Sleepless Roleplay");
- TextDrawLetterSize(Textdraw3, 0.578843, 3.670834);
- TextDrawAlignment(Textdraw3, 1);
- TextDrawColor(Textdraw3, -5963521);
- TextDrawSetShadow(Textdraw3, 0);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawBackgroundColor(Textdraw3, 51);
- TextDrawFont(Textdraw3, 3);
- TextDrawSetProportional(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(278.301361, 95.083305, "V2.0.47(h)");
- TextDrawLetterSize(Textdraw4, 0.407833, 2.824995);
- TextDrawTextSize(Textdraw4, 203.806701, 93.333343);
- TextDrawAlignment(Textdraw4, 1);
- TextDrawColor(Textdraw4, -1);
- TextDrawUseBox(Textdraw4, true);
- TextDrawBoxColor(Textdraw4, 0);
- TextDrawSetShadow(Textdraw4, 0);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawBackgroundColor(Textdraw4, 51);
- TextDrawFont(Textdraw4, 2);
- TextDrawSetProportional(Textdraw4, 1);*/
- MainMenuTxtdraw[4] = TextDrawCreate(278.301361, 95.083305, SERVER_VERSION);
- TextDrawLetterSize(MainMenuTxtdraw[4], 0.407833, 2.824997);
- TextDrawTextSize(MainMenuTxtdraw[4], 203.806701, 93.333343);
- TextDrawAlignment(MainMenuTxtdraw[4], 1);
- TextDrawColor(MainMenuTxtdraw[4], -1);
- //TextDrawUseBox(MainMenuTxtdraw[4], true);
- TextDrawBoxColor(MainMenuTxtdraw[4], 0);
- TextDrawSetShadow(MainMenuTxtdraw[4], 0);
- TextDrawSetOutline(MainMenuTxtdraw[4], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[4], 51);
- TextDrawFont(MainMenuTxtdraw[4], 2);
- TextDrawSetProportional(MainMenuTxtdraw[4], 1);
- MainMenuTxtdraw[5] = TextDrawCreate(641.531494, 297.833312, "usebox");
- TextDrawLetterSize(MainMenuTxtdraw[5], 0.000000, 16.470375);
- TextDrawTextSize(MainMenuTxtdraw[5], -2.000000, 0.000000);
- TextDrawAlignment(MainMenuTxtdraw[5], 1);
- TextDrawColor(MainMenuTxtdraw[5], 0);
- TextDrawUseBox(MainMenuTxtdraw[5], true);
- TextDrawBoxColor(MainMenuTxtdraw[5], 102);
- TextDrawSetShadow(MainMenuTxtdraw[5], 0);
- TextDrawSetOutline(MainMenuTxtdraw[5], 0);
- TextDrawFont(MainMenuTxtdraw[5], 0);
- MainMenuTxtdraw[6] = TextDrawCreate(641.531494, 306.000000, "usebox");
- TextDrawLetterSize(MainMenuTxtdraw[6], 0.003746, -0.232409);
- TextDrawTextSize(MainMenuTxtdraw[6], -2.000000, 0.000000);
- TextDrawAlignment(MainMenuTxtdraw[6], 1);
- TextDrawColor(MainMenuTxtdraw[6], 0);
- TextDrawUseBox(MainMenuTxtdraw[6], true);
- TextDrawBoxColor(MainMenuTxtdraw[6], 102);
- TextDrawSetShadow(MainMenuTxtdraw[6], 0);
- TextDrawSetOutline(MainMenuTxtdraw[6], 0);
- TextDrawFont(MainMenuTxtdraw[6], 0);
- MainMenuTxtdraw[7] = TextDrawCreate(28.579757, 326.083343, "News:");
- TextDrawLetterSize(MainMenuTxtdraw[7], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[7], 1);
- TextDrawColor(MainMenuTxtdraw[7], -5963521);
- TextDrawSetShadow(MainMenuTxtdraw[7], 0);
- TextDrawSetOutline(MainMenuTxtdraw[7], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[7], 51);
- TextDrawFont(MainMenuTxtdraw[7], 1);
- TextDrawSetProportional(MainMenuTxtdraw[7], 1);
-
- new newsstring[128];
- format(newsstring, sizeof(newsstring), "%s", GlobalMOTD);
- MainMenuTxtdraw[8] = TextDrawCreate(81.285598, 326.083374, newsstring);
- TextDrawLetterSize(MainMenuTxtdraw[8], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[8], 1);
- TextDrawColor(MainMenuTxtdraw[8], -1);
- TextDrawSetShadow(MainMenuTxtdraw[8], 0);
- TextDrawSetOutline(MainMenuTxtdraw[8], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[8], 51);
- TextDrawFont(MainMenuTxtdraw[8], 1);
- TextDrawSetProportional(MainMenuTxtdraw[8], 1);
- MainMenuTxtdraw[9] = TextDrawCreate(73.557861, 393.166656, "Website:");
- TextDrawLetterSize(MainMenuTxtdraw[9], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[9], 1);
- TextDrawColor(MainMenuTxtdraw[9], -5963521);
- TextDrawSetShadow(MainMenuTxtdraw[9], 0);
- TextDrawSetOutline(MainMenuTxtdraw[9], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[9], 51);
- TextDrawFont(MainMenuTxtdraw[9], 1);
- TextDrawSetProportional(MainMenuTxtdraw[9], 1);
- MainMenuTxtdraw[10] = TextDrawCreate(143.367507, 394.333343, "www.Serenity");
- TextDrawLetterSize(MainMenuTxtdraw[10], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[10], 1);
- TextDrawColor(MainMenuTxtdraw[10], -1);
- TextDrawSetShadow(MainMenuTxtdraw[10], 0);
- TextDrawSetOutline(MainMenuTxtdraw[10], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[10], 51);
- TextDrawFont(MainMenuTxtdraw[10], 1);
- TextDrawSetProportional(MainMenuTxtdraw[10], 1);
- MainMenuTxtdraw[11] = TextDrawCreate(235.666152, 359.333374, "Players Online:");
- TextDrawLetterSize(MainMenuTxtdraw[11], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[11], 1);
- TextDrawColor(MainMenuTxtdraw[11], -5963521);
- TextDrawSetShadow(MainMenuTxtdraw[11], 0);
- TextDrawSetOutline(MainMenuTxtdraw[11], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[11], 51);
- TextDrawFont(MainMenuTxtdraw[11], 1);
- TextDrawSetProportional(MainMenuTxtdraw[11], 1);
- MainMenuTxtdraw[12] = TextDrawCreate(345.300231, 393.749969, "Discord:");
- TextDrawLetterSize(MainMenuTxtdraw[12], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[12], 1);
- TextDrawColor(MainMenuTxtdraw[12], -5963521);
- TextDrawSetShadow(MainMenuTxtdraw[12], 0);
- TextDrawSetOutline(MainMenuTxtdraw[12], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[12], 51);
- TextDrawFont(MainMenuTxtdraw[12], 1);
- TextDrawSetProportional(MainMenuTxtdraw[12], 1);
- MainMenuTxtdraw[13] = TextDrawCreate(414.172668, 394.333374, DISCORD);
- TextDrawLetterSize(MainMenuTxtdraw[13], 0.449999, 1.600000);
- TextDrawAlignment(MainMenuTxtdraw[13], 1);
- TextDrawColor(MainMenuTxtdraw[13], -1);
- TextDrawSetShadow(MainMenuTxtdraw[13], 0);
- TextDrawSetOutline(MainMenuTxtdraw[13], 1);
- TextDrawBackgroundColor(MainMenuTxtdraw[13], 51);
- TextDrawFont(MainMenuTxtdraw[13], 1);
- TextDrawSetProportional(MainMenuTxtdraw[13], 1);
- //------------------------------------------------------------------------------------------------------------//
- // Tutorial text draws //
- //------------------------------------------------------------------------------------------------------------//
- TutTxtDraw[0] = TextDrawCreate(487.000000, 303.000000, "'");
- TextDrawBackgroundColor(TutTxtDraw[0], 255);
- TextDrawFont(TutTxtDraw[0], 2);
- TextDrawLetterSize(TutTxtDraw[0], 0.000000, 12.800003);
- TextDrawColor(TutTxtDraw[0], -1061109505);
- TextDrawSetOutline(TutTxtDraw[0], 0);
- TextDrawSetProportional(TutTxtDraw[0], 1);
- TextDrawSetShadow(TutTxtDraw[0], 1);
- TextDrawUseBox(TutTxtDraw[0], 1);
- TextDrawBoxColor(TutTxtDraw[0], 170);
- TextDrawTextSize(TutTxtDraw[0], 146.000000, 45.000000);
- TutTxtDraw[1] = TextDrawCreate(487.000000, 303.000000, "'");
- TextDrawBackgroundColor(TutTxtDraw[1], 255);
- TextDrawFont(TutTxtDraw[1], 1);
- TextDrawLetterSize(TutTxtDraw[1], 0.000000, -1.000000);
- TextDrawColor(TutTxtDraw[1], -1);
- TextDrawSetOutline(TutTxtDraw[1], 0);
- TextDrawSetProportional(TutTxtDraw[1], 1);
- TextDrawSetShadow(TutTxtDraw[1], 1);
- TextDrawUseBox(TutTxtDraw[1], 1);
- TextDrawBoxColor(TutTxtDraw[1], 255);
- TextDrawTextSize(TutTxtDraw[1], 146.000000, -2.000000);
- TutTxtDraw[2] = TextDrawCreate(487.000000, 427.000000, "'");
- TextDrawBackgroundColor(TutTxtDraw[2], 255);
- TextDrawFont(TutTxtDraw[2], 1);
- TextDrawLetterSize(TutTxtDraw[2], 0.000000, -1.000000);
- TextDrawColor(TutTxtDraw[2], -1);
- TextDrawSetOutline(TutTxtDraw[2], 0);
- TextDrawSetProportional(TutTxtDraw[2], 1);
- TextDrawSetShadow(TutTxtDraw[2], 1);
- TextDrawUseBox(TutTxtDraw[2], 1);
- TextDrawBoxColor(TutTxtDraw[2], 255);
- TextDrawTextSize(TutTxtDraw[2], 146.000000, -2.000000);
- TutTxtDraw[3] = TextDrawCreate(147.000000, 299.000000, "'");
- TextDrawBackgroundColor(TutTxtDraw[3], 255);
- TextDrawFont(TutTxtDraw[3], 1);
- TextDrawLetterSize(TutTxtDraw[3], 0.000000, 13.600002);
- TextDrawColor(TutTxtDraw[3], -1);
- TextDrawSetOutline(TutTxtDraw[3], 0);
- TextDrawSetProportional(TutTxtDraw[3], 1);
- TextDrawSetShadow(TutTxtDraw[3], 1);
- TextDrawUseBox(TutTxtDraw[3], 1);
- TextDrawBoxColor(TutTxtDraw[3], 255);
- TextDrawTextSize(TutTxtDraw[3], 146.000000, 28.000000);
- TutTxtDraw[4] = TextDrawCreate(487.000000, 299.000000, "'");
- TextDrawBackgroundColor(TutTxtDraw[4], 255);
- TextDrawFont(TutTxtDraw[4], 1);
- TextDrawLetterSize(TutTxtDraw[4], 0.000000, 13.600002);
- TextDrawColor(TutTxtDraw[4], -1);
- TextDrawSetOutline(TutTxtDraw[4], 0);
- TextDrawSetProportional(TutTxtDraw[4], 1);
- TextDrawSetShadow(TutTxtDraw[4], 1);
- TextDrawUseBox(TutTxtDraw[4], 1);
- TextDrawBoxColor(TutTxtDraw[4], 255);
- TextDrawTextSize(TutTxtDraw[4], 486.000000, 34.000000);
- TutTxtDraw[5] = TextDrawCreate(165.000000, 301.000000, "Serenity Tutorial");
- TextDrawBackgroundColor(TutTxtDraw[5], 255);
- TextDrawFont(TutTxtDraw[5], 2);
- TextDrawLetterSize(TutTxtDraw[5], 0.500000, 2.200000);
- TextDrawColor(TutTxtDraw[5], COLOR_NEWS);
- TextDrawSetOutline(TutTxtDraw[5], 0);
- TextDrawSetProportional(TutTxtDraw[5], 1);
- TextDrawSetShadow(TutTxtDraw[5], 3);
- //
- // FIRST TUTORIAL TEXT
- //
- TutTxtDraw[6] = TextDrawCreate(166.000000, 331.000000, "Welcome to Sleepless Roleplay. This is a roleplay server, which means that you take on");
- TextDrawBackgroundColor(TutTxtDraw[6], 255);
- TextDrawFont(TutTxtDraw[6], 1);
- TextDrawLetterSize(TutTxtDraw[6], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[6], -1);
- TextDrawSetOutline(TutTxtDraw[6], 0);
- TextDrawSetProportional(TutTxtDraw[6], 1);
- TextDrawSetShadow(TutTxtDraw[6], 2);
- TutTxtDraw[7] = TextDrawCreate(166.000000, 344.000000, "a role and play a character. Be it a crook, an officer of the law or just a regular citizen.");
- TextDrawBackgroundColor(TutTxtDraw[7], 255);
- TextDrawFont(TutTxtDraw[7], 1);
- TextDrawLetterSize(TutTxtDraw[7], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[7], -1);
- TextDrawSetOutline(TutTxtDraw[7], 0);
- TextDrawSetProportional(TutTxtDraw[7], 1);
- TextDrawSetShadow(TutTxtDraw[7], 2);
- TutTxtDraw[8] = TextDrawCreate(166.000000, 368.000000, "This also means that there is a difference between you as player and your character.");
- TextDrawBackgroundColor(TutTxtDraw[8], 255);
- TextDrawFont(TutTxtDraw[8], 1);
- TextDrawLetterSize(TutTxtDraw[8], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[8], -1);
- TextDrawSetOutline(TutTxtDraw[8], 0);
- TextDrawSetProportional(TutTxtDraw[8], 1);
- TextDrawSetShadow(TutTxtDraw[8], 2);
- TutTxtDraw[9] = TextDrawCreate(166.000000, 381.000000, "We refer to this as OOC (out of character) and IC (in character). This is something");
- TextDrawBackgroundColor(TutTxtDraw[9], 255);
- TextDrawFont(TutTxtDraw[9], 1);
- TextDrawLetterSize(TutTxtDraw[9], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[9], -1);
- TextDrawSetOutline(TutTxtDraw[9], 0);
- TextDrawSetProportional(TutTxtDraw[9], 1);
- TextDrawSetShadow(TutTxtDraw[9], 2);
- TutTxtDraw[10] = TextDrawCreate(166.000000, 394.000000, "that is an essential part of the server, therefore we keep them separate.");
- TextDrawBackgroundColor(TutTxtDraw[10], 255);
- TextDrawFont(TutTxtDraw[10], 1);
- TextDrawLetterSize(TutTxtDraw[10], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[10], -1);
- TextDrawSetOutline(TutTxtDraw[10], 0);
- TextDrawSetProportional(TutTxtDraw[10], 1);
- TextDrawSetShadow(TutTxtDraw[10], 2);
- //
- // SECOND TUTORIAL TEXT
- //
- TutTxtDraw[11] = TextDrawCreate(166.000000, 331.000000, "There are many ways to earn money and there are many jobs available throughout");
- TextDrawBackgroundColor(TutTxtDraw[11], 255);
- TextDrawFont(TutTxtDraw[11], 1);
- TextDrawLetterSize(TutTxtDraw[11], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[11], -1);
- TextDrawSetOutline(TutTxtDraw[11], 0);
- TextDrawSetProportional(TutTxtDraw[11], 1);
- TextDrawSetShadow(TutTxtDraw[11], 2);
- TutTxtDraw[12] = TextDrawCreate(166.000000, 344.000000, "the city. We recommend that you try Trucker or Pizza Boy Job first to earn some");
- TextDrawBackgroundColor(TutTxtDraw[12], 255);
- TextDrawFont(TutTxtDraw[12], 1);
- TextDrawLetterSize(TutTxtDraw[12], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[12], -1);
- TextDrawSetOutline(TutTxtDraw[12], 0);
- TextDrawSetProportional(TutTxtDraw[12], 1);
- TextDrawSetShadow(TutTxtDraw[12], 2);
- TutTxtDraw[13] = TextDrawCreate(166.000000, 357.000000, "starting cash. You can find a job with the ~r~/findjob ~w~command.");
- TextDrawBackgroundColor(TutTxtDraw[13], 255);
- TextDrawFont(TutTxtDraw[13], 1);
- TextDrawLetterSize(TutTxtDraw[13], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[13], -1);
- TextDrawSetOutline(TutTxtDraw[13], 0);
- TextDrawSetProportional(TutTxtDraw[13], 1);
- TextDrawSetShadow(TutTxtDraw[13], 2);
- TutTxtDraw[14] = TextDrawCreate(166.000000, 381.000000, "You can also use the ~r~/jobhelp ~w~command to get more information about the jobs.");
- TextDrawBackgroundColor(TutTxtDraw[14], 255);
- TextDrawFont(TutTxtDraw[14], 1);
- TextDrawLetterSize(TutTxtDraw[14], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[14], -1);
- TextDrawSetOutline(TutTxtDraw[14], 0);
- TextDrawSetProportional(TutTxtDraw[14], 1);
- TextDrawSetShadow(TutTxtDraw[14], 2);
- TutTxtDraw[15] = TextDrawCreate(166.000000, 394.000000, "You can ~r~/withdraw ~w~and ~r~/deposit ~w~at the bank whenever you wish.");
- TextDrawBackgroundColor(TutTxtDraw[15], 255);
- TextDrawFont(TutTxtDraw[15], 1);
- TextDrawLetterSize(TutTxtDraw[15], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[15], -1);
- TextDrawSetOutline(TutTxtDraw[15], 0);
- TextDrawSetProportional(TutTxtDraw[15], 1);
- TextDrawSetShadow(TutTxtDraw[15], 2);
- //
- // THIRD TUTORIAL TEXT
- //
- TutTxtDraw[16] = TextDrawCreate(166.000000, 331.000000, "There are several law enforcement agencies such as the ~b~LSPD ~w~and the ~b~FBI~w~, who enforce");
- TextDrawBackgroundColor(TutTxtDraw[16], 255);
- TextDrawFont(TutTxtDraw[16], 1);
- TextDrawLetterSize(TutTxtDraw[16], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[16], -1);
- TextDrawSetOutline(TutTxtDraw[16], 0);
- TextDrawSetProportional(TutTxtDraw[16], 1);
- TextDrawSetShadow(TutTxtDraw[16], 2);
- TutTxtDraw[17] = TextDrawCreate(166.000000, 344.000000, "the law. They will arrest you if you break the law. If you cause a lot of trouble then");
- TextDrawBackgroundColor(TutTxtDraw[17], 255);
- TextDrawFont(TutTxtDraw[17], 1);
- TextDrawLetterSize(TutTxtDraw[17], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[17], -1);
- TextDrawSetOutline(TutTxtDraw[17], 0);
- TextDrawSetProportional(TutTxtDraw[17], 1);
- TextDrawSetShadow(TutTxtDraw[17], 2);
- TutTxtDraw[18] = TextDrawCreate(166.000000, 357.000000, "you could be marked as one of the most wanted suspects. Which will mark you ~r~red");
- TextDrawBackgroundColor(TutTxtDraw[18], 255);
- TextDrawFont(TutTxtDraw[18], 1);
- TextDrawLetterSize(TutTxtDraw[18], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[18], -1);
- TextDrawSetOutline(TutTxtDraw[18], 0);
- TextDrawSetProportional(TutTxtDraw[18], 1);
- TextDrawSetShadow(TutTxtDraw[18], 2);
- TutTxtDraw[19] = TextDrawCreate(166.000000, 371.000000, "on the radar/map. If you're caught as the most wanted suspect, then you will be");
- TextDrawBackgroundColor(TutTxtDraw[19], 255);
- TextDrawFont(TutTxtDraw[19], 1);
- TextDrawLetterSize(TutTxtDraw[19], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[19], -1);
- TextDrawSetOutline(TutTxtDraw[19], 0);
- TextDrawSetProportional(TutTxtDraw[19], 1);
- TextDrawSetShadow(TutTxtDraw[19], 2);
- TutTxtDraw[20] = TextDrawCreate(166.000000, 385.000000, "sent to prison for 30 minutes. If you can't do the time, then don't do the crime.");
- TextDrawBackgroundColor(TutTxtDraw[20], 255);
- TextDrawFont(TutTxtDraw[20], 1);
- TextDrawLetterSize(TutTxtDraw[20], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[20], -1);
- TextDrawSetOutline(TutTxtDraw[20], 0);
- TextDrawSetProportional(TutTxtDraw[20], 1);
- TextDrawSetShadow(TutTxtDraw[20], 2);
- TutTxtDraw[21] = TextDrawCreate(166.000000, 398.000000, "You can also join these factions. Just contact them in-game (blue names).");
- TextDrawBackgroundColor(TutTxtDraw[21], 255);
- TextDrawFont(TutTxtDraw[21], 1);
- TextDrawLetterSize(TutTxtDraw[21], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[21], -1);
- TextDrawSetOutline(TutTxtDraw[21], 0);
- TextDrawSetProportional(TutTxtDraw[21], 1);
- TextDrawSetShadow(TutTxtDraw[21], 2);
- //
- // FOURTH TUTORIAL TEXT
- //
- TutTxtDraw[22] = TextDrawCreate(166.000000, 331.000000, "If you get injured then you can either ~r~/accept death ~w~or you can ~r~/service ems ~w~and wait");
- TextDrawBackgroundColor(TutTxtDraw[22], 255);
- TextDrawFont(TutTxtDraw[22], 1);
- TextDrawLetterSize(TutTxtDraw[22], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[22], -1);
- TextDrawSetOutline(TutTxtDraw[22], 0);
- TextDrawSetProportional(TutTxtDraw[22], 1);
- TextDrawSetShadow(TutTxtDraw[22], 2);
- TutTxtDraw[23] = TextDrawCreate(166.000000, 344.000000, "for an ambulance of the LSFMD to arrive. This will allow you to keep your weapons.");
- TextDrawBackgroundColor(TutTxtDraw[23], 255);
- TextDrawFont(TutTxtDraw[23], 1);
- TextDrawLetterSize(TutTxtDraw[23], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[23], -1);
- TextDrawSetOutline(TutTxtDraw[23], 0);
- TextDrawSetProportional(TutTxtDraw[23], 1);
- TextDrawSetShadow(TutTxtDraw[23], 2);
- TutTxtDraw[24] = TextDrawCreate(166.000000, 357.000000, "You can also join the LSFMD faction by contacting them in-game (pink names) or");
- TextDrawBackgroundColor(TutTxtDraw[24], 255);
- TextDrawFont(TutTxtDraw[24], 1);
- TextDrawLetterSize(TutTxtDraw[24], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[24], -1);
- TextDrawSetOutline(TutTxtDraw[24], 0);
- TextDrawSetProportional(TutTxtDraw[24], 1);
- TextDrawSetShadow(TutTxtDraw[24], 2);
- TutTxtDraw[25] = TextDrawCreate(166.000000, 371.000000, "by applying to join on the forum, which can be found at ~g~www.Serenity");
- TextDrawBackgroundColor(TutTxtDraw[25], 255);
- TextDrawFont(TutTxtDraw[25], 1);
- TextDrawLetterSize(TutTxtDraw[25], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[25], -1);
- TextDrawSetOutline(TutTxtDraw[25], 0);
- TextDrawSetProportional(TutTxtDraw[25], 1);
- TextDrawSetShadow(TutTxtDraw[25], 2);
- TutTxtDraw[26] = TextDrawCreate(166.000000, 394.000000, "You can also visit one of the hospitals to ~r~/heal ~w~if you get a disease.");
- TextDrawBackgroundColor(TutTxtDraw[26], 255);
- TextDrawFont(TutTxtDraw[26], 1);
- TextDrawLetterSize(TutTxtDraw[26], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[26], -1);
- TextDrawSetOutline(TutTxtDraw[26], 0);
- TextDrawSetProportional(TutTxtDraw[26], 1);
- TextDrawSetShadow(TutTxtDraw[26], 2);
- //
- // FIFTH TUTORIAL TEXT
- //
- TutTxtDraw[27] = TextDrawCreate(166.000000, 331.000000, "There are also ~r~/families ~w~which are basically criminal groups. There are street gangs and");
- TextDrawBackgroundColor(TutTxtDraw[27], 255);
- TextDrawFont(TutTxtDraw[27], 1);
- TextDrawLetterSize(TutTxtDraw[27], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[27], -1);
- TextDrawSetOutline(TutTxtDraw[27], 0);
- TextDrawSetProportional(TutTxtDraw[27], 1);
- TextDrawSetShadow(TutTxtDraw[27], 2);
- TutTxtDraw[28] = TextDrawCreate(166.000000, 344.000000, "then there is organized crime (the mafia). We recommend that you're careful around");
- TextDrawBackgroundColor(TutTxtDraw[28], 255);
- TextDrawFont(TutTxtDraw[28], 1);
- TextDrawLetterSize(TutTxtDraw[28], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[28], -1);
- TextDrawSetOutline(TutTxtDraw[28], 0);
- TextDrawSetProportional(TutTxtDraw[28], 1);
- TextDrawSetShadow(TutTxtDraw[28], 2);
- TutTxtDraw[29] = TextDrawCreate(166.000000, 357.000000, "them. They also fight over several territories known as ~r~/points and also /turfs~w~.");
- TextDrawBackgroundColor(TutTxtDraw[29], 255);
- TextDrawFont(TutTxtDraw[29], 1);
- TextDrawLetterSize(TutTxtDraw[29], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[29], -1);
- TextDrawSetOutline(TutTxtDraw[29], 0);
- TextDrawSetProportional(TutTxtDraw[29], 1);
- TextDrawSetShadow(TutTxtDraw[29], 2);
- TutTxtDraw[30] = TextDrawCreate(166.000000, 381.000000, "You can join a family by approaching them in-game. They can usually be found at their");
- TextDrawBackgroundColor(TutTxtDraw[30], 255);
- TextDrawFont(TutTxtDraw[30], 1);
- TextDrawLetterSize(TutTxtDraw[30], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[30], -1);
- TextDrawSetOutline(TutTxtDraw[30], 0);
- TextDrawSetProportional(TutTxtDraw[30], 1);
- TextDrawSetShadow(TutTxtDraw[30], 2);
- TutTxtDraw[31] = TextDrawCreate(166.000000, 394.000000, "respective headquarters (fronts). Which can be clubs, restaurants, bars etc.");
- TextDrawBackgroundColor(TutTxtDraw[31], 255);
- TextDrawFont(TutTxtDraw[31], 1);
- TextDrawLetterSize(TutTxtDraw[31], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[31], -1);
- TextDrawSetOutline(TutTxtDraw[31], 0);
- TextDrawSetProportional(TutTxtDraw[31], 1);
- TextDrawSetShadow(TutTxtDraw[31], 2);
- //
- // SIXTH TUTORIAL TEXT
- //
- TutTxtDraw[32] = TextDrawCreate(166.000000, 331.000000, "You can smuggle materials packages to get materials, which then allows you to make");
- TextDrawBackgroundColor(TutTxtDraw[32], 255);
- TextDrawFont(TutTxtDraw[32], 1);
- TextDrawLetterSize(TutTxtDraw[32], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[32], -1);
- TextDrawSetOutline(TutTxtDraw[32], 0);
- TextDrawSetProportional(TutTxtDraw[32], 1);
- TextDrawSetShadow(TutTxtDraw[32], 2);
- TutTxtDraw[33] = TextDrawCreate(166.000000, 344.000000, "several items (including weapons). You need the Arms Dealer or Craftsman job for this.");
- TextDrawBackgroundColor(TutTxtDraw[33], 255);
- TextDrawFont(TutTxtDraw[33], 1);
- TextDrawLetterSize(TutTxtDraw[33], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[33], -1);
- TextDrawSetOutline(TutTxtDraw[33], 0);
- TextDrawSetProportional(TutTxtDraw[33], 1);
- TextDrawSetShadow(TutTxtDraw[33], 2);
- TutTxtDraw[34] = TextDrawCreate(166.000000, 357.000000, "You will be able to ~r~/getmats ~w~at one of the material pickups and then deliver it to one of");
- TextDrawBackgroundColor(TutTxtDraw[34], 255);
- TextDrawFont(TutTxtDraw[34], 1);
- TextDrawLetterSize(TutTxtDraw[34], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[34], -1);
- TextDrawSetOutline(TutTxtDraw[34], 0);
- TextDrawSetProportional(TutTxtDraw[34], 1);
- TextDrawSetShadow(TutTxtDraw[34], 2);
- TutTxtDraw[35] = TextDrawCreate(166.000000, 371.000000, "the material factories. Then you can either ~r~/sellgun ~w~or ~r~/craft ~w~something.");
- TextDrawBackgroundColor(TutTxtDraw[35], 255);
- TextDrawFont(TutTxtDraw[35], 1);
- TextDrawLetterSize(TutTxtDraw[35], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[35], -1);
- TextDrawSetOutline(TutTxtDraw[35], 0);
- TextDrawSetProportional(TutTxtDraw[35], 1);
- TextDrawSetShadow(TutTxtDraw[35], 2);
- TutTxtDraw[36] = TextDrawCreate(166.000000, 391.000000, "You can get more information about this with the ~r~/jobhelp ~w~command.");
- TextDrawBackgroundColor(TutTxtDraw[36], 255);
- TextDrawFont(TutTxtDraw[36], 1);
- TextDrawLetterSize(TutTxtDraw[36], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[36], -1);
- TextDrawSetOutline(TutTxtDraw[36], 0);
- TextDrawSetProportional(TutTxtDraw[36], 1);
- TextDrawSetShadow(TutTxtDraw[36], 2);
- //
- // SEVENTH TUTORIAL TEXT
- //
- TutTxtDraw[37] = TextDrawCreate(166.000000, 331.000000, "You can also smuggle drugs from Blueberry into Los Santos. This requires you to have");
- TextDrawBackgroundColor(TutTxtDraw[37], 255);
- TextDrawFont(TutTxtDraw[37], 1);
- TextDrawLetterSize(TutTxtDraw[37], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[37], -1);
- TextDrawSetOutline(TutTxtDraw[37], 0);
- TextDrawSetProportional(TutTxtDraw[37], 1);
- TextDrawSetShadow(TutTxtDraw[37], 2);
- TutTxtDraw[38] = TextDrawCreate(166.000000, 344.000000, "the Drug Smuggler Job. You can then ~r~/getcrate ~w~and smuggle crack or pot.");
- TextDrawBackgroundColor(TutTxtDraw[38], 255);
- TextDrawFont(TutTxtDraw[38], 1);
- TextDrawLetterSize(TutTxtDraw[38], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[38], -1);
- TextDrawSetOutline(TutTxtDraw[38], 0);
- TextDrawSetProportional(TutTxtDraw[38], 1);
- TextDrawSetShadow(TutTxtDraw[38], 2);
- TutTxtDraw[39] = TextDrawCreate(166.000000, 367.000000, "You can also sell and grow drugs with the Drug Dealer Job. You will be able to:");
- TextDrawBackgroundColor(TutTxtDraw[39], 255);
- TextDrawFont(TutTxtDraw[39], 1);
- TextDrawLetterSize(TutTxtDraw[39], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[39], -1);
- TextDrawSetOutline(TutTxtDraw[39], 0);
- TextDrawSetProportional(TutTxtDraw[39], 1);
- TextDrawSetShadow(TutTxtDraw[39], 2);
- TutTxtDraw[40] = TextDrawCreate(166.000000, 381.000000, "- ~r~/sellpot ~w~and ~r~/sellcrack");
- TextDrawBackgroundColor(TutTxtDraw[40], 255);
- TextDrawFont(TutTxtDraw[40], 1);
- TextDrawLetterSize(TutTxtDraw[40], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[40], -1);
- TextDrawSetOutline(TutTxtDraw[40], 0);
- TextDrawSetProportional(TutTxtDraw[40], 1);
- TextDrawSetShadow(TutTxtDraw[40], 2);
- TutTxtDraw[41] = TextDrawCreate(166.000000, 394.000000, "- ~r~/plantweed ~w~anywhere and grow weed");
- TextDrawBackgroundColor(TutTxtDraw[41], 255);
- TextDrawFont(TutTxtDraw[41], 1);
- TextDrawLetterSize(TutTxtDraw[41], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[41], -1);
- TextDrawSetOutline(TutTxtDraw[41], 0);
- TextDrawSetProportional(TutTxtDraw[41], 1);
- TextDrawSetShadow(TutTxtDraw[41], 2);
- //
- // EIGHT TUTORIAL TEXT
- //
- TutTxtDraw[42] = TextDrawCreate(166.000000, 331.000000, "This is a car dealership. There are several throughout the city where you can purchase");
- TextDrawBackgroundColor(TutTxtDraw[42], 255);
- TextDrawFont(TutTxtDraw[42], 1);
- TextDrawLetterSize(TutTxtDraw[42], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[42], -1);
- TextDrawSetOutline(TutTxtDraw[42], 0);
- TextDrawSetProportional(TutTxtDraw[42], 1);
- TextDrawSetShadow(TutTxtDraw[42], 2);
- TutTxtDraw[43] = TextDrawCreate(166.000000, 344.000000, "your own personal vehicle with lock. You can own up to 5 vehicles as a regular player,");
- TextDrawBackgroundColor(TutTxtDraw[43], 255);
- TextDrawFont(TutTxtDraw[43], 1);
- TextDrawLetterSize(TutTxtDraw[43], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[43], -1);
- TextDrawSetOutline(TutTxtDraw[43], 0);
- TextDrawSetProportional(TutTxtDraw[43], 1);
- TextDrawSetShadow(TutTxtDraw[43], 2);
- TutTxtDraw[44] = TextDrawCreate(166.000000, 357.000000, "and have one spawned at a time. The modifications on personal vehicles will save.");
- TextDrawBackgroundColor(TutTxtDraw[44], 255);
- TextDrawFont(TutTxtDraw[44], 1);
- TextDrawLetterSize(TutTxtDraw[44], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[44], -1);
- TextDrawSetOutline(TutTxtDraw[44], 0);
- TextDrawSetProportional(TutTxtDraw[44], 1);
- TextDrawSetShadow(TutTxtDraw[44], 2);
- TutTxtDraw[45] = TextDrawCreate(166.000000, 371.000000, "See ~r~/carhelp ~w~for more information");
- TextDrawBackgroundColor(TutTxtDraw[45], 255);
- TextDrawFont(TutTxtDraw[45], 1);
- TextDrawLetterSize(TutTxtDraw[45], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[45], -1);
- TextDrawSetOutline(TutTxtDraw[45], 0);
- TextDrawSetProportional(TutTxtDraw[45], 1);
- TextDrawSetShadow(TutTxtDraw[45], 2);
- TutTxtDraw[46] = TextDrawCreate(166.000000, 385.000000, "And this is a house. If you own a house then you can store several items inside.");
- TextDrawBackgroundColor(TutTxtDraw[46], 255);
- TextDrawFont(TutTxtDraw[46], 1);
- TextDrawLetterSize(TutTxtDraw[46], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[46], -1);
- TextDrawSetOutline(TutTxtDraw[46], 0);
- TextDrawSetProportional(TutTxtDraw[46], 1);
- TextDrawSetShadow(TutTxtDraw[46], 2);
- TutTxtDraw[47] = TextDrawCreate(166.000000, 397.000000, "You can also rent a house. See ~r~/househelp ~w~and ~r~/renthelp ~w~for more information.");
- TextDrawBackgroundColor(TutTxtDraw[47], 255);
- TextDrawFont(TutTxtDraw[47], 1);
- TextDrawLetterSize(TutTxtDraw[47], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[47], -1);
- TextDrawSetOutline(TutTxtDraw[47], 0);
- TextDrawSetProportional(TutTxtDraw[47], 1);
- TextDrawSetShadow(TutTxtDraw[47], 2);
- //
- // NINTH TUTORIAL TEXT
- //
- TutTxtDraw[48] = TextDrawCreate(166.000000, 331.000000, "We are sure you want to get to playing already, so the tutorial is almost done!");
- TextDrawBackgroundColor(TutTxtDraw[48], 255);
- TextDrawFont(TutTxtDraw[48], 1);
- TextDrawLetterSize(TutTxtDraw[48], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[48], -1);
- TextDrawSetOutline(TutTxtDraw[48], 0);
- TextDrawSetProportional(TutTxtDraw[48], 1);
- TextDrawSetShadow(TutTxtDraw[48], 2);
- TutTxtDraw[49] = TextDrawCreate(166.000000, 344.000000, "- This is a 24/7 store. You can ~r~/buy ~w~several items (i.e. a phone) inside.");
- TextDrawBackgroundColor(TutTxtDraw[49], 255);
- TextDrawFont(TutTxtDraw[49], 1);
- TextDrawLetterSize(TutTxtDraw[49], 0.209999, 1.399999);
- TextDrawColor(TutTxtDraw[49], -1);
- TextDrawSetOutline(TutTxtDraw[49], 0);
- TextDrawSetProportional(TutTxtDraw[49], 1);
- TextDrawSetShadow(TutTxtDraw[49], 2);
- TutTxtDraw[50] = TextDrawCreate(166.000000, 357.000000, "- This is a clothing store. You can ~r~/buyclothes ~w~to get a different skin or");
- TextDrawBackgroundColor(TutTxtDraw[50], 255);
- TextDrawFont(TutTxtDraw[50], 1);
- TextDrawLetterSize(TutTxtDraw[50], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[50], -1);
- TextDrawSetOutline(TutTxtDraw[50], 0);
- TextDrawSetProportional(TutTxtDraw[50], 1);
- TextDrawSetShadow(TutTxtDraw[50], 2);
- TutTxtDraw[51] = TextDrawCreate(172.000000, 371.000000, "~r~/buytoys ~w~to get some accessories for your character.");
- TextDrawBackgroundColor(TutTxtDraw[51], 255);
- TextDrawFont(TutTxtDraw[51], 1);
- TextDrawLetterSize(TutTxtDraw[51], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[51], -1);
- TextDrawSetOutline(TutTxtDraw[51], 0);
- TextDrawSetProportional(TutTxtDraw[51], 1);
- TextDrawSetShadow(TutTxtDraw[51], 2);
- TutTxtDraw[52] = TextDrawCreate(166.000000, 384.000000, "- Remember to check out ~r~/rules ~w~and ~r~/help~w~.");
- TextDrawBackgroundColor(TutTxtDraw[48], 255);
- TextDrawFont(TutTxtDraw[52], 1);
- TextDrawLetterSize(TutTxtDraw[52], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[52], -1);
- TextDrawSetOutline(TutTxtDraw[52], 0);
- TextDrawSetProportional(TutTxtDraw[52], 1);
- TextDrawSetShadow(TutTxtDraw[52], 2);
- TutTxtDraw[53] = TextDrawCreate(166.000000, 398.000000, "- Your weapons will be restricted for the first 2 playing hours.");
- TextDrawBackgroundColor(TutTxtDraw[53], 255);
- TextDrawFont(TutTxtDraw[53], 1);
- TextDrawLetterSize(TutTxtDraw[53], 0.209998, 1.399999);
- TextDrawColor(TutTxtDraw[53], -1);
- TextDrawSetOutline(TutTxtDraw[48], 0);
- TextDrawSetProportional(TutTxtDraw[48], 1);
- TextDrawSetShadow(TutTxtDraw[48], 2);
- //------------------------------------------------------------------------------------------------------------
- // Objects loading text draws
- //------------------------------------------------------------------------------------------------------------
- ObjectsLoadingTD[0] = TextDrawCreate(428.354339, 194.583343, "usebox");
- TextDrawLetterSize(ObjectsLoadingTD[0], 0.000000, 4.803702);
- TextDrawTextSize(ObjectsLoadingTD[0], 222.890197, 0.000000);
- TextDrawAlignment(ObjectsLoadingTD[0], 1);
- TextDrawColor(ObjectsLoadingTD[0], 0);
- TextDrawUseBox(ObjectsLoadingTD[0], true);
- TextDrawBoxColor(ObjectsLoadingTD[0], 102);
- TextDrawSetShadow(ObjectsLoadingTD[0], 0);
- TextDrawSetOutline(ObjectsLoadingTD[0], 0);
- TextDrawFont(ObjectsLoadingTD[0], 0);
-
- ObjectsLoadingTD[1] = TextDrawCreate(237.540237, 207.666656, "OBJECTS LOADING...");
- TextDrawLetterSize(ObjectsLoadingTD[1], 0.449999, 1.600000);
- TextDrawAlignment(ObjectsLoadingTD[1], 1);
- TextDrawColor(ObjectsLoadingTD[1], -16776961);
- TextDrawSetShadow(ObjectsLoadingTD[1], 0);
- TextDrawSetOutline(ObjectsLoadingTD[1], 1);
- TextDrawBackgroundColor(ObjectsLoadingTD[1], 51);
- TextDrawFont(ObjectsLoadingTD[1], 2);
- TextDrawSetProportional(ObjectsLoadingTD[1], 1);
-
- PizzaVehicles[0] = AddStaticVehicleEx(448,2121.60009766,-1788.00000000,13.19999981,0.00000000,3,6,300); //Pizzaboy
- PizzaVehicles[1] = AddStaticVehicleEx(448,2120.30004883,-1788.00000000,13.19999981,0.00000000,3,6,300); //Pizzaboy
- PizzaVehicles[2] = AddStaticVehicleEx(448,2119.10009766,-1788.00000000,13.19999981,358.00000000,3,6,300); //Pizzaboy
- PizzaVehicles[3] = AddStaticVehicleEx(448,2117.80004883,-1788.00000000,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[4] = AddStaticVehicleEx(448,2116.30004883,-1788.00000000,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[5] = AddStaticVehicleEx(448,2122.80004883,-1788.00000000,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[6] = AddStaticVehicleEx(448,2113.69995117,-1788.09997559,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[7] = AddStaticVehicleEx(448,2112.39990234,-1788.09997559,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[8] = AddStaticVehicleEx(448,2111.10009766,-1788.09997559,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[9] = AddStaticVehicleEx(448,2109.60009766,-1788.09997559,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[10] = AddStaticVehicleEx(448,2108.30004883,-1788.09997559,13.19999981,357.99499512,3,6,300); //Pizzaboy
- PizzaVehicles[11] = AddStaticVehicleEx(448,2107.00000000,-1788.09997559,13.19999981,357.99499512,3,6,300); //Pizzaboy
- /*PizzaVehicles[12] = AddStaticVehicleEx(448,2125.72778320,-1821.16296387,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[13] = AddStaticVehicleEx(448,2125.58886719,-1819.16699219,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[14] = AddStaticVehicleEx(448,2125.53417969,-1817.41784668,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[15] = AddStaticVehicleEx(448,2125.59228516,-1815.41772461,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[16] = AddStaticVehicleEx(448,2125.63085938,-1813.41699219,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[17] = AddStaticVehicleEx(448,2125.65161133,-1811.47399902,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[18] = AddStaticVehicleEx(448,2125.63940430,-1809.86132812,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[19] = AddStaticVehicleEx(448,2125.61669922,-1807.59777832,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[20] = AddStaticVehicleEx(448,2125.77197266,-1805.30444336,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[21] = AddStaticVehicleEx(448,2125.79687500,-1802.72937012,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[22] = AddStaticVehicleEx(448,2125.77929688,-1799.91442871,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[23] = AddStaticVehicleEx(448,2125.85205078,-1797.00598145,13.22481918,270.00000000,-1,-1,300); //Pizzaboy
- PizzaVehicles[24] = AddStaticVehicleEx(448,2125.74169922,-1794.25805664,13.22481918,270.00000000,-1,-1,300); //Pizzaboy*/
-
- vehicleMods[0][4] = {1013, 1024, 0, 0};
- vehicleMods[0][6] = {1018, 1019, 1020, 1021};
- vehicleMods[1][0] = {1001, 1003, 0, 0};
- vehicleMods[1][1] = {1004, 1005, 0, 0};
- vehicleMods[1][2] = {1006, 0, 0, 0};
- vehicleMods[1][3] = {1007, 0, 0, 0};
- vehicleMods[1][4] = {1013, 0, 0, 0};
- vehicleMods[1][6] = {1019, 1020, 0, 0};
- vehicleMods[1][12] = {1143, 1145, 0, 0};
- vehicleMods[4][0] = {1002, 1016, 1000, 0};
- vehicleMods[4][3] = {1007, 0, 0, 0};
- vehicleMods[4][4] = {1013, 0, 0, 0};
- vehicleMods[4][6] = {1019, 1020, 1021, 0};
- vehicleMods[5][0] = {1000, 1001, 1014, 1023};
- vehicleMods[5][6] = {1018, 1019, 1020, 1021};
- vehicleMods[10][0] = {1001, 1003, 1023, 0};
- vehicleMods[10][3] = {1007, 0, 0, 0};
- vehicleMods[10][4] = {1013, 1024, 0, 0};
- vehicleMods[10][6] = {1019, 1020, 1021, 0};
- vehicleMods[15][0] = {1001, 1003, 1023, 0};
- vehicleMods[15][6] = {1018, 1019, 0, 0};
- vehicleMods[15][3] = {1007, 0, 0, 0};
- vehicleMods[18][0] = {1002, 1016, 0, 0};
- vehicleMods[18][2] = {1006, 0, 0, 0};
- vehicleMods[18][6] = {1020, 1021, 0, 0};
- vehicleMods[20][0] = {1001, 1003, 0, 0};
- vehicleMods[20][1] = {1004, 1005, 0, 0};
- vehicleMods[20][6] = {1019, 1021, 0, 0};
- vehicleMods[21][0] = {1000, 1014, 1016, 1023};
- vehicleMods[21][6] = {1018, 1019, 1020, 1021};
- vehicleMods[22][3] = {1007, 0, 0, 0};
- vehicleMods[22][4] = {1013, 0, 0, 0};
- vehicleMods[22][6] = {1019, 1020, 1021, 0};
- vehicleMods[26][0] = {1001, 1003, 0, 0};
- vehicleMods[26][1] = {1004, 1005, 0, 0};
- vehicleMods[26][2] = {1006, 0, 0, 0};
- vehicleMods[26][6] = {1019, 1021, 0, 0};
- vehicleMods[36][0] = {1001, 1003, 0, 0};
- vehicleMods[36][2] = {1006, 0, 0, 0};
- vehicleMods[36][3] = {1007, 0, 0, 0};
- vehicleMods[36][4] = {1013, 0, 0, 0};
- vehicleMods[36][6] = {1019, 1020, 1021, 1022};
- vehicleMods[39][0] = {1001, 1003, 1023, 0};
- vehicleMods[39][3] = {1007, 0, 0, 0};
- vehicleMods[39][4] = {1013, 0, 0, 0};
- vehicleMods[39][12] = {1143, 1145, 0, 0};
- vehicleMods[77][2] = {1006, 0, 0, 0};
- vehicleMods[77][3] = {1007, 0, 0, 0};
- vehicleMods[77][6] = {1018, 1019, 1020, 1021};
- vehicleMods[78][1] = {1004, 1005, 1012, 0};
- vehicleMods[78][4] = {1013, 1024, 0, 0};
- vehicleMods[78][6] = {1020, 1021, 1022, 0};
- vehicleMods[89][0] = {1000, 1002, 1016, 0};
- vehicleMods[89][1] = {1004, 1005, 0, 0};
- vehicleMods[89][2] = {1006, 0, 0, 0};
- vehicleMods[89][4] = {1013, 1024, 0, 0};
- vehicleMods[89][6] = {1018, 1019, 1020, 0};
- vehicleMods[91][0] = {1003, 1014, 1023, 0};
- vehicleMods[91][3] = {1007, 0, 0, 0};
- vehicleMods[91][6] = {1018, 1019, 1020, 1021};
- vehicleMods[91][12] = {1143, 1145, 0, 0};
- vehicleMods[92][0] = {1000, 1016, 0, 0};
- vehicleMods[92][1] = {1004, 1005, 0, 0};
- vehicleMods[92][2] = {1006, 0, 0, 0};
- vehicleMods[96][0] = {1001, 1002, 1003, 1023};
- vehicleMods[96][1] = {1011, 0, 0, 0};
- vehicleMods[96][2] = {1006, 0, 0, 0};
- vehicleMods[96][6] = {1019, 1020, 0, 0};
- vehicleMods[96][12] = {1143, 0, 0, 0};
- vehicleMods[100][4] = {1013, 1024, 0, 0};
- vehicleMods[100][6] = {1019, 1020, 1021, 0};
- vehicleMods[116][0] = {1000, 1002, 1015, 1016};
- vehicleMods[116][1] = {1004, 0, 0, 0};
- vehicleMods[116][3] = {1007, 0, 0, 0};
- vehicleMods[116][6] = {1018, 1019, 1020, 1021};
- vehicleMods[117][0] = {1002, 1003, 1016, 1023};
- vehicleMods[117][3] = {1007, 0, 0, 0};
- vehicleMods[117][6] = {1018, 1019, 1020, 0};
- vehicleMods[117][12] = {1143, 1145, 0, 0};
- vehicleMods[118][0] = {1001, 1003, 1023, 0};
- vehicleMods[118][1] = {1005, 0, 0, 0};
- vehicleMods[118][2] = {1006, 0, 0, 0};
- vehicleMods[118][3] = {1007, 0, 0, 0};
- vehicleMods[118][4] = {1013, 0, 0, 0};
- vehicleMods[118][6] = {1018, 1020, 0, 0};
- vehicleMods[118][12] = {1143, 1145, 0, 0};
- vehicleMods[127][0] = {1001, 1014, 1015, 0};
- vehicleMods[127][3] = {1007, 0, 0, 0};
- vehicleMods[127][6] = {1018, 1020, 1021, 0};
- vehicleMods[129][0] = {1001, 1003, 1023, 0};
- vehicleMods[129][1] = {1011, 1012, 0, 0};
- vehicleMods[129][2] = {1006, 0, 0, 0};
- vehicleMods[129][3] = {1007, 0, 0, 0};
- vehicleMods[129][6] = {1018, 1019, 1020, 0};
- vehicleMods[134][1] = {1100, 1123, 1125, 0};
- vehicleMods[134][3] = {1101, 1106, 0, 0};
- vehicleMods[134][6] = {1126, 1127, 0, 0};
- vehicleMods[134][10] = {1179, 1185, 0, 0};
- vehicleMods[134][11] = {1178, 1180, 0, 0};
- vehicleMods[135][3] = {1118, 1119, 0, 0};
- vehicleMods[135][6] = {1113, 1114, 0, 0};
- vehicleMods[135][10] = {1115, 1116, 1117, 0};
- vehicleMods[135][11] = {1109, 1110, 0, 0};
- vehicleMods[136][2] = {1103, 1128, 0, 0};
- vehicleMods[136][3] = {1108, 0, 0, 0};
- vehicleMods[136][6] = {1104, 1105, 0, 0};
- vehicleMods[136][10] = {1181, 1182, 0, 0};
- vehicleMods[136][11] = {1183, 1184, 0, 0};
- vehicleMods[140][0] = {1001, 1023, 0, 0};
- vehicleMods[140][1] = {1004, 0, 0, 0};
- vehicleMods[140][2] = {1006, 0, 0, 0};
- vehicleMods[140][3] = {1007, 0, 0, 0};
- vehicleMods[140][4] = {1024, 0, 0, 0};
- vehicleMods[140][6] = {1018, 1019, 1020, 0};
- vehicleMods[140][12] = {1143, 1145, 0, 0};
- vehicleMods[142][0] = {1014, 1015, 0, 0};
- vehicleMods[142][6] = {1018, 1019, 1020, 1021};
- vehicleMods[142][12] = {1145, 0, 0, 0};
- vehicleMods[146][0] = {1001, 1002, 1023, 0};
- vehicleMods[146][1] = {1004, 0, 0, 0};
- vehicleMods[146][2] = {1006, 0, 0, 0};
- vehicleMods[146][3] = {1007, 0, 0, 0};
- vehicleMods[146][4] = {1024, 0, 0, 0};
- vehicleMods[146][6] = {1018, 1019, 0, 0};
- vehicleMods[146][12] = {1143, 1145, 0, 0};
- vehicleMods[147][0] = {1000, 1003, 1016, 0};
- vehicleMods[147][6] = {1018, 1019, 1020, 1021};
- vehicleMods[147][12] = {1143, 0, 0, 0};
- vehicleMods[149][0] = {1001, 1003, 1023, 0};
- vehicleMods[149][1] = {1011, 1012, 0, 0};
- vehicleMods[149][3] = {1007, 0, 0, 0};
- vehicleMods[149][6] = {1018, 1019, 1020, 0};
- vehicleMods[149][12] = {1143, 1145, 0, 0};
- vehicleMods[150][0] = {1001, 1003, 1023, 0};
- vehicleMods[150][1] = {1004, 1005, 0, 0};
- vehicleMods[150][2] = {1006, 0, 0, 0};
- vehicleMods[150][6] = {1018, 1019, 1020, 0};
- vehicleMods[150][12] = {1143, 1145, 0, 0};
- vehicleMods[151][0] = {1002, 1003, 1016, 1023};
- vehicleMods[151][1] = {1005, 0, 0, 0};
- vehicleMods[151][2] = {1006, 0, 0, 0};
- vehicleMods[151][6] = {1018, 1019, 1020, 1021};
- vehicleMods[158][0] = {1164, 1163, 0, 0};
- vehicleMods[158][2] = {1088, 1091, 0, 0};
- vehicleMods[158][3] = {1090, 1093, 0, 0};
- vehicleMods[158][6] = {1092, 1089, 0, 0};
- vehicleMods[158][10] = {1166, 1165, 0, 0};
- vehicleMods[158][11] = {1168, 1167, 0, 0};
- vehicleMods[159][0] = {1162, 1158, 0, 0};
- vehicleMods[159][2] = {1067, 1068, 0, 0};
- vehicleMods[159][3] = {1069, 1070, 0, 0};
- vehicleMods[159][6] = {1065, 1066, 0, 0};
- vehicleMods[159][10] = {1160, 1173, 0, 0};
- vehicleMods[159][11] = {1159, 1161, 0, 0};
- vehicleMods[160][0] = {1138, 1139, 0, 0};
- vehicleMods[160][2] = {1032, 1033, 0, 0};
- vehicleMods[160][3] = {1026, 1031, 0, 0};
- vehicleMods[160][6] = {1028, 1029, 0, 0};
- vehicleMods[160][10] = {1169, 1170, 0, 0};
- vehicleMods[160][11] = {1141, 1140, 0, 0};
- vehicleMods[161][0] = {1058, 1060, 0, 0};
- vehicleMods[161][2] = {1055, 1061, 0, 0};
- vehicleMods[161][3] = {1056, 1057, 0, 0};
- vehicleMods[161][6] = {1064, 1059, 0, 0};
- vehicleMods[161][10] = {1155, 1157, 0, 0};
- vehicleMods[161][11] = {1154, 1156, 0, 0};
- vehicleMods[162][0] = {1147, 1146, 0, 0};
- vehicleMods[162][2] = {1035, 1038, 0, 0};
- vehicleMods[162][3] = {1036, 1039, 0, 0};
- vehicleMods[162][6] = {1034, 1037, 0, 0};
- vehicleMods[162][10] = {1171, 1172, 0, 0};
- vehicleMods[162][11] = {1149, 1148, 0, 0};
- vehicleMods[165][0] = {1049, 1050, 0, 0};
- vehicleMods[165][2] = {1054, 1053, 0, 0};
- vehicleMods[165][3] = {1047, 1048, 0, 0};
- vehicleMods[165][6] = {1046, 1045, 0, 0};
- vehicleMods[165][10] = {1153, 1152, 0, 0};
- vehicleMods[165][11] = {1150, 1151, 0, 0};
- vehicleMods[167][2] = {1130, 1131, 0, 0};
- vehicleMods[167][3] = {1133, 0, 0, 0};
- vehicleMods[167][6] = {1129, 1132, 0, 0};
- vehicleMods[167][10] = {1189, 1188, 0, 0};
- vehicleMods[167][11] = {1187, 1186, 0, 0};
- vehicleMods[175][3] = {1042, 0, 0, 0};
- vehicleMods[175][6] = {1044, 1043, 0, 0};
- vehicleMods[175][10] = {1174, 1175, 0, 0};
- vehicleMods[175][11] = {1176, 1177, 0, 0};
- vehicleMods[176][3] = {1137, 1134, 0, 0};
- vehicleMods[176][6] = {1136, 1135, 0, 0};
- vehicleMods[176][10] = {1191, 1190, 0, 0};
- vehicleMods[176][11] = {1192, 1193, 0, 0};
- vehicleMods[180][0] = {1001, 1023, 0, 0};
- vehicleMods[180][2] = {1006, 0, 0, 0};
- vehicleMods[180][3] = {1007, 0, 0, 0};
- vehicleMods[180][6] = {1018, 1020, 0, 0};
- vehicleMods[185][0] = {1001, 1003, 1023, 0};
- vehicleMods[185][2] = {1006, 0, 0, 0};
- vehicleMods[185][3] = {1007, 0, 0, 0};
- vehicleMods[185][4] = {1013, 0, 0, 0};
- vehicleMods[185][6] = {1018, 1019, 1020, 0};
- vehicleMods[185][12] = {1143, 1145, 0, 0};
- vehicleMods[189][0] = {1000, 1016, 0, 0};
- vehicleMods[189][1] = {1005, 1004, 0, 0};
- vehicleMods[189][2] = {1006, 0, 0, 0};
- vehicleMods[189][3] = {1007, 0, 0, 0};
- vehicleMods[189][4] = {1013, 1024, 0, 0};
- vehicleMods[189][6] = {1018, 1020, 0, 0};
- vehicleMods[189][12] = {1145, 0, 0, 0};
- vehicleMods[200][1] = {1004, 1005, 0, 0};
- vehicleMods[200][2] = {1006, 0, 0, 0};
- vehicleMods[200][3] = {1007, 0, 0, 0};
- vehicleMods[200][4] = {1013, 0, 0, 0};
- vehicleMods[200][6] = {1018, 1020, 1022, 0};
- vehicleMods[203][0] = {1001, 1023, 0, 0};
- vehicleMods[203][2] = {1006, 0, 0, 0};
- vehicleMods[203][3] = {1007, 0, 0, 0};
- vehicleMods[203][4] = {1024, 0, 0, 0};
- vehicleMods[203][6] = {1019, 1020, 0, 0};
- vehicleMods[203][12] = {1143, 1145, 0, 0};
- EventKernel[EventRequest] = 999;
- EventKernel[EventCreator] = 999;
- for(new x; x < sizeof(EventKernel[EventStaff]); x++) {
- EventKernel[EventStaff][x] = 999;
- }
- return 1;
- }
- forward SaveBusiness(id);
- public SaveBusiness(id)
- {
- new file4[40];
- format(file4, sizeof(file4), BPATH, id);
- new INI:File = INI_Open(file4);
- INI_SetTag(File,"data");
- INI_WriteInt(File,"bOwned", BusinessInfo[id][bOwned]);
- INI_WriteInt(File,"bPrice", BusinessInfo[id][bPrice]);
- INI_WriteString(File,"bOwner", BusinessInfo[id][bOwner]);
- INI_WriteInt(File,"bType", BusinessInfo[id][bType]);
- INI_WriteInt(File,"bLocked", BusinessInfo[id][bLocked]);
- INI_WriteInt(File,"bMoney", BusinessInfo[id][bMoney]);
- INI_WriteFloat(File,"bEntranceX", BusinessInfo[id][bEntranceX]);
- INI_WriteFloat(File,"bEntranceY", BusinessInfo[id][bEntranceY]);
- INI_WriteFloat(File,"bEntranceZ", BusinessInfo[id][bEntranceZ]);
- INI_WriteFloat(File,"bEntranceA", BusinessInfo[id][bEntranceA]);
- INI_WriteFloat(File,"bExitX", BusinessInfo[id][bExitX]);
- INI_WriteFloat(File,"bExitY", BusinessInfo[id][bExitY]);
- INI_WriteFloat(File,"bExitZ", BusinessInfo[id][bExitZ]);
- INI_WriteFloat(File,"bExitA", BusinessInfo[id][bExitA]);
- INI_WriteInt(File,"bInt", BusinessInfo[id][bInt]);
- INI_WriteInt(File,"bWorld", BusinessInfo[id][bWorld]);
- INI_WriteInt(File,"bInsideInt", BusinessInfo[id][bInsideInt]);
- INI_WriteInt(File,"bInsideWorld", BusinessInfo[id][bInsideWorld]);
- INI_WriteString(File,"bName", BusinessInfo[id][bName]);
- INI_WriteString(File,"bIT", BusinessInfo[id][bIT]);
- INI_Close(File);
- return 1;
- }
- forward SaveLand(id);
- public SaveLand(id)
- {
- new file4[40];
- format(file4, sizeof(file4), LPATH, id);
- new INI:File = INI_Open(file4);
- INI_SetTag(File,"data");
- INI_WriteInt(File,"lOwned", LandsInfo[id][lOwned]);
- INI_WriteInt(File,"lPrice", LandsInfo[id][lPrice]);
- INI_WriteString(File,"lOwner", LandsInfo[id][lOwner]);
- INI_WriteInt(File,"lType", LandsInfo[id][lType]);
- INI_WriteFloat(File,"pos_X", LandsInfo[id][pos_X]);
- INI_WriteFloat(File,"pos_Y", LandsInfo[id][pos_Y]);
- INI_WriteFloat(File,"pos_Z", LandsInfo[id][pos_Z]);
- INI_WriteInt(File,"lObjectCount", LandsInfo[id][lObjectCount]);
- INI_Close(File);
- return 1;
- }
- public OnGameModeExit()
- {
- for(new id = 1; id < sizeof(BusinessInfo); id++)//Loops through the businesses.
- {
- if(BusinessInfo[id][bPrice] == 0) break;//Breaks the loop if the price is 0(Meaning it doesn't exist)
- SaveBusiness(id);//Calls the SaveBusiness function.
- }
-
- for(new h = 1; h < sizeof(LandsInfo); h++)//Loops through the businesses.
- {
- if(LandsInfo[h][lType] == 0) break;//Breaks the loop if the price is 0(Meaning it doesn't exist)
- SaveLand(h);//Calls the SaveBusiness function.
- }
- for(new i; i < MAX_FLAMES; i++)
- {
- KillFire(i);
- }
- for(new playerid; playerid < MAX_PLAYERS; playerid++)
- {
- if(PlayerOnFire[playerid] && !CanPlayerBurn(playerid, 1))
- {
- StopPlayerBurning(playerid);
- }
- }
- return 1;
- }
- forward FixHour(hour);
- public FixHour(hour)
- {
- hour = timeshift + hour;
- if(hour < 0)
- {
- hour = hour+24;
- }
- else if(hour > 23)
- {
- hour = hour-24;
- }
- shifthour = hour;
- return 1;
- }
- public hMoleOn()
- {
- hmole=1;
- return 1;
- }
- //----------------------[ Remove Bomb ]-----------------------
- forward PickUpC4(playerid);
- public PickUpC4(playerid)
- {
- DestroyDynamicObject(PlayerInfo[playerid][pC4]);
- PlayerInfo[playerid][pC4] = 0;
- return 1;
- }
- forward SetPlayerFree(playerid,declare,reason[]);
- public SetPlayerFree(playerid,declare,reason[])
- {
- if(IsPlayerConnected(playerid))
- {
- ClearCrime(playerid);
- new turned[MAX_PLAYER_NAME];
- new turner[MAX_PLAYER_NAME];
- new crbjstore[128];
- if(declare == INVALID_PLAYER_ID)
- {
- format(turner, sizeof(turner), "911");
- }
- else
- {
- if(IsPlayerConnected(declare))
- {
- GetPlayerName(declare, turner, sizeof(turner));
- }
- }
- GetPlayerName(playerid, turned, sizeof(turned));
- foreach(Player, i)
- {
- if(IsACop(i))
- {
- format(crbjstore, sizeof(crbjstore), "HQ: All units, officer %s has completed their assignment.",turner);
- SendClientMessage(i, COLOR_DBLUE, crbjstore);
- format(crbjstore, sizeof(crbjstore), "HQ: %s has been processed, %s.",turned,reason);
- SendClientMessage(i, COLOR_DBLUE, crbjstore);
- }
- }
- }
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- /*SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);*/
- SpawnPlayer(playerid);
- return 1;
- }
- stock IsStringAlphaNumeric(string[]) {
- new
- i;
- static const
- szAppropriateCharacters[] = { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_" };
- for(new c = 0; c < strlen(string); c++) {
- for(new f = 0; f < sizeof(szAppropriateCharacters); f++) {
- if(string[c] == szAppropriateCharacters[f])
- i++;
- }
- }
- if(i < strlen(string)) return 0;
- return 1;
- }
- public OnPlayerConnect(playerid) {
- new
- szPlayerIP[16];
-
- RemoveBuildingForPlayer(playerid, 1307, 2071.8828, -1879.5625, 12.6875, 0.25);
-
- IsCheatingDC[playerid] = 0;
- SetPVarInt(playerid, "HouseID", -1);
- InTurf[playerid] = -1;
- SetPVarInt(playerid, "DoorID", 99999);
- SetPVarInt(playerid, "DonatorColor", 0);
- SetPlayerToTeamColor(playerid);
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- GarbageUsed[playerid] = INVALID_VEHICLE_ID;
-
- NearLand[playerid] = 0;
-
- HealthTD[playerid] = CreatePlayerTextDraw(playerid, 608.799926, 66.453338, "100");
- PlayerTextDrawLetterSize(playerid, HealthTD[playerid], 0.242798, 0.942933);
- PlayerTextDrawAlignment(playerid, HealthTD[playerid], 1);
- PlayerTextDrawColor(playerid, HealthTD[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, HealthTD[playerid], 0);
- PlayerTextDrawSetOutline(playerid, HealthTD[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, HealthTD[playerid], 51);
- PlayerTextDrawFont(playerid, HealthTD[playerid], 2);
- PlayerTextDrawSetProportional(playerid, HealthTD[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, HealthTD[playerid], true);
- ArmorTD[playerid] = CreatePlayerTextDraw(playerid, 608.000061, 44.053333, "100");
- PlayerTextDrawLetterSize(playerid, ArmorTD[playerid], 0.222799, 1.047466);
- PlayerTextDrawAlignment(playerid, ArmorTD[playerid], 1);
- PlayerTextDrawColor(playerid, ArmorTD[playerid], -1);
- PlayerTextDrawSetShadow(playerid, ArmorTD[playerid], 0);
- PlayerTextDrawSetOutline(playerid, ArmorTD[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, ArmorTD[playerid], 51);
- PlayerTextDrawFont(playerid, ArmorTD[playerid], 2);
- PlayerTextDrawSetProportional(playerid, ArmorTD[playerid], 1);
-
- PlayerTextDrawShow (playerid, HealthTD[playerid]);
- PlayerTextDrawShow (playerid, ArmorTD[playerid]);
-
- RemoveBuildingForPlayer(playerid, 645, 1906.6875, -1199.1406, 19.2656, 0.25);
-
- Dueling[playerid] = INVALID_PLAYER_ID;
- LastSMS[playerid] = 0;
- PlayerDragged[playerid] = 0;
- PlayerDraggedBy[playerid] = INVALID_PLAYER_ID;
- IsCopDragging[playerid] = INVALID_PLAYER_ID;
- PlayerInfo[playerid][pWepRes] = 0;
- SendClientMessage(playerid, -1, "{A9C4E4}Establishing connection to the {FFA500}Sleepless Roleplay {A9C4E4}database - please wait a moment...");
-
- // Code to patch a SA-MP exploit where you can connect to a SA-MP server multiple times with a bunch of names and completely rape the logs
- // We don't receive attacks like this very often, but I have produced the code so if we ever need it, we have it right in front of us. It requires testing though...
- /*new
- szPlayerName[MAX_PLAYER_NAME],
- szPlayerIP[16],
- szPlayerIPs[16],
- szPlayerNames[MAX_PLAYER_NAME];
- GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
- GetPlayerIp(playerid, szPlayerIP, sizeof(szPlayerIP));
- foreach(Player, x) {
- GetPlayerName(x, szPlayerNames, MAX_PLAYER_NAME);
- GetPlayerIp(playerid, szPlayerIPs, sizeof(szPlayerIPs));
- if(strfind(szPlayerName, szPlayerNames, true) != -1 && !strcmp(szPlayerIPs, szPlayerIP, true) && IsStringAlphaNumeric(szPlayerNames) == 0)
- return BanEx(playerid, "NieXrlaM client spam attack attempt");
- }*/
- TalkingLive[playerid] = INVALID_PLAYER_ID;
- Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 477.600097, 426.346740, "HEALTH: 0.0 SPEED: 0.0");
- PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.287599, 1.644800);
- PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw0[playerid], 16777215);
- PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw0[playerid], 2);
- PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
- Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 543.199707, 412.159942, "Vehicle");
- PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.450000, 1.629866);
- PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw1[playerid], COLOR_ORANGE);
- PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 51);
- PlayerTextDrawFont(playerid, Textdraw1[playerid], 2);
- PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);
-
- Textdraw1s[playerid] = CreatePlayerTextDraw(playerid, 72.800003, 435.306610, "Neutral");
- PlayerTextDrawLetterSize(playerid, Textdraw1s[playerid], 0.201199, 1.323733);
- PlayerTextDrawAlignment(playerid, Textdraw1s[playerid], 1);
- PlayerTextDrawColor(playerid, Textdraw1s[playerid], COLOR_WHITE);
- PlayerTextDrawSetShadow(playerid, Textdraw1s[playerid], 0);
- PlayerTextDrawSetOutline(playerid, Textdraw1s[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, Textdraw1s[playerid], 255);
- PlayerTextDrawFont(playerid, Textdraw1s[playerid], 1);
- PlayerTextDrawSetProportional(playerid, Textdraw1s[playerid], 1);
- PlayerTextDrawShow(playerid, Textdraw1s[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw0s);
-
- /*VDB1[playerid] = CreatePlayerTextDraw(playerid, 506.875000, 125.999977, "-");
- PlayerTextDrawLetterSize(playerid, VDB1[playerid], 0.250000, 1.833333);
- PlayerTextDrawAlignment(playerid, VDB1[playerid], 1);
- PlayerTextDrawColor(playerid, VDB1[playerid], -1);
- PlayerTextDrawSetShadow(playerid, VDB1[playerid], 0);
- PlayerTextDrawSetOutline(playerid, VDB1[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, VDB1[playerid], 51);
- PlayerTextDrawFont(playerid, VDB1[playerid], 2);
- PlayerTextDrawSetProportional(playerid, VDB1[playerid], 1);
- VDB2[playerid] = CreatePlayerTextDraw(playerid, 477.500000, 146.999969, "HEALTH:");
- PlayerTextDrawLetterSize(playerid, VDB2[playerid], 0.278124, 1.570833);
- PlayerTextDrawAlignment(playerid, VDB2[playerid], 1);
- PlayerTextDrawColor(playerid, VDB2[playerid], -1);
- PlayerTextDrawSetShadow(playerid, VDB2[playerid], 0);
- PlayerTextDrawSetOutline(playerid, VDB2[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, VDB2[playerid], 51);
- PlayerTextDrawFont(playerid, VDB2[playerid], 2);
- PlayerTextDrawSetProportional(playerid, VDB2[playerid], 1);
- VDB3[playerid] = CreatePlayerTextDraw(playerid, 530.000000, 147.000015, "1000.0");
- PlayerTextDrawLetterSize(playerid, VDB3[playerid], 0.346874, 1.483333);
- PlayerTextDrawAlignment(playerid, VDB3[playerid], 1);
- PlayerTextDrawColor(playerid, VDB3[playerid], 8388863);
- PlayerTextDrawSetShadow(playerid, VDB3[playerid], 0);
- PlayerTextDrawSetOutline(playerid, VDB3[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, VDB3[playerid], 51);
- PlayerTextDrawFont(playerid, VDB3[playerid], 2);
- PlayerTextDrawSetProportional(playerid, VDB3[playerid], 1);
- VDB4[playerid] = CreatePlayerTextDraw(playerid, 478.125000, 164.499984, "SPEED:");
- PlayerTextDrawLetterSize(playerid, VDB4[playerid], 0.328124, 1.512499);
- PlayerTextDrawAlignment(playerid, VDB4[playerid], 1);
- PlayerTextDrawColor(playerid, VDB4[playerid], -1);
- PlayerTextDrawSetShadow(playerid, VDB4[playerid], 0);
- PlayerTextDrawSetOutline(playerid, VDB4[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, VDB4[playerid], 51);
- PlayerTextDrawFont(playerid, VDB4[playerid], 2);
- PlayerTextDrawSetProportional(playerid, VDB4[playerid], 1);
- VDB5[playerid] = CreatePlayerTextDraw(playerid, 530.000000, 163.916671, "200");
- PlayerTextDrawLetterSize(playerid, VDB5[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, VDB5[playerid], 1);
- PlayerTextDrawColor(playerid, VDB5[playerid], 8388863);
- PlayerTextDrawSetShadow(playerid, VDB5[playerid], 0);
- PlayerTextDrawSetOutline(playerid, VDB5[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, VDB5[playerid], 51);
- PlayerTextDrawFont(playerid, VDB5[playerid], 2);
- PlayerTextDrawSetProportional(playerid, VDB5[playerid], 1);
- PlayerInfo[playerid][pVDB] = 1;*/
- BPOffer[playerid] = 999;
- BPPrice[playerid] = 0;
- PlayerInfo[playerid][pBackpack] = 0;
- PlayerInfo[playerid][pBPPot] = 0;
- PlayerInfo[playerid][pBPCrack] = 0;
- PlayerInfo[playerid][pBPCash] = 0;
- PlayerInfo[playerid][pWearingBP] = 0;
- TotalConnect++;
- if(Iter_Count(Player) > MaxPlayersConnected)
- {
- MaxPlayersConnected = Iter_Count(Player);
- getdate(MPYear,MPMonth,MPDay);
- }
-
- // Name tags by nnahtann
- //cNametag[playerid] = CreateDynamic3DTextLabel("Loading nametag...", 0xFFFFFFFF, 0.0, 0.0, 0.1, NT_DISTANCE, .attachedplayer = playerid, .testlos = 1);
-
- GetPlayerIp(playerid, szPlayerIP, sizeof(szPlayerIP));
- if(!InvalidNameCheck(playerid)) return 1;
- if(CheckBan(szPlayerIP) == 1) {
- SetPlayerName(playerid, "BannedPlayer");
- SendClientMessage(playerid, COLOR_REALREDS, "You're banned from Sleepless Roleplay. You can appeal your ban at www.Serenity");
- Kick(playerid);
- return 1;
- }
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
- SetPVarInt(playerid, "IsInArena", -1);
- SetPVarInt(playerid, "MovingStretcher", -1);
- SetPVarInt(playerid, "editingcd", -1);
- SetPVarInt(playerid, "editingcdveh", -1);
- SetPVarInt(playerid, "AdminUndercover", 0);
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
-
- // Sweeper
- fSweeperPos[playerid][0] = 0;
- fSweeperPos[playerid][1] = 0;
- fSweeperPos[playerid][2] = 0;
- PlayerSweeping[playerid] = 0;
- SweeperTime[playerid] = 0;
- SweeperDistance[playerid] = 0;
- // Player file variables (saving)
- PlayerInfo[playerid][pKey] = 0;
- PlayerInfo[playerid][pLiveBanned] = 0;
- PlayerInfo[playerid][pLevel] = 1;
- PlayerInfo[playerid][pAdmin] = 0;
- format(PlayerInfo[playerid][pAdminName], 32, "0");
- PlayerInfo[playerid][pBanAppealer] = 0;
- PlayerInfo[playerid][pBanned] = 0;
- PlayerInfo[playerid][pPermaBanned] = 0;
- PlayerInfo[playerid][pDisabled] = 0;
- PlayerInfo[playerid][pIP] = 0;
- PlayerInfo[playerid][pReg] = 0;
- PlayerInfo[playerid][pTut] = 0;
- PlayerInfo[playerid][pSex] = 1;
- PlayerInfo[playerid][pGangMod] = 0;
- PlayerInfo[playerid][pFactionMod] = 0;
- PlayerInfo[playerid][pHelperMod] = 0;
- PlayerInfo[playerid][pAge] = 0;
- PlayerInfo[playerid][pSkin] = 299;
- PlayerInfo[playerid][pWalkStyle] = 0;
- PlayerInfo[playerid][pPos_x] = 0;
- PlayerInfo[playerid][pPos_y] = 0;
- PlayerInfo[playerid][pPos_z] = 3.14;
- PlayerInfo[playerid][pPos_r] = 0;
- PlayerInfo[playerid][pConnectTime] = 0;
- PlayerInfo[playerid][pRespect] = 0;
- PlayerInfo[playerid][pNumber] = 0;
- PlayerInfo[playerid][pWarns] = 0;
- PlayerInfo[playerid][pGang] = 255;
- PlayerInfo[playerid][pFaction] = 0;
- PlayerInfo[playerid][pLeader] = 0;
- PlayerInfo[playerid][pRank] = 0;
- PlayerInfo[playerid][pJob] = 0;
- PlayerInfo[playerid][pJob2] = 0;
- PlayerInfo[playerid][pDonator] = 0;
- PlayerInfo[playerid][gPupgrade] = 0;
- PlayerInfo[playerid][pSarmor] = 0;
- PlayerInfo[playerid][pCash] = 100;
- PlayerInfo[playerid][pBank] = 100;
- PlayerInfo[playerid][pInsurance] = 0;
- PlayerInfo[playerid][pCrimes] = 0;
- PlayerInfo[playerid][pArrested] = 0;
- PlayerInfo[playerid][pWantedLevel] = 0;
- PlayerInfo[playerid][pHealth] = 100;
- PlayerInfo[playerid][pArmor] = 0;
- PlayerInfo[playerid][pPot] = 0;
- PlayerInfo[playerid][pCrack] = 0;
- PlayerInfo[playerid][pPackages] = 0;
- PlayerInfo[playerid][pCrates] = 0;
- PlayerInfo[playerid][pRadio] = 0;
- PlayerInfo[playerid][pRadioFreq] = 0;
- PlayerInfo[playerid][pMats] = 0;
- PlayerInfo[playerid][pRope] = 0;
- PlayerInfo[playerid][pCigar] = 0;
- PlayerInfo[playerid][pSprunk] = 0;
- PlayerInfo[playerid][pSpraycan] = 0;
- PlayerInfo[playerid][pHouse] = INVALID_HOUSE_ID;
- PlayerInfo[playerid][pHouse2] = INVALID_HOUSE_ID;
- PlayerInfo[playerid][pRenting] = INVALID_HOUSE_ID;
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pVW] = 0;
- PlayerInfo[playerid][pJailed] = 0;
- PlayerInfo[playerid][pJailTime] = 0;
- // Weapons
- for(new s = 0; s < 12; s++)
- {
- PlayerInfo[playerid][pAGuns][s] = 0; // Admin spawned, non-saved
- PlayerInfo[playerid][pGuns][s] = 0;
- }
- PlayerInfo[playerid][pPayCheck] = 0;
- PlayerInfo[playerid][pPayReady] = 0;
- PlayerInfo[playerid][pDetSkill] = 0;
- PlayerInfo[playerid][pLawSkill] = 0;
- PlayerInfo[playerid][pSexSkill] = 0;
- PlayerInfo[playerid][pDrugsSkill] = 0;
- PlayerInfo[playerid][pSmugSkill] = 0;
- PlayerInfo[playerid][pArmsSkill] = 0;
- PlayerInfo[playerid][pMechSkill] = 0;
- PlayerInfo[playerid][pFishSkill] = 0;
- PlayerInfo[playerid][pBoxSkill] = 0;
- PlayerInfo[playerid][pTruckSkill] = 0;
- PlayerInfo[playerid][pCarSkill] = 0;
- //PlayerInfo[playerid][pCraftSkill] = 0;
- PlayerInfo[playerid][pLawyerTime] = 0;
- PlayerInfo[playerid][pLawyerFreeTime] = 0;
- PlayerInfo[playerid][pDrugsTime] = 0;
- PlayerInfo[playerid][pMechTime] = 0;
- PlayerInfo[playerid][pSexTime] = 0;
- PlayerInfo[playerid][pCarTime] = 0;
- PlayerInfo[playerid][pFishes] = 0;
- PlayerInfo[playerid][pBiggestFish] = 0;
- PlayerInfo[playerid][pWeedObject] = 0;
- PlayerInfo[playerid][pDamageTimer] = -1;
- PlayerInfo[playerid][pWeedPos][0] = 0;
- PlayerInfo[playerid][pWeedPos][1] = 0;
- PlayerInfo[playerid][pWeedPos][2] = 0;
- PlayerInfo[playerid][pWeedVW] = 0;
- PlayerInfo[playerid][pWeedInt] = 0;
- PlayerInfo[playerid][pWeedGrowth] = -1;
- PlayerInfo[playerid][pWSeeds] = 0;
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_NORMAL;
- PlayerInfo[playerid][pNoDamage] = 0;
- PlayerInfo[playerid][pScrewdriver] = 0;
- PlayerInfo[playerid][pSmslog] = 0;
- PlayerInfo[playerid][pWristwatch] = 0;
- PlayerInfo[playerid][pTire] = 0;
- PlayerInfo[playerid][pFirstaid] = 0;
- PlayerInfo[playerid][pRccam] = 0;
- PlayerInfo[playerid][pReceiver] = 0;
- PlayerInfo[playerid][pGPS] = 0;
- PlayerInfo[playerid][pDonatorColor] = 0;
- PlayerInfo[playerid][pSweep] = 0;
- PlayerInfo[playerid][pSweepLeft] = 0;
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- PlayerVehicleInfo[playerid][v][pvModelId] = 0;
- PlayerVehicleInfo[playerid][v][pvPosX] = 0.0;
- PlayerVehicleInfo[playerid][v][pvPosY] = 0.0;
- PlayerVehicleInfo[playerid][v][pvPosZ] = 0.0;
- PlayerVehicleInfo[playerid][v][pvPosAngle] = 0.0;
- PlayerVehicleInfo[playerid][v][pvLock] = 0;
- PlayerVehicleInfo[playerid][v][pvLocked] = 0;
- PlayerVehicleInfo[playerid][v][pvPaintJob] = -1;
- PlayerVehicleInfo[playerid][v][pvColor1] = 0;
- PlayerVehicleInfo[playerid][v][pvImpounded] = 0;
- PlayerVehicleInfo[playerid][v][pvSpawned] = 0;
- PlayerVehicleInfo[playerid][v][pvColor2] = 0;
- PlayerVehicleInfo[playerid][v][pvPrice] = 0;
- PlayerVehicleInfo[playerid][v][pvTicket] = 0;
- PlayerVehicleInfo[playerid][v][pvWeapons][0] = 0;
- PlayerVehicleInfo[playerid][v][pvWeapons][1] = 0;
- PlayerVehicleInfo[playerid][v][pvWeapons][2] = 0;
- PlayerVehicleInfo[playerid][v][pvWepUpgrade] = 0;
- PlayerVehicleInfo[playerid][v][pvFuel] = 100.0;
- PlayerVehicleInfo[playerid][v][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- PlayerVehicleInfo[playerid][v][pvPark] = 0;
- ListItemReleaseId[playerid][v] = -1;
- PlayerVehicleInfo[playerid][v][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][v][pvSpawned] = 0;
- format(PlayerVehicleInfo[playerid][v][pvNumberPlate], 32, "");
- ListItemTrackId[playerid][v] = -1;
- for(new m = 0; m < MAX_MODS; m++)
- {
- PlayerVehicleInfo[playerid][v][pvMods][m] = 0;
- }
- }
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++) {
- PlayerVehicleInfo[playerid][v][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- }
- PlayerInfo[playerid][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID; // non-saved
- PlayerInfo[playerid][pVehicleKeysFrom] = INVALID_PLAYER_ID; // non-saved
- PlayerInfo[playerid][pCarLic] = 1;
- PlayerInfo[playerid][pFlyLic] = 0;
- PlayerInfo[playerid][pBoatLic] = 1;
- PlayerInfo[playerid][pFishLic] = 1;
- PlayerInfo[playerid][pGunLic] = 1;
- PlayerInfo[playerid][pDivision] = 0;
- PlayerInfo[playerid][pTicketTime] = 0;
- PlayerInfo[playerid][pHeadValue] = 0;
- strcpy(PlayerInfo[playerid][pContractBy], "Nobody", 64);
- strcpy(PlayerInfo[playerid][pContractDetail], "None", 64);
- PlayerInfo[playerid][pC4] = 0;
- PlayerInfo[playerid][pC4Used] = 0;
- PlayerInfo[playerid][pBombs] = 0;
- PlayerInfo[playerid][pCHits] = 0;
- PlayerInfo[playerid][pFHits] = 0;
- strcpy(PlayerInfo[playerid][pPrisonedBy], "Nobody", 64);
- strcpy(PlayerInfo[playerid][pPrisonReason], "None", 64);
- PlayerInfo[playerid][pAcceptReport] = 0;
- PlayerInfo[playerid][pTrashReport] = 0;
- PlayerInfo[playerid][pAccent] = 0;
- PlayerInfo[playerid][pNMute] = 0;
- PlayerInfo[playerid][pNMuteTotal] = 0;
- PlayerInfo[playerid][pADMute] = 0;
- PlayerInfo[playerid][pADMuteTotal] = 0;
- PlayerInfo[playerid][pRMuted] = 0;
- PlayerInfo[playerid][pRMutedTotal] = 0;
- PlayerInfo[playerid][pRMutedTime] = 0;
- PlayerInfo[playerid][pSpeedo] = 0;
- PlayerInfo[playerid][pGCMuted] = 0;
- PlayerInfo[playerid][pGCMutedTime] = 0;
- PlayerInfo[playerid][pCallsAccepted] = 0;
- PlayerInfo[playerid][pPatientsDelivered] = 0;
- PlayerInfo[playerid][pTriageTime] = 0;
- for(new v = 0; v < MAX_PLAYERTOYS; v++)
- {
- PlayerToyInfo[playerid][v][ptModelID] = 0;
- PlayerToyInfo[playerid][v][ptBone] = 0;
- PlayerToyInfo[playerid][v][ptPosX] = 0.0;
- PlayerToyInfo[playerid][v][ptPosY] = 0.0;
- PlayerToyInfo[playerid][v][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][v][ptRotX] = 0.0;
- PlayerToyInfo[playerid][v][ptRotY] = 0.0;
- PlayerToyInfo[playerid][v][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][v][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][v][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][v][ptScaleZ] = 1.0;
- }
- PlayerInfo[playerid][pKillLog0][0] = 0;
- PlayerInfo[playerid][pKillLog1][0] = 0;
- PlayerInfo[playerid][pKillLog2][0] = 0;
- PlayerInfo[playerid][pKillLog3][0] = 0;
- PlayerInfo[playerid][pKillLog4][0] = 0;
- PlayerInfo[playerid][pKillLog5][0] = 0;
- PlayerInfo[playerid][pKillLog6][0] = 0;
- PlayerInfo[playerid][pKillLog7][0] = 0;
- PlayerInfo[playerid][pKillLog8][0] = 0;
- PlayerInfo[playerid][pKillLog9][0] = 0;
- strcpy(PlayerInfo[playerid][pFlag], "", 128);
- strcpy(PlayerInfo[playerid][pReferredBy], "0", 32);
- PlayerInfo[playerid][pRefTokens] = 0;
- PlayerInfo[playerid][pRefTokensOffline] = 0;
- PlayerInfo[playerid][pHelper] = 0;
- // Other player variables (non-saving)
- AdminRelogPassword[playerid][0] = 0;
- AdminLoggedInBefore[playerid] = 0;
- for(new s = 0; s < 40; s++)
- {
- ListItemReportId[playerid][s] = -1;
- }
- for(new i = 0; i < 6; i++)
- {
- HHcheckFloats[playerid][i] = 0;
- }
- HHcheckInt[playerid] = 0;
- HHcheckVW[playerid] = 0;
- for(new i = 0; i < 3; i++)
- {
- TeleportDest[playerid][i] = 0;
- }
- for(new i = 0; i < 3; i++)
- {
- TeleportDest2[playerid][i] = 0;
- }
- for(new i = 0; i < 3; i++) {
- StopaniFloats[playerid][i] = 0;
- }
- for(new i = 0; i < 3; i++) {
- FixMyVwFloats[playerid][i] = 0;
- }
- InviteCrew[playerid] = 255;
- InviteCrew1[playerid] = 255;
- InviteCrew2[playerid] = 255;
- JustSuicided[playerid] = 0;
- TeleportDestInt[playerid] = 0;
- TeleportDestInt2[playerid] = 0;
- gPlayerAccount[playerid] = 0;
- gPlayerLogTries[playerid] = 0;
- gPlayerLogged[playerid] = 0;
- InsideMainMenu[playerid] = 1;
- InsideTut[playerid] = 1;
- ActiveChatbox[playerid] = 0;
- PlayerCuffed[playerid] = 0;
- Spectate[playerid] = 999;
- Spectating[playerid] = 0;
- GettingSpectated[playerid] = 999;
- InsideShamal[playerid]= INVALID_VEHICLE_ID;
- HouseOffer[playerid] = 999;
- House[playerid] = 0;
- HousePrice[playerid] = 0;
- hInviteHouse[playerid]=INVALID_HOUSE_ID;
- hInviteOffer[playerid]=999;
- //hInviteSlot[playerid]=0;
- playerTabbed[playerid] = 0;
- playerTabbedTime[playerid] = 0;
- playerAFK[playerid] = 0;
- playerAFKTime[playerid] = 0;
- playerLastTyped[playerid] = 0;
- pCurrentWeapon[playerid] = 0;
- JetPack[playerid] = 0;
- TextSpamTimes[playerid] = 0;
- TextSpamUnmute[playerid] = 0;
- CommandSpamTimes[playerid] = 0;
- CommandSpamUnmute[playerid] = 0;
- gLastCar[playerid] = 0;
- GettingJob[playerid] = 0;
- GettingJob2[playerid] = 0;
- PayCheckCode[playerid] = 0;
- AdminDuty[playerid] = 0;
- FindTimePoints[playerid] = 0;
- FindingPlayer[playerid] = 0;
- FindTime[playerid] = 0;
- UsedFind[playerid] = 0;
- Condom[playerid] = 0;
- SexOffer[playerid] = 999;
- SexPrice[playerid] = 0;
- gFam[playerid] = 0;
- InviteOffer[playerid]=999;
- InviteFaction[playerid]=0;
- InviteFamily[playerid]=255;
- PotOffer[playerid] = 999;
- CrackOffer[playerid] = 999;
- PotPrice[playerid]=0;
- CrackPrice[playerid]=0;
- PotGram[playerid]=0;
- CrackGram[playerid]=0;
- JobDuty[playerid]=0;
- WantLawyer[playerid]=0;
- CallLawyer[playerid]=0;
- JailPrice[playerid]=0;
- DefendOffer[playerid] = 999;
- DefendPrice[playerid] = 0;
- CP[playerid] = 0;
- GuardOffer[playerid] = 999;
- GuardPrice[playerid]=0;
- BetOffer[playerid] = 999;
- BetPrice[playerid]=0;
- GunOffer[playerid] = 999;
- GunId[playerid] = 0;
- GunMats[playerid] = 0;
- MatsOffer[playerid] = 999;
- MatsPrice[playerid] = 0;
- MatsAmount[playerid] = 0;
- PlayerBoxing[playerid]=0;
- BoxOffer[playerid] = 999;
- BoxWaitTime[playerid]=0;
- UsedCrack[playerid] = 0;
- UsedWeed[playerid] = 0;
- PlayerStoned[playerid] = 0;
- TransportDuty[playerid]=0;
- TransportValue[playerid] = 0;
- TransportMoney[playerid] = 0;
- TransportTime[playerid] = 0;
- TransportCost[playerid] = 0;
- TransportDriver[playerid] = 999;
- ConsumingMoney[playerid] = 0;
- BusCallTime[playerid]=0;
- BusAccepted[playerid] = 999;
- TaxiCallTime[playerid]=0;
- TaxiAccepted[playerid] = 999;
- DrinkOffer[playerid] = INVALID_PLAYER_ID;
- Fishes[playerid][pLastFish] = 0;
- Fishes[playerid][pFishID] = 0;
- FishCount[playerid]=0;
- CraftOffer[playerid] = 999;
- CraftId[playerid]=0;
- CraftMats[playerid]=0;
- VehicleSpawned[playerid] = 0;
- VehicleOffer[playerid] = 999;
- VehiclePrice[playerid] = 0;
- VehicleId[playerid] = -1;
- GiveKeysTo[playerid] = INVALID_PLAYER_ID;
- RepairCar[playerid]=0;
- OnDuty[playerid]=0;
- ConnectedToPC[playerid]=0;
- PlayerCuffedTime[playerid]=0;
- PhoneOnline[playerid] = 0;
- pTazer[playerid] = 0;
- pTazerReplace[playerid] = 0;
- TazerTimeout[playerid] = 0;
- TicketOffer[playerid] = 999;
- TicketMoney[playerid] = 0;
- arr_Towing[playerid] = INVALID_VEHICLE_ID;
- Fixr[playerid] = 0;
- gBug[playerid] = 1;
- GotHit[playerid]=0;
- GoChase[playerid]=999;
- GetChased[playerid]=999;
- HitOffer[playerid]=999;
- HitToGet[playerid]=999;
- JustReported[playerid] = -1;
- CancelReport[playerid] = -1;
- NewbieTimer[playerid] = 0;
- gNewbie[playerid] = 0;
- for(new i = 0; i < 6; i++) {
- EventFloats[playerid][i] = 0.0;
- }
- EventLastInt[playerid] = 0; EventLastVW[playerid] = 0;
- Mobile[playerid]=INVALID_PLAYER_ID;
- CellTime[playerid] = 0;
- CalledCops[playerid]=0;
- CopsCallTime[playerid]=0;
- CalledMedics[playerid]=0;
- MedicsCallTime[playerid]=0;
- Music[playerid]=0;
- PlayerTied[playerid]=0;
- gRadio[playerid] = 1;
- CallCost[playerid] = 0;
- szAdvert[playerid][0] = 0;
- IsBoundsShowingFFC[playerid] = 0;
- IsBoundsShowingMP1[playerid] = 0;
- IsBoundsShowingMF1[playerid] = 0;
- IsBoundsShowingMP2[playerid] = 0;
- IsBoundsShowingMF2[playerid] = 0;
- IsBoundsShowingAEC[playerid] = 0;
- IsBoundsShowingDH[playerid] = 0;
- IsBoundsShowingCL[playerid] = 0;
- IsBoundsShowingDF[playerid] = 0;
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- TruckDeliver[playerid] = 0;
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- GlobalChat[playerid] = 0;
- GlobalChatTimer[playerid] = 0;
- EMSCallTime[playerid]=0;
- EMSAccepted[playerid]=999;
- MedicCallTime[playerid]=0;
- MedicAccepted[playerid] = 999;
- MechanicCallTime[playerid]=0;
- DivorceOffer[playerid] = 999;
- MarryWitness[playerid] = 999;
- MarryWitnessOffer[playerid] = 999;
- MarriageCeremoney[playerid] = 0;
- ProposeOffer[playerid] = 999;
- ProposedTo[playerid] = 999;
- GotProposedBy[playerid] = 999;
- slotselection[playerid] = 0;
- ServiceTime[playerid] = 0;
- WasHereForPaycheck[playerid] = 0;
- SignedPaycheck[playerid] = 0;
- MissedPaychecks[playerid] = 0;
- HidePM[playerid] = 0;
- Backup[playerid] = 0;
- FindingJob[playerid] = 0;
- ShakeHandRequest[playerid] = 999;
- ShakeHandStyle[playerid] = 0;
- TutorialProgress[playerid] = 0;
- ValidArmor[playerid] = 0;
- PhonePrivacy[playerid] = 0;
- MP3Station[playerid] = 0;
- // Start of boombox
- BoomBoxSet[playerid] = 0;
- BoomboxInfo[playerid][bbPosX] = 0.0;
- BoomboxInfo[playerid][bbPosY] = 0.0;
- BoomboxInfo[playerid][bbPosZ] = 0.0;
- BoomboxInfo[playerid][bbInt] = 0;
- BoomboxInfo[playerid][bbVW] = 0;
- BoomboxInfo[playerid][bbStation] = 0;
- BoomboxInfo[playerid][bbSetBy] = 999;
- BoomboxInfo[playerid][bbObject] = 0;
- // End of boombox
-
- GlobalChat[playerid] = 1;
-
- ClearCrime(playerid);
- ClearFishes(playerid);
- ClearMarriage(playerid);
- // Removal of hell hole (VIP Lounge)
- RemoveBuildingForPlayer(playerid, 3999, 1785.9766, -1564.8594, 25.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 4079, 1785.9766, -1564.8594, 25.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 4189, 1794.6172, -1576.7344, 17.7578, 0.25);
- RemoveBuildingForPlayer(playerid, 1308, 1822.1563, -1543.7891, 12.6328, 0.25);
-
- RemoveBuildingForPlayer(playerid, 4046, 1479.5234, -1852.6406, 24.5156, 0.25);
- RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
- RemoveBuildingForPlayer(playerid, 4214, 1589.4531, -1817.5625, 22.2109, 0.25);
- RemoveBuildingForPlayer(playerid, 4217, 1449.2500, -1852.5703, 22.3672, 0.25);
- RemoveBuildingForPlayer(playerid, 4223, 1596.5547, -1817.2969, 21.0313, 0.25);
- RemoveBuildingForPlayer(playerid, 1266, 1482.0859, -1859.9688, 25.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 4170, 1433.9531, -1844.4063, 21.4219, 0.25);
- RemoveBuildingForPlayer(playerid, 1226, 1483.4297, -1867.7188, 16.4219, 0.25);
- RemoveBuildingForPlayer(playerid, 1260, 1482.0859, -1859.9688, 25.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 4004, 1479.5234, -1852.6406, 24.5156, 0.25);
- RemoveBuildingForPlayer(playerid, 1357, 1487.6953, -1848.1094, 12.8125, 0.25);
- RemoveBuildingForPlayer(playerid, 1372, 1486.2109, -1848.1250, 12.6641, 0.25);
- RemoveBuildingForPlayer(playerid, 1230, 1488.9219, -1848.2734, 12.9766, 0.25);
- RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
- RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
- RemoveBuildingForPlayer(playerid, 1226, 1593.9844, -1867.7188, 16.4219, 0.25);
- RemoveBuildingForPlayer(playerid, 4227, 1614.6328, -1862.2109, 14.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 3988, 1596.5547, -1817.2969, 21.0313, 0.25);
-
- /*// joingame new event
- RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
- RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);*/
- PlayerPlaySound(playerid, SOUND_MUSIC1, 2050.1995, 1344.5500, 13.2378);
-
- SetSpawnInfo(playerid, 0, 299, 1970.506103, -1201.447143, -25.074676, 1.0, -1, -1, -1, -1, -1, -1);
- SpawnPlayer(playerid); // The player doesn't actually spawn before logging in, this is just to get rid of the annoying "<<", ">>" and "Spawn" buttons.
- TogglePlayerControllable(playerid, 0);
-
- SetTimerEx("Login", 1000, 0, "d", playerid);
- SyncPlayerTime(playerid);
- return 1;
- }
- //-----------------[Get color code by name]----------------------
- forward GetColorCode(clr[]);
- public GetColorCode(clr[])
- {
- new color = -1;
- if(IsNumeric(clr)) {
- color = strval(clr);
- return color;
- }
- if(strcmp(clr, "black", true)==0) color=0;
- if(strcmp(clr, "white", true)==0) color=1;
- if(strcmp(clr, "blue", true)==0) color=2;
- if(strcmp(clr, "red", true)==0) color=3;
- if(strcmp(clr, "green", true)==0) color=16;
- if(strcmp(clr, "purple", true)==0) color=5;
- if(strcmp(clr, "yellow", true)==0) color=6;
- if(strcmp(clr, "lightblue", true)==0) color=7;
- if(strcmp(clr, "navy", true)==0) color=94;
- if(strcmp(clr, "beige", true)==0) color=102;
- if(strcmp(clr, "darkgreen", true)==0) color=51;
- if(strcmp(clr, "darkblue", true)==0) color=103;
- if(strcmp(clr, "darkgrey", true)==0) color=13;
- if(strcmp(clr, "gold", true)==0) color=99;
- if(strcmp(clr, "brown", true)==0 || strcmp(clr, "dennell", true)==0) color=55;
- if(strcmp(clr, "darkbrown", true)==0) color=84;
- if(strcmp(clr, "darkred", true)==0) color=74;
- if(strcmp(clr, "maroon", true)==0) color=115;
- if(strcmp(clr, "pink", true)==0) color=126;
- return color;
- }
- stock HospitalSpawn(playerid)
- {
- if(GetPVarInt(playerid, "MedicBill") == 1 && PlayerInfo[playerid][pJailed] == 0) {
- if(GetPVarInt(playerid, "Hospital") == 1 && PlayerInfo[playerid][pInsurance] == 0) {
- SetPlayerArmourEx(playerid, PlayerInfo[playerid][pSarmor]);
- if(PlayerInfo[playerid][pDonator] >= 2) SetPlayerHealth(playerid, 100.0);
- else SetPlayerHealth(playerid, 50.0);
- DeletePVar(playerid, "MedicBill");
- if(PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pFaction] != 3 && PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2 && PlayerInfo[playerid][pConnectTime] > 8) {
- GivePlayerCash(playerid, -200);
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill comes to $200. Have a nice day!");
- }
- else if(PlayerInfo[playerid][pConnectTime] < 9) SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by the state (less than 8 playing hours).");
- else SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by your faction insurance.");
-
- GameTextForPlayer(playerid, "~w~You're presently uninsured, ~n~buy insurance!", 5000, 6);
- SendClientMessage(playerid, COLOR_WHITE, "(( Look for the insurance points next to each hospital. Type /insurehelp for more details. ))");
- SetPlayerPos(playerid, 1175.0586,-1324.2463,14.5938);
- SetPlayerFacingAngle(playerid, 268.9748);
- DeletePVar(playerid, "Hospital");
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- } else if(GetPVarInt(playerid, "Hospital") == 2 && PlayerInfo[playerid][pInsurance] == 0) {
- SetPlayerArmourEx(playerid, PlayerInfo[playerid][pSarmor]);
- if(PlayerInfo[playerid][pDonator] >= 2) SetPlayerHealth(playerid, 100.0);
- else SetPlayerHealth(playerid, 50.0);
- DeletePVar(playerid, "MedicBill");
- if(PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pFaction] != 3 && PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2 && PlayerInfo[playerid][pConnectTime] > 8) {
- GivePlayerCash(playerid, -200);
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill comes to $200. Have a nice day!");
- }
- else if(PlayerInfo[playerid][pConnectTime] < 9) SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by the state (less than 8 playing hours).");
- else SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by your faction insurance.");
-
- GameTextForPlayer(playerid, "~w~You're presently uninsured, ~n~buy insurance!", 5000, 6);
- SendClientMessage(playerid, COLOR_WHITE, "(( Look for the insurance points next to each hospital. Type /insurehelp for more details. ))");
- SetPlayerPos(playerid, 2034.2269,-1404.3459,17.2617);
- SetPlayerFacingAngle(playerid, 179.4258);
- DeletePVar(playerid, "Hospital");
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- if(GetPVarInt(playerid, "Hospital") == 1 && PlayerInfo[playerid][pInsurance] == 1) {
- SetPlayerArmourEx(playerid, PlayerInfo[playerid][pSarmor]);
- if(PlayerInfo[playerid][pDonator] >= 2) SetPlayerHealth(playerid, 100.0);
- else SetPlayerHealth(playerid, 50.0);
- DeletePVar(playerid, "MedicBill");
- if(PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pFaction] != 3 && PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2 && PlayerInfo[playerid][pConnectTime] > 8) {
- GivePlayerCash(playerid, -150);
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill comes to $150. Have a nice day!");
- }
- else if(PlayerInfo[playerid][pConnectTime] < 9) SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by the state (less than 8 playing hours).");
- else SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by your faction insurance.");
- SetPlayerPos(playerid, 1175.0586,-1324.2463,14.5938);
- SetPlayerFacingAngle(playerid, 268.9748);
- DeletePVar(playerid, "Hospital");
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- } else if(GetPVarInt(playerid, "Hospital") == 2 && PlayerInfo[playerid][pInsurance] == 2) {
- SetPlayerArmourEx(playerid, PlayerInfo[playerid][pSarmor]);
- if(PlayerInfo[playerid][pDonator] >= 2) SetPlayerHealth(playerid, 100.0);
- else SetPlayerHealth(playerid, 50.0);
- DeletePVar(playerid, "MedicBill");
- if(PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pFaction] != 3 && PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2 && PlayerInfo[playerid][pConnectTime] > 8) {
- GivePlayerCash(playerid, -150);
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill comes to $150. Have a nice day!");
- }
- else if(PlayerInfo[playerid][pConnectTime] < 9) SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by the state (less than 8 playing hours).");
- else SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by your faction insurance.");
- SetPlayerPos(playerid, 2034.2269,-1404.3459,17.2617);
- SetPlayerFacingAngle(playerid, 179.4258);
- DeletePVar(playerid, "Hospital");
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- if(PlayerInfo[playerid][pSpawnMC] == 1)
- {
- if(PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pFaction] != 3 && PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2 && PlayerInfo[playerid][pConnectTime] > 8) {
- //GivePlayerCash(playerid, -200);
- //SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your maximusclub bill comes to $200. Have a nice day!");
- }
- else if(PlayerInfo[playerid][pConnectTime] < 9) SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your hospital bill was paid for by the state (less than 8 playing hours).");
- else SendClientMessage(playerid, TEAM_CYAN_COLOR, "Your maximusclub bill was paid for by your faction insurance.");
- //GameTextForPlayer(playerid, "~w~You're presently uninsured, ~n~buy insurance!", 5000, 6);
- //SendClientMessage(playerid, COLOR_WHITE, "(( Look for the insurance points next to each maximusclub. Type /insurehelp for more details. ))");
- SetPlayerPos(playerid, 1068.912231,-1720.907470,-23.886886);
- SetPlayerFacingAngle(playerid, 268.9748);
- DeletePVar(playerid, "Hospital");
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- // Name tags by nnathann
- //if(IsValidDynamic3DTextLabel(cNametag[playerid]))
- //DestroyDynamic3DTextLabel(cNametag[playerid]);
- ResetPlayerVariables(playerid);
- KillTimer(Timer[playerid]);
- pBlood[playerid] = false;
- // Crash Fix
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- if(!strcmp(name, "InvalidNick", true)) return 1;
- if(!strcmp(name, "BannedPlayer", true)) return 1;
- if(playerid == MAX_PLAYERS) return 1;
-
- if(pTazer[playerid] == 1) GivePlayerValidWeapon(playerid,pTazerReplace[playerid],60000);
- if(GetPVarInt(playerid, "SpeedRadar") == 1) GivePlayerValidWeapon(playerid, GetPVarInt(playerid, "RadarReplacement"), 60000);
-
- if(PlayerInfo[playerid][pGang] < 255)
- {
- FamilyInfo[PlayerInfo[playerid][pGang]][FamilyOnline]--;
- }
- if(GetPVarInt(playerid, "MovingStretcher") != -1) {
- KillTimer(GetPVarInt(playerid, "TickEMSMove"));
- DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher");
- SetPVarInt(playerid, "MovingStretcher", -1);
- }
-
- if(Hunted[playerid] == 1)
- {
- new string[128];
- format(string, sizeof(string), "Father, please forgive the hunted %s as he left the server.",GetPlayerNameEx(playerid));
- SendClientMessageToAll(COLOR_YELLOW, string);
- Hunted[playerid] = 0;
- AllHunt = 0;
- return 1;
- }
-
- if(IsValidDynamicObject(PlayerInfo[playerid][pWeedObject]))
- {
- DestroyDynamicObject(PlayerInfo[playerid][pWeedObject]);
- }
-
- if(IsValidDynamicObject(BoomboxInfo[playerid][bbObject]))
- {
- DestroyDynamicObject(BoomboxInfo[playerid][bbObject]);
-
- foreach(Player, i)
- {
- if(IsPlayerInRangeOfPoint(i,150.0,BoomboxInfo[playerid][bbPosX],BoomboxInfo[playerid][bbPosY],BoomboxInfo[playerid][bbPosZ]) && GetPlayerInterior(i) == BoomboxInfo[playerid][bbInt] && GetPlayerVirtualWorld(i) == BoomboxInfo[playerid][bbVW])
- {
- StopAudioStreamForPlayer(i);
- }
- }
- }
-
- if(PlayerInfo[playerid][pGang] < 255 && PlayerInfo[playerid][pTut] == 1)
- {
- new string[128];
- format(string, sizeof(string), "* %s from your family has disconnected.", GetPlayerNameEx(playerid));
- SendNewFamilyMessage(PlayerInfo[playerid][pGang], COLOR_LIGHTSLATEGRAY, string);
- FamilyInfo[PlayerInfo[playerid][pGang]][FamilyInTurf]--;
- }
- if(PlayerInfo[playerid][pFaction] >= 1)
- {
- new string[128];
- format(string, sizeof(string), "* %s from your faction has disconnected.", GetPlayerNameEx(playerid));
- SendRadioMessage(PlayerInfo[playerid][pFaction], COLOR_LIGHTSLATEGRAY, string);
- }
-
- if(GetPVarInt(playerid, "PBM") < 1) {
- if(GetPVarInt(playerid, "Hospital") > 0) {
- PlayerInfo[playerid][pHospital] = 1;
- }
- if(GetPVarInt(playerid, "Injured") == 1) {
- PlayerInfo[playerid][pHospital] = 1;
- KillEMSQueue(playerid);
- ResetPlayerWeaponsEx(playerid);
- }
- } else {
- new
- szMessage[64];
- format(szMessage, sizeof(szMessage), "%s has left the paintball game (disconnect).", GetPlayerNameEx(playerid));
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") == GetPVarInt(playerid, "PBM") && i != playerid)
- SendClientMessage(i, COLOR_RED, szMessage);
- }
- }
- if(PlayerInfo[playerid][pLockCar] != INVALID_VEHICLE_ID)
- vehicle_unlock_doors(PlayerInfo[playerid][pLockCar]);
- if(PlayerInfo[playerid][pVehicleKeysFrom] != INVALID_PLAYER_ID)
- PlayerVehicleInfo[PlayerInfo[playerid][pVehicleKeysFrom]][PlayerInfo[playerid][pVehicleKeys]][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- InsideShamal[playerid] = INVALID_VEHICLE_ID;
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
-
- if(GetPlayerSkin(playerid) == 155)
- PlayerInfo[playerid][pSkin] = GetPVarInt(playerid, "NPS");
- if(InsideShamal[playerid] != INVALID_VEHICLE_ID) {
- if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519)
- {
- GivePlayerValidWeapon(playerid, 46, 60000);
- PlayerInfo[playerid][pPos_x] = 0.000000;
- PlayerInfo[playerid][pPos_y] = 0.000000;
- PlayerInfo[playerid][pPos_z] = 420.000000;
- }
- else
- {
- new Float:X, Float:Y, Float:Z;
- GetVehiclePos(InsideShamal[playerid], X, Y, Z);
- PlayerInfo[playerid][pPos_x] = X;
- PlayerInfo[playerid][pPos_y] = Y;
- PlayerInfo[playerid][pPos_z] = Z;
- new Float:XB, Float:YB, Float:ZB;
- GetVehiclePos(InsideShamal[playerid], XB, YB, ZB);
- if(ZB > 50.0)
- {
- GivePlayerValidWeapon(playerid, 46, 60000);
- }
- }
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerInterior(playerid, 0);
- InsideShamal[playerid] = INVALID_VEHICLE_ID;
- }
- UnloadPlayerVehicles(playerid);
- ResetPlayerWeapons(playerid);
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][ReportFrom] == playerid)
- {
- Reports[i][ReportFrom] = 999;
- Reports[i][BeingUsed] = 0;
- Reports[i][TimeToExpire] = 0;
- }
- }
- foreach(Player, i)
- {
- if(TaxiAccepted[i] == playerid)
- {
- TaxiAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1);
- TaxiCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- if(EMSAccepted[i] == playerid)
- {
- EMSAccepted[i] = 999;
- GameTextForPlayer(i, "~w~EMS Caller~n~~r~Left the game", 5000, 1);
- EMSCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- if(BusAccepted[i] == playerid)
- {
- BusAccepted[i] = 999;
- GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);
- BusCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- if(MedicAccepted[i] == playerid)
- {
- TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; MedicAccepted[playerid] = 999;
- GameTextForPlayer(i, "~w~Medic Caller~n~~r~Left the game", 5000, 1);
- MedicCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- if(Spectate[playerid] < 553)
- {
- PlayerInfo[playerid][pInt] = GetPVarInt(playerid, "SpecInt");
- PlayerInfo[playerid][pVW] = GetPVarInt(playerid, "SpecVW");
- PlayerInfo[playerid][pPos_x] = GetPVarFloat(playerid, "SpecPosX");
- PlayerInfo[playerid][pPos_y] = GetPVarFloat(playerid, "SpecPosY");
- PlayerInfo[playerid][pPos_z] = GetPVarFloat(playerid, "SpecPosZ");
- GettingSpectated[Spectate[playerid]] = 999;
- Spectate[playerid] = 999;
- }
- if(GetPVarInt(playerid, "gpsonoff") == 1) TextDrawDestroy(GPS[playerid]);
- if(PlayerBoxing[playerid] > 0)
- {
- if(Boxer1 == playerid)
- {
- if(IsPlayerConnected(Boxer2))
- {
- if(IsPlayerInRangeOfPoint(PlayerBoxing[Boxer2], 25.0, 765.952270, 4.167977, 1000.719238))
- {
- PlayerBoxing[Boxer2] = 0;
- SetPlayerPos(Boxer2, 765.952270, 4.167977, 1000.719238);
- SetPlayerInterior(Boxer2, 5);
- GameTextForPlayer(Boxer2, "~r~Match interrupted", 5000, 1);
- return 1;
- }
- }
- }
- else if(Boxer2 == playerid)
- {
- if(IsPlayerConnected(Boxer1))
- {
- if(IsPlayerInRangeOfPoint(PlayerBoxing[Boxer1],25.0,765.952270, 4.167977, 1000.719238))
- {
- PlayerBoxing[Boxer1] = 0;
- SetPlayerPos(Boxer1, 765.952270, 4.167977, 1000.719238);
- SetPlayerInterior(Boxer1, 5);
- GameTextForPlayer(Boxer1, "~r~Match interrupted", 5000, 1);
- return 1;
- }
- }
- }
- InRing = 0;
- RoundStarted = 0;
- Boxer1 = INVALID_PLAYER_ID;
- Boxer2 = INVALID_PLAYER_ID;
- }
- new string[128];
- switch (reason)
- {
- case 0:
- {
- format(string, sizeof(string), "%s has left the server (timeout).", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- if(PlayerCuffed[playerid] != 0)
- {
- strcpy(PlayerInfo[playerid][pPrisonedBy], "Server", 64);
- strcpy(PlayerInfo[playerid][pPrisonReason], "Logging while cuffed (timeout)", 64);
- PlayerInfo[playerid][pJailed] = 3;
- PlayerInfo[playerid][pJailTime] += 30*60;
- }
- }
- case 1:
- {
- format(string, sizeof(string), "%s has left the server (leaving).", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- if(PlayerCuffed[playerid] != 0)
- {
- strcpy(PlayerInfo[playerid][pPrisonedBy], "Server", 64);
- strcpy(PlayerInfo[playerid][pPrisonReason], "Logging while cuffed (leaving)", 64);
- PlayerInfo[playerid][pJailed] = 3;
- PlayerInfo[playerid][pJailTime] += 20*60;
- }
- }
- case 2:
- {
- format(string, sizeof(string), "%s has left the server (kicked/banned).", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
- }
- }
- for(new x; x < sizeof(EventKernel[EventStaff]); x++) {
- if(EventKernel[EventStaff][x] == playerid) {
- EventKernel[EventStaff][x] = 999;
- break;
- }
- }
- if(GetPVarInt(playerid, "EventToken") == 0 && !GetPVarType(playerid, "LoadingObjects"))
- {
- new Float: x, Float: y, Float: z;
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- PlayerInfo[playerid][pPos_x] = x;
- PlayerInfo[playerid][pPos_y] = y;
- PlayerInfo[playerid][pPos_z] = z;
- }
- else
- {
- PlayerInfo[playerid][pInt] = EventLastInt[playerid];
- PlayerInfo[playerid][pVW] = EventLastVW[playerid];
- PlayerInfo[playerid][pPos_r] = EventFloats[playerid][0];
- PlayerInfo[playerid][pPos_x] = EventFloats[playerid][1];
- PlayerInfo[playerid][pPos_y] = EventFloats[playerid][2];
- PlayerInfo[playerid][pPos_z] = EventFloats[playerid][3];
- }
- if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
- {
- if(IsPlayerConnected(TransportDriver[playerid]))
- {
- TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
- TransportTime[TransportDriver[playerid]] = 0;
- TransportCost[TransportDriver[playerid]] = 0;
- format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
- GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
- TransportDriver[playerid] = 999;
- }
- }
- if(GotHit[playerid] > 0)
- {
- if(GetChased[playerid] < 999)
- {
- if(IsPlayerConnected(GetChased[playerid]))
- {
- SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Your hit has left the server.");
- GoChase[GetChased[playerid]] = 999;
- }
- }
- }
- if(GoChase[playerid] < 999)
- {
- GetChased[GoChase[playerid]] = 999;
- GotHit[GoChase[playerid]] = 999;
- }
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- else if(TransportDuty[playerid] == 2)
- {
- BusDrivers -= 1;
- }
- if(PlayerInfo[playerid][pJob] == 11 || PlayerInfo[playerid][pJob2] == 11)
- {
- if(JobDuty[playerid] == 1) { Medics -= 1; }
- }
- if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pJob2] == 7)
- {
- if(JobDuty[playerid] == 1) { Mechanics -= 1; }
- }
-
- if(GetPVarType(playerid, "tabbedVW") != 0) {
- printf("[alt tab vw debug] %d | tabvw: %d | real vw: %d", PlayerInfo[playerid][pVW], GetPVarInt(playerid, "tabbedVW"), GetPlayerVirtualWorld(playerid));
- PlayerInfo[playerid][pVW] = GetPVarInt(playerid, "tabbedVW");
- } else PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- printf("[alt tab vw debug] tabvw: %d | tabvw type: %d", GetPVarInt(playerid, "tabbedVW"), GetPVarType(playerid, "tabbedVW"));
- if(GetPVarInt(playerid, "PBM") > 0) {
- PlayerInfo[playerid][pPos_x] = 1782.8229;
- PlayerInfo[playerid][pPos_y] = -1565.8177;
- PlayerInfo[playerid][pPos_z] = 13.3472;
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pVW] = 0;
- PlayerInfo[playerid][pPos_r] = 0;
- }
- OnPlayerStatsUpdate(playerid);
- return 1;
- }
- stock GetAdminRank(playerid)
- {
- new arank[64];
- switch(PlayerInfo[playerid][pAdmin])
- {
- case 8: arank = "{ff3366}Server Manager";
- case 7: arank = "{ae00a8}Management";
- case 6: arank = "{910055}Assistant Management";
- case 5: arank = "{d5010b}Head Adminstrator";
- case 4: arank = "{ffaa65}Senior Adminstrator";
- case 3: arank = "{fdee00}General Adminstrator";
- case 2: arank = "{44f037}Junior Adminstrator";
- case 1: arank = "Adminstrator";
- default: arank = "None";
- }
- if(PlayerInfo[playerid][pFormer] == 1)
- {
- arank = "{425aa0}Former Admin";
- }
- return arank;
- }
- forward Login(playerid);
- public Login(playerid) { PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/9ix25ufu54/vance_.mp3");
- // Main Menu Features.
- ShowMainMenuGUI(playerid);
- ClearChat(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- //SendClientMessage(playerid, COLOR_LIGHTRED, "[WARNING] {FFFFFF}This is a heavy Pvp RP environment and is purposely harsh.");
- SendClientMessage(playerid, -1, "{A9C4E4}Wag kalimutang e add ang {FFA500}Sleepless Roleplay 165.22.247.229:27715{A9C4E4} sa inyong favorite list!.");
-
- 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);
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(doesAccountExist(playername))
- {
- gPlayerAccount[playerid] = 1;
- ShowMainMenuDialog(playerid, 1);
- return 1;
- }
- else
- {
- gPlayerAccount[playerid] = 0;
- ShowMainMenuDialog(playerid, 2);
- return 1;
- }
- }
- stock PreloadAnims(playerid) {
- ApplyAnimation(playerid, "AIRPORT", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "Attractors", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BAR", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BASEBALL", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BD_FIRE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BEACH", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "benchpress", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BF_injection", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BIKED", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BIKEH", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BIKELEAP", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BIKES", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BIKEV", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BIKE_DBZ", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BMX", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BOMBER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BOX", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BSKTBALL", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BUDDY", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "BUS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CAMERA", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CAR", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CARRY", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CAR_CHAT", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CASINO", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CHAINSAW", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CHOPPA", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CLOTHES", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "COACH", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "COLT45", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "COP_AMBIENT", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "COP_DVBYZ", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CRACK", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "CRIB", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DAM_JUMP", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DANCING", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DEALER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DILDO", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DODGE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DOZER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "DRIVEBYS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FAT", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FIGHT_B", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FIGHT_C", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FIGHT_D", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FIGHT_E", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FINALE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FINALE2", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FLAME", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "Flowers", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "FOOD", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "Freeweights", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GANGS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GHANDS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GHETTO_DB", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "goggles", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GRAFFITI", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GRAVEYARD", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GRENADE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "GYMNASIUM", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "HAIRCUTS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "HEIST9", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "INT_HOUSE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "INT_OFFICE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "INT_SHOP", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "JST_BUISNESS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "KART", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "KISSING", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "KNIFE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "LAPDAN1", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "LAPDAN2", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "LAPDAN3", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "LOWRIDER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "MD_CHASE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "MD_END", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "MEDIC", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "MISC", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "MTB", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "MUSCULAR", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "NEVADA", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "ON_LOOKERS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "OTB", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "PARACHUTE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "PARK", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "PAULNMAC", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "ped", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "PLAYER_DVBYS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "PLAYIDLES", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "POLICE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "POOL", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "POOR", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "PYTHON", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "QUAD", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "QUAD_DBZ", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "RAPPING", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "RIFLE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "RIOT", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "ROB_BANK", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "RUSTLER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "RYDER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SCRATCHING", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SHAMAL", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SHOP", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SHOTGUN", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SILENCED", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SKATE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SMOKING", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SNIPER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SPRAYCAN", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "STRIP", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SUNBATHE", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SWAT", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SWEET", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SWIM", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "SWORD", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "TANK", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "TATTOOS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "TEC", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "TRAIN", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "TRUCK", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "UZI", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "VAN", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "VENDING", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "VORTEX", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "WAYFARER", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "WEAPONS", "null", 0.0, 0, 0, 0, 0, 0);
- ApplyAnimation(playerid, "WUZI", "null", 0.0, 0, 0, 0, 0, 0);
- return 1;
- }
- stock PreloadAnimLib(playerid, animlib[]) {
- return ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
- }
- public OnPlayerSpawn(playerid) {
- PreloadAnims(playerid);
- GangZoneShowForPlayer(playerid, TurfsInfo[0][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[1][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[2][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[3][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[4][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[5][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[6][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[7][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[8][TurfID], 0xFFFFFF77);
- GangZoneShowForPlayer(playerid, TurfsInfo[9][TurfID], 0xFFFFFF77);
- TextDrawShowForPlayer(playerid, Text0);
- if(!gPlayerLogged[playerid])
- {// The player doesn't actually spawn before logging in, this is just to get rid of the annoying "<<", ">>" and "Spawn" buttons in the login/registration screen.
- TogglePlayerControllable(playerid, 0);
- return 1;
- }
- if(InsideShamal[playerid] != INVALID_VEHICLE_ID)
- {
- SetPlayerPos(playerid, GetPVarFloat(playerid, "air_Xpos"), GetPVarFloat(playerid, "air_Ypos"), GetPVarFloat(playerid, "air_Zpos"));
- SetPlayerFacingAngle(playerid, GetPVarFloat(playerid, "air_Rpos"));
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "air_HP"));
- SetPlayerArmourEx(playerid, GetPVarFloat(playerid, "air_Arm"));
- SetPlayerWeaponsEx(playerid);
- SetPlayerToTeamColor(playerid);
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- DeletePVar(playerid, "air_Xpos");
- DeletePVar(playerid, "air_Ypos");
- DeletePVar(playerid, "air_Zpos");
- DeletePVar(playerid, "air_Rpos");
- DeletePVar(playerid, "air_HP");
- DeletePVar(playerid, "air_Arm");
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid, InsideShamal[playerid]);
- return SetPlayerInterior(playerid, 1);
- }
- Streamer_Update(playerid);
- SyncPlayerTime(playerid);
- if(IsPlayerNPC(playerid)) return 1;
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
- DeletePVar(playerid, "STD");
- SetCameraBehindPlayer(playerid);
- SetPlayerSpawn(playerid);
- SetPlayerWeapons(playerid);
- SetPlayerToTeamColor(playerid);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason) {
- new
- string[128];
- SetPVarInt(playerid, "HouseID", -1);
- SetPVarInt(playerid, "DoorID", 99999);
- if(PlayerInfo[playerid][pGang] < 255)
- {
- FamilyInfo[PlayerInfo[playerid][pGang]][FamilyInTurf]--;
- }
-
- if(IsPlayerConnected(killerid)) {
-
- new
- hour,
- minute,
- second,
- weaponname[32];
- gettime(hour,minute,second);
- FixHour(hour);
- hour = shifthour;
- GetWeaponName(reason, weaponname, sizeof(weaponname));
- if(GetPVarInt(playerid, "PBM") > 0 && GetPVarInt(killerid, "PBM") > 0) {
- SetPVarInt(killerid, "PBMK", GetPVarInt(killerid, "PBMK")+5);
- SetPVarInt(playerid, "PBMD", GetPVarInt(playerid, "PBMD")+5);
- format(string, sizeof(string), "%s has killed %s, with a %s in the paintball game.", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
- foreach(Player, i) {
- if(GetPVarInt(playerid, "PBM") == GetPVarInt(i, "PBM"))
- SendClientMessage(i, COLOR_RED, string);
- }
- format(PlayerInfo[playerid][pKillLog9], 128, "%s", PlayerInfo[playerid][pKillLog8]);
- format(PlayerInfo[playerid][pKillLog8], 128, "%s", PlayerInfo[playerid][pKillLog7]);
- format(PlayerInfo[playerid][pKillLog7], 128, "%s", PlayerInfo[playerid][pKillLog6]);
- format(PlayerInfo[playerid][pKillLog6], 128, "%s", PlayerInfo[playerid][pKillLog5]);
- format(PlayerInfo[playerid][pKillLog5], 128, "%s", PlayerInfo[playerid][pKillLog4]);
- format(PlayerInfo[playerid][pKillLog4], 128, "%s", PlayerInfo[playerid][pKillLog3]);
- format(PlayerInfo[playerid][pKillLog3], 128, "%s", PlayerInfo[playerid][pKillLog2]);
- format(PlayerInfo[playerid][pKillLog2], 128, "%s", PlayerInfo[playerid][pKillLog1]);
- format(PlayerInfo[playerid][pKillLog1], 128, "%s", PlayerInfo[playerid][pKillLog0]);
- format(PlayerInfo[playerid][pKillLog0], 128, "(%d:%d:%d) %s killed me with %s (in paintball)", hour,minute,second,GetPlayerNameEx(killerid), weaponname);
- format(PlayerInfo[killerid][pKillLog9], 128, "%s", PlayerInfo[killerid][pKillLog8]);
- format(PlayerInfo[killerid][pKillLog8], 128, "%s", PlayerInfo[killerid][pKillLog7]);
- format(PlayerInfo[killerid][pKillLog7], 128, "%s", PlayerInfo[killerid][pKillLog6]);
- format(PlayerInfo[killerid][pKillLog6], 128, "%s", PlayerInfo[killerid][pKillLog5]);
- format(PlayerInfo[killerid][pKillLog5], 128, "%s", PlayerInfo[killerid][pKillLog4]);
- format(PlayerInfo[killerid][pKillLog4], 128, "%s", PlayerInfo[killerid][pKillLog3]);
- format(PlayerInfo[killerid][pKillLog3], 128, "%s", PlayerInfo[killerid][pKillLog2]);
- format(PlayerInfo[killerid][pKillLog2], 128, "%s", PlayerInfo[killerid][pKillLog1]);
- format(PlayerInfo[killerid][pKillLog1], 128, "%s", PlayerInfo[killerid][pKillLog0]);
- format(PlayerInfo[killerid][pKillLog0], 128, "(%d:%d:%d) killed %s with %s (in paintball)", hour,minute,second,GetPlayerNameEx(playerid), weaponname);
- } else {
- format(PlayerInfo[playerid][pKillLog9], 128, "%s", PlayerInfo[playerid][pKillLog8]);
- format(PlayerInfo[playerid][pKillLog8], 128, "%s", PlayerInfo[playerid][pKillLog7]);
- format(PlayerInfo[playerid][pKillLog7], 128, "%s", PlayerInfo[playerid][pKillLog6]);
- format(PlayerInfo[playerid][pKillLog6], 128, "%s", PlayerInfo[playerid][pKillLog5]);
- format(PlayerInfo[playerid][pKillLog5], 128, "%s", PlayerInfo[playerid][pKillLog4]);
- format(PlayerInfo[playerid][pKillLog4], 128, "%s", PlayerInfo[playerid][pKillLog3]);
- format(PlayerInfo[playerid][pKillLog3], 128, "%s", PlayerInfo[playerid][pKillLog2]);
- format(PlayerInfo[playerid][pKillLog2], 128, "%s", PlayerInfo[playerid][pKillLog1]);
- format(PlayerInfo[playerid][pKillLog1], 128, "%s", PlayerInfo[playerid][pKillLog0]);
- format(PlayerInfo[playerid][pKillLog0], 128, "(%d:%d:%d) %s killed me with %s", hour,minute,second,GetPlayerNameEx(killerid), weaponname);
- format(PlayerInfo[killerid][pKillLog9], 128, "%s", PlayerInfo[killerid][pKillLog8]);
- format(PlayerInfo[killerid][pKillLog8], 128, "%s", PlayerInfo[killerid][pKillLog7]);
- format(PlayerInfo[killerid][pKillLog7], 128, "%s", PlayerInfo[killerid][pKillLog6]);
- format(PlayerInfo[killerid][pKillLog6], 128, "%s", PlayerInfo[killerid][pKillLog5]);
- format(PlayerInfo[killerid][pKillLog5], 128, "%s", PlayerInfo[killerid][pKillLog4]);
- format(PlayerInfo[killerid][pKillLog4], 128, "%s", PlayerInfo[killerid][pKillLog3]);
- format(PlayerInfo[killerid][pKillLog3], 128, "%s", PlayerInfo[killerid][pKillLog2]);
- format(PlayerInfo[killerid][pKillLog2], 128, "%s", PlayerInfo[killerid][pKillLog1]);
- format(PlayerInfo[killerid][pKillLog1], 128, "%s", PlayerInfo[killerid][pKillLog0]);
- if(JustSuicided[playerid]) {
- JustSuicided[playerid] = 0;
- format(PlayerInfo[killerid][pKillLog0], 128, "(%d:%d:%d) %s commited suicide", hour,minute,second, GetPlayerNameEx(killerid));
- } else {
- format(PlayerInfo[killerid][pKillLog0], 128, "(%d:%d:%d) %s killed %s with %s", hour,minute,second, GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), weaponname);
- }
- }
- } else {
- if(GetPVarInt(playerid, "PBM") > 0) {
- format(string, sizeof(string), "%s has died.", GetPlayerNameEx(playerid));
- foreach(Player, i) {
- if(GetPVarInt(playerid, "PBM") == GetPVarInt(i, "PBM"))
- SendClientMessage(i, COLOR_RED, string);
- }
- }
- }
-
- if(killerid != 501)
- {
- if(IsPlayerConnected(killerid))
- {
- format(string, sizeof(string), "[KILL]: [%s] has killed [%s] with a [%s].", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid), GunNames[reason]);
- ABroadCast(COLOR_LIGHTRED,string, 1);
- }
- }
- if(GetPVarType(playerid, "SpecOff"))
- {
- SpawnPlayer(playerid);
- return 1;
- }
- if(Dueling[playerid] == killerid && Dueling[killerid] == playerid)
- {
- format(string, sizeof(string), "AdmCmd: %s has won the duel against %s.", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid));
- SetPlayerSpawn(killerid);
- ABroadCast(COLOR_LIGHTRED, string, 1);
- return 1;
- }
- if(Hunted[playerid] == 1)
- {
- format(string, sizeof(string), "Father, please forgive %s for his sins as he killed the hunted %s.", GetPlayerNameEx(killerid), GetPlayerNameEx(playerid));
- SendClientMessageToAll(COLOR_YELLOW, string);
- RandomPrize(killerid);
- return 1;
- }
-
- pTazer[playerid] = 0;
- InsideShamal[playerid] = INVALID_VEHICLE_ID;
- DeletePVar(playerid, "SpeedRadar");
- DeletePVar(playerid, "UsingSprunk");
- DeletePVar(playerid, "usingfirstaid");
- KillTimer(GetPVarInt(playerid, "firstaid5"));
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You appear to be stuck in limbo, medics have failed to revive you.");
- KillEMSQueue(playerid);
- ResetPlayerWeaponsEx(playerid);
- new Float:X, Float:Y, Float:Z;
- new Float:health;
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-5);
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z+5);
- return 1;
- }
- // Determine if the player is in onplayerdeath
- SetPVarInt(playerid, "OPD", 1);
- if(GetPVarInt(playerid, "MovingStretcher") != -1)
- {
- KillTimer(GetPVarInt(playerid, "TickEMSMove"));
- DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher");
- SetPVarInt(playerid, "MovingStretcher", -1);
- }
- new caller = Mobile[playerid];
- if(IsPlayerConnected(Mobile[playerid]))
- {
- SendClientMessage(caller, COLOR_GRAD2, "The line went dead.");
- format(string, sizeof(string), "* %s puts away their cellphone.", GetPlayerNameEx(caller));
- ProxDetector(30.0, caller, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CellTime[caller] = 0;
- Mobile[caller] = INVALID_PLAYER_ID;
- }
- Mobile[playerid] = INVALID_PLAYER_ID;
- CellTime[playerid] = 0;
- foreach(Player, i)
- {
- if(EMSAccepted[i] == playerid)
- {
- EMSAccepted[i] = 999;
- GameTextForPlayer(i, "~w~EMS Caller~n~~r~Has Died", 5000, 1);
- EMSCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- if(GetPVarInt(playerid, "EventToken") == 0)
- {
- if(GetPVarInt(playerid, "PBM") < 1)
- {
- if(PlayerInfo[playerid][pJailTime] == 0)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], X, Y, Z, 1.0, -1, -1, -1, -1, -1, -1);
- if(AdminDuty[playerid] != 1)
- {
- SetPVarInt(playerid, "Injured", 1);
- new Float:mX, Float:mY, Float:mZ;
- GetPlayerPos(playerid, mX, mY, mZ);
- SetPVarFloat(playerid, "MedicX", mX);
- SetPVarFloat(playerid, "MedicY", mY);
- SetPVarFloat(playerid, "MedicZ", mZ);
- SetPVarInt(playerid, "MedicVW", GetPlayerVirtualWorld(playerid));
- SetPVarInt(playerid, "MedicInt", GetPlayerInterior(playerid));
- }
- else
- {
- SetPVarInt(playerid, "AdminDeathVW", GetPlayerVirtualWorld(playerid));
- SetPVarInt(playerid, "AdminDeathInt", GetPlayerInterior(playerid));
- SpawnPlayer(playerid);
- }
- }
- }
- }
- if(GetPVarInt(playerid, "Injured") == 0)
- {
- if(GetPVarInt(playerid, "EventToken") >= 1 || GetPVarInt(playerid, "PBM") > 0)
- {
- ResetPlayerWeapons(playerid);
- }
- else
- {
- ResetPlayerWeaponsEx(playerid);
- }
- }
- if(PlayerInfo[killerid][pAdmin] < 6)
- {
- if(reason == 49)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just car rammed %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 1);
- //print(string);
- }
- if(reason == 50)
- {
- if(IsAHelicopter(GetPlayerVehicleID(killerid)))
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just helibladed %s (ID %d).", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 1);
- //print(string);
- }
- else
- {
- if(GetPlayerWeapon(killerid) != 32 || GetPlayerWeapon(killerid) != 28 || GetPlayerWeapon(killerid) != 29)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just carparked %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 1);
- //print(string);
- }
- else
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just drivershot %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 1);
- //print(string);
- }
- }
- }
- }
- if(gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
- {
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- }
- ClearCrime(playerid);
- if(PlayerInfo[playerid][pHeadValue] >= 1) {
- if(IsPlayerConnected(killerid)) {
- if(GoChase[killerid] == playerid) {
- new
- killer[MAX_PLAYER_NAME],
- name2[MAX_PLAYER_NAME],
- name[MAX_PLAYER_NAME];
- new takemoney = PlayerInfo[playerid][pHeadValue] / 4 * 2;
- name = GetPlayerNameEx(playerid);
- killer = GetPlayerNameEx(killerid);
- GivePlayerCash(killerid, takemoney);
- GivePlayerCash(playerid, -takemoney);
- format(string,sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",killer,name,PlayerInfo[playerid][pHeadValue] / 4 * 2);
- SendFamilyMessage(4, COLOR_YELLOW, string);
- format(string,sizeof(string),"You have been critically injured by a hitman and lost $%d.",takemoney);
- ResetPlayerWeaponsEx(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- foreach(Player, i) {
- name2 = GetPlayerNameEx(i);
- if(!strcmp(PlayerInfo[playerid][pContractBy], name2, true)) {
- if(!IsPlayerStreamedIn(i, playerid)) {
- format(string, sizeof(string), "SMS: %s has been eliminated, Sender: MOLE (555)", name);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- }
- PlayerInfo[playerid][pHeadValue] = 0;
- strcpy(PlayerInfo[playerid][pContractBy], "Nobody", 64);
- strcpy(PlayerInfo[playerid][pContractDetail], "None", 64);
- PlayerInfo[killerid][pCHits] += 1;
- GotHit[playerid] = 0;
- GetChased[playerid] = 999;
- GoChase[killerid] = 999;
- }
- }
- }
- if(IsPlayerConnected(killerid)) {
- if(GoChase[playerid] == killerid) {
- new killer[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
- new takemoney = PlayerInfo[playerid][pHeadValue] / 4 * 2;
- GivePlayerCash(killerid, takemoney);
- name = GetPlayerNameEx(playerid);
- killer = GetPlayerNameEx(killerid);
- format(string,128,"Hitman %s has failed the contract on %s and lost $%d.",name,killer,PlayerInfo[killerid][pHeadValue] / 4 * 2);
- SendFamilyMessage(4, COLOR_YELLOW, string);
- GivePlayerCash(playerid, -takemoney);
- format(string,128,"You have just killed a hitman and gained $%d, removing the contact on your head.",PlayerInfo[killerid][pHeadValue] / 4 * 2);
- SendClientMessage(killerid, COLOR_YELLOW, string);
- foreach(Player, i) {
- name2 = GetPlayerNameEx(i);
- if(!strcmp(PlayerInfo[killerid][pContractBy], name2, true)) {
- if(!IsPlayerStreamedIn(i, killerid)) {
- format(string, sizeof(string), "SMS: We failed with %s, you can try place another hit on the target, Sender: MOLE (555)", killer);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- }
- PlayerInfo[killerid][pHeadValue] = 0;
- strcpy(PlayerInfo[killerid][pContractBy], "Nobody", 64);
- strcpy(PlayerInfo[killerid][pContractDetail], "None", 64);
- PlayerInfo[playerid][pFHits] += 1;
- GotHit[playerid] = 0;
- GetChased[killerid] = 999;
- GoChase[playerid] = 999;
- }
- }
- killerid = INVALID_PLAYER_ID;
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- return 1;
- }
- forward DelayedVehHealth(vehicleid);
- public DelayedVehHealth(vehicleid) {
- SetVehicleHealth(vehicleid, 2500);
- return 1;
- }
- public OnVehicleSpawn(vehicleid) {
- VehicleStatus{vehicleid} = 0;
- TruckContents[vehicleid] = 0;
- VehicleRadioStation[vehicleid] = 0;
- for(new i = 0; i < sizeof(FamilyInfo); i++) {
- for(new d = 0 ; d < MAX_GANG_VEHICLES; d++) {
- if(FamilyVehicleInfo[i][d][fvLocked] != 0 && FamilyVehicleInfo[i][d][fvLock] > 0)
- LockGangVehicle(i, FamilyVehicleInfo[i][d][fvId], FamilyVehicleInfo[i][d][fvLock]);
- }
- }
- switch(GetVehicleModel(vehicleid)) {
- case 427, 428, 432, 601, 528: SetTimerEx("DelayedVehHealth", 1000, false, "d", vehicleid);
- }
- new v;
- foreach(Player, i)
- {
- v = GetPlayerVehicle(i, vehicleid);
- if(v != -1)
- {
- if(PlayerVehicleInfo[i][v][pvId] == vehicleid && GetVehicleModel(vehicleid) != PlayerVehicleInfo[i][v][pvModelId])
- {
- DestroyVehicle(vehicleid);
- VehicleRadioStation[vehicleid] = 0;
- PlayerVehicleInfo[i][v][pvId] = CreateVehicle(PlayerVehicleInfo[i][v][pvModelId], PlayerVehicleInfo[i][v][pvPosX], PlayerVehicleInfo[i][v][pvPosY], PlayerVehicleInfo[i][v][pvPosZ], PlayerVehicleInfo[i][v][pvPosAngle],PlayerVehicleInfo[i][v][pvColor1], PlayerVehicleInfo[i][v][pvColor2], -1);
- if(PlayerVehicleInfo[i][v][pvLocked] == 1) LockPlayerVehicle(i, PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvLock]);
- ChangeVehiclePaintjob(PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvPaintJob]);
- ChangeVehicleColor(PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvColor1], PlayerVehicleInfo[i][v][pvColor2]);
- for(new m = 0; m < MAX_MODS; m++)
- {
- if(PlayerVehicleInfo[i][v][pvMods][m] >= 1000 && PlayerVehicleInfo[i][v][pvMods][m] <= 1193)
- {
- if(InvalidModCheck(GetVehicleModel(vehicleid), PlayerVehicleInfo[i][v][pvMods][m]))
- {
- AddVehicleComponent(PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvMods][m]);
- }
- else
- {
- //printf("Removing invalid mod %d from %d of %s", PlayerVehicleInfo[i][v][pvMods][m], GetVehicleModel(vehicleid), GetPlayerNameEx(i));
- PlayerVehicleInfo[i][v][pvMods][m] = 0;
- }
- }
- }
- }
- else
- {
- ChangeVehiclePaintjob(vehicleid, PlayerVehicleInfo[i][v][pvPaintJob]);
- ChangeVehicleColor(vehicleid, PlayerVehicleInfo[i][v][pvColor1], PlayerVehicleInfo[i][v][pvColor2]);
- for(new m = 0; m < MAX_MODS; m++)
- {
- if(PlayerVehicleInfo[i][v][pvMods][m] >= 1000 && PlayerVehicleInfo[i][v][pvMods][m] <= 1193)
- {
- if(InvalidModCheck(GetVehicleModel(vehicleid), PlayerVehicleInfo[i][v][pvMods][m]))
- {
- AddVehicleComponent(PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvMods][m]);
- }
- else
- {
- //printf("Removing invalid mod %d from %d of %s", PlayerVehicleInfo[i][v][pvMods][m], GetVehicleModel(vehicleid), GetPlayerNameEx(i));
- PlayerVehicleInfo[i][v][pvMods][m] = 0;
- }
- }
- }
- if(PlayerVehicleInfo[i][v][pvLocked] == 1) LockPlayerVehicle(i, PlayerVehicleInfo[i][v][pvId], PlayerVehicleInfo[i][v][pvLock]);
- }
- new string[128];
- format(string,sizeof(string),"Your %s has been sent to the location at which you last parked it.",GetVehicleName(vehicleid));
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- }
- if(LockStatus[vehicleid])
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pLockCar] == vehicleid)
- {
- PlayerInfo[i][pLockCar] = INVALID_VEHICLE_ID;
- }
- }
- }
- if(VehicleBomb{vehicleid} == 1)
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pFaction] == 4 || PlayerInfo[i][pLeader] == 4)
- {
- if(PlacedVehicleBomb[i] == vehicleid)
- {
- VehicleBomb{vehicleid} = 0;
- PlacedVehicleBomb[i] = INVALID_VEHICLE_ID;
- PickUpC4(i);
- PlayerInfo[i][pC4Used] = 0;
- PlayerInfo[i][pC4Get] = 1;
- }
- }
- }
- }
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- VehicleStatus{vehicleid} = 1;
- TruckContents[vehicleid] = 0;
- VehicleRadioStation[vehicleid] = 0;
- foreach(Player, i)
- {
- if(InsideShamal[i] == vehicleid)
- {
- new Float:X, Float:Y, Float:Z;
- new Float:XB, Float:YB, Float:ZB;
- GetVehiclePos(InsideShamal[i], X, Y, Z);
- SetPlayerPos(i, X-4, Y-2.3, Z);
- GetVehiclePos(InsideShamal[i], XB, YB, ZB);
- if(ZB > 50.0)
- {
- PlayerInfo[i][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(i, 46, 60000);
- }
- PlayerInfo[i][pVW] = 0;
- SetPlayerVirtualWorld(i, 0);
- PlayerInfo[i][pInt] = 0;
- SetPlayerInterior(i, 0);
- SendClientMessage(i, COLOR_WHITE, "The airplane has been damaged, you can't be inside of it!");
- InsideShamal[i] = INVALID_VEHICLE_ID;
- }
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(gPlayerLogged[playerid] != 1)
- {
- SendClientMessage(playerid, COLOR_RED, "You're not logged in.");
- return 0;
- }
- if(PlayerInfo[playerid][pTut] == 0)
- {
- return 0;
- }
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new string[128];
- playerLastTyped[playerid] = 0;
- if(TextSpamUnmute[playerid] != 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're muted from submitting text right now.");
- return 0;
- }
- }
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- TextSpamTimes[playerid]++;
- if(TextSpamTimes[playerid] == 5)
- {
- TextSpamTimes[playerid] = 0;
- TextSpamUnmute[playerid] = 10;
- SendClientMessage(playerid, COLOR_YELLOW, "You have been muted automatically for spamming. Please wait 10 seconds and try again.");
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION);
- return 0;
- }
- }
- if(strfind(text, "|", true) != -1)
- {
- SendClientMessage(playerid, COLOR_RED, "You can't use the '|' character in text.");
- return 0;
- }
- if(PlayerInfo[playerid][pAdmin] < 4)
- {
- if(strfind(text, ":", true) != -1)
- {
- new
- i_numcount,
- i_period,
- i_pos;
- while(text[i_pos]) {
- if('0' <= text[i_pos] <= '9') i_numcount++;
- else if(text[i_pos] == '.') i_period++;
- i_pos++;
- }
- if(i_numcount >= 8 && i_period >= 3) {
- format(string,sizeof(string),"Warning: %s may be server advertising: '%s'.", GetPlayerNameEx(playerid),text);
- ABroadCast(COLOR_PINK, string, 2);
- Log("logs/hack.log", string);
- return 0;
- }
- }
- }
- if(TalkingLive[playerid] != INVALID_PLAYER_ID) {
- if(PlayerInfo[playerid][pFaction] == 9 || PlayerInfo[playerid][pLeader] == 9) {
- format(string, sizeof(string), "Live News Reporter %s: %s", GetPlayerNameEx(playerid), text);
- ICNews(COLOR_LIGHTGREEN,string);
- } else {
- format(string, sizeof(string), "Live Interview Guest %s: %s", GetPlayerNameEx(playerid), text);
- ICNews(COLOR_LIGHTGREEN,string);
- }
- return 0;
- }
- if(GetPVarInt(playerid, "ChoosingDrugs") == 1)
- {
- if(strcmp("pot", text, true) == 0)
- {
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && strcmp(Points[i][Name], "Drug Factory", true) == 0)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Drug Factory!");
- return 0;
- }
- if(PlayerInfo[playerid][pCrates])
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold any more Drug Crates!");
- SetPVarInt(playerid, "ChoosingDrugs", 0);
- return 0;
- }
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 0;
- }
- if(GetPlayerCash(playerid) >= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You bought some Drug Crates for $100.");
- GivePlayerCash(playerid, -100);
- PlayerInfo[playerid][pCrates] = 1;
- SetPVarInt(playerid, "CrateDeliver", 1);
- SetPVarInt(playerid, "ChoosingDrugs", 0);
- SetPVarInt(playerid, "tpDrugRunTimer", 45);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPDRUGRUNTIMER);
- SetPlayerCheckpoint(playerid, 2166.3772,-1675.3829,15.0859, 3);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] += 50;
- }
- }
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford the $100!");
- SetPVarInt(playerid, "ChoosingDrugs", 0);
- return 0;
- }
- }
- else if(strcmp("crack", text, true) == 0)
- {
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && strcmp(Points[i][Name], "Drug Factory", true) == 0)
- {
- mypoint = i;
- }
- }
- if(mypoint == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "You're not at the Drug Factory!");
- return 0;
- }
- if(PlayerInfo[playerid][pCrates])
- {
- SendClientMessage(playerid, COLOR_GREY, " You can't hold any more drug crates!");
- SetPVarInt(playerid, "ChoosingDrugs", 0);
- return 0;
- }
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
- return 0;
- }
- if(GetPlayerCash(playerid) >= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You bought some drug crates for $100.");
- GivePlayerCash(playerid, -100);
- PlayerInfo[playerid][pCrates] = 1;
- SetPVarInt(playerid, "CrateDeliver", 2);
- SetPVarInt(playerid, "ChoosingDrugs", 0);
- SetPVarInt(playerid, "tpDrugRunTimer", 45);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPDRUGRUNTIMER);
- SetPlayerCheckpoint(playerid, 2354.2808,-1169.2959,28.0066, 3);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] += 50;
- }
- }
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY," You can't afford the $100!");
- SetPVarInt(playerid, "ChoosingDrugs", 0);
- return 0;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? Type 'crack' or 'pot'.");
- return 0;
- }
- }
- if(MarriageCeremoney[playerid] > 0)
- {
- if(strcmp("yes", text, true) == 0)
- {
- if(GotProposedBy[playerid] < 999)
- {
- if(IsPlayerConnected(GotProposedBy[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(GotProposedBy[playerid], giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "Priest: %s do you take %s as your lovely wife? (Type 'yes' - anything else will reject the marriage).", giveplayer,sendername);
- SendClientMessage(GotProposedBy[playerid], COLOR_WHITE, string);
- MarriageCeremoney[GotProposedBy[playerid]] = 1;
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0; // Yeah... no more "YES DILDOS SEX RAPE LOL" broadcast to the whole server
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- }
- else if(ProposedTo[playerid] < 999)
- {
- if(IsPlayerConnected(ProposedTo[playerid]))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(ProposedTo[playerid], giveplayer, sizeof(giveplayer));
- if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now... Husband & Wife, you may kiss the bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now... Husband & Wife, you may kiss the groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new lovely couple! %s & %s have been married.", sendername, giveplayer);
- SendClientMessageToAllEx(COLOR_WHITE, string);
- }
- else if(PlayerInfo[playerid][pSex] == 1 && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now... Husband & Husband, you may kiss the bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now... Husband & Husband, you may kiss the groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new gay couple! %s & %s have been married.", sendername, giveplayer);
- SendClientMessageToAllEx(COLOR_WHITE, string);
- }
- else if(PlayerInfo[playerid][pSex] == 2 && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
- {
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now... Wife & Wife, you may kiss the Bride.", sendername, giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "Priest: %s and %s i pronounce you now... Wife & Wife, you may kiss the Groom.", giveplayer, sendername);
- SendClientMessage(ProposedTo[playerid], COLOR_WHITE, string);
- format(string, sizeof(string), "Marriage News: We have a new lesbian couple! %s & %s have been married.", sendername, giveplayer);
- SendClientMessageToAllEx(COLOR_WHITE, string);
- }
- //MarriageCeremoney[ProposedTo[playerid]] = 1;
- MarriageCeremoney[ProposedTo[playerid]] = 0;
- MarriageCeremoney[playerid] = 0;
- format(PlayerInfo[ProposedTo[playerid]][pMarriedTo], MAX_PLAYER_NAME, "%s", sendername);
- format(PlayerInfo[playerid][pMarriedTo], MAX_PLAYER_NAME, "%s", giveplayer);
- GivePlayerCash(playerid, - 10000);
- PlayerInfo[playerid][pMarried] = 1;
- PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
- ProposedTo[playerid] = 999;
- MarriageCeremoney[playerid] = 0;
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- ProposedTo[playerid] = 999;
- return 0;
- }
- }
- }
- else
- {
- if(GotProposedBy[playerid] < 999)
- {
- if(IsPlayerConnected(GotProposedBy[playerid]))
- {
- format(string, sizeof(string), "* You didn't want to marry %s, no 'yes' was said.", GetPlayerNameEx(GotProposedBy[playerid]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s did't want to marry you, no 'yes' was said.",GetPlayerNameEx(playerid));
- SendClientMessage(GotProposedBy[playerid], COLOR_YELLOW, string);
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- GotProposedBy[playerid] = 999;
- return 0;
- }
- }
- else if(ProposedTo[playerid] < 999)
- {
- if(IsPlayerConnected(ProposedTo[playerid]))
- {
- format(string, sizeof(string), "* You didn't want to marry %s, no 'yes' was said.",GetPlayerNameEx(ProposedTo[playerid]));
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "* %s did't want to marry you, no 'yes' was said.",GetPlayerNameEx(playerid));
- SendClientMessage(ProposedTo[playerid], COLOR_YELLOW, string);
- return 0;
- }
- else
- {
- MarriageCeremoney[playerid] = 0;
- ProposedTo[playerid] = 999;
- return 0;
- }
- }
- }
- return 0;
- }
- if(CallLawyer[playerid] == 111)
- {
- if(strcmp("yes", text, true) == 0)
- {
- format(string, sizeof(string), "** %s is in jail, and needs a lawyer. Go to the Police Station.", GetPlayerNameEx(playerid));
- SendJobMessage(2, TEAM_AZTECAS_COLOR, string);
- SendClientMessage(playerid, COLOR_LIGHTRED, "A message has been sent to all available lawyers, please wait.");
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "There is no lawyer available to you anymore. Jail time has started.");
- WantLawyer[playerid] = 0;
- CallLawyer[playerid] = 0;
- return 0;
- }
- }
- if(Mobile[playerid] != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "(cellphone) %s says: %s", GetPlayerNameEx(playerid), text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- if(Mobile[playerid] == 914)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Sorry, I don't understand?");
- return 0;
- }
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: We have alerted all units in the area.");
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Thank you for reporting this incident");
- format(string, sizeof(string), "Dispatch: All Units IA: Caller: %s",GetPlayerNameEx(playerid));
- SendFamilyMessage(3, COLOR_TWPINK, string);
- format(string, sizeof(string), "Dispatch: Incident: %s",text);
- SendFamilyMessage(3, COLOR_TWPINK, string);
- CalledMedics[playerid] = 1;
- MedicsCallTime[playerid] = 60;
- ShowPlayerBeaconForMedics(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 9);
- return 0;
- }
- if(Mobile[playerid] == 913)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry, I don't understand?");
- return 0;
- }
- if(strcmp("no", text, true) == 0)
- {
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: We have alerted all units in the area.");
- SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime.");
- new
- szZone[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, szZone, MAX_ZONE_NAME);
- format(string, sizeof(string), "HQ: All Units APB: Reporter: %s (in %s)",GetPlayerNameEx(playerid), szZone);
- SendFamilyMessage(1, COLOR_DBLUE, string);
- SendFamilyMessage(2, COLOR_DBLUE, string);
- format(string, sizeof(string), "HQ: Crime: %s, Suspect: Unknown",PlayerCrime[playerid][pAccusing]);
- SendFamilyMessage(1, COLOR_DBLUE, string);
- SendFamilyMessage(2, COLOR_DBLUE, string);
- CalledCops[playerid] = 1;
- CopsCallTime[playerid] = 60;
- ShowPlayerBeaconForCops(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 9);
- return 0;
- }
- new badguy = ReturnUser(text);
- if(IsPlayerConnected(badguy))
- {
- if(badguy != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[badguy][pWantedLevel] > 0)
- {
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: Units are already assigned to that case...");
- SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime.");
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 0;
- }
- if(badguy == playerid)
- {
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: Don't fool around. This is an emergency line.");
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- return 0;
- }
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: We have alerted all units in the area.");
- SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime.");
- new
- szZone[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, szZone, MAX_ZONE_NAME);
- format(string, sizeof(string), "HQ: All Units APB: Reporter: %s (in %s)",GetPlayerNameEx(playerid), szZone);
- SendFamilyMessage(1, COLOR_DBLUE, string);
- SendFamilyMessage(2, COLOR_DBLUE, string);
- format(string, sizeof(string), "HQ: Crime: %s, Suspect: %s",PlayerCrime[playerid][pAccusing], GetPlayerNameEx(badguy));
- SendFamilyMessage(1, COLOR_DBLUE, string);
- SendFamilyMessage(2, COLOR_DBLUE, string);
- CalledCops[playerid] = 1;
- CopsCallTime[playerid] = 60;
- ShowPlayerBeaconForCops(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, " They hung up...");
- Mobile[playerid] = INVALID_PLAYER_ID;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 9);
- return 0;
- }
- return 0;
- }
- else
- {
- format(string, sizeof(string), "Police HQ: I have no information on %s, are you sure that's the correct name?",text);
- SendClientMessage(playerid, COLOR_DBLUE, string);
- return 0;
- }
- }
- if(Mobile[playerid] == 912)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry, I don't understand?");
- return 0;
- }
- strmid(PlayerCrime[playerid][pAccusing], text, 0, strlen(text), 255);
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: If you know the assailant's name or part of it say it now or just say no.");
- Mobile[playerid] = 913;
- return 0;
- }
- if(Mobile[playerid] == 911)
- {
- if(!text[0])
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry, I don't understand - police or paramedic?");
- return 0;
- }
- else if(strcmp("police", text, true) == 0)
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to police headquarters, please hold...");
- Mobile[playerid] = 912;
- SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: Please give me a short description of the crime.");
- return 0;
- }
- else if(strcmp("paramedic", text, true) == 0)
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: I am patching you to LSFMD headquarters, please hold...");
- Mobile[playerid] = 914;
- SendClientMessage(playerid, TEAM_CYAN_COLOR, "Dispatch: Please give me a short description of the incident.");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry, I don't understand - police or paramedic?");
- return 0;
- }
- }
- if(IsPlayerConnected(Mobile[playerid]))
- {
- if(Mobile[Mobile[playerid]] == playerid)
- {
- /*if(PlayerInfo[Mobile[playerid]][pSpeakerPhone] != 0)
- {
- format(string, sizeof(string), "(speakerphone) %s says: %s", GetPlayerNameEx(playerid), text);
- ProxDetector(20.0, Mobile[playerid], string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- else
- {
- SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
- }*/
- SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
- if(PlayerInfo[playerid][pBugged] == 1)
- {
- format(string, sizeof(string), "(bug) %s (cellphone): %s", GetPlayerNameEx(playerid), text);
- SendBugMessage(2, COLOR_LIGHTGREEN, string);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "There's nobody there!");
- CellTime[playerid] = 0;
- SendClientMessage(playerid, COLOR_GRAD2, " You hung up.");
- format(string, sizeof(string), "* %s puts away their cellphone.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Mobile[playerid] = INVALID_PLAYER_ID;
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
- RemovePlayerAttachedObject(playerid, 9);
- }
- return 0;
- }
- sendername = GetPlayerNameEx(playerid);
- switch(PlayerInfo[playerid][pAccent])
- {
- case 0, 1:
- {
- if(AdminDuty[playerid] == 1)
- format(string, sizeof(string), "%s says: (( %s )) ", sendername, text);
- else
- format(string, sizeof(string), "%s says: %s", sendername, text);
- ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 2:
- {
- format(string, sizeof(string), "(British accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 3:
- {
- format(string, sizeof(string), "(Asian accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 4:
- {
- format(string, sizeof(string), "(Scottish accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 5:
- {
- format(string, sizeof(string), "(Irish accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 6:
- {
- format(string, sizeof(string), "(Russian accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 7:
- {
- format(string, sizeof(string), "(American accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 8:
- {
- format(string, sizeof(string), "(Spanish accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 9:
- {
- format(string, sizeof(string), "(Southern Accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 10:
- {
- format(string, sizeof(string), "(Cuban accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 11:
- {
- format(string, sizeof(string), "(Italian accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 12:
- {
- format(string, sizeof(string), "(Gangster accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 13:
- {
- format(string, sizeof(string), "(Australian accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 14:
- {
- format(string, sizeof(string), "(Arabic accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 15:
- {
- format(string, sizeof(string), "(Balkan accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 16:
- {
- format(string, sizeof(string), "(Canadian accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 17:
- {
- format(string, sizeof(string), "(Jamaican accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 18:
- {
- format(string, sizeof(string), "(Israeli accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 19:
- {
- format(string, sizeof(string), "(Indian accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 20:
- {
- format(string, sizeof(string), "(Welsh accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 21:
- {
- format(string, sizeof(string), "(French accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 22:
- {
- format(string, sizeof(string), "(German accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 23:
- {
- format(string, sizeof(string), "(Dutch accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 24:
- {
- format(string, sizeof(string), "(South African accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 25:
- {
- format(string, sizeof(string), "(Filipino accent) %s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- case 26:
- {
- format(string, sizeof(string), "%s says: %s", sendername, text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
- }
- }
- if(PlayerInfo[playerid][pBugged] == 1)
- {
- format(string, sizeof(string), "(bug) %s: %s", GetPlayerNameEx(playerid), text);
- SendBugMessage(2, COLOR_LIGHTGREEN, string);
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
- if(PlayerCuffed[playerid] != 0)
- SetPVarInt(playerid, "ToBeEjected", 1);
- if(GetPVarInt(playerid, "Injured") == 1)
- SetPVarInt(playerid, "ToBeEjected", 1);
- SetPVarInt(playerid, "LastWeapon", GetPlayerWeapon(playerid));
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(GetPVarInt(playerid, "Pizza") != 0 && !(IsAPizzaCar(vehicleid))) {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.3);
- PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
- RemovePlayerFromVehicle(playerid);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You need to be in a PizzaBoy when delivering pizzas!");
- return 1;
- }
-
- /*if(PlayerInfo[playerid][pVDB] == 1)
- {
- new string[128];
- new Float:health;
- GetVehicleHealth(vehicleid, health);
- format(string, sizeof(string), "%.0f", health);
- PlayerTextDrawSetString(playerid, VDB3[playerid], string);
- format(string, sizeof(string), "%s", GetVehicleName(vehicleid));
- PlayerTextDrawSetString(playerid, VDB1[playerid], string);
- format(string, sizeof(string), "%.0f MPH", player_get_speed(playerid));
- PlayerTextDrawSetString(playerid, VDB5[playerid], string);
- PlayerTextDrawShow(playerid, VDB1[playerid]);
- PlayerTextDrawShow(playerid, VDB2[playerid]);
- PlayerTextDrawShow(playerid, VDB3[playerid]);
- PlayerTextDrawShow(playerid, VDB4[playerid]);
- PlayerTextDrawShow(playerid, VDB5[playerid]);
- TextDrawShowForPlayer(playerid,VDB0);
- }*/
- if(!ispassenger)
- {
- SetPlayerArmedWeapon(playerid, 0);
- if(GetChased[playerid] < 999 && VehicleBomb{vehicleid} == 1)
- {
- if(PlayerInfo[playerid][pHeadValue] >= 1)
- {
- if(PlayerInfo[GetChased[playerid]][pFaction] == 4 || PlayerInfo[GetChased[playerid]][pLeader] == 4)
- {
- VehicleBomb{vehicleid} = 0;
- SetTimerEx("VehicleBombDelay", 5000, 0, "d", playerid);
- return 1;
- }
- }
- }
- if(IsACopCar(vehicleid)) {
- if(PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the LSPD!");
- }
- }
- else if(IsAnARESCar(vehicleid)) {
- if(PlayerInfo[playerid][pFaction] != 10 && PlayerInfo[playerid][pLeader] != 10) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the ARES!");
- }
- }
- else if(IsAFBICar(vehicleid)) {
- if(PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the FBI!");
- }
- }
- else if(IsAPizzaCar(vehicleid)) {
- if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21) {
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.3);
- PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
- RemovePlayerFromVehicle(playerid);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a Pizza Boy!");
- }
- }
- else if(IsAnAmbulance(vehicleid)) {
- if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3) {
- if(LSFMDVehicles[13] == vehicleid && PlayerInfo[playerid][pRank] < 5) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "Only ranks 5+ can drive this vehicle.");
- }
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," You're not in the LSFMD!");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- }
- }
- else if(IGMAVeh(vehicleid)) {
- if(PlayerInfo[playerid][pFaction] != 9 && PlayerInfo[playerid][pLeader] != 9) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the San Andreas News faction!");
- } else if(GetVehicleModel(vehicleid) == 488 && PlayerInfo[playerid][pRank] < 3) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You must be Rank 3 or higher to pilot this helicopter.");
- }
- }
- else if(IsAGovCar(vehicleid)) {
- if(PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pLeader] != 5) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the Government!");
- }
- }
- else if(IsAPlane(vehicleid)) {
- if(PlayerInfo[playerid][pFlyLic] != 1) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid,COLOR_GREY,"You don't have a pilot license!");
- }
- }
- else if(IsAHelicopter(vehicleid)) {
- PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(playerid, 46, 60000);
- }
- else if(IsATruckerCar(vehicleid)) {
- if(PlayerInfo[playerid][pJob] == 20 || PlayerInfo[playerid][pJob2] == 20) {
- new string[128];
- new truckcontents = TruckContents[vehicleid];
- new truckcontentname[50];
- if(truckcontents == 0)
- { format(truckcontentname, sizeof(truckcontentname), "None"); }
- else if(truckcontents >= 1 && truckcontents <= 3)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}Food & beverages");}
- else if(truckcontents >= 4 && truckcontents <= 6)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}Clothing"); }
- else if(truckcontents == 7)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}Legal materials"); }
- else if(truckcontents >= 8 && truckcontents <= 10)
- { format(truckcontentname, sizeof(truckcontentname), "{00F70C}24/7 items"); }
- else if(truckcontents >= 11 && truckcontents <= 15)
- { format(truckcontentname, sizeof(truckcontentname), "{F7F304}Illegal weapons"); }
- else if(truckcontents >= 16 && truckcontents <= 20)
- { format(truckcontentname, sizeof(truckcontentname), "{F7F304}Illegal drugs"); }
- else if(truckcontents >= 21 && truckcontents <= 25)
- { format(truckcontentname, sizeof(truckcontentname), "{F7F304}Illegal materials"); }
- format(string, sizeof(string), "TRUCKER JOB: (Truck registration: %s %d) - (Content: %s{FFFF00})", GetVehicleName(vehicleid), vehicleid, truckcontentname);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- if(IsACop(playerid) && truckcontents >= 11)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "TRUCKER JOB: To remove the illegal goods type /cleartruck near the Truck.");
- }
- if(truckcontents > 0 && TruckUsed[playerid] == INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "TRUCKER JOB: To deliver the goods type /hijacktruck as the driver.");
- }
- else if(TruckUsed[playerid] == INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "TRUCKER JOB: To get goods type /loadtruck as the driver.");
- }
- else if(TruckUsed[playerid] == vehicleid && gPlayerCheckpointStatus[playerid] == CHECKPOINT_RETURNTRUCK)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "TRUCKER JOB: This is your Truck, you have not returned it to the docks yet for your pay.");
- }
- else if(TruckUsed[playerid] == vehicleid)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "TRUCKER JOB: This is your Truck, you have not delivered your goods yet.");
- }
- else if(TruckUsed[playerid] != INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "TRUCKER JOB: you're already on another delivery, type /cancel truck to cancel that delivery.");
- }
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a Trucker!");
- }
- }
- else if(IsAnTaxi(vehicleid) || IsAnBus(vehicleid)) {
- if(PlayerInfo[playerid][pJob] != 17 && PlayerInfo[playerid][pJob2] != 17) {
- SendClientMessage(playerid,COLOR_GREY," You're not a Taxi/Bus Driver!");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- }
- }
- else if(IsAGarbageCar(vehicleid)) {
- if(PlayerInfo[playerid][pJob] != 22 && PlayerInfo[playerid][pJob2] != 22) {
- SendClientMessage(playerid,COLOR_GREY," You're not a Garbage Man!");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- }
- }
- }
- else if(!IsPlayerInRangeOfVehicle(playerid, vehicleid, 7.5) || LockStatus[vehicleid] >= 1) { // G-bugging fix
- ClearAnimations(playerid);
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(GetPlayerState(playerid) == 1)
- return 1;
- if(GetPVarInt(playerid, "rccam") == 1)
- {
- DestroyVehicle(GetPVarInt(playerid, "rcveh"));
- VehicleRadioStation[GetPVarInt(playerid, "rcveh")] = 0;
- SetPlayerPos(playerid, GetPVarFloat(playerid, "rcX"), GetPVarFloat(playerid, "rcY"), GetPVarFloat(playerid, "rcZ"));
- DeletePVar(playerid, "rccam");
- KillTimer(GetPVarInt(playerid, "rccamtimer"));
- }
- /*PlayerTextDrawHide(playerid, VDB1[playerid]);
- PlayerTextDrawHide(playerid, VDB2[playerid]);
- PlayerTextDrawHide(playerid, VDB3[playerid]);
- PlayerTextDrawHide(playerid, VDB4[playerid]);
- PlayerTextDrawHide(playerid, VDB5[playerid]);
- TextDrawHideForPlayer(playerid, VDB0);*/
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate) {
- if(GettingSpectated[playerid] != 999)
- {
- new spectator = GettingSpectated[playerid];
- if(!IsPlayerConnected(spectator))
- {
- GettingSpectated[playerid] = 999;
- Spectate[spectator] = 999;
- }
- if(newstate == PLAYER_STATE_DRIVER && PlayerInfo[spectator][pAdmin] >= 2 || newstate == PLAYER_STATE_PASSENGER && PlayerInfo[spectator][pAdmin] >= 2)
- {
- TogglePlayerSpectating(spectator, true);
- new carid = GetPlayerVehicleID(playerid);
- PlayerSpectateVehicle(spectator, carid);
- }
- else if(newstate == PLAYER_STATE_ONFOOT && PlayerInfo[spectator][pAdmin] >= 2)
- {
- TogglePlayerSpectating(spectator, true);
- PlayerSpectatePlayer(spectator, playerid);
- SetPlayerInterior(spectator, GetPlayerInterior(playerid));
- }
- }
- if((newstate == 2 || newstate == 3 || newstate == 7 || newstate == 9) && pTazer[playerid] == 1)
- {
- RemovePlayerWeapon(playerid, 23);
- GivePlayerValidWeapon(playerid, pTazerReplace[playerid], 60000);
- pTazer[playerid] = 0;
- }
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- StopAudioStreamForPlayer(playerid);
- PlayerTextDrawHide(playerid, Textdraw0[playerid]);
- PlayerTextDrawHide(playerid, Textdraw1[playerid]);
- if(GettingSpectated[playerid] < MAX_PLAYERS && PlayerInfo[GettingSpectated[playerid]][pAdmin] >= 2)
- {
- new spectator = GettingSpectated[playerid];
- // Preventing possible buffer overflows with the arrays
- TogglePlayerSpectating(spectator, true);
- PlayerSpectatePlayer(spectator, playerid);
- SetPlayerInterior(spectator, GetPlayerInterior(playerid));
- SetPlayerInterior(spectator, GetPlayerInterior(playerid));
- SetPlayerVirtualWorld(spectator, GetPlayerVirtualWorld(playerid));
- }
- if(ConnectedToPC[playerid] == 1337)//mdc
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're now logged off the MDC.");
- ConnectedToPC[playerid] = 0;
- }
- if(TransportDuty[playerid] > 0)
- {
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- else if(TransportDuty[playerid] == 2)
- {
- BusDrivers -= 1;
- }
- TransportDuty[playerid] = 0;
- new string[42];
- format(string, sizeof(string), "* you're now off duty and earned $%d.", TransportMoney[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, TransportMoney[playerid]);
- ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- TransportTime[playerid] = 0;
- TransportCost[playerid] = 0;
- }
- if(TransportDriver[playerid] < 999)
- {
- new string[128];
- TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
- format(string, sizeof(string), "~w~The ride cost~n~~r~$%d",TransportCost[playerid]);
- GameTextForPlayer(playerid, string, 5000, 3);
- format(string, sizeof(string), "~w~Passenger left the taxi.~n~~g~Earned $%d",TransportCost[playerid]);
- GameTextForPlayer(TransportDriver[playerid], string, 5000, 3);
- GivePlayerCash(playerid, -TransportCost[playerid]);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(TransportDriver[playerid], ipex, sizeof(ipex));
- TaxiWarn[playerid][TransportDriver[playerid]] += TransportCost[playerid];
- if(TaxiWarn[playerid][TransportDriver[playerid]] >= 10000)
- {
- format(string, sizeof(string), "%s (IP:%s) has taxied %s (IP:%s) $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(TransportDriver[playerid]), ipex, TaxiWarn[playerid][TransportDriver[playerid]]);
- //Log("logs/pay.log", string);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- TransportTime[TransportDriver[playerid]] = 0;
- TransportCost[TransportDriver[playerid]] = 0;
- TransportCost[playerid] = 0;
- TransportTime[playerid] = 0;
- TransportDriver[playerid] = 999;
- }
- TelePos[playerid][0] = 0.0;
- TelePos[playerid][1] = 0.0;
- }
- if(newstate == PLAYER_STATE_WASTED)
- {
- if(GetPVarInt(playerid, "EventToken") == 0)
- {
- SetPVarInt(playerid, "MedicBill", 1);
- }
- }
- if(newstate == PLAYER_STATE_PASSENGER)
- {
- fVehSpeed[playerid] = 0;
- new vehicleid = GetPlayerVehicleID(playerid);
- gLastCar[playerid] = vehicleid;
- if(PlayerInfo[playerid][pGuns][4] > 0) SetPlayerArmedWeapon(playerid,PlayerInfo[playerid][pGuns][4]);
- else SetPlayerArmedWeapon(playerid,0);
- if(GetPVarInt(playerid, "ToBeEjected") >= 1)
- {
- SetPVarInt(playerid, "ToBeEjected", 0);
- RemovePlayerFromVehicle(playerid);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z+2);
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- Streamer_UpdateEx(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
- SetPlayerPos(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
- SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"MedicVW"));
- SetPlayerInterior(playerid, GetPVarInt(playerid,"MedicInt"));
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
- }
- }
- if(VehicleRadioStation[GetPlayerVehicleID(playerid)] != 0)
- {
- new getradio = VehicleRadioStation[GetPlayerVehicleID(playerid)]-1;
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[getradio][radiourl]);
- }
- foreach(Player, i)
- {
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0)
- {
- if(GetPlayerCash(playerid) < TransportValue[i])
- {
- new string[28];
- format(string, sizeof(string), "* You need $%d to enter.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- RemovePlayerFromVehicle(playerid);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z+2);
- TogglePlayerControllable(playerid, 1);
- }
- else
- {
- new string[38];
- if(TransportDuty[i] == 1)
- {
- format(string, sizeof(string), "* You paid $%d to the Taxi Driver.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Passenger %s has entered your taxi.", GetPlayerNameEx(playerid));
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- TransportTime[i] = 1;
- TransportTime[playerid] = 1;
- TransportCost[playerid] = TransportValue[i];
- TransportCost[i] = TransportValue[i];
- TransportDriver[playerid] = i;
- }
- else if(TransportDuty[i] == 2)
- {
- format(string, sizeof(string), "* You paid $%d to the Taxi Driver.", TransportValue[i]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Passenger %s has entered your Taxi.", GetPlayerNameEx(playerid));
- SendClientMessage(i, COLOR_LIGHTBLUE, string);
- }
- GivePlayerCash(playerid, - TransportValue[i]);
- TransportMoney[i] += TransportValue[i];
- }
- }
- }
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- fVehSpeed[playerid] = 0;
- SetPlayerArmedWeapon(playerid, 0);
- if(VehicleRadioStation[GetPlayerVehicleID(playerid)] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FFA500}Vehicle radio station:{FFFFFF} None - {FFA500}Genre:{FFFFFF} None {FFA500} (Use /setradio)");
- }
- if(VehicleRadioStation[GetPlayerVehicleID(playerid)] != 0)
- {
- new getradio = VehicleRadioStation[GetPlayerVehicleID(playerid)]-1;
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[getradio][radiourl]);
- new genre[18];
- if(getradio >= 0 && getradio <= 9) genre = "Alternative";
- else if(getradio >= 10 && getradio <= 19) genre = "Blues";
- else if(getradio >= 20 && getradio <= 29) genre = "Classical";
- else if(getradio >= 30 && getradio <= 39) genre = "Country";
- else if(getradio >= 40 && getradio <= 49) genre = "Decades";
- else if(getradio >= 50 && getradio <= 59) genre = "Easy Listening";
- else if(getradio >= 60 && getradio <= 69) genre = "Electronic";
- else if(getradio >= 70 && getradio <= 79) genre = "Folk";
- else if(getradio >= 80 && getradio <= 89) genre = "Inspirational";
- else if(getradio >= 90 && getradio <= 99) genre = "International";
- else if(getradio >= 100 && getradio <= 109) genre = "Jazz";
- else if(getradio >= 110 && getradio <= 119) genre = "Latin";
- else if(getradio >= 120 && getradio <= 129) genre = "Metal";
- else if(getradio >= 130 && getradio <= 139) genre = "Misc";
- else if(getradio >= 140 && getradio <= 149) genre = "New Age";
- else if(getradio >= 150 && getradio <= 159) genre = "Pop";
- else if(getradio >= 160 && getradio <= 169) genre = "Public Radio";
- else if(getradio >= 170 && getradio <= 179) genre = "R&B/Urban";
- else if(getradio >= 180 && getradio <= 189) genre = "Rap";
- else if(getradio >= 190 && getradio <= 199) genre = "Reggae";
- else if(getradio >= 200 && getradio <= 209) genre = "Rock";
- else if(getradio >= 210 && getradio <= 219) genre = "Talk";
- new string[128];
- format(string, sizeof(string), "{FFA500}Vehicle radio station:{FFFFFF} %s - {FFA500}Genre:{FFFFFF} %s {FFA500} (Use /setradio)", VehicleRadioListing[getradio][radioname], genre);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
-
- if(IsASweeper(GetPlayerVehicleID(playerid)))
- {
- PlayerSweeping[playerid] = 1;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now street sweeping, drive around town to earn money.");
- GetPlayerPos(playerid, fSweeperPos[playerid][0], fSweeperPos[playerid][1], fSweeperPos[playerid][2]);
- }
- new
- newcar = GetPlayerVehicleID(playerid),
- engine, lights, alarm, doors, bonnet, boot, objective, v;
- gLastCar[playerid] = newcar;
- if(GetPVarInt(playerid, "ToBeEjected") >= 1)
- {
- SetPVarInt(playerid, "ToBeEjected", 0);
- RemovePlayerFromVehicle(playerid);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z+2);
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- Streamer_UpdateEx(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
- SetPlayerPos(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
- SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"MedicVW"));
- SetPlayerInterior(playerid, GetPVarInt(playerid,"MedicInt"));
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
- }
- }
- TelePos[playerid][0] = 0.0;
- TelePos[playerid][1] = 0.0;
- if(GetCarDealershipVehicleId(newcar) != -1 && GetCarDealershipVehicleId(newcar) == GetPVarInt(playerid, "editingcdveh")) return 1;
- if(GetCarDealershipVehicleId(newcar) != -1)
- {
- new string[57 + 20 + 4];
- format(string, sizeof(string),"Would you like to buy this %s?\n\nThis vehicle costs $%d.", GetVehicleName(newcar), CarDealershipInfo[GetCarDealershipId(newcar)][cdVehicleCost][GetCarDealershipVehicleId(newcar)]);
- ShowPlayerDialogEx(playerid,DIALOG_CDBUY,DIALOG_STYLE_MSGBOX,"Warning:",string,"Buy","Cancel");
- TogglePlayerControllable(playerid, false);
- return 1;
- }
- foreach(Player, i)
- {
- v = GetPlayerVehicle(i, newcar);
- if(v != -1) {
- if(i == playerid) {
- new
- string[96];
- format(string, sizeof(string),"You're the owner of this %s.", GetVehicleName(newcar));
- SendClientMessage(playerid, COLOR_GREY, string);
- if(PlayerVehicleInfo[i][v][pvTicket] != 0)
- {
- format(string, sizeof(string),"A $%d parking ticket was left on your vehicle. You must pay the ticket at the DMV in Dilimore.", PlayerVehicleInfo[i][v][pvTicket]);
- SendClientMessage(playerid, COLOR_GREY, string);
- SendClientMessage(playerid, COLOR_GREY, "Failure to pay this ticket as soon as possible will result in a fine, or even an arrest.");
- }
- }
- else if(i == PlayerInfo[playerid][pVehicleKeysFrom]) {
- new
- string[64 + MAX_PLAYER_NAME];
- format(string, sizeof(string),"You have the keys for this %s from owner %s.", GetVehicleName(newcar), GetPlayerNameEx(i));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else if(PlayerVehicleInfo[i][v][pvLocked] == 1 && PlayerVehicleInfo[i][v][pvLock] == 1) {
- GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(newcar,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
- SetTimerEx("DisableVehicleAlarm", 20000, 0, "d", newcar);
- }
- /*else if(PlayerVehicleInfo[i][v][pvLocked] == 1 && PlayerVehicleInfo[i][v][pvLock] == 2) {
- new
- string[49 + MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- format(string, sizeof(string), "* %s has been stunned by the electric anti-theft.",GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new Float:X, Float:Y, Float:Z, Float:HP;
- GetPlayerPos(playerid, X, Y, Z);
- //SendAudioToRange(64, 100, X, Y, Z, 20.0);
- SetPlayerPos(playerid, X + 1, Y, Z);
- RemovePlayerFromVehicle(playerid);
- SetPVarInt(playerid, "IsFrozen", 1);
- TogglePlayerControllable(playerid,0);
- SetTimerEx("ReleasePlayer", 10000, 0, "d", playerid);
- GameTextForPlayer(playerid,"~r~STUNNED!",11000,3);
- GetPlayerHealth(playerid,HP);
- SetPlayerHealth(playerid,HP-15);
- }
- else
- {
- format(string, sizeof(string), "Warning: This %s is owned by %s.", GetVehicleName(newcar), GetPlayerNameEx(i));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- }*/
- return 1;
- }
- }
- for(new f = 0; f < MAX_FAMILY; f++) {
- v = GetGangVehicle(f, newcar);
- if(v != -1) {
- new string[49 + MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pGang] == f)
- {
- format(string, sizeof(string), "You're in the family that owns this %s.", GetVehicleName(newcar));
- SendClientMessage(playerid, COLOR_GREY, string);
- }
- else if(FamilyVehicleInfo[f][v][fvLocked] == 1 && FamilyVehicleInfo[f][v][fvLock] == 1)
- {
- GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(newcar,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
- SetTimerEx("DisableVehicleAlarm", 20000, 0, "d", newcar);
- }
- /*else if(FamilyVehicleInfo[f][v][fvLocked] == 1 && FamilyVehicleInfo[f][v][fvLock] == 2)
- {
- format(string, sizeof(string), "* %s has been stunned by the electric anti-theft.",GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- new Float:X, Float:Y, Float:Z, Float:HP;
- GetPlayerPos(playerid, X, Y, Z);
- //SendAudioToRange(64, 100, X, Y, Z, 20.0);
- SetPlayerPos(playerid, X + 1, Y, Z);
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- SetPVarInt(playerid, "IsFrozen", 1);
- TogglePlayerControllable(playerid,0);
- SetTimerEx("ReleasePlayer", 10000, 0, "d", playerid);
- GameTextForPlayer(playerid,"~r~STUNNED!",11000,3);
- GetPlayerHealth(playerid,HP);
- SetPlayerHealth(playerid,HP-15);
- }*/
- return 1;
- }
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsACopCar(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 1||PlayerInfo[playerid][pLeader] == 1)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the LSPD!");
- }
- }
- if(IsAnARESCar(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 10||PlayerInfo[playerid][pLeader] == 10)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the ARES!");
- }
- }
- else if(IsAFBICar(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 2||PlayerInfo[playerid][pLeader] == 2)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the FBI!");
- }
- }
- else if(vehicleid == LSFMDVehicles[12] || vehicleid == LSFMDVehicles[33] || vehicleid == LSFMDVehicles[34] || vehicleid == LSFMDVehicles[35])
- {
- if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 1)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the Fire Department Division!");
- }
- }
- else if(vehicleid == LSFMDVehicles[37] || vehicleid == LSFMDVehicles[36])
- {
- if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the EMS Division!");
- }
- }
- else if(IGMAVeh(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 9||PlayerInfo[playerid][pLeader] == 9)
- {
- if(GetVehicleModel(vehicleid) == 488 && PlayerInfo[playerid][pRank] < 3) {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You must be Rank 3 or higher to pilot this helicopter.");
- }
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the San Andreas News faction!");
- }
- }
- else if(IsAGovCar(vehicleid))
- {
- if(PlayerInfo[playerid][pFaction] == 5||PlayerInfo[playerid][pLeader] == 5)
- {
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid, COLOR_GRAD2, "You're not in the Government!");
- }
- }
- else if(IsAPlane(vehicleid))
- {
- if(PlayerInfo[playerid][pFlyLic] != 1)
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- NOPCheck(playerid);
- SendClientMessage(playerid,COLOR_GREY,"You don't have a pilot license!");
- }
- }
- else if(IsAHelicopter(vehicleid))
- {
- PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(playerid, 46, 60000);
- }
- else if(IsAnTaxi(vehicleid) || IsAnBus(vehicleid))
- {
- if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17)
- {
- }
- else
- {
- SendClientMessage(playerid,COLOR_GREY," You're not a Taxi/Bus Driver!");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz);
- }
- }
- new Float:vhp;
- GetVehicleHealth(newcar, vhp);
- new string[128];
- format(string, sizeof(string), "HEALTH: %.0f SPEED: %.0f MPH", vhp, player_get_speed(playerid));
- PlayerTextDrawSetString(playerid, Textdraw0[playerid], string);
- format(string, sizeof(string), "%s", GetVehicleName(newcar));
- PlayerTextDrawSetString(playerid, Textdraw1[playerid], string);
- PlayerTextDrawShow(playerid, Textdraw0[playerid]);
- PlayerTextDrawShow(playerid, Textdraw1[playerid]);
- }
- if(newstate == PLAYER_STATE_SPAWNED)
- {
- TelePos[playerid][0] = 0.0;
- TelePos[playerid][1] = 0.0;
- //gPlayerSpawned[playerid] = 1;
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(GetPVarInt(playerid,"TrackCar") != 0)
- {
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- DeletePVar(playerid, "TrackCar");
- return 1;
- }
- if(GetPVarInt(playerid, "Trashup") == 1)
- {
- DisablePlayerCheckpoint(playerid);
- SetPVarInt(playerid, "Trashup", 0);
- SetPVarInt(playerid, "Trashup", 2);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Deliver the garbage/trash to collect your pay.");
- SetPlayerCheckpoint(playerid, 2483.96, -2640.06, 13.52, 5.0);
- return 1;
- }
- if(GetPVarInt(playerid, "Trashup") == 2)
- {
- DisablePlayerCheckpoint(playerid);
- SetPVarInt(playerid, "Trashup", 0);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have been given $450 for delivering the trash/garbages.");
- GivePlayerCash(playerid, 450);
- new vehicleid = GetPlayerVehicleID(playerid);
- SetVehicleToRespawn(vehicleid);
- return 1;
- }
- if(GetPVarInt(playerid, "TruckDeliver") > 0 && gPlayerCheckpointStatus[playerid] != CHECKPOINT_RETURNTRUCK)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in a Truck!");
- return 1;
- }
- if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
- {
- SendClientMessage(playerid, COLOR_WHITE, "This is not your Truck with the goods you're suppose to deliver!");
- return 1;
- }
- if(!IsAtTruckDeliveryPoint(playerid))
- {// In the case the player finds a way to exploit the checkpoint to different location
- CancelTruckDelivery(playerid);
- SendClientMessage(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
- return 1;
- }
- if(GetPVarInt(playerid, "tpTruckRunTimer") != 0) {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s was possibly teleport truckrunning.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
-
- SetPVarInt(playerid, "_TP_HACK_WARNINGS", GetPVarInt(playerid,"_TP_HACK_WARNINGS")+1);
-
- if(GetPVarInt(playerid,"_TP_HACK_WARNINGS") >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has been banned, reason: Teleport hacking.", GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was banned, reason: Teleport hacking.", GetPlayerNameEx(playerid), playerip);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- return 1;
- }
- new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
- TruckContents[vehicleid] = 0;
- if(truckdeliver >= 1 && truckdeliver <= 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the food & beverages, return the truck to the Ocean Docks to collect your pay.");
- }
- else if(truckdeliver >= 4 && truckdeliver <= 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the clothing, return the truck to the Ocean Docks to collect your pay.");
- }
- else if(truckdeliver == 7)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the materials, return the truck to the Ocean Docks to collect your pay.");
- }
- else if(truckdeliver >= 8 && truckdeliver <= 10)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the 24/7 items, return the truck to the Ocean Docks to collect your pay.");
- }
- else if(truckdeliver >= 11 && truckdeliver <= 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the weapons, return the truck to the Ocean Docks to collect your pay.");
- }
- else if(truckdeliver >= 16 && truckdeliver <= 20)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the drugs, return the truck to the Ocean Docks to collect your pay.");
- }
- else if(truckdeliver >= 21 && truckdeliver <= 25)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal materials, return the truck to the Ocean Docks to collect your pay.");
- }
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNTRUCK;
- SetPlayerCheckpoint(playerid, 2225.343261, -2635.977294, 13.438463, 5);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~Ocean Docks", 5000, 1);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Return to the Ocean Docks (see checkpoint on radar).");
- SetPVarInt(playerid, "tpTruckRunTimer", 30);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);
- return 1;
- }
- else if(GetPVarInt(playerid, "Pizza") > 0 && IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorX], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorY], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorZ]))
- {
- new string[128];
- if(GetPVarInt(playerid, "tpPizzaTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport pizzarunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s was possibly teleport pizzarunning.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- // format(string, sizeof(string), "%s (ID %d) is possibly teleport pizzarunning.", GetPlayerNameEx(playerid), playerid);
- // Log("logs/hack.log", string);
- format(string, sizeof(string), "You have delivered the pizza to the destination! You have made $%d.", (GetPVarInt(playerid, "pizzaTimer") * 2));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SetPVarInt(playerid, "Pizza", 0);
- DisablePlayerCheckpoint(playerid);
-
- SetPVarInt(playerid, "_TP_HACK_WARNINGS", GetPVarInt(playerid,"_TP_HACK_WARNINGS")+1);
- if(GetPVarInt(playerid,"_TP_HACK_WARNINGS") >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has been banned, reason: Teleport hacking.", GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was banned, reason: Teleport hacking.", GetPlayerNameEx(playerid), playerip);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- return 1;
- }
- DestroyProgressBar(PizzaBar[playerid]);
- format(string, sizeof(string), "You have delivered the pizza to the destination! You have made $%d.", (GetPVarInt(playerid, "pizzaTimer") * 2));
- //Tax -= (GetPVarInt(playerid, "pizzaTimer") * 70);
- //Misc_Save();
- GivePlayerCash(playerid, floatround((GetPVarInt(playerid, "pizzaTimer") * 2), floatround_round));
- SendClientMessage(playerid, COLOR_WHITE, string);
- SetPVarInt(playerid, "Pizza", 0);
- DisablePlayerCheckpoint(playerid);
- }
- else if(FindingJob[playerid] != 0)
- {
- switch (FindingJob[playerid])
- {
- case 1: SendClientMessage(playerid, COLOR_WHITE, "The Detective Job is inside this building. Type /enter to go inside.");
- case 2: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Lawyer Job. Type /join to get this job.");
- case 3: SendClientMessage(playerid, COLOR_WHITE, "The Whore Job is inside this building. Type /enter to go inside.");
- case 4: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Drug Dealer Job. Type /join to get this job.");
- case 5: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Car Mechanic Job. Type /join to get this job.");
- case 6: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Bodyguard Job. Type /join to get this job.");
- case 7: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Arms Dealer Job. Type /join to get this job.");
- case 8: SendClientMessage(playerid, COLOR_WHITE, "The Boxer Job is inside this building. Type /enter to go inside.");
- case 9: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Drug Smuggler Job. Type /join to get this job.");
- case 10: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Taxi Driver Job. Type /join to get this job.");
- case 11: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Craftsman Job. Type /join to get this job.");
- case 12: SendClientMessage(playerid, COLOR_WHITE, "The Bartender Job is inside this building. Type /enter to go inside.");
- case 13: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Trucker Job. Type /join to get this job.");
- case 14: SendClientMessage(playerid, COLOR_WHITE, "The Pizza Boy Job is inside this building. Type /enter to go inside.");
- case 15: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Fisher Job. You can /fish at this pier or on boats.");
- case 16: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Sweeper Job. Earn 150$ dollars just sweep around Los Santos.");
- case 17: SendClientMessage(playerid, COLOR_WHITE, "You have arrived at the Miner Job. Type /join to get this job.");
- }
- DisablePlayerCheckpoint(playerid);
- FindingJob[playerid] = 0;
- }
- else if(CP[playerid] == 1)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- foreach(Player, i)
- {
- new v = GetPlayerVehicle(i, vehicleid);
- if(v != -1)
- {
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, "~r~Vehicle denied", 5000, 1);
- SendClientMessage(playerid, COLOR_WHITE, "You can't sell vehicles owned by players or families.");
- return 1;
- }
- }
- for(new f = 0; f < MAX_FAMILY; f++)
- {
- new v = GetGangVehicle(f, vehicleid);
- if(v != -1)
- {
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, "~r~Vehicle denied", 5000, 1);
- SendClientMessage(playerid, COLOR_WHITE, "You can't sell vehicles owned by players or families.");
- return 1;
- }
- }
- new string[128];
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pCarSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pCarSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pCarSkill] ++;
- }
-
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(strcmp(Points[i][Name], "Auto Export Company", true) == 0)
- {
- mypoint = i;
- }
- }
- if(PlayerInfo[playerid][pCarSkill] == 51)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 2, you will earn more Money and quicker Reload Time."); }
- else if(PlayerInfo[playerid][pCarSkill] == 101)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 3, you will earn more Money and quicker Reload Time."); }
- else if(PlayerInfo[playerid][pCarSkill] == 201)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 4, you will earn more Money and quicker Reload Time."); }
- else if(PlayerInfo[playerid][pCarSkill] == 401)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 5, you will earn more Money and quicker Reload Time."); }
- new level = PlayerInfo[playerid][pCarSkill];
- if(level >= 0 && level <= 50)
- {
- new rand = random(sizeof(SELLCAR1));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 20 minutes.", SELLCAR1[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR1[rand]);
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- PlayerInfo[playerid][pCarTime] = 1200;
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR1[rand]/2);
- }
- }
- }
- else if(level >= 51 && level <= 100)
- {
- new rand = random(sizeof(SELLCAR2));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 18 minutes.", SELLCAR2[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR2[rand]);
- PlayerInfo[playerid][pCarTime] = 1080;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR2[rand]/2);
- }
- }
- }
- else if(level >= 101 && level <= 200)
- {
- new rand = random(sizeof(SELLCAR3));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 16 minutes.", SELLCAR3[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR3[rand]);
- PlayerInfo[playerid][pCarTime] = 960;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR3[rand]/2);
- }
- }
- }
- else if(level >= 201 && level <= 400)
- {
- new rand = random(sizeof(SELLCAR4));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 14 minutes.", SELLCAR4[rand]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR4[rand]);
- PlayerInfo[playerid][pCarTime] = 840;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR4[rand]/2);
- }
- }
- }
- else if(level >= 401)
- {
- new money = 600;
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 12 minutes.", money);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, money);
- PlayerInfo[playerid][pCarTime] = 720;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(vehicleid);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(money/2);
- }
- }
- }
- GameTextForPlayer(playerid, "~y~Sold the car", 2500, 1);
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- if(GetVehicleModel(vehicleid)==525&&IsTrailerAttachedToVehicle(vehicleid))
- {
- SetVehicleToRespawn(GetVehicleTrailer(vehicleid));
- }
- else
- {
- SetVehicleToRespawn(vehicleid);
- }
-
- SetTimerEx("RespawnVehicleFunction", 3000, false, "d", gLastCar[playerid]);
- }
- else
- {
- CP[playerid] = 0;
- GameTextForPlayer(playerid, "Not in a car", 5000, 1);
- DisablePlayerCheckpoint(playerid);
- }
- }
- if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
- {
- TaxiAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- TaxiCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else if(EMSCallTime[playerid] > 0 && EMSAccepted[playerid] < 999)
- {
- if(GetPVarInt(EMSAccepted[playerid], "Injured") == 1)
- {
- SendEMSQueue(EMSAccepted[playerid],2);
- EMSAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- EMSCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- EMSAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~r~Patient has died", 5000, 1);
- EMSCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- }
- else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
- {
- BusAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- BusCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else if(MedicCallTime[playerid] > 0 && MedicAccepted[playerid] < 999)
- {
- MedicAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached patient", 5000, 1);
- MedicCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- switch (gPlayerCheckpointStatus[playerid])
- {
- case CHECKPOINT_HOME:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- new i = hInviteHouse[playerid];
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
- if(HouseInfo[i][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = i+60000;
- SetPlayerVirtualWorld(playerid, i+60000);
- hInviteOffer[playerid] = 999;
- hInviteHouse[playerid] = INVALID_HOUSE_ID;
- }
- case CHECKPOINT_MINER:
- {
- new cost, string[128];
- if(PlayerInfo[playerid][pMiningRock] == 1)
- {
- cost = 100 + random(50);
- }
- else if(PlayerInfo[playerid][pMiningRock] == 2)
- {
- cost = 150 + random(50);
- }
- PlayerInfo[playerid][pMiningRock] = 0;
- format(string, sizeof(string), " You have earned $%i for mining rocks.", cost);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- ApplyAnimation(playerid, "CARRY", "putdwn", 4.1, 0, 0, 0, 0, 0, 1);
- format(string, sizeof(string), "~g~+$%i", cost);
- GameTextForPlayer(playerid, string, 5000, 1);
- GivePlayerCash(playerid, cost);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- RemovePlayerAttachedObject(playerid, 9);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- }
- case CHECKPOINT_LOADTRUCK:
- {
- if(IsPlayerInRangeOfPoint(playerid, 6, 2197.660644, -2662.190185, 13.546875))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsATruckerCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- TogglePlayerControllable(playerid, 0);
- SetPVarInt(playerid, "IsFrozen", 1);
- ShowPlayerDialogEx(playerid,DIALOG_LOADTRUCK,DIALOG_STYLE_LIST,"What do you want to transport?","{00F70C}Legal goods {FFFFFF}(no risk but also no bonuses)\n{C2A2DA}Illegal goods {FFFFFF}(risk of getting caught but a bonus)","Select","Cancel");
- }
- else return SendClientMessage(playerid, COLOR_GREY, "You're not driving an Ocean Docks Truck!");
- }
- }
- case CHECKPOINT_RETURNTRUCK:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 6, 2225.343261, -2635.977294, 13.438463))
- {// In the case the player finds a way to exploit the checkpoint to different location
- CancelTruckDelivery(playerid);
- SendClientMessage(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
- return 1;
- }
-
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsATruckerCar(vehicleid))
- {// Patch for an exploit
- CancelTruckDelivery(playerid);
- SendClientMessage(playerid, COLOR_REALRED, "ERROR: You're not driving an Ocean Docks Truck. Truck delivery canceled completely.");
- return 1;
- }
-
- if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s was possibly teleport truckrunning.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- // format(string, sizeof(string), "%s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- // Log("logs/hack.log", string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were paid $100 for delivering the goods and returning the truck.");
- CancelTruckDelivery(playerid);
-
- SetPVarInt(playerid, "_TP_HACK_WARNINGS", GetPVarInt(playerid,"_TP_HACK_WARNINGS")+1);
- if(GetPVarInt(playerid,"_TP_HACK_WARNINGS") >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has been banned, reason: Teleport hacking.", GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was banned, reason: Teleport hacking.", GetPlayerNameEx(playerid), playerip);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- return 1;
- }
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in a Truck!");
- return 1;
- }
- if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
- {
- SendClientMessage(playerid, COLOR_WHITE, "This is not the Truck you used, return the Truck you used in order to receive your pay!");
- return 1;
- }
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SetVehicleToRespawn(vehicleid);
- new string[128], payment;
- new level = PlayerInfo[playerid][pTruckSkill];
- if(level >= 0 && level <= 50) payment = 100;
- else if(level >= 51 && level <= 100) payment = 150;
- else if(level >= 101 && level <= 200) payment = 300;
- else if(level >= 201 && level <= 400) payment = 400;
- else if(level >= 401) payment = 500;
- GivePlayerCash(playerid, payment);
- format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the truck.", payment);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
- /*if(truckdeliver == 11)
- {
- if(PlayerInfo[playerid][pConnectTime] > 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 60000);
- }
- else SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You did not receive a weapon bonus since your weapons are currently restricted.");
- }*/
- if(truckdeliver == 12)
- {
- new randomweapon = Random(1, 3);
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You did not receive a weapon bonus since your weapons are currently restricted.");
- }
- else if(randomweapon == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 60000);
- }
- else if(randomweapon == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Silenced Pistol as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 23, 60000);
- }
- }
- else if(truckdeliver == 13)
- {
- new randomweapon = Random(1, 4);
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You did not receive a weapon bonus since your weapons are currently restricted.");
- }
- else if(randomweapon == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 60000);
- }
- else if(randomweapon == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Silenced Pistol as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 23, 60000);
- }
- else if(randomweapon == 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Shotgun as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 25, 60000);
- }
- }
- else if(truckdeliver == 14)
- {
- new randomweapon = Random(1, 5);
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You did not receive a weapon bonus since your weapons are currently restricted.");
- }
- else if(randomweapon == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 60000);
- }
- else if(randomweapon == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Silenced Pistol as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 23, 60000);
- }
- else if(randomweapon == 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Shotgun as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 25, 60000);
- }
- else if(randomweapon == 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Country Rifle as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 33, 60000);
- }
- }
- else if(truckdeliver == 15)
- {
- new randomweapon = Random(1, 101);
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You did not receive a weapon bonus since your weapons are currently restricted.");
- }
- else if(randomweapon >= 1 && randomweapon <= 45)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Shotgun as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 25, 60000);
- }
- else if(randomweapon >= 46 && randomweapon <= 87)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Country Rifle as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 33, 60000);
- }
- else if(randomweapon >= 88 && randomweapon <= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given a free Deagle as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 24, 60000);
- }
- }
- /*else if(truckdeliver == 16)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 1 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 1;
- PlayerInfo[playerid][pCrack] += 1;
- }*/
- else if(truckdeliver == 17)
- {
- new drug = Random(1, 3);
- if(drug == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 1 pot as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 1;
- }
- else if(drug == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 1 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pCrack] += 1;
- }
- }
- else if(truckdeliver == 18)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 1 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 1;
- PlayerInfo[playerid][pCrack] += 1;
- }
- else if(truckdeliver == 19)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 2 pot & 2 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 2;
- PlayerInfo[playerid][pCrack] += 2;
- }
- else if(truckdeliver == 20)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 3 pot & 3 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 3;
- PlayerInfo[playerid][pCrack] += 3;
- }
- else if(truckdeliver == 21)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 25 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 25;
- }
- else if(truckdeliver == 22)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 50 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 50;
- }
- else if(truckdeliver == 23)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 100 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 100;
- }
- else if(truckdeliver == 24)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 150 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 150;
- }
- else if(truckdeliver == 25)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You were also given 200 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 200;
- }
-
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pTruckSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pTruckSkill]++;
- }
- }
- else
- {
- PlayerInfo[playerid][pTruckSkill]++;
- }
-
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- DeletePVar(playerid, "TruckDeliver");
- }
- case CHECKPOINT_PICKUPTRASH:
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsAGarbageCar(vehicleid))
- {// Patch for an exploit
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessage(playerid, COLOR_REALRED, "ERROR: You're not driving an Trashmaster.");
- return 1;
- }
-
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You're not in a Trashmaster!");
- return 1;
- }
- if(GarbageUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != GarbageUsed[playerid])
- {
- SendClientMessage(playerid, COLOR_WHITE, "This is not the trashmaster you used, return the trashmaster you used in order to receive your pay!");
- return 1;
- }
-
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNTRASH;
- SetPlayerCheckpoint(playerid, 2484.10, -2638.86, 13.52, 5);
- SCM(playerid, COLOR_LIGHTBLUE, "Return the trashmaster to the place you were before to receive your salary.");
- }
-
-
- case CHECKPOINT_RETURNTRASH:
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNTRASH;
-
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsAGarbageCar(vehicleid))
- {// Patch for an exploit
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessage(playerid, COLOR_REALRED, "ERROR: You're not driving an Trashmaster.");
- return 1;
- }
- SetVehicleToRespawn(vehicleid);
- GivePlayerCash(playerid, 5000);
- SCM(playerid, COLOR_LIGHTBLUE, "You have been given $5,000 as your salary for delivering trash.");
- GarbageUsed[playerid] = INVALID_VEHICLE_ID;
- }
- else return SCM(playerid, COLOR_GRAD2, "Not in a car!");
- }
-
- case CHECKPOINT_HITMAN:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessage(playerid, COLOR_GRAD2, " Type /enter to enter the HQ.");
- }
- case CHECKPOINT_MAXIMUSCLUB:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessage(playerid, COLOR_GRAD2, " Press Y to enter the Maximus club.");
- }
- case CHECKPOINT_BLACKMARKET:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessage(playerid, COLOR_GRAD2, " Press Y to enter the Blackmarket.");
- }
- }
- }
- for(new h = 0; h < MAX_POINTS; h++)
- {
- if(Points[h][Type] == 3 && GetPVarInt(playerid, "CrateDeliver") == 1 && IsPlayerInRangeOfPoint(playerid, 6.0, 2166.3772,-1675.3829,15.0859))
- {
- new string[128];
- if(GetPVarInt(playerid, "tpDrugRunTimer") != 0) {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s was possibly teleport drugrunning.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- // format(string, sizeof(string), "%s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- // Log("logs/hack.log", string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $150 for delivering the Drug Crates.");
- DeletePVar(playerid, "CrateDeliver");
- PlayerInfo[playerid][pCrates] = 0;
-
- SetPVarInt(playerid, "_TP_HACK_WARNINGS", GetPVarInt(playerid,"_TP_HACK_WARNINGS")+1);
- if(GetPVarInt(playerid,"_TP_HACK_WARNINGS") >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has been banned, reason: Teleport hacking.", GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was banned, reason: Teleport hacking.", GetPlayerNameEx(playerid), playerip);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- return 1;
- }
- DisablePlayerCheckpoint(playerid);
- new level = PlayerInfo[playerid][pSmugSkill];
- if(level >= 0 && level <= 50)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $250 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 250);
- }
- else if(level >= 51 && level <= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $300 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 300);
- }
- else if(level >= 101 && level <= 200)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $350 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 350);
- }
- else if(level >= 201 && level <= 400)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $400 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 400);
- }
- else if(level >= 401)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $450 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 450);
- }
- DeletePVar(playerid, "CrateDeliver");
- PlayerInfo[playerid][pCrates] = 0;
- Points[h][Stock] += 10;
-
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pSmugSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pSmugSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pSmugSkill]++;
- }
-
- format(string, sizeof(string), " POT AVAILABLE: %d grams.", Points[h][Stock]);
- UpdateDynamic3DTextLabelText(Points[h][TextLabel], COLOR_YELLOW, string);
- return 1;
- }
- else if(Points[h][Type] == 4 && GetPVarInt(playerid, "CrateDeliver") == 2 && IsPlayerInRangeOfPoint(playerid, 6.0, 2354.2808,-1169.2959,28.0066))
- {
- new string[128];
- if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s was possibly teleport drugrunning.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- // format(string, sizeof(string), "%s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- // Log("logs/hack.log", string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $125 for delivering the Drug Crates.");
- DeletePVar(playerid, "CrateDeliver");
- PlayerInfo[playerid][pCrates] = 0;
-
- SetPVarInt(playerid, "_TP_HACK_WARNINGS", GetPVarInt(playerid,"_TP_HACK_WARNINGS")+1);
- if(GetPVarInt(playerid,"_TP_HACK_WARNINGS") >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has been banned, reason: Teleport hacking.", GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was banned, reason: Teleport hacking.", GetPlayerNameEx(playerid), playerip);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- return 1;
- }
- DisablePlayerCheckpoint(playerid);
- new level = PlayerInfo[playerid][pSmugSkill];
- if(level >= 0 && level <= 50)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $250 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 250);
- }
- else if(level >= 51 && level <= 100)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $300 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 300);
- }
- else if(level >= 101 && level <= 200)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $350 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 350);
- }
- else if(level >= 201 && level <= 400)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $400 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 400);
- }
- else if(level >= 401)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You received $450 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 450);
- }
- DeletePVar(playerid, "CrateDeliver");
- PlayerInfo[playerid][pCrates] = 0;
- Points[h][Stock] += 10;
-
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pSmugSkill] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[playerid][pSmugSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pSmugSkill]++;
- }
-
- format(string, sizeof(string), " CRACK AVAILABLE: %d grams.", Points[h][Stock]);
- UpdateDynamic3DTextLabelText(Points[h][TextLabel], COLOR_YELLOW, string);
- return 1;
- }
- else if(Points[h][Type] == 2 && GetPVarInt(playerid, "MatDeliver") == Points[h][MatPoint] && IsPlayerInRangeOfPoint(playerid, 6.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
- {
- if(GetPVarInt(playerid, "Packages") > 0)
- {
- new string[128];
- if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s was possibly teleport matrunning.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- // format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- // Log("logs/hack.log", string);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The factory gave you 350 materials for your 15 materials packages.");
- DeletePVar(playerid, "Packages");
- DeletePVar(playerid, "MatDeliver");
- DisablePlayerCheckpoint(playerid);
-
- SetPVarInt(playerid, "_TP_HACK_WARNINGS", GetPVarInt(playerid,"_TP_HACK_WARNINGS")+1);
- if(GetPVarInt(playerid,"_TP_HACK_WARNINGS") >= 3)
- {
- format(string, sizeof(string), "AdmCmd: %s has been banned, reason: Teleport hacking.", GetPlayerNameEx(playerid));
- SendClientMessageToAllEx(COLOR_LIGHTRED, string);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(string, sizeof(string), "AdmCmd: %s (IP:%s) was banned, reason: Teleport hacking.", GetPlayerNameEx(playerid), playerip);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", string);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- return 1;
- }
- new payout = (25)*(GetPVarInt(playerid, "Packages"));
- PlayerInfo[playerid][pMats] += 350;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* The factory gave you 350 materials for your 15 materials packages.");
- DeletePVar(playerid, "Packages");
- DeletePVar(playerid, "MatDeliver");
- DisablePlayerCheckpoint(playerid);
- for(new p = 0; p < sizeof(FamilyInfo); p++)
- {
- if(strcmp(Points[h][Owner], FamilyInfo[p][FamilyName], true) == 0)
- {
- FamilyInfo[p][FamilyBank] = FamilyInfo[p][FamilyBank]+(payout/3);
- //SendClientMessage(playerid, COLOR_WHITE, " Family owner recieved 33 percent of the cost.");
- }
- }
- return 1;
- }
- }
- }
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- forward ShowPlayerBeaconForCops(playerid);
- public ShowPlayerBeaconForCops(playerid)
- {
- foreach(Player, i)
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, COP_GREEN_COLOR);
- }
- }
- return 1;
- }
- forward HidePlayerBeaconForCops(playerid);
- public HidePlayerBeaconForCops(playerid)
- {
- foreach(Player, i)
- {
- if(IsACop(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, TEAM_HIT_COLOR);
- }
- }
- SetPlayerToTeamColor(playerid);
- return 1;
- }
- forward ShowPlayerBeaconForMedics(playerid);
- public ShowPlayerBeaconForMedics(playerid)
- {
- foreach(Player, i)
- {
- if(IsInLSFMD(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, COP_GREEN_COLOR);
- }
- }
- return 1;
- }
- forward HidePlayerBeaconForMedics(playerid);
- public HidePlayerBeaconForMedics(playerid)
- {
- foreach(Player, i)
- {
- if(IsInLSFMD(i))
- {
- SetPlayerMarkerForPlayer(i, playerid, TEAM_HIT_COLOR);
- }
- }
- SetPlayerToTeamColor(playerid);
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid) {
- // Advance Mining and lumber jack job
- if(pickupid == pickup777)
- {
- if(onminer[playerid] == 0) ShowPlayerDialogEx(playerid, DIALOG_STARTJOB, DIALOG_STYLE_MSGBOX, "{DDFF00}Mining Job", "{FFFFFF}Would you like this to be hired as a {DDFF00}miner?", "Yes", "No");
- else ShowPlayerDialogEx(playerid, DIALOG_ENDJOB, DIALOG_STYLE_MSGBOX, "{FFFFFF}Mining Job", "{FFFFFF}Would you like to go off duty as a {DDFF00}miner?", "Yes", "No");
- }
- #if defined TREASURE_HUNT_ENABLED
- if(iHuntPickup == pickupid && GetPVarType(playerid, "fT") == 0 && AdminDuty[playerid] != 1) {
- new string[128];
- format(string, sizeof(string), "%s has just found a treasure package in the hunt.", GetPlayerNameEx(playerid));
- Log("logs/treasurehunt.log", string);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has just found a treasure package in the hunt.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- AskHuntQuestion(playerid);
- SetPVarInt(playerid, "fT", 1);
- }
- #endif
- if(pickupid == dildo) {
- GivePlayerValidWeapon(playerid, 10, 60000);
- }
- return 1;
- }
- public OnEnterExitModShop(playerid, enterexit, interiorid) {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid) {
- if(!(1 <= GetPlayerInterior(playerid) <= 3) && PlayerInfo[playerid][pAdmin] < 5 && !GetPVarType(playerid, "unMod")) {
- new
- szMessage[128];
- format(szMessage, sizeof(szMessage), "AdmWarning: %s may be hacking vehicle modifications (applied %s %s to their %s).", GetPlayerNameEx(playerid), partName(componentid), partType(GetVehicleComponentType(componentid)), GetVehicleName(vehicleid));
- ABroadCast(COLOR_YELLOW, szMessage, 2);
- }
- if(GetPVarType(playerid, "unMod")) DeletePVar(playerid, "unMod");
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- forward TazerTimer(playerid);
- public TazerTimer(playerid)
- {
- if(TazerTimeout[playerid] > 0)
- {
- new string[128];
- format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n~~n~~r~Tazer reloading... ~w~%d", TazerTimeout[playerid]);
- GameTextForPlayer(playerid, string,1500, 3);
- TazerTimeout[playerid] -= 1;
- SetTimerEx("TazerTimer",1000,false,"d",playerid);
- }
- return 1;
- }
- Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ, Float:ObjX, Float:ObjY, Float:ObjZ, Float:FrX, Float:FrY, Float:FrZ)
- {
- new Float:TGTDistance;
- // get distance from camera to target
- TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));
- new Float:tmpX, Float:tmpY, Float:tmpZ;
- tmpX = FrX * TGTDistance + CamX;
- tmpY = FrY * TGTDistance + CamY;
- tmpZ = FrZ * TGTDistance + CamZ;
- return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
- }
- stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
- {
- new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
- GetPlayerCameraPos(playerid, cx, cy, cz);
- GetPlayerCameraFrontVector(playerid, fx, fy, fz);
- return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
- }
- public OnPlayerInteriorChange(playerid,newinteriorid,oldinteriorid)
- {
- PlayerInfo[playerid][pInt] = newinteriorid;
- if(GettingSpectated[playerid] != 999)
- {
- new spectator = GettingSpectated[playerid];
- if(!IsPlayerConnected(spectator))
- {
- GettingSpectated[playerid] = 999;
- Spectate[spectator] = 999;
- }
- else
- {
- PlayerSpectatePlayer(spectator, playerid);
- SetPlayerInterior(spectator, GetPlayerInterior(playerid));
- SetPlayerVirtualWorld(spectator, GetPlayerVirtualWorld(playerid));
- }
- }
- Streamer_Update(playerid);
- }
- public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
- {
- if(pTazer[issuerid] == 1 && GetPlayerState(issuerid) == PLAYER_STATE_ONFOOT && weapon == 23 && amount > 10)
- {
- if(TazerTimeout[issuerid] > 0)
- {
- return 1;
- }
- if(PlayerCuffed[playerid] == 0 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(playerid)))
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- if(!IsPlayerInRangeOfPoint(playerid, 18.5, X, Y, Z))
- {
- SendClientMessage(issuerid, COLOR_GRAD2, "Your tazer can't reach that far!");
- return 1;
- }
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(issuerid, COLOR_GRAD2, "Admins can't be tazed!");
- return 1;
- }
- new string[44 + (MAX_PLAYER_NAME * 2)];
- format(string, sizeof(string), "* %s fires their tazer at %s, stunning them.", GetPlayerNameEx(issuerid), GetPlayerNameEx(playerid));
- ProxDetector(30.0, issuerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GameTextForPlayer(playerid, "~r~Tazed", 3500, 3);
- TogglePlayerControllable(playerid, 0);
- ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,0,1,1,1,1,1);
- GetPlayerPos(playerid, X, Y, Z);
- PlayerPlaySound(playerid, 1085, X, Y, Z);
- PlayerPlaySound(playerid, 1085, X, Y, Z);
- PlayerCuffed[playerid] = 1;
- SetPVarInt(playerid, "PlayerCuffed", 1);
- PlayerCuffedTime[playerid] = 16;
- SetPVarInt(playerid, "IsFrozen", 1);
- //Frozen[i] = 1;
- TazerTimeout[issuerid] = 4;
- SetTimerEx("TazerTimer",1000,false,"d",issuerid);
- GameTextForPlayer(issuerid, "~n~~n~~n~~n~~n~~n~~n~~n~~r~Tazer reloading... ~w~5", 1500,3);
- return 1;
- }
- if(GetPlayerHealth(playerid) < 49.0 && !IsPlayerNPC(playerid) && !pBlood[playerid])
- {
- ShowBlood(playerid, 2);
- pBlood[playerid] = true;
- }
- if(PlayerInfo[playerid][pNoDamage])
- {
- GameTextForPlayer(issuerid, "That player has god-mode turned on!", 5000, 3);
- GameTextForPlayer(playerid, "God mode is on!", 5000, 3);
- return 0;
- }
- if(playerid != INVALID_PLAYER_ID && PlayerInfo[playerid][pNoDamage])
- {
- return 0; // for fall damage while on /god
- }
- }
- return 1;
- }
- public OnPlayerDamageDone(playerid, Float:amount, issuerid, weapon, bodypart)
- {
- new string[50];
- if(playerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID) // motherfucker caused us to start out with bed rep BIATCH
- {
- if(PlayerInfo[playerid][pLevel] >= 1)
- {
- format(string, sizeof(string), "~g~Damage: You hit %s for %.0f damage.", GetPlayerNameEx(playerid), amount);
- TextDrawSetString(Damage[issuerid], string);
- TextDrawShowForPlayer(issuerid, Damage[issuerid]);
- PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 15.0);
- KillTimer(PlayerInfo[issuerid][pDamageTimer]);
- PlayerInfo[issuerid][pDamageTimer] = SetTimerEx("DestroyDamageTD", 1500, false, "i", issuerid);
- }
- if(PlayerInfo[playerid][pLevel] >= 1)
- {
- format(string, sizeof(string), "~r~Damage: %s hit you for %.0f damage.", GetPlayerNameEx(issuerid), amount);
- TextDrawSetString(Damage[playerid], string);
- TextDrawShowForPlayer(playerid, Damage[playerid]);
- PlayerPlaySound(playerid, 17802, 0.0, 0.0, 15.0);
- KillTimer(PlayerInfo[playerid][pDamageTimer]);
- PlayerInfo[playerid][pDamageTimer] = SetTimerEx("DestroyDamageTD", 1500, false, "i", playerid);
- }
-
- }
- return 1;
- }
- stock ResetPlayerVariables(playerid)
- {
- // ** GENERAL
- pCBugging[playerid] = false;
- // ** TIMERS
- KillTimer(ptmCBugFreezeOver[playerid]);
- // ** TIMESTAMPS
- ptsLastFiredWeapon[playerid] = 0;
- return 1;
- }
- forward CBugFreezeOver(playerid);
- public CBugFreezeOver(playerid)
- {
- ClearAnimations(playerid);
- TogglePlayerControllable(playerid, true);
- ClearAnimations(playerid);
- pCBugging[playerid] = false;
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
- if(IsPlayerNPC(playerid)) return 1;
- if (((newkeys & KEY_WALK && newkeys & KEY_UP) || (newkeys & KEY_WALK && newkeys & KEY_DOWN) || (newkeys & KEY_WALK && newkeys & KEY_LEFT) || (newkeys & KEY_WALK && newkeys & KEY_RIGHT))
- || ((oldkeys & KEY_WALK && newkeys & KEY_UP) || (oldkeys & KEY_WALK && newkeys & KEY_DOWN) || (oldkeys & KEY_WALK && newkeys & KEY_LEFT) || (oldkeys & KEY_WALK && newkeys & KEY_RIGHT))
- || ((newkeys & KEY_WALK && oldkeys & KEY_UP) || (newkeys & KEY_WALK && oldkeys & KEY_DOWN) || (newkeys & KEY_WALK && oldkeys & KEY_LEFT) || (newkeys & KEY_WALK && oldkeys & KEY_RIGHT))
- && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
- walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);
- }
- if(!pCBugging[playerid] && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(PRESSED(KEY_FIRE))
- {
- switch(GetPlayerWeapon(playerid))
- {
- case WEAPON_DEAGLE, WEAPON_SHOTGUN, WEAPON_SNIPER, WEAPON_SHOTGSPA:
- {
- ptsLastFiredWeapon[playerid] = gettime();
- }
- }
- }
- else if(PRESSED(KEY_CROUCH))
- {
- if((gettime() - ptsLastFiredWeapon[playerid]) < 1)
- {
- if(Dueling[playerid] == INVALID_PLAYER_ID && GetPVarInt(playerid, "PBM") == 0 && GetPVarInt(playerid, "EventToken") == 0)
- {
- TogglePlayerControllable(playerid, true);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid, "SAMP", "FishingIdle", 3.0,1,1,0,0,0);
- pCBugging[playerid] = true;
- SCM(playerid, COLOR_REALREDS, "WARNING: Do not abuse C-bug. Gun discharge exploit is forbidden outside paintball and events.");
- KillTimer(ptmCBugFreezeOver[playerid]);
- ptmCBugFreezeOver[playerid] = SetTimerEx("CBugFreezeOver", 1500, false, "i", playerid);
- }
- }
- }
- }
- if((newkeys & KEY_FIRE) && GetPVarInt(playerid, "SpeedRadar") == 1 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(GetPVarInt(playerid, "RadarTimeout") == 0)
- {
- if(GetPlayerWeapon(playerid) == 43)
- {
- new Float:x,Float:y,Float:z;
- foreach(Player, i)
- {
- if(IsPlayerStreamedIn(i, playerid))
- {
- GetPlayerPos(i,x,y,z);
- if(IsPlayerAimingAt(playerid,x,y,z,10))
- {
- new string[68];
- format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~b~License Plate: ~w~%d~n~~b~Speed: ~w~%.0f MPH", GetPlayerVehicleID(i), fVehSpeed[i]);
- GameTextForPlayer(playerid, string,3500, 3);
- format(string, sizeof(string), "License Plate: %d. Speed: %.0f MPH", GetPlayerVehicleID(i), fVehSpeed[i]);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SetPVarInt(playerid, "RadarTimeout", 1);
- SetTimerEx("RadarCooldown", 3000, 0, "i", playerid);
- return 1;
- }
- }
- }
- }
- }
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_BEER && (newkeys & KEY_FIRE))
- {
- if(GetPVarInt(playerid, "DrinkCooledDown") == 1)
- {
- new Float: cHealth;
- GetPlayerHealth(playerid, cHealth);
- if((cHealth + 5) >= 100) {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_GREY, "* You finish up the drink and throw it away.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- else if(cHealth <= 95) {
- SetPlayerHealth(playerid, cHealth+5);
- }
- else {
- SendClientMessage(playerid, COLOR_GREY, "* You finish up the drink and throw it away.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- DeletePVar(playerid, "DrinkCooledDown");
- SetTimerEx("DrinkCooldown", 2500, 0, "i", playerid);
- return 1;
- }
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_WINE && (newkeys & KEY_FIRE))
- {
- if(GetPVarInt(playerid, "DrinkCooledDown") == 1)
- {
- new Float: cHealth;
- GetPlayerHealth(playerid, cHealth);
- if((cHealth + 8) >= 100) {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_GREY, "* You finish up the drink and throw it away.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- } else if(cHealth <= 92) {
- SetPlayerHealth(playerid, cHealth+8);
- } else {
- SendClientMessage(playerid, COLOR_GREY, "* You finish up the drink and throw it away.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- DeletePVar(playerid, "DrinkCooledDown");
- SetTimerEx("DrinkCooldown", 2500, 0, "i", playerid);
- return 1;
- }
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_SPRUNK && (newkeys & KEY_FIRE))
- {
- if(GetPVarInt(playerid, "DrinkCooledDown") == 1)
- {
- new Float: cHealth;
- GetPlayerHealth(playerid, cHealth);
- if((cHealth + 2) >= 100) {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_GREY, "* You finish up the drink and throw it away.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- } else if(cHealth <= 98) {
- SetPlayerHealth(playerid, cHealth+2);
- } else {
- SendClientMessage(playerid, COLOR_GREY, "* You finish up the drink and throw it away.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- }
- DeletePVar(playerid, "DrinkCooledDown");
- SetTimerEx("DrinkCooldown", 2500, 0, "i", playerid);
- return 1;
- }
- }
- if(IsKeyJustDown(KEY_SECONDARY_ATTACK, newkeys, oldkeys))
- {
- if(GetPVarInt(playerid, "UsingSprunk"))
- {
- DeletePVar(playerid, "UsingSprunk");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- return 1;
- }
- }
- if(IsKeyJustDown(KEY_FIRE, newkeys, oldkeys))
- {
- if(PlayerInfo[playerid][pC4Used] == 1)
- {
- if(GoChase[playerid] < 999)
- {
- if(IsPlayerInRangeOfPoint(GoChase[playerid], 12.0, GetPVarFloat(playerid, "DYN_C4_FLOAT_X"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Y"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Z")))
- {
- if(PlayerInfo[GoChase[playerid]][pHeadValue] >= 1)
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- new
- string[128],
- name2[MAX_PLAYER_NAME],
- name[MAX_PLAYER_NAME];
- new takemoney = PlayerInfo[GoChase[playerid]][pHeadValue] / 4 * 2;
- name = GetPlayerNameEx(GoChase[playerid]);
- GivePlayerCash(playerid, takemoney);
- GivePlayerCash(GoChase[playerid], -takemoney);
- format(string,sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d",GetPlayerNameEx(playerid),GetPlayerNameEx(GoChase[playerid]),PlayerInfo[GoChase[playerid]][pHeadValue] / 4 * 2);
- SendFamilyMessage(4, COLOR_YELLOW, string);
- format(string,sizeof(string),"You have been critically injured by a Hitman and lost $%d!",takemoney);
- ResetPlayerWeaponsEx(GoChase[playerid]);
- // SpawnPlayer(GoChase[playerid]);
- SendClientMessage(GoChase[playerid], COLOR_YELLOW, string);
- foreach(Player, i) {
- name2 = GetPlayerNameEx(i);
- if(!strcmp(PlayerInfo[GoChase[playerid]][pContractBy], name2, true)) {
- if(!IsPlayerStreamedIn(i, GoChase[playerid])) {
- format(string, sizeof(string), "SMS: The deed (on %s) has been done, Sender: MOLE (555)", name);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- }
- PlayerInfo[GoChase[playerid]][pHeadValue] = 0;
- strcpy(PlayerInfo[GoChase[playerid]][pContractBy], "Nobody", 64);
- strcpy(PlayerInfo[GoChase[playerid]][pContractDetail], "None", 64);
- PlayerInfo[playerid][pCHits] += 1;
- SetPlayerHealth(GoChase[playerid], 0.0);
- // KillEMSQueue(GoChase[playerid]);
- GotHit[GoChase[playerid]] = 0;
- GetChased[GoChase[playerid]] = 999;
- GoChase[playerid] = 999;
- }
- }
- }
- }
- PlayerInfo[playerid][pC4Used] = 0;
- CreateExplosion(GetPVarFloat(playerid, "DYN_C4_FLOAT_X"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Y"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Z"), 7, 8);
- PickUpC4(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "Bomb has been detonated!");
- PlayerInfo[playerid][pC4Used] = 0;
- return 1;
- }
- if(GetPVarInt(playerid, "MovingStretcher") != -1)
- {
- KillTimer(GetPVarInt(playerid, "TickEMSMove"));
- MoveEMS(playerid);
- return 1;
- }
- if(GetPVarInt(playerid, "editingcdvehpos"))
- {
- TogglePlayerControllable(playerid, false);
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITPARK,DIALOG_STYLE_MSGBOX,"Warning:","Is this the new position you want?","Ok","Cancel");
- }
- if(GetPVarInt(playerid, "editingcdvehnew"))
- {
- TogglePlayerControllable(playerid, false);
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITPARK,DIALOG_STYLE_MSGBOX,"Warning:","Is this the new position you want?","Ok","Cancel");
- }
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(GetPVarInt(playerid, "UsingSprunk"))
- {
- new hpint = floatround(health, floatround_round);
- if(hpint >= 100)
- {
- SendClientMessage(playerid, COLOR_GREY, " You already have full health.");
- return 1;
- }
- else
- {
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health+1.0);
- }
- }
- }
- if(IsKeyJustDown(KEY_YES, newkeys, oldkeys)) {
- if(GetPVarInt(playerid, "PBM") > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
- return 1;
- }
- if(PlayerCuffed[playerid] >= 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
- if(PlayerInfo[playerid][pJailed] > 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
- return 1;
- }
-
- if((IsPlayerInRangeOfPoint(playerid, 5.0, 130.24, 751.72, 940.02)) || (IsPlayerInRangeOfPoint(playerid, 5.0, 109.19, 752.59, 940.02)) || (IsPlayerInRangeOfPoint(playerid, 5.0, 119.77, 750.97,940.02)))
- {
- SetPlayerPos(playerid, 102.71, 751.71, 950.31);
- }
-
- new string[128];
-
- for(new b = 1; b < sizeof(BusinessInfo); b++)//Loops through all the businesses.
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BusinessInfo[b][bEntranceX], BusinessInfo[b][bEntranceY], BusinessInfo[b][bEntranceZ]))//Checks if player is near the entrance.
- {
- if(BusinessInfo[b][bLocked] == 1) return SendClientMessage(playerid, COLOR_GREY, "This Business is locked!");//Checks it it is locked/
- format(string, sizeof(string), "* %s has entered %s.", GetPlayerNameEx(playerid), BusinessInfo[b][bName]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "%s - %s", BusinessInfo[b][bName], BusinessInfo[b][bIT]);
- SCM(playerid, -1, string);
- SetPlayerPos(playerid, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ]);
- SetPlayerFacingAngle(playerid, BusinessInfo[b][bExitA]);
- SetPlayerInterior(playerid, BusinessInfo[b][bInsideInt]);
- SetPlayerVirtualWorld(playerid, BusinessInfo[b][bInsideWorld]);
- InsideBiz[playerid] = b;
- /*foreach(Player, i)
- {
- GameTextForPlayer(i, "Please use ~r~/buy~w~ to buy a products", 5000, 5);
- }*/
- return 1;
- }
-
- if(IsPlayerInRangeOfPoint(playerid, 3.0, BusinessInfo[b][bExitX], BusinessInfo[b][bExitY], BusinessInfo[b][bExitZ]) && GetPlayerVirtualWorld(playerid) == BusinessInfo[b][bInsideWorld])//Checks if player is in near the exit.
- {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerPos(playerid, BusinessInfo[b][bEntranceX], BusinessInfo[b][bEntranceY], BusinessInfo[b][bEntranceZ]);
- SetPlayerFacingAngle(playerid, BusinessInfo[b][bEntranceA]);
- SetPlayerInterior(playerid, BusinessInfo[b][bInt]);
- SetPlayerVirtualWorld(playerid, BusinessInfo[b][bWorld]);
- InsideBiz[playerid] = 0;
- return 1;
- }
-
- }
-
- for(new i = 0; i < sizeof(DDoorsInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3.0,DDoorsInfo[i][ddExteriorX], DDoorsInfo[i][ddExteriorY], DDoorsInfo[i][ddExteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddExteriorVW]) {
- if(DDoorsInfo[i][ddVIP] > 0 && PlayerInfo[playerid][pDonator] < DDoorsInfo[i][ddVIP]) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, you're not a high enough Donator level.");
- return 1;
- }
- if(DDoorsInfo[i][ddGang] > 0) {
- if(PlayerInfo[playerid][pGang] != DDoorsInfo[i][ddGang]) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, this door is gang restricted.");
- return 1;
- }
- }
- if(DDoorsInfo[i][ddFaction] > 0)
- {
- if(PlayerInfo[playerid][pFaction] != DDoorsInfo[i][ddFaction])
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, this door is faction restricted.");
- return 1;
- }
- }
- if(DDoorsInfo[i][ddAdmin] > 0 && PlayerInfo[playerid][pAdmin] < DDoorsInfo[i][ddAdmin])
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, you're not a high enough admin level.");
- return 1;
- }
- if(DDoorsInfo[i][ddWanted] > 0 && PlayerInfo[playerid][pWantedLevel] != 0) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't enter, this door restricts those with wanted levels.");
- return 1;
- }
- if(DDoorsInfo[i][ddLocked] == 1) {
- return SendClientMessage(playerid, COLOR_GRAD2, "This door is currently locked.");
- }
- format(string, sizeof(string), "* %s has entered %s.", GetPlayerNameEx(playerid), DDoorsInfo[i][ddDescription]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,DDoorsInfo[i][ddInteriorInt]);
- PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddInteriorInt];
- PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddInteriorVW];
- SetPVarInt(playerid, "DoorID", i);
- SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddInteriorVW]);
- if(DDoorsInfo[i][ddCustomInterior]) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADING...");
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorA]);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorVW]);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddInteriorInt]);
- }
- else {
- SetPlayerPos(playerid,DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- SetPlayerFacingAngle(playerid,DDoorsInfo[i][ddInteriorA]);
- SetCameraBehindPlayer(playerid);
- }
- foreach(Player, x)
- {
- if(IsABoomboxNearby(DDoorsInfo[i][ddInteriorX] ,DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ], x) < 150.0 && DDoorsInfo[i][ddInteriorVW] == BoomboxInfo[x][bbVW] && DDoorsInfo[i][ddInteriorInt] == BoomboxInfo[x][bbInt])
- {
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
- }
- }
- return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- }
- }
- for(new i = 0; i < sizeof(HouseInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ])) {
- if(PlayerInfo[playerid][pHouse] == i || PlayerInfo[playerid][pHouse2] == i || HouseInfo[i][hLock] == 0 || PlayerInfo[playerid][pRenting] == i) {
- if(PlayerInfo[playerid][pHouse] == i || PlayerInfo[playerid][pHouse2] == i) {
- format(string, sizeof(string), "* %s has entered their house.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else {
- format(string, sizeof(string), "* %s has entered %s's house.", GetPlayerNameEx(playerid), HouseInfo[i][hOwner]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
- PlayerInfo[playerid][pVW] = i+60000;
- SetPlayerVirtualWorld(playerid, i+60000);
- SetPVarInt(playerid, "HouseID", i);
- if(HouseInfo[i][hCustomInterior] == 1) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
- SetCameraBehindPlayer(playerid);
- if(PlayerInfo[playerid][pHouse] == i || PlayerInfo[playerid][pHouse2] == i) {
- GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
- }
- foreach(Player, x)
- {
- if(IsABoomboxNearby(HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ], x) < 150.0 && i+60000 == BoomboxInfo[x][bbVW] && HouseInfo[i][hHInteriorWorld] == BoomboxInfo[x][bbInt])
- {
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
- }
- }
- Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- }
- else {
- GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
- }
- return 1;
- }
- }
-
- // Hitman HQ
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1938.545898, 165.629531, 37.281250)) {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4) {
- SetPlayerVirtualWorld(playerid, 666420);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerInterior(playerid, 42);
- PlayerInfo[playerid][pInt] = 42;
- SetPlayerPos(playerid, 1277.019165, -758.428771, 5080.750000);
- SetPlayerInterior(playerid, 42);
- SetPlayerInterior(playerid, 42);
- SetPlayerFacingAngle(playerid, 358.16);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50512);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 6.0, 2804.870, -1070.357421, 30.386))
- {
- if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerPos(playerid, 959.6879,677.0198,16.7539);
- SetPlayerFacingAngle(playerid, 186.9793);
- SetCameraBehindPlayer(playerid);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 959.6879,677.0198,16.7539);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- SetPlayerInterior(playerid, 0);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
- SetPlayerVirtualWorld(playerid, 0);
- PutPlayerInVehicle(playerid, tmpcar, 0);
- }
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5.0, 959.6879,677.0198,16.7539))
- {
- if(PlayerInfo[playerid][pFaction] == 10 || PlayerInfo[playerid][pLeader] == 10)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerPos(playerid, 2804.870, -1070.357421, 30.386);
- SetPlayerFacingAngle(playerid, 267.15);
- SetCameraBehindPlayer(playerid);
- if(GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 2804.870, -1070.357421, 30.386);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
- SetPlayerInterior(playerid, 0);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
- SetPlayerVirtualWorld(playerid, 0);
- PutPlayerInVehicle(playerid, tmpcar, 0);
- }
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1974.8, -1671.1, 15.9))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 666420);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerInterior(playerid, 42);
- PlayerInfo[playerid][pInt] = 42;
- SetPlayerPos(playerid, 1256.2, -759.0, 5080.9);
- SetPlayerFacingAngle(playerid, 358.16);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50513);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 2205.8, -987.3 ,63.9))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 666420);
- PlayerInfo[playerid][pVW] = 666420;
- SetPlayerInterior(playerid, 42);
- PlayerInfo[playerid][pInt] = 42;
- SetPlayerPos(playerid, 1266.2, -758.8, 5080.9);
- SetPlayerFacingAngle(playerid, 358.16);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50514);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SendClientMessage(playerid, COLOR_WHITE, "You can /order weaponry in the armory room.");
- }
- }
- // The Lubu Gentlemen's Club
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 511.817230, -1510.971679, 14.566996)) {
- format(string, sizeof(string), "* %s has entered The Lubu Gentlemen's Club.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 373737);
- PlayerInfo[playerid][pVW] = 373737;
- SetPlayerInterior(playerid, 37);
- PlayerInfo[playerid][pInt] = 37;
- SetPlayerPos(playerid, -1077.946533, 613.206665, 1116.507812);
- SetPlayerFacingAngle(playerid, 92.42);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50515);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=242774", -1087.677978, 615.239807, 1116.507812, 40.0, 1);
- return 1;
- }
- // The Tableau Club
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 561.802795, -1506.722412, 14.548986)) {
- format(string, sizeof(string), "* %s has entered The Tableau Club.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 363636);
- PlayerInfo[playerid][pVW] = 363636;
- SetPlayerInterior(playerid, 36);
- PlayerInfo[playerid][pInt] = 36;
- SetPlayerPos(playerid, 308.045654, 1053.886840, 1098.540039);
- SetPlayerFacingAngle(playerid, 267.57);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50516);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200", 321.139465, 1034.947753, 1098.914062, 120.0, 1);
- return 1;
- }
- // The Tableau Club (VIP ROOM)
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 307.904296, 1025.602294, 1098.540039)) {
- if(GetPlayerCash(playerid) >= 100) {
- format(string, sizeof(string), "* %s has entered The Tableau VIP Room.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- GivePlayerCash(playerid, -100);
- GameTextForPlayer(playerid, "~r~-$100", 3000, 1);
- SetPlayerVirtualWorld(playerid, 363636);
- PlayerInfo[playerid][pVW] = 363636;
- SetPlayerInterior(playerid, 36);
- PlayerInfo[playerid][pInt] = 36;
- SetPVarInt(playerid, "DoorID", 50517);
- SetPlayerPos(playerid, 293.066436, 1029.785278, 1104.560058);
- SetPlayerFacingAngle(playerid, 352.47);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_GREY, " You do not have the cash for that.");
- }
- // Santa Maria Surfer's Lounge
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 387.958374, -1870.688110, 7.835937)) {
- format(string, sizeof(string), "* %s has entered Santa Maria Surfer's Lounge.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 353535);
- PlayerInfo[playerid][pVW] = 353535;
- SetPlayerInterior(playerid, 35);
- PlayerInfo[playerid][pInt] = 35;
- SetPlayerPos(playerid, 271.742034, 1074.419677, 5096.750000);
- SetPlayerFacingAngle(playerid, 86.54);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", 50518);
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585", 271.742034, 1074.419677, 5096.750000, 120.0, 1);
- return 1;
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- new closestcar = GetClosestCar(playerid, vehicleid);
- if(IsPlayerInRangeOfVehicle(playerid, closestcar, 6.0) && GetVehicleModel(closestcar) == 519) {
- if(VehicleStatus{closestcar}
- == 1) return SendClientMessage(playerid, COLOR_WHITE, "You're not allowed to enter this Shamal as it's been damaged!");
- format(string, sizeof(string), "* %s enters the Shamal airplane as a passenger.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerPos(playerid, 2.509036, 23.118730, 1199.593750);
- SetPlayerFacingAngle(playerid, 82.14);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pVW] = closestcar;
- SetPlayerVirtualWorld(playerid, closestcar);
- SetPVarInt(playerid, "DoorID", 50519);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerInterior(playerid, 1);
- InsideShamal[playerid] = closestcar;
- SendClientMessage(playerid, COLOR_WHITE, "Type /exit near the door to exit the vehicle, or /window to look outside.");
-
- foreach(Player, x)
- {
- if(IsABoomboxNearby(2.509036, 23.118730, 1199.593750, x) < 150.0 && closestcar == BoomboxInfo[x][bbVW] && BoomboxInfo[x][bbInt] == 1)
- {
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[BoomboxInfo[x][bbStation]-1][radiourl], BoomboxInfo[x][bbPosX], BoomboxInfo[x][bbPosY], BoomboxInfo[x][bbPosZ], 50.0, 1);
- }
- }
- return 1;
- }
- for(new i = 0; i < sizeof(DDoorsInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3,DDoorsInfo[i][ddInteriorX], DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddInteriorVW]) {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,DDoorsInfo[i][ddExteriorInt]);
- PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddExteriorInt];
- SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddExteriorVW]);
- SetPVarInt(playerid, "DoorID", 99999);
- PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddExteriorVW];
- if(DDoorsInfo[i][ddCustomExterior]) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
- SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorA]);
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorVW]);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorInt]);
- }
- else {
- SetPlayerPos(playerid,DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
- SetPlayerFacingAngle(playerid, DDoorsInfo[i][ddExteriorA]);
- SetCameraBehindPlayer(playerid);
- }
- return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
- }
- }
- for(new i = 0; i < sizeof(HouseInfo); i++) {
- if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]) && PlayerInfo[playerid][pVW] == i+60000) {
- format(string, sizeof(string), "* %s has exited the house.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- if(HouseInfo[i][hCustomExterior]) {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++) {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerPos(playerid,HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
- SetPlayerFacingAngle(playerid, HouseInfo[i][hExteriorA]);
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- return Streamer_UpdateEx(playerid, HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
- }
- }
- // Hitman HQ
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1277.019165, -758.428771, 5080.750000) && (GetPlayerVirtualWorld(playerid) == 666420)) {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4) {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 1938.545898, 165.629531, 37.281250);
- SetPlayerFacingAngle(playerid, 338.54);
- SetCameraBehindPlayer(playerid);
- SetPVarInt(playerid, "DoorID", -1);
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1256.2, -759.0, 5080.9) && (GetPlayerVirtualWorld(playerid) == 666420))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 1974.8, -1671.1, 15.9);
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerFacingAngle(playerid, 338.54);
- SetCameraBehindPlayer(playerid);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1266.2, -758.8, 5080.9) && (GetPlayerVirtualWorld(playerid) == 666420))
- {
- if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerPos(playerid, 2205.8, -987.3 ,63.9);
- SetPlayerFacingAngle(playerid, 338.54);
- SetCameraBehindPlayer(playerid);
- }
- }
- // The Lubu Gentlemen's Club
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -1077.946533, 613.206665, 1116.507812) && (GetPlayerVirtualWorld(playerid) == 373737)) {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 511.817230, -1510.971679, 14.566996);
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerFacingAngle(playerid, 272.11);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- // The Tableau Club
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 308.045654, 1053.886840, 1098.540039) && (GetPlayerVirtualWorld(playerid) == 363636)) {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 561.802795, -1506.722412, 14.548986);
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerFacingAngle(playerid, 86.78);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- // The Tableau Club (VIP ROOM)
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 293.066436, 1029.785278, 1104.560058) && (GetPlayerVirtualWorld(playerid) == 363636)) {
- SetPlayerVirtualWorld(playerid, 363636);
- PlayerInfo[playerid][pVW] = 363636;
- SetPlayerInterior(playerid, 36);
- PlayerInfo[playerid][pInt] = 36;
- SetPlayerPos(playerid, 307.904296, 1025.602294, 1098.540039);
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerFacingAngle(playerid, 264.06);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- // Santa Maria Surfer's Lounge
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 271.742034, 1074.419677, 5096.750000) && (GetPlayerVirtualWorld(playerid) == 353535)) {
- format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid, 387.958374, -1870.688110, 7.835937);
- SetPVarInt(playerid, "DoorID", -1);
- SetPlayerFacingAngle(playerid, 89.99);
- SetCameraBehindPlayer(playerid);
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- // Shamal
- else if(InsideShamal[playerid] != INVALID_VEHICLE_ID && IsPlayerInRangeOfPoint(playerid,3,2.509036, 23.118730, 1199.593750)) {
- format(string, sizeof(string), "* %s exits the Shamal airplane.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519) {
- PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(playerid, 46, 60000);
- SetPlayerPos(playerid, 0.000000, 0.000000, 420.000000);
- }
- else {
- new Float:X, Float:Y, Float:Z;
- GetVehiclePos(InsideShamal[playerid], X, Y, Z);
- SetPlayerPos(playerid, X-4, Y-2.3, Z);
- new Float:XB, Float:YB, Float:ZB;
- GetVehiclePos(InsideShamal[playerid], XB, YB, ZB);
- if(ZB > 50.0) {
- PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(playerid, 46, 60000);
- }
- }
- PlayerInfo[playerid][pVW] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerInterior(playerid, 0);
- InsideShamal[playerid] = INVALID_VEHICLE_ID;
- SetPVarInt(playerid, "DoorID", -1);
- }
- }
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- OnPlayerChangeWeapon(playerid, newweapon)
- {
- if(pTazer[playerid] == 1) SetPlayerArmedWeapon(playerid,23);
-
- if(IsPlayerInRangeOfPoint(playerid, 10.0, -20.229053,17.140705,467.120300))
- {
- SetPlayerArmedWeapon(playerid,0); // disables weapon
- SendClientMessage(playerid, COLOR_REALRED, "You can't switch a weapon since you are in Black Market.");
- SendClientMessage(playerid, -1, "RULE: No shooting or killing inside blackmarket, else prison for 5 minutes.");
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 10.0, 1073.609008,-1698.879638,-20.454763))
- {
- SetPlayerArmedWeapon(playerid,0); // disables weapon
- SendClientMessage(playerid, COLOR_REALRED, "You can't switch a weapon since you are in The Maximus Club.");
- SendClientMessage(playerid, -1, "RULE: No shooting or killing inside The Maximus Club, else prison for 5 minutes.");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] < 5)
- {
- if(GetPVarInt(playerid, "EventToken") != 0) return 1;
- if(PlayerInfo[playerid][pGuns][1] != 2 && PlayerInfo[playerid][pAGuns][1] != 2 && GetPlayerWeapon(playerid) == 2)
- {
- //ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][1] != 3 && PlayerInfo[playerid][pAGuns][1] != 3 && GetPlayerWeapon(playerid) == 3)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][1] != 4 && PlayerInfo[playerid][pAGuns][1] != 4 && GetPlayerWeapon(playerid) == 4)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- else if(PlayerInfo[playerid][pGuns][1] != 5 && PlayerInfo[playerid][pAGuns][1] != 5 && GetPlayerWeapon(playerid) == 5)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][1] != 6 && PlayerInfo[playerid][pAGuns][1] != 6 && GetPlayerWeapon(playerid) == 6)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][1] != 7 && PlayerInfo[playerid][pAGuns][1] != 7 && GetPlayerWeapon(playerid) == 7)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][1] != 8 && PlayerInfo[playerid][pAGuns][1] != 8 && GetPlayerWeapon(playerid) == 8)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][1] != 9 && PlayerInfo[playerid][pAGuns][1] != 9 && GetPlayerWeapon(playerid) == 9)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- else if(PlayerInfo[playerid][pGuns][2] != 22 && PlayerInfo[playerid][pAGuns][2] != 22 && GetPlayerWeapon(playerid) == 22)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][2] != 23 && PlayerInfo[playerid][pAGuns][2] != 23 && GetPlayerWeapon(playerid) == 23)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][2] != 24 && PlayerInfo[playerid][pAGuns][2] != 24 && GetPlayerWeapon(playerid) == 24)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s) (%d-%d-%d)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][3] != 25 && PlayerInfo[playerid][pAGuns][3] != 25 && GetPlayerWeapon(playerid) == 25)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][3] != 26 && PlayerInfo[playerid][pAGuns][3] != 26 && GetPlayerWeapon(playerid) == 26)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- else if(PlayerInfo[playerid][pGuns][3] != 27 && PlayerInfo[playerid][pAGuns][3] != 27 && GetPlayerWeapon(playerid) == 27)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][4] != 28 && PlayerInfo[playerid][pAGuns][4] != 28 && GetPlayerWeapon(playerid) == 28)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s))", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- else if(PlayerInfo[playerid][pGuns][4] != 29 && PlayerInfo[playerid][pAGuns][4] != 29 && GetPlayerWeapon(playerid) == 29)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][5] != 30 && PlayerInfo[playerid][pAGuns][5] != 30 && GetPlayerWeapon(playerid) == 30)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][5] != 31 && PlayerInfo[playerid][pAGuns][5] != 31 && GetPlayerWeapon(playerid) == 31)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][4] != 32 && PlayerInfo[playerid][pAGuns][4] != 32 && GetPlayerWeapon(playerid) == 32)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- else if(PlayerInfo[playerid][pGuns][6] != 33 && PlayerInfo[playerid][pAGuns][6] != 33 && GetPlayerWeapon(playerid) == 33)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][6] != 34 && PlayerInfo[playerid][pAGuns][6] != 34 && GetPlayerWeapon(playerid) == 34)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][7] != 35 && PlayerInfo[playerid][pAGuns][7] != 35 && GetPlayerWeapon(playerid) == 35)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][7] != 36 && PlayerInfo[playerid][pAGuns][7] != 36 && GetPlayerWeapon(playerid) == 36)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][7] != 37 && PlayerInfo[playerid][pAGuns][7] != 37 && GetPlayerWeapon(playerid) == 37)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s))", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][7] != 38 && PlayerInfo[playerid][pAGuns][7] != 38 && GetPlayerWeapon(playerid) == 38)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][8] != 16 && PlayerInfo[playerid][pAGuns][8] != 16 && GetPlayerWeapon(playerid) == 16)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][8] != 17 && PlayerInfo[playerid][pAGuns][8] != 17 && GetPlayerWeapon(playerid) == 17)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][8] != 18 && PlayerInfo[playerid][pAGuns][8] != 18 && GetPlayerWeapon(playerid) == 18)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][8] != 39 && PlayerInfo[playerid][pAGuns][8] != 39 && GetPlayerWeapon(playerid) == 39)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][9] != 41 && PlayerInfo[playerid][pAGuns][9] != 41 && GetPlayerWeapon(playerid) == 41)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][9] != 42 && PlayerInfo[playerid][pAGuns][9] != 42 && GetPlayerWeapon(playerid) == 42)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2)
- {
- new WeaponName[32];
- GetWeaponName(newweapon, WeaponName, sizeof(WeaponName));
- new String[128];
- format(String, sizeof(String), "AdmCmd: %s has been banned, reason: Weapon hacking (%s).", GetPlayerNameEx(playerid), WeaponName);
- SendClientMessageToAllEx(COLOR_LIGHTRED, String);
- SetPVarInt(playerid, "_HACK_WARNINGS", 0);
- //RemovePlayerWeapon(playerid, weaponid);
- PlayerInfo[playerid][pBanned] = 3;
- new playerip[32];
- GetPlayerIp(playerid, playerip, sizeof(playerip));
- format(String, sizeof(String), "AdmCmd: %s (IP:%s) was banned, reason: Weapon hacking (%s)", GetPlayerNameEx(playerid), playerip, WeaponName);
- PlayerInfo[playerid][pBanned] = 3;
- Log("logs/ban.log", String);
- new ip[32];
- GetPlayerIp(playerid,ip,sizeof(ip));
- AddBan(ip);
- Kick(playerid);
- TotalAutoBan++;
- }
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][9] != 43 && PlayerInfo[playerid][pAGuns][9] != 43 && GetPlayerWeapon(playerid) == 43)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][10] != 10 && PlayerInfo[playerid][pAGuns][10] != 10 && GetPlayerWeapon(playerid) == 10)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][10] != 11 && PlayerInfo[playerid][pAGuns][10] != 11 && GetPlayerWeapon(playerid) == 11)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][10] != 12 && PlayerInfo[playerid][pAGuns][10] != 12 && GetPlayerWeapon(playerid) == 12)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][10] != 13 && PlayerInfo[playerid][pAGuns][10] != 13 && GetPlayerWeapon(playerid) == 13)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][10] != 14 && PlayerInfo[playerid][pAGuns][10] != 14 && GetPlayerWeapon(playerid) == 14)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][10] != 15 && PlayerInfo[playerid][pAGuns][10] != 15 && GetPlayerWeapon(playerid) == 15)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][11] != 44 && PlayerInfo[playerid][pAGuns][11] != 44 && GetPlayerWeapon(playerid) == 44)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][11] != 45 && PlayerInfo[playerid][pAGuns][11] != 45 && GetPlayerWeapon(playerid) == 45)
- {
- ExecuteHackerAction(playerid, newweapon);
- }
- else if(PlayerInfo[playerid][pGuns][11] != 46 && GetPlayerWeapon(playerid) == 46)
- {
- PlayerInfo[playerid][pGuns][11] = 46;
- }
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(onminer[playerid] == 1 && startjob[playerid] == 0 && !IsPlayerInAnyVehicle(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid, 1, -1854.7035,-1650.9668,25.7248)
- || IsPlayerInRangeOfPoint(playerid, 1, -1803.5344,-1655.2640,25.8294)
- || IsPlayerInRangeOfPoint(playerid, 1, -1788.5780,-1640.7179,27.0669))
- {
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 1, 1, 0, 0);
- GameTextForPlayer(playerid,"~w~Mining..",5000,6);
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 1, 1, 0, 0);
- startjob[playerid] = 1;
- SetTimerEx("TimerGiveMiner", 15000, false, "i", playerid);
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid, 1, -1869.1316,-1634.7915,-58.500)
- || IsPlayerInRangeOfPoint(playerid, 1, -1868.9603,-1643.6682,-58.046))
- {
- if(PlayerInfo[playerid][pPickaxe] > 0)
- {
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 1, 1, 0, 0);
- GameTextForPlayer(playerid,"~w~Mining..",5000,6);
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.0, 1, 1, 1, 0, 0);
- startjob[playerid] = 1;
- SetTimerEx("TimerGiveMinerEx", 15000, false, "i", playerid);
- return 1;
- }
- }
- }
- if(playerTabbed[playerid] == 1)
- {
- playerTabbed[playerid] = 0;
- playerTabbedTime[playerid] = 0;
- if(GetPVarType(playerid, "tabbedVW") != 0) {
- SetPlayerVirtualWorld(playerid, GetPVarInt(playerid, "tabbedVW"));
- DeletePVar(playerid, "tabbedVW");
- }
- }
- playerSeconds[playerid] = gettime();
- if(GetPVarInt(playerid, "IsFrozen") == 1) TogglePlayerControllable(playerid, 0);
- new pCurWeap = GetPlayerWeapon(playerid);
- if(pCurWeap != pCurrentWeapon[playerid])
- {
- OnPlayerChangeWeapon(playerid, pCurWeap);
- pCurrentWeapon[playerid] = pCurWeap;
- }
-
- new string[128];
- new Float:newhp, Float:newarmr;
- GetPlayerHealth(playerid, newhp);
- GetPlayerArmour(playerid, newarmr);
- format(string, 128, "%.0f", newhp);
- PlayerTextDrawSetString(playerid, HealthTD[playerid], string);
- format(string, 128, "%.0f", newarmr);
- PlayerTextDrawSetString(playerid, ArmorTD[playerid], string);
-
- /*new Float:health, vehicleid = GetPlayerVehicleID(playerid);
- GetVehicleHealth(vehicleid, health);
- format(string, sizeof(string), "%0.0f", health);
- PlayerTextDrawSetString(playerid, VDB3[playerid], string);
- format(string, sizeof(string), "%s", GetVehicleName(vehicleid));
- PlayerTextDrawSetString(playerid, VDB1[playerid], string);
- format(string, sizeof(string), "%.0f", player_get_speed(playerid));
- PlayerTextDrawSetString(playerid, VDB5[playerid], string);*/
- return 1;
- }
- 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(response)
- {
- SendClientMessage(playerid, COLOR_ORANGE, "Toys edition Save");
- if(fOffsetX > 1.4)
- {
- fOffsetX = 1.4;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum X Offset exeeded, damped to maximum");
- }
- if(fOffsetY > 1.4) {
- fOffsetY = 1.4;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum Y Offset exeeded, damped to maximum");
- }
- if(fOffsetZ > 1.4) {
- fOffsetZ = 1.4;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum Z Offset exeeded, damped to maximum");
- }
- if(fOffsetX < -1.4) {
- fOffsetX = -1.4;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum X Offset exeeded, damped to maximum");
- }
- if(fOffsetY < -1.4) {
- fOffsetY = -1.4;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum Y Offset exeeded, damped to maximum");
- }
- if(fOffsetZ < -1.4) {
- fOffsetZ = -1.4;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum Z Offset exeeded, damped to maximum");
- }
- if(fScaleX > 1.5) {
- fScaleX = 1.5;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum X Scale exeeded, damped to maximum");
- }
- if(fScaleY > 1.5) {
- fScaleY = 1.5;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum Y Scale exeeded, damped to maximum");
- }
- if(fScaleZ > 1.5) {
- fScaleZ = 1.5;
- SendClientMessage(playerid, COLOR_WHITE, "Maximum Z Scale exeeded, damped to maximum");
- }
- PlayerToyInfo[playerid][index][ptPosX] = fOffsetX;
- PlayerToyInfo[playerid][index][ptPosY] = fOffsetY;
- PlayerToyInfo[playerid][index][ptPosZ] = fOffsetZ;
- PlayerToyInfo[playerid][index][ptRotX] = fRotX;
- PlayerToyInfo[playerid][index][ptRotY] = fRotY;
- PlayerToyInfo[playerid][index][ptRotZ] = fRotZ;
- PlayerToyInfo[playerid][index][ptScaleX] = fScaleX;
- PlayerToyInfo[playerid][index][ptScaleY] = fScaleY;
- PlayerToyInfo[playerid][index][ptScaleZ] = fScaleZ;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Toys edition canceled");
- }
- return 1;
- }
- stock ShowEditMenu(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, slotselection[playerid]))
- {
- RemovePlayerAttachedObject(playerid, slotselection[playerid]);
- }
- SetPlayerAttachedObject(playerid, slotselection[playerid], PlayerToyInfo[playerid][slotselection[playerid]][ptModelID],
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone], PlayerToyInfo[playerid][slotselection[playerid]][ptPosX],
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY], PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ],
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX], PlayerToyInfo[playerid][slotselection[playerid]][ptRotY],
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX],
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]);
- new stringg[512];
- format(stringg, sizeof(stringg), "%sBone (%s)\n", stringg, HoldingBones[PlayerToyInfo[playerid][slotselection[playerid]][ptBone]]);
- format(stringg, sizeof(stringg), "%sOffsets\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosX]));
- ShowPlayerDialogEx(playerid, EDITTOYS2, DIALOG_STYLE_LIST, "Toy Menu: Edit", stringg, "Select", "Cancel");
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
- new
- string[128],
- sendername[MAX_PLAYER_NAME];
- if(GetPVarInt(playerid, "dialog") != dialogid) { // Confirm the dialogid matches what we have in the PVar
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response);
- Log("logs/crash.log", string);
- return 1;
- }
- DeletePVar(playerid, "dialog"); // Delete the PVar now we're done with it
- if(!isnull(inputtext))
- {
- if(strfind(inputtext, "%s", true) != -1)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly dialog-exploiting by attempting to send a null string.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "%s is possibly dialog-exploiting by attempting to send a null string.", GetPlayerNameEx(playerid));
- AddAutomatedFlag(playerid, string);
- format(string, sizeof(string), "%s has attempted to insert a false string placeholder into a dialog.", GetPlayerNameEx(playerid));
- Log("logs/crash.log", string);
- Kick(playerid);
- return 1;
- }
- }
-
- if(dialogid == 5215)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, 5216, DIALOG_STYLE_INPUT, "Change business name", "Enter your new desired business name:", "Change", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, 5217, DIALOG_STYLE_INPUT, "Change inside text", "Enter your new desired text name:", "Change", "Cancel");
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "Your current business balance is $%d.", BusinessInfo[PlayerInfo[playerid][pBizID]][bMoney]);
- ShowPlayerDialogEx(playerid, 5219, DIALOG_STYLE_MSGBOX, "Check balance", string, "Close", "");
- }
- }
- }
-
- if(dialogid == LANDS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new id = IsPlayerNearLand(playerid);
- if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not in a land!");
- if(LandsInfo[id][lOwned] == 0)
- {
- if(PlayerInfo[playerid][pLand] == 0)
- {
- if(PlayerInfo[playerid][pCash] < LandsInfo[id][lPrice]) return SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, you can not afford this land.");
- GivePlayerCash(playerid, -LandsInfo[id][lPrice]);
- format(string, sizeof(string), "You have bought this land for $%s.", Comma(LandsInfo[id][lPrice]));
- SCM(playerid, -1, string);
- PlayerInfo[playerid][pLand] = id;
- format(LandsInfo[id][lOwner], MAX_PLAYER_NAME, "%s", GetPlayerNameEx(playerid));
- LandsInfo[id][lOwned] = 1;
- format(string, sizeof(string), "%s's land (%d)", LandsInfo[id][lOwner], id);
- UpdateDynamic3DTextLabelText(LandsInfo[id][lText], COLOR_REALRED, string);
- }
- else return SCM(playerid, COLOR_GREY, "You already own a land.");
- }
- else return SCM(playerid, COLOR_GREY, "This land is already owned.");
- }
- if(listitem == 1)
- {
- new id = IsPlayerNearLand(playerid);
- if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not in a land!");
- if(id == PlayerInfo[playerid][pLand])
- {
- ShowPlayerDialogEx(playerid, LANDS2, DIALOG_STYLE_LIST, "Selection an action", "Add objects\nEdit objects\nSet object\nDelete object", "Select", "Cancel");
- }
- else SCM(playerid, -1, "This land is not yours.");
- }
- if(listitem == 2)
- {
- SCM(playerid, -1, "This feature is not available.");
- }
- }
- }
- if(dialogid == LANDS2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new id = IsPlayerNearLand(playerid);
- if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not in a land!");
- if(id == PlayerInfo[playerid][pLand])
- {
- ShowPlayerDialogEx(playerid, LANDS3, DIALOG_STYLE_LIST, "Objects list", "Walls\nDoors\nDoor Frames\nFloors", "Select", "Cancel");
- }
- else SCM(playerid, -1, "This land is not yours.");
- }
- if(listitem == 1)
- {
- new modelstr[128];
- new sstring[1000];
- for(new o = 0; o < MAX_OBJ; o++)
- {
- if(ObjectInfo[o][objModel] != 0)
- {
- switch(ObjectInfo[o][objModel])
- {
- case 19353: modelstr = "wall001";
- case 19354: modelstr = "wall002";
- case 19355: modelstr = "wall003";
- case 19356: modelstr = "wall004";
- case 19357: modelstr = "wall005";
- case 19358: modelstr = "wall006";
- case 19359: modelstr = "wall007";
- case 19360: modelstr = "wall008";
- case 19361: modelstr = "wall009";
- case 19362: modelstr = "wall010";
- case 19363: modelstr = "wall011";
- case 19364: modelstr = "wall012";
- case 19365: modelstr = "wall013";
- case 19366: modelstr = "wall014";
- case 19367: modelstr = "wall015";
- case 19383: modelstr = "doorframe1";
- case 1498: modelstr = "door1";
- case 10244: modelstr = "staircase1";
- }
-
- format(sstring, sizeof(sstring), "%s\n[Slot %d]: %s", sstring, o, modelstr);
- }
- }
- ShowPlayerDialogEx(playerid, LANDS5, DIALOG_STYLE_LIST, "Objects list", sstring, "Edit", "Close");
- }
- }
- }
-
- if(dialogid == LANDS5 && response)
- {
- new objid;
- objid = listitem+1;
- if(ObjectInfo[objid][objModel] == 0) return SCM(playerid, -1, "This object does not exist.");
- if(ObjectInfo[objid][objModel] == 1498)
- {
- EditDynamicObject(playerid, ObjectInfo[objid][oDoor]);
- }
- else
- {
- EditDynamicObject(playerid, ObjectInfo[objid][objID]);
- }
- format(string, sizeof(string), "You are now editing slot %d.", objid);
- SCM(playerid, -1, string);
- }
-
- if(dialogid == LANDS3)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new id = IsPlayerNearLand(playerid);
- if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not in a land!");
- if(id == PlayerInfo[playerid][pLand])
- {
- ShowPlayerDialogEx(playerid, LANDS4, DIALOG_STYLE_LIST, "Objects", "wall001\nwall002\nwall003\nwall004\nwall005\nwall006\nwall007\nwall008\nwall009\nwall010\nwall011\nwall012\nwall013\nwall014\nwall015", "Select", "Cancel");
- }
- else SCM(playerid, -1, "This land is not yours.");
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, LANDS8, DIALOG_STYLE_LIST, "Doors", "door1", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialogEx(playerid, LANDS6, DIALOG_STYLE_LIST, "Door Frames", "doorframe1", "Select", "Cancel");
- }
- if(listitem == 3)
- {
- ShowPlayerDialogEx(playerid, LANDS7, DIALOG_STYLE_LIST, "Floors", "floor1\nstaircase1", "Select", "Cancel");
- }
- }
- }
-
- if(dialogid == LANDS8)
- {
- if(response)
- {
- if(listitem == 0)
- {
- CreateLandDoorObject(playerid, 1498);
- }
- }
- }
- if(dialogid == LANDS7)
- {
- if(response)
- {
- if(listitem == 0)
- {
- CreateLandFloorObject(playerid, 19379);
- }
- if(listitem == 1)
- {
- CreateLandObject(playerid, 10244);
- }
- }
- }
- if(dialogid == LANDS4)
- {
- if(response)
- {
- if(listitem == 0)
- {
- CreateLandObject(playerid, 19353);
- }
- if(listitem == 1)
- {
- CreateLandObject(playerid, 19354);
- }
- if(listitem == 2)
- {
- CreateLandObject(playerid, 19355);
- }
- if(listitem == 3)
- {
- CreateLandObject(playerid, 19356);
- }
- if(listitem == 4)
- {
- CreateLandObject(playerid, 19357);
- }
- if(listitem == 5)
- {
- CreateLandObject(playerid, 19358);
- }
- if(listitem == 6)
- {
- CreateLandObject(playerid, 19359);
- }
- if(listitem == 7)
- {
- CreateLandObject(playerid, 19360);
- }
- if(listitem == 8)
- {
- CreateLandObject(playerid, 19361);
- }
- if(listitem == 9)
- {
- CreateLandObject(playerid, 19362);
- }
- if(listitem == 10)
- {
- CreateLandObject(playerid, 19363);
- }
- if(listitem == 11)
- {
- CreateLandObject(playerid, 19364);
- }
- if(listitem == 12)
- {
- CreateLandObject(playerid, 19365);
- }
- if(listitem == 13)
- {
- CreateLandObject(playerid, 19366);
- }
- if(listitem == 14)
- {
- CreateLandObject(playerid, 19367);
- }
- }
- }
- if(dialogid == LANDS6)
- {
- if(response)
- {
- if(listitem == 0)
- {
- CreateLandObject(playerid, 19383);
- }
- }
- }
-
- if(dialogid == 5219)
- {
- if(response)
- {
- format(string, sizeof(string), "Enter the money you want to withdraw you have $%d.", BusinessInfo[PlayerInfo[playerid][pBizID]][bMoney]);
- ShowPlayerDialogEx(playerid, 5220, DIALOG_STYLE_INPUT, "Withdraw from balance", string, "Check", "Cancel");
- }
- }
-
- if(dialogid == 5220)
- {
- if(response)
- {
- if(IsNumeric(inputtext))
- {
- new money = strval(inputtext);
- if(BusinessInfo[PlayerInfo[playerid][pBizID]][bMoney] >= money)
- {
- GivePlayerMoney(playerid, money);
- BusinessInfo[PlayerInfo[playerid][pBizID]][bMoney] -= money;
- format(string, sizeof(string), "You have withdrawn %d from your business balance.", money);
- SCM(playerid, COLOR_LIGHTBLUE, string);
- }
- else return SCM(playerid, COLOR_GREY, "Your business balance does not have that much.");
- }
- else return SCM(playerid, COLOR_GREY, "You must input numbers instead of letters.");
- }
- }
-
- if(dialogid == 5218)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerCash(playerid) >= 800)
- {
- GivePlayerCash(playerid, -800);
- SCM(playerid, -1, "You bought a shotgun for $800.");
- GivePlayerValidWeapon(playerid, 25, 600000);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 800;
- }
- }
- if(listitem == 1)
- {
- if(GetPlayerCash(playerid) >= 200)
- {
- GivePlayerCash(playerid, -200);
- SCM(playerid, -1, "You bought a 9mm for $200.");
- GivePlayerValidWeapon(playerid, 22, 600000);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 800;
- }
- }
- if(listitem == 2)
- {
- if(GetPlayerCash(playerid) >= 1200)
- {
- GivePlayerCash(playerid, -1200);
- SCM(playerid, -1, "You bought a county rifle for $800.");
- GivePlayerValidWeapon(playerid, 33, 600000);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 800;
- }
- }
- if(listitem == 3)
- {
- if(GetPlayerCash(playerid) >= 200)
- {
- GivePlayerCash(playerid, -200);
- SCM(playerid, -1, "You bought a half kevlar vest for $200.");
- SetPlayerArmourEx(playerid, 50);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 200;
- }
- }
- }
- }
-
- if(dialogid == 5216)
- {
- if(response)
- {
- if(strlen(inputtext) >= 1)
- {
- format(BusinessInfo[PlayerInfo[playerid][pBizID]][bName], 128, "%s", inputtext);
- new strs[142];
- new id = PlayerInfo[playerid][pBizID];
- format(strs, 142, "%s\nOwner: %s (%d)", BusinessInfo[id][bName], BusinessInfo[id][bOwner], id);
- UpdateDynamic3DTextLabelText(BusinessInfo[id][bText], COLOR_REALRED, strs);
- }
- else SCM(playerid, COLOR_GREY, "Name must be atleast 1 characters.");
- }
- }
-
- if(dialogid == DIALOG_BLACKMARKET1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerHealth(playerid, 100.0);
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pCash] < 600)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy a vest.");
- }
- SetPlayerArmourEx(playerid, 100.0);
- GivePlayerCash(playerid, -600);
- }
- if(listitem == 2)
- {
- GivePlayerValidWeapon(playerid, 8, 99999);
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][pCash] < 300)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 22, 99999);
- GivePlayerCash(playerid, -300);
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][pCash] < 300)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 23, 99999);
- GivePlayerCash(playerid, -300);
- }
- if(listitem == 5)
- {
- if(PlayerInfo[playerid][pCash] < 800)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 29, 99999);
- GivePlayerCash(playerid, -800);
- }
- if(listitem == 6)
- {
- if(PlayerInfo[playerid][pCash] < 600)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 25, 99999);
- GivePlayerCash(playerid, -600);
- }
- }
- }
- if(dialogid == DIALOG_BLACKMARKET2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerHealth(playerid, 100.0);
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pCash] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy a vest.");
- }
- SetPlayerArmourEx(playerid, 100);
- GivePlayerCash(playerid, -500);
- }
- if(listitem == 2)
- {
- GivePlayerValidWeapon(playerid, 8, 99999);
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][pCash] < 200)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 22, 99999);
- GivePlayerCash(playerid, -200);
- }
- if(listitem == 4)
- {
- if(PlayerInfo[playerid][pCash] < 200)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 23, 99999);
- GivePlayerCash(playerid, -200);
- }
- if(listitem == 5)
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerCash(playerid, -1000);
- }
- if(listitem == 6)
- {
- if(PlayerInfo[playerid][pCash] < 2000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 27, 99999);
- GivePlayerCash(playerid, -2000);
- }
- if(listitem == 7)
- {
- if(PlayerInfo[playerid][pCash] < 2500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 34, 99999);
- GivePlayerCash(playerid, -2500);
- }
- if(listitem == 8)
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 31, 99999);
- GivePlayerCash(playerid, -1000);
- }
- if(listitem == 9)
- {
- if(PlayerInfo[playerid][pCash] < 700)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 29, 99999);
- GivePlayerCash(playerid, -700);
- }
- if(listitem == 10)
- {
- if(PlayerInfo[playerid][pCash] < 500)
- {
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash to buy this weapon.");
- }
- GivePlayerValidWeapon(playerid, 25, 99999);
- GivePlayerCash(playerid, -500);
- }
- }
- }
-
- if(dialogid == 5217)
- {
- if(response)
- {
- if(strlen(inputtext) >= 1)
- {
- new id = PlayerInfo[playerid][pBizID];
- format(BusinessInfo[id][bIT], 128, "%s", inputtext);
- }
- else SCM(playerid, COLOR_GREY, "Name must be atleast 1 characters.");
- }
- }
-
- if(dialogid == BLACKMARKET)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerCash(playerid) >= 1000)
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerCash(playerid, -1000);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a deagle for $1,000.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 1)
- {
- if(GetPlayerCash(playerid) >= 2750)
- {
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerCash(playerid, -2750);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a SPAS-12 for $2,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 2)
- {
- if(GetPlayerCash(playerid) >= 1750)
- {
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerCash(playerid, -1750);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a M4 for $1,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 3)
- {
- if(GetPlayerCash(playerid) >= 350)
- {
- SetPlayerArmourEx(playerid, 100);
- GivePlayerCash(playerid, -350);
- SCM(playerid, -1, "{AAC5E3}[DONATOR ARMOR]{FFFFFF}You have bought a Kevlar Vest for $350.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 4)
- {
- if(GetPlayerCash(playerid) >= 250)
- {
- SetPlayerHealth(playerid, 100);
- GivePlayerCash(playerid, -250);
- SCM(playerid, -1, "{AAC5E3}[DONATOR HEALTH]{FFFFFF}You have bought a First aid kit for $250.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 5)
- {
- if(GetPlayerCash(playerid) >= 3250)
- {
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerCash(playerid, -3250);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a Sniper for $3,250.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 6)
- {
- if(GetPlayerCash(playerid) >= 8750)
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerCash(playerid, -8750);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a Full Set Weapon for $8,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- }
- }
- if(dialogid == DIALOG_NEWBWELCOME)
- {
- if(response)
- {
- new szMessage[128];
- SendClientMessage(playerid, COLOR_WHITE, "Your help request has been submitted to the team of helpers.");
-
- format(szMessage, sizeof(szMessage), "HelpCmd: %s [%d] has just sent a request for tour in LS", GetPlayerNameEx(playerid), playerid);
- HelperBroadcast(COLOR_LIGHTBLUE, szMessage, 1);
- }
- }
- if(dialogid == DIALOG_INTERIOR_MENU) {//Interiors
- if(response) {
- new arrayid = listitem;
- SetPlayerPos(playerid, InteriorDialogData[arrayid][0], InteriorDialogData[arrayid][1], InteriorDialogData[arrayid][2]);
- SetPlayerInterior(playerid, InteriorDialogInteriors[arrayid][0]);
- SetPlayerFacingAngle(playerid, InteriorDialogData[arrayid][3]);
- format(string, sizeof(string), "[INTERIOR:] You teleported to interior ' %s '.", InteriorDialogNames[arrayid][0]);
- SendClientMessage(playerid, 0xADD8E6FF, string);
- }
- else{
- //The player has pressed "Close".
- SendClientMessage(playerid, COLOR_RED, "You have closed the Interior Teleport Dialog.");
- }
- return 0;
- }
- if(dialogid == MAINMENU || dialogid == MAINMENU2)
- {
- if(dialogid == MAINMENU)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, COLOR_NEWS, "You have been kicked out automatically.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "Server closed the Connection.");
- //KillTimer(GetPVarInt(playerid, "MenuTimer"));
- Kick(playerid);
- }
- else
- {
- if(strlen(inputtext))
- {
- new passbuffer[129], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- WP_Hash(passbuffer, sizeof(passbuffer), inputtext);
- //SetTimerEx("MenuCamFix", 1000, false, "i", playerid);
- //KillTimer(GetPVarInt(playerid, "MenuTimer"));
- strcpy(AdminRelogPassword[playerid], passbuffer, 129);
- OnPlayerLogin(playerid, passbuffer);
- }
- else
- {
- new titlestring[64], dstring[512];
- format(titlestring, sizeof(titlestring), "{FFA500}Login");
- format(dstring, sizeof(dstring), "{FFFFFF}Wrong password.\n\n{FFFFFF}That username is registered, please enter your password below.\n\n{FFA500}Username: {FFFFFF}%s\n\n {FFA500}Password:", GetPlayerNameEx(playerid));
- ShowPlayerDialogEx(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,dstring,"Login","Quit");
- if(gPlayerLogTries[playerid] == 2) { SendClientMessage(playerid, COLOR_NEWS, "Wrong password, you have been kicked out automatically."); Kick(playerid); }
- }
- }
- }
- if(dialogid == MAINMENU2)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, COLOR_NEWS, "You have been kicked out automatically.");
- SendClientMessage(playerid, COLOR_LIGHTRED, "Server closed the Connection.");
- //KillTimer(GetPVarInt(playerid, "MenuTimer"));
- Kick(playerid);
- }
- else if(strlen(inputtext))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(doesAccountExist(sendername))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "That username is already taken, please choose a different one.");
- return 1;
- }
- new passbuffer[129];
- WP_Hash(passbuffer, sizeof(passbuffer), inputtext);
- //SetTimerEx("MenuCamFix", 1000, false, "i", playerid);
- //KillTimer(GetPVarInt(playerid, "MenuTimer"));
- OnPlayerRegister(playerid,passbuffer);
- }
- }
- }
- else if(dialogid == REGISTRATION_MENU_ONE)
- {
- if(response)
- {
- PlayerInfo[playerid][pSex] = 1;
- }
- else
- {
- PlayerInfo[playerid][pSex] = 2;
- }
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_TWO, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}What do you want your character's age to be?\n\nNote: The age must be no lower than 18 and no higher than 90.", "Done", "");
- }
- else if(dialogid == REGISTRATION_MENU_TWO)
- {
- if(!IsNumeric(inputtext))
- {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_TWO, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: You must enter a number!\n\nWhat do you want your character's age to be?\n\nNote: The age must be no lower than 18 and no higher than 90.", "Done", "");
- return 1;
- }
- new age = strval(inputtext);
- if(age < 18 || age > 90)
- {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_TWO, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: The age can only be from 18 to 90!\n\nWhat do you want your character's age to be?\n\nNote: The age must be no lower than 18 and no higher than 90.", "Done", "");
- return 1;
- }
- PlayerInfo[playerid][pAge] = age;
- SetPlayerVirtualWorld(playerid, 0);
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_THREE, DIALOG_STYLE_MSGBOX, "{FFA500}Registration", "{FFFFFF}Have you been referred here by one of our players?", "Yes", "No");
- }
- if(dialogid == FINDDEALERSHIPMENU)
- {
- if(response)
- {
- new
- szMessage[128];
- SetPlayerCheckpoint(playerid, CarDealershipInfo[listitem][cdEntranceX], CarDealershipInfo[listitem][cdEntranceY], CarDealershipInfo[listitem][cdEntranceZ], 3);
- format(szMessage, sizeof(szMessage), "You have selected %s. Go to the red checkpoint on your radar/map.", CarDealershipInfo[listitem][cdMessage]);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- FindingDealership[playerid] = 1;
- }
- }
- if(dialogid == DIALOG_VEHICLE_REFUND)
- {
- if(!IsNumeric(inputtext))
- {
- ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{FFA500} Sleepless Roleplay - Vehicle Refund", "{FFFFFF}ENTRY DECLINED: You must enter a number!\n\nWhat Vehicle do you want? Please put especific Vehicle ID\n\nNote:You cannot put a vehicle ID that is restricted vehicles.", "Done", "");
- return 1;
- }
- new modelid;
- modelid = strval(inputtext);
- if(IsARestricted(modelid))
- {
- ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{FFA500} Sleepless Roleplay - Vehicle Refund", "{FFFFFF}ENTRY DECLINED: I Told you, you cannot put vehicle id that are Restricted Vehicles", "Done", "");
- return 1;
- }
- if(modelid < 400 || modelid > 611)
- {
- ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{FFA500} Sleepless Roleplay - Vehicle Refund", "{FFFFFF}ENTRY DECLINED: Vehicle id must not be lower than 400 or higher than 611!", "Done", "");
- return 1;
- }
- new playervehicleid = GetPlayerFreeVehicleId(playerid);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- new Float:Angle;
- GetPlayerFacingAngle(playerid,Angle);
- new car = CreatePlayerVehicle(playerid, playervehicleid, modelid, X, Y, Z, Angle, 0, 0, 0);
- format(string, sizeof(string), " Vehicle successfully created with ID %d.", car);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- VehicleSpawned[playerid] = 1;
- //SendClientMessage(playerid, COLOR_WHITE, " You have been refund (Auto Refund) /stats for more info");
- //format(string, sizeof(string), "%s has successfully get his free car %s ", GetPlayerNameEx(playerid), GetVehicleName(car));
- //AddAutomatedFlag(playerid, string);
- }
- if(dialogid == FINDCARTUNINGMENU)
- {
- if(response) {
- switch(listitem) {
- case 0: {
- SetPlayerCheckpoint(playerid, -1935.7700, 228.7900, 34.1563, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected TransFender in San Fierro. Go to the red checkpoint on your radar/map.");
- FindingDealership[playerid] = 1; // Using this because it's pointless to make another variable.
- } case 1: {
- SetPlayerCheckpoint(playerid, -2707.4482, 218.9819, 4.1797, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected Wheel Arch Angels in San Fierro. Go to the red checkpoint on your radar/map.");
- FindingDealership[playerid] = 1; // Using this because it's pointless to make another variable.
- } case 2: {
- SetPlayerCheckpoint(playerid, 2645.6418, -2028.8173, 13.5469, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected LowRider Tuning Garage in Los Santos. Go to the red checkpoint on your radar/map.");
- FindingDealership[playerid] = 1; // Using this because it's pointless to make another variable.
- } case 3: {
- SetPlayerCheckpoint(playerid, 1041.2914, -1036.4375, 31.7365, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected TransFender in Los Santos. Go to the red checkpoint on your radar/map.");
- FindingDealership[playerid] = 1; // Using this because it's pointless to make another variable.
- } case 4: {
- SetPlayerCheckpoint(playerid, 2387.5823, 1036.0345, 10.8203, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected TransFender in Las Venturas. Go to the red checkpoint on your radar/map.");
- FindingDealership[playerid] = 1; // Using this because it's pointless to make another variable.
- }
- }
- }
- }
- else if(dialogid == 3652) {
- if(!response)
- return 1;
- switch(listitem) {
- case 0: {
- // Paintball is static right now; I may change this in the future. Each arena has its own static ID, DM goes from 1-3, TDM goes from 4-6
- ShowPlayerDialogEx(playerid, 3653, DIALOG_STYLE_LIST, "Paintball - DM", "LV Warehouse\nRandom Warehouse\nRC Battlefield\nDeath Arena\nBlast DM Arena", "Go", "Cancel");
- }
- case 1: {
- // Paintball is static right now; I may change this in the future. Each arena has its own static ID, DM goes from 1-3, TDM goes from 4-6
- ShowPlayerDialogEx(playerid, 3654, DIALOG_STYLE_LIST, "Paintball - TDM", "LV Warehouse\nRandom Warehouse\nRC Battlefield\nBlast Arena", "Go", "Cancel");
- }
- case 2: {
- new
- iPlayer = INVALID_PLAYER_ID;
- foreach(Player, i) {
- if(GetPVarInt(i, "PBM") > 0) {
- iPlayer = i; // always going to get the highest ID because Y_Less never added a 'break;' for foreach ~_~ ...or didn't document it
- }
- }
- if(iPlayer == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, COLOR_GREY, "Sorry, there's no players in any games right now.");
- JoinPaintballGame(playerid, GetPVarInt(iPlayer, "PBM"));
- }
- }
- }
- else if(dialogid == DIALOG_SAN_CLOTHES) {
- switch(listitem) {
- case 0: {
- PlayerInfo[playerid][pSkin] = 113;
- SetPlayerSkin(playerid, 113);
- }
- case 1: {
- PlayerInfo[playerid][pSkin] = 148;
- SetPlayerSkin(playerid, 148);
- }
- }
-
- return 1;
- }
- else if(dialogid == 3653) {
- if(!response)
- return 1;
- SendClientMessage(playerid, COLOR_WHITE, "You're preparing to play a game of deathmatch paintball.");
- SendClientMessage(playerid, COLOR_GREY, "The objective is to kill as many players as you can.");
- switch(listitem) {
- case 0: JoinPaintballGame(playerid, 1);
- case 1: JoinPaintballGame(playerid, 2);
- case 2: JoinPaintballGame(playerid, 3);
- case 3: JoinPaintballGame(playerid, 7);
- case 4: JoinPaintballGame(playerid, 9);
- }
- }
- else if(dialogid == 3654) {
- if(!response)
- return 1;
- SendClientMessage(playerid, COLOR_WHITE, "You're preparing to play a game of *team* deathmatch paintball.");
- SendClientMessage(playerid, COLOR_GREY, "The objective is to kill as many enemies as you can, as a team.");
- switch(listitem) {
- case 0: JoinPaintballGame(playerid, 4);
- case 1: JoinPaintballGame(playerid, 5);
- case 2: JoinPaintballGame(playerid, 6);
- case 3: JoinPaintballGame(playerid, 8);
- }
- }
- #if defined TREASURE_HUNT_ENABLED
- if(dialogid == DIALOG_HUNT_PRIZE) {
- if(!response) {
- SetRandomHuntPos();
- DeletePVar(playerid, "fT");
- return 1;
- }
- switch(listitem) {
- case 0: {
- PlayerInfo[playerid][pPot] += 20;
- PlayerInfo[playerid][pCrack] += 10;
-
- format(string, sizeof(string), "%s has selected 20 pot and 10 crack as their prize.", GetPlayerNameEx(playerid));
- Log("logs/treasurehunt.log", string);
- SendClientMessage(playerid, COLOR_WHITE, "You have chosen 20 crack, 10 pot. Congratulations, well deserved!");
- }
- case 1: {
- PlayerInfo[playerid][pMats] += 2000;
- format(string, sizeof(string), "%s has selected 2,000 materials as their prize.", GetPlayerNameEx(playerid));
- Log("logs/treasurehunt.log", string);
- SendClientMessage(playerid, COLOR_WHITE, "You have chosen 2,000 materials. Congratulations, well deserved!");
- }
- case 2: {
- GivePlayerValidWeapon(playerid, 24, 50000);
- format(string, sizeof(string), "%s has selected a Desert Eagle as their prize.", GetPlayerNameEx(playerid));
- Log("logs/treasurehunt.log", string);
- SendClientMessage(playerid, COLOR_WHITE, "You have chosen a Desert Eagle. Congratulations, well deserved!");
- }
- case 3: {
- PlayerInfo[playerid][pRespect] += 1;
- format(string, sizeof(string), "%s has selected 1 respect point as their prize.", GetPlayerNameEx(playerid));
- Log("logs/treasurehunt.log", string);
- SendClientMessage(playerid, COLOR_WHITE, "You have chosen 1 respect point. Congratulations, well deserved!");
- }
- }
- SetRandomHuntPos();
- DeletePVar(playerid, "fT");
- return 1;
- }
- else if(dialogid == DIALOG_HUNT_QUESTION) {
- if(!response) {
- SetRandomHuntPos();
- DeletePVar(playerid, "fT");
- return 1;
- }
- switch(GetPVarInt(playerid, "HuntQ")) {
- case 0: {
- if(listitem == 2) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 1: {
- if(listitem == 0) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 2: {
- if(listitem == 2) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 3: {
- if(listitem == 1) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 4: {
- if(listitem == 2) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 5: {
- if(listitem == 1) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 6: { // 0
- if(listitem == 0) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 7: { // 2
- if(listitem == 2) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 8: { // 0
- if(listitem == 0) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- case 9: { // 1
- if(listitem == 1) {
- PrizeMenu(playerid);
- } else {
- SetRandomHuntPos();
- SendClientMessage(playerid, COLOR_GREY, "You provided an incorrect answer. The treasure has been moved! Better luck next time.");
- DeletePVar(playerid, "fT");
- }
- }
- }
- }
- #endif
- if(dialogid == REGISTRATION_MENU_THREE)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}What is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- }
- else
- {
- HideMainMenuGUI(playerid);
- PlayerPlaySound(playerid,SOUND_OFF,2050.1995, 1344.5500, 13.2378); //Music Off
- SetPlayerPos(playerid, 2212.61, -1730.57, -80.0);
- SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
- SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
- TogglePlayerControllable(playerid, false);
- SetPVarInt(playerid, "IsFrozen", 1);
- for(new t = 0; t < 11; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 1;
- SetTimerEx("TutorialProgression", 14500, 0, "d", playerid);
- }
- }
- else if(dialogid == REGISTRATION_MENU_FOUR)
- {
- if(response) {
- if(IsNumeric(inputtext)) {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: The entry can't be a number.\n\nWhat is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- return 1;
- }
- for(new i = 0; i < strlen(inputtext); i++) {
- if(inputtext[i] == ' ') {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: Please use the '_'(underscore) instead of the ' '(space)\n\nWhat is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- return 1;
- }
- }
- if(strfind(inputtext, "_", true) == -1) {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: Please choose a name in the correct format: Firstname_Lastname.\n\nWhat is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- return 1;
- }
- if(strlen(inputtext) > 20) {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: You can't select a name that's above 20 characters.\n\nWhat is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- return 1;
- }
- if(!doesAccountExist(inputtext)) {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}ENTRY DECLINED: There is no player registered by that name.\n\nWhat is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- return 1;
- }
- format(PlayerInfo[playerid][pReferredBy], MAX_PLAYER_NAME, "%s", inputtext);
- format(string, sizeof(string), "{FFFFFF}Are you sure you were referred by %s?", inputtext);
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FIVE, DIALOG_STYLE_MSGBOX, "{FFA500}Registration", string, "Yes", "No");
- }
- else
- {
- strcpy(PlayerInfo[playerid][pReferredBy], "0", 32);
- HideMainMenuGUI(playerid);
- PlayerPlaySound(playerid,SOUND_OFF,2050.1995, 1344.5500, 13.2378); //Music Off
- SetPlayerPos(playerid, 2212.61, -1730.57, -80.0);
- SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
- SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
- TogglePlayerControllable(playerid,0);
- for(new t = 0; t < 11; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 1;
- SetTimerEx("TutorialProgression", 14500, 0, "d", playerid);
- }
- }
- else if(dialogid == REGISTRATION_MENU_FIVE)
- {
- if(response)
- {
- HideMainMenuGUI(playerid);
- PlayerPlaySound(playerid,SOUND_OFF,2050.1995, 1344.5500, 13.2378); //Music Off
- SetPlayerPos(playerid, 2212.61, -1730.57, -80.0);
- SetPlayerCameraPos(playerid, 2208.67, -1733.71, 27.48);
- SetPlayerCameraLookAt(playerid, 2225.25, -1723.1, 13.56);
- TogglePlayerControllable(playerid,0);
- for(new t = 0; t < 11; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 1;
- SetTimerEx("TutorialProgression", 14500, 0, "d", playerid);
- }
- else
- {
- ShowPlayerDialogEx(playerid, REGISTRATION_MENU_FOUR, DIALOG_STYLE_INPUT, "{FFA500}Registration", "{FFFFFF}What is the name of the player that referred you?\n\nNote: It must be the full player name with underscore ('_'). For example: John_Smith", "Done", "Cancel");
- }
- }
- else if(dialogid == 12768)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid,INFO_DIALOG,DIALOG_STYLE_MSGBOX,"Referral system information", "If you're offline while the new player reaches 8 playing hours, then you will still receive a referral token on your next login.\n\nYou can trade referral tokens for several items in the referral shop by typing /refshop\n\nIf you refer someone then you're advised not to change your name until the person you referred reaches 8 playing hours,\notherwise no referral tokens will be received.","Close","");
- }
- }
- else if(dialogid == DIALOG_REFSHOP)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 1)
- {
- PlayerInfo[playerid][pRefTokens] -= 1;
- PlayerInfo[playerid][pPot] += 50;
- PlayerInfo[playerid][pCrack] += 25;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 1 referral token for 50 grams of pot and 25 grams of crack.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 1)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 1)
- {
- PlayerInfo[playerid][pRefTokens] -= 1;
- PlayerInfo[playerid][pMats] += 2500;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 1 referral token for 2,500 materials.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 2)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 1)
- {
- PlayerInfo[playerid][pRefTokens] -= 1;
- PlayerInfo[playerid][pRespect] += 4;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 1 referral token for 4 respect points.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 3)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 1)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_WHITE, "You can't get weapons when your weapons are still restricted.");
- PlayerInfo[playerid][pRefTokens] -= 1;
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerValidWeapon(playerid, 27, 60000);
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 1 referral token for a SPAS-12 & Desert Eagle.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 4)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 2)
- {
- PlayerInfo[playerid][pRefTokens] -= 2;
- PlayerInfo[playerid][pPot] += 100;
- PlayerInfo[playerid][pCrack] += 50;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 2 referral tokens for 100 grams of pot and 50 grams of crack.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 5)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 2)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_WHITE, "You can't get weapons when your weapons are still restricted.");
- PlayerInfo[playerid][pRefTokens] -= 2;
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerValidWeapon(playerid, 29, 60000);
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 2 referral tokens for a full weapon set.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 6)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 2)
- {
- PlayerInfo[playerid][pRefTokens] -= 2;
- PlayerInfo[playerid][pRespect] += 8;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 2 referral tokens for 8 respect points.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 7)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 2)
- {
- PlayerInfo[playerid][pRefTokens] -= 2;
- PlayerInfo[playerid][pMats] += 5000;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 2 referral tokens for 5,000 materials.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 8)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 3)
- {
- PlayerInfo[playerid][pRefTokens] -= 3;
- PlayerInfo[playerid][pRespect] += 12;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 3 referral tokens for 12 respect points.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 9)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 3)
- {
- PlayerInfo[playerid][pRefTokens] -= 3;
- PlayerInfo[playerid][pMats] += 10000;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 3 referral tokens for 10,000 materials.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 10)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 4)
- {
- PlayerInfo[playerid][pRefTokens] -= 4;
- PlayerInfo[playerid][pRespect] += 16;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 4 referral tokens for 16 respect points.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 11)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 4)
- {
- PlayerInfo[playerid][pRefTokens] -= 4;
- PlayerInfo[playerid][pMats] += 15000;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 4 referral tokens for 15,000 materials.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 12)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 5)
- {
- PlayerInfo[playerid][pRefTokens] -= 5;
- PlayerInfo[playerid][pRespect] += 20;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 5 referral tokens for 20 respect points.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 13)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 5)
- {
- PlayerInfo[playerid][pRefTokens] -= 5;
- PlayerInfo[playerid][pMats] += 20000;
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 5 referral tokens for 20,000 materials.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 14)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 10)
- {
- PlayerInfo[playerid][pRefTokens] -= 10;
- new nxtlevel = PlayerInfo[playerid][pLevel]+1;
- format(string, sizeof(string), "~g~LEVEL UP~n~~w~You're Now Level %d", nxtlevel);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pLevel]++;
- PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
- GameTextForPlayer(playerid, string, 5000, 1);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 10 referral tokens for a level up and 2 upgrade points (/upgrade).");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- else if(listitem == 15)
- {
- if(PlayerInfo[playerid][pRefTokens] >= 10)
- {
- PlayerInfo[playerid][pRefTokens] -= 10;
- new log[128];
- format(log, sizeof(log), "%s traded 10 referral tokens and is now waiting for a vehicle.", GetPlayerNameEx(playerid));
- Log("logs/referralcars.log", log);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just traded 10 referral tokens and is now waiting for a vehicle.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 4);
- format(PlayerInfo[playerid][pFlag], 128, "Free Car (Only ones available at dealerships)");
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: You have traded 10 referral tokens to receive a vehicle and have been automatically flagged to receive one.");
- SendClientMessage(playerid, COLOR_YELLOW, "REFERRAL SYSTEM: This is a rare reward and may take up to 48 hours to be rewarded, contact a Level 4+ Admin.");
- }
- else return SendClientMessage(playerid, COLOR_WHITE, "You do not have enough referral tokens for that item.");
- }
- }
- }
- else if(dialogid == GOVLOCKERMENU) {
- // Uniform then Equipment
- if(!response)
- return 1;
- switch(listitem) {
- case 0: ShowPlayerDialogEx(playerid, GOVSKINMENU, DIALOG_STYLE_LIST, "Government skin menu", "17 (black male in suit)\n57 (old asian male in suit)\n141 (young asian female suit)\n147 (middle aged white male)\n240 (young white male in vest)\n295 (toreno, older white male suit)", "OK", "Cancel");
- case 1: ShowPlayerDialogEx(playerid, GOVEQUIPMENU, DIALOG_STYLE_LIST, "Government equipment menu", "First Aid Kit\nArmour Vest\nDesert Eagle\nMP5\nSPAS-12\nM4\nSniper Rifle\nAccessories", "OK", "Cancel");
- }
- }
- else if(dialogid == GOVEQUIPMENU) {
- if(!response)
- return 1;
- switch(listitem) {
- case 0: SetPlayerHealth(playerid, 100);
- case 1: SetPlayerArmourEx(playerid, 100);
- case 2: GivePlayerValidWeapon(playerid, 24, 99999);
- case 3: GivePlayerValidWeapon(playerid, 29, 99999);
- case 4: GivePlayerValidWeapon(playerid, 27, 99999);
- case 5: GivePlayerValidWeapon(playerid, 31, 99999);
- case 6: GivePlayerValidWeapon(playerid, 34, 99999);
- case 7: ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!","Continue", "Cancel");
- }
- }
- else if(dialogid == GOVSKINMENU) {
- if(!response)
- return 1;
- switch(listitem) {
- case 0: {
- SetPlayerSkin(playerid, 17);
- PlayerInfo[playerid][pSkin] = 17;
- }
- case 1: {
- SetPlayerSkin(playerid, 57);
- PlayerInfo[playerid][pSkin] = 57;
- }
- case 2: {
- SetPlayerSkin(playerid, 141);
- PlayerInfo[playerid][pSkin] = 141;
- }
- case 3: {
- SetPlayerSkin(playerid, 147);
- PlayerInfo[playerid][pSkin] = 147;
- }
- case 4: {
- SetPlayerSkin(playerid, 240);
- PlayerInfo[playerid][pSkin] = 240;
- }
- case 5: {
- SetPlayerSkin(playerid, 295);
- PlayerInfo[playerid][pSkin] = 295;
- }
- }
- }
- else if(dialogid == JOBHELPMENU)
- {
- if(response)
- {
- if(listitem == 0) //Detective
- {
- ShowPlayerDialogEx(playerid, DETECTIVEJOB, DIALOG_STYLE_MSGBOX, "Detective", "Information:\n\nThis job can be used to locate people anywhere around San Andreas.\nThis is helpful for the Government factions, and can be used to find criminals. It is a legal job and you can't get busted for doing it.\nIt will tell you the last known location(area) they were found in and give you a beacon.", "Next", "Cancel");
- }
- if(listitem == 1) // Lawyer
- {
- ShowPlayerDialogEx(playerid, LAWYERJOB, DIALOG_STYLE_MSGBOX, "Lawyer", "Information:\n\nThis job can be used to remove wanted stars, reduce jail time, and list all criminals.\nThis is helpful for criminals and crooks, it is a legal job and you can't get busted for doing it.\nIt will come in handy for your friends and families who got trouble with the cops.", "Next", "Cancel");
- }
- if(listitem == 2) //Whore
- {
- ShowPlayerDialogEx(playerid, WHOREJOB, DIALOG_STYLE_MSGBOX, "Whore", "Information:\n\nThis job can be used to bring pleasure to any clients who may be interested in having some fun.\nThis is a job that offers sex to every client who comes along.\nThis is an illegal job and you can get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 3) //Drug Dealer
- {
- ShowPlayerDialogEx(playerid, DRUGDEALERJOB, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Information:\n\nThis job can be used to sell pot and crack to any customers you might find.\nIt often comes in handy, when you're a higher level at it.\nThe higher the level, the more drugs you can hold.\nThis is an illegal job and you can get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 4) //Mechanic
- {
- ShowPlayerDialogEx(playerid, MECHANICJOB, DIALOG_STYLE_MSGBOX, "Mechanic", "Information:\n\nThis job can be used to repair, add nos, and add hydraulics to vehicles.\nThis job can sometimes be rewarding, but often people do not require assistance.\nThis is a legal job and you can't get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 5) //Bodyguard
- {
- ShowPlayerDialogEx(playerid, BODYGUARDJOB, DIALOG_STYLE_MSGBOX, "Bodyguard", "Information:\n\nThis job can be used to give people half armor.\nThis job is very profitable and the common spot for purchasing off bodyguards is the gym.\nThis is a legal job and you can't get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 6) //Arms Dealer
- {
- ShowPlayerDialogEx(playerid, ARMSDEALERJOB, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Information:\n\nThis job can be used to sell people weapons.\nThis job is very profitable and can earn you big cash at later levels.\nThis is an illegal job and you can get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 7) //Boxer
- {
- ShowPlayerDialogEx(playerid, BOXERJOB, DIALOG_STYLE_MSGBOX, "Boxer", "Information:\n\nThis job can be used to box people inside the Ganton Gym.\nThis job is not very money-making, but you can become the boxing champion.\nThis is a legal job and you can't get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 8) //Taxi Driver
- {
- ShowPlayerDialogEx(playerid, TAXIJOB, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Information:\n\nThis job can be used to take passengers around the city for any price you desire($1 - $50 per 16 seconds).\nThis job is not very profitable as people do not usually call taxis, and sometimes they try to steal your taxi vehicle.\nThis is a legal job and you can't get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 9) //Drug Smuggling
- {
- ShowPlayerDialogEx(playerid, SMUGGLEJOB, DIALOG_STYLE_MSGBOX, "Drug Smuggling", "Information:\n\nThis job can be used to keep Crack and Pot filled in the Crack Lab.\nThis job is very profitable as people usually buy crack and pot, and sometimes they try to steal your pot and crack.\nThis is an ilegal job and you can get busted for doing it.", "Next", "Cancel");
- }
- if(listitem == 10) //Craftsman
- {
- ShowPlayerDialogEx(playerid, CRAFTJOB, DIALOG_STYLE_MSGBOX, "Craftsman", "Information:\nThis job can be used to sell crafts to other players.\nThis job is very profitable as people have a need for many of the things you can make.\nThis is a legal job and you can't get busted for doing it.\n\nCommands:\n/getmats /craft\nLocation of job: This job can be obtained in Willowfield at the junkyard, at the job icon (yellow I).", "Done", "Cancel");
- }
- if(listitem == 11) //Bartender
- {
- ShowPlayerDialogEx(playerid, BARTENDERJOB, DIALOG_STYLE_MSGBOX, "Bartender", "Information:\nThis job can be used to sell drinks to other players.\nThis is a legal job and you can't get busted for doing it.\n\nCommands:\n/selldrink\nLocation of job: This job can be obtained inside the Alhambra Club, at the job icon (yellow I).", "Done", "Cancel");
- }
- if(listitem == 12) //Trucker
- {
- ShowPlayerDialogEx(playerid, TRUCKERJOB, DIALOG_STYLE_MSGBOX, "Trucker","Information:\nThis job can be used to earn money by making truck deliveries\nThis is a legal job, however you can get busted if you transport illegal goods or hijack trucks.\n\nCommands:\n/loadtruck /checktruck /hijacktruck\nLocation of job: This job can be obtained at Ocean Docks, at the job icon (yellow I).", "Done", "Cancel");
- }
- if(listitem == 13) //Pizza Boy
- {
- ShowPlayerDialogEx(playerid, PIZZAJOB, DIALOG_STYLE_MSGBOX, "Pizza Boy","Information:\nThis job can be used to earn money by grabbing a pizza from the\n Idlewood Pizza Stack and then delivering it to different houses.\n You will get less and less money as time moves on and eventually,\n when the pizza is cold, it will be worthless.\n\nCommands:\n/getpizza\nLocation of job: This job can be obtained at the Idlewood Pizza Stack, at the job icon (yellow I).", "Done", "Cancel");
- }
- if(listitem == 14) //Street Sweeper
- {
- ShowPlayerDialogEx(playerid, SWEEPERJOB, DIALOG_STYLE_MSGBOX, "Street Sweeper","Information:\nSweep around Los Santos and from this job you will get $150 per minute.", "Done", "Cancel");
- }
- if(listitem == 15) //Miner
- {
- ShowPlayerDialogEx(playerid, MINERJOB, DIALOG_STYLE_MSGBOX, "Miner","Information:\nMine a good quality of rock to get money\nCommands: /mine, /killcheckpoint\nUse /findjob to locate this job.", "Done", "Cancel");
- }
- }
- }
- else if(dialogid == SMUGGLEJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, SMUGGLEJOB3, DIALOG_STYLE_MSGBOX, "Drug Smuggling", "Commands:\n\n/getcrate [name(Pot/Crack)]\n\nLocation of job: This job can be obtained outside the Crack Lab, at the job icon (yellow I).", "Done", "Cancel");
- }
- }
- else if(dialogid == SMUGGLEJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, SMUGGLEJOB2, DIALOG_STYLE_MSGBOX, "Drug Smuggling", "Note: There is no reload time for drug smuggling and you do need to level it up to obtain more money. There are 5 levels for this job.", "Next", "Cancel");
- }
- }
- else if(dialogid == TAXIJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, TAXIJOB2, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Note: There is no reload time for taxi fares and there are no levels for this job. In other words, you do not need to level it up to earn the max money you can.", "Next", "Cancel");
- }
- }
- else if(dialogid == TAXIJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, TAXIJOB3, DIALOG_STYLE_MSGBOX, "Taxi Driver", "Commands:\n\n/fare [$1 - $50]\n\nLocation of job: This job can be obtained in front of Unity Station at the job icon (yellow I).", "Done", "Cancel");
- }
- }
- if(dialogid == BOXERJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, BOXERJOB3, DIALOG_STYLE_MSGBOX, "Boxer", "Commands:\n\n/fight [PlayerID/Name], /boxstats\n\nLocation of job: This job can be obtained inside the Ganton Gym, at the job icon (yellow I).", "Done", "Cancel");
- }
- }
- else if(dialogid == BOXERJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, BOXERJOB2, DIALOG_STYLE_MSGBOX, "Boxer", "Note: There is no reload time for boxing and you don't need to level it up to box people in the gym. There are 3 levels for this job.\n\nLevel 1: Beginner Boxer.\nLevel 2: Amateur Boxer.\nLevel 3: Professional Boxer.", "Next", "Cancel");
- }
- }
- if(dialogid == ARMSDEALERJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, ARMSDEALERJOB2, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Note: The reload time for selling guns is always 10 seconds, no matter what level.\n\nSkills:\n\nLevel 1 Weapons: Flowers, Knuckles, SDPistol, and Shotgun.\nLevel 2 Weapons: Baseball Bat, Cane, MP5, and Rifle.\nLevel 3 Weapons: Shovel and Deagle.\nLevel 4 Weapons: Poolcue, Golf Club, AK47, and M4.\nLevel 5 Weapons: Katana, Dildo, Sniper, and SPAS12.", "Next", "Cancel");
- }
- }
- else if(dialogid == ARMSDEALERJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, ARMSDEALERJOB3, DIALOG_STYLE_MSGBOX, "Arms Dealer", "Commands:\n\n/getmats, /sellgun\n\nLocation of job: This job can be obtained outside the large Ammunation, at the 'gun' icon.", "Done", "Cancel");
- }
- }
- else if(dialogid == BODYGUARDJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, BODYGUARDJOB3, DIALOG_STYLE_MSGBOX, "Bodyguard", "Commands:\n\n/guard [playerid/partofname] [Price $200 - $1000]\n\nLocation of job: This job can be obtained outside the Ganton Gym, at the job icon (yellow I).", "Done", "Cancel");
- }
- }
- if(dialogid == BODYGUARDJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, BODYGUARDJOB2, DIALOG_STYLE_MSGBOX, "Bodyguard", "Note: The reload time is always 1 minute. There are no job levels for this job. In other words, you do not need to level it up to earn the max money you can.", "Next", "Cancel");
- }
- }
- else if(dialogid == MECHANICJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, MECHANICJOB2, DIALOG_STYLE_MSGBOX, "Mechanic", "Note: The reload time is always 1 minute, no matter what level.", "Next", "Cancel");
- }
- }
- else if(dialogid == MECHANICJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, MECHANICJOB3, DIALOG_STYLE_MSGBOX, "Mechanic", "Commands:\n\n/fix, /repair, /hyd, /nos, /refill, /mechduty\n\nLocation of job: This job can be obtained at Ocean Docks, at the job icon (yellow circle).", "Done", "Cancel");
- }
- }
- else if(dialogid == DRUGDEALERJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, DRUGDEALERJOB2, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Note: The reload time is always 1 minute, no matter what level.\n\nSkills:\n\nLevel 1: You can hold 10 pot and 5 crack.\nLevel 2: You can hold 20 pot and 15 crack.\nLevel 3: You can hold 30 pot and 15 crack.\nLevel 4: You can hold 40 pot and 20 crack.\nLevel 5: You can hold 50 pot and 25 crack.", "Next", "Cancel");
- }
- }
- else if(dialogid == DRUGDEALERJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, DRUGDEALERJOB3, DIALOG_STYLE_MSGBOX, "Drug Dealer", "Commands:\n\n/sellpot, /getpot, /sellcrack, /getcrack\n\nLocation of job: This job can be located outside the Drug Den, opposite the Ganton Gym, at the 'D' icon.", "Done", "Cancel");
- }
- }
- else if(dialogid == WHOREJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, WHOREJOB3, DIALOG_STYLE_MSGBOX, "Whore", "Commands:\n\n/sex\n/sex is a command to offer sex to a client, and may only be used in a vehicle.\n\nLocation of job: This job can be obtained inside the Pig Pen, at the job icon (yellow circle).", "Done", "Cancel");
- }
- }
- else if(dialogid == LAWYERJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, LAWYERJOB3, DIALOG_STYLE_MSGBOX, "Lawyer", "Commands:\n\n/defend, /free, /wanted, /lawyerduty\n\nLocation of job: This job can be found at the job map icon (yellow I) near the bank.", "Done", "Cancel");
- }
- }
- else if(dialogid == WHOREJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, WHOREJOB2, DIALOG_STYLE_MSGBOX, "Whore", "Note: The reload time is always 1 minute, no matter what level.\n\nSkills:\n\nLevel 1: You have a very high chance of catching/giving STD's.\nLevel 2: You have a high chance of catching/giving STD's.\nLevel 3: You have a medium chance of catching/giving STD's.\nLevel 4: You have a low chance of catching/giving STD's.\nLevel 5: You have a very low chance of catching/giving STD's.", "Next", "Cancel");
- }
- }
- else if(dialogid == LAWYERJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, LAWYERJOB2, DIALOG_STYLE_MSGBOX, "Lawyer", "Note: The reload time will decrease as you level up.\n\nSkills:\n\nLevel 1: You can reduce inmates sentences by 1 minute.\nLevel 2: You can reduce inmates sentences by 2 minutes.\nLevel 3: You can reduce inmates sentences by 3 minutes.\nLevel 4: You can reduce inmates sentences by 4 minutes.\nLevel 5: You can reduce inmates sentences by 5 minutes.", "Next", "Cancel");
- }
- }
- else if(dialogid == DETECTIVEJOB2)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, DETECTIVEJOB3, DIALOG_STYLE_MSGBOX, "Detective", "Commands:\n\n/find\n/find is a command that can locate a player's position.\n\nLocation of job: This job can be obtained in the Los Santos Police Department.", "Done", "Cancel");
- }
- }
- else if(dialogid == DETECTIVEJOB)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, DETECTIVEJOB2, DIALOG_STYLE_MSGBOX, "Detective", "Skills:\n\nLevel 1: You can find someone for 4 seconds, the reload time is 2 minutes.\nLevel 2: You can find someone for 6 seconds, the reload time is 1 minute, 20 seconds.\nLevel 3: You can find someone for 8 seconds, the reload time is 1 minute.\nLevel 4: You can find someone for 10 seconds, the reload time is 30 seconds.\nLevel 5: You can find someone for 12 seconds, the reload time is 15 seconds.", "Next", "Cancel");
- }
- }
- else if(dialogid == FINDJOB)
- {
- if(response)
- {
- if(listitem == 0)
- {
- FindingJob[playerid] = 1;
- SetPlayerCheckpoint(playerid, 1555.170654, -1675.652343, 16.195312, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Detective Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 1)
- {
- FindingJob[playerid] = 2;
- SetPlayerCheckpoint(playerid, 1380.827148, -1088.673339, 27.384355, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Lawyer Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 2)
- {
- FindingJob[playerid] = 3;
- SetPlayerCheckpoint(playerid, 2421.525878, -1219.291503, 25.558557, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Whore Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 3)
- {
- FindingJob[playerid] = 4;
- SetPlayerCheckpoint(playerid, 2166.397216, -1675.312622, 15.085937, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Drug Dealer Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 4)
- {
- FindingJob[playerid] = 5;
- SetPlayerCheckpoint(playerid, 2329.970214, -2315.306884, 13.546875, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Car Mechanic Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 5)
- {
- FindingJob[playerid] = 6;
- SetPlayerCheckpoint(playerid, 2226.128662, -1718.083984, 13.515367, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Bodyguard Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 6)
- {
- FindingJob[playerid] = 7;
- SetPlayerCheckpoint(playerid, 1366.455566, -1275.152709, 13.546875, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Arms Dealer Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 7)
- {
- FindingJob[playerid] = 8;
- SetPlayerCheckpoint(playerid, 2229.904052, -1721.263793, 13.561338, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Boxer Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 8)
- {
- FindingJob[playerid] = 9;
- SetPlayerCheckpoint(playerid, 2354.260498, -1169.261840, 28.004892, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Drug Smuggler Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 9)
- {
- FindingJob[playerid] = 10;
- SetPlayerCheckpoint(playerid, 1741.570678, -1863.780883, 13.574654, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Taxi Driver Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 10)
- {
- FindingJob[playerid] = 11;
- SetPlayerCheckpoint(playerid, 2195.686035, -1972.952880, 13.558935, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Craftsman Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 11)
- {
- FindingJob[playerid] = 12;
- SetPlayerCheckpoint(playerid, 1836.902587, -1682.565063, 13.328538, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Bartender Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 12)
- {
- FindingJob[playerid] = 13;
- SetPlayerCheckpoint(playerid, 2214.893798, -2661.312255, 13.546875, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Trucker Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 13)
- {
- FindingJob[playerid] = 14;
- SetPlayerCheckpoint(playerid, 2105.363037, -1806.507812, 13.554687, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Pizza Boy Job. Go to the red checkpoint on your radar/map to get this job.");
- }
- if(listitem == 14)
- {
- FindingJob[playerid] = 15;
- SetPlayerCheckpoint(playerid, 383.403381, -2088.798339, 7.835937, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Fisher Job. Go to the red checkpoint on your radar/map to fish.");
- }
- if(listitem == 15)
- {
- FindingJob[playerid] = 16;
- SetPlayerCheckpoint(playerid, 2197.9355, -1977.7380, 13.5584, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Street Sweeper Job. Go to the red checkpoint on your radar/map to sweep the streets.");
- }
- if(listitem == 16)
- {
- FindingJob[playerid] = 17;
- SetPlayerCheckpoint(playerid, 1280.6154,-1272.4631,13.5365, 3);
- SendClientMessage(playerid, COLOR_WHITE, "You have selected the Miner Job. Go to the red checkpoint on your radar/map to start mining.");
- }
- }
- } else if(dialogid == SIGNCHECK){
- if(!response)
- return 1;
-
- if(strlen(inputtext) < 1) {
- format(string, sizeof(string), "You must enter the check code before signing.\n\nCheck code: %d\n\nEnter your check code to receive your paycheck:", PayCheckCode[playerid]);
- ShowPlayerDialogEx(playerid, SIGNCHECK, DIALOG_STYLE_INPUT, "Sign check", string, "Sign check","Cancel");
- return 1;
- }
-
- if(!IsNumeric(inputtext)) {
- format(string, sizeof(string), "Wrong check code. The check code consists out of numbers only.\n\nCheck code: %d\n\nEnter your check code to receive your paycheck:", PayCheckCode[playerid]);
- ShowPlayerDialogEx(playerid, SIGNCHECK, DIALOG_STYLE_INPUT, "Sign check", string, "Sign check","Cancel");
- return 1;
- }
-
- if(strlen(inputtext) > 6 || (strlen(inputtext) > 0 && strlen(inputtext) < 6)) {
- format(string, sizeof(string), "Wrong check code. The check code consists out of 6 digits.\n\nCheck code: %d\n\nEnter your check code to receive your paycheck:", PayCheckCode[playerid]);
- ShowPlayerDialogEx(playerid, SIGNCHECK, DIALOG_STYLE_INPUT, "Sign check", string, "Sign check","Cancel");
- return 1;
- }
- new
- code = strval(inputtext);
-
- if(code == PayCheckCode[playerid]) {
- PayCheckCode[playerid] = 0;
- new
- PayCheck = PlayerInfo[playerid][pPayCheck] / 10,
- TaxCost,
- TaxPercentage;
- if(PayCheck < 1250) {
- TaxPercentage = 10;
- TaxCost = (PayCheck / 100) * 10;
- } else if(PayCheck >= 1250 && PayCheck <= 1999) {
- TaxPercentage = 15;
- TaxCost = (PayCheck / 100) * 15;
- } else if(PayCheck >= 2000 && PayCheck <= 2499) {
- TaxPercentage = 25;
- TaxCost = (PayCheck / 100) * 25;
- } else if(PayCheck >= 2500 && PayCheck <= 3499) {
- TaxPercentage = 30;
- TaxCost = (PayCheck / 100) * 30;
- } else if(PayCheck >= 3500) {
- TaxPercentage = 35;
- TaxCost = (PayCheck / 100) * 35;
- }
- SendClientMessage(playerid, COLOR_WHITE, "________ BANK STATEMENT ________");
- format(string, sizeof(string), " Paycheck: $%d | Tax: $%d (%d percent)", PayCheck, TaxCost, TaxPercentage);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- new
- interest;
-
- if(PlayerInfo[playerid][pDonator] == 0) interest = PlayerInfo[playerid][pBank] / 1000;
- else if(PlayerInfo[playerid][pDonator] == 1) interest = PlayerInfo[playerid][pBank] / 400;
- else if(PlayerInfo[playerid][pDonator] == 2) interest = PlayerInfo[playerid][pBank] / 200;
- else if(PlayerInfo[playerid][pDonator] == 3) interest = PlayerInfo[playerid][pBank] / 100;
- if(interest > 5000)
- interest = 5000;
- if(PlayerInfo[playerid][pDonator] == 0) format(string, sizeof(string), " Old balance: $%d | Interest rate: 0.1 percent (5k max)", PlayerInfo[playerid][pBank]);
- else if(PlayerInfo[playerid][pDonator] == 1) format(string, sizeof(string), " Old balance: $%d | Interest rate: 0.2 percent (5k max)", PlayerInfo[playerid][pBank]);
- else if(PlayerInfo[playerid][pDonator] == 2) format(string, sizeof(string), " Old balance: $%d | Interest rate: 0.3 percent (5k max)", PlayerInfo[playerid][pBank]);
- else if(PlayerInfo[playerid][pDonator] == 3) format(string, sizeof(string), " Old balance: $%d | Interest rate: 0.5 percent (5k max)", PlayerInfo[playerid][pBank]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pFaction] == 5 || PlayerInfo[playerid][pFaction] == 9) {
- if(PlayerInfo[playerid][pRank] == 0) {
- PlayerInfo[playerid][pBank] += FACTION_PAY_PER_RANK / 2;
- format(string,sizeof(string)," Faction pay: $%d", FACTION_PAY_PER_RANK / 2);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- } else {
- PlayerInfo[playerid][pBank] += PlayerInfo[playerid][pRank] * FACTION_PAY_PER_RANK;
- format(string,sizeof(string)," Faction pay: $%d", PlayerInfo[playerid][pRank] * 100);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- }
- }
- //Tax += TaxCost;
- PlayerInfo[playerid][pBank] += PayCheck;
- PlayerInfo[playerid][pBank] += interest;
- PlayerInfo[playerid][pBank] -= TaxCost;
- format(string, sizeof(string), " Interest gained: $%d", interest);
- SendClientMessage(playerid, COLOR_GRAD3, string);
- SendClientMessage(playerid, COLOR_GRAD4, "______________________________________");
- format(string, sizeof(string), " New balance: $%d | Rent paid: $%d", PlayerInfo[playerid][pBank], (PlayerInfo[playerid][pRenting] != INVALID_HOUSE_ID) ? (HouseInfo[PlayerInfo[playerid][pRenting]][hRentFee]) : (0));
- SendClientMessage(playerid, COLOR_GRAD5, string);
- GameTextForPlayer(playerid, "~w~Paycheck received", 5000, 1);
- PlayerInfo[playerid][pPayReady] = 0;
- PlayerInfo[playerid][pPayCheck] = 0;
-
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[playerid][pRespect] += 2;
- SendClientMessage(playerid, COLOR_YELLOW, "* You have gained two respect points due to double experience.");
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "* You have only gained one respect point since it's not within the double experience hours.");
- PlayerInfo[playerid][pRespect]++;
- }*/
- }
- else
- {
- PlayerInfo[playerid][pRespect]++;
- }
-
- PlayerInfo[playerid][pConnectTime]++;
- SignedPaycheck[playerid] = 1;
- MissedPaychecks[playerid] = 0;
-
- if(PlayerInfo[playerid][pWepRes] != 0)
- {
- PlayerInfo[playerid][pWepRes]--;
- }
-
- // Referrals
- if(PlayerInfo[playerid][pConnectTime] == 8 && (strlen(PlayerInfo[playerid][pReferredBy]) > 3 && strlen(PlayerInfo[playerid][pReferredBy]) < 20)) {
- new
- giveplayerid = ReturnUser(PlayerInfo[playerid][pReferredBy]);
-
- if(IsPlayerConnected(giveplayerid)) {
- PlayerInfo[giveplayerid][pRefTokens]++;
- format(string, sizeof(string), "Your friend %s, that was referred by you, has just reached 8 playing hours. Therefore you have gained 1 referral token.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Since you have reached 8 playing hours and were referred by %s, they have gained 1 referral token.", PlayerInfo[playerid][pReferredBy]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- } else if(doesAccountExist(PlayerInfo[playerid][pReferredBy])) {
- OnPlayerOfflineLogin(PlayerInfo[playerid][pReferredBy]);
- PlayerInfo[MAX_PLAYERS][pRefTokensOffline]++;
- OnPlayerOfflineSave(PlayerInfo[playerid][pReferredBy]);
- format(string, sizeof(string), "Since you have reached 8 playing hours and were referred by %s, they have gained 1 referral token.", PlayerInfo[playerid][pReferredBy]);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
-
-
- PlayerInfo[playerid][pClaim] = 1;
-
- PlayerInfo[playerid][pTT] = 0;
- if(PlayerInfo[playerid][pDonator] > 1)
- {
- PlayerInfo[playerid][pPills]++;
- SCM(playerid, COLOR_YELLOW, "As a Donator, you have received a pills.");
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Wrong check code.");
- }
- } else if(dialogid == 2398) {
- if(strlen(inputtext) >= 64)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't select a password that's above 64 characters.");
- }
- else
- {
- if(strlen(inputtext) >= 1)
- {
- if(!response)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have prevented yourself from changing your password.");
- }
- else
- {
- new passbuffer[129];
- WP_Hash(passbuffer, sizeof(passbuffer), inputtext);
- format(PlayerInfo[playerid][pKey], 129, "%s", passbuffer);
- format(string, sizeof(string), "You have changed your password to '%s'", inputtext);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- OnPlayerStatsUpdate(playerid);
- format(string, sizeof(string), "%s (IP: %s) has changed their password.", GetPlayerNameEx(playerid), PlayerInfo[playerid][pIP]);
- Log("logs/password.log", string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Your password must be longer than 1 character.");
- }
- }
- }
- else if(dialogid == DIALOG_NAMECHANGE)
- {
- if(!response || strlen(inputtext) == 0) return SendClientMessage(playerid, COLOR_WHITE, "You have prevented yourself from changing your name.");
- if(strlen(inputtext) > 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't select a name that's above 20 characters.");
- }
- else
- {
- if(strlen(inputtext) >= 1)
- {
- if(!response)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have prevented yourself from changing your name.");
- }
- else
- {
- for(new i = 0; i < strlen(inputtext); i++)
- {
- if(inputtext[i] == ' ') return SendClientMessage(playerid, COLOR_GRAD2, "Please use the '_'(underscore) instead of the ' '(space)");
- }
- if(strfind(inputtext, "_", true) == -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Name change rejected. Please choose a name in the correct format: Firstname_Lastname.");
- return 1;
- }
- new namechangecost;
- namechangecost = (PlayerInfo[playerid][pLevel]) * 1500;
- if(PlayerInfo[playerid][pFaction] == 2 || PlayerInfo[playerid][pFaction] == 4)
- {
- new String[128];
- SetPVarInt(playerid, "RequestingNameChange", 1);
- SetPVarString(playerid, "NewNameRequest", inputtext);
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(String, sizeof(String), "You have requested a namechange from %s to %s at no cost (hitman or FBI), please wait until an admin approves it.", playername, inputtext, namechangecost);
- SendClientMessage(playerid, COLOR_YELLOW, String);
- format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) requested a name change to %s for free - /approvename %d (accept), or /denyname %d (deny).", playername, playerid, inputtext, playerid, playerid);
- ABroadCast(COLOR_YELLOW, String, 1);
- return 1;
- }
- if(GetPlayerCash(playerid) >= namechangecost)
- {
- new String[128];
- SetPVarInt(playerid, "RequestingNameChange", 1);
- SetPVarString(playerid, "NewNameRequest", inputtext);
- SetPVarInt(playerid, "NameChangeCost", namechangecost);
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(String, sizeof(String), "You have requested a namechange from %s to %s for $%d, please wait until an admin approves it.", playername, inputtext, namechangecost);
- SendClientMessage(playerid, COLOR_YELLOW, String);
- format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) requested a name change to %s for $%d - /approvename %d (accept), or /denyname %d (deny).", playername, playerid, inputtext, namechangecost, playerid, playerid);
- ABroadCast(COLOR_YELLOW, String, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have enough money for the name change.");
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Your name must be longer than 1 character.");
- }
- }
- }
- else if(dialogid == DIALOG_NAMECHANGE2)
- {
- if(!response || strlen(inputtext) == 0) return Kick(playerid);
- if(strlen(inputtext) >= 20)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't select a name that's above 20 characters.");
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE2, DIALOG_STYLE_INPUT, "Free name change","This is a roleplay server where you must have a name in this format: Firstname_Lastname.\nFor example: John_Smith or Jimmy_Johnson\n\nAn admin has offered you to change your name to the correct format for free. Please enter your desired name below.\n\nNote: If you press cancel you will be kicked from the server.", "Change", "Cancel");
- }
- else
- {
- if(strlen(inputtext) >= 1)
- {
- if(!response)
- {
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE2, DIALOG_STYLE_INPUT, "Free name change","This is a roleplay server where you must have a name in this format: Firstname_Lastname.\nFor example: John_Smith or Jimmy_Johnson\n\nAn admin has offered you to change your name to the correct format for free. Please enter your desired name below.\n\nNote: If you press cancel you will be kicked from the server.", "Change", "Cancel");
- }
- else
- {
- for(new i = 0; i < strlen(inputtext); i++)
- {
- if(inputtext[i] == ' ')
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please use the '_'(underscore) instead of the ' '(space)");
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE2, DIALOG_STYLE_INPUT, "Free name change","This is a roleplay server where you must have a name in this format: Firstname_Lastname.\nFor example: John_Smith or Jimmy_Johnson\n\nAn admin has offered you to change your name to the correct format for free. Please enter your desired name below.\n\nNote: If you press cancel you will be kicked from the server.", "Change", "Cancel");
- return 1;
- }
- }
- if(strfind(inputtext, "_", true) == -1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Name change rejected. Please choose a name in the correct format: Firstname_Lastname.");
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE2, DIALOG_STYLE_INPUT, "Free name change","This is a roleplay server where you must have a name in this format: Firstname_Lastname.\nFor example: John_Smith or Jimmy_Johnson\n\nAn admin has offered you to change your name to the correct format for free. Please enter your desired name below.\n\nNote: If you press cancel you will be kicked from the server.", "Change", "Cancel");
- return 1;
- }
- else
- {
- new String[128];
- SetPVarInt(playerid, "RequestingNameChange", 1);
- SetPVarString(playerid, "NewNameRequest", inputtext);
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(String, sizeof(String), "You have requested a namechange from %s to %s please wait until an admin approves it.", playername, inputtext);
- SendClientMessage(playerid, COLOR_YELLOW, String);
- format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) requested a name change to %s for free (non-RP name) - /approvename %d (accept), or /denyname %d (deny).", playername, playerid, inputtext, playerid, playerid);
- ABroadCast(COLOR_YELLOW, String, 1);
- return 1;
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Your name must be longer than 1 character.");
- ShowPlayerDialogEx(playerid, DIALOG_NAMECHANGE2, DIALOG_STYLE_INPUT, "Free name change","This is a roleplay server where you must have a name in this format: Firstname_Lastname.\nFor example: John_Smith or Jimmy_Johnson\n\nAn admin has offered you to change your name to the correct format for free. Please enter your desired name below.\n\nNote: If you press cancel you will be kicked from the server.", "Change", "Cancel");
- }
- }
- }
- if(dialogid == DIALOG_STARTJOB && response)
- {
- startjob[playerid] = 0;
- onminer[playerid] = 1;
- minerskin[playerid] = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, 27);
- SetPlayerAttachedObject(playerid, 3, 18634, 6, 0.078222, 0.000000, 0.110844, 298.897308, 264.126861, 193.350555, 1.000000, 1.000000, 1.000000);
- SendClientMessage(playerid, -1, "You are now hired as a miner. {DDFF00}Mining sites are located near the rocks.");
- SendClientMessage(playerid, -1, "You need to craft a special Pickaxe to mine Quality metals.");
- SendClientMessage(playerid, -1, "When you are finished with your shift; come back to this place and clock out.");
- injob[playerid] = 1;
- SetTimer("PickupUnhide", 7000, 0);
- return 1;
- }
- if(dialogid == DIALOG_ENDJOB && response)
- {
- new money = countmet[playerid]*1 + countmetEx[playerid]*4;
- startjob[playerid] = 0;
- onminer[playerid] = 0;
- prinesmet[playerid] = 0;
- countmet[playerid] = 0;
- prinesmetEx[playerid] = 0;
- countmetEx[playerid] = 0;
- ExtraMetall[playerid] = 0;
- SetPlayerSkin(playerid, minerskin[playerid]);
- PlayerInfo[playerid][pCash] += money;
- format(string, 128, "Job finished: {DDFF00}$%d {FFFFFF}is your reward", money);
- SendClientMessage(playerid, -1, string);
- format(string, 128, "~g~$%d", money);
- GameTextForPlayer(playerid, string, 4000, 6);
- RemovePlayerAttachedObject(playerid, 3);
- RemovePlayerAttachedObject(playerid, 4);
- DisablePlayerCheckpoint(playerid);
- injob[playerid] = 0;
- SetTimer("PickupUnhide", 7000, 0);
- return 1;
- }
- if(dialogid == NEONMENU)
- {
- if(response)
- {
- if(listitem == 0)
- {
- //blue
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- DeletePVar(playerid, "Status");
- }
- if(listitem == 1)
- {
- //red
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- }
- if(listitem == 2)
- {
- //green
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- }
- if(listitem == 3)
- {
- //white
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- }
- if(listitem == 4)
- {
- //pink
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- }
- if(listitem == 5)
- {
- //yellow
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- DeletePVar(playerid, "Status");
- }
- /*if(listitem == 6)
- {
- //police
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "neon12", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "neon13", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");
- }
- if(listitem == 7)
- {
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "interior", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "interior1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "interior"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "interior1"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Interior lights installed");
- }
- if(listitem == 8)
- {
- //back
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "back", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "back1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Back neon installed");
- }
- if(listitem == 9)
- {
- //front
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Front neon installed");
- }
- if(listitem == 10)
- {
- //undercover
- SetPVarInt(playerid, "Status", 1);
- SetPVarInt(playerid, "undercover", CreateObject(18646,0,0,0,0,0,0));
- SetPVarInt(playerid, "undercover1", CreateObject(18646,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "undercover"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Undercover lights installed");
- }*/
- if(listitem == 6)
- {
- //remove neon
- DestroyObject(GetPVarInt(playerid, "neon"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon2"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon3"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon4"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon5"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon6"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon7"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon8"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon9"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon10"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon11"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon12"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "neon13"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "interior"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "interior1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "back"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "back1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "front"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "front1"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "undercover"));
- DeletePVar(playerid, "Status");
- DestroyObject(GetPVarInt(playerid, "undercover1"));
- DeletePVar(playerid, "Status");
- }
- }
- }
- if(dialogid == DIALOG_LICENSE_BUY && response)
- {
- switch (listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pCarLic] == 0)
- {
- if(GetPlayerCash(playerid) < 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy a driver's license.");
- return 1;
- }
- GivePlayerCash(playerid,-500);
- PlayerInfo[playerid][pCarLic] = 1;
- SendClientMessage(playerid, COLOR_GREY, "You have successfully acquired a driver's license.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You already have a driver's license.");
- }
- case 1:
- {
- if(PlayerInfo[playerid][pBoatLic] == 0)
- {
- if(GetPlayerCash(playerid) < 500)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy a boating license.");
- return 1;
- }
- GivePlayerCash(playerid,-500);
- PlayerInfo[playerid][pBoatLic] = 1;
- SendClientMessage(playerid, COLOR_GREY, "You have successfully acquired a boating license.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You already have a boating license.");
- }
- case 2:
- {
- if(PlayerInfo[playerid][pFlyLic] == 0)
- {
- if(PlayerInfo[playerid][pLevel] >=2) // FOR LATER SETTING POSSIBLY
- {
- if(GetPlayerCash(playerid) < 2500)
- {
- SendClientMessage(playerid, COLOR_GREY, "You can't afford to buy a pilot's license.");
- return 1;
- }
- GivePlayerCash(playerid,-2500);
- PlayerInfo[playerid][pFlyLic] = 1;
- SendClientMessage(playerid, COLOR_GREY, "You have successfully acquired a pilot license; you will now be able to pilot aircraft.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You must be level 2 or above to acquire a pilot license.");
- }
- else SendClientMessage(playerid, COLOR_GREY, "You already have a pilot license.");
- }
- }
- }
- if(dialogid == FAMILYSKINDIALOG)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetFamilySkin(playerid, 0);
- }
- if(listitem == 1)
- {
- SetFamilySkin(playerid, 1);
- }
- if(listitem == 2)
- {
- SetFamilySkin(playerid, 2);
- }
- if(listitem == 3)
- {
- SetFamilySkin(playerid, 3);
- }
- if(listitem == 4)
- {
- SetFamilySkin(playerid, 4);
- }
- if(listitem == 5)
- {
- SetFamilySkin(playerid, 5);
- }
- if(listitem == 6)
- {
- SetFamilySkin(playerid, 6);
- }
- if(listitem == 7)
- {
- SetFamilySkin(playerid, 7);
- }
- }
- }
- if((dialogid == BUYTOYS) && response)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYS2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if((dialogid == BUYTOYS2) && response)
- {
- if(listitem == 5 && PlayerInfo[playerid][pDonator] < 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Premium+ Donator to use that slot!");
- if(listitem == 6 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Silver+ Donator to use that slot!");
- if(listitem == 7 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Gold+ Donator to use that slot!");
- if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessage(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");
- slotselection[playerid] = listitem;
- new stringg[3500];
- for(new x;x<sizeof(HoldingObjects);x++)
- {
- format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjects[x][holdingmodelname], HoldingObjects[x][holdingprice]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYS3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
- }
- if((dialogid == BUYTOYS3) && response)
- {
- if(GetPlayerCash(playerid) < HoldingObjects[listitem][holdingprice])
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You can't afford that!");
- }
- else
- {
- GivePlayerCash(playerid, -HoldingObjects[listitem][holdingprice]);
- PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjects[listitem][holdingmodelid];
- new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
- if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18891 && modelid <= 18910)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid >= 18926 && modelid <= 18935)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18911 && modelid <= 18920)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid == 19078 || modelid == 19078)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjects[listitem][holdingmodelname], HoldingObjects[listitem][holdingprice], slotselection[playerid]);
- SendClientMessage(playerid, COLOR_RED, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
- }
- }
- if((dialogid == TOYS) && response)
- {
- if(listitem == 0)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, WEARTOY, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
- }
- else if(listitem == 1)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, EDITTOYS, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
- }
- else if(listitem == 2)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, DELETETOY, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Delete", "Cancel");
- }
- }
- if((dialogid == EDITTOYS) && response)
- {
- if(PlayerToyInfo[playerid][listitem][ptModelID] == 0)
- {
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu: Edit", "Woops! You don't have anything on that slot", "OK", "");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "{AA3333}HINT:{FFFF00} Position your camera differently to better see where your editing.");
- slotselection[playerid] = listitem;
- ShowEditMenu(playerid);
- }
- }
- if((dialogid == EDITTOYS2))
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, EDITTOYSBONE, DIALOG_STYLE_LIST, "Select a Bone", "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 clavicle\nRight clavicle\nNeck\nJaw", "Select", "Cancel");
- }
- else if(listitem == 1)
- {
- SendClientMessage(playerid, COLOR_WHITE, "{AA3333}HINT:{FFFF00} Hold your Space Bar to move the camera,Press ESC to cancel the editor");
- EditAttachedObject(playerid, slotselection[playerid]);
- }
- }
- else
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, EDITTOYS, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
- }
- }
- if(dialogid == EDITTOYSBONE)
- {
- if(response)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = listitem+1;
- }
- ShowEditMenu(playerid);
- }
- if((dialogid == WEARTOY) && response)
- {
- if(PlayerToyInfo[playerid][listitem][ptModelID] == 0)
- {
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu: Attach/Deattach", "Woops! You don't have anything to put on from that slot", "OK", "");
- }
- else
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
- {
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][listitem][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(string, sizeof(string), "Successfully dettached %s (Bone: %s) (Slot: %d)", name, HoldingBones[PlayerToyInfo[playerid][listitem][ptBone]], listitem);
- SendClientMessage(playerid, COLOR_RED, string);
- RemovePlayerAttachedObject(playerid, listitem);
- }
- else
- {
- if(listitem == 5 && PlayerInfo[playerid][pDonator] < 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Premium Donator+ Donator to use that slot!");
- if(listitem == 6 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Silver Donator+ Donator to use that slot!");
- if(listitem == 7 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Gold Donator+ Donator to use that slot!");
- if(PlayerToyInfo[playerid][listitem][ptScaleX] == 0) {
- PlayerToyInfo[playerid][listitem][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][listitem][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][listitem][ptScaleZ] = 1.0;
- }
- SetPlayerAttachedObject(playerid, listitem, PlayerToyInfo[playerid][listitem][ptModelID], PlayerToyInfo[playerid][listitem][ptBone], PlayerToyInfo[playerid][listitem][ptPosX], PlayerToyInfo[playerid][listitem][ptPosY], PlayerToyInfo[playerid][listitem][ptPosZ],
- PlayerToyInfo[playerid][listitem][ptRotX], PlayerToyInfo[playerid][listitem][ptRotY], PlayerToyInfo[playerid][listitem][ptRotZ], PlayerToyInfo[playerid][listitem][ptScaleX], PlayerToyInfo[playerid][listitem][ptScaleY], PlayerToyInfo[playerid][listitem][ptScaleZ]);
- new name[24];
- format(name, sizeof(name), "None");
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][listitem][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(string, sizeof(string), "Successfully attached %s (Bone: %s) (Slot: %d)", name, HoldingBones[PlayerToyInfo[playerid][listitem][ptBone]], listitem);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- }
- }
- if((dialogid == DELETETOY) && response)
- {
- PlayerToyInfo[playerid][listitem][ptModelID] = 0;
- PlayerToyInfo[playerid][listitem][ptBone] = 0;
- PlayerToyInfo[playerid][listitem][ptPosX] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosY] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosX] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosY] = 0.0;
- PlayerToyInfo[playerid][listitem][ptPosZ] = 0.0;
- if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
- {
- RemovePlayerAttachedObject(playerid, listitem);
- }
- format(string, sizeof(string), "You have deleted your toy in slot %d", listitem);
- ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu", string, "OK", "");
- }
- if((dialogid == BUYTOYSCOP) && response)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24] = "None";
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSCOP2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if((dialogid == BUYTOYSCOP2) && response)
- {
- // (TEMPORARY - Howard NOTE) NO VIP added yet
- if(listitem >= 3 && PlayerInfo[playerid][pDonator] < 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Ruby Donator + to use that slot!");
- if(listitem >= 4 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Sapphire Donator + to use that slot!");
- if(listitem >= 5 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Diamond Donator + to use that slot!");
- if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessage(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");
- slotselection[playerid] = listitem;
- new stringg[1024];
- for(new x;x<sizeof(HoldingObjectsCop);x++)
- {
- format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsCop[x][holdingmodelname], HoldingObjectsCop[x][holdingprice]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSCOP3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
- }
- if((dialogid == BUYTOYSCOP3) && response)
- {
- if(GetPlayerCash(playerid) < HoldingObjectsCop[listitem][holdingprice])
- {
- SendClientMessage(playerid, COLOR_WHITE, "* You can't afford that!");
- }
- else
- {
- GivePlayerCash(playerid, -HoldingObjectsCop[listitem][holdingprice]);
- PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsCop[listitem][holdingmodelid];
- new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
- if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18891 && modelid <= 18910)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid >= 18926 && modelid <= 18935)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18911 && modelid <= 18920)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid == 19078 || modelid == 19078)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsCop[listitem][holdingmodelname], HoldingObjectsCop[listitem][holdingprice], slotselection[playerid]);
- SendClientMessage(playerid, COLOR_RED, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
- }
- }
- if((dialogid == BUYTOYSGOLD) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Sapphire Donator +");
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24] = "None";
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSGOLD2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if((dialogid == BUYTOYSGOLD2) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Sapphire Donator +");
- if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessageEx(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");
- slotselection[playerid] = listitem;
- new stringg[5256];
- for(new x;x<sizeof(HoldingObjectsAll);x++)
- {
- format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsAll[x][holdingmodelname], HoldingObjectsAll[x][holdingprice]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSGOLD3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
- }
- if((dialogid == BUYTOYSGOLD3) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Sapphire Donator +");
- if(GetPlayerCash(playerid) < HoldingObjects[listitem][holdingprice])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "* You can't afford that!");
- }
- else
- {
- GivePlayerCash(playerid, -HoldingObjectsAll[listitem][holdingprice]);
- PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsAll[listitem][holdingmodelid];
- new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
- if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid >= 18891 && modelid <= 18910)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid >= 18926 && modelid <= 18935)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid >= 18911 && modelid <= 18920)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if(modelid == 19078 || modelid == 19078)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- else
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsAll[listitem][holdingmodelname], HoldingObjectsAll[listitem][holdingprice], slotselection[playerid]);
- SendClientMessageEx(playerid, COLOR_RED, string);
- SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
- }
- }
- if((dialogid == BUYTOYSPLAT) && response)
- {
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24] = "None";
- for(new i;i<sizeof(HoldingObjectsShop);i++)
- {
- if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
- }
- }
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSPLAT2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if((dialogid == BUYTOYSPLAT2) && response)
- {
- if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessageEx(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");
- slotselection[playerid] = listitem;
- new stringg[5256];
- for(new x;x<sizeof(HoldingObjectsShop);x++)
- {
- format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsShop[x][holdingmodelname], HoldingObjectsShop[x][holdingprice]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSPLAT3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
- }
- if((dialogid == BUYTOYSPLAT3) && response)
- {
- if(GetPlayerCash(playerid) < HoldingObjects[listitem][holdingprice])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "* You can't afford that!");
- }
- else
- {
- GivePlayerCash(playerid, -HoldingObjectsShop[listitem][holdingprice]);
- PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsShop[listitem][holdingmodelid];
- new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
- if((modelid >= 19317 && modelid <= 19318))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid == 19472 || modelid == 19469)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 19421 && modelid <= 19424)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid == 19352 || modelid >= 19350 && modelid <= 19351)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid == 19314 || modelid == 19315)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18891 && modelid <= 18910)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid >= 18926 && modelid <= 18935)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if(modelid >= 18911 && modelid <= 18920)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
- }
- else if(modelid == 19078 || modelid == 19078)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- else
- {
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
- }
- format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsShop[listitem][holdingmodelname], HoldingObjectsShop[listitem][holdingprice], slotselection[playerid]);
- SendClientMessageEx(playerid, COLOR_RED, string);
- SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
- }
- }
- if(dialogid == LSFMDMENU)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pDuty] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* Paramedic %s clocked in and is now on duty.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid,TEAM_MED_COLOR);
- SetPlayerArmourEx(playerid, 100);
- if(PlayerInfo[playerid][pRank] >= 4 || PlayerInfo[playerid][pLeader] == 3)
- {
- GivePlayerValidWeapon(playerid, 42, 99999);
- }
- Medics += 1;
- PlayerInfo[playerid][pDuty] = 1;
- }
- else
- {
- format(string, sizeof(string), "* Paramedic %s clocked out and is now off duty.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Medics -= 1;
- PlayerInfo[playerid][pDuty] = 0;
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- }
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, LSFMDSKINS, DIALOG_STYLE_LIST, "What uniform do you want?","Firesuit 1\nFiresuit 2\nFiresuit 3\nMedic 1\nMedic 2\nMedic 3\nFemale\nHigh Rank", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialogEx(playerid, LSFMDGEAR, DIALOG_STYLE_LIST, "What gear do you want?","Shovel\nCamera\nParachute\nFire Extinguisher\nChainsaw\nShotgun\nVest\nFirst Aid Kit\nAccessories", "Select", "Cancel");
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, TEAM_MED_COLOR);
- SetPlayerSkin(playerid, 170);
- ResetPlayerWeaponsEx(playerid);
- }
- }
- }
- if(dialogid == LSFMDSKINS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 277;
- SetPlayerSkin(playerid, 277);
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 278;
- SetPlayerSkin(playerid, 278);
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pSkin] = 279;
- SetPlayerSkin(playerid, 279);
- }
- if(listitem == 3)
- {
- PlayerInfo[playerid][pSkin] = 274;
- SetPlayerSkin(playerid, 274);
- }
- if(listitem == 4)
- {
- PlayerInfo[playerid][pSkin] = 275;
- SetPlayerSkin(playerid, 275);
- }
- if(listitem == 5)
- {
- PlayerInfo[playerid][pSkin] = 276;
- SetPlayerSkin(playerid, 276);
- }
- if(listitem == 6)
- {
- PlayerInfo[playerid][pSkin] = 217;
- SetPlayerSkin(playerid, 211);
- }
- if(listitem == 7)
- {
- if(PlayerInfo[playerid][pRank] >= 5)
- {
- PlayerInfo[playerid][pSkin] = 295;
- SetPlayerSkin(playerid, 295);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Only ranks 5 and 6 can wear this uniform.");
- }
- }
- }
- }
- if(dialogid == LSFMDGEAR)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- if(listitem == 0)
- {
- GivePlayerValidWeapon(playerid, 6, 99999);
- }
- else if(listitem == 1)
- {
- GivePlayerValidWeapon(playerid, 43, 99999);
- }
- else if(listitem == 2)
- {
- GivePlayerValidWeapon(playerid, 46, 99999);
- }
- else if(listitem == 3)
- {
- GivePlayerValidWeapon(playerid, 42, 99999);
- }
- else if(listitem == 4)
- {
- if(PlayerInfo[playerid][pRank] >= 4 || PlayerInfo[playerid][pLeader] == 4)
- {
- GivePlayerValidWeapon(playerid, 9, 99999);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not a high enough rank!");
- }
- }
- else if(listitem == 5)
- {
- GivePlayerValidWeapon(playerid, 25, 99999);
- }
- else if(listitem == 6)
- {
- SetPlayerArmourEx(playerid, 100);
- }
- else if(listitem == 7) SetPlayerHealth(playerid, 100);
- // (TEMPORARY - Howard NOTE) No VIP added yet
- //else ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!\n\n(As with regular toys, VIP unlocks more slots.)","Continue", "Cancel");
- else if(listitem == 8) ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!","Continue", "Cancel");
- }
- }
- if(dialogid == DIALOG_RADIOMENU_START)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new radiovehicle = GetPlayerVehicleID(playerid);
- if(VehicleRadioStation[radiovehicle] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The radio in this vehicle is already turned off.");
- return 1;
- }
- format(string, sizeof(string), "* %s has turned off the radio.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- VehicleRadioStation[radiovehicle] = 0;
- StopAudioStreamForPlayer(playerid);
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == radiovehicle && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_PASSENGER && i != playerid)
- {
- StopAudioStreamForPlayer(i);
- }
- }
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_SEARCH, DIALOG_STYLE_INPUT, "Radio stations - Search radio", "Enter the radio station you want to search for.\n\nNote: The search must be no less than 3 characters in length.", "Search", "Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_GENRE, DIALOG_STYLE_LIST, "Radio stations - Select a genre", "Alternative\nBlues\nClassical\nCountry\nDecades\nEasy Listening\nElectronic\nFolk\nInspirational\nInternational\nJazz\nLatin\nMetal\nMisc\nNew Age\nPop\nPublic Radio\nR&B/Urban\nRap\nReggae\nRock\nTalk", "Select", "Cancel");
- }
- }
- }
- if(dialogid == DIALOG_RADIOMENU_SEARCH)
- {
- if(response)
- {
- if(strlen(inputtext) < 3)
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_SEARCH, DIALOG_STYLE_INPUT, "Radio stations - Search radio", "ENTRY DECLINED: The search must be no less than 3 characters in length.\n\nEnter the radio station you want to search for.\n\nNote: It must be no less than 3 characters.", "Search", "Cancel");
- }
- else
- {
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- new stringg[512], name[32], search[128], iCount;
- strcat(search, inputtext, sizeof(search));
- for (new i=0; i<220; i++)
- {
- if(strfind(VehicleRadioListing[i][radioname], search, true) != -1 && iCount < 50)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[i][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = i;
- }
- }
- if(iCount == 0)
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_SEARCH, DIALOG_STYLE_INPUT, "Radio stations - Search radio", "SEARCH FAILED: No such radio stations found.\n\nEnter the radio station you want to search for.\n\nNote: It must be no less than 3 characters.", "Search", "Cancel");
- }
- else
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_SEARCHLIST, DIALOG_STYLE_LIST, "Ratio stations - Search results", stringg, "Play", "Cancel");
- }
- }
- }
- }
- if(dialogid == DIALOG_RADIOMENU_SEARCHLIST)
- {
- if(response)
- {
- new t = ListItemTrackId[playerid][listitem];
- new radiovehicle = GetPlayerVehicleID(playerid);
- if(VehicleRadioStation[radiovehicle] == t+1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The radio station in this vehicle is already set to that station.");
- return 1;
- }
- format(string, sizeof(string), "* %s has set the radio station to %s.", GetPlayerNameEx(playerid), VehicleRadioListing[t][radioname]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- VehicleRadioStation[radiovehicle] = t+1;
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[t][radiourl]);
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == radiovehicle && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_PASSENGER && i != playerid)
- {
- PlayAudioStreamForPlayer(i, VehicleRadioListing[t][radiourl]);
- }
- }
- }
- }
- if(dialogid == DIALOG_RADIOMENU_GENRE)
- {
- if(response)
- {
- new stringg[321], name[32], iCount;
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- if(listitem == 0)
- {
- for(new r = 0; r < 10; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Alternative", stringg, "Play", "Cancel");
- }
- if(listitem == 1)
- {
- for(new r = 10; r < 20; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Blues", stringg, "Play", "Cancel");
- }
- if(listitem == 2)
- {
- for(new r = 20; r < 30; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Classical", stringg, "Play", "Cancel");
- }
- if(listitem == 3)
- {
- for(new r = 30; r < 40; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Country", stringg, "Play", "Cancel");
- }
- if(listitem == 4)
- {
- for(new r = 40; r < 50; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Decades", stringg, "Play", "Cancel");
- }
- if(listitem == 5)
- {
- for(new r = 50; r < 60; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Easy Listening", stringg, "Play", "Cancel");
- }
- if(listitem == 6)
- {
- for(new r = 60; r < 70; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Electronic", stringg, "Play", "Cancel");
- }
- if(listitem == 7)
- {
- for(new r = 70; r < 80; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Folk", stringg, "Play", "Cancel");
- }
- if(listitem == 8)
- {
- for(new r = 80; r < 90; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Inspirational", stringg, "Play", "Cancel");
- }
- if(listitem == 9)
- {
- for(new r = 90; r < 100; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - International", stringg, "Play", "Cancel");
- }
- if(listitem == 10)
- {
- for(new r = 100; r < 110; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Jazz", stringg, "Play", "Cancel");
- }
- if(listitem == 11)
- {
- for(new r = 110; r < 120; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Latin", stringg, "Play", "Cancel");
- }
- if(listitem == 12)
- {
- for(new r = 120; r < 130; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Metal", stringg, "Play", "Cancel");
- }
- if(listitem == 13)
- {
- for(new r = 130; r < 140; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Misc", stringg, "Play", "Cancel");
- }
- if(listitem == 14)
- {
- for(new r = 140; r < 150; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - New Age", stringg, "Play", "Cancel");
- }
- if(listitem == 15)
- {
- for(new r = 150; r < 160; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Pop", stringg, "Play", "Cancel");
- }
- if(listitem == 16)
- {
- for(new r = 160; r < 170; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Public Radio", stringg, "Play", "Cancel");
- }
- if(listitem == 17)
- {
- for(new r = 170; r < 180; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - R&B/Urban", stringg, "Play", "Cancel");
- }
- if(listitem == 18)
- {
- for(new r = 180; r < 190; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Rap", stringg, "Play", "Cancel");
- }
- if(listitem == 19)
- {
- for(new r = 190; r < 200; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Reggae", stringg, "Play", "Cancel");
- }
- if(listitem == 20)
- {
- for(new r = 200; r < 210; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Rock", stringg, "Play", "Cancel");
- }
- if(listitem == 21)
- {
- for(new r = 210; r < 220; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_PLAY, DIALOG_STYLE_LIST, "Radio stations - Talk", stringg, "Play", "Cancel");
- }
- // CURRENTLY NO HOLIDAYS
- /*if(listitem == 24)
- {
- ShowPlayerDialogEx(playerid, DIALOG_RADIOMENU_SEASON, DIALOG_STYLE_LIST, "Radio stations - Seasonal/Holiday", "", "Play", "Cancel");
- }*/
- }
- }
- else if(dialogid == DIALOG_RADIOMENU_PLAY)
- {
- if(response)
- {
- new t = ListItemTrackId[playerid][listitem];
- new radiovehicle = GetPlayerVehicleID(playerid);
- if(VehicleRadioStation[radiovehicle] == t+1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "The radio station in this vehicle is already set to that station.");
- return 1;
- }
- format(string, sizeof(string), "* %s has set the radio station to %s.", GetPlayerNameEx(playerid), VehicleRadioListing[t][radioname]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- VehicleRadioStation[radiovehicle] = t+1;
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[t][radiourl]);
- foreach(Player, i)
- {
- if(GetPlayerVehicleID(i) == radiovehicle && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_PASSENGER && i != playerid)
- {
- PlayAudioStreamForPlayer(i, VehicleRadioListing[t][radiourl]);
- }
- }
- }
- }
- if(dialogid == DIALOG_MP3_START)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(MP3Station[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Your MP3 Player is already turned off.");
- return 1;
- }
- format(string, sizeof(string), "* %s has turned off their MP3 Player.", GetPlayerNameEx(playerid));
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MP3Station[playerid] = 0;
- StopAudioStreamForPlayer(playerid);
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, DIALOG_MP3_SEARCH, DIALOG_STYLE_INPUT, "MP3 Player - Search radio", "Enter the radio station you want to search for.\n\nNote: The search must be no less than 3 characters in length.", "Search", "Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialogEx(playerid, DIALOG_MP3_GENRE, DIALOG_STYLE_LIST, "MP3 Player - Select a genre", "Alternative\nBlues\nClassical\nCountry\nDecades\nEasy Listening\nElectronic\nFolk\nInspirational\nInternational\nJazz\nLatin\nMetal\nMisc\nNew Age\nPop\nPublic Radio\nR&B/Urban\nRap\nReggae\nRock\nTalk", "Select", "Cancel");
- }
- }
- }
- if(dialogid == DIALOG_MP3_SEARCH)
- {
- if(response)
- {
- if(strlen(inputtext) < 3)
- {
- ShowPlayerDialogEx(playerid, DIALOG_MP3_SEARCH, DIALOG_STYLE_INPUT, "MP3 Player - Search radio", "ENTRY DECLINED: The search must be no less than 3 characters in length.\n\nEnter the radio station you want to search for.\n\nNote: It must be no less than 3 characters.", "Search", "Cancel");
- }
- else
- {
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- new stringg[512], name[32], search[128], iCount;
- strcat(search, inputtext, sizeof(search));
- for (new i=0; i<220; i++)
- {
- if(strfind(VehicleRadioListing[i][radioname], search, true) != -1 && iCount < 50)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[i][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = i;
- }
- }
- if(iCount == 0)
- {
- ShowPlayerDialogEx(playerid, DIALOG_MP3_SEARCH, DIALOG_STYLE_INPUT, "MP3 Player - Search radio", "SEARCH FAILED: No such radio stations found.\n\nEnter the radio station you want to search for.\n\nNote: It must be no less than 3 characters.", "Search", "Cancel");
- }
- else
- {
- ShowPlayerDialogEx(playerid, DIALOG_MP3_SEARCHLIST, DIALOG_STYLE_LIST, "MP3 Player - Search results", stringg, "Play", "Cancel");
- }
- }
- }
- }
- if(dialogid == DIALOG_MP3_SEARCHLIST)
- {
- if(response)
- {
- new t = ListItemTrackId[playerid][listitem];
- format(string, sizeof(string), "* %s has set their MP3 Player to %s.", GetPlayerNameEx(playerid), VehicleRadioListing[t][radioname]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MP3Station[playerid] = t+1;
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[t][radiourl]);
- }
- }
- if(dialogid == DIALOG_MP3_GENRE)
- {
- if(response)
- {
- new stringg[321], name[32], iCount;
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- if(listitem == 0)
- {
- for(new r = 0; r < 10; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Alternative", stringg, "Play", "Cancel");
- }
- if(listitem == 1)
- {
- for(new r = 10; r < 20; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Blues", stringg, "Play", "Cancel");
- }
- if(listitem == 2)
- {
- for(new r = 20; r < 30; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Classical", stringg, "Play", "Cancel");
- }
- if(listitem == 3)
- {
- for(new r = 30; r < 40; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Country", stringg, "Play", "Cancel");
- }
- if(listitem == 4)
- {
- for(new r = 40; r < 50; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Decades", stringg, "Play", "Cancel");
- }
- if(listitem == 5)
- {
- for(new r = 50; r < 60; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Easy Listening", stringg, "Play", "Cancel");
- }
- if(listitem == 6)
- {
- for(new r = 60; r < 70; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Electronic", stringg, "Play", "Cancel");
- }
- if(listitem == 7)
- {
- for(new r = 70; r < 80; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Folk", stringg, "Play", "Cancel");
- }
- if(listitem == 8)
- {
- for(new r = 80; r < 90; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Inspirational", stringg, "Play", "Cancel");
- }
- if(listitem == 9)
- {
- for(new r = 90; r < 100; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - International", stringg, "Play", "Cancel");
- }
- if(listitem == 10)
- {
- for(new r = 100; r < 110; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Jazz", stringg, "Play", "Cancel");
- }
- if(listitem == 11)
- {
- for(new r = 110; r < 120; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Latin", stringg, "Play", "Cancel");
- }
- if(listitem == 12)
- {
- for(new r = 120; r < 130; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Metal", stringg, "Play", "Cancel");
- }
- if(listitem == 13)
- {
- for(new r = 130; r < 140; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Misc", stringg, "Play", "Cancel");
- }
- if(listitem == 14)
- {
- for(new r = 140; r < 150; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - New Age", stringg, "Play", "Cancel");
- }
- if(listitem == 15)
- {
- for(new r = 150; r < 160; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Pop", stringg, "Play", "Cancel");
- }
- if(listitem == 16)
- {
- for(new r = 160; r < 170; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Public Radio", stringg, "Play", "Cancel");
- }
- if(listitem == 17)
- {
- for(new r = 170; r < 180; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - R&B/Urban", stringg, "Play", "Cancel");
- }
- if(listitem == 18)
- {
- for(new r = 180; r < 190; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Rap", stringg, "Play", "Cancel");
- }
- if(listitem == 19)
- {
- for(new r = 190; r < 200; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Reggae", stringg, "Play", "Cancel");
- }
- if(listitem == 20)
- {
- for(new r = 200; r < 210; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Rock", stringg, "Play", "Cancel");
- }
- if(listitem == 21)
- {
- for(new r = 210; r < 220; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_MP3_PLAY, DIALOG_STYLE_LIST, "MP3 Player - Talk", stringg, "Play", "Cancel");
- }
- // CURRENTLY NO HOLIDAYS
- /*if(listitem == 24)
- {
- ShowPlayerDialogEx(playerid, DIALOG_MP3_SEASON, DIALOG_STYLE_LIST, "MP3 Player - Seasonal/Holiday", "", "Play", "Cancel");
- }*/
- }
- }
- else if(dialogid == DIALOG_MP3_PLAY)
- {
- if(response)
- {
- new t = ListItemTrackId[playerid][listitem];
- format(string, sizeof(string), "* %s has set their MP3 Player to %s.", GetPlayerNameEx(playerid), VehicleRadioListing[t][radioname]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- MP3Station[playerid] = t+1;
- PlayAudioStreamForPlayer(playerid, VehicleRadioListing[t][radiourl]);
- }
- }
- if(dialogid == DIALOG_BOOMBOX_START)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_SEARCH, DIALOG_STYLE_INPUT, "Boombox - Search radio", "Enter the radio station you want to search for.\n\nNote: The search must be no less than 3 characters in length.", "Search", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_GENRE, DIALOG_STYLE_LIST, "Boombox - Select a genre", "Alternative\nBlues\nClassical\nCountry\nDecades\nEasy Listening\nElectronic\nFolk\nInspirational\nInternational\nJazz\nLatin\nMetal\nMisc\nNew Age\nPop\nPublic Radio\nR&B/Urban\nRap\nReggae\nRock\nTalk", "Select", "Cancel");
- }
- }
- }
- if(dialogid == DIALOG_BOOMBOX_SEARCH)
- {
- if(response)
- {
- if(strlen(inputtext) < 3)
- {
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_SEARCH, DIALOG_STYLE_INPUT, "Boombox - Search radio", "ENTRY DECLINED: The search must be no less than 3 characters in length.\n\nEnter the radio station you want to search for.\n\nNote: It must be no less than 3 characters.", "Search", "Cancel");
- }
- else
- {
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- new stringg[512], name[32], search[128], iCount;
- strcat(search, inputtext, sizeof(search));
- for (new i=0; i<220; i++)
- {
- if(strfind(VehicleRadioListing[i][radioname], search, true) != -1 && iCount < 50)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[i][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = i;
- }
- }
- if(iCount == 0)
- {
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_SEARCH, DIALOG_STYLE_INPUT, "Boombox - Search radio", "SEARCH FAILED: No such radio stations found.\n\nEnter the radio station you want to search for.\n\nNote: It must be no less than 3 characters.", "Search", "Cancel");
- }
- else
- {
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_SEARCHLIST, DIALOG_STYLE_LIST, "Boombox - Search results", stringg, "Play", "Cancel");
- }
- }
- }
- }
- if(dialogid == DIALOG_BOOMBOX_SEARCHLIST)
- {
- if(response)
- {
- new t = ListItemTrackId[playerid][listitem];
- format(string, sizeof(string), "* %s has set down a Boombox to %s.", GetPlayerNameEx(playerid), VehicleRadioListing[t][radioname]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- BoomBoxSet[playerid] = 1;
- GetPlayerPos(playerid, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
- BoomboxInfo[playerid][bbInt] = GetPlayerInterior(playerid);
- BoomboxInfo[playerid][bbVW] = GetPlayerVirtualWorld(playerid);
- BoomboxInfo[playerid][bbStation] = t+1;
- BoomboxInfo[playerid][bbSetBy] = playerid;
-
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- BoomboxInfo[playerid][bbObject] = CreateDynamicObject(2103, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]-0.9, 0, 0, 0, BoomboxInfo[playerid][bbVW], BoomboxInfo[playerid][bbInt]);
-
- foreach(Player, i)
- {
- if(IsPlayerInRangeOfPoint(i,150.0,BoomboxInfo[playerid][bbPosX],BoomboxInfo[playerid][bbPosY],BoomboxInfo[playerid][bbPosZ]) && GetPlayerInterior(i) == BoomboxInfo[playerid][bbInt] && GetPlayerVirtualWorld(i) == BoomboxInfo[playerid][bbVW])
- {
- PlayAudioStreamForPlayer(i, VehicleRadioListing[t][radiourl], BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ], 50.0, 1);
- }
- }
- }
- }
- if(dialogid == DIALOG_BOOMBOX_GENRE)
- {
- if(response)
- {
- new stringg[321], name[32], iCount;
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- if(listitem == 0)
- {
- for(new r = 0; r < 10; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Alternative", stringg, "Play", "Cancel");
- }
- if(listitem == 1)
- {
- for(new r = 10; r < 20; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Blues", stringg, "Play", "Cancel");
- }
- if(listitem == 2)
- {
- for(new r = 20; r < 30; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Classical", stringg, "Play", "Cancel");
- }
- if(listitem == 3)
- {
- for(new r = 30; r < 40; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Country", stringg, "Play", "Cancel");
- }
- if(listitem == 4)
- {
- for(new r = 40; r < 50; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Decades", stringg, "Play", "Cancel");
- }
- if(listitem == 5)
- {
- for(new r = 50; r < 60; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Easy Listening", stringg, "Play", "Cancel");
- }
- if(listitem == 6)
- {
- for(new r = 60; r < 70; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Electronic", stringg, "Play", "Cancel");
- }
- if(listitem == 7)
- {
- for(new r = 70; r < 80; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Folk", stringg, "Play", "Cancel");
- }
- if(listitem == 8)
- {
- for(new r = 80; r < 90; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Inspirational", stringg, "Play", "Cancel");
- }
- if(listitem == 9)
- {
- for(new r = 90; r < 100; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox International", stringg, "Play", "Cancel");
- }
- if(listitem == 10)
- {
- for(new r = 100; r < 110; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Jazz", stringg, "Play", "Cancel");
- }
- if(listitem == 11)
- {
- for(new r = 110; r < 120; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Latin", stringg, "Play", "Cancel");
- }
- if(listitem == 12)
- {
- for(new r = 120; r < 130; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Metal", stringg, "Play", "Cancel");
- }
- if(listitem == 13)
- {
- for(new r = 130; r < 140; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Misc", stringg, "Play", "Cancel");
- }
- if(listitem == 14)
- {
- for(new r = 140; r < 150; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox New Age", stringg, "Play", "Cancel");
- }
- if(listitem == 15)
- {
- for(new r = 150; r < 160; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Pop", stringg, "Play", "Cancel");
- }
- if(listitem == 16)
- {
- for(new r = 160; r < 170; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Public Radio", stringg, "Play", "Cancel");
- }
- if(listitem == 17)
- {
- for(new r = 170; r < 180; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox R&B/Urban", stringg, "Play", "Cancel");
- }
- if(listitem == 18)
- {
- for(new r = 180; r < 190; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Rap", stringg, "Play", "Cancel");
- }
- if(listitem == 19)
- {
- for(new r = 190; r < 200; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Reggae", stringg, "Play", "Cancel");
- }
- if(listitem == 20)
- {
- for(new r = 200; r < 210; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Rock", stringg, "Play", "Cancel");
- }
- if(listitem == 21)
- {
- for(new r = 210; r < 220; ++r)
- {
- format(name, sizeof(name), "%s", VehicleRadioListing[r][radioname]);
- format(stringg, sizeof(stringg), "%s %s\n", stringg, name);
- ListItemTrackId[playerid][iCount++] = r;
- }
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_PLAY, DIALOG_STYLE_LIST, "Boombox Talk", stringg, "Play", "Cancel");
- }
- // CURRENTLY NO HOLIDAYS
- /*if(listitem == 24)
- {
- ShowPlayerDialogEx(playerid, DIALOG_BOOMBOX_SEASON, DIALOG_STYLE_LIST, "Boombox Seasonal/Holiday", "", "Play", "Cancel");
- }*/
- }
- }
- if(dialogid == DIALOG_BOOMBOX_PLAY)
- {
- if(response)
- {
- new t = ListItemTrackId[playerid][listitem];
- format(string, sizeof(string), "* %s has set down a Boombox to %s.", GetPlayerNameEx(playerid), VehicleRadioListing[t][radioname]);
- ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- BoomBoxSet[playerid] = 1;
- GetPlayerPos(playerid, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
- BoomboxInfo[playerid][bbInt] = GetPlayerInterior(playerid);
- BoomboxInfo[playerid][bbVW] = GetPlayerVirtualWorld(playerid);
- BoomboxInfo[playerid][bbStation] = t+1;
- BoomboxInfo[playerid][bbSetBy] = playerid;
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
- BoomboxInfo[playerid][bbObject] = CreateDynamicObject(2103, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]-0.9, 0, 0, 0, BoomboxInfo[playerid][bbVW], BoomboxInfo[playerid][bbInt]);
- foreach(Player, i)
- {
- if(IsPlayerInRangeOfPoint(i,150.0,BoomboxInfo[playerid][bbPosX],BoomboxInfo[playerid][bbPosY],BoomboxInfo[playerid][bbPosZ]) && GetPlayerInterior(i) == BoomboxInfo[playerid][bbInt] && GetPlayerVirtualWorld(i) == BoomboxInfo[playerid][bbVW])
- {
- PlayAudioStreamForPlayer(i, VehicleRadioListing[t][radiourl], BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ], 50.0, 1);
- }
- }
- }
- }
- /*if(dialogid == REPORTSMENU)
- {
- if(response)
- {
- if(CancelReport[playerid] == listitem) return 1;
- new reportid = ListItemReportId[playerid][listitem];
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has accepted the report from %s (ID: %i RID: %i).", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), Reports[reportid][ReportFrom], reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- AddReportToken(playerid); // Report Tokens
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, "An admin has accepted your report and is reviewing it, you can /reply to send messages to the admin reviewing your report.");
- }
- else
- {
- format(string, sizeof(string), "%s has accepted your report and is reviewing it, you can /reply to send messages to the admin reviewing your report.", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- }
- PlayerInfo[playerid][pAcceptReport]++;
- Reports[reportid][ReplyTimerr] = SetTimerEx("ReplyTimer", 60000, 0, "d", reportid);
- Reports[reportid][CheckingReport] = playerid;
- //Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- //strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- else
- {
- if(CancelReport[playerid] == listitem) return 1;
- new reportid = ListItemReportId[playerid][listitem];
- if(Reports[reportid][BeingUsed] == 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " That report ID is not being used!");
- return 1;
- }
- if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
- {
- SendClientMessage(playerid, COLOR_GREY, " The reporter has disconnected!");
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- return 1;
- }
- format(string, sizeof(string), "AdmCmd: %s has trashed the report from %s (RID: %i).", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]), reportid);
- ABroadCast(COLOR_ORANGE, string, 1);
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, "An admin has marked your report invalid. It will not be reviewed.");
- }
- else
- {
- format(string, sizeof(string), "%s has marked your report invalid. It will not be reviewed.", GetPlayerNameEx(playerid));
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_WHITE, string);
- }
- PlayerInfo[playerid][pTrashReport]++;
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][TimeToExpire] = 0;
- new reportdialog[2048], itemid = 0;
- for(new i = 0; i < MAX_REPORTS; i++)
- {
- if(Reports[i][BeingUsed] == 1 && itemid < 40)
- {
- ListItemReportId[playerid][itemid] = i;
- itemid++;
- if(strlen((Reports[i][Report])) > 92)
- {
- new firstline[128], secondline[128];
- strmid(firstline, Reports[i][Report], 0, 88);
- strmid(secondline, Reports[i][Report], 88, 128);
- format(reportdialog, sizeof(reportdialog), "%s%s(ID:%i) | Report: %s", reportdialog, GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, firstline);
- format(reportdialog, sizeof(reportdialog), "%s%s", reportdialog, secondline);
- ListItemReportId[playerid][itemid] = i;
- itemid++;
- }
- else format(reportdialog, sizeof(reportdialog), "%s%s(ID:%i) | Report: %s", reportdialog, GetPlayerNameEx(Reports[i][ReportFrom]), Reports[i][ReportFrom], i, (Reports[i][Report]));
- format(reportdialog, sizeof(reportdialog), "%s\n", reportdialog);
- }
- }
- CancelReport[playerid] = itemid;
- format(reportdialog, sizeof(reportdialog), "%s\n", reportdialog);
- format(reportdialog, sizeof(reportdialog), "%sCancel Reports", reportdialog);
- //SendClientMessage(playerid, COLOR_GREEN, "___________________________________________________");
- ShowPlayerDialogEx(playerid, REPORTSMENU, DIALOG_STYLE_LIST, "Reports", reportdialog, "Accept", "Trash");
- //strmid(Reports[reportid][Report], "None", 0, 4, 4);
- }
- }*/
- if(dialogid == DIALOG_LOADTRUCK) // TRUCKER JOB LOAD TRUCK
- {
- if(response)
- {
- if(listitem == 0) // Legal goods
- {
- ShowPlayerDialogEx(playerid, DIALOG_LOADTRUCKL, DIALOG_STYLE_LIST, "What do you want to transport?","{00F70C}Food & beverages\n{00F70C}Clothing\n{00F70C}Materials\n{00F70C}24/7 Items", "Select", "Cancel");
- }
- if(listitem == 1) // Illegal goods
- {
- new level = PlayerInfo[playerid][pTruckSkill];
- if(level >= 0 && level <= 50)
- {
- ShowPlayerDialogEx(playerid, DIALOG_LOADTRUCKI, DIALOG_STYLE_LIST, "What do you want to transport?","{33CCFF}Weapons {FFFFFF}(Level 1 Bonus: None)\n{F7F304}Drugs {FFFFFF}(Level 1 Bonus: None)\n{F7F304}Illegal materials {FFFFFF}(Level 1 Bonus: Free 25 materials)", "Select", "Cancel");
- }
- else if(level >= 51 && level <= 100)
- {
- ShowPlayerDialogEx(playerid, DIALOG_LOADTRUCKI, DIALOG_STYLE_LIST, "What do you want to transport?","{F7F304}Weapons {FFFFFF}(Level 2 Bonus: Silenced Pistol or 9mm)\n{F7F304}Drugs {FFFFFF}(Level 2 Bonus: 1 pot or 1 crack)\n{F7F304}Illegal materials {FFFFFF}(Level 2 Bonus: Free 50 materials)", "Select", "Cancel");
- }
- else if(level >= 101 && level <= 200)
- {
- ShowPlayerDialogEx(playerid, DIALOG_LOADTRUCKI, DIALOG_STYLE_LIST, "What do you want to transport?","{F7F304}Weapons {FFFFFF}(Level 3 Bonus: Silenced Pistol, 9mm or Shotgun)\n{F7F304}Drugs {FFFFFF}(Level 3 Bonus: 1 pot and 1 crack)\n{F7F304}Illegal materials {FFFFFF}(Level 3 Bonus: Free 100 materials)", "Select", "Cancel");
- }
- else if(level >= 201 && level <= 400)
- {
- ShowPlayerDialogEx(playerid, DIALOG_LOADTRUCKI, DIALOG_STYLE_LIST, "What do you want to transport?","{F7F304}Weapons {FFFFFF}(Level 4 Bonus: Silenced Pistol, 9mm, Shotgun or Rifle)\n{F7F304}Drugs {FFFFFF}(Level 4 Bonus: 2 pot and 2 crack)\n{F7F304}Illegal materials {FFFFFF}(Level 4 Bonus: Free 150 materials)", "Select", "Cancel");
- }
- else if(level >= 401)
- {
- ShowPlayerDialogEx(playerid, DIALOG_LOADTRUCKI, DIALOG_STYLE_LIST, "What do you want to transport?","{F7F304}Weapons {FFFFFF}(Level 5 Bonus: Shotgun, Rifle or Deagle [rare])\n{F7F304}Drugs {FFFFFF}(Level 5 Bonus: 3 pot and 3 pot)\n{F7F304}Illegal materials {FFFFFF}(Level 5 Bonus: Free 200 materials)", "Select", "Cancel");
- }
- }
- }
- else
- {
- DeletePVar(playerid, "IsFrozen");
- TogglePlayerControllable(playerid, 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You canceled the loading of the Truck, type /loadtruck to try again.");
- }
- }
- if(dialogid == DIALOG_LOADTRUCKL) // TRUCKER JOB LEGAL GOODS
- {
- if(response)
- {
- if(listitem == 0) // Food & beverages
- {
- new route = Random(1, 4);
- if(route == 1)
- {
- SetPVarInt(playerid, "TruckDeliver", 1);
- }
- if(route == 2)
- {
- SetPVarInt(playerid, "TruckDeliver", 2);
- }
- if(route == 3)
- {
- SetPVarInt(playerid, "TruckDeliver", 3);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with food & beverages....");
- }
- if(listitem == 1) // Clothing
- {
- new route = Random(1, 4);
- if(route == 1)
- {
- SetPVarInt(playerid, "TruckDeliver", 4);
- }
- if(route == 2)
- {
- SetPVarInt(playerid, "TruckDeliver", 5);
- }
- if(route == 3)
- {
- SetPVarInt(playerid, "TruckDeliver", 6);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with clothing....");
- }
- if(listitem == 2) // Materials
- {
- SetPVarInt(playerid, "TruckDeliver", 7);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with materials....");
- }
- if(listitem == 3) // 24/7 Items
- {
- new route = Random(1, 4);
- if(route == 1)
- {
- SetPVarInt(playerid, "TruckDeliver", 8);
- }
- if(route == 2)
- {
- SetPVarInt(playerid, "TruckDeliver", 9);
- }
- if(route == 3)
- {
- SetPVarInt(playerid, "TruckDeliver", 10);
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with 24/7 items....");
- }
- LoadTruckBar[playerid] = CreateProgressBar(258.00, 137.00, 131.50, 3.19, COLOR_GREEN, 100.0);
- SetProgressBarValue(LoadTruckBar[playerid], 100.0);
- ShowProgressBarForPlayer(playerid, LoadTruckBar[playerid]);
- SetTimerEx("LoadTruck", 1000, 0, "d", playerid);
- }
- else
- {
- DeletePVar(playerid, "IsFrozen");
- TogglePlayerControllable(playerid, 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You canceled the loading of the Truck, type /loadtruck to try again.");
- }
- }
- if(dialogid == DIALOG_LOADTRUCKI) // TRUCKER JOB ILLEGAL GOODS
- {
- if(response)
- {
- new level = PlayerInfo[playerid][pTruckSkill];
- if(listitem == 0) // Weapons
- {
- if(level >= 0 && level <= 50)
- {
- SetPVarInt(playerid, "TruckDeliver", 11); // bonus weapons
- }
- else if(level >= 51 && level <= 100)
- {
- SetPVarInt(playerid, "TruckDeliver", 12); // bonus weapons
- }
- else if(level >= 101 && level <= 200)
- {
- SetPVarInt(playerid, "TruckDeliver", 13); // bonus weapons
- }
- else if(level >= 201 && level <= 400)
- {
- SetPVarInt(playerid, "TruckDeliver", 14); // bonus weapons
- }
- else if(level >= 401)
- {
- SetPVarInt(playerid, "TruckDeliver", 15); // bonus weapons
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with weapons....");
- }
- if(listitem == 1) // Drugs
- {
- if(level >= 0 && level <= 50)
- {
- SetPVarInt(playerid, "TruckDeliver", 16); // bonus drugs
- }
- else if(level >= 51 && level <= 100)
- {
- SetPVarInt(playerid, "TruckDeliver", 17); // bonus drugs
- }
- else if(level >= 101 && level <= 200)
- {
- SetPVarInt(playerid, "TruckDeliver", 18); // bonus drugs
- }
- else if(level >= 201 && level <= 400)
- {
- SetPVarInt(playerid, "TruckDeliver", 19); // bonus drugs
- }
- else if(level >= 401)
- {
- SetPVarInt(playerid, "TruckDeliver", 20); // bonus drugs
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with drugs....");
- }
- if(listitem == 2) // Illegal materials
- {
- if(level >= 0 && level <= 50)
- {
- SetPVarInt(playerid, "TruckDeliver", 21); // Bonus: x materials
- }
- else if(level >= 51 && level <= 100)
- {
- SetPVarInt(playerid, "TruckDeliver", 22); // Bonus: x materials
- }
- else if(level >= 101 && level <= 200)
- {
- SetPVarInt(playerid, "TruckDeliver", 23); // Bonus: x materials
- }
- else if(level >= 201 && level <= 400)
- {
- SetPVarInt(playerid, "TruckDeliver", 24); // Bonus: x materials
- }
- else if(level >= 401)
- {
- SetPVarInt(playerid, "TruckDeliver", 25); // Bonus: x materials
- }
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Please wait a moment while the truck is being loaded with illegal materials....");
- }
- LoadTruckBar[playerid] = CreateProgressBar(258.00, 137.00, 131.50, 3.19, COLOR_GREEN, 100.0);
- SetProgressBarValue(LoadTruckBar[playerid], 100.0);
- ShowProgressBarForPlayer(playerid, LoadTruckBar[playerid]);
- SetTimerEx("LoadTruck", 1000, 0, "d", playerid);
- }
- else
- {
- DeletePVar(playerid, "IsFrozen");
- TogglePlayerControllable(playerid, 1);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "You canceled the loading of the Truck, type /loadtruck to try again.");
- }
- }
- if(dialogid == NMUTE)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: // Jailtime
- {
- if(PlayerInfo[playerid][pNMuteTotal] < 4)
- {
- /*if(GetPVarInt(playerid, "PBM") > 0)
- {
- LeavePaintballArena(playerid, GetPVarInt(playerid, "IsInArena"));
- }*/
- PlayerInfo[playerid][pNMute] = 0;
- ResetPlayerWeaponsEx(playerid);
- if(PlayerInfo[playerid][pJailed] != 0)
- {
- PlayerInfo[playerid][pJailTime] += PlayerInfo[playerid][pNMuteTotal]*15*60;
- }
- else
- {
- PlayerInfo[playerid][pJailed] = 3;
- PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pNMuteTotal]*15*60;
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 69);
- PlayerInfo[playerid][pVW] = 696969;
- PlayerInfo[playerid][pInt] = 69;
- SetPlayerVirtualWorld(playerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(playerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- }
- }
- else if(PlayerInfo[playerid][pNMuteTotal] >= 4 || PlayerInfo[playerid][pNMuteTotal] < 7)
- {
- /*if(GetPVarInt(playerid, "PBM") > 0)
- {
- LeavePaintballArena(playerid, GetPVarInt(playerid, "IsInArena"));
- }*/
- PlayerInfo[playerid][pNMute] = 0;
- GameTextForPlayer(playerid, "~w~Welcome to ~n~~r~Admin Prison", 5000, 3);
- ResetPlayerWeaponsEx(playerid);
- if(PlayerInfo[playerid][pJailed] != 0)
- {
- PlayerInfo[playerid][pJailTime] += PlayerInfo[playerid][pNMuteTotal]*15*60;
- }
- else
- {
- PlayerInfo[playerid][pJailed] = 3;
- PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pNMuteTotal]*15*60;
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 69);
- PlayerInfo[playerid][pVW] = 696969;
- PlayerInfo[playerid][pInt] = 69;
- SetPlayerVirtualWorld(playerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(playerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- }
- }
- format(string,sizeof(string),"{AA3333}AdmWarning{FFFF00}: %s is serving %d Minutes in Prison for Newbie Unmute.",GetPlayerNameEx(playerid),PlayerInfo[playerid][pNMuteTotal]*15);
- ABroadCast(COLOR_YELLOW,string,1);
- }
- case 1: // Fine
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new allmoney;
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- allmoney = HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
- {
- allmoney += HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney];
- }
- else
- {
- allmoney = GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- new fine = 10*allmoney/100;
- format(string,sizeof(string),"{AA3333}AdmWarning{FFFF00}: %s has paid a $%d fine for Newbie Chat Unmute.",GetPlayerNameEx(playerid),fine);
- GivePlayerCash(playerid,-fine);
- ABroadCast(COLOR_YELLOW,string,1);
- PlayerInfo[playerid][pNMute] = 0;
- }
- }
- }
- else
- {
- format(string,sizeof(string),"{AA3333}AdmWarning{FFFF00}: %s has canceled punishment for Newbie Chat Unmute.",GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- }
- }
- if(dialogid == ADMUTE)
- {
- if(response == 1)
- {
- switch(listitem)
- {
- case 0: // Jailtime
- {
- if(PlayerInfo[playerid][pADMuteTotal] < 4)
- {
- /*if(GetPVarInt(playerid, "PBM") > 0)
- {
- LeavePaintballArena(playerid, GetPVarInt(playerid, "IsInArena"));
- }*/
- PlayerInfo[playerid][pADMute] = 0;
- ResetPlayerWeaponsEx(playerid);
- if(PlayerInfo[playerid][pJailed] != 0)
- {
- PlayerInfo[playerid][pJailTime] += PlayerInfo[playerid][pADMuteTotal]*15*60;
- }
- else
- {
- PlayerInfo[playerid][pJailed] = 3;
- PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pNMuteTotal]*15*60;
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 69);
- PlayerInfo[playerid][pVW] = 696969;
- PlayerInfo[playerid][pInt] = 69;
- SetPlayerVirtualWorld(playerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(playerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- }
- }
- else if(PlayerInfo[playerid][pADMuteTotal] >= 4 || PlayerInfo[playerid][pADMuteTotal] < 7)
- {
- /*if(GetPVarInt(playerid, "PBM") > 0)
- {
- LeavePaintballArena(playerid, GetPVarInt(playerid, "IsInArena"));
- }*/
- PlayerInfo[playerid][pADMute] = 0;
- GameTextForPlayer(playerid, "~w~Welcome to ~n~~r~Admin Prison", 5000, 3);
- ResetPlayerWeaponsEx(playerid);
- if(PlayerInfo[playerid][pJailed] != 0)
- {
- PlayerInfo[playerid][pJailTime] += PlayerInfo[playerid][pADMuteTotal]*15*60;
- }
- else
- {
- PlayerInfo[playerid][pJailed] = 3;
- PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pNMuteTotal]*15*60;
- PhoneOnline[playerid] = 1;
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- SetPlayerInterior(playerid, 69);
- PlayerInfo[playerid][pVW] = 696969;
- PlayerInfo[playerid][pInt] = 69;
- SetPlayerVirtualWorld(playerid, 696969);
- new rand = random(sizeof(AdminPrisonFloat));
- SetPlayerPos(playerid, AdminPrisonFloat[rand][0], AdminPrisonFloat[rand][1], AdminPrisonFloat[rand][2]);
- }
- }
- format(string,sizeof(string),"{AA3333}AdmWarning{FFFF00}: %s is serving %d Minutes in Jail/Prison for Advertisement Unmute.",GetPlayerNameEx(playerid),PlayerInfo[playerid][pADMuteTotal]*15);
- ABroadCast(COLOR_YELLOW,string,1);
- }
- case 1: // Fine
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new allmoney;
- if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0)
- {
- allmoney = HouseInfo[PlayerInfo[playerid][pHouse]][hSafeMoney]+GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- else if(PlayerInfo[playerid][pHouse2] != INVALID_HOUSE_ID && strcmp(GetPlayerNameEx(playerid), HouseInfo[PlayerInfo[playerid][pHouse2]][hOwner], true) == 0)
- {
- allmoney += HouseInfo[PlayerInfo[playerid][pHouse2]][hSafeMoney];
- }
- else
- {
- allmoney = GetPlayerCash(playerid)+PlayerInfo[playerid][pBank];
- }
- PlayerInfo[playerid][pADMute] = 0;
- new fine = 10*allmoney/100;
- format(string,sizeof(string),"{AA3333}AdmWarning{FFFF00}: %s has paid a $%d fine for Advertisement Unmute.",GetPlayerNameEx(playerid),fine);
- GivePlayerCash(playerid,-fine);
- ABroadCast(COLOR_YELLOW,string,1);
- }
- }
- }
- else
- {
- format(string,sizeof(string),"{AA3333}AdmWarning{FFFF00}: %s has canceled punishment for Advertisement Unmute.",GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW,string,1);
- }
- }
- switch(dialogid) {
- case DIALOG_ADMAIN: if(response) switch(listitem) {
- case 0: {
- new
- szDialog[2256],
- szBuffer[32],
- arrAdverts[MAX_PLAYERS] = INVALID_PLAYER_ID,
- iDialogCount,
- iCount,
- iBreak,
- iRand;
- for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- foreach(Player, i) if(!isnull(szAdvert[i])) arrAdverts[iCount++] = i;
- while(iDialogCount < 50 && iBreak < 5000) {
- iRand = random(iCount);
- if(arrAdverts[iRand] != INVALID_PLAYER_ID) {
- strcpy(szBuffer, szAdvert[arrAdverts[iRand]], sizeof(szBuffer));
- if(AdminDuty[playerid] == 0) format(szDialog, sizeof(szDialog), "%s%s... (%i)\r\n", szDialog, szBuffer, PlayerInfo[arrAdverts[iRand]][pNumber]);
- else format(szDialog, sizeof(szDialog), "%s%s... (%s)\r\n", szDialog, szBuffer, GetPlayerNameEx(arrAdverts[iRand]));
- ListItemTrackId[playerid][iDialogCount++] = arrAdverts[iRand];
- arrAdverts[iRand] = INVALID_PLAYER_ID;
- }
- ++iBreak;
- }
- if(!isnull(szDialog)) return ShowPlayerDialogEx(playerid, DIALOG_ADLIST, DIALOG_STYLE_LIST, "Advertisements - List", szDialog, "Select", "Return");
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- SendClientMessage(playerid, COLOR_GREY, "No advertisements have been posted.");
- }
- case 1: ShowPlayerDialogEx(playerid, DIALOG_ADSEARCH, DIALOG_STYLE_INPUT, "Advertisements - Search", "Enter a search phrase.", "Search", "Return");
- case 2: {
- if(PlayerInfo[playerid][pADMute] == 1) {
- SendClientMessage(playerid, COLOR_GREY, "You're muted from advertisements.");
- }
- else if(PlayerInfo[playerid][pNumber] == 0) {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone.");
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADPLACE, DIALOG_STYLE_INPUT, "Advertisements - Place Advertisement", "Enter your desired advertisement text! Keep it below 128 characters.", "Submit", "Return");
- }
- case 3: {
- if(PlayerInfo[playerid][pADMute] == 1) {
- SendClientMessage(playerid, COLOR_GREY, "You're muted from advertisements.");
- }
- else if(PlayerInfo[playerid][pNumber] == 0) {
- SendClientMessage(playerid, COLOR_GRAD2, "You don't have a cell phone.");
- }
- else if(iAdverTimer >= 1) {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "Only one priority advertisement can be placed every 30 seconds.");
- }
- else if(GetPVarType(playerid, "adT")) {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "You may only place one priority advertisement every two minutes.");
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADPLACEP, DIALOG_STYLE_INPUT, "Advertisements - Priority Advertisement",
- "Enter your desired advertisement text! Keep it below 128 characters.\nAs this is a priority advertisement, it will be broadcasted, and will cost you $800.", "Submit", "Return");
- }
- }
- case DIALOG_ADPLACE: {
- if(response) {
- new
- iLength = strlen(inputtext);
- if(!(2 <= iLength <= 127)) {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "Your input was too long or too short.");
- }
- iLength *= 5;
- if(GetPlayerCash(playerid) < iLength) {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash for this.");
- }
- strcpy(szAdvert[playerid], inputtext, 128);
- GivePlayerCash(playerid, -iLength);
- format(string, sizeof(string), "Congratulations, you have placed your advertisement for $%d!", iLength);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- }
- case DIALOG_ADPLACEP: {
- if(response) {
- if(iAdverTimer >= 1) {
- SendClientMessage(playerid, COLOR_GREY, "Only one priority advertisement can be placed every 30 seconds.");
- return ShowPlayerDialogEx(playerid, DIALOG_ADPLACEP, DIALOG_STYLE_INPUT, "Advertisements - Priority Advertisement",
- "Enter your desired advertisement text! Keep it below 128 characters.\nAs this is a priority advertisement, it will be broadcasted, and will cost you $800.", "Submit", "Return");
- }
- else if(GetPlayerCash(playerid) < 800) {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash for this.");
- }
- else if(!(2 <= strlen(inputtext) <= 79)) {
- ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "Your input was too long or too short.");
- }
- iAdverTimer = 30;
- SetPVarInt(playerid, "adT", 120);
- strcpy(szAdvert[playerid], inputtext, 128);
- GivePlayerCash(playerid, -800);
- new
- szMessage[128];
- format(szMessage, sizeof(szMessage), "Advertisement: %s - contact %s (%i)", inputtext, GetPlayerNameEx(playerid), PlayerInfo[playerid][pNumber]);
- SendClientMessageToAllEx(TEAM_GROVE_COLOR, szMessage);
- return SendClientMessage(playerid, COLOR_WHITE, "Congratulations, you've placed your priority advertisement!");
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- }
- case DIALOG_ADSEARCH: {
- if(response) {
- if(!(4 <= strlen(inputtext) <= 80))
- return ShowPlayerDialogEx(playerid, DIALOG_ADSEARCH, DIALOG_STYLE_INPUT, "Advertisements - Search", "Queries must be between 4\n and 80 characters in length.\n\nEnter a search phrase.", "Search", "Return");
- else for(new x; x < 50; ++x) ListItemTrackId[playerid][x] = -1;
- new
- szDialog[2256],
- szSearch[80],
- szBuffer[32],
- iCount;
- strcat(szSearch, inputtext, sizeof(szSearch)); // strfind is a piece of shit when it comes to non-indexed arrays, maybe this'll help.
- foreach(Player, i) if(!isnull(szAdvert[i])) {
- // printf("[ads] [NAME: %s] [ID: %i] [AD: %s] [SEARCH: %s]", GetPlayerNameEx(i), i, szAdvert[i], szSearch);
- if(strfind(szAdvert[i], szSearch, true) != -1 && iCount < 50) {
- // printf("[ads - MATCH] [NAME: %s] [ID: %i] [AD: %s] [SEARCH: %s] [COUNT: %i] [DIALOG LENGTH: %i] [FINDPOS: %i]", GetPlayerNameEx(i), i, szAdvert[i], szSearch, iCount, strlen(szDialog), strfind(szAdvert[i], szSearch, true));
- strcpy(szBuffer, szAdvert[i], sizeof(szBuffer));
- if(AdminDuty[playerid] == 0) format(szDialog, sizeof(szDialog), "%s%s... (%i)\r\n", szDialog, szBuffer, PlayerInfo[i][pNumber]);
- else format(szDialog, sizeof(szDialog), "%s%s... (%s)\r\n", szDialog, szBuffer, GetPlayerNameEx(i));
- ListItemTrackId[playerid][iCount++] = i;
- }
- }
- if(!isnull(szDialog)) ShowPlayerDialogEx(playerid, DIALOG_ADSEARCHLIST, DIALOG_STYLE_LIST, "Advertisements - Search Results", szDialog, "Select", "Return");
- else ShowPlayerDialogEx(playerid, DIALOG_ADSEARCHLIST, DIALOG_STYLE_INPUT, "Advertisements - Search", "No results found.\n\nEnter a search phrase.", "Search", "Return");
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- }
- case DIALOG_ADSEARCHLIST: if(response) {
- new
- i = ListItemTrackId[playerid][listitem],
- szDialog[164];
- if(IsPlayerConnected(i) && !isnull(szAdvert[i])) {
- format(szDialog, sizeof(szDialog), "%s\r\nContact: %i", szAdvert[i], PlayerInfo[i][pNumber]);
- ShowPlayerDialogEx(playerid, DIALOG_ADFINAL, DIALOG_STYLE_MSGBOX, "Advertisements - Search Result", szDialog, "Return", "Exit");
- }
- else SendClientMessage(playerid, COLOR_GREY, "This player has either disconnected or withdrawn their advertisement.");
- }
- case DIALOG_ADFINAL: {
- if(response) return ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- }
- case DIALOG_ADLIST: {
- if(response) {
- new
- i = ListItemTrackId[playerid][listitem],
- szDialog[164];
- if(IsPlayerConnected(i) && !isnull(szAdvert[i])) {
- format(szDialog, sizeof(szDialog), "%s\r\nContact: %i", szAdvert[i], PlayerInfo[i][pNumber]);
- return ShowPlayerDialogEx(playerid, DIALOG_ADFINAL, DIALOG_STYLE_MSGBOX, "Advertisements - Search Result", szDialog, "Return", "Exit");
- }
- else SendClientMessage(playerid, COLOR_GREY, "This player has either disconnected or withdrawn their advertisement.");
- }
- else ShowPlayerDialogEx(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
- }
- }
- if(dialogid == STOREMENU)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerCash(playerid) >= 50)
- {
- new randphone = 1000 + random(99999);//minimum 1000 max 99999
- ReplacePH(PlayerInfo[playerid][pNumber], randphone);
- PlayerInfo[playerid][pNumber] = randphone;
- PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
- GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
- GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
- OnPlayerStatsUpdate(playerid);
- format(string, sizeof(string), "Cellphone purchased, your new phone number is %d.", randphone);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD5, "You can check this any time you wish by typing /stats.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now type /cellphonehelp to see your cellphone commands.");
- GivePlayerCash(playerid, -50);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 50;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 1)
- {
- if(GetPlayerCash(playerid) >= 200)
- {
- PlayerInfo[playerid][pPhoneBook] = 1;
- format(string, sizeof(string), "Phonebook purchased, you can now look up other player's numbers.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /number <id/name>.");
- GivePlayerCash(playerid, -200);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 200;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 2)
- {
- if(GetPlayerCash(playerid) >= 50)
- {
- PlayerInfo[playerid][pDice] = 1;
- format(string, sizeof(string), "Dice purchased.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /dice.");
- GivePlayerCash(playerid, -50);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 50;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 3)
- {
- if(GetPlayerCash(playerid) >= 5)
- {
- Condom[playerid] ++;
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "Condom Purchased.");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- GivePlayerCash(playerid, -5);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 5;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 4)
- {
- if(GetPlayerCash(playerid) >= 5)
- {
- GivePlayerCash(playerid, -50);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_GRAD4, "CD Player purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /music");
- PlayerInfo[playerid][pCDPlayer] = 1;
- GivePlayerCash(playerid, -5);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 5;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 5)
- {
- if(GetPlayerCash(playerid) >= 20)
- {
- if(PlayerInfo[playerid][pSpraycan] < 20) {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pSpraycan] += 10;
- SendClientMessage(playerid, COLOR_GRAD4, "10 Spraycans purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /colorcar or /paintcar while inside a vehicle.");
- GivePlayerCash(playerid, -20);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 20;
- }
- else SendClientMessage(playerid, COLOR_GRAD4, "You can't hold any more of this item!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 6)
- {
- if(GetPlayerCash(playerid) >= 100)
- {
- if(PlayerInfo[playerid][pRope] < 8) {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pRope] += 3;
- SendClientMessage(playerid, COLOR_GRAD4, "3 Ropes purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /tie while driving a car to tie someone.");
- GivePlayerCash(playerid, -100);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 100;
- }
- else SendClientMessage(playerid, COLOR_GRAD4, "You can't hold any more of this item!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 7)
- {
- if(GetPlayerCash(playerid) >= 5)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pCigar] = 10;
- SendClientMessage(playerid, COLOR_GRAD4, "10 cigars purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /usecigar to use your cigars. Left mouse button to smoke it, F to throw it away.");
- GivePlayerCash(playerid, -5);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 5;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 8) {
- if(GetPlayerCash(playerid) >= 1) {
- if(PlayerInfo[playerid][pSprunk] >= 10)
- return SendClientMessage(playerid, COLOR_GREY, "You can't carry any more Sprunk.");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pSprunk] += 1;
- SendClientMessage(playerid, COLOR_GRAD4, "Sprunk purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /usesprunk to drink a can of Sprunk. Left mouse button to take a sip, F to throw it away.");
- GivePlayerCash(playerid, -1);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 9)
- {
- if(GetPlayerCash(playerid) >= 500)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pRadio] = 1;
- PlayerInfo[playerid][pRadioFreq] = 1;
- SendClientMessage(playerid, COLOR_GRAD4, "Portable radio purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /pr to talk over your portable radio.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /setfreq to set the frequency of your portable radio.");
- GivePlayerCash(playerid, -500);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 500;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- if(listitem == 10)
- {
- if(GetPlayerCash(playerid) >= 20)
- {
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- GivePlayerValidWeapon(playerid, 43, 99999);
- SendClientMessage(playerid, COLOR_GRAD4, "Camera purchased.");
- SendClientMessage(playerid, COLOR_WHITE, "HINT: Remember look into the viewfinder and take a picture.");
- GivePlayerCash(playerid, -20);
- BusinessInfo[InsideBiz[playerid]][bMoney] += 20;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
- }
- }
- }
- }
- if(dialogid == STOREMENU1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, STOREMENU, DIALOG_STYLE_LIST, "24/7","Cell Phone $200\nPhone Book $50\nDice $50\nCondom $5\nCD Player $5\nSpraycan $20\nRope $100\nCigar $5\nSprunk $1\nPortable Radio $500\nCamera $20", "Buy", "Cancel");
- }
- else if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDLOCKBUY, DIALOG_STYLE_LIST, "24/7", "Alarm Lock $1000\nIndustrial Lock $5000", "Buy", "Cancel");
- }
- else if(listitem == 2)
- {
- if(PlayerInfo[playerid][pGang] != 255 && PlayerInfo[playerid][pRank] >= 6)
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDGLOCKBUY, DIALOG_STYLE_LIST, "24/7", "Alarm Lock $1000\nIndustrial Lock $5000", "Buy", "Cancel");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You need to be in a family and have rank 6 to buy some locks");
- }
- }
- }
- }
- if(dialogid == COLORMENU)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid,COLOR_DBLUE);
- SendClientMessage(playerid, COLOR_DBLUE, "Your color has been set to Blue!");
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid,COLOR_BLACK);
- SendClientMessage(playerid, COLOR_BLACK, "Your color has been set to Black!");
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid,COLOR_RED);
- SendClientMessage(playerid, COLOR_RED, "Your color has been set to Red!");
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid,TEAM_ORANGE_COLOR);
- SendClientMessage(playerid, TEAM_ORANGE_COLOR, "Your color has been set to Orange!");
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid,COLOR_PINK);
- SendClientMessage(playerid, COLOR_PINK, "Your color has been set to Pink!");
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid,COLOR_PURPLE);
- SendClientMessage(playerid, COLOR_PURPLE, "Your color has been set to Purple!");
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid,COLOR_GREEN);
- SendClientMessage(playerid, COLOR_GREEN, "Your color has been set to Green!");
- }
- if(listitem == 7)
- {
- SetPlayerColor(playerid,COLOR_YELLOW);
- SendClientMessage(playerid, COLOR_YELLOW, "Your color has been set to Yellow!");
- }
- if(listitem == 8)
- {
- SetPlayerColor(playerid,COLOR_WHITE);
- SendClientMessage(playerid, COLOR_WHITE, "Your color has been set to White!");
- }
- }
- }
- if(dialogid == 3495) {
- new skinid = strval(inputtext);
- if(!response)
- return 1;
- if(IsValidSkin(skinid) == 0 && PlayerInfo[playerid][pDonator] < 1) {
- SendClientMessage(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- } else {
- if(GetPlayerCash(playerid) < 250 && PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't afford these clothes!");
- if(PlayerInfo[playerid][pDonator] > 0 && IsInvalidSkin(skinid)) {
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes are free for donators.", "Buy", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin ID, try again.");
- }
- if(PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pDonator] == 0) {
- GivePlayerCash(playerid, -250);
- GameTextForPlayer(playerid, "~g~Skin purchased! ~n~ ~r~- $250", 2000, 1);
- } else {
- GameTextForPlayer(playerid, "~g~Skin changed!", 2000, 1);
- }
- PlayerInfo[playerid][pSkin] = skinid;
- SetPlayerSkin(playerid, skinid);
- }
- return 1;
- }
- // MDC System
- if(dialogid == MDC_MAIN && response)
- {//*Find LEO\n*Civilian Information\n*Law Enforcement Agencies\n*Options
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialogEx(playerid, MDC_FIND, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | LEO GPS Location", "Enter the Law Enforcment Official's Name or ID No.", "Enter", "Cancel");
- }
- case 1:
- {
- ShowPlayerDialogEx(playerid, MDC_CIVILIANS, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Civilian Options", "*Check Record\n*Licenses\n*Warrants\n*Issue Warrant\n*BOLO\n*Create BOLO\n*Delete", "OK", "Cancel");
- }
- case 2:
- {
- ShowPlayerDialogEx(playerid, MDC_MEMBERS, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Agency List", "*LSPD\n*FBI\n*LSFMD", "OK", "Cancel");
- }
- case 3: ShowPlayerDialogEx(playerid, MDC_MESSAGE, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | MDC Message", "Enter recipient's Name or ID No.", "OK", "Cancel");
- case 4: ShowPlayerDialogEx(playerid, MDC_SMS, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | SMS", "Enter recipient's phone number.", "OK", "Cancel");
- }
- }
- if(dialogid == MDC_FIND && response)
- {
- new giveplayerid;
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- if(sscanf(inputtext, "u", giveplayerid))
- {
- ShowPlayerDialogEx(playerid, MDC_FIND, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | LEO GPS Location", "Enter the Law Enforcment Official's Name or ID No.", "Enter", "Cancel");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(giveplayerid == playerid)
- {
- ShowPlayerDialogEx(playerid, MDC_FIND, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: You can't find yourself.\nEnter the Law Enforcment Official's Name or ID No.", "Enter", "Cancel");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pFaction] == 1|| PlayerInfo[giveplayerid][pLeader] == 1 || PlayerInfo[giveplayerid][pFaction] == 2 || PlayerInfo[giveplayerid][pLeader] == 2)
- {
- SetPlayerMarkerForPlayer(playerid,giveplayerid,FIND_COLOR);
- FindingPlayer[playerid] = giveplayerid;
- FindTime[playerid] = 1;
- FindTimePoints[playerid] = 30;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " You can only find other cops!");
- }
- }
- }
- }
- if(dialogid == MDC_CIVILIANS && response)
- { //*Check Record\n*Licenses\nWarrants\n*Issue Warrant
- new WarrantString[512];
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- if(News[hTaken6] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd6], News[hContact6]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken7] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd7], News[hContact7]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken8] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd8], News[hContact8]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken9] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd9], News[hContact9]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken10] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd10], News[hContact10]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken11] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd11], News[hContact11]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken12] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd12], News[hContact12]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(News[hTaken13] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd13], News[hContact13]);
- strcat(WarrantString, string, sizeof(WarrantString));
- }
- if(strlen(WarrantString) == 0)
- {
- strcat(WarrantString, "No Warrants at this time.", sizeof(WarrantString));
- }
- switch(listitem)
- {
- case 0: ShowPlayerDialogEx(playerid, MDC_CHECK, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | Records Check", "Enter the Person's Name or ID No.", "Enter", "Cancel");
- case 1: ShowPlayerDialogEx(playerid, MDC_LICENSES, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | License Check", "Enter the Person's Name or ID No.", "Enter", "Cancel");
- case 2: ShowPlayerDialogEx(playerid, MDC_WARRANTS, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Warrant List", WarrantString, "Enter", "Cancel");
- case 3: ShowPlayerDialogEx(playerid, MDC_ISSUE_SLOT, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Which Slot would you like to use?", "1\n2\n3\n4\n5\n6\n7\n8", "Enter", "Cancel");
- case 4:
- {
- new BOLOString[512];
- if(News[hTaken14] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd14], News[hContact14]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken15] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd15], News[hContact15]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken16] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd16], News[hContact16]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken17] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd17], News[hContact17]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken18] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd18], News[hContact18]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken19] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd19], News[hContact19]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken20] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd20], News[hContact20]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(News[hTaken21] == 1)
- {
- format(string, sizeof(string), "%s :: Officer: %s\n", News[hAdd21], News[hContact21]);
- strcat(BOLOString, string, sizeof(BOLOString));
- }
- if(strlen(BOLOString) == 0)
- {
- strcat(BOLOString, "No BOLOs at this time.", sizeof(BOLOString));
- }
- ShowPlayerDialogEx(playerid, MDC_BOLOLIST, DIALOG_STYLE_LIST, "SA-MDC - Logged In | BOLO List", BOLOString, "OK", "Cancel");
- }
- case 5:
- {
- ShowPlayerDialogEx(playerid, MDC_BOLO_SLOT, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Which Slot would you like to use?", "1\n2\n3\n4\n5\n6\n7\n8", "Enter", "Cancel");
- }
- case 6:
- {
- ShowPlayerDialogEx(playerid, MDC_DELETE, DIALOG_STYLE_LIST, "SA-MDC - Logged In | Delete", "*BOLO\n*Warrant", "OK", "Cancel");
- }
- }
- }
- if(dialogid == MDC_MEMBERS && response)
- {
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- new MemberString[1024], giveplayer[MAX_PLAYER_NAME];
- new rank[64], division[64], employer[64];
- if(listitem == 0)
- {
- foreach(Player, i)
- {
- giveplayer = GetPlayerNameEx(i);
- if(PlayerInfo[i][pFaction] == 1)
- {
- GetPlayerFactionInfo(i, rank, division, employer);
- //GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s (%s) %s Ph: %d\n", rank, division, giveplayer, PlayerInfo[i][pNumber]);
- strcat(MemberString, string, sizeof(MemberString));
- }
- }
- if(strlen(MemberString) == 0)
- {
- strcat(MemberString, "No Members online at this time.", sizeof(MemberString));
- }
- ShowPlayerDialogEx(playerid, MDC_LSPD, DIALOG_STYLE_LIST, "SA-MDC - Logged in | LSPD Members", MemberString, "Select", "Cancel");
- }
- else if(listitem == 1)
- {
- foreach(Player, i)
- {
- giveplayer = GetPlayerNameEx(i);
- if(PlayerInfo[i][pFaction] == 2)
- {
- GetPlayerFactionInfo(i, rank, division, employer);
- //GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s (%s) %s Ph: %d\n", rank, division, giveplayer, PlayerInfo[i][pNumber]);
- strcat(MemberString, string, sizeof(MemberString));
- }
- }
- if(strlen(MemberString) == 0)
- {
- strcat(MemberString, "No Members online at this time.", sizeof(MemberString));
- }
- ShowPlayerDialogEx(playerid, MDC_SFPD, DIALOG_STYLE_LIST, "SA-MDC - Logged in | FBI Members", MemberString, "Select", "Cancel");
- }
- else if(listitem == 2)
- {
- foreach(Player, i)
- {
- giveplayer = GetPlayerNameEx(i);
- if(PlayerInfo[i][pFaction] == 3)
- {
- GetPlayerFactionInfo(i, rank, division, employer);
- //GetPlayerName(i, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "* %s (%s) %s Ph: %d\n", rank, division, giveplayer, PlayerInfo[i][pNumber]);
- strcat(MemberString, string, sizeof(MemberString));
- }
- }
- if(strlen(MemberString) == 0)
- {
- strcat(MemberString, "No Members online at this time.", sizeof(MemberString));
- }
- ShowPlayerDialogEx(playerid, MDC_LSFMD, DIALOG_STYLE_LIST, "SA-MDC - Logged in | LSFMD Members", MemberString, "Select", "Cancel");
- }
- }
- if(dialogid == MDC_WARRANTS && response)
- {
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Warrants", inputtext, "OK", "Back");
- }
- if(dialogid == MDC_BOLOLIST && response)
- {
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | BOLO Hot Sheet", inputtext, "OK", "Back");
- }
- if(dialogid == MDC_CHECK && response)
- {
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- new giveplayerid = ReturnUser(inputtext);
- new HistoryString[1024];
- new giveplayer[MAX_PLAYER_NAME];
- giveplayer = GetPlayerNameEx(giveplayerid);
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "Name : %s\n", GetPlayerNameEx(giveplayerid));
- strcat(HistoryString, string, sizeof(HistoryString));
- format(string, sizeof(string), "Crime : %s\n", PlayerCrime[giveplayerid][pAccusedof]);
- strcat(HistoryString, string, sizeof(HistoryString));
- format(string, sizeof(string), "Claimant : %s\n", PlayerCrime[giveplayerid][pVictim]);
- strcat(HistoryString, string, sizeof(HistoryString));
- format(string, sizeof(string), "Reported : %s\n", PlayerCrime[giveplayerid][pAccusing]);
- strcat(HistoryString, string, sizeof(HistoryString));
- format(string, sizeof(string), "Accused : %s\n", PlayerCrime[giveplayerid][pBplayer]);
- strcat(HistoryString, string, sizeof(HistoryString));
- for(new i=0; i<MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[giveplayerid][i][pvTicket] != 0)
- {
- format(string, sizeof(string), "Vehicle registration: %d | Vehicle Name: %s | Ticket: $%d.\n",PlayerVehicleInfo[giveplayerid][i][pvId],GetVehicleName(PlayerVehicleInfo[giveplayerid][i][pvId]),PlayerVehicleInfo[giveplayerid][i][pvTicket]);
- strcat(HistoryString, string, sizeof(HistoryString));
- }
- }
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Criminal History", HistoryString, "OK", "Cancel");
- format(string, sizeof(string), "** DISPATCH: %s has run a check for warrants on %s **", GetPlayerNameEx(playerid), giveplayer);
- SendRadioMessage(1, COLOR_DBLUE, string);
- SendRadioMessage(2, COLOR_DBLUE, string);
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | ERROR ", "There is no record of that person.", "OK", "Cancel");
- return 1;
- }
- }
- if(dialogid == MDC_LICENSES && response)
- {
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- new giveplayerid;
- if(sscanf(inputtext, "u", giveplayerid))
- {
- ShowPlayerDialogEx(playerid, MDC_LICENSES, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | License Check", "Enter the Person's Name or ID No.", "Enter", "Cancel");
- return 1;
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- new LicenseString[256], giveplayer[MAX_PLAYER_NAME];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- new text1[20];
- new text2[20];
- new text3[20];
- new text4[20];
- if(PlayerInfo[giveplayerid][pCarLic] == 0) { text1 = "Not Passed"; }
- if(PlayerInfo[giveplayerid][pCarLic] == 1) { text1 = "Passed"; }
- if(PlayerInfo[giveplayerid][pCarLic] == 2) { text1 = "Suspended"; }
- if(PlayerInfo[giveplayerid][pCarLic] == 3) { text1 = "Cancelled"; }
- if(PlayerInfo[giveplayerid][pFlyLic]) { text4 = "Passed"; } else { text4 = "Not Passed"; }
- if(PlayerInfo[giveplayerid][pBoatLic]) { text2 = "Passed"; } else { text2 = "Not Passed"; }
- if(PlayerInfo[giveplayerid][pGunLic]) { text3 = "Passed"; } else { text3 = "Not Passed"; }
- format(string, sizeof(string), " Name: %s\n", giveplayer);
- strcat(LicenseString, string, sizeof(LicenseString));
- format(string, sizeof(string), "-Drivers License: %s.\n", text1);
- strcat(LicenseString, string, sizeof(LicenseString));
- format(string, sizeof(string), "-Flying License: %s.\n", text4);
- strcat(LicenseString, string, sizeof(LicenseString));
- format(string, sizeof(string), "-Sailing License: %s.\n", text2);
- strcat(LicenseString, string, sizeof(LicenseString));
- format(string, sizeof(string), "-Weapon License: %s.\n", text3);
- strcat(LicenseString, string, sizeof(LicenseString));
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Criminal History", LicenseString, "OK", "Cancel");
- format(string, sizeof(string), "** DISPATCH: %s has ran a license check on %s **", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(1, COLOR_DBLUE, string);
- SendRadioMessage(2, COLOR_DBLUE, string);
- return 1;
- }
- else return ShowPlayerDialogEx(playerid, MDC_LICENSES, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | Error!", "ERROR: Invalid Name or ID No.\nEnter the Person's Name or ID No.", "Enter", "Cancel");
- }
- else return ShowPlayerDialogEx(playerid, MDC_LICENSES, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | Error!", "ERROR: Invalid Name or ID No.\nEnter the Person's Name or ID No.", "Enter", "Cancel");
- }
- if(dialogid == MDC_MESSAGE && response)
- {
- if(!IsMDCPermitted(playerid)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, " Login Failed. you're not permitted to use the MDC!");
- new giveplayerid;
- if(sscanf(inputtext, "u", giveplayerid))
- {
- return ShowPlayerDialogEx(playerid, MDC_MESSAGE, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: Invalid Recipient\nEnter recipient's Name or ID No.", "OK", "Cancel");
- }
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), " Enter your message to %s ", GetPlayerNameEx(giveplayerid));
- ShowPlayerDialogEx(playerid, MDC_MESSAGE_2, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | MDC Message", string, "OK", "Cancel");
- SetPVarInt(playerid, "MDCMessageRecipient", giveplayerid);
- }
- else return ShowPlayerDialogEx(playerid, MDC_MESSAGE, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: Invalid Recipient\nEnter recipient's Name or ID No.", "OK", "Cancel");
- }
- else return ShowPlayerDialogEx(playerid, MDC_MESSAGE, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: Invalid Recipient\nEnter recipient's Name or ID No.", "OK", "Cancel");
- }
- if(dialogid == MDC_SMS && response)
- {
- if(isnull(inputtext) || strval(inputtext) != 0)
- {
- return ShowPlayerDialogEx(playerid, MDC_SMS, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: Invalid Phone Number\nEnter Recipient's Phone Number", "OK", "Cancel");
- }
- new phonenumb = strval(inputtext);
- format(string, sizeof(string), " Enter your message to %d ", phonenumb);
- ShowPlayerDialogEx(playerid, MDC_SMS_2, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | SMS Message", string, "OK", "Cancel");
- SetPVarInt(playerid, "SMSMessageRecipient", phonenumb);
- }
- if(dialogid == MDC_MESSAGE_2 && response)
- {
- new giveplayerid = GetPVarInt(playerid, "MDCMessageRecipient");
- if(giveplayerid == INVALID_PLAYER_ID) return ShowPlayerDialogEx(playerid, MDC_MESSAGE, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: Invalid Recipient\nEnter recipient's Name or ID No.", "OK", "Cancel");
- if(giveplayerid == playerid)
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | ERROR ", "You can't send messages to yourself!", "OK", "Cancel");
- return 1;
- }
- if(ConnectedToPC[giveplayerid] == 1337 || IsPlayerInAnyVehicle(giveplayerid))
- {
- if(!IsMDCPermitted(giveplayerid))
- {
- return ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | ERROR ", "That person is not logged into the MDC.", "OK", "Cancel");
- }
- if(!strlen(inputtext))
- {
- return ShowPlayerDialogEx(playerid, MDC_MESSAGE_2, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: You must type a message!\nEnter Recipient's Name or ID No.", "OK", "Cancel");
- }
- format(string, sizeof(string), "MDC Message sent to %s:\n%s", GetPlayerNameEx(giveplayerid), inputtext);
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Message Sent! ", string, "OK", "Cancel");
- if(ConnectedToPC[giveplayerid] == 1337)
- {
- format(string, sizeof(string), "MDC Message from %s:\n%s", GetPlayerNameEx(playerid), inputtext);
- ShowPlayerDialogEx(giveplayerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | New Message!", string, "OK", "Cancel");
- format(string, sizeof(string), "MDC Message from %s: %s", GetPlayerNameEx(playerid), inputtext);
- SendClientMessage(giveplayerid, COLOR_YELLOW, string);
- }
- else
- {
- format(string, sizeof(string), "MDC Message from %s:\n%s", GetPlayerNameEx(playerid), inputtext);
- ShowPlayerDialogEx(giveplayerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | New Message! ", string, "OK", "Cancel");
- }
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | ERROR ", "That officer is not logged into the MDC.", "OK", "Cancel");
- return 1;
- }
- return 1;
- }
- if(dialogid == MDC_SMS_2 && response)
- {
- new phonenumb = GetPVarInt(playerid, "SMSMessageRecipient");
- if(!strlen(inputtext))
- {
- return ShowPlayerDialogEx(playerid, MDC_SMS_2, DIALOG_STYLE_INPUT, "SA-MDC - Logged In | Error!", "ERROR: You must type a message!\nEnter Recipient's Phone Number", "OK", "Cancel");
- }
- if(phonenumb == 555)
- {
- if(strcmp("yes", inputtext, true) == 0) {
- SendClientMessage(playerid, COLOR_WHITE, "Text Message Delivered.");
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: I have no idea what you're talking about, Sender: MOLE (555)");
- return 0;
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "SMS: A simple 'yes' will do, Sender: MOLE (555)");
- //ChatLog(string);
- return 0;
- }
- }
- foreach(Player, i)
- {
- if(PlayerInfo[i][pNumber] == phonenumb && phonenumb != 0)
- {
- Mobile[playerid] = i; //caller connecting
- if(PhoneOnline[i] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player's phone is switched off.");
- return 1;
- }
- format(string, sizeof(string), "SMS: %s, Sender: %s (Ph:%d)", inputtext,GetPlayerNameEx(playerid),PlayerInfo[playerid][pNumber]);
- GetPlayerName(i, sendername, sizeof(sendername));
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Message Sent! ", string, "OK", "Cancel");
- SendClientMessage(i, COLOR_YELLOW, string);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- Mobile[playerid] = 255;
- return 1;
- }
- }
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Message Delivery Failed! ", "Message Delivery Failed. Try Again", "OK", "Cancel");
- }
- if(dialogid == MDC_BOLO && response)
- {
- new x_nr = GetPVarInt(playerid, "BOLOISSUESLOT");
- if(x_nr == 1)
- {
- if(News[hTaken14] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd14], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact14], string, 0, strlen(string), 255);
- News[hTaken14] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 1 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 2)
- {
- if(News[hTaken15] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd15], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact15], string, 0, strlen(string), 255);
- News[hTaken15] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 2 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 3)
- {
- if(News[hTaken16] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd16], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact16], string, 0, strlen(string), 255);
- News[hTaken16] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 3 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 4)
- {
- if(News[hTaken17] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd17], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact17], string, 0, strlen(string), 255);
- News[hTaken17] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 4 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 5)
- {
- if(News[hTaken18] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd18], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact18], string, 0, strlen(string), 255);
- News[hTaken18] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 5 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 6)
- {
- if(News[hTaken19] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd19], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact19], string, 0, strlen(string), 255);
- News[hTaken19] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 6 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 7)
- {
- if(News[hTaken20] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd20], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact20], string, 0, strlen(string), 255);
- News[hTaken20] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 7 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 8)
- {
- if(News[hTaken21] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter BOLO Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd21], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact21], string, 0, strlen(string), 255);
- News[hTaken21] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for a BOLO on the MDC -BOLO\nto see the current BOLO List browse to BOLO when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for a BOLO have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 8 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- }
- if(dialogid == MDC_BOLO_SLOT && response)
- {
- SetPVarInt(playerid, "BOLOISSUESLOT", listitem + 1);
- ShowPlayerDialogEx(playerid, MDC_BOLO, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | Issue Warrant", "Enter BOLO Details", "Enter", "Cancel");
- }
- if(dialogid == MDC_ISSUE_SLOT && response)
- {
- SetPVarInt(playerid, "ISSUESLOT", listitem + 1);
- ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | Issue Warrant", "Enter Arrest Warrant Details", "Enter", "Cancel");
- }
- if(dialogid == MDC_END_ID && response)
- {
- ShowPlayerDialogEx(playerid, MDC_MAIN, DIALOG_STYLE_LIST, "SA-MDC - Logged in", "*Find LEO\n*Civilian Information\n*Law Enforcement Agencies\n*MDC Message\n*SMS", "OK", "Cancel");
- }
- if(dialogid == MDC_ISSUE && response)
- {
- new x_nr = GetPVarInt(playerid, "ISSUESLOT");
- if(x_nr == 1)
- {
- if(News[hTaken6] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd6], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact6], string, 0, strlen(string), 255);
- News[hTaken6] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 1 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 2)
- {
- if(News[hTaken7] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd7], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact7], string, 0, strlen(string), 255);
- News[hTaken7] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 2 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 3)
- {
- if(News[hTaken8] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd8], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact8], string, 0, strlen(string), 255);
- News[hTaken8] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 3 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 4)
- {
- if(News[hTaken9] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd9], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact9], string, 0, strlen(string), 255);
- News[hTaken9] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 4 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 5)
- {
- if(News[hTaken10] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd10], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact10], string, 0, strlen(string), 255);
- News[hTaken10] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 5 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 6)
- {
- if(News[hTaken11] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd11], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact11], string, 0, strlen(string), 255);
- News[hTaken11] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 6 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 7)
- {
- if(News[hTaken12] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd12], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact12], string, 0, strlen(string), 255);
- News[hTaken12] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 7 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- if(x_nr == 8)
- {
- if(News[hTaken13] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(strlen(inputtext) < 9) { ShowPlayerDialogEx(playerid, MDC_ISSUE, DIALOG_STYLE_INPUT, "SA-MDC - Logged in | ERROR", "ERROR: Must Be 9+ characters\nEnter Arrest Warrant Details", "Enter", "Cancel"); return 1; }
- format(string, sizeof(string), "%s",inputtext); strmid(News[hAdd13], string, 0, strlen(string), 255);
- format(string, sizeof(string), "%s",sendername); strmid(News[hContact13], string, 0, strlen(string), 255);
- News[hTaken13] = 1;
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Success! ","* You placed details for an arrest warrant on the MDC -Warrants\nto see the current Warrants browse to Warrants when logged in to the mdc", "OK", "Back");
- SendRadioMessage(1, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- SendRadioMessage(2, COLOR_LIGHTBLUE, "** MDC: Details for an arrest warrant have been updated.");
- return 1;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_END_ID, DIALOG_STYLE_MSGBOX, "SA-MDC - Logged in | Error! ", "Spot 8 is already Taken!", "OK", "Back");
- return 1;
- }
- }
- }
- if(dialogid == MDC_DELETE && response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, MDC_DEL_BOLO, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Which BOLO Slot would you like to delete?", "1\n2\n3\n4\n5\n6\n7\n8\nALL", "Enter", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, MDC_DEL_WARRANT, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Which Warrant Slot would you like to delete?", "1\n2\n3\n4\n5\n6\n7\n8\nALL", "Enter", "Cancel");
- }
- }
- if(dialogid == MDC_DEL_BOLO && response)
- {
- new string1[MAX_PLAYER_NAME];
- if(isnull(inputtext))
- {
- ShowPlayerDialogEx(playerid, MDC_DEL_WARRANT, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Which Warrant Slot would you like to delete?", "1\n2\n3\n4\n5\n6\n7\n8\nALL", "Enter", "Cancel");
- return 1;
- }
- if(strcmp(inputtext, "1") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd14], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact14], string1, 0, strlen(string1), 255);
- News[hTaken14] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (1) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "2") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd15], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact15], string1, 0, strlen(string1), 255);
- News[hTaken15] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (2) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "3") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd16], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact16], string1, 0, strlen(string1), 255);
- News[hTaken16] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (3) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "4") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd17], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact17], string1, 0, strlen(string1), 255);
- News[hTaken17] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (4) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "5") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd18], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact18], string1, 0, strlen(string1), 255);
- News[hTaken18] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (5) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "6") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd19], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact19], string1, 0, strlen(string1), 255);
- News[hTaken19] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (6) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "7") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd20], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact20], string1, 0, strlen(string1), 255);
- News[hTaken20] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (7) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext, "8") == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd21], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact21], string1, 0, strlen(string1), 255);
- News[hTaken21] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Be on the Lookout (8) from the MDC -BOLO.");
- return 1;
- }
- else if(strcmp(inputtext,"all",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd14], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact14], string1, 0, strlen(string1), 255);
- News[hTaken14] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd15], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact15], string1, 0, strlen(string1), 255);
- News[hTaken15] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd16], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact16], string1, 0, strlen(string1), 255);
- News[hTaken16] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd17], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact17], string1, 0, strlen(string1), 255);
- News[hTaken17] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd18], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact18], string1, 0, strlen(string1), 255);
- News[hTaken18] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd19], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact19], string1, 0, strlen(string1), 255);
- News[hTaken19] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd20], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact20], string1, 0, strlen(string1), 255);
- News[hTaken20] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd21], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact21], string1, 0, strlen(string1), 255);
- News[hTaken21] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted all the details for Be on the Lookout from the MDC -BOLO.");
- return 1;
- }
- }
- if(dialogid == MDC_DEL_WARRANT && response)
- {
- new string1[MAX_PLAYER_NAME];
- if(isnull(inputtext))
- {
- ShowPlayerDialogEx(playerid, MDC_DEL_WARRANT, DIALOG_STYLE_LIST, "SA-MDC - Logged in | Which Warrant Slot would you like to delete?", "1\n2\n3\n4\n5\n6\n7\n8\nALL", "Enter", "Cancel");
- return 1;
- }
- if(strcmp(inputtext,"1",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd6], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact6], string1, 0, strlen(string1), 255);
- News[hTaken6] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (1) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"2",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd7], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact7], string1, 0, strlen(string1), 255);
- News[hTaken7] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (2) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"3",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd8], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact8], string1, 0, strlen(string1), 255);
- News[hTaken8] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (3) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"4",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd9], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact9], string1, 0, strlen(string1), 255);
- News[hTaken9] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (4) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"5",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd10], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact10], string1, 0, strlen(string1), 255);
- News[hTaken10] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (5) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"6",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd11], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact11], string1, 0, strlen(string1), 255);
- News[hTaken11] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (6) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"7",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd12], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact12], string1, 0, strlen(string1), 255);
- News[hTaken12] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (7) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"8",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd13], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact13], string1, 0, strlen(string1), 255);
- News[hTaken13] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted details for Arrest Warrant (8) from the MDC -Warrants.");
- return 1;
- }
- else if(strcmp(inputtext,"all",true) == 0)
- {
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd6], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact6], string1, 0, strlen(string1), 255);
- News[hTaken6] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd7], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact7], string1, 0, strlen(string1), 255);
- News[hTaken7] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd8], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact8], string1, 0, strlen(string1), 255);
- News[hTaken8] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd9], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact9], string1, 0, strlen(string1), 255);
- News[hTaken9] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd10], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact10], string1, 0, strlen(string1), 255);
- News[hTaken10] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd11], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact11], string1, 0, strlen(string1), 255);
- News[hTaken11] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd12], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact12], string1, 0, strlen(string1), 255);
- News[hTaken12] = 0;
- format(string, sizeof(string), "Nothing"); strmid(News[hAdd13], string, 0, strlen(string), 255);
- format(string1, sizeof(string1), "No-one"); strmid(News[hContact13], string1, 0, strlen(string1), 255);
- News[hTaken13] = 0;
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You deleted all the details for Arrest Warrants from the MDC -Warrants.");
- return 1;
- }
- }
- if(dialogid == MDC_LOGOUT && response)
- {
- }
- if(dialogid == MDC_CREATE && response)
- {
- }
- if((dialogid >= MDC_START_ID && dialogid <= MDC_END_ID) && !response)
- {
- if(dialogid == MDC_MAIN)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* you're now logged off the MDC.");
- ConnectedToPC[playerid] = 0;
- }
- else
- {
- ShowPlayerDialogEx(playerid, MDC_MAIN, DIALOG_STYLE_LIST, "SA-MDC - Logged in", "*Find LEO\n*Civilian Information\n*Law Enforcement Agencies\n*MDC Message\n*SMS", "OK", "Cancel");
- }
- }
- if(dialogid == DUTYMENU)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Duty
- {
- if(PlayerInfo[playerid][pDuty]==0)
- {
- format(string, sizeof(string), "* Officer %s takes a badge and a gun from their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_BLUE_COLOR);
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pSkin] = 280;
- SetPlayerArmourEx(playerid, 100.0);
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerValidWeapon(playerid, 41, 99999);
- GivePlayerValidWeapon(playerid, 3, 99999);
- OnDuty[playerid] = 1;
- PlayerInfo[playerid][pDuty] = 1;
- //ShowPlayerDialogEx(playerid, DUTY_OPTIONS, DIALOG_STYLE_LIST, "Duty Options","Public\nUndercover", "Select", "Cancel");
- }
- else if(PlayerInfo[playerid][pDuty]==1)
- {
- format(string, sizeof(string), "* Officer %s places their badge and gun in their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SetPlayerArmourEx(playerid, 0.0);
- SetPlayerSkin(playerid, 46);
- PlayerInfo[playerid][pSkin] = 46;
- OnDuty[playerid] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- }
- }
- if(listitem == 1) // LSPD Weapons
- {
- ShowPlayerDialogEx(playerid, DUTYMENU2, DIALOG_STYLE_LIST, "LSPD Equipment","Mace\nNite Stick\nDesert Eagle\nSPAS-12 $700\nMP5\nM4\nAK-47\nSmoke Grenade\nShotgun\nRifle $100\nSniper Rifle $800\nKevlar Vest\nFirst Aid Kit\nAccessories", "Purchase", "Cancel");
- }
- if(listitem == 2) // LSPD SWAT Uniform
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 3) // LSPD Uniforms
- {
- ShowPlayerDialogEx(playerid, DUTYMENU3, DIALOG_STYLE_LIST, "LSPD Uniforms","Cadet\nFemale Officer\nOfficer 1\nOfficer 2\nOfficer 3\nBlack Officer\nLatino Officer\nMotorcycle Officer\nSWAT Officer\nSergeant\nCaptain\nChief", "Put On", "Cancel");
- }
- if(listitem == 4) // LSPD Undercover Uniform
- {
- ShowPlayerDialogEx(playerid, FDUTYMENU4, DIALOG_STYLE_INPUT, "Undercover","Choose a skin (by ID).", "Select", "Cancel");
- }
- if(listitem == 5) // LSPD Clear.
- {
- ShowPlayerDialogEx(playerid, DUTYMENU5,DIALOG_STYLE_INPUT,"LSPD"," Who would you like to clear?","Clear","Nevermind");
- }
- }
- }
- if(dialogid == DUTYMENU2)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- switch(listitem)
- {
- case 0: // LSPD Mace
- {
- GivePlayerValidWeapon(playerid, 41, 60000);
- }
- case 1: // LSPD Nite Stick
- {
- GivePlayerValidWeapon(playerid, 3, 60000);
- }
- case 2: // LSPD Deagle
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- }
- case 3: // LSPD Spas12 *
- {
- if(PlayerInfo[playerid][pRank] >= 2) {
- if(GetPlayerCash(playerid) < 700)
- return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -700);
- GivePlayerValidWeapon(playerid, 27, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 2.");
- }
- }
- case 4: // LSPD mp5
- {
- GivePlayerValidWeapon(playerid, 29, 60000);
- }
- case 5: // LSPD m4 *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 31, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 6: // LSPD ak-47 *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 30, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 7: // LSPD Smoke Bomb *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 17, 5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 8: // LSPD Shotgun
- {
- GivePlayerValidWeapon(playerid, 25, 60000);
- }
- case 9: // LSPD rifle
- {
- if(GetPlayerCash(playerid) < 100) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -100);
- GivePlayerValidWeapon(playerid, 33, 60000);
- }
- case 10: // LSPD Sniper *
- {
- if(PlayerInfo[playerid][pRank] >= 2)
- {
- if(GetPlayerCash(playerid) < 800) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -800);
- GivePlayerValidWeapon(playerid, 34, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 3.");
- }
- }
- case 11: // LSPD Kevlar
- {
- SetPlayerArmourEx(playerid, 100.0);
- }
- case 12: SetPlayerHealth(playerid, 100);
- case 13: ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!","Continue", "Cancel");
- }
- }
- }
- if(dialogid == DUTYMENU3)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 71);
- PlayerInfo[playerid][pSkin] = 71;
- }
- if(listitem == 1) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 141);
- PlayerInfo[playerid][pSkin] = 141;
- }
- if(listitem == 2) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pSkin] = 280;
- }
- if(listitem == 3) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 266);
- PlayerInfo[playerid][pSkin] = 266;
- }
- if(listitem == 4) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 281);
- PlayerInfo[playerid][pSkin] = 281;
- }
- if(listitem == 5) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 265);
- PlayerInfo[playerid][pSkin] = 265;
- }
- if(listitem == 6) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 267);
- PlayerInfo[playerid][pSkin] = 267;
- }
- if(listitem == 7) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 284);
- PlayerInfo[playerid][pSkin] = 284;
- }
- if(listitem == 8) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 9) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 282);
- PlayerInfo[playerid][pSkin] = 282;
- }
- if(listitem == 10) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 283);
- PlayerInfo[playerid][pSkin] = 283;
- }
- if(listitem == 11) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 288);
- PlayerInfo[playerid][pSkin] = 288;
- }
- }
- }
- if(dialogid == DUTYMENU4)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 223);
- PlayerInfo[playerid][pSkin] = 223;
- }
- if(listitem == 1) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 120);
- PlayerInfo[playerid][pSkin] = 120;
- }
- if(listitem == 2) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 240);
- PlayerInfo[playerid][pSkin] = 240;
- }
- if(listitem == 3) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 296);
- PlayerInfo[playerid][pSkin] = 296;
- }
- if(listitem == 4) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 137);
- PlayerInfo[playerid][pSkin] = 137;
- }
- if(listitem == 5) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 214);
- PlayerInfo[playerid][pSkin] = 214;
- }
- if(listitem == 6) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 147);
- PlayerInfo[playerid][pSkin] = 147;
- }
- if(listitem == 7) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 150);
- PlayerInfo[playerid][pSkin] = 150;
- }
- if(listitem == 8) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 201);
- PlayerInfo[playerid][pSkin] = 201;
- }
- if(listitem == 9) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 162);
- PlayerInfo[playerid][pSkin] = 162;
- }
- if(listitem == 10) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 29);
- PlayerInfo[playerid][pSkin] = 29;
- }
- if(listitem == 11) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 270);
- PlayerInfo[playerid][pSkin] = 270;
- }
- if(listitem == 12) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 59);
- PlayerInfo[playerid][pSkin] = 59;
- }
- }
- }
- if(dialogid == DUTYMENU5)
- {
- if(response)
- {
- new giveplayerid = ReturnUser(inputtext);
- //giveplayerid = strval(inputtext);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "* You cleared the records and wanted points of %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared your records and wanted points.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared %s's records and wanted points.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(1, RADIO, string);
- SendRadioMessage(2, RADIO, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerToTeamColor(giveplayerid);
- SetPlayerWantedLevel(giveplayerid, 0);
- ClearCrime(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- }
- }
- if(dialogid == SDUTYMENU)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Duty
- {
- if(PlayerInfo[playerid][pDuty]==0)
- {
- format(string, sizeof(string), "* Corporal %s takes a badge and a gun from their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, COLOR_ORANGE);
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pSkin] = 280;
- SetPlayerArmourEx(playerid, 100.0);
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerValidWeapon(playerid, 41, 99999);
- GivePlayerValidWeapon(playerid, 3, 99999);
- OnDuty[playerid] = 1;
- PlayerInfo[playerid][pDuty] = 1;
- //ShowPlayerDialogEx(playerid, DUTY_OPTIONS, DIALOG_STYLE_LIST, "Duty Options","Public\nUndercover", "Select", "Cancel");
- }
- else if(PlayerInfo[playerid][pDuty]==1)
- {
- format(string, sizeof(string), "* Corporal %s places their badge and gun in their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SetPlayerArmourEx(playerid, 0.0);
- SetPlayerSkin(playerid, 46);
- PlayerInfo[playerid][pSkin] = 46;
- OnDuty[playerid] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- }
- }
- if(listitem == 1) // LSPD Weapons
- {
- ShowPlayerDialogEx(playerid, DUTYMENU2, DIALOG_STYLE_LIST, "SASD Equipment","Mace\nNite Stick\nDesert Eagle\nSPAS-12 $700\nMP5\nM4\nAK-47\nSmoke Grenade\nShotgun\nRifle $100\nSniper Rifle $800\nKevlar Vest\nFirst Aid Kit\nAccessories", "Purchase", "Cancel");
- }
- if(listitem == 2) // LSPD SWAT Uniform
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 3) // LSPD Uniforms
- {
- ShowPlayerDialogEx(playerid, DUTYMENU3, DIALOG_STYLE_LIST, "SASD Uniforms","Cadet\nFemale Officer\nOfficer 1\nOfficer 2\nOfficer 3\nBlack Officer\nLatino Officer\nMotorcycle Officer\nSWAT Officer\nSergeant\nCaptain\nChief", "Put On", "Cancel");
- }
- if(listitem == 4) // LSPD Undercover Uniform
- {
- ShowPlayerDialogEx(playerid, FDUTYMENU4, DIALOG_STYLE_INPUT, "Undercover","Choose a skin (by ID).", "Select", "Cancel");
- }
- if(listitem == 5) // LSPD Clear.
- {
- ShowPlayerDialogEx(playerid, DUTYMENU5,DIALOG_STYLE_INPUT,"SASD"," Who would you like to clear?","Clear","Nevermind");
- }
- }
- }
- if(dialogid == SDUTYMENU2)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- switch(listitem)
- {
- case 0: // LSPD Mace
- {
- GivePlayerValidWeapon(playerid, 41, 60000);
- }
- case 1: // LSPD Nite Stick
- {
- GivePlayerValidWeapon(playerid, 3, 60000);
- }
- case 2: // LSPD Deagle
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- }
- case 3: // LSPD Spas12 *
- {
- if(PlayerInfo[playerid][pRank] >= 2) {
- if(GetPlayerCash(playerid) < 700)
- return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -700);
- GivePlayerValidWeapon(playerid, 27, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 2.");
- }
- }
- case 4: // LSPD mp5
- {
- GivePlayerValidWeapon(playerid, 29, 60000);
- }
- case 5: // LSPD m4 *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 31, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 6: // LSPD ak-47 *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 30, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 7: // LSPD Smoke Bomb *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 17, 5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 8: // LSPD Shotgun
- {
- GivePlayerValidWeapon(playerid, 25, 60000);
- }
- case 9: // LSPD rifle
- {
- if(GetPlayerCash(playerid) < 100) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -100);
- GivePlayerValidWeapon(playerid, 33, 60000);
- }
- case 10: // LSPD Sniper *
- {
- if(PlayerInfo[playerid][pRank] >= 2)
- {
- if(GetPlayerCash(playerid) < 800) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -800);
- GivePlayerValidWeapon(playerid, 34, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 3.");
- }
- }
- case 11: // LSPD Kevlar
- {
- SetPlayerArmourEx(playerid, 100.0);
- }
- case 12: SetPlayerHealth(playerid, 100);
- case 13: ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!","Continue", "Cancel");
- }
- }
- }
- if(dialogid == SDUTYMENU3)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 71);
- PlayerInfo[playerid][pSkin] = 71;
- }
- if(listitem == 1) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 141);
- PlayerInfo[playerid][pSkin] = 141;
- }
- if(listitem == 2) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pSkin] = 280;
- }
- if(listitem == 3) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 266);
- PlayerInfo[playerid][pSkin] = 266;
- }
- if(listitem == 4) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 281);
- PlayerInfo[playerid][pSkin] = 281;
- }
- if(listitem == 5) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 265);
- PlayerInfo[playerid][pSkin] = 265;
- }
- if(listitem == 6) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 267);
- PlayerInfo[playerid][pSkin] = 267;
- }
- if(listitem == 7) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 284);
- PlayerInfo[playerid][pSkin] = 284;
- }
- if(listitem == 8) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 9) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 282);
- PlayerInfo[playerid][pSkin] = 282;
- }
- if(listitem == 10) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 283);
- PlayerInfo[playerid][pSkin] = 283;
- }
- if(listitem == 11) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 288);
- PlayerInfo[playerid][pSkin] = 288;
- }
- }
- }
- if(dialogid == SDUTYMENU4)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 223);
- PlayerInfo[playerid][pSkin] = 223;
- }
- if(listitem == 1) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 120);
- PlayerInfo[playerid][pSkin] = 120;
- }
- if(listitem == 2) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 240);
- PlayerInfo[playerid][pSkin] = 240;
- }
- if(listitem == 3) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 296);
- PlayerInfo[playerid][pSkin] = 296;
- }
- if(listitem == 4) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 137);
- PlayerInfo[playerid][pSkin] = 137;
- }
- if(listitem == 5) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 214);
- PlayerInfo[playerid][pSkin] = 214;
- }
- if(listitem == 6) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 147);
- PlayerInfo[playerid][pSkin] = 147;
- }
- if(listitem == 7) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 150);
- PlayerInfo[playerid][pSkin] = 150;
- }
- if(listitem == 8) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 201);
- PlayerInfo[playerid][pSkin] = 201;
- }
- if(listitem == 9) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 162);
- PlayerInfo[playerid][pSkin] = 162;
- }
- if(listitem == 10) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 29);
- PlayerInfo[playerid][pSkin] = 29;
- }
- if(listitem == 11) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 270);
- PlayerInfo[playerid][pSkin] = 270;
- }
- if(listitem == 12) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 59);
- PlayerInfo[playerid][pSkin] = 59;
- }
- }
- }
- if(dialogid == SDUTYMENU5)
- {
- if(response)
- {
- new giveplayerid = ReturnUser(inputtext);
- //giveplayerid = strval(inputtext);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "* You cleared the records and wanted points of %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Corporal %s has cleared your records and wanted points.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Corporal %s has cleared %s's records and wanted points.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(1, RADIO, string);
- SendRadioMessage(2, RADIO, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerToTeamColor(giveplayerid);
- SetPlayerWantedLevel(giveplayerid, 0);
- ClearCrime(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- }
- }
- if(dialogid == BACKPACK)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerCash(playerid) < 500000)
- {
- SendClientMessage(playerid, COLOR_GREY, "Not enough cash! ($500,000)");
- return 1;
- }
- GivePlayerCash(playerid, -500000);
- PlayerInfo[playerid][pBackpack] = 1;
- SendClientMessage(playerid, -1, "Congratulatinos! You have bought Large Backpack!");
- SetPlayerAttachedObject(playerid, 1, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0); // Backpack
- PlayerInfo[playerid][pWearingBP] = 1;
- }
- if(listitem == 1)
- {
- if(GetPlayerCash(playerid) < 100000)
- {
- SendClientMessage(playerid, COLOR_GREY, "Not enough cash! ($100,000)");
- return 1;
- }
- GivePlayerCash(playerid, -100000);
- PlayerInfo[playerid][pBackpack] = 2;
- SendClientMessage(playerid, -1, "Congratulatinos! You have bought Medium Backpack!");
- SetPlayerAttachedObject(playerid, 1, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0); // Backpack
- PlayerInfo[playerid][pWearingBP] = 1;
- }
- if(listitem == 2)
- {
- if(GetPlayerCash(playerid) < 50000)
- {
- SendClientMessage(playerid, COLOR_GREY, "Not enough cash! ($50,000)");
- return 1;
- }
- PlayerInfo[playerid][pBackpack] = 3;
- SendClientMessage(playerid, -1, "Congratulatinos! You have bought Small Backpack!");
- SetPlayerAttachedObject(playerid, 1, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0); // Backpack
- PlayerInfo[playerid][pWearingBP] = 1;
- }
- }
- }
- if(dialogid == ADUTYMENU)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Duty
- {
- if(PlayerInfo[playerid][pDuty]==0)
- {
- format(string, sizeof(string), "* Officer %s takes a badge and a gun from their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_ARES_COLOR);
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pSkin] = 280;
- SetPlayerArmourEx(playerid, 100.0);
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerValidWeapon(playerid, 41, 99999);
- GivePlayerValidWeapon(playerid, 3, 99999);
- OnDuty[playerid] = 1;
- PlayerInfo[playerid][pDuty] = 1;
- //ShowPlayerDialogEx(playerid, DUTY_OPTIONS, DIALOG_STYLE_LIST, "Duty Options","Public\nUndercover", "Select", "Cancel");
- }
- else if(PlayerInfo[playerid][pDuty]==1)
- {
- format(string, sizeof(string), "* Officer %s places their badge and gun in their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SetPlayerArmourEx(playerid, 0.0);
- SetPlayerSkin(playerid, 46);
- PlayerInfo[playerid][pSkin] = 46;
- OnDuty[playerid] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- }
- }
- if(listitem == 1) // LSPD Weapons
- {
- ShowPlayerDialogEx(playerid, ADUTYMENU2, DIALOG_STYLE_LIST, "LSPD Equipment","Mace\nNite Stick\nDesert Eagle\nSPAS-12 $700\nMP5\nM4\nAK-47\nSmoke Grenade\nShotgun\nRifle $100\nSniper Rifle $800\nKevlar Vest\nFirst Aid Kit\nAccessories", "Purchase", "Cancel");
- }
- if(listitem == 2) // LSPD SWAT Uniform
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 3) // LSPD Uniforms
- {
- ShowPlayerDialogEx(playerid, ADUTYMENU3, DIALOG_STYLE_LIST, "LSPD Uniforms","Cadet\nFemale Officer\nOfficer 1\nOfficer 2\nOfficer 3\nBlack Officer\nLatino Officer\nMotorcycle Officer\nSWAT Officer\nSergeant\nCaptain\nChief", "Put On", "Cancel");
- }
- if(listitem == 4) // LSPD Undercover Uniform
- {
- ShowPlayerDialogEx(playerid, ADUTYMENU4, DIALOG_STYLE_INPUT, "Undercover","Choose a skin (by ID).", "Select", "Cancel");
- }
- if(listitem == 5) // LSPD Clear.
- {
- ShowPlayerDialogEx(playerid, ADUTYMENU5,DIALOG_STYLE_INPUT,"LSPD"," Who would you like to clear?","Clear","Nevermind");
- }
- }
- }
- if(dialogid == ADUTYMENU2)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- switch(listitem)
- {
- case 0: // LSPD Mace
- {
- GivePlayerValidWeapon(playerid, 41, 60000);
- }
- case 1: // LSPD Nite Stick
- {
- GivePlayerValidWeapon(playerid, 3, 60000);
- }
- case 2: // LSPD Deagle
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- }
- case 3: // LSPD Spas12 *
- {
- if(PlayerInfo[playerid][pRank] >= 2) {
- if(GetPlayerCash(playerid) < 700)
- return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -700);
- GivePlayerValidWeapon(playerid, 27, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 2.");
- }
- }
- case 4: // LSPD mp5
- {
- GivePlayerValidWeapon(playerid, 29, 60000);
- }
- case 5: // LSPD m4 *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 31, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 6: // LSPD ak-47 *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 30, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 7: // LSPD Smoke Bomb *
- {
- if(PlayerInfo[playerid][pRank] >= 1)
- {
- GivePlayerValidWeapon(playerid, 17, 5);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 1.");
- }
- }
- case 8: // LSPD Shotgun
- {
- GivePlayerValidWeapon(playerid, 25, 60000);
- }
- case 9: // LSPD rifle
- {
- if(GetPlayerCash(playerid) < 100) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -100);
- GivePlayerValidWeapon(playerid, 33, 60000);
- }
- case 10: // LSPD Sniper *
- {
- if(PlayerInfo[playerid][pRank] >= 2)
- {
- if(GetPlayerCash(playerid) < 800) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -800);
- GivePlayerValidWeapon(playerid, 34, 60000);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not at least rank 3.");
- }
- }
- case 11: // LSPD Kevlar
- {
- SetPlayerArmourEx(playerid, 100.0);
- }
- case 12: SetPlayerHealth(playerid, 100);
- case 13: ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!","Continue", "Cancel");
- }
- }
- }
- if(dialogid == ADUTYMENU3)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 71);
- PlayerInfo[playerid][pSkin] = 71;
- }
- if(listitem == 1) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 141);
- PlayerInfo[playerid][pSkin] = 141;
- }
- if(listitem == 2) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pSkin] = 280;
- }
- if(listitem == 3) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 266);
- PlayerInfo[playerid][pSkin] = 266;
- }
- if(listitem == 4) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 281);
- PlayerInfo[playerid][pSkin] = 281;
- }
- if(listitem == 5) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 265);
- PlayerInfo[playerid][pSkin] = 265;
- }
- if(listitem == 6) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 267);
- PlayerInfo[playerid][pSkin] = 267;
- }
- if(listitem == 7) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 284);
- PlayerInfo[playerid][pSkin] = 284;
- }
- if(listitem == 8) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 9) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 282);
- PlayerInfo[playerid][pSkin] = 282;
- }
- if(listitem == 10) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 283);
- PlayerInfo[playerid][pSkin] = 283;
- }
- if(listitem == 11) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 288);
- PlayerInfo[playerid][pSkin] = 288;
- }
- }
- }
- if(dialogid == ADUTYMENU4)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 223);
- PlayerInfo[playerid][pSkin] = 223;
- }
- if(listitem == 1) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 120);
- PlayerInfo[playerid][pSkin] = 120;
- }
- if(listitem == 2) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 240);
- PlayerInfo[playerid][pSkin] = 240;
- }
- if(listitem == 3) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 296);
- PlayerInfo[playerid][pSkin] = 296;
- }
- if(listitem == 4) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 137);
- PlayerInfo[playerid][pSkin] = 137;
- }
- if(listitem == 5) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 214);
- PlayerInfo[playerid][pSkin] = 214;
- }
- if(listitem == 6) // LSPD Uniforms
- {
- SetPlayerSkin(playerid, 147);
- PlayerInfo[playerid][pSkin] = 147;
- }
- if(listitem == 7) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 150);
- PlayerInfo[playerid][pSkin] = 150;
- }
- if(listitem == 8) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 201);
- PlayerInfo[playerid][pSkin] = 201;
- }
- if(listitem == 9) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 162);
- PlayerInfo[playerid][pSkin] = 162;
- }
- if(listitem == 10) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 29);
- PlayerInfo[playerid][pSkin] = 29;
- }
- if(listitem == 11) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 270);
- PlayerInfo[playerid][pSkin] = 270;
- }
- if(listitem == 12) //LSPD Uniforms
- {
- SetPlayerSkin(playerid, 59);
- PlayerInfo[playerid][pSkin] = 59;
- }
- }
- }
- if(dialogid == ADUTYMENU5)
- {
- if(response)
- {
- new giveplayerid = ReturnUser(inputtext);
- //giveplayerid = strval(inputtext);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "* You cleared the records and wanted points of %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared your records and wanted points.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Officer %s has cleared %s's records and wanted points.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(1, RADIO, string);
- SendRadioMessage(2, RADIO, string);
- SendRadioMessage(10, RADIO, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerToTeamColor(giveplayerid);
- SetPlayerWantedLevel(giveplayerid, 0);
- ClearCrime(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- }
- }
- if(dialogid == FDUTYMENU)
- {
- if(response)
- {
- if(listitem == 0) // FBI Duty
- {
- if(PlayerInfo[playerid][pDuty]==0)
- {
- format(string, sizeof(string), "* Agent %s takes a badge and a gun from their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_FBI_COLOR);
- SetPlayerArmourEx(playerid, 100.0);
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerValidWeapon(playerid, 41, 99999);
- GivePlayerValidWeapon(playerid, 3, 99999);
- GivePlayerValidWeapon(playerid, 29, 99999);
- OnDuty[playerid] = 1;
- PlayerInfo[playerid][pDuty] = 1;
- }
- else if(PlayerInfo[playerid][pDuty]==1)
- {
- format(string, sizeof(string), "* Agent %s places their badge and gun in their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SetPlayerSkin(playerid, 46);
- PlayerInfo[playerid][pSkin] = 46;
- SetPlayerArmourEx(playerid, 0.0);
- OnDuty[playerid] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- }
- }
- if(listitem == 1) // FBI Weapons
- {
- ShowPlayerDialogEx(playerid, FDUTYMENU2, DIALOG_STYLE_LIST, "FBI Weapons","Mace\nNite Stick\nDesert Eagle\nShotgun\nSPAS-12 $700\nMP5\nM4\nAK-47\nSmoke Grenade\nCamera\nSniper Rifle $800\nTactical Vest\nFirst Aid Kit\nAccessories", "Purchase", "Cancel");
- }
- if(listitem == 2) // FBI SWAT Uniform
- {
- if(PlayerInfo[playerid][pRank] > 3)
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You're not the required rank!");
- return 1;
- }
- }
- if(listitem == 3) // FBI Uniforms
- {
- ShowPlayerDialogEx(playerid, FDUTYMENU3, DIALOG_STYLE_LIST, "FBI Uniforms","Agent with Coat\nBlack Agent\nWhite Agent\nAsian Agent\nAsian Agent 2\nSWAT\nGirl", "Put On", "Cancel");
- }
- if(listitem == 4) // FBI Undercover Uniform
- {
- ShowPlayerDialogEx(playerid, FDUTYMENU4, DIALOG_STYLE_INPUT, "Undercover","Choose a skin (by ID).", "Select", "Cancel");
- }
- if(listitem == 5) // FBI Clear.
- {
- ShowPlayerDialogEx(playerid,FDUTYMENU5,DIALOG_STYLE_INPUT,"FBI"," Who would you like to clear?","Clear","Return");
- }
- }
- }
- if(dialogid == FDUTYMENU2)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_GRAD2, "You can't use this as you're currently restricted from possessing weapons!");
- else switch(listitem) {
- case 0: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 41, 99999);
- }
- case 1: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 3, 99999);
- }
- case 2: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 24, 99999);
- }
- case 3: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 25, 99999);
- }
- case 4: // FBI Weapons
- {
- if(GetPlayerCash(playerid) < 700) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -700);
- GivePlayerValidWeapon(playerid, 27, 99999);
- }
- case 5: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 29, 99999);
- }
- case 6: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 31, 99999);
- }
- case 7: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 30, 99999);
- }
- case 8: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 17, 5);
- }
- case 9: // FBI Weapons
- {
- GivePlayerValidWeapon(playerid, 43, 99999);
- }
- case 10: // FBI Weapons
- {
- if(GetPlayerCash(playerid) < 800) return SendClientMessage(playerid, COLOR_WHITE, "You don't have the cash for that.");
- GivePlayerCash(playerid, -800);
- GivePlayerValidWeapon(playerid, 34, 99999);
- }
- case 11: // FBI Weapons
- {
- SetPlayerArmourEx(playerid, 100);
- }
- case 12: SetPlayerHealth(playerid, 100);
- case 13: ShowPlayerDialogEx(playerid, BUYTOYSCOP, DIALOG_STYLE_MSGBOX, "Accessories", "Welcome to the law enforcement accessory locker!","Continue", "Cancel");
- }
- }
- }
- if(dialogid == FDUTYMENU3)
- {
- if(response)
- {
- if(listitem == 0) // FBI Uniforms
- {
- SetPlayerSkin(playerid, 286);
- PlayerInfo[playerid][pSkin] = 286;
- }
- if(listitem == 1) //FBI Uniforms
- {
- SetPlayerSkin(playerid, 166);
- PlayerInfo[playerid][pSkin] = 166;
- }
- if(listitem == 2) // FBI Uniforms
- {
- SetPlayerSkin(playerid, 165);
- PlayerInfo[playerid][pSkin] = 165;
- }
- if(listitem == 3) // FBI Uniforms
- {
- SetPlayerSkin(playerid, 294);
- PlayerInfo[playerid][pSkin] = 294;
- }
- if(listitem == 4) // FBI Uniforms
- {
- SetPlayerSkin(playerid, 120);
- PlayerInfo[playerid][pSkin] = 120;
- }
- if(listitem == 5) //FBI Uniforms
- {
- SetPlayerSkin(playerid, 285);
- PlayerInfo[playerid][pSkin] = 285;
- }
- if(listitem == 6) //FBI Uniforms
- {
- SetPlayerSkin(playerid, 141);
- PlayerInfo[playerid][pSkin] = 141;
- }
- }
- }
- if(dialogid == FDUTYMENU4)
- {
- if(response)
- {
- new skin = strval(inputtext);
- if(IsInvalidSkin(skin) || 274 <= skin <= 288 || skin == 165 || skin == 166 || skin == 71) {
- return ShowPlayerDialogEx(playerid, FDUTYMENU4, DIALOG_STYLE_INPUT, "Undercover","Invalid skin specified. Choose another.", "Select", "Cancel");
- }
- PlayerInfo[playerid][pSkin] = skin;
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- }
- }
- if(dialogid == FDUTYMENU5)
- {
- if(response)
- {
- new giveplayerid;
- new giveplayer[MAX_PLAYER_NAME];
- giveplayerid = ReturnUser(inputtext);
- //giveplayerid = strval(inputtext);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* You cleared the records and wanted points of %s.", GetPlayerNameEx(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Agent %s has cleared your records and wanted points.", GetPlayerNameEx(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Agent %s has cleared %s's records and wanted points.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- SendRadioMessage(1, RADIO, string);
- SendRadioMessage(2, RADIO, string);
- PlayerInfo[giveplayerid][pWantedLevel] = 0;
- SetPlayerToTeamColor(giveplayerid);
- SetPlayerWantedLevel(giveplayerid, 0);
- ClearCrime(giveplayerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
- }
- }
- }
- }
- else if(dialogid == DIALOG_CDEDIT)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- if(listitem == 0) // New Vehicle
- {
- format(string, sizeof(string),"Please type the model ID of the new vehicle.");
- ShowPlayerDialogEx(playerid,DIALOG_CDNEWVEH,DIALOG_STYLE_INPUT,"Warning:",string,"Ok","Cancel");
- }
- else if(listitem == 1) // My Vehicles
- {
- new vehicles;
- for(new i=0; i<MAX_DEALERSHIPVEHICLES; i++)
- {
- if(CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdVehicleModel][i] != 0)
- {
- vehicles++;
- format(string, sizeof(string), "Vehicle %d| Name: %s | Price: %d.",i+1,GetVehicleName(CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdVehicleId][i]),CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdVehicleCost][i]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- if(vehicles)
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDEDITCARS, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose a vehicle to edit:", "Edit", "Back");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD2, " This car dealership doesn't have any cars.");
- }
- }
- else if(listitem == 2) // Upgrade
- {
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue.", listitems,"Select","Cancel");
- }
- else if(listitem == 3) // Till
- {
- new listitems[] = "1 Withdraw\n2 Deposit";
- ShowPlayerDialogEx(playerid,DIALOG_CDTILL,DIALOG_STYLE_LIST,"Choose an item to continue.", listitems,"Select","Cancel");
- }
- }
- else
- {
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else if(dialogid == DIALOG_CDTILL)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- if(listitem == 0) // Withdraw
- {
- format(string, sizeof(string), "You have $%d in your till account.\n\n\tHow much money to withdraw?", CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill]);
- ShowPlayerDialogEx(playerid,DIALOG_CDWITHDRAW,DIALOG_STYLE_INPUT,"Withdraw", string,"Select","Cancel");
- }
- else if(listitem == 1) // Deposit
- {
- format(string, sizeof(string), "You have $%d in your till account.\n\n\tHow much money to deposit?", CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill]);
- ShowPlayerDialogEx(playerid,DIALOG_CDDEPOSIT,DIALOG_STYLE_INPUT,"Deposit", string,"Select","Cancel");
- }
- }
- else
- {
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else if(dialogid == DIALOG_CDWITHDRAW)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- if(IsNumeric(inputtext))
- {
- new money = strval(inputtext);
- if(CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill] < money)
- {
- format(string, sizeof(string), "You don't have that much in your till!\n\nYou have $%d in your till account.\n\n\tHow much money to withdraw?", CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill]);
- ShowPlayerDialogEx(playerid,DIALOG_CDWITHDRAW,DIALOG_STYLE_INPUT,"Withdraw", string,"Select","Cancel");
- return 1;
- }
- CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill] -= money;
- PlayerInfo[playerid][pCash] += money;
- format(string, sizeof(string), "You have successfully withdrawn $%d from your till, new balance: $%d", money, CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else
- {
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else if(dialogid == DIALOG_CDDEPOSIT)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- if(IsNumeric(inputtext))
- {
- new money = strval(inputtext);
- if(PlayerInfo[playerid][pCash] < money)
- {
- format(string, sizeof(string), "You don't have that much in your wallet!\n\nYou have $%d in your till account.\n\n\tHow much money to deposit?", CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill]);
- ShowPlayerDialogEx(playerid,DIALOG_CDDEPOSIT,DIALOG_STYLE_INPUT,"Deposit", string,"Select","Cancel");
- return 1;
- }
- CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill] += money;
- PlayerInfo[playerid][pCash] -= money;
- format(string, sizeof(string), "You have successfully deposited $%d to your till, new balance: $%d", money, CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdTill]);
- SendClientMessage(playerid, COLOR_GRAD2, string);
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else
- {
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else if(dialogid == DIALOG_CDUPGRADE)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- if(listitem == 0) // Vehicle Spawn
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Please stand where you want to have your brought vehicles spawn.");
- SendClientMessage(playerid, COLOR_GRAD2, " Once ready press the fire button.");
- SetPVarInt(playerid, "editingcdvehpos", 2);
- }
- if(listitem == 1) // Radius
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDRADIUS, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose the new radius:", "Edit", "Back");
- }
- else if(listitem == 2) // Dealership Name
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDNAME, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose the new name:", "Edit", "Back");
- }
- else if(listitem == 3) // Price
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDPRICE, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose the new price:", "Edit", "Back");
- }
- }
- else
- {
- SavecDealerships();
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else if(dialogid == DIALOG_CDRADIUS)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- new d;
- d = GetPVarInt(playerid, "editingcd");
- new Float:radius = floatstr(inputtext);
- new Float:radiusex = CarDealershipInfo[d][cdRadius];
- new test = floatround(radius), test1 = floatround(radiusex);
- if(CarDealershipInfo[d][cdRadius] > radius)
- {
- new cost = (test - test1) * (test1 * 1000);
- if(PlayerInfo[playerid][pCash] < cost)
- {
- format(string, sizeof(string), "ERROR: You do not have enough money for this upgrade ($%d).",cost);
- SendClientMessage(playerid, COLOR_GREY, string);
- return 1;
- }
- format(string, sizeof(string), " Car Dealership radius upgraded from %.1f to %.1f for $%d.",radiusex, radius, cost);
- SendClientMessage(playerid, COLOR_GREY, string);
- CarDealershipInfo[d][cdRadius] = radius;
- format(string,128,"Car Dealership %s\nOwner: %s\nID: %d", CarDealershipInfo[d][cdMessage], CarDealershipInfo[d][cdOwner], d);
- UpdateDynamic3DTextLabelText(CarDealershipInfo[d][cdTextLabel], COLOR_LIGHTBLUE, string);
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- SavecDealerships();
- }
- }
- else
- {
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- }
- }
- else if(dialogid == DIALOG_CDNAME)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- new d;
- d = GetPVarInt(playerid, "editingcd");
- if(!strlen(inputtext))
- {
- SendClientMessage(playerid, COLOR_LIGHTRED, "** You must type a name **");
- ShowPlayerDialogEx(playerid, DIALOG_CDNAME, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose the new name:", "Edit", "Back");
- return 1;
- }
- new cost = strlen(inputtext) * 50;
- format(string, sizeof(string), " Car Dealership name upgraded from %s to %s for $%d.", CarDealershipInfo[d][cdMessage], inputtext, cost);
- SendClientMessage(playerid, COLOR_GREY, string);
- strmid(CarDealershipInfo[d][cdMessage], inputtext, 0, strlen(inputtext), 255);
- format(string,128,"Car Dealership %s\nOwner: %s\nID: %d", CarDealershipInfo[d][cdMessage], CarDealershipInfo[d][cdOwner], d);
- UpdateDynamic3DTextLabelText(CarDealershipInfo[d][cdTextLabel], COLOR_LIGHTBLUE, string);
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- SavecDealerships();
- }
- else
- {
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- }
- }
- else if(dialogid == DIALOG_CDEDITCARS)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- new cdvid;
- if(IsNumeric(inputtext))
- {
- cdvid = strval(inputtext);
- if(CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdVehicleModel][cdvid-1])
- {
- SetPVarInt(playerid, "editingcdveh", cdvid-1);
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- }
- }
- }
- else
- {
- new listitems[] = "1 New Vehicle\n2 My Vehicles\n3 Upgrade\n4 Till";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDIT,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- }
- }
- else if(dialogid == DIALOG_CDEDITONE)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdveh") != -1)
- {
- if(listitem == 0) // Edit Model
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDEDITMODEL, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose the new model id:", "Edit", "Back");
- }
- else if(listitem == 1) // Edit Cost
- {
- ShowPlayerDialogEx(playerid, DIALOG_CDEDITCOST, DIALOG_STYLE_INPUT, "Car Dealership:", " Choose the new price of the car:", "Edit", "Back");
- }
- else if(listitem == 2) // Edit Park
- {
- PutPlayerInVehicle(playerid, CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdVehicleId][GetPVarInt(playerid, "editingcdveh")], 0);
- SendClientMessage(playerid, COLOR_GRAD2, " Please stand where you want to park the vehicle.");
- SendClientMessage(playerid, COLOR_GRAD2, " Once ready press the fire button.");
- SetPVarInt(playerid, "editingcdvehpos", 1);
- }
- else if(listitem == 3) // Delete Vehicle
- {
- format(string, sizeof(string), "Are you sure you want to delete this %s?\nNote: You will not get any refounds.",
- GetVehicleName(CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdVehicleId][GetPVarInt(playerid, "editingcdveh")]));
- ShowPlayerDialogEx(playerid,DIALOG_CDDELVEH,DIALOG_STYLE_MSGBOX,"Warning:",string,"Ok","Cancel");
- }
- }
- else
- {
- SavecDealerships();
- SetPVarInt(playerid, "editingcdveh", -1);
- }
- }
- else if(dialogid == DIALOG_CDEDITMODEL)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdveh") != -1)
- {
- new modelid, d, v;
- new text_info[128];
- d = GetPVarInt(playerid, "editingcd");
- v = GetPVarInt(playerid, "editingcdveh");
- if(IsNumeric(inputtext))
- {
- modelid = strval(inputtext);
- if(modelid < 400 || modelid > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611!"); return 1; }
- CarDealershipInfo[d][cdVehicleModel][v] = modelid;
- DestroyDynamic3DTextLabel(CarDealershipInfo[d][cdVehicleLabel][v]);
- DestroyVehicle(CarDealershipInfo[d][cdVehicleId][v]);
- VehicleRadioStation[CarDealershipInfo[d][cdVehicleId][v]] = 0;
- new carcreated;
- carcreated = CreateVehicle(CarDealershipInfo[d][cdVehicleModel][v], CarDealershipInfo[d][cdVehicleSpawnX][v], CarDealershipInfo[d][cdVehicleSpawnY][v], CarDealershipInfo[d][cdVehicleSpawnZ][v], CarDealershipInfo[d][cdVehicleSpawnAngle][v], 0, 0, 6);
- format(text_info, sizeof(text_info),"%s For Sale | Price: %d", GetVehicleName(carcreated), CarDealershipInfo[d][cdVehicleCost][v]);
- CarDealershipInfo[d][cdVehicleLabel][v] = CreateDynamic3DTextLabel(text_info,COLOR_LIGHTBLUE,0.0, 0.0, 0.0,8.0,INVALID_PLAYER_ID,carcreated);
- CarDealershipInfo[d][cdVehicleId][v] = carcreated;
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- SavecDealerships();
- }
- }
- else
- {
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- }
- }
- else if(dialogid == DIALOG_CDEDITCOST)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdveh") != -1)
- {
- new price, d, v;
- new text_info[128];
- d = GetPVarInt(playerid, "editingcd");
- v = GetPVarInt(playerid, "editingcdveh");
- if(IsNumeric(inputtext))
- {
- price = strval(inputtext);
- CarDealershipInfo[d][cdVehicleCost][v] = price;
- format(text_info, sizeof(text_info), "%s For Sale | Price: %d", GetVehicleName(CarDealershipInfo[d][cdVehicleId][v]), CarDealershipInfo[d][cdVehicleCost][v]);
- UpdateDynamic3DTextLabelText(CarDealershipInfo[d][cdVehicleLabel][v], COLOR_LIGHTBLUE, text_info);
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- SavecDealerships();
- }
- }
- else
- {
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- }
- }
- else if(dialogid == DIALOG_CDDELVEH)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdveh") != -1)
- {
- DestroyCarDealershipVehicle(GetPVarInt(playerid, "editingcd"), GetPVarInt(playerid, "editingcdveh"));
- SavecDealerships();
- }
- else
- {
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- }
- }
- else if(dialogid == DIALOG_CDEDITPARK)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdveh") != -1 && GetPVarInt(playerid, "editingcdvehpos") == 1 || GetPVarInt(playerid, "editingcdvehnew"))
- {
- new Float: x, Float: y, Float: z, Float: a;
- new d, v, text_info[128];
- d = GetPVarInt(playerid, "editingcd");
- v = GetPVarInt(playerid, "editingcdveh");
- GetVehiclePos(CarDealershipInfo[d][cdVehicleId][v], x, y, z);
- GetVehicleZAngle(CarDealershipInfo[d][cdVehicleId][v], a);
- if(IsPlayerInRangeOfPoint(playerid, CarDealershipInfo[d][cdRadius], CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]))
- {
- CarDealershipInfo[d][cdVehicleSpawnX][v] = x;
- CarDealershipInfo[d][cdVehicleSpawnY][v] = y;
- CarDealershipInfo[d][cdVehicleSpawnZ][v] = z;
- CarDealershipInfo[d][cdVehicleSpawnAngle][v] = a;
- SetPVarInt(playerid, "editingcdvehpos", 0);
- SetPVarInt(playerid, "editingcdvehnew", 0);
- DestroyDynamic3DTextLabel(CarDealershipInfo[d][cdVehicleLabel][v]);
- DestroyVehicle(CarDealershipInfo[d][cdVehicleId][v]);
- VehicleRadioStation[CarDealershipInfo[d][cdVehicleId][v]] = 0;
- new carcreated;
- carcreated = CreateVehicle(CarDealershipInfo[d][cdVehicleModel][v], CarDealershipInfo[d][cdVehicleSpawnX][v], CarDealershipInfo[d][cdVehicleSpawnY][v], CarDealershipInfo[d][cdVehicleSpawnZ][v], CarDealershipInfo[d][cdVehicleSpawnAngle][v], 0, 0, 6);
- format(text_info, sizeof(text_info), "%s For Sale | Price: %d", GetVehicleName(carcreated), CarDealershipInfo[d][cdVehicleCost][v]);
- CarDealershipInfo[d][cdVehicleLabel][v] = CreateDynamic3DTextLabel(text_info,COLOR_LIGHTBLUE,0.0, 0.0, 0.0,8.0,INVALID_PLAYER_ID,carcreated);
- CarDealershipInfo[d][cdVehicleId][v] = carcreated;
- TogglePlayerControllable(playerid, true);
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- SavecDealerships();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: you're out of this Car Dealership radius, please try again.");
- TogglePlayerControllable(playerid, true);
- }
- }
- else if(response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdvehpos") == 2)
- {
- new Float: x, Float: y, Float: z, Float: a;
- new d;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid, a);
- d = GetPVarInt(playerid, "editingcd");
- if(IsPlayerInRangeOfPoint(playerid, CarDealershipInfo[d][cdRadius], CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]))
- {
- CarDealershipInfo[d][cdVehicleSpawn][0] = x;
- CarDealershipInfo[d][cdVehicleSpawn][1] = y;
- CarDealershipInfo[d][cdVehicleSpawn][2] = z;
- CarDealershipInfo[d][cdVehicleSpawn][3] = a;
- SetPVarInt(playerid, "editingcdvehpos", 0);
- TogglePlayerControllable(playerid, true);
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- SavecDealerships();
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: you're out of this Car Dealership radius, please try again.");
- TogglePlayerControllable(playerid, true);
- }
- }
- else if(!response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdvehpos") == 1)
- {
- new listitems[] = "1 Edit Model\n2 Edit Cost\n3 Edit Park\n4 Delete Vehicle";
- ShowPlayerDialogEx(playerid,DIALOG_CDEDITONE,DIALOG_STYLE_LIST,"Car Dealership:", listitems,"Select","Cancel");
- TogglePlayerControllable(playerid, true);
- SetPVarInt(playerid, "editingcdvehpos", 0);
- }
- else if(!response && GetPVarInt(playerid, "editingcd") != -1 && GetPVarInt(playerid, "editingcdvehpos") == 2)
- {
- new listitems[] = "1 Vehicle Spawn\n2 Radius\n3 Dealership Name\n4 Price";
- ShowPlayerDialogEx(playerid,DIALOG_CDUPGRADE,DIALOG_STYLE_LIST,"Choose an item to continue", listitems,"Select","Cancel");
- TogglePlayerControllable(playerid, true);
- SetPVarInt(playerid, "editingcdvehpos", 0);
- }
- }
- else if(dialogid == DIALOG_CDNEWVEH)
- { // car dealership dialog
- if(response && GetPVarInt(playerid, "editingcd") != -1)
- {
- new modelid, d;
- new Float: x, Float: y, Float: z, Float: a;
- new text_info[128];
- d = GetPVarInt(playerid, "editingcd");
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid, a);
- if(!IsNumeric(inputtext)) return SendClientMessage(playerid, COLOR_GRAD1, "ERROR: Model ID must be numbers.");
- if(IsPlayerInRangeOfPoint(playerid, CarDealershipInfo[d][cdRadius], CarDealershipInfo[d][cdEntranceX], CarDealershipInfo[d][cdEntranceY], CarDealershipInfo[d][cdEntranceZ]))
- {
- modelid = strval(inputtext);
- if(modelid < 400 || modelid > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611!"); return 1; }
- new cdvehicleid = CreateCarDealershipVehicle(d, modelid, x, y, z, a, 1337);
- if(cdvehicleid == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Car couldn't be created.");
- }
- else
- {
- PutPlayerInVehicle(playerid, CarDealershipInfo[d][cdVehicleId][cdvehicleid], 0);
- format(text_info, sizeof(text_info), " Car Dealership Vehicle created with Vehicle ID %d.", cdvehicleid-1);
- SendClientMessage(playerid, COLOR_GRAD1, text_info);
- SendClientMessage(playerid, COLOR_GRAD2, " Please stand where you want to add your new vehicle.");
- SendClientMessage(playerid, COLOR_GRAD2, " Once ready press the fire button.");
- SetPVarInt(playerid, "editingcdvehnew", 1);
- SetPVarInt(playerid, "editingcdveh", cdvehicleid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: you're out of this Car Dealership radius, please try again.");
- TogglePlayerControllable(playerid, true);
- }
- }
- else
- {
- TogglePlayerControllable(playerid, true);
- SetPVarInt(playerid, "editingcd", -1);
- }
- }
- else if(dialogid == DIALOG_CDBUY)
- {
- // Account Eating Bug Fix
- if(!IsPlayerInAnyVehicle(playerid))
- {
- TogglePlayerControllable(playerid, 1);
- SendClientMessage(playerid,COLOR_GRAD2,"You need to be in the vehicle you wish to purchase.");
- return 1;
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- new v = GetCarDealershipVehicleId(vehicleid);
- new d = GetCarDealershipId(vehicleid);
- if(response)
- {
- if(CarDealershipInfo[d][cdVehicleSpawn][0] == 0.0 && CarDealershipInfo[d][cdVehicleSpawn][1] == 0.0 && CarDealershipInfo[d][cdVehicleSpawn][2] == 0.0)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "ERROR: The owner of this Car Dealership hasn't set the purchased vehicles spawn point.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(CarDealershipInfo[d][cdDonator] == 1 && PlayerInfo[playerid][pDonator] < 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "The vehicles in this dealership are only available for Ruby+ Donators.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(CarDealershipInfo[d][cdDonator] == 2 && PlayerInfo[playerid][pDonator] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "The vehicles in this dealership are only available for Sapphire+ Donators.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(CarDealershipInfo[d][cdDonator] == 3 && PlayerInfo[playerid][pDonator] < 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "The vehicles in this dealership are only available for Diamond+ Donators.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
-
- new playervehicleid = GetPlayerFreeVehicleId(playerid);
- new carsamount = GetPlayerVehicleCount(playerid);
- // (TEMPORARY - Howard NOTE) TempDonator not added yet
- if(PlayerInfo[playerid][pDonator] == 0 && carsamount >= 5) //PlayerInfo[playerid][pTempDonator] > 0) && carsamount >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, non-donator can only own 5 cars.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 1 && carsamount >= 7)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Ruby Donator can only own 7 cars.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 2 && carsamount >= 8)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Sapphire Donator can only own 8 cars.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 3 && carsamount >= 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Diamond Donator can only own 10 cars.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] >= 4 && carsamount >= 10)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars, Platinum+ VIP can only own 10 cars.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }*/
- if(playervehicleid == -1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can't have more cars.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 0 && VehicleSpawned[playerid] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can only have 1 vehicle spawned at a time as non-donator. Store that vehicle in order to purchase one.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 1 && VehicleSpawned[playerid] >= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can only have 2 vehicles spawned at a time as Ruby Donator. Store that vehicle in order to purchase one.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 2 && VehicleSpawned[playerid] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can only have 3 vehicles spawned at a time as Sapphire Donator. Store one vehicle in order to purchase one.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 3 && VehicleSpawned[playerid] >= 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can only have 4 vehicles spawned at a time as Diamond Donator. Store one vehicle in order to purchase one.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] == 4 && VehicleSpawned[playerid] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can only have 5 vehicles spawned at a time as Undefined Donator. Store one vehicle in order to purchase one.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 5 && VehicleSpawned[playerid] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: You can only have 5 vehicles spawned at a time as VIP Moderator. Store one vehicle in order to purchase one.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }*/
- if(PlayerInfo[playerid][pDonator] < 0 || PlayerInfo[playerid][pDonator] > 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "ERROR: Invalid Donator level.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- new randcolor1 = Random(0, 126);
- new randcolor2 = Random(0, 126);
- SetPlayerPos(playerid, CarDealershipInfo[d][cdVehicleSpawn][0], CarDealershipInfo[d][cdVehicleSpawn][1], CarDealershipInfo[d][cdVehicleSpawn][2]+2);
- TogglePlayerControllable(playerid, 1);
- new cost;
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- cost = CarDealershipInfo[d][cdVehicleCost][v];
- if(PlayerInfo[playerid][pCash] < CarDealershipInfo[d][cdVehicleCost][v])
- {
- SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You don't have enough money to buy this.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- return 1;
- }
- format(string, sizeof(string), " Thank you for buying at %s.", CarDealershipInfo[d][cdMessage]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerInfo[playerid][pCash] -= CarDealershipInfo[d][cdVehicleCost][v];
- CarDealershipInfo[d][cdTill] += (CarDealershipInfo[d][cdVehicleCost][v] * 40) / (100);
- }
- else
- {
- cost = (CarDealershipInfo[d][cdVehicleCost][v] * 80) / (100);
- if(PlayerInfo[playerid][pCash] < cost)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You don't have enough money to buy this.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- return 1;
- }
- if(AdminDuty[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You can't buy a vehicle while on-duty as admin.");
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- return 1;
- }
- format(string, sizeof(string), " Thank you for buying at %s.", CarDealershipInfo[d][cdMessage]);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- PlayerInfo[playerid][pCash] -= cost;
- CarDealershipInfo[d][cdTill] += cost;
- }
- new car = CreatePlayerVehicle(playerid, playervehicleid, CarDealershipInfo[d][cdVehicleModel][v], CarDealershipInfo[d][cdVehicleSpawn][0], CarDealershipInfo[d][cdVehicleSpawn][1], CarDealershipInfo[d][cdVehicleSpawn][2], CarDealershipInfo[d][cdVehicleSpawn][3], randcolor1, randcolor2, cost);
- SetTimerEx("PutPlayerInVeh", 2000, 0, "dd", playerid, car);
- SavecDealerships();
- }
- else
- {
- RemovePlayerFromVehicle(playerid);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(playerid, slx, sly, slz);
- SetPlayerPos(playerid, slx, sly, slz+1.2);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- }
- else if(dialogid == DIALOG_CDSELL)
- {
- if(response)
- {
- if(GetPVarInt(playerid, "editingcd") == -1) return 1;
- PlayerInfo[playerid][pCash] += (CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdPrice] / 2);
- SellCarDealership(GetPVarInt(playerid, "editingcd"));
- PlayerPlayMusic(playerid);
- format(string, sizeof(string), "Car Dealership successfully sold for %d.", CarDealershipInfo[GetPVarInt(playerid, "editingcd")][cdPrice] / 2);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- else
- {
- SetPVarInt(playerid, "editingcd", -1);
- return 1;
- }
- }
- if(dialogid == FIGHTMENU)
- {
- if(response)
- {
- if(GetPlayerCash(playerid) >= 5000)
- {
- if(listitem == 0)
- {
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_BOXING;
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
- SendClientMessage(playerid, COLOR_WHITE, "You're now using the boxing fighting style!");
- GivePlayerCash(playerid, -5000);
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_ELBOW;
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
- SendClientMessage(playerid, COLOR_WHITE, "You're now using the elbow fighting style!");
- GivePlayerCash(playerid, -5000);
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_KNEEHEAD;
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
- SendClientMessage(playerid, COLOR_WHITE, "You're now using the kneehead fighting style!");
- GivePlayerCash(playerid, -5000);
- }
- if(listitem == 3)
- {
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_KUNGFU;
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
- SendClientMessage(playerid, COLOR_WHITE, "You're now using the kungfu fighting style!");
- GivePlayerCash(playerid, -5000);
- }
- if(listitem == 4)
- {
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_GRABKICK;
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
- SendClientMessage(playerid, COLOR_WHITE, "You're now using the grabkick fighting style!");
- GivePlayerCash(playerid, -5000);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You do not have the cash for that!");
- return 1;
- }
- if(listitem == 5)
- {
- PlayerInfo[playerid][pFightStyle] = FIGHT_STYLE_NORMAL;
- SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
- SendClientMessage(playerid, COLOR_WHITE, "You're now using the normal fighting style!");
- return 1;
- }
- }
- }
- if(dialogid == REMOVEKEYS)
- {
- if(response)
- {
- if(PlayerVehicleInfo[playerid][listitem][pvId] == INVALID_PLAYER_VEHICLE_ID) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't remove the keys of a non-existent, impounded vehicle or stored vehicle.");
- return 1;
- }
- if(PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId] != PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId])
- {
- SendClientMessage(playerid, COLOR_GRAD2, "This player doesn't have the keys of this car.");
- return 1;
- }
- if(PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId] == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You have not given anyone the keys for this car.");
- return 1;
- }
- PlayerInfo[PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId]][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID;
- PlayerInfo[PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId]][pVehicleKeysFrom] = INVALID_PLAYER_ID;
- format(string, sizeof(string), "%s has taken the keys of their %s.", GetPlayerNameEx(playerid), GetVehicleName(PlayerVehicleInfo[playerid][listitem][pvId]));
- SendClientMessage(PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId], COLOR_GRAD2, string);
- format(string, sizeof(string), "You took the keys of your %s from %s.", GetVehicleName(PlayerVehicleInfo[playerid][listitem][pvId]),GetPlayerNameEx(PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId]));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- }
- }
- if(dialogid == GIVEKEYS)
- {
- if(response)
- {
- if(PlayerVehicleInfo[playerid][listitem][pvId] == INVALID_PLAYER_VEHICLE_ID) {
- SendClientMessage(playerid, COLOR_GRAD2, "You can't give out keys to a non-existent, impounded vehicle or stored vehicle.");
- GiveKeysTo[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "You already gave someone the keys of this car.");
- GiveKeysTo[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- if(PlayerInfo[GiveKeysTo[playerid]][pVehicleKeysFrom] != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "That player already has keys from a different car.");
- GiveKeysTo[playerid] = INVALID_PLAYER_ID;
- return 1;
- }
- PlayerVehicleInfo[playerid][listitem][pvAllowedPlayerId] = GiveKeysTo[playerid];
- PlayerInfo[GiveKeysTo[playerid]][pVehicleKeys] = listitem;
- PlayerInfo[GiveKeysTo[playerid]][pVehicleKeysFrom] = playerid;
- format(string, sizeof(string), "%s has given you the keys for their %s.", GetPlayerNameEx(playerid), GetVehicleName(PlayerVehicleInfo[playerid][listitem][pvId]));
- SendClientMessage(GiveKeysTo[playerid], COLOR_GRAD2, string);
- format(string, sizeof(string), "You gave %s the keys for your %s.", GetPlayerNameEx(GiveKeysTo[playerid]), GetVehicleName(PlayerVehicleInfo[playerid][listitem][pvId]));
- SendClientMessage(playerid, COLOR_GRAD2, string);
- GiveKeysTo[playerid] = INVALID_PLAYER_ID;
- }
- }
- if(dialogid == MPSPAYTICKETSCOP)
- {
- if(response)
- {
- new
- szMessage[128],
- iTargetID = GetPVarInt(playerid, "vRel");
- if(PlayerVehicleInfo[iTargetID][listitem][pvTicket]) {
- format(szMessage, sizeof(szMessage), "You have paid the $%d ticket on %s's %s.", PlayerVehicleInfo[iTargetID][listitem][pvTicket], GetPlayerNameEx(iTargetID), VehicleName[PlayerVehicleInfo[iTargetID][listitem][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_GRAD2, szMessage);
- format(szMessage, sizeof(szMessage), "%s has paid all tickets on your %s (%i).", GetPlayerNameEx(playerid), VehicleName[PlayerVehicleInfo[iTargetID][listitem][pvModelId] - 400], PlayerVehicleInfo[iTargetID][listitem][pvTicket]);
- SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);
- PlayerVehicleInfo[iTargetID][listitem][pvTicket] = 0;
- }
- else if(PlayerVehicleInfo[iTargetID][listitem][pvImpounded])
- {
- if(PlayerInfo[iTargetID][pDonator] == 0 && VehicleSpawned[iTargetID] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- if(PlayerInfo[iTargetID][pDonator] == 1 && VehicleSpawned[iTargetID] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- if(PlayerInfo[iTargetID][pDonator] == 2 && VehicleSpawned[iTargetID] >= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- if(PlayerInfo[iTargetID][pDonator] == 3 && VehicleSpawned[iTargetID] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- if(PlayerInfo[iTargetID][pDonator] == 4 && VehicleSpawned[iTargetID] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- if(PlayerInfo[iTargetID][pDonator] == 5 && VehicleSpawned[iTargetID] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- if(PlayerInfo[iTargetID][pDonator] < 0 || PlayerInfo[iTargetID][pDonator] > 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "That player has too many vehicles out of storage for this vehicle to be released.");
- return 1;
- }
- format(szMessage, sizeof(szMessage), "You have released %s's %s.", GetPlayerNameEx(iTargetID), VehicleName[PlayerVehicleInfo[iTargetID][listitem][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "%s has released your %s from the impound.", GetPlayerNameEx(playerid), VehicleName[PlayerVehicleInfo[iTargetID][listitem][pvModelId] - 400]);
- SendClientMessage(iTargetID, COLOR_LIGHTBLUE, szMessage);
- format(szMessage, sizeof(szMessage), "HQ: %s has released %s's %s from the impound.", GetPlayerNameEx(playerid), GetPlayerNameEx(iTargetID), VehicleName[PlayerVehicleInfo[iTargetID][listitem][pvModelId] - 400]);
- SendRadioMessage(PlayerInfo[playerid][pFaction], RADIO, szMessage);
- PlayerVehicleInfo[iTargetID][listitem][pvImpounded] = 0;
- PlayerVehicleInfo[playerid][listitem][pvSpawned] = 1;
- PlayerVehicleInfo[iTargetID][listitem][pvPosX] = 813.8251;
- PlayerVehicleInfo[iTargetID][listitem][pvPosY] = -601.5270;
- PlayerVehicleInfo[iTargetID][listitem][pvPosZ] = 16.0430;
- PlayerVehicleInfo[iTargetID][listitem][pvPosAngle] = 89.0223;
- PlayerVehicleInfo[iTargetID][listitem][pvTicket] = 0;
- VehicleSpawned[iTargetID]++;
- ++PlayerCars;
- PlayerVehicleInfo[iTargetID][listitem][pvId] = CreateVehicle(PlayerVehicleInfo[iTargetID][listitem][pvModelId], PlayerVehicleInfo[iTargetID][listitem][pvPosX], PlayerVehicleInfo[iTargetID][listitem][pvPosY], PlayerVehicleInfo[iTargetID][listitem][pvPosZ], PlayerVehicleInfo[iTargetID][listitem][pvPosAngle],PlayerVehicleInfo[iTargetID][listitem][pvColor1], PlayerVehicleInfo[iTargetID][listitem][pvColor2], -1);
- //VehicleFuel[PlayerVehicleInfo[iTargetID][listitem][pvId]] = PlayerVehicleInfo[iTargetID][listitem][pvFuel];
- if(PlayerVehicleInfo[iTargetID][listitem][pvLocked] == 1) LockPlayerVehicle(iTargetID, PlayerVehicleInfo[iTargetID][listitem][pvId], PlayerVehicleInfo[iTargetID][listitem][pvLock]);
- LoadPlayerVehicleMods(iTargetID, listitem);
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "This vehicle either does not exist, or does not need to be released or have its tickets paid.");
- }
- return 1;
- }
- if(dialogid == MPSPAYTICKETS)
- {
- if(response)
- {
- new
- szMessage[128];
- if(PlayerInfo[playerid][pWantedLevel] != 0)
- {
- format(szMessage, sizeof(szMessage), "%s has attempted to pay/release their vehicles with %i active warrant(s).", GetPlayerNameEx(playerid), PlayerInfo[playerid][pWantedLevel]);
- SendRadioMessage(1, DEPTRADIO, szMessage);
- SendRadioMessage(2, DEPTRADIO, szMessage);
- return SendClientMessage(playerid, COLOR_YELLOW, "The police has been warned that you're wanted, and are on their way.");
- }
- if(PlayerVehicleInfo[playerid][listitem][pvTicket]) {
- if(GetPlayerCash(playerid) < PlayerVehicleInfo[playerid][listitem][pvTicket]) {
- return SendClientMessage(playerid, COLOR_GRAD2, "You don't have enough money on you to pay the ticket.");
- }
- GivePlayerCash(playerid, -PlayerVehicleInfo[playerid][listitem][pvTicket]);
- format(szMessage, sizeof(szMessage), "You have paid the $%d ticket on your %s.", PlayerVehicleInfo[playerid][listitem][pvTicket], VehicleName[PlayerVehicleInfo[playerid][listitem][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_GRAD2, szMessage);
- PlayerVehicleInfo[playerid][listitem][pvTicket] = 0;
- }
- else if(PlayerVehicleInfo[playerid][listitem][pvImpounded]) {
- new iCost = (PlayerVehicleInfo[playerid][listitem][pvPrice] / 10) + PlayerVehicleInfo[playerid][listitem][pvTicket] + (PlayerInfo[playerid][pLevel] * 10);
- if(iCost > 10000)
- {
- iCost = 1000;
- }
- if(GetPlayerCash(playerid) < iCost) {
- return SendClientMessage(playerid, COLOR_GRAD2, "You don't have enough money on you.");
- }
- if(PlayerInfo[playerid][pDonator] == 0 && VehicleSpawned[playerid] >= 1)
- {
- SendClientMessage(playerid, COLOR_GREY, "As non-donator you can only have 1 vehicle spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 1 && VehicleSpawned[playerid] >= 2)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Ruby Donator you can only have 2 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 2 && VehicleSpawned[playerid] >= 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Sapphire Donator you can only have 3 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 3 && VehicleSpawned[playerid] >= 4)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Diamond Donator you can only have 4 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- /*if(PlayerInfo[playerid][pDonator] == 4 && VehicleSpawned[playerid] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "As Undefined Donator you can only have 5 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }
- if(PlayerInfo[playerid][pDonator] == 5 && VehicleSpawned[playerid] >= 5)
- {
- SendClientMessage(playerid, COLOR_GREY, "As VIP Moderator you can only have 5 vehicles spawned. You must store a vehicle in order to spawn another one.");
- return 1;
- }*/
- if(PlayerInfo[playerid][pDonator] < 0 || PlayerInfo[playerid][pDonator] > 3)
- {
- SendClientMessage(playerid, COLOR_GREY, "You have an invalid Donator level.");
- return 1;
- }
- format(szMessage, sizeof(szMessage), "You have released your %s for $%i.", VehicleName[PlayerVehicleInfo[playerid][listitem][pvModelId] - 400], iCost);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
- GivePlayerCash(playerid, -iCost);
- PlayerVehicleInfo[playerid][listitem][pvImpounded] = 0;
- PlayerVehicleInfo[playerid][listitem][pvSpawned] = 1;
- PlayerVehicleInfo[playerid][listitem][pvPosX] = 813.8251;
- PlayerVehicleInfo[playerid][listitem][pvPosY] = -601.5270;
- PlayerVehicleInfo[playerid][listitem][pvPosZ] = 16.0430;
- PlayerVehicleInfo[playerid][listitem][pvPosAngle] = 89.0223;
- PlayerVehicleInfo[playerid][listitem][pvTicket] = 0;
- VehicleSpawned[playerid]++;
- ++PlayerCars;
- PlayerVehicleInfo[playerid][listitem][pvId] = CreateVehicle(PlayerVehicleInfo[playerid][listitem][pvModelId], PlayerVehicleInfo[playerid][listitem][pvPosX], PlayerVehicleInfo[playerid][listitem][pvPosY], PlayerVehicleInfo[playerid][listitem][pvPosZ], PlayerVehicleInfo[playerid][listitem][pvPosAngle],PlayerVehicleInfo[playerid][listitem][pvColor1], PlayerVehicleInfo[playerid][listitem][pvColor2], -1);
- //VehicleFuel[PlayerVehicleInfo[playerid][listitem][pvId]] = PlayerVehicleInfo[playerid][listitem][pvFuel];
- if(PlayerVehicleInfo[playerid][listitem][pvLocked] == 1) LockPlayerVehicle(playerid, PlayerVehicleInfo[playerid][listitem][pvId], PlayerVehicleInfo[playerid][listitem][pvLock]);
- LoadPlayerVehicleMods(playerid, listitem);
- }
- else SendClientMessage(playerid, COLOR_GRAD2, "This vehicle either does not exist, or does not need to be released or have its tickets paid.");
- }
- return 1;
- }
- if(dialogid == GOTOPLAYERCAR)
- {
- if(response == 1)
- {
- for(new i = 0; i < MAX_PLAYERVEHICLES; i++)
- {
- if(listitem == i)
- {
- new Float: carPos[3], id = GetPVarInt(playerid, "playeraffectedcarTP");
- if(PlayerVehicleInfo[id][i][pvId] > INVALID_PLAYER_VEHICLE_ID)
- {
- GetVehiclePos(PlayerVehicleInfo[id][i][pvId], carPos[0], carPos[1], carPos[2]);
- SetPlayerVirtualWorld(playerid,GetVehicleVirtualWorld(PlayerVehicleInfo[id][i][pvId]));
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, carPos[0], carPos[1], carPos[2]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't teleport to an empty, disabled or impounded slot.");
- }
- }
- }
- }
- }
- if(dialogid == VEHICLESTORAGE && response) {
- if(PlayerVehicleInfo[playerid][listitem][pvSpawned])
- {
- new
- Float: vehiclehealth;
- GetVehicleHealth(PlayerVehicleInfo[playerid][listitem][pvId], vehiclehealth);
- if(vehiclehealth < 750)
- {
- SendClientMessage(playerid, COLOR_WHITE, "This vehicle is too damaged to be stored.");
- }
- else {
- --PlayerCars;
- VehicleSpawned[playerid]--;
- PlayerVehicleInfo[playerid][listitem][pvSpawned] = 0;
- DestroyVehicle(PlayerVehicleInfo[playerid][listitem][pvId]);
- VehicleRadioStation[PlayerVehicleInfo[playerid][listitem][pvId]] = 0;
- PlayerVehicleInfo[playerid][listitem][pvId] = INVALID_PLAYER_VEHICLE_ID;
- new vstring[128];
- format(vstring, sizeof(vstring), "You have stored your %s. The vehicle has been despawned.", VehicleName[PlayerVehicleInfo[playerid][listitem][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_WHITE, vstring);
- }
- }
- else if(PlayerVehicleInfo[playerid][listitem][pvModelId] == 0) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't spawn an non-existant vehicle.");
- }
- else if(PlayerVehicleInfo[playerid][listitem][pvImpounded]) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't spawn an impounded vehicle. If you wish to reclaim it, do so at the DMV in Dillimore.");
- }
- else if(PlayerVehicleInfo[playerid][listitem][pvDisabled] == 1) {
- SendClientMessage(playerid, COLOR_WHITE, "You can't spawn a disabled vehicle. It is disabled due to your Donator level (vehicle restrictions).");
- }
- else if(PlayerVehicleInfo[playerid][listitem][pvSpawned] == 0) {
- if(PlayerInfo[playerid][pDonator] == 0 && VehicleSpawned[playerid] >= 1) {
- SendClientMessage(playerid, COLOR_GREY, "As non-donator you can only have 1 vehicle spawned. You must store a vehicle in order to spawn another one.");
- }
- else if(PlayerInfo[playerid][pDonator] == 1 && VehicleSpawned[playerid] >= 2) {
- SendClientMessage(playerid, COLOR_GREY, "As Ruby Donator you can only have 2 vehicles spawned. You must store a vehicle in order to spawn another one.");
- }
- else if(PlayerInfo[playerid][pDonator] == 2 && VehicleSpawned[playerid] >= 3) {
- SendClientMessage(playerid, COLOR_GREY, "As Sapphire Donator you can only have 3 vehicles spawned. You must store a vehicle in order to spawn another one.");
- }
- else if(PlayerInfo[playerid][pDonator] == 3 && VehicleSpawned[playerid] >= 4) {
- SendClientMessage(playerid, COLOR_GREY, "As Diamond Donator you can only have 4 vehicles spawned. You must store a vehicle in order to spawn another one.");
- }
- /*else if(PlayerInfo[playerid][pDonator] == 4 && VehicleSpawned[playerid] >= 5) {
- SendClientMessage(playerid, COLOR_GREY, "As Undefined Donator you can only have 5 vehicles spawned. You must store a vehicle in order to spawn another one.");
- }
- else if(PlayerInfo[playerid][pDonator] == 5 && VehicleSpawned[playerid] >= 5){
- SendClientMessage(playerid, COLOR_GREY, "As VIP Moderator you can only have 5 vehicles spawned. You must store a vehicle in order to spawn another one.");
- }*/
- else if(!(0 <= PlayerInfo[playerid][pDonator] <= 3)) {
- SendClientMessage(playerid, COLOR_GREY, "You have an invalid Donator level.");
- }
- else {
- ++PlayerCars;
- VehicleSpawned[playerid]++;
- PlayerVehicleInfo[playerid][listitem][pvSpawned] = 1;
- PlayerVehicleInfo[playerid][listitem][pvId] = CreateVehicle(PlayerVehicleInfo[playerid][listitem][pvModelId], PlayerVehicleInfo[playerid][listitem][pvPosX], PlayerVehicleInfo[playerid][listitem][pvPosY], PlayerVehicleInfo[playerid][listitem][pvPosZ], PlayerVehicleInfo[playerid][listitem][pvPosAngle],PlayerVehicleInfo[playerid][listitem][pvColor1], PlayerVehicleInfo[playerid][listitem][pvColor2], -1);
- //VehicleFuel[PlayerVehicleInfo[playerid][listitem][pvId]] = PlayerVehicleInfo[playerid][listitem][pvFuel];
- if(PlayerVehicleInfo[playerid][listitem][pvLocked] == 1) LockPlayerVehicle(playerid, PlayerVehicleInfo[playerid][listitem][pvId], PlayerVehicleInfo[playerid][listitem][pvLock]);
- if(strlen(PlayerVehicleInfo[playerid][listitem][pvNumberPlate]) > 0)
- SetVehicleNumberPlate(PlayerVehicleInfo[playerid][listitem][pvId], PlayerVehicleInfo[playerid][listitem][pvNumberPlate]);
- LoadPlayerVehicleMods(playerid, listitem);
- new vstring[128];
- format(vstring, sizeof(vstring), "You have taken your %s out of storage. The vehicle has been spawned at the last parking location.", VehicleName[PlayerVehicleInfo[playerid][listitem][pvModelId] - 400]);
- SendClientMessage(playerid, COLOR_WHITE, vstring);
- }
- }
- else SendClientMessage(playerid, COLOR_WHITE, "You can't spawn a non-existent vehicle.");
- }
- if(dialogid == TRACKCAR && response) {
- new Float: carPos[3];
- if(PlayerVehicleInfo[playerid][listitem][pvId] > INVALID_PLAYER_VEHICLE_ID)
- {
- GetVehiclePos(PlayerVehicleInfo[playerid][listitem][pvId], carPos[0], carPos[1], carPos[2]);
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first with /killcheckpoint (you either have material packages, or another existing checkpoint).");
- }
- else
- {
- SetPVarInt(playerid, "TrackCar", 1);
- new zone[MAX_ZONE_NAME];
- Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
- format(string, sizeof(string), "Your vehicle is located in %s.", zone);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0);
- SendClientMessage(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your vehicle!");
- }
- }
- else if(PlayerVehicleInfo[playerid][listitem][pvImpounded]) SendClientMessage(playerid, COLOR_WHITE, "You can't track an impounded vehicle. If you wish to reclaim it, do so at the DMV in Dillimore.");
- else if(PlayerVehicleInfo[playerid][listitem][pvDisabled] == 1) SendClientMessage(playerid, COLOR_WHITE, "You can't track a disabled vehicle. It is disabled due to your Donator level (vehicle restrictions).");
- else if(PlayerVehicleInfo[playerid][listitem][pvSpawned] == 0 && PlayerVehicleInfo[playerid][listitem][pvModelId] != 0) SendClientMessage(playerid, COLOR_WHITE, "You can't track a stored vehicle. Use /vstorage to spawn it.");
- else SendClientMessage(playerid, COLOR_WHITE, "You can't track a non-existent vehicle.");
- }
- else if(dialogid == GTRACKCAR)
- {
- if(response == 1)
- {
- for(new i = 0; i < MAX_GANG_VEHICLES; i++)
- {
- if(listitem == i)
- {
- new Float: carPos[3];
- new Family = PlayerInfo[playerid][pGang];
- if(FamilyVehicleInfo[Family][i][fvId] != INVALID_VEHICLE_ID)
- {
- GetVehiclePos(FamilyVehicleInfo[Family][i][fvId], carPos[0], carPos[1], carPos[2]);
- if(CheckPointCheck(playerid))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first with /killcheckpoint (you either have material packages, or another existing checkpoint).");
- }
- else
- {
- SetPVarInt(playerid, "TrackCar", 1);
- new zone[MAX_ZONE_NAME];
- Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
- format(string, sizeof(string), "Your vehicle is located in %s.", zone);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0);
- SendClientMessage(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your car!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You can't track a vehicle in a empty slot.");
- }
- }
- }
- }
- }
- if(dialogid == UNMODCARMENU)
- {
- if(response)
- {
- new count = GetPVarInt(playerid, "modCount");
- new d;
- for(new z = 0 ; z < MAX_PLAYERVEHICLES; z++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][z][pvId]))
- {
- d = z;
- break;
- }
- }
- for (new i = 0; i < count; i++)
- {
- if(listitem == i)
- {
- format(string, sizeof(string), "partList%i", i);
- new partID = GetPVarInt(playerid, string);
- if(partID == 999)
- {
- for(new f = 0 ; f < MAX_MODS; f++)
- {
- SetPVarInt(playerid, "unMod", 1);
- RemoveVehicleComponent(PlayerVehicleInfo[playerid][d][pvId], GetVehicleComponentInSlot(PlayerVehicleInfo[playerid][d][pvId], f));
- PlayerVehicleInfo[playerid][d][pvMods][f] = 0;
- }
- SendClientMessage(playerid, COLOR_WHITE, "All modifications have been removed from your vehicle.");
- return 1;
- }
- SetPVarInt(playerid, "unMod", 1);
- RemoveVehicleComponent(GetPlayerVehicleID(playerid), partID);
- PlayerVehicleInfo[playerid][d][pvMods][GetVehicleComponentType(partID)] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "The modification you requested has been removed.");
- return 1;
- }
- }
- }
- }
- else if(dialogid == DIALOG_CDLOCKBUY)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerVehicleCount(playerid) != 0)
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Not enough money!");
- return 1;
- }
- SetPVarInt(playerid, "lockmenu", 1);
- for(new i=0; i<MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
- {
- format(string, sizeof(string), "Vehicle %d| Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- ShowPlayerDialogEx(playerid, DIALOG_CDLOCKMENU, DIALOG_STYLE_INPUT, "24-7;"," Select a vehicle you wish to install this on:", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have any cars - where we can install this item?");
- return 1;
- }
- }
- if(listitem == 1)
- {
- if(GetPlayerVehicleCount(playerid) != 0)
- {
- if(PlayerInfo[playerid][pCash] < 5000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Not enough money!");
- return 1;
- }
- SetPVarInt(playerid, "lockmenu", 2);
- for(new i=0; i<MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
- {
- format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- ShowPlayerDialogEx(playerid, DIALOG_CDLOCKMENU, DIALOG_STYLE_INPUT, "24-7;"," Select a vehicle you wish to install this on:", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have any cars - where we can install this item?");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_CDLOCKMENU)
- {
- if(response)
- {
- if(GetPVarInt(playerid, "lockmenu") == 1)
- {
- new pvid;
- if(IsNumeric(inputtext))
- {
- pvid = strval(inputtext)-1;
- if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- if(PlayerVehicleInfo[playerid][pvid][pvLock] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- format(string, sizeof(string), " You have purchased an alarm lock!");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can now use /pvlock to lock your car.");
- PlayerInfo[playerid][pCash] -= 1000;
- PlayerVehicleInfo[playerid][pvid][pvLock] = 1;
- SetPVarInt(playerid, "lockmenu", 0);
- }
- }
- else if(GetPVarInt(playerid, "lockmenu") == 2)
- {
- new pvid;
- if(IsNumeric(inputtext))
- {
- pvid = strval(inputtext)-1;
- if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- if(PlayerVehicleInfo[playerid][pvid][pvLock] == 2)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- format(string, sizeof(string), " You have Purchased an industrial lock!");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can now use /pvlock to lock your car.");
- PlayerInfo[playerid][pCash] -= 5000;
- PlayerVehicleInfo[playerid][pvid][pvLock] = 2;
- SetPVarInt(playerid, "lockmenu", 0);
- }
- }
- }
- }
- if(dialogid == 7483) // VIP Menu
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, 7487, DIALOG_STYLE_LIST, "{AAC5E3}Choose a job", "{FFFFFF}Detective\nLawyer\nWhore\nDrug Dealer\nCar Mechanic\nBodyguard\nArms Dealer\nBoxer\nDrug Smuggler\nTaxi Driver\nCraftsman\nBartender\nTrucker\nPizza Boy\nGarbageman\nMiner", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pDonator] < 1)
- {
- ShowPlayerDialogEx(playerid, 7485, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- }
- else
- {
- ShowModelSelectionMenu(playerid, skinlist, "Donator Skins");
- }
- }
- if(listitem == 2)
- {
- ShowPlayerDialogEx(playerid, 7484, DIALOG_STYLE_LIST, "{AAC5E3}Black Market", "{FFFFFF}Deagle ($1,000) \nSpas-12 ($2,750) \nM4 ($1,750) \nKevlar Vest ($350) \nFirst aid kit ($250) \nSniper ($3,250) \nFull Set ($8,750) ", "OK", "Cancel");
- }
- if(listitem == 3)
- {
- ShowPlayerDialogEx(playerid, 7486, DIALOG_STYLE_MSGBOX, "{AAC5E3}Donator Toys", "{FFFFFF}Welcome to the donator toys locker!","Continue", "Cancel");
- }
- if(listitem == 4)
- {
- PlayerInfo[playerid][pSpawnMC] = 1;
- SendClientMessageEx(playerid, COLOR_LIGHTSLATEGRAY, "Donator: You will now respawn at the Maximus Club instead.");
- }
-
- }
- }
- if(dialogid == 7484)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerCash(playerid) >= 1000)
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerCash(playerid, -1000);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a deagle for $1,000.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 1)
- {
- if(GetPlayerCash(playerid) >= 2750)
- {
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerCash(playerid, -2750);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a SPAS-12 for $2,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 2)
- {
- if(GetPlayerCash(playerid) >= 1750)
- {
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerCash(playerid, -1750);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a M4 for $1,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 3)
- {
- if(GetPlayerCash(playerid) >= 350)
- {
- SetPlayerArmourEx(playerid, 100);
- GivePlayerCash(playerid, -350);
- SCM(playerid, -1, "{AAC5E3}[DONATOR ARMOR]{FFFFFF}You have bought a Kevlar Vest for $350.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 4)
- {
- if(GetPlayerCash(playerid) >= 250)
- {
- SetPlayerHealth(playerid, 100);
- GivePlayerCash(playerid, -250);
- SCM(playerid, -1, "{AAC5E3}[DONATOR HEALTH]{FFFFFF}You have bought a First aid kit for $250.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 5)
- {
- if(GetPlayerCash(playerid) >= 3250)
- {
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerCash(playerid, -3250);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a Sniper for $3,250.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 6)
- {
- if(GetPlayerCash(playerid) >= 8750)
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerCash(playerid, -8750);
- SCM(playerid, -1, "{AAC5E3}[DONATOR WEAPON]{FFFFFF}You have bought a Full Set Weapon for $8,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- }
- }
- if(dialogid == 7485) {
- new skinid = strval(inputtext);
- if(!response)
- return 1;
- if(IsValidSkin(skinid) == 0 && PlayerInfo[playerid][pDonator] < 1) {
- SendClientMessage(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- } else {
- if(GetPlayerCash(playerid) < 250 && PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't afford these clothes!");
- if(PlayerInfo[playerid][pDonator] > 0 && IsInvalidSkin(skinid)) {
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes are free for donators.", "Buy", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin ID, try again.");
- }
- if(PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pDonator] == 0) {
- GivePlayerCash(playerid, -250);
- GameTextForPlayer(playerid, "~g~Skin purchased! ~n~ ~r~- $250", 2000, 1);
- } else {
- GameTextForPlayer(playerid, "~g~Skin changed!", 2000, 1);
- }
- PlayerInfo[playerid][pSkin] = skinid;
- SetPlayerSkin(playerid, skinid);
- }
- return 1;
- }
- if((dialogid == 7486) && response)
- {
- if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Sapphire Donator +");
- new stringg[512];
- for(new x;x<MAX_PLAYERTOYS;x++)
- {
- new name[24] = "None";
- for(new i;i<sizeof(HoldingObjectsAll);i++)
- {
- if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
- {
- format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
- }
- }
- format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
- }
- ShowPlayerDialogEx(playerid, BUYTOYSGOLD2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
- }
- if(dialogid == 7487)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Detective, type /accept job.");
- GettingJob[playerid] = 1;
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Lawyer, type /accept job.");
- GettingJob[playerid] = 2;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Whore, type /accept job.");
- GettingJob[playerid] = 3;
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Drugs Dealer, type /accept job.");
- GettingJob[playerid] = 4;
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Car Mechanic, type /accept job.");
- GettingJob[playerid] = 7;
- }
- if(listitem == 5)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bodyguard, type /accept job.");
- GettingJob[playerid] = 8;
- }
- if(listitem == 6)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Arms Dealer, type /accept job.");
- GettingJob[playerid] = 9;
- }
- if(listitem == 7)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Boxer, type /accept job.");
- GettingJob[playerid] = 12;
- }
- if(listitem == 8)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Drug Smuggler, type /accept job.");
- GettingJob[playerid] = 14;
- }
- if(listitem == 9)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Taxi Driver, type /accept job.");
- GettingJob[playerid] = 17;
- }
- if(listitem == 10)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Craftsman, type /accept job.");
- GettingJob[playerid] = 18;
- }
- if(listitem == 11)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Bartender, type /accept job.");
- GettingJob[playerid] = 19;
- }
- if(listitem == 12)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Trucker, type /accept job.");
- GettingJob[playerid] = 20;
- }
- if(listitem == 13)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Pizza Boy, type /accept job.");
- GettingJob[playerid] = 21;
- }
- if(listitem == 14)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Garbageman, type /accept job.");
- GettingJob[playerid] = 22;
- }
- if(listitem == 15)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you're sure to become a Miner, type /accept job.");
- GettingJob[playerid] = 23;
- }
- }
- }
- if(dialogid == 5510) // GMA Menu
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialogEx(playerid, 7488, DIALOG_STYLE_LIST, "GMA Duty", "Duty", "OK", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialogEx(playerid, 7489, DIALOG_STYLE_LIST, "GMA Guns", "Deagle ($1,000) \nSpas-12 ($2,750) \nM4 ($1,750) \nKevlar Vest ($350) \nFirst aid kit ($250) \nSniper ($3,250) \nFull Set ($8,750) ", "OK", "Cancel");
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pLevel] < 1)
- {
- ShowPlayerDialogEx(playerid, 7490, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- }
- else
- {
- ShowModelSelectionMenu(playerid, skinlist, "GMA Skins");
- }
- }
- }
- }
- if(dialogid == 7488)
- {
- if(response)
- {
- if(listitem == 0) // LSPD Duty
- {
- if(PlayerInfo[playerid][pDuty]==0)
- {
- format(string, sizeof(string), "* Journalist %s takes a badge and a gun from their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_NEWS_COLOR);
- GivePlayerValidWeapon(playerid, 24, 99999);
- GivePlayerValidWeapon(playerid, 41, 99999);
- GivePlayerValidWeapon(playerid, 3, 99999);
- OnDuty[playerid] = 1;
- PlayerInfo[playerid][pDuty] = 1;
- //ShowPlayerDialogEx(playerid, DUTY_OPTIONS, DIALOG_STYLE_LIST, "Duty Options","Public\nUndercover", "Select", "Cancel");
- }
- else if(PlayerInfo[playerid][pDuty]==1)
- {
- format(string, sizeof(string), "* Journalist %s places their badge and gun in their locker.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- SetPlayerArmourEx(playerid, 0.0);
- OnDuty[playerid] = 0;
- PlayerInfo[playerid][pDuty] = 0;
- }
- }
- }
- }
- if(dialogid == 7489)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerCash(playerid) >= 1000)
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerCash(playerid, -1000);
- SCM(playerid, -1, "You have bought a deagle for $1,000.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 1)
- {
- if(GetPlayerCash(playerid) >= 2750)
- {
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerCash(playerid, -2750);
- SCM(playerid, -1, "You have bought a SPAS-12 for $2,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 2)
- {
- if(GetPlayerCash(playerid) >= 1750)
- {
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerCash(playerid, -1750);
- SCM(playerid, -1, "You have bought a M4 for $1,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 3)
- {
- if(GetPlayerCash(playerid) >= 0)
- {
- SetPlayerArmourEx(playerid, 100);
- GivePlayerCash(playerid, -0);
- SCM(playerid, -1, "You have bought a Kevlar Vest for free.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 4)
- {
- if(GetPlayerCash(playerid) >= 0)
- {
- SetPlayerHealth(playerid, 100);
- GivePlayerCash(playerid, -0);
- SCM(playerid, -1, "You have bought a First aid kit for free.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 5)
- {
- if(GetPlayerCash(playerid) >= 3250)
- {
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerCash(playerid, -3250);
- SCM(playerid, -1, "You have bought a Sniper for $3,250.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- else if(listitem == 6)
- {
- if(GetPlayerCash(playerid) >= 8750)
- {
- GivePlayerValidWeapon(playerid, 24, 60000);
- GivePlayerValidWeapon(playerid, 27, 60000);
- GivePlayerValidWeapon(playerid, 31, 60000);
- GivePlayerValidWeapon(playerid, 34, 60000);
- GivePlayerCash(playerid, -8750);
- SCM(playerid, -1, "You have bought a Full Set Weapon for $8,750.");
- }
- else return SCM(playerid, -1, "You don't have cash.");
- }
- }
- }
- if(dialogid == 7490) {
- new skinid = strval(inputtext);
- if(!response)
- return 1;
- if(IsValidSkin(skinid) == 0 && PlayerInfo[playerid][pDonator] < 1) {
- SendClientMessage(playerid, COLOR_GREY, "That skin ID is either invalid or restricted to faction or family!");
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes cost $250.", "Buy", "Cancel");
- } else {
- if(GetPlayerCash(playerid) < 250 && PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0)
- return SendClientMessage(playerid, COLOR_GRAD2, "You can't afford these clothes!");
- if(PlayerInfo[playerid][pDonator] > 0 && IsInvalidSkin(skinid)) {
- ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Skin Changes are free for donators.", "Buy", "Cancel");
- return SendClientMessage(playerid, COLOR_GREY, "Invalid skin ID, try again.");
- }
- if(PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pDonator] == 0) {
- GivePlayerCash(playerid, -250);
- GameTextForPlayer(playerid, "~g~Skin purchased! ~n~ ~r~- $250", 2000, 1);
- } else {
- GameTextForPlayer(playerid, "~g~Skin changed!", 2000, 1);
- }
- PlayerInfo[playerid][pSkin] = skinid;
- SetPlayerSkin(playerid, skinid);
- }
- return 1;
- }
- else if(dialogid == DIALOG_CDGLOCKBUY)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetGangVehicleCount(PlayerInfo[playerid][pGang]) != 0)
- {
- if(PlayerInfo[playerid][pCash] < 1000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Not enough money!");
- return 1;
- }
- SetPVarInt(playerid, "lockmenu", 1);
- for(new i=0; i<MAX_GANG_VEHICLES; i++)
- {
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvId] != INVALID_VEHICLE_ID)
- {
- format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvId]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- ShowPlayerDialogEx(playerid, DIALOG_CDGLOCKMENU, DIALOG_STYLE_INPUT, "24-7;"," Select a vehicle you wish to install this on:", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have any cars - where can we install this item?");
- return 1;
- }
- }
- if(listitem == 1)
- {
- if(GetGangVehicleCount(PlayerInfo[playerid][pGang]) != 0)
- {
- if(PlayerInfo[playerid][pCash] < 5000)
- {
- SendClientMessage(playerid, COLOR_GRAD2, " Not enough money!");
- return 1;
- }
- SetPVarInt(playerid, "lockmenu", 2);
- for(new i=0; i<MAX_GANG_VEHICLES; i++)
- {
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvId] != INVALID_VEHICLE_ID)
- {
- format(string, sizeof(string), "Vehicle %d| Name: %s.",i+1,GetVehicleName(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][i][fvId]));
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- }
- ShowPlayerDialogEx(playerid, DIALOG_CDGLOCKMENU, DIALOG_STYLE_INPUT, "24-7;"," Select a vehicle you wish to install this on:", "Select", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You don't have any cars - where can we install this item?");
- return 1;
- }
- }
- }
- }
- if(dialogid == DIALOG_CDGLOCKMENU)
- {
- if(response)
- {
- if(GetPVarInt(playerid, "lockmenu") == 1)
- {
- new fvid;
- if(IsNumeric(inputtext))
- {
- fvid = strval(inputtext)-1;
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][fvid][fvId] == INVALID_VEHICLE_ID)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][fvid][fvLock] == 1)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- format(string, sizeof(string), " You have purchased an alarm lock!");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can now use /gvlock to lock your family car.");
- PlayerInfo[playerid][pCash] -= 1000;
- FamilyVehicleInfo[PlayerInfo[playerid][pGang]][fvid][fvLock] = 1;
- SetPVarInt(playerid, "lockmenu", 0);
- }
- }
- else if(GetPVarInt(playerid, "lockmenu") == 2)
- {
- new fvid;
- if(IsNumeric(inputtext))
- {
- fvid = strval(inputtext)-1;
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][fvid][fvId] == 0)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- if(FamilyVehicleInfo[PlayerInfo[playerid][pGang]][fvid][fvLock] == 2)
- {
- SendClientMessage(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
- SetPVarInt(playerid, "lockmenu", 0);
- return 1;
- }
- format(string, sizeof(string), " You have Purchased an industrial lock!");
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_YELLOW, "HINT: You can now use /gvlock to lock your family car.");
- PlayerInfo[playerid][pCash] -= 5000;
- FamilyVehicleInfo[PlayerInfo[playerid][pGang]][fvid][fvLock] = 2;
- SetPVarInt(playerid, "lockmenu", 0);
- }
- }
- }
- }
- else if(dialogid == DOORLOCK)
- {
- if(response == 1)
- {
- new i = GetPVarInt(playerid, "Door");
- if(isnull(inputtext))
- {
- SendClientMessage(playerid, COLOR_GREY, "You did not enter anything");
- return 1;
- }
- if(strlen(inputtext) > 24)
- {
- SendClientMessage(playerid, COLOR_GREY, "The password can't be greater than 24 characters.");
- return 1;
- }
- if(strcmp(inputtext, DDoorsInfo[i][ddPass], true) == 0)
- {
- if(DDoorsInfo[i][ddLocked] == 0)
- {
- DDoorsInfo[i][ddLocked] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "Password accepted, doors locked.");
- }
- else
- {
- DDoorsInfo[i][ddLocked] = 0;
- SendClientMessage(playerid, COLOR_WHITE, "Password accepted, doors unlocked.");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "Password declined.");
- }
- }
- else
- {
- return 1;
- }
- }
- else if(dialogid == DRINKLISTDIALOG)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPVarString(playerid, "DrinkName", "Beer");
- SetPVarInt(playerid, "DrinkPrice", 60);
- SetPVarInt(playerid, "DrinkSpecialAction", SPECIAL_ACTION_DRINK_BEER);
- }
- case 1:
- {
- SetPVarString(playerid, "DrinkName", "Vodka");
- SetPVarInt(playerid, "DrinkPrice", 100);
- SetPVarInt(playerid, "DrinkSpecialAction", SPECIAL_ACTION_DRINK_WINE);
- }
- case 2:
- {
- SetPVarString(playerid, "DrinkName", "Whiskey");
- SetPVarInt(playerid, "DrinkPrice", 100);
- SetPVarInt(playerid, "DrinkSpecialAction", SPECIAL_ACTION_DRINK_WINE);
- }
- case 3:
- {
- SetPVarString(playerid, "DrinkName", "Water");
- SetPVarInt(playerid, "DrinkPrice", 20);
- SetPVarInt(playerid, "DrinkSpecialAction", SPECIAL_ACTION_DRINK_SPRUNK);
- }
- case 4:
- {
- SetPVarString(playerid, "DrinkName", "Soda");
- SetPVarInt(playerid, "DrinkPrice", 20);
- SetPVarInt(playerid, "DrinkSpecialAction", SPECIAL_ACTION_DRINK_SPRUNK);
- }
- }
- if(GetPlayerCash(playerid) >= GetPVarInt(playerid, "DrinkPrice"))
- {
- new drinkname[32];
- GetPVarString(playerid, "DrinkName", drinkname, sizeof(drinkname));
- new drinkprice = GetPVarInt(playerid, "DrinkPrice");
- new dspecialaction = GetPVarInt(playerid, "DrinkSpecialAction");
- format(string, sizeof(string), "You have asked the bartender for a drink of %s for $%d. Do you want to tip the bartender?", drinkname, drinkprice);
- ShowPlayerDialogEx(playerid, DRINKDIALOG, DIALOG_STYLE_MSGBOX, "Drink Purchase", string, "Yes", "No");
- format(string, sizeof(string), "* %s pours %s a %s and hands it to them.", GetPlayerNameEx(DrinkOffer[playerid]), GetPlayerNameEx(playerid), drinkname);
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "* You pour %s a %s, they slide you the money. ($%d)", GetPlayerNameEx(playerid), drinkname, drinkprice);
- SendClientMessage(DrinkOffer[playerid], COLOR_LIGHTBLUE, string);
- GivePlayerCash(DrinkOffer[playerid], drinkprice);
- GivePlayerCash(playerid, -drinkprice);
- SetPlayerSpecialAction(playerid, dspecialaction);
- SetPVarInt(playerid, "DrinkCooledDown", 1);
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(DrinkOffer[playerid], ipex, sizeof(ipex));
- DrinkWarn[playerid][DrinkOffer[playerid]] += drinkprice;
- if(DrinkWarn[playerid][DrinkOffer[playerid]] >= 2500 && (PlayerInfo[DrinkOffer[playerid]][pLevel] <= 3 || PlayerInfo[DrinkOffer[playerid]][pLevel] <= 3))
- {
- format(string, sizeof(string), "%s (IP:%s) has tipped %s (IP:%s) $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(DrinkOffer[playerid]), ipex, DrinkWarn[playerid][DrinkOffer[playerid]]);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You don't have enough money for this drink!");
- }
- }
- else
- {
- DrinkOffer[playerid] = INVALID_PLAYER_ID;
- }
- }
- else if(dialogid == DRINKDIALOG)
- {
- if(response)
- {
- ShowPlayerDialogEx(playerid, TIPDIALOG, DIALOG_STYLE_INPUT, "Tipping the Bartender", "How much would you like to tip the bartender for his service?", "OK", "Cancel");
- }
- else
- {
- DrinkOffer[playerid] = INVALID_PLAYER_ID;
- }
- }
- else if(dialogid == TIPDIALOG)
- {
- if(response)
- {
- if(GetPlayerCash(playerid) >= strval(inputtext))
- {
- if(strval(inputtext) < 0 || strval(inputtext) > 1000)
- {
- return ShowPlayerDialogEx(playerid, TIPDIALOG, DIALOG_STYLE_INPUT, "Tipping the Bartender", "Must be above $0 and below $1000.\nHow much would you like to tip the bartender for his service?", "OK", "Cancel");
- }
- format(string, sizeof(string), "** %s gives %s a tip for his service.", GetPlayerNameEx(playerid), GetPlayerNameEx(DrinkOffer[playerid]));
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- format(string, sizeof(string), "* %s has given you a tip of $%d for your service.", GetPlayerNameEx(playerid), strval(inputtext));
- SendClientMessage(DrinkOffer[playerid], COLOR_LIGHTBLUE, string);
- GivePlayerCash(DrinkOffer[playerid], strval(inputtext));
- GivePlayerCash(playerid, -strval(inputtext));
- new ip[32], ipex[32];
- GetPlayerIp(playerid, ip, sizeof(ip));
- GetPlayerIp(DrinkOffer[playerid], ipex, sizeof(ipex));
- DrinkWarn[playerid][DrinkOffer[playerid]] += strval(inputtext);
- if(DrinkWarn[playerid][DrinkOffer[playerid]] >= 2500 && (PlayerInfo[DrinkOffer[playerid]][pLevel] <= 3 || PlayerInfo[playerid][pLevel] <= 3))
- {
- format(string, sizeof(string), "%s (IP:%s) has tipped %s (IP:%s) $%d in this session.", GetPlayerNameEx(playerid), ip, GetPlayerNameEx(DrinkOffer[playerid]), ipex, DrinkWarn[playerid][DrinkOffer[playerid]]);
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- DrinkOffer[playerid] = INVALID_PLAYER_ID;
- }
- }
- else
- {
- DrinkOffer[playerid] = INVALID_PLAYER_ID;
- }
- }
- else if(dialogid == QUIZCREATE1)
- {
- if(response)
- {
- if(!isnull(inputtext))
- {
- format(question, sizeof(question), "%s", inputtext);
- ShowPlayerDialogEx(playerid, QUIZCREATE2, DIALOG_STYLE_INPUT, "Create a quiz!", "Input the quiz answer", "Next", "Cancel");
- }
- else
- {
- ShowPlayerDialogEx(playerid, QUIZCREATE1, DIALOG_STYLE_INPUT, "Create a quiz!", "ERROR!\nInput the quiz question", "Next", "Cancel");
- }
- }
- }
- else if(dialogid == QUIZCREATE2)
- {
- if(response)
- {
- if(!isnull(inputtext))
- {
- format(answer, sizeof(answer), "%s", inputtext);
- quizexist = true;
- format(string, sizeof(string), "QUIZ: %s", question);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- SendClientMessageToAll(COLOR_LIGHTRED, "Type /answer along with your answer to answer the question!");
- }
- else
- {
- ShowPlayerDialogEx(playerid, QUIZCREATE2, DIALOG_STYLE_INPUT, "Create a quiz!", "ERROR!\nInput the quiz answer", "Next", "Cancel");
- }
- }
- else
- {
- format(question, sizeof(question), "None");
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- //PLAYER OWNED VEHICLES SYSTEM
- //------------------------------------------------------------------------------
- LockPlayerVehicle(ownerid, carid, type)
- {
- new v = GetPlayerVehicle(ownerid, carid);
- if(PlayerVehicleInfo[ownerid][v][pvId] == carid && type == 2)
- {
- LockStatus[carid] = 1;
- vehicle_lock_doors(carid);
- }
- }
- UnLockPlayerVehicle(ownerid, carid, type)
- {
- new v = GetPlayerVehicle(ownerid, carid);
- if(PlayerVehicleInfo[ownerid][v][pvId] == carid && type == 2)
- {
- LockStatus[carid] = 0;
- vehicle_unlock_doors(carid);
- }
- }
- forward DisableVehicleAlarm(vehicleid);
- public DisableVehicleAlarm(vehicleid)
- {
- new engine,lights,alarm,doors,bonnet,boot,objective;
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
- return 1;
- }
- forward ReleasePlayer(playerid);
- public ReleasePlayer(playerid)
- {
- SetPVarInt(playerid, "IsFrozen", 0);
- TogglePlayerControllable(playerid,1);
- }
- stock CreatePlayerVehicle(playerid, playervehicleid, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, price)
- {
- if(PlayerVehicleInfo[playerid][playervehicleid][pvId] == INVALID_PLAYER_VEHICLE_ID)
- {
- VehicleSpawned[playerid]++;
- PlayerCars++;
- PlayerVehicleInfo[playerid][playervehicleid][pvModelId] = modelid;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = x;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = y;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = z;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = angle;
- PlayerVehicleInfo[playerid][playervehicleid][pvColor1] = color1;
- PlayerVehicleInfo[playerid][playervehicleid][pvColor2] = color2;
- PlayerVehicleInfo[playerid][playervehicleid][pvPark] = 1;
- PlayerVehicleInfo[playerid][playervehicleid][pvPrice] = price;
- PlayerVehicleInfo[playerid][playervehicleid][pvFuel] = 100.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] = 0;
- for(new m = 0; m < MAX_MODS; m++)
- {
- PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] = 0;
- }
- new carcreated = CreateVehicle(modelid,x,y,z,angle,color1,color2,-1);
- PlayerVehicleInfo[playerid][playervehicleid][pvId] = carcreated;
- PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] = 1;
- SetVehicleNumberPlate(carcreated, PlayerVehicleInfo[playerid][playervehicleid][pvNumberPlate]);
- return carcreated;
- }
- return INVALID_PLAYER_VEHICLE_ID;
- }
- stock DestroyPlayerVehicle(playerid, playervehicleid)
- {
- if(PlayerVehicleInfo[playerid][playervehicleid][pvModelId])
- {
- VehicleSpawned[playerid]--;
- PlayerCars--;
- DestroyVehicle(PlayerVehicleInfo[playerid][playervehicleid][pvId]);
- VehicleRadioStation[PlayerVehicleInfo[playerid][playervehicleid][pvId]] = 0;
- PlayerVehicleInfo[playerid][playervehicleid][pvModelId] = 0;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = 0.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = 0.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = 0.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = 0.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob] = -1;
- PlayerVehicleInfo[playerid][playervehicleid][pvColor1] = 126;
- PlayerVehicleInfo[playerid][playervehicleid][pvColor2] = 126;
- PlayerVehicleInfo[playerid][playervehicleid][pvPrice] = 0;
- PlayerVehicleInfo[playerid][playervehicleid][pvFuel] = 100.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] = 0;
- PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] = 0;
- //VehicleFuel[PlayerVehicleInfo[playerid][playervehicleid][pvId]] = 100.0;
- PlayerVehicleInfo[playerid][playervehicleid][pvId] = INVALID_PLAYER_VEHICLE_ID;
- if(PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId] != INVALID_PLAYER_ID)
- {
- PlayerInfo[PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId]][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID;
- PlayerInfo[PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId]][pVehicleKeysFrom] = INVALID_PLAYER_ID;
- PlayerVehicleInfo[playerid][playervehicleid][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- }
- }
- }
- stock LoadPlayerVehicles(playerid) {
- switch(PlayerInfo[playerid][pDonator]) {
- case 0: {
- PlayerVehicleInfo[playerid][0][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][1][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][2][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][3][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][4][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][5][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][6][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][7][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][8][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][9][pvDisabled] = 1;
- }
- case 1: {
- PlayerVehicleInfo[playerid][0][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][1][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][2][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][3][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][4][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][5][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][6][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][7][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][8][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][9][pvDisabled] = 1;
- }
- case 2: {
- PlayerVehicleInfo[playerid][0][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][1][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][2][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][3][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][4][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][5][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][6][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][7][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][8][pvDisabled] = 1;
- PlayerVehicleInfo[playerid][9][pvDisabled] = 1;
- }
- case 3: {
- PlayerVehicleInfo[playerid][0][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][1][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][2][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][3][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][4][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][5][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][6][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][7][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][8][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][9][pvDisabled] = 0;
- }
- default: {
- PlayerVehicleInfo[playerid][0][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][1][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][2][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][3][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][4][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][5][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][6][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][7][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][8][pvDisabled] = 0;
- PlayerVehicleInfo[playerid][9][pvDisabled] = 0;
- }
- }
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++) {
- if(vehicleCountCheck(playerid)) {
- if(PlayerVehicleInfo[playerid][v][pvModelId] != 0 && PlayerVehicleInfo[playerid][v][pvImpounded] == 0 && PlayerVehicleInfo[playerid][v][pvSpawned] == 1) {
- PlayerCars++;
- VehicleSpawned[playerid]++;
- new carcreated = CreateVehicle(PlayerVehicleInfo[playerid][v][pvModelId], PlayerVehicleInfo[playerid][v][pvPosX], PlayerVehicleInfo[playerid][v][pvPosY], PlayerVehicleInfo[playerid][v][pvPosZ], PlayerVehicleInfo[playerid][v][pvPosAngle],PlayerVehicleInfo[playerid][v][pvColor1], PlayerVehicleInfo[playerid][v][pvColor2], -1);
- PlayerVehicleInfo[playerid][v][pvId] = carcreated;
- //VehicleFuel[carcreated] = PlayerVehicleInfo[playerid][v][pvFuel];
- if(PlayerVehicleInfo[playerid][v][pvLocked]) {
- LockPlayerVehicle(playerid, PlayerVehicleInfo[playerid][v][pvId], PlayerVehicleInfo[playerid][v][pvLock]);
- }
-
- if(strlen(PlayerVehicleInfo[playerid][v][pvNumberPlate]) > 0)
- SetVehicleNumberPlate(carcreated, PlayerVehicleInfo[playerid][v][pvNumberPlate]);
-
- LoadPlayerVehicleMods(playerid, v);
- }
- else if(PlayerVehicleInfo[playerid][v][pvModelId] == 0 && PlayerVehicleInfo[playerid][v][pvImpounded] != 0) {
- PlayerVehicleInfo[playerid][v][pvImpounded] = 0;
- }
- else if(PlayerVehicleInfo[playerid][v][pvModelId] == 0 && PlayerVehicleInfo[playerid][v][pvSpawned] != 0) {
- PlayerVehicleInfo[playerid][v][pvSpawned] = 0;
- }
- }
- else PlayerVehicleInfo[playerid][v][pvSpawned] = 0;
- }
- return 1;
- }
- vehicleCountCheck(playerid) {
- switch(PlayerInfo[playerid][pDonator]) {
- case 0, 1: if(VehicleSpawned[playerid] >= 1) return 0;
- case 2: if(VehicleSpawned[playerid] >= 2) return 0;
- case 3: if(VehicleSpawned[playerid] >= 3) return 0;
- case 4, 5: if(VehicleSpawned[playerid] >= 5) return 0;
- default: return 0;
- }
- return 1;
- }
- stock UnloadPlayerVehicles(playerid)
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- //printf(" Unloading %s's vehicles.", playername);
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- if(PlayerVehicleInfo[playerid][v][pvId] != INVALID_PLAYER_VEHICLE_ID && PlayerVehicleInfo[playerid][v][pvImpounded] == 0)
- {
- //new Float:x, Float:y, Float:z, Float:angle;
- //GetVehiclePos(PlayerVehicleInfo[playerid][v][pvId], x, y, z);
- //GetVehicleZAngle(PlayerVehicleInfo[playerid][v][pvId], angle);
- //UpdatePlayerVehicleParkPosition(playerid, v, x, y, z, angle);
- PlayerCars--;
- if(LockStatus[PlayerVehicleInfo[playerid][v][pvId]] != 0) LockStatus[PlayerVehicleInfo[playerid][v][pvId]] = 0;
- UpdatePlayerVehicleMods(playerid, v);
- DestroyVehicle(PlayerVehicleInfo[playerid][v][pvId]);
- VehicleRadioStation[PlayerVehicleInfo[playerid][v][pvId]] = 0;
- //VehicleFuel[PlayerVehicleInfo[playerid][v][pvId]] = 100.0;
- PlayerVehicleInfo[playerid][v][pvId] = INVALID_PLAYER_VEHICLE_ID;
- if(PlayerVehicleInfo[playerid][v][pvAllowedPlayerId] != INVALID_PLAYER_ID)
- {
- PlayerInfo[PlayerVehicleInfo[playerid][v][pvAllowedPlayerId]][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID;
- PlayerInfo[PlayerVehicleInfo[playerid][v][pvAllowedPlayerId]][pVehicleKeysFrom] = INVALID_PLAYER_ID;
- PlayerVehicleInfo[playerid][v][pvAllowedPlayerId] = INVALID_PLAYER_ID;
- }
- }
- }
- }
- stock UpdatePlayerVehicleParkPosition(playerid, playervehicleid, Float:newx, Float:newy, Float:newz, Float:newangle, Float:health)
- {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if(PlayerVehicleInfo[playerid][playervehicleid][pvId] != INVALID_PLAYER_VEHICLE_ID)
- {
- new Float:oldx, Float:oldy, Float:oldz;
- oldx = PlayerVehicleInfo[playerid][playervehicleid][pvPosX];
- oldy = PlayerVehicleInfo[playerid][playervehicleid][pvPosY];
- oldz = PlayerVehicleInfo[playerid][playervehicleid][pvPosZ];
- if(oldx == newx && oldy == newy && oldz == newz) return 0;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosX] = newx;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosY] = newy;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosZ] = newz;
- PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle] = newangle;
- //oldfuel = VehicleFuel[PlayerVehicleInfo[playerid][playervehicleid][pvId]];
- //VehicleFuel[PlayerVehicleInfo[playerid][playervehicleid][pvId]] = 100.0;
- UpdatePlayerVehicleMods(playerid, playervehicleid);
- DestroyVehicle(PlayerVehicleInfo[playerid][playervehicleid][pvId]);
- new carcreated = CreateVehicle(PlayerVehicleInfo[playerid][playervehicleid][pvModelId], PlayerVehicleInfo[playerid][playervehicleid][pvPosX], PlayerVehicleInfo[playerid][playervehicleid][pvPosY], PlayerVehicleInfo[playerid][playervehicleid][pvPosZ],
- PlayerVehicleInfo[playerid][playervehicleid][pvPosAngle],PlayerVehicleInfo[playerid][playervehicleid][pvColor1], PlayerVehicleInfo[playerid][playervehicleid][pvColor2], -1);
- PlayerVehicleInfo[playerid][playervehicleid][pvId] = carcreated;
- //VehicleFuel[carcreated] = oldfuel;
- SetVehicleNumberPlate(carcreated, PlayerVehicleInfo[playerid][playervehicleid][pvNumberPlate]);
- SetVehicleHealth(carcreated, health);
- if(PlayerVehicleInfo[playerid][playervehicleid][pvLocked] == 1) LockPlayerVehicle(playerid, PlayerVehicleInfo[playerid][playervehicleid][pvId], PlayerVehicleInfo[playerid][playervehicleid][pvLock]);
- LoadPlayerVehicleMods(playerid, playervehicleid);
- return 1;
- }
- return 0;
- }
- stock UpdatePlayerVehicleMods(playerid, playervehicleid)
- {
- if(PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] == 0 || PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] == 1) {
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new carid = PlayerVehicleInfo[playerid][playervehicleid][pvId];
- new exhaust, frontbumper, rearbumper, roof, spoilers, sideskirt1,
- sideskirt2, wheels, hydraulics, nitro, hood, lamps, stereo, ventright, ventleft;
- exhaust = GetVehicleComponentInSlot(carid, CARMODTYPE_EXHAUST);
- frontbumper = GetVehicleComponentInSlot(carid, CARMODTYPE_FRONT_BUMPER);
- rearbumper = GetVehicleComponentInSlot(carid, CARMODTYPE_REAR_BUMPER);
- roof = GetVehicleComponentInSlot(carid, CARMODTYPE_ROOF);
- spoilers = GetVehicleComponentInSlot(carid, CARMODTYPE_SPOILER);
- sideskirt1 = GetVehicleComponentInSlot(carid, CARMODTYPE_SIDESKIRT);
- sideskirt2 = GetVehicleComponentInSlot(carid, CARMODTYPE_SIDESKIRT);
- wheels = GetVehicleComponentInSlot(carid, CARMODTYPE_WHEELS);
- hydraulics = GetVehicleComponentInSlot(carid, CARMODTYPE_HYDRAULICS);
- nitro = GetVehicleComponentInSlot(carid, CARMODTYPE_NITRO);
- hood = GetVehicleComponentInSlot(carid, CARMODTYPE_HOOD);
- lamps = GetVehicleComponentInSlot(carid, CARMODTYPE_LAMPS);
- stereo = GetVehicleComponentInSlot(carid, CARMODTYPE_STEREO);
- ventright = GetVehicleComponentInSlot(carid, CARMODTYPE_VENT_RIGHT);
- ventleft = GetVehicleComponentInSlot(carid, CARMODTYPE_VENT_LEFT);
- if(spoilers >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][0] = spoilers;
- if(hood >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][1] = hood;
- if(roof >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][2] = roof;
- if(sideskirt1 >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][3] = sideskirt1;
- if(lamps >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][4] = lamps;
- if(nitro >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][5] = nitro;
- if(exhaust >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][6] = exhaust;
- if(wheels >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][7] = wheels;
- if(stereo >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][8] = stereo;
- if(hydraulics >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][9] = hydraulics;
- if(frontbumper >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][10] = frontbumper;
- if(rearbumper >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][11] = rearbumper;
- if(ventright >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][12] = ventright;
- if(ventleft >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][13] = ventleft;
- if(sideskirt2 >= 1000) PlayerVehicleInfo[playerid][playervehicleid][pvMods][14] = sideskirt2;
- }
- }
- stock LoadPlayerVehicleMods(playerid, playervehicleid)
- {
- if(PlayerVehicleInfo[playerid][playervehicleid][pvImpounded] == 0 || PlayerVehicleInfo[playerid][playervehicleid][pvSpawned] == 1) {
- //printf(" Loading player #%d vehicle #%d mods.", playerid, playervehicleid);
- new paintjob = PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob];
- new color1 = PlayerVehicleInfo[playerid][playervehicleid][pvColor1];
- new color2 = PlayerVehicleInfo[playerid][playervehicleid][pvColor2];
- if(PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob] != -1)
- {
- ChangeVehiclePaintjob(PlayerVehicleInfo[playerid][playervehicleid][pvId], paintjob);
- ChangeVehicleColor(PlayerVehicleInfo[playerid][playervehicleid][pvId], color1, color2);
- }
- for(new m = 0; m < MAX_MODS; m++)
- {
- if(PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] >= 1000 && PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] <= 1193)
- {
- if(InvalidModCheck(GetVehicleModel(PlayerVehicleInfo[playerid][playervehicleid][pvId]),PlayerVehicleInfo[playerid][playervehicleid][pvMods][m]))
- {
- AddVehicleComponent(PlayerVehicleInfo[playerid][playervehicleid][pvId], PlayerVehicleInfo[playerid][playervehicleid][pvMods][m]);
- }
- else
- {
- //printf("Removing invalid mod %d from %d of %s", PlayerVehicleInfo[playerid][playervehicleid][pvMods][m], GetVehicleModel(PlayerVehicleInfo[playerid][playervehicleid][pvId]), GetPlayerNameEx(playerid));
- PlayerVehicleInfo[playerid][playervehicleid][pvMods][m] = 0;
- }
- }
- }
- }
- }
- stock GetPlayerFreeVehicleId(playerid) {
- for(new i; i < MAX_PLAYERVEHICLES; ++i) {
- if(PlayerVehicleInfo[playerid][i][pvModelId] == 0) return i;
- }
- return -1;
- }
- GetPlayerVehicleCount(playerid)
- {
- new cars = 0;
- for(new i = 0; i < MAX_PLAYERVEHICLES; i++)
- {
- if(PlayerVehicleInfo[playerid][i][pvModelId])
- {
- if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID && PlayerVehicleInfo[playerid][i][pvImpounded] == 0) {
- if(CheckPlayerVehicleForDesync(playerid, PlayerVehicleInfo[playerid][i][pvId])) return 0;
- cars++;
- }
- }
- }
- return cars;
- }
- CheckPlayerVehicleForDesync(playerid, vehicleid)
- {
- if(GetVehicleModel(vehicleid) < 400 || GetVehicleModel(vehicleid) > 611)
- {
- SendClientMessage(playerid, COLOR_WHITE, "A problem with your vehicles has been detected.");
- UnloadPlayerVehicles(playerid);
- LoadPlayerVehicles(playerid);
- SendClientMessage(playerid, COLOR_WHITE, "This problem has now been resolved.");
- return 1;
- }
- return 0;
- }
- /*stock GetPlayerVehicleCount(playerid)
- {
- new
- i = 0,
- cars = 0;
- while(i < MAX_PLAYERVEHICLES && PlayerVehicleInfo[playerid][i][pvId])
- {
- cars++;
- i++;
- }
- return cars;
- }*/
- stock GetPlayerVehicle(playerid, vehicleid)
- {
- if(!IsPlayerConnected(playerid)) return -1;
- if(!GetVehicleModel(vehicleid)) return -1;
- for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
- {
- if(PlayerVehicleInfo[playerid][v][pvId] == vehicleid)
- {
- return v;
- }
- }
- return -1;
- }
- forward IsAtTruckDeliveryPoint(playerid);
- public IsAtTruckDeliveryPoint(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 6, 812.287231, -1623.678222, 13.546875) || IsPlayerInRangeOfPoint(playerid, 6, 1204.510375, -920.674499, 43.074016) ||
- IsPlayerInRangeOfPoint(playerid, 6, 2402.169677, -1502.789306, 23.834865) || IsPlayerInRangeOfPoint(playerid, 6, 2110.254394, -1214.892578, 23.485479) ||
- IsPlayerInRangeOfPoint(playerid, 6, 1458.425292, -1140.346069, 23.938444) || IsPlayerInRangeOfPoint(playerid, 6, 500.889678, -1352.339843, 15.463395) ||
- IsPlayerInRangeOfPoint(playerid, 6, 334.012207, -1373.775146, 14.230167) || IsPlayerInRangeOfPoint(playerid, 6, 1317.785522, -870.413818, 39.089378) ||
- IsPlayerInRangeOfPoint(playerid, 6, 1342.577026, -1748.498535, 12.934987) || IsPlayerInRangeOfPoint(playerid, 6, 653.629699, -579.503051, 15.889705) ||
- IsPlayerInRangeOfPoint(playerid, 6, 1634.834716, 757.830017, 10.820312) || IsPlayerInRangeOfPoint(playerid, 6, 2833.109375, 893.754699, 10.757797) ||
- IsPlayerInRangeOfPoint(playerid, 6, -510.522918, -501.250030, 25.523437))
- { return true; }
- return false;
- }
- forward CancelTruckDelivery(playerid);
- public CancelTruckDelivery(playerid)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- if(IsATruckerCar(vehicleid)) SetVehicleToRespawn(vehicleid);
- }
- DestroyProgressBar(LoadTruckBar[playerid]);
- LoadTruckBar[playerid] = INVALID_BAR_ID;
- LoadTruckTime[playerid] = 0;
- DeletePVar(playerid, "TruckDeliver");
- TruckContents[TruckUsed[playerid]] = 0;
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- stock InvalidModCheck(model, partid) {
- switch(model) {
- case 430, 446, 452, 453, 454, 472, 473, 484, 493, 595, 573, 556, 557, 539, 471, 432, 406, 444,
- 448, 461, 462, 463, 468, 481, 509, 510, 521, 522, 581, 586, 417, 425, 447, 460, 469, 476, 487,
- 488, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593: return 0;
- default: switch(GetVehicleComponentType(partid)) {
- case 5: switch(partid) {
- case 1008, 1009, 1010: return 1;
- default: return 0;
- }
- case 7: switch(partid) {
- case 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1096, 1097, 1098, 1025: return 1;
- default: return 0;
- }
- case 8: switch(partid) {
- case 1086: return 1;
- default: return 0;
- }
- case 9: switch(partid) {
- case 1087: return 1;
- default: return 0;
- }
- default: for(new i; i < 4; i++) if(partid == vehicleMods[model - 400][GetVehicleComponentType(partid)][i]) {
- return 1;
- }
- }
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- //CAR DEALERSHIP SYSTEM
- //------------------------------------------------------------------------------
- stock CreateCarDealership(Float: enx, Float: eny, Float: enz, Float: radius, price, message[])
- {
- new dealershipid = GetFreeCarDealership();
- if(dealershipid == -1) return -1;
- new text_info[128];
- CarDealershipInfo[dealershipid][cdEntranceX] = enx;
- CarDealershipInfo[dealershipid][cdEntranceY] = eny;
- CarDealershipInfo[dealershipid][cdEntranceZ] = enz;
- CarDealershipInfo[dealershipid][cdRadius] = radius;
- CarDealershipInfo[dealershipid][cdPrice] = price;
- strmid(CarDealershipInfo[dealershipid][cdMessage], message, 0, strlen(message), 255);
- CarDealershipInfo[dealershipid][cdPickupID] = CreatePickup(1272, 1, CarDealershipInfo[dealershipid][cdEntranceX], CarDealershipInfo[dealershipid][cdEntranceY], CarDealershipInfo[dealershipid][cdEntranceZ], -1);
- format(text_info, sizeof(text_info), "Car Dealership %s For Sale\nPrice: %d\nID: %d", CarDealershipInfo[dealershipid][cdMessage], CarDealershipInfo[dealershipid][cdPrice], dealershipid);
- CarDealershipInfo[dealershipid][cdTextLabel] = CreateDynamic3DTextLabel(text_info,COLOR_YELLOW,CarDealershipInfo[dealershipid][cdEntranceX], CarDealershipInfo[dealershipid][cdEntranceY], CarDealershipInfo[dealershipid][cdEntranceZ]+0.5,3.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1);
- SavecDealerships();
- return dealershipid;
- }
- stock DestroyCarDealership(dealershipid)
- {
- new string[30];
- CarDealershipInfo[dealershipid][cdEntranceX] = 0.0;
- CarDealershipInfo[dealershipid][cdEntranceY] = 0.0;
- CarDealershipInfo[dealershipid][cdEntranceZ] = 0.0;
- CarDealershipInfo[dealershipid][cdRadius] = 0.0;
- CarDealershipInfo[dealershipid][cdTill] = 0;
- CarDealershipInfo[dealershipid][cdOwned] = 0;
- CarDealershipInfo[dealershipid][cdPrice] = 0;
- format(string, sizeof(string), "None");
- strmid(CarDealershipInfo[dealershipid][cdOwner], string, 0, strlen(string), 255);
- format(string, sizeof(string), "None");
- strmid(CarDealershipInfo[dealershipid][cdMessage], string, 0, strlen(string), 255);
- DestroyDynamic3DTextLabel(CarDealershipInfo[dealershipid][cdTextLabel]);
- DestroyPickup(CarDealershipInfo[dealershipid][cdPickupID]);
- CarDealershipInfo[dealershipid][cdPickupID] = 0;
- CarDealershipInfo[dealershipid][cdTextLabel] = Text3D:INVALID_3DTEXT_ID;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][0] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][1] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][2] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][3] = 0.0;
- for(new v = 0; v < MAX_DEALERSHIPVEHICLES; v++)
- {
- if(CarDealershipInfo[dealershipid][cdVehicleModel][v] != 0)
- {
- DestroyCarDealershipVehicle(dealershipid, v);
- }
- }
- SavecDealerships();
- }
- stock GetFreeCarDealership()
- {
- new
- i = 0;
- while (i < MAX_CARDEALERSHIPS && CarDealershipInfo[i][cdEntranceX] != 0.0 && CarDealershipInfo[i][cdEntranceY] != 0.0)
- {
- i++;
- }
- if(i == MAX_CARDEALERSHIPS) return -1;
- return i;
- }
- stock SetPlayerOwnerOfCD(playerid, dealershipid)
- {
- new owner[MAX_PLAYER_NAME];
- CarDealershipInfo[dealershipid][cdOwned] = 1;
- GetPlayerName(playerid, owner, sizeof(owner));
- strmid(CarDealershipInfo[dealershipid][cdOwner], owner, 0, strlen(owner), 255);
- new text_info[128];
- format(text_info, sizeof(text_info), "Car Dealership %s\nOwner: %s\nID: %d", CarDealershipInfo[dealershipid][cdMessage], CarDealershipInfo[dealershipid][cdOwner], dealershipid);
- UpdateDynamic3DTextLabelText(CarDealershipInfo[dealershipid][cdTextLabel], COLOR_LIGHTBLUE, text_info);
- SavecDealerships();
- }
- stock SellCarDealership(dealershipid)
- {
- CarDealershipInfo[dealershipid][cdOwned] = 0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][0] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][1] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][2] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawn][3] = 0.0;
- strmid(CarDealershipInfo[dealershipid][cdOwner], "No-one", 0, MAX_PLAYER_NAME, 255);
- new text_info[128];
- format(text_info, sizeof(text_info), "Car Dealership %s For Sale\nPrice: %d\nID: %d", CarDealershipInfo[dealershipid][cdMessage], CarDealershipInfo[dealershipid][cdPrice], dealershipid);
- UpdateDynamic3DTextLabelText(CarDealershipInfo[dealershipid][cdTextLabel], COLOR_RED, text_info);
- SavecDealerships();
- }
- stock IsPlayerOwnerOfCD(playerid)
- {
- new owner[MAX_PLAYER_NAME];
- GetPlayerName(playerid, owner, sizeof(owner));
- for(new d = 0; d < MAX_CARDEALERSHIPS; d++)
- {
- if(strcmp(CarDealershipInfo[d][cdOwner],owner, true) == 0)
- {
- return d;
- }
- }
- return -1;
- }
- stock IsPlayerOwnerOfCDEx(playerid, dealershipid)
- {
- new owner[MAX_PLAYER_NAME];
- GetPlayerName(playerid, owner, sizeof(owner));
- if(strcmp(CarDealershipInfo[dealershipid][cdOwner],owner, true) == 0)
- {
- return 1;
- }
- return 0;
- }
- stock CreateCarDealershipVehicle(dealershipid, modelid, Float: x, Float: y, Float: z, Float: a, price)
- {
- new cdvehicleid = GetFreeCarDealershipVehicleId(dealershipid);
- if(cdvehicleid == -1) return -1;
- new text_info[128];
- CarDealershipInfo[dealershipid][cdVehicleModel][cdvehicleid] = modelid;
- CarDealershipInfo[dealershipid][cdVehicleCost][cdvehicleid] = price;
- CarDealershipInfo[dealershipid][cdVehicleSpawnX][cdvehicleid] = x;
- CarDealershipInfo[dealershipid][cdVehicleSpawnY][cdvehicleid] = y;
- CarDealershipInfo[dealershipid][cdVehicleSpawnZ][cdvehicleid] = z;
- CarDealershipInfo[dealershipid][cdVehicleSpawnAngle][cdvehicleid] = a;
- new carcreated = CreateVehicle(modelid, x, y, z, a, 0, 0, 6);
- format(text_info, sizeof(text_info), "%s For Sale | Price: %d", GetVehicleName(carcreated), CarDealershipInfo[dealershipid][cdVehicleCost][cdvehicleid]);
- CarDealershipInfo[dealershipid][cdVehicleLabel][cdvehicleid] = CreateDynamic3DTextLabel(text_info,COLOR_LIGHTBLUE,0.0, 0.0, 0.0,5.0,INVALID_PLAYER_ID,carcreated,1);
- CarDealershipInfo[dealershipid][cdVehicleId][cdvehicleid] = carcreated;
- SavecDealerships();
- return cdvehicleid;
- }
- stock DestroyCarDealershipVehicle(dealershipid, cdvehicleid)
- {
- CarDealershipInfo[dealershipid][cdVehicleModel][cdvehicleid] = 0;
- CarDealershipInfo[dealershipid][cdVehicleCost][cdvehicleid] = 0;
- CarDealershipInfo[dealershipid][cdVehicleSpawnX][cdvehicleid] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawnY][cdvehicleid] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawnZ][cdvehicleid] = 0.0;
- CarDealershipInfo[dealershipid][cdVehicleSpawnAngle][cdvehicleid] = 0.0;
- DestroyDynamic3DTextLabel(CarDealershipInfo[dealershipid][cdVehicleLabel][cdvehicleid]);
- DestroyVehicle(CarDealershipInfo[dealershipid][cdVehicleId][cdvehicleid]);
- VehicleRadioStation[CarDealershipInfo[dealershipid][cdVehicleId][cdvehicleid]] = 0;
- CarDealershipInfo[dealershipid][cdVehicleLabel][cdvehicleid] = Text3D:INVALID_3DTEXT_ID;
- CarDealershipInfo[dealershipid][cdVehicleId][cdvehicleid] = 0;
- }
- stock GetFreeCarDealershipVehicleId(dealershipid)
- {
- new
- i = 0;
- while (i < MAX_DEALERSHIPVEHICLES && CarDealershipInfo[dealershipid][cdVehicleModel][i] != 0)
- {
- i++;
- }
- if(i == MAX_DEALERSHIPVEHICLES) return -1;
- return i;
- }
- stock GetCarDealershipVehicleId(vehicleid)
- {
- for(new d = 0; d < MAX_CARDEALERSHIPS; d++)
- {
- for(new v = 0; v < MAX_DEALERSHIPVEHICLES; v++)
- {
- if(CarDealershipInfo[d][cdVehicleId][v] == vehicleid)
- {
- return v;
- }
- }
- }
- return -1;
- }
- stock GetCarDealershipId(vehicleid)
- {
- for(new d = 0; d < MAX_CARDEALERSHIPS; d++)
- {
- for(new v = 0; v < MAX_DEALERSHIPVEHICLES; v++)
- {
- if(CarDealershipInfo[d][cdVehicleId][v] == vehicleid)
- {
- return d;
- }
- }
- }
- return -1;
- }
- //------------------------------------------------------------------------------
- //----------------------DYNAMIC GANG VEHICLE SYSTEM-----------------------------
- //------------------------------------------------------------------------------
- LockGangVehicle(family, carid, type)
- {
- new v = GetGangVehicle(family, carid);
- if(FamilyVehicleInfo[family][v][fvId] == carid && type == 2)
- {
- LockStatus[carid] = 1;
- vehicle_lock_doors(carid);
- }
- }
- UnLockGangVehicle(family, carid, type)
- {
- new v = GetGangVehicle(family, carid);
- if(FamilyVehicleInfo[family][v][fvId] == carid && type == 2)
- {
- LockStatus[carid] = 0;
- vehicle_unlock_doors(carid);
- }
- }
- stock CreateGangVehicle(f, fv, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, price)
- {
- if(FamilyVehicleInfo[f][fv][fvId] == INVALID_VEHICLE_ID)
- {
- FamilyVehicleInfo[f][fv][fvModelId] = modelid;
- FamilyVehicleInfo[f][fv][fvSpawnx] = x;
- FamilyVehicleInfo[f][fv][fvSpawny] = y;
- FamilyVehicleInfo[f][fv][fvSpawnz] = z;
- FamilyVehicleInfo[f][fv][fvSpawna] = angle;
- FamilyVehicleInfo[f][fv][fvColor1] = color1;
- FamilyVehicleInfo[f][fv][fvColor2] = color2;
- FamilyVehicleInfo[f][fv][fvPrice] = price;
- FamilyVehicleInfo[f][fv][fvFuel] = 100.0;
- new carcreated = CreateVehicle(modelid,x,y,z,angle,color1,color2,-1);
- FamilyVehicleInfo[f][fv][fvId] = carcreated;
- //printf("Created the gang vehicle for family %d | vehicleid #%d | familyvehicleslot #%d.", f, FamilyVehicleInfo[f][fv][fvId], fv);
- return carcreated;
- }
- return INVALID_VEHICLE_ID;
- }
- stock DestroyGangVehicle(f, fv)
- {
- if(FamilyVehicleInfo[f][fv][fvId] != INVALID_VEHICLE_ID)
- {
- DestroyVehicle(FamilyVehicleInfo[f][fv][fvId]);
- VehicleRadioStation[FamilyVehicleInfo[f][fv][fvId]] = 0;
- FamilyVehicleInfo[f][fv][fvModelId] = 0;
- FamilyVehicleInfo[f][fv][fvSpawnx] = 0.0;
- FamilyVehicleInfo[f][fv][fvSpawny] = 0.0;
- FamilyVehicleInfo[f][fv][fvSpawnz] = 0.0;
- FamilyVehicleInfo[f][fv][fvSpawna] = 0.0;
- FamilyVehicleInfo[f][fv][fvPaintJob] = -1;
- FamilyVehicleInfo[f][fv][fvColor1] = 126;
- FamilyVehicleInfo[f][fv][fvColor2] = 126;
- FamilyVehicleInfo[f][fv][fvPrice] = 0;
- FamilyVehicleInfo[f][fv][fvImpounded] = 0;
- FamilyVehicleInfo[f][fv][fvFuel] = 100.0;
- //VehicleFuel[FamilyVehicleInfo[f][fv][fvId]] = 100.0;
- //printf("Family %d vehicle %d(vehicleid %d) has been destroyed.", f,fv,FamilyVehicleInfo[f][fv][fvId]);
- FamilyVehicleInfo[f][fv][fvId] = INVALID_VEHICLE_ID;
- }
- }
- stock LoadGangVehicles(f)
- {
- //printf(" Loading family %d's vehicles.", f);
- for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++)
- {
- if(FamilyVehicleInfo[f][fv][fvModelId] != 0)
- {
- new carcreated = CreateVehicle(FamilyVehicleInfo[f][fv][fvModelId], FamilyVehicleInfo[f][fv][fvSpawnx], FamilyVehicleInfo[f][fv][fvSpawny], FamilyVehicleInfo[f][fv][fvSpawnz], FamilyVehicleInfo[f][fv][fvSpawna],FamilyVehicleInfo[f][fv][fvColor1], FamilyVehicleInfo[f][fv][fvColor2], -1);
- FamilyVehicleInfo[f][fv][fvId] = carcreated;
- //VehicleFuel[carcreated] = FamilyVehicleInfo[f][fv][fvFuel];
- //if(VehicleFuel[carcreated] == 0) VehicleFuel[carcreated] = 100.0;
- if(FamilyVehicleInfo[f][fv][fvLocked] == 1) LockGangVehicle(f, FamilyVehicleInfo[f][fv][fvId], FamilyVehicleInfo[f][fv][fvLock]);
- }
- }
- }
- stock UnloadGangVehicles(f)
- {
- //printf(" Unloading %s's vehicles.", FamilyInfo[f][FamilyName]);
- for(new fv = 0; fv < MAX_PLAYERVEHICLES; fv++)
- {
- if(FamilyVehicleInfo[f][fv][fvId] != INVALID_VEHICLE_ID)
- {
- if(LockStatus[FamilyVehicleInfo[f][fv][fvId]] != 0) LockStatus[FamilyVehicleInfo[f][fv][fvId]] = 0;
- DestroyVehicle(FamilyVehicleInfo[f][fv][fvId]);
- VehicleRadioStation[FamilyVehicleInfo[f][fv][fvId]] = 0;
- //VehicleFuel[FamilyVehicleInfo[f][fv][fvId]] = 100.0;
- FamilyVehicleInfo[f][fv][fvId] = INVALID_VEHICLE_ID;
- }
- }
- }
- stock UpdateGangVehicleParkPosition(f, fv, Float:newx, Float:newy, Float:newz, Float:newangle, Float:health, temp = 1)
- {
- if(FamilyVehicleInfo[f][fv][fvId] != INVALID_VEHICLE_ID)
- {
- if(temp == 0)
- {
- new Float:oldx, Float:oldy, Float:oldz;
- oldx = FamilyVehicleInfo[f][fv][fvSpawnx];
- oldy = FamilyVehicleInfo[f][fv][fvSpawny];
- oldz = FamilyVehicleInfo[f][fv][fvSpawnz];
- if(oldx == newx && oldy == newy && oldz == newz) return 0;
- FamilyVehicleInfo[f][fv][fvSpawnx] = newx;
- FamilyVehicleInfo[f][fv][fvSpawny] = newy;
- FamilyVehicleInfo[f][fv][fvSpawnz] = newz;
- FamilyVehicleInfo[f][fv][fvSpawna] = newangle;
- DestroyVehicle(FamilyVehicleInfo[f][fv][fvId]);
- new carcreated = CreateVehicle(FamilyVehicleInfo[f][fv][fvModelId], FamilyVehicleInfo[f][fv][fvSpawnx], FamilyVehicleInfo[f][fv][fvSpawny], FamilyVehicleInfo[f][fv][fvSpawnz],
- FamilyVehicleInfo[f][fv][fvSpawna],FamilyVehicleInfo[f][fv][fvColor1], FamilyVehicleInfo[f][fv][fvColor2], -1);
- FamilyVehicleInfo[f][fv][fvId] = carcreated;
- SetVehicleHealth(carcreated, health);
- SaveFamiliesHQ();
- return 1;
- }
- else
- {
- new Float:oldx, Float:oldy, Float:oldz;
- oldx = FamilyVehicleInfo[f][fv][fvSpawnxtmp];
- oldy = FamilyVehicleInfo[f][fv][fvSpawnytmp];
- oldz = FamilyVehicleInfo[f][fv][fvSpawnztmp];
- if(oldx == newx && oldy == newy && oldz == newz) return 0;
- FamilyVehicleInfo[f][fv][fvSpawnxtmp] = newx;
- FamilyVehicleInfo[f][fv][fvSpawnytmp] = newy;
- FamilyVehicleInfo[f][fv][fvSpawnztmp] = newz;
- FamilyVehicleInfo[f][fv][fvSpawnatmp] = newangle;
- DestroyVehicle(FamilyVehicleInfo[f][fv][fvId]);
- new carcreated = CreateVehicle(FamilyVehicleInfo[f][fv][fvModelId], FamilyVehicleInfo[f][fv][fvSpawnxtmp], FamilyVehicleInfo[f][fv][fvSpawnytmp], FamilyVehicleInfo[f][fv][fvSpawnztmp],
- FamilyVehicleInfo[f][fv][fvSpawnatmp],FamilyVehicleInfo[f][fv][fvColor1], FamilyVehicleInfo[f][fv][fvColor2], -1);
- FamilyVehicleInfo[f][fv][fvId] = carcreated;
- SetVehicleHealth(carcreated, health);
- SaveFamiliesHQ();
- return 1;
- }
- }
- return 0;
- }
- stock GetGangFreeVehicleId(f)
- {
- new
- i = 0;
- while (i < MAX_GANG_VEHICLES && FamilyVehicleInfo[f][i][fvId] != INVALID_VEHICLE_ID)
- {
- i++;
- }
- if(i == MAX_GANG_VEHICLES) return -1;
- return i;
- }
- stock GetGangVehicleCount(f)
- {
- new
- i = 0,
- cars = 0;
- while (i < MAX_GANG_VEHICLES && FamilyVehicleInfo[f][i][fvId] != INVALID_VEHICLE_ID)
- {
- cars++;
- i++;
- }
- return cars;
- }
- stock GetGangVehicle(f, vehicleid)
- {
- if(f == 255) return -1;
- if(vehicleid == -1) return -1;
- for(new v = 0; v < MAX_GANG_VEHICLES; v++)
- {
- if(FamilyVehicleInfo[f][v][fvId] == vehicleid)
- {
- return v;
- }
- }
- return -1;
- }
- ProxDetector(Float: f_Radius, playerid, string[],col1,col2,col3,col4,col5)
- {
- new
- Float: f_playerPos[3];
- GetPlayerPos(playerid, f_playerPos[0], f_playerPos[1], f_playerPos[2]);
- foreach(Player, i) {
- if((InsideShamal[playerid] == GetPlayerVehicleID(i) && GetPlayerState(i) == 2) || (InsideShamal[i] == GetPlayerVehicleID(playerid) && GetPlayerState(playerid) == 2) || (InsideShamal[playerid] != INVALID_VEHICLE_ID && InsideShamal[playerid] == InsideShamal[i])) {
- SendClientMessage(i, col1, string);
- }
- else if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid)) {
- if(IsPlayerInRangeOfPoint(i, f_Radius / 16, f_playerPos[0], f_playerPos[1], f_playerPos[2])) {
- SendClientMessage(i, col1, string);
- }
- else if(IsPlayerInRangeOfPoint(i, f_Radius / 8, f_playerPos[0], f_playerPos[1], f_playerPos[2])) {
- SendClientMessage(i, col2, string);
- }
- else if(IsPlayerInRangeOfPoint(i, f_Radius / 4, f_playerPos[0], f_playerPos[1], f_playerPos[2])) {
- SendClientMessage(i, col3, string);
- }
- else if(IsPlayerInRangeOfPoint(i, f_Radius / 2, f_playerPos[0], f_playerPos[1], f_playerPos[2])) {
- SendClientMessage(i, col4, string);
- }
- else if(IsPlayerInRangeOfPoint(i, f_Radius, f_playerPos[0], f_playerPos[1], f_playerPos[2])) {
- SendClientMessage(i, col5, string);
- }
- }
- }
- return 1;
- }
- ProxDetectorS(Float:radi, playerid, targetid) {
- if(Spectating[targetid] != 0 && PlayerInfo[playerid][pAdmin] < 2)
- {
- return 0;
- }
- new
- Float: fp_playerPos[3];
- GetPlayerPos(targetid, fp_playerPos[0], fp_playerPos[1], fp_playerPos[2]);
- if(IsPlayerInRangeOfPoint(playerid, radi, fp_playerPos[0], fp_playerPos[1], fp_playerPos[2]) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(targetid))
- {
- return 1;
- }
- return 0;
- }
- IsPlayerInRangeOfVehicle(playerid, vehicleid, Float: radius) {
- new
- Float:Floats[3];
- GetVehiclePos(vehicleid, Floats[0], Floats[1], Floats[2]);
- return IsPlayerInRangeOfPoint(playerid, radius, Floats[0], Floats[1], Floats[2]);
- }
- forward MoveEMS(playerid);
- public MoveEMS(playerid)
- {
- new Float:mX, Float:mY, Float:mZ;
- GetPlayerPos(playerid, mX, mY, mZ);
- SetPVarFloat(GetPVarInt(playerid, "MovingStretcher"), "MedicX", mX);
- SetPVarFloat(GetPVarInt(playerid, "MovingStretcher"), "MedicY", mY);
- SetPVarFloat(GetPVarInt(playerid, "MovingStretcher"), "MedicZ", mZ);
- SetPVarInt(GetPVarInt(playerid, "MovingStretcher"), "MedicVW", GetPlayerVirtualWorld(playerid));
- SetPVarInt(GetPVarInt(playerid, "MovingStretcher"), "MedicInt", GetPlayerInterior(playerid));
- Streamer_UpdateEx(GetPVarInt(playerid, "MovingStretcher"), mX, mY, mZ);
- SetPlayerPos(GetPVarInt(playerid, "MovingStretcher"), mX, mY, mZ);
- SetPlayerInterior(GetPVarInt(playerid, "MovingStretcher"), GetPlayerVirtualWorld(playerid));
- SetPlayerVirtualWorld(GetPVarInt(playerid, "MovingStretcher"), GetPlayerVirtualWorld(playerid));
- ClearAnimations(GetPVarInt(playerid, "MovingStretcher"));
- ApplyAnimation(GetPVarInt(playerid, "MovingStretcher"), "SWAT", "gnstwall_injurd", 4.0, 0, 1, 1, 1, 0, 1);
- DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher");
- SetPVarInt(playerid, "MovingStretcher", -1);
- }
- forward KillEMSQueue(playerid);
- public KillEMSQueue(playerid)
- {
- if(IsPlayerConnected(GetPVarInt(playerid, "EMSWaiting")) && EMSAccepted[GetPVarInt(playerid, "EMSWaiting")] == playerid) {
- new
- string[126];
- format(string, sizeof(string), "* Your patient %s has died before you reached them!",GetPlayerNameEx(playerid));
- SendClientMessage(GetPVarInt(playerid, "EMSWaiting"), COLOR_LIGHTBLUE, string);
- DisablePlayerCheckpoint(GetPVarInt(playerid, "EMSWaiting"));
- EMSCallTime[GetPVarInt(playerid, "EMSWaiting")] = 0;
- EMSAccepted[GetPVarInt(playerid, "EMSWaiting")] = INVALID_PLAYER_ID;
- }
- DeletePVar(playerid, "Injured");
- DeletePVar(playerid, "EMSAttempt");
- DeletePVar(playerid, "EMSWaiting");
- SetPVarInt(playerid, "MedicBill", 1);
- DeletePVar(playerid, "MedicCall");
- return 1;
- }
- forward SendEMSQueue(playerid,type);
- public SendEMSQueue(playerid,type)
- {
- switch (type)
- {
- case 1:
- {
- Streamer_UpdateEx(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
- SetPlayerPos(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
- SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"MedicVW"));
- SetPlayerInterior(playerid, GetPVarInt(playerid,"MedicInt"));
- SetPVarInt(playerid, "EMSAttempt", -1);
- if(GetPlayerInterior(playerid) > 0)
- {
- TogglePlayerControllable(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- }
- GameTextForPlayer(playerid, "~r~Injured~n~~w~/accept death or /service ems", 5000, 3);
- ClearAnimations(playerid);
- PreloadAnimLib(playerid,"KNIFE");
- ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmourEx(playerid,0);
- if(GetPVarInt(playerid, "usingfirstaid") == 1)
- firstaidexpire(playerid);
- SetPVarInt(playerid,"MedicCall",1);
- }
- case 2:
- {
- SetPVarInt(playerid,"EMSAttempt", 2);
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "SWAT", "gnstwall_injurd", 4.0, 0, 1, 1, 1, 0, 1);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmourEx(playerid,0);
- }
- }
- return 1;
- }
- stock OAddFlag(name[],adminid,reason[])
- {
- new month,day,year;
- getdate(year,month,day);
- if(doesAccountExist(name))
- {
- OnPlayerOfflineLogin(name);
- format(PlayerInfo[MAX_PLAYERS][pFlag], 128, "%s - %s (%d/%d/%d)",reason,GetPlayerNameEx(adminid),month,day,year);
- OnPlayerOfflineSave(name);
- return 1;
- }
- else
- {
- SendClientMessage(adminid, COLOR_WHITE, "That account doesn't exist.");
- return 0;
- }
- }
- stock ORemoveFlag(name[])
- {
- if(doesAccountExist(name))
- {
- OnPlayerOfflineLogin(name);
- format(PlayerInfo[MAX_PLAYERS][pFlag], 128, "");
- OnPlayerOfflineSave(name);
- return 1;
- }
- else
- {
- return 0;
- }
- }
- stock AddAutomatedFlag(playerid, reason[]) {
- new month,day,year;
- getdate(year,month,day);
- if(!strlen(PlayerInfo[playerid][pFlag]))
- format(PlayerInfo[playerid][pFlag],128,"%s - Server (%d/%d/%d)",reason, month,day,year);
- return 1;
- }
- stock AddFlag(playerid,adminid,reason[])
- {
- new month,day,year;
- getdate(year,month,day);
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- format(PlayerInfo[playerid][pFlag],128,"%s - %s (%d/%d/%d)",reason,GetPlayerNameEx(adminid),month,day,year);
- }
- forward AddReportToken(playerid);
- public AddReportToken(playerid)
- {
- new
- sz_FileStr[32 + MAX_PLAYER_NAME],
- sz_playerName[MAX_PLAYER_NAME],
- i_timestamp[3],
- File: fPointer;
- GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
- getdate(i_timestamp[0], i_timestamp[1], i_timestamp[2]);
- format(sz_FileStr, sizeof(sz_FileStr), "admins/rtokens/%s[%d'%d'%d]", sz_playerName, i_timestamp[1], i_timestamp[2], i_timestamp[0]);
- if(fexist(sz_FileStr))
- {
- fPointer = fopen(sz_FileStr, io_read);
- fread(fPointer, sz_playerName);
- fclose(fPointer);
- new
- i_tokenVal = strval(sz_playerName);
- format(sz_playerName, sizeof(sz_playerName), "%i", i_tokenVal + 1);
- fPointer = fopen(sz_FileStr, io_write);
- fwrite(fPointer, sz_playerName);
- fclose(fPointer);
- }
- else {
- fPointer = fopen(sz_FileStr, io_write);
- fwrite(fPointer, "1");
- fclose(fPointer);
- }
- return 1;
- }
- forward SeeReportToken(playerid,name[],month,day,year);
- public SeeReportToken(playerid,name[],month,day,year)
- {
- new string[128], rtoken;
- new strFromFile[128];
- format(string,sizeof(string),"admins/rtokens/%s[%d'%d'%d]",name,month,day,year);
- if(fexist(string))
- {
- new File: file = fopen(string, io_read);
- fread(file, strFromFile);
- fclose(file);
- rtoken = strval(strFromFile);
- format(string,sizeof(string),"Admin has %d report tokens on [%d/%d/%d].",rtoken,month,day,year);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Admin does not have any logged report tokens for this date.");
- return 0;
- }
- return 1;
- }
- forward firstaid5(playerid);
- public firstaid5(playerid)
- {
- if(GetPVarInt(playerid, "usingfirstaid") == 1)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(health < 100.0)
- {
- if((health+5.0) <= 100.0)
- {
- SetPlayerHealth(playerid, health+5.0);
- }
- }
- }
- }
- forward firstaidexpire(playerid);
- public firstaidexpire(playerid)
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Your first aid kit no longer takes effect.");
- KillTimer(GetPVarInt(playerid, "firstaid5"));
- SetPVarInt(playerid, "usingfirstaid", 0);
- }
- stock GetClosestPlayer(p1)
- {
- new Float:dis,Float:dis2,player;
- player = -1;
- dis = 99999.99;
- foreach(Player, x)
- {
- if(x != p1)
- {
- dis2 = GetDistanceBetweenPlayers(x,p1);
- if(dis2 < dis && dis2 != -1.00)
- {
- dis = dis2;
- player = x;
- }
- }
- }
- return player;
- }
- forward SyncPlayerTime(playerid);
- public SyncPlayerTime(playerid)
- {
- new hour, minute, second;
- gettime(hour, minute, second);
- SetPlayerTime(playerid, hour, minute);
- return 1;
- }
- forward rccam(playerid);
- public rccam(playerid)
- {
- DestroyVehicle(GetPVarInt(playerid, "rcveh"));
- VehicleRadioStation[GetPVarInt(playerid, "rcveh")] = 0;
- SetPlayerPos(playerid, GetPVarFloat(playerid, "rcX"), GetPVarFloat(playerid, "rcY"), GetPVarFloat(playerid, "rcZ"));
- SendClientMessage(playerid, COLOR_GRAD1, "Your RC Cam has ran out of batteries!");
- SetPVarInt(playerid, "rccam", 0);
- }
- forward SyncMinTime();
- public SyncMinTime()
- {
- new hour, minute, second;
- gettime(hour, minute, second);
- foreach(Player, i)
- {
- SetPlayerTime(i, hour, minute);
- }
- return 1;
- }
- forward SyncTime();
- public SyncTime()
- {
- new string[64];
- new tmphour;
- new tmpminute;
- new tmpsecond;
- gettime(tmphour, tmpminute, tmpsecond);
- FixHour(tmphour);
- tmphour = shifthour;
- if((tmphour > ghour) || (tmphour == 0 && ghour == 23))
- {
- format(string, sizeof(string), "The time is now %d:00.",tmphour);
- SendClientMessageToAllEx(COLOR_WHITE,string);
- ghour = tmphour;
- TotalUptime += 1;
- PayDay();
- SetWorldTime(tmphour);
- SaveFamilies();
- }
- }
- PayDay()
- {
- new string[128];
- GiftAllowed = 1;
- foreach(Player, i) if(PlayerInfo[i][pLevel] > 0)
- {
- if(GetPVarType(i, "debtMsg"))
- {
- if(PlayerInfo[i][pJailed] < 1 && !IsACop(i) && PlayerInfo[i][pWantedLevel] < 6) {
- format(string,sizeof(string),"You're failing to pay your debt of $%d - now the police are on the look out for you.",GetPlayerCash(i));
- SendClientMessage(i, COLOR_LIGHTRED, string);
- PlayerInfo[i][pCrimes]++;
- SetPlayerWantedLevel(i, ++PlayerInfo[i][pWantedLevel]);
- }
- }
-
- if(PlayerInfo[i][pPayReady] >= 6) {
- new code = Random(100000, 999999);
- PayCheckCode[i] = code;
- SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
- SendClientMessage(i, COLOR_WHITE,"Information on paychecks: {FFA500}/payhelp {FFFFFF}or {FFA500}/taxhelp");
- SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
- SendClientMessage(i, COLOR_WHITE,"Sign the check to receive your paycheck.");
- SendClientMessage(i, COLOR_LIGHTBLUE, "Type /signcheck");
- SendClientMessage(i, COLOR_WHITE,"You have 5 minutes to sign the check before it becomes invalid.");
- SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
- GameTextForPlayer(i, "~w~Type /signcheck", 2500, 1);
- PlayerPlaySound(i, SOUND_MUSIC1, 2050.1995, 1344.5500, 13.2378);
- PayMusic(i);
- WasHereForPaycheck[i] = 1;
- SetTimer("LastAlertPayCheck", 240000, false);
- PlayerInfo[i][pClaim] = 1;
- }
- else SendClientMessage(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a paycheck.");
- }
- for (new x = 0; x < MAX_POINTS; x++)
- {
- Points[x][Announced] = 0;
- if(Points[x][Vulnerable] > 0)
- {
- Points[x][Vulnerable]--;
- UpdatePoints();
- }
- if(Points[x][Vulnerable] == 0 && Points[x][Type] >= 0 && Points[x][Announced] == 0 && Points[x][ClaimerId] == INVALID_PLAYER_ID)
- {
- format(string, sizeof(string), "%s has become available for capture.", Points[x][Name]);
- SendClientMessageToAllEx(COLOR_YELLOW, string);
- //SetPlayerCheckpoint(i, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz], 3);
- ReadyToCapture(x);
- Points[x][Announced] = 1;
- }
- }
-
- for (new h = 0; h < MAX_TURFS; h++)
- {
- if(TurfsInfo[h][TurfsHours] == 1 && TurfsInfo[h][TurfsVulnerable] == 0)
- {
- format(string, sizeof(string), "%s has become available for capturf.", TurfsInfo[h][TurfsName]);
- SendClientMessageToAllEx(COLOR_YELLOW, string);
- TurfsInfo[h][TurfsVulnerable] = 1;
- }
- TurfsInfo[h][TurfsHours]--;
- }
- Misc_Save();
- return 1;
- }
- ReadyToCapture(pointid)
- {
- //new string[128];
- foreach(Player, i)
- {
- if(PlayerInfo[i][pGang] < 255)
- {
- if(Points[pointid][Type] == 3 && Points[pointid][Type] == 4) return 1;
- //format(string, sizeof(string), "%s has become available to capture! Stand here and /capture it!", Points[pointid][Name]);
- //Points[pointid][CaptureProccess] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, Points[pointid][Pointx], Points[pointid][Pointy], Points[pointid][Pointz], 10.0, _, _, _, _, _, i);
- Points[pointid][CaptureProccessEx] = 1;
- }
- }
- return 1;
- }
- forward LastAlertPayCheck();
- public LastAlertPayCheck()
- {
- foreach(Player, i)
- {
- if(WasHereForPaycheck[i] == 1 && SignedPaycheck[i] == 0)
- {
- if(GetPVarInt(i, "LAPCReceived") != 1)
- {
- GameTextForPlayer(i, "~w~Type /signcheck", 2500, 1);
- SendClientMessage(i, COLOR_WHITE, "You have one minute left before your paycheck code expires. Please type /signcheck to get your paycheck.");
- SetPVarInt(i, "LAPCReceived", 1);
- }
- }
- }
- SetTimer("DestroyChecks", 60000, false);
- }
- forward DestroyChecks();
- public DestroyChecks()
- {
- foreach(Player, i)
- {
- PayCheckCode[i] = 0;
- if(WasHereForPaycheck[i] == 1 && SignedPaycheck[i] == 0)
- {
- SendClientMessage(i, COLOR_WHITE, "Your paycheck code expired. Please remember to /signcheck next time.");
- if(AdminDuty[i] == 0)
- {
- MissedPaychecks[i]++;
- }
- if(MissedPaychecks[i] >= 2 && AdminDuty[i] == 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has been auto kicked for failing to sign two paychecks in a row.", GetPlayerNameEx(i));
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string, sizeof(string), "AdmWarning: %s has been auto kicked for failing to sign two paychecks in a row.", GetPlayerNameEx(i));
- Log("logs/payfarming.log", string);
- Kick(i);
- }
- }
- WasHereForPaycheck[i] = 0;
- SignedPaycheck[i] = 0;
- DeletePVar(i, "LAPCReceived");
- }
- }
- forward TutorialProgression(playerid);
- public TutorialProgression(playerid)
- {
- Streamer_Update(playerid);
- if(TutorialProgress[playerid] == 1)
- {
- SetPlayerPos(playerid, 2224.411865, -2649.862060, -30.544359);
- SetPlayerCameraPos(playerid, 2268.519531, -2611.522460, 31.097387);
- SetPlayerCameraLookAt(playerid, 2224.411865, -2649.862060, 13.407735);
- TogglePlayerControllable(playerid,0);
- for(new t = 6; t < 11; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 11; t < 15; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 2;
- SetTimerEx("TutorialProgression", 12000, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 2)
- {
- SetPlayerPos(playerid, 1466.24, -1023.05, -80.0);
- SetPlayerCameraPos(playerid, 1502.28, -1044.47, 31.19);
- SetPlayerCameraLookAt(playerid, 1466.24, -1023.05, 23.83);
- TogglePlayerControllable(playerid,0);
- TextDrawShowForPlayer(playerid, TutTxtDraw[15]);
- TutorialProgress[playerid] = 3;
- SetTimerEx("TutorialProgression", 8500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 3)
- {
- SetPlayerPos(playerid, 1504.23, -1700.17, -80.0);
- SetPlayerCameraPos(playerid, 1500.21, -1691.75, 38.38);
- SetPlayerCameraLookAt(playerid, 1541.46, -1676.17, 13.55);
- TogglePlayerControllable(playerid,0);
- for(new t = 11; t < 16; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 16; t < 22; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 4;
- SetTimerEx("TutorialProgression", 14000, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 4)
- {
- SetPlayerPos(playerid, 1201.12, -1324, -80.0);
- SetPlayerCameraPos(playerid, 1207.39, -1294.71, 24.61);
- SetPlayerCameraLookAt(playerid, 1181.72, -1322.65, 13.58);
- TogglePlayerControllable(playerid,0);
- for(new t = 16; t < 22; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 22; t < 27; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 5;
- SetTimerEx("TutorialProgression", 12500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 5)
- {
- SetPlayerPos(playerid, 2489.09, -1669.88, -80.0);
- SetPlayerCameraPos(playerid, 2459.82, -1652.68, 26.45);
- SetPlayerCameraLookAt(playerid, 2489.09, -1669.88, 13.34);
- TogglePlayerControllable(playerid,0);
- for(new t = 22; t < 27; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 27; t < 32; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 6;
- SetTimerEx("TutorialProgression", 12500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 6)
- {
- SetPlayerPos(playerid, 2172.315185, -2263.781250, -60.0);
- SetPlayerCameraPos(playerid, 2206.363769, -2262.568359, 24.240808);
- SetPlayerCameraLookAt(playerid, 2172.315185, -2263.781250, 13.335824);
- TogglePlayerControllable(playerid,0);
- for(new t = 27; t < 32; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 32; t < 37; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 7;
- SetTimerEx("TutorialProgression", 13500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 7)
- {
- SetPlayerPos(playerid, 2351.542724, -1169.992797, -22.303030);
- SetPlayerCameraPos(playerid, 2335.889404, -1148.501586, 34.610519);
- SetPlayerCameraLookAt(playerid, 2351.542724, -1169.992797, 28.041967);
- TogglePlayerControllable(playerid,0);
- for(new t = 32; t < 37; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 37; t < 42; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 8;
- SetTimerEx("TutorialProgression", 10500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 8)
- {
- SetPlayerPos(playerid, 2128.194091, -1132.911865, -14.425248);
- SetPlayerCameraPos(playerid, 2116.651123, -1103.233642, 37.885963);
- SetPlayerCameraLookAt(playerid, 2128.194091, -1132.911865, 25.567047);
- TogglePlayerControllable(playerid,0);
- for(new t = 37; t < 42; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- for(new t = 42; t < 46; t++)
- {
- TextDrawShowForPlayer(playerid, TutTxtDraw[t]);
- }
- TutorialProgress[playerid] = 9;
- SetTimerEx("TutorialProgression", 13500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 9)
- {
- SetPlayerPos(playerid, 2523.063232, -1679.484375, -17.811601);
- SetPlayerCameraPos(playerid, 2508.055908, -1676.983154, 18.012311);
- SetPlayerCameraLookAt(playerid, 2523.063232, -1679.484375, 15.496999);
- TogglePlayerControllable(playerid,0);
- TextDrawShowForPlayer(playerid, TutTxtDraw[46]);
- TextDrawShowForPlayer(playerid, TutTxtDraw[47]);
- TutorialProgress[playerid] = 10;
- SetTimerEx("TutorialProgression", 10500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 10)
- {
- SetPlayerPos(playerid, 1315.601806, -898.753417, -4.157680);
- SetPlayerCameraPos(playerid, 1315.780151, -927.116638, 48.019481);
- SetPlayerCameraLookAt(playerid, 1315.601806, -898.753417, 39.578125);
- TogglePlayerControllable(playerid,0);
- for(new t = 42; t < 48; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- TextDrawShowForPlayer(playerid, TutTxtDraw[48]);
- TextDrawShowForPlayer(playerid, TutTxtDraw[49]);
- TutorialProgress[playerid] = 11;
- SetTimerEx("TutorialProgression", 10500, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 11)
- {
- SetPlayerPos(playerid, 2243.374023, -1664.780517, -38.467826);
- SetPlayerCameraPos(playerid, 2239.001953, -1645.624145, 22.123142);
- SetPlayerCameraLookAt(playerid, 2243.374023, -1664.780517, 15.476562);
- TogglePlayerControllable(playerid,0);
- TextDrawShowForPlayer(playerid, TutTxtDraw[50]);
- TextDrawShowForPlayer(playerid, TutTxtDraw[51]);
- TutorialProgress[playerid] = 12;
- SetTimerEx("TutorialProgression", 10000, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 12)
- {
- SetPlayerPos(playerid, 1970.506103, -1201.447143, -25.074676);
- SetPlayerCameraPos(playerid, 2022.083740, -1308.260620, 80.478797);
- SetPlayerCameraLookAt(playerid, 1970.506103, -1201.447143, 25.596593);
- TogglePlayerControllable(playerid,0);
- TextDrawShowForPlayer(playerid, TutTxtDraw[52]);
- TextDrawShowForPlayer(playerid, TutTxtDraw[53]);
- TutorialProgress[playerid] = 13;
- SetTimerEx("TutorialProgression", 7000, 0, "d", playerid);
- }
- else if(TutorialProgress[playerid] == 13)
- {
- DeletePVar(playerid, "IsFrozen");
- for(new t = 0; t < 54; t++)
- {
- TextDrawHideForPlayer(playerid, TutTxtDraw[t]);
- }
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerPos(playerid, 1773.459350, -1942.273437, 13.569922);
- SetPlayerFacingAngle(playerid, 329.64);
- SetCameraBehindPlayer(playerid);
- InsideTut[playerid] = 0;
- DeletePVar(playerid, "MedicBill");
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- PlayerInfo[playerid][pTut] = 1;
- PlayerInfo[playerid][pSkin] = 299;
- SetPlayerSkin(playerid, 299);
-
- PlayerInfo[playerid][pFormer] = 0;
- PlayerInfo[playerid][pOS] = 0;
- PlayerInfo[playerid][pVintage] = 0;
- PlayerInfo[playerid][pFamed] = 0;
- ClearChatbox(playerid);
- new string[128];
- format(string, sizeof(string), "Welcome to Sleepless Roleplay, %s.", GetPlayerNameEx(playerid));
- SendClientMessage(playerid, COLOR_NEWS, string);
- format(string, sizeof(string), "~w~Welcome~n~~y~%s", GetPlayerNameEx(playerid));
- GameTextForPlayer(playerid, string, 5000, 1);
- SendClientMessage(playerid, COLOR_YELLOW, "If you have any further questions, please use /newb. You can also /report if you see any rule-breakers.");
- new motdstring[128];
- format(motdstring, sizeof(motdstring), "{FFA500}News:{FFFFFF} %s", GlobalMOTD);
- SendClientMessage(playerid, COLOR_WHITE, motdstring);
-
- format(string, sizeof(string), "> {FFA500} %s {FFFF00} has just spawned on Sleepless Roleplay for the first time!", GetPlayerNameEx(playerid));
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pHelper] >= 1 || PlayerInfo[i][pLevel] >= 1)
- {
- SendClientMessageEx(i, COLOR_YELLOW, string);
- }
- }
-
- RefundPlayer(playerid);
-
- WelcomePlayer(playerid);
-
- ShowPlayerDialogEx(playerid, DIALOG_NEWBWELCOME, DIALOG_STYLE_MSGBOX, "{FFFFFF}Welcome to {FFA500}Sleepless Roleplay", "Would you like one of our Senior Helpers to give you a tour of the server?", "Yes", "No");
- TutorialProgress[playerid] = 0;
- TogglePlayerControllable(playerid, true);
- }
- }
- forward SafeLoadObjects(playerid);
- public SafeLoadObjects(playerid)
- {
- Streamer_Update(playerid);
- if(GetPVarType(playerid, "LoadingObjects"))
- {
- DeletePVar(playerid, "LoadingObjects");
- TogglePlayerControllable(playerid, 1);
- TextDrawSetString(ObjectsLoadingTD[1], "OBJECTS LOADED!");
- TextDrawColor(ObjectsLoadingTD[1], COLOR_GREEN);
- TextDrawHideForPlayer(playerid, ObjectsLoadingTD[1]);
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[1]);
- SetTimerEx("SafeLoadObjectsClear", 500, 0, "d", playerid);
- }
- if(GetPVarType(playerid, "MedicCall")) {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
- }
- }
- forward SafeLoadObjectsClear(playerid);
- public SafeLoadObjectsClear(playerid)
- {
- for(new o = 0; o < 2; o++)
- {
- TextDrawHideForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- }
- stock ClearMarriage(playerid)
- {
- if(IsPlayerConnected(playerid)) {
- new string[MAX_PLAYER_NAME];
- format(string, sizeof(string), "Nobody");
- strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
- PlayerInfo[playerid][pMarried] = 0;
- }
- return 1;
- }
- forward VehicleBombDelay(playerid);
- public VehicleBombDelay(playerid)
- {
- new
- string[128],
- name2[MAX_PLAYER_NAME],
- name[MAX_PLAYER_NAME];
- new Float:boomx, Float:boomy, Float:boomz;
- GetPlayerPos(playerid,boomx, boomy, boomz);
- CreateExplosion(boomx, boomy , boomz, 7, 1);
- PlacedVehicleBomb[GetChased[playerid]] = INVALID_VEHICLE_ID;
- new takemoney = PlayerInfo[playerid][pHeadValue] / 4 * 2;
- name = GetPlayerNameEx(playerid);
- GivePlayerCash(GetChased[playerid], takemoney);
- GivePlayerCash(playerid, -takemoney);
- format(string,sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d.",GetPlayerNameEx(GetChased[playerid]),GetPlayerNameEx(playerid),PlayerInfo[playerid][pHeadValue] / 4 * 2);
- SendFamilyMessage(4, COLOR_YELLOW, string);
- format(string,sizeof(string),"You have been critically injured by a hitman and lost $%d!",takemoney);
- ResetPlayerWeaponsEx(playerid);
- // SpawnPlayer(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- foreach(Player, i) {
- name2 = GetPlayerNameEx(i);
- if(!strcmp(PlayerInfo[playerid][pContractBy], name2, true)) {
- if(!IsPlayerStreamedIn(i, playerid)) {
- format(string, sizeof(string), "SMS: The deed (on %s) has been done, Sender: MOLE (555)", name);
- SendClientMessage(i, COLOR_YELLOW, string);
- }
- }
- }
- PlayerInfo[playerid][pHeadValue] = 0;
- strcpy(PlayerInfo[playerid][pContractBy], "Nobody", 64);
- strcpy(PlayerInfo[playerid][pContractDetail], "None", 64);
- PlayerInfo[GetChased[playerid]][pCHits] += 1;
- SetPlayerHealth(playerid, 0.0);
- // KillEMSQueue(playerid);
- GoChase[GetChased[playerid]] = 999;
- PlayerInfo[GetChased[playerid]][pC4Used] = 0;
- PlayerInfo[GetChased[playerid]][pC4] = 0;
- GotHit[playerid] = 0;
- GetChased[playerid] = 999;
- return 1;
- }
- /*forward MenuCamFix(playerid);
- public MenuCamFix(playerid)
- {
- SetCameraBehindPlayer(playerid);
- }*/
- forward OtherTimerEx(playerid, type);
- public OtherTimerEx(playerid, type)
- {
- if(type == TYPE_TPMATRUNTIMER)
- {
- if(GetPVarInt(playerid, "tpMatRunTimer") > 0)
- {
- SetPVarInt(playerid, "tpMatRunTimer", GetPVarInt(playerid, "tpMatRunTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPMATRUNTIMER);
- }
- }
- else if(type == TYPE_TPDRUGRUNTIMER)
- {
- if(GetPVarInt(playerid, "tpDrugRunTimer") > 0)
- {
- SetPVarInt(playerid, "tpDrugRunTimer", GetPVarInt(playerid, "tpDrugRunTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPDRUGRUNTIMER);
- }
- }
- else if(type == TYPE_ARMSTIMER)
- {
- if(GetPVarInt(playerid, "ArmsTimer") > 0)
- {
- SetPVarInt(playerid, "ArmsTimer", GetPVarInt(playerid, "ArmsTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER);
- }
- }
- else if(type == TYPE_GUARDTIMER)
- {
- if(GetPVarInt(playerid, "GuardTimer") > 0)
- {
- SetPVarInt(playerid, "GuardTimer", GetPVarInt(playerid, "GuardTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GUARDTIMER);
- }
- }
- else if(type == TYPE_BETTIMER)
- {
- if(GetPVarInt(playerid, "BetTimer") > 0)
- {
- SetPVarInt(playerid, "BetTimer", GetPVarInt(playerid, "BetTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_BETTIMER);
- }
- }
- else if(type == TYPE_BPTIMER)
- {
- if(GetPVarInt(playerid, "BPTimer") > 0)
- {
- SetPVarInt(playerid, "BPTimer", GetPVarInt(playerid, "BPTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_BPTIMER);
- }
- }
- else if(type == TYPE_GIVEWEAPONTIMER)
- {
- if(GetPVarInt(playerid, "GiveWeaponTimer") > 0)
- {
- SetPVarInt(playerid, "GiveWeaponTimer", GetPVarInt(playerid, "GiveWeaponTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_GIVEWEAPONTIMER);
- }
- }
- else if(type == TYPE_SELLMATSTIMER)
- {
- if(GetPVarInt(playerid, "SellMatsTimer") > 0)
- {
- SetPVarInt(playerid, "SellMatsTimer", GetPVarInt(playerid, "SellMatsTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_SELLMATSTIMER);
- }
- }
- else if(type == TYPE_TPTRUCKRUNTIMER)
- {
- if(GetPVarInt(playerid, "tpTruckRunTimer") > 0)
- {
- SetPVarInt(playerid, "tpTruckRunTimer", GetPVarInt(playerid, "tpTruckRunTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);
- }
- }
- else if(type == TYPE_HOSPITALTIMER)
- {
- if(GetPVarInt(playerid, "HospitalTimer") > 0)
- {
- new Float:curhealth;
- GetPlayerHealth(playerid, curhealth);
- SetPVarInt(playerid, "HospitalTimer", GetPVarInt(playerid, "HospitalTimer")-1);
- SetPlayerHealth(playerid, curhealth+1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_HOSPITALTIMER);
- if(GetPVarInt(playerid, "HospitalTimer") == 0)
- {
- HospitalSpawn(playerid);
- }
- }
- }
- else if(type == TYPE_FLOODPROTECTION)
- {
- if(CommandSpamUnmute[playerid] >= 1)
- {
- CommandSpamUnmute[playerid]--;
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION);
- }
- if(TextSpamUnmute[playerid] >= 1)
- {
- TextSpamUnmute[playerid]--;
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_FLOODPROTECTION);
- }
- }
- else if(type == TYPE_TPPIZZARUNTIMER)
- {
- if(GetPVarInt(playerid, "tpPizzaTimer") > 0 && GetPVarInt(playerid, "Pizza"))
- {
- SetPVarInt(playerid, "tpPizzaTimer", GetPVarInt(playerid, "tpPizzaTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPPIZZARUNTIMER);
- }
- }
- else if(type == TYPE_PIZZATIMER)
- {
- if(GetPVarInt(playerid, "pizzaTimer") == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You failed to deliver the pizza to the house before it got cold!");
- SetPVarInt(playerid, "Pizza", 0);
- DestroyProgressBar(PizzaBar[playerid]);
- DisablePlayerCheckpoint(playerid);
- }
- else if(GetPVarInt(playerid, "Pizza") == 0)
- {
- DestroyProgressBar(PizzaBar[playerid]);
- DisablePlayerCheckpoint(playerid);
- }
- else if(GetPVarInt(playerid, "pizzaTimer") > 0 && GetPVarInt(playerid, "Pizza") > 0)
- {
- SetPVarInt(playerid, "pizzaTimer", GetPVarInt(playerid, "pizzaTimer")-1);
- SetProgressBarValue(PizzaBar[playerid], (GetPVarInt(playerid, "pizzaTimer") * 100.0 / GetPVarInt(playerid, "pizzaTotal")));
- UpdateProgressBar(PizzaBar[playerid], playerid);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_PIZZATIMER);
- }
- }
- else if(type == TYPE_SELLMYTIMER)
- {
- if(GetPVarInt(playerid, "SellMyTimer") > 0)
- {
- SetPVarInt(playerid, "SellMyTimer", GetPVarInt(playerid, "SellMyTimer")-1);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_SELLMYTIMER);
- }
- }
- }
- stock VehicleToPoint(Float:radi, vehicleid, Float:x, Float:y, Float:z)
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetVehiclePos(vehicleid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- return 0;
- }
- encode_tires(tire1, tire2, tire3, tire4)
- {
- return tire1 | (tire2 << 1) | (tire3 << 2) | (tire4 << 3);
- }
- forward AFKick(playerid);
- public AFKick(playerid)
- {
- if(playerTabbed[playerid] != 0)
- {
- playerTabbedTime[playerid]++;
- if(playerTabbedTime[playerid] > 3600 && GetPVarType(playerid, "tabbedVW") == 0) {
- SetPVarInt(playerid, "tabbedVW", GetPlayerVirtualWorld(playerid));
- SetPlayerVirtualWorld(playerid, playerid+1); // so player ID 0 will never be in VW 0, +1.
- }
- SetTimerEx("AFKick",1000,false,"d",playerid);
- }
- return 1;
- }
- forward ReportTimer(reportid);
- public ReportTimer(reportid)
- {
- if(Reports[reportid][BeingUsed] == 1)
- {
- if(Reports[reportid][TimeToExpire] > 0)
- {
- Reports[reportid][TimeToExpire]--;
- if(Reports[reportid][TimeToExpire] == 0)
- {
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_GRAD2, "Your report has expired. You can attempt to report again if you wish.");
- SendClientMessage(Reports[reportid][ReportFrom], COLOR_GRAD2, "But it's recommended you seek additonal help on the forums (www.Serenity)");
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][ReportFrom] = 999;
- return 1;
- }
- Reports[reportid][ReportExpireTimer] = SetTimerEx("ReportTimer", 60000, 0, "d", reportid);
- }
- }
- return 1;
- }
- forward ReplyTimer(reportid);
- public ReplyTimer(reportid)
- {
- Reports[reportid][BeingUsed] = 0;
- Reports[reportid][ReportFrom] = 999;
- Reports[reportid][CheckingReport] = 999;
- }
- forward CaptureTimer(point);
- public CaptureTimer(point)
- {
- new string[128];
- new fam;
- if(Points[point][ClaimerId] != INVALID_PLAYER_ID && Points[point][TimeToClaim])
- {
- new claimer = Points[point][ClaimerId];
- new Float: x, Float: y, Float: z;
- GetPlayerPos(claimer, x, y, z);
- if(Points[point][Capturex] != x || Points[point][Capturey] != y || Points[point][Capturez] != z || GetPVarInt(Points[point][ClaimerId],"Injured") == 1)
- {
- SendClientMessage(Points[point][ClaimerId], COLOR_LIGHTBLUE, "You failed to capture. You either moved or died while attempting to capture.");
- Points[point][ClaimerId] = INVALID_PLAYER_ID;
- Points[point][TimeToClaim] = 0;
- }
- else
- {
- if(Points[point][Vulnerable] > 0)
- {
- SendClientMessage(Points[point][ClaimerId], COLOR_LIGHTBLUE, "You failed to capture. The point was already captured.");
- Points[point][ClaimerId] = INVALID_PLAYER_ID;
- Points[point][TimeToClaim] = 0;
- return 1;
- }
- if(playerTabbed[claimer] != 0)
- {
- SendClientMessage(Points[point][ClaimerId], COLOR_LIGHTBLUE, "You failed to capture. You were alt-tabbed.");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may have possibly alt tabbed to capture a point.", GetPlayerNameEx(claimer), claimer);
- ABroadCast(COLOR_YELLOW, string, 1);
- format(string, sizeof(string), "%s may have possibly alt tabbed to capture a point.", GetPlayerNameEx(claimer));
- AddAutomatedFlag(claimer, string);
- Points[point][ClaimerId] = INVALID_PLAYER_ID;
- Points[point][TimeToClaim] = 0;
- return 1;
- }
- fam = PlayerInfo[claimer][pGang];
- Points[point][PlayerNameCapping] = GetPlayerNameEx(claimer);
- format(string, sizeof(string), "%s is attempting to take over of the %s for %s, they'll own it in %d minutes.", Points[point][PlayerNameCapping], Points[point][Name], FamilyInfo[fam][FamilyName], TIME_TO_TAKEOVER);
- SendClientMessageToAllEx(COLOR_YELLOW, string);
- if(Points[point][CaptureProccessEx] >= 1)
- {
- Points[point][CaptureProccessEx] = 2;
- }
- Points[point][TakeOverTimerStarted] = 1;
- Points[point][TakeOverTimer] = 10;
- Points[point][ClaimerId] = INVALID_PLAYER_ID;
- Points[point][ClaimerTeam] = fam;
- Points[point][TimeToClaim] = 0;
- if(Points[point][CaptureTimerEx2] != -1) KillTimer(Points[point][CaptureTimerEx2]);
- Points[point][CaptureTimerEx2] = SetTimerEx("CaptureTimerEx", 60000, 1, "d", point);
- }
- }
- return 1;
- }
- forward ProgressTimer(point);
- public ProgressTimer(point)
- {
- if(Points[point][ClaimerId] != INVALID_PLAYER_ID && Points[point][TimeToClaim])
- {
- Points[point][TimeLeft]--;
- SetProgressBarValue(Points[point][PointBarID], GetProgressBarValue(Points[point][PointBarID])-10.0);
- UpdateProgressBar(Points[point][PointBarID], Points[point][ClaimerId]);
- if(Points[point][TimeLeft] >= 1) SetTimerEx("ProgressTimer", 1000, 0, "d", point);
- new string[128];
- format(string, sizeof(string), "%s is attempting to capture the point, time left: %d", GetPlayerNameEx(Points[point][ClaimerId]), Points[point][TimeLeft]);
- if(Points[point][TimeLeft] == 9) Points[point][CaptureProgress] = CreateDynamic3DTextLabel(string, COLOR_RED, Points[point][Pointx], Points[point][Pointy], Points[point][Pointz]+1.0, 10.0);
- else if(Points[point][TimeLeft] < 9 && Points[point][TimeLeft] >= 0) UpdateDynamic3DTextLabelText(Points[point][CaptureProgress], COLOR_RED, string);
- if(Points[point][TimeLeft] == 5)
- {
- SetProgressBarColor(Points[point][PointBarID], COLOR_YELLOW);
- UpdateProgressBar(Points[point][PointBarID], Points[point][ClaimerId]);
- }
- else if(Points[point][TimeLeft] == 2)
- {
- SetProgressBarColor(Points[point][PointBarID], COLOR_RED);
- UpdateProgressBar(Points[point][PointBarID], Points[point][ClaimerId]);
- }
- else if(Points[point][TimeLeft] <= 0)
- {
- CaptureTimer(point);
- Points[point][TimeLeft] = 0;
- DestroyProgressBar(Points[point][PointBarID]);
- DestroyDynamic3DTextLabel(Points[point][CaptureProgress]);
- }
- }
- else
- {
- DestroyProgressBar(Points[point][PointBarID]);
- DestroyDynamic3DTextLabel(Points[point][CaptureProgress]);
- Points[point][ClaimerId] = INVALID_PLAYER_ID;
- Points[point][TimeToClaim] = 0;
- }
- return 1;
- }
- forward CaptureTimerEx(point);
- public CaptureTimerEx(point)
- {
- new string[128];
- new fam;
- if(Points[point][TakeOverTimerStarted])
- {
- fam = Points[point][ClaimerTeam];
- if(Points[point][TakeOverTimer] > 0)
- {
- Points[point][TakeOverTimer]--;
- //format(string, sizeof(string), "%s has successfully attempted to take over of %s for %s, it will be theirs in %d minutes!",
- //Points[point][PlayerNameCapping], Points[point][Name], FamilyInfo[fam][FamilyName], Points[point][TakeOverTimer]);
- //UpdateDynamic3DTextLabelText(Points[point][CaptureProccess], COLOR_YELLOW, string);
- }
- else
- {
- Points[point][ClaimerTeam] = INVALID_PLAYER_ID;
- Points[point][TakeOverTimer] = 0;
- Points[point][TakeOverTimerStarted] = 0;
- Points[point][Announced] = 0;
- Points[point][Vulnerable] = NEW_VULNERABLE;
- //DestroyDynamic3DTextLabel(Points[point][CaptureProccess]);
- Points[point][CaptureProccessEx] = 0;
- strmid(Points[point][Owner], FamilyInfo[fam][FamilyName], 0, 32, 32);
- strmid(Points[point][CapperName], Points[point][PlayerNameCapping], 0, 32, 32);
- format(string, sizeof(string), "%s has taken control of the %s for %s.", Points[point][CapperName], Points[point][Name], Points[point][Owner]);
- SendClientMessageToAllEx(COLOR_YELLOW, string);
- UpdatePoints();
- KillTimer(Points[point][CaptureTimerEx2]);
- Points[point][CaptureTimerEx2] = -1;
- }
- }
- }
- stock SurfingCheck(vehicleid)
- {
- foreach(Player, p)
- {
- if(GetPlayerSurfingVehicleID(p) == vehicleid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(p, x, y, z);
- SetPVarFloat(p, "tempPosX", x);
- SetPVarFloat(p, "tempPosY", x);
- SetPVarFloat(p, "tempPosZ", x);
- SetTimerEx("SurfingFix", 2000, 0, "i", p);
- }
- }
- }
- forward SurfingFix(playerid);
- public SurfingFix(playerid)
- {
- SetPlayerPos(playerid, GetPVarFloat(playerid, "tmpPosX"), GetPVarFloat(playerid, "tmpPosY"), GetPVarFloat(playerid, "tmpPosZ"));
- DeletePVar(playerid, "tmpPosX");
- DeletePVar(playerid, "tmpPosY");
- DeletePVar(playerid, "tmpPosZ");
- return 1;
- }
- forward PutPlayerInVeh(playerid, car);
- public PutPlayerInVeh(playerid, car)
- {
- PutPlayerInVehicle(playerid, car, 0);
- return 1;
- }
- forward DrinkCooldown(playerid);
- public DrinkCooldown(playerid)
- {
- SetPVarInt(playerid, "DrinkCooledDown", 1);
- return 1;
- }
- forward RadarCooldown(playerid);
- public RadarCooldown(playerid)
- {
- DeletePVar(playerid, "RadarTimeout");
- return 1;
- }
- // Timer Name: PayMusic(playerid)
- Delay:PayMusic[3000, i](playerid)
- {
- PlayerPlaySound(playerid, SOUND_MUSIC1, 2050.1995, 1344.5500, 13.2378); //Music Off
- return 1;
- }
- // Timer Name: SkinDelay(playerid)
- Delay:SkinDelay[2000, i](playerid)
- {
- if(PlayerInfo[playerid][pJailed] == 3 || PlayerInfo[playerid][pJailed] == 4)
- {
- SetPlayerSkin(playerid, 50);
- ClearAnimations(playerid);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- return 1;
- }
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- ClearAnimations(playerid);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- return 1;
- }
- // Timer Name: NOPCheck(playerid)
- Delay:NOPCheck[5000, i](playerid)
- {
- if(GetPlayerState(playerid) != 2) NOPTrigger[playerid] = 0;
- new newcar = GetPlayerVehicleID(playerid);
- if(PlayerInfo[playerid][pAdmin] > 4 || GetPlayerState(playerid) != 2) return 1;
- else if(IsACopCar(newcar) && PlayerInfo[playerid][pFaction] != 1 && PlayerInfo[playerid][pLeader] != 1) ExecuteNOPAction(playerid);
- else if(IsAFBICar(newcar) && PlayerInfo[playerid][pFaction] != 2 && PlayerInfo[playerid][pLeader] != 2) ExecuteNOPAction(playerid);
- else if(IsAnAmbulance(newcar) && PlayerInfo[playerid][pFaction] != 3 && PlayerInfo[playerid][pLeader] != 3) ExecuteNOPAction(playerid);
- else if(IsAGovCar(newcar) && PlayerInfo[playerid][pFaction] != 5 && PlayerInfo[playerid][pLeader] != 5) ExecuteNOPAction(playerid);
- else if(IGMAVeh(newcar) && PlayerInfo[playerid][pFaction] != 9 && PlayerInfo[playerid][pLeader] != 9) ExecuteNOPAction(playerid);
- else if(IsATruckerCar(newcar) && PlayerInfo[playerid][pJob] != 20 && PlayerInfo[playerid][pJob2] != 20) ExecuteNOPAction(playerid);
- else if(IsAPizzaCar(newcar) && PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21) ExecuteNOPAction(playerid);
- else if(IsAPlane(newcar) && (PlayerInfo[playerid][pFlyLic] != 1)) ExecuteNOPAction(playerid);
- return 1;
- }
- // Timer Name: ServerMicrobeat()
- // TickRate: 400 Milliseconds
- Timer:ServerMicrobeat[400]()
- {
- new
- Float: fCurrentSpeed,
- iVehicle,
- arrDamage[4],
- szSpeed[42];
- foreach(Player, i)
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- if(arr_Towing[i] != INVALID_VEHICLE_ID) {
- if(GetVehicleModel(arr_Towing[i]) && IsVehicleStreamedIn(arr_Towing[i], i)) AttachTrailerToVehicle(arr_Towing[i], GetPlayerVehicleID(i));
- else arr_Towing[i] = INVALID_VEHICLE_ID;
- }
- fCurrentSpeed = player_get_speed(i);
- if(PlayerInfo[i][pSpeedo] != 0 && FindTimePoints[i] == 0) {
- format(szSpeed, sizeof(szSpeed),"~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~%.0f MPH", fCurrentSpeed);
- GameTextForPlayer(i, szSpeed, 1500, 3);
-
- new string[128];
- format(string, sizeof(string), "SPEED: %.0f", player_get_speed(i));
- PlayerTextDrawSetString(i, Textdraw0[i], string);
- }
-
- iVehicle = GetPlayerVehicleID(i);
- for(new x = 0; x < sizeof(SpikeStrips); ++x) if(SpikeStrips[x][sX] != 0 && GetVehicleDistanceFromPoint(iVehicle, SpikeStrips[x][sX], SpikeStrips[x][sY], SpikeStrips[x][sZ]) <= 3.5) {
- GetVehicleDamageStatus(iVehicle, arrDamage[0], arrDamage[1], arrDamage[2], arrDamage[3]);
- arrDamage[3] = encode_tires(1, 1, 1, 1);
- UpdateVehicleDamageStatus(iVehicle, arrDamage[0], arrDamage[1], arrDamage[2], arrDamage[3]);
- }
- }
- }
- }
- Timer:BusinessTime[1000]()
- {
- for(new idx = 1; idx < sizeof(BusinessInfo); idx++)//Creates a loop, that goes through all of the businesses.
- {
- if(BusinessInfo[idx][bPrice] != 0)
- {
- SaveBusiness(idx);
- }
- }
- }
-
- Timer:Paintball[1000]()
- {
- for(new f = 0; f < 10; f++) {
- if(gaPaintballGameTimeRemaining[f] > 0) {
- gaPaintballGameTimeRemaining[f]--;
- new
- //szScoreText[512],
- szWinner[128],
- szMessage[128];
- if(gaPaintballGameTimeRemaining[f] == 1) {
- new
- Float: fHighestScore,
- iHighestScorer = INVALID_PLAYER_ID;
- foreach(Player, x) {
- new kills = GetPVarInt(x, "PBMK");
- new deaths = GetPVarInt(x, "PBMD");
- new score;
- score = kills - deaths;
- if(score > fHighestScore && GetPVarInt(x, "PBM") == f) {
- fHighestScore = score;
- iHighestScorer = x;
- }
- }
- if(iHighestScorer != INVALID_PLAYER_ID) { // just in case no valid player won
-
- new kills = GetPVarInt(iHighestScorer, "PBMK");
- new deaths = GetPVarInt(iHighestScorer, "PBMD");
- new fkills = kills / 5;
- new fdeaths = deaths / 5;
- new score;
- score = kills - deaths;
- format(szWinner, sizeof(szWinner), "The winner of the round is %s! (%d kills, %d deaths, score of %d)", GetPlayerNameEx(iHighestScorer), fkills, fdeaths, score);
- } else {
- format(szWinner, sizeof(szWinner), "No winner this time around!");
- }
- /*new
- scIt;
- foreach(Player, x) {
- PlayerRatio[scIt][iKills] = GetPVarInt(x, "PBMK");
- PlayerRatio[scIt][iPlayerID] = x;
- scIt++;
- }
- HighScores(PlayerRatio, 0, MAX_PLAYERS);
- new
- iterator,
- iterator2;
- format(szScoreText, sizeof(szScoreText), "The scoreboard is as follows:\n\n");
- foreach(Player, x) {
- SendClientMessageToAll(COLOR_YELLOW, szScoreText);
- print(szScoreText);
- iterator2++;
- if(GetPVarInt(x, "PBM") == f) {
- iterator++;
- format(szScoreText, sizeof(szScoreText), "%s%d. %s - %d kills, %d deaths\n", szScoreText, iterator, GetPlayerNameEx(PlayerRatio[iterator][iPlayerID]), PlayerRatio[iterator][iKills], GetPVarInt(PlayerRatio[iterator][iPlayerID], "PBMD"));
- }
- }*/
- }
- foreach(Player, playerid) {
- if(GetPVarInt(playerid, "PBM") == f) {
- switch(gaPaintballGameTimeRemaining[f]) {
- case 9: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 8", 1000, 3);
- case 8: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 7", 1000, 3);
- case 7: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 6", 1000, 3);
- case 6: {
- GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 5", 1000, 3);
- TogglePlayerControllable(playerid, false);
- }
- case 5: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 4", 1000, 3);
- case 4: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 3", 1000, 3);
- case 3: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~g~ 2", 1000, 3);
- case 2: GameTextForPlayer(playerid, "~r~ Game ends in...~n~ ~y~ 1", 1000, 3);
- case 1: {
- GameTextForPlayer(playerid, "~r~ Game ~r~over!", 2000, 3);
- SendClientMessage(playerid, COLOR_RED, "Game over!");
- SetPlayerPos(playerid, 1941.301635,-1695.501098,-26.661914);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- for(new o = 0; o < 2; o++)
- {
- TextDrawShowForPlayer(playerid, ObjectsLoadingTD[o]);
- }
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 3000, 0, "d", playerid);
- //ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Scoreboard (in order of kills)", szScoreText, "OK", "");
- new kills = GetPVarInt(playerid, "PBMK");
- new deaths = GetPVarInt(playerid, "PBMD");
- new fkills = kills / 5;
- new fdeaths = deaths / 5;
- new score;
- score = kills - deaths;
- SendClientMessage(playerid, COLOR_ORANGE, szWinner);
- format(szMessage, sizeof(szMessage), "You gained %d kills and you died %d times (Score: %d).", fkills, fdeaths, score);
- SendClientMessage(playerid, COLOR_WHITE, szMessage);
- DeletePVar(playerid, "PBM");
- DeletePVar(playerid, "PBMK");
- DeletePVar(playerid, "PBMD");
- if(GetPVarType(playerid, "PBMT") != 0) {
- SetPlayerToTeamColor(playerid);
- DeletePVar(playerid, "PBMT");
- }
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "pbhealth"));
- SetPlayerArmourEx(playerid, GetPVarFloat(playerid, "pbarmour"));
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pAGuns][0] = 0;
- PlayerInfo[playerid][pAGuns][1] = 0;
- PlayerInfo[playerid][pAGuns][2] = 0;
- PlayerInfo[playerid][pAGuns][3] = 0;
- PlayerInfo[playerid][pAGuns][4] = 0;
- PlayerInfo[playerid][pAGuns][5] = 0;
- PlayerInfo[playerid][pAGuns][6] = 0;
- PlayerInfo[playerid][pAGuns][7] = 0;
- PlayerInfo[playerid][pAGuns][8] = 0;
- PlayerInfo[playerid][pAGuns][9] = 0;
- PlayerInfo[playerid][pAGuns][10] = 0;
- PlayerInfo[playerid][pAGuns][11] = 0;
- SetPlayerWeapons(playerid);
- DeletePVar(playerid, "pbhealth");
- DeletePVar(playerid, "pbarmour");
- }
- }
- }
- }
- }
- }
- }
- // Timer Name: ServerHeartbeat()
- // TickRate: 1 secs.
- Timer:ServerHeartbeat[1000]()
- {
- foreach(Player, i)
- {
- if(playerTabbed[i] != 1) switch(PlayerInfo[i][pLevel])
- {
- case 0 .. 2: PlayerInfo[i][pPayCheck] += 1;
- case 3 .. 4: PlayerInfo[i][pPayCheck] += 2;
- case 5 .. 6: PlayerInfo[i][pPayCheck] += 3;
- case 7 .. 8: PlayerInfo[i][pPayCheck] += 4;
- case 9 .. 10: PlayerInfo[i][pPayCheck] += 5;
- case 11 .. 12: PlayerInfo[i][pPayCheck] += 6;
- case 13 .. 14: PlayerInfo[i][pPayCheck] += 7;
- case 15 .. 16: PlayerInfo[i][pPayCheck] += 8;
- case 17 .. 18: PlayerInfo[i][pPayCheck] += 9;
- case 19 .. 20: PlayerInfo[i][pPayCheck] += 10;
- default: PlayerInfo[i][pPayCheck] += 11;
- }
- if(GetPVarType(i, "DistortAim") != 0) {
- if(GetPlayerSurfingVehicleID(i) == INVALID_VEHICLE_ID) {
- DeletePVar(i, "DistortAim");
- SetPlayerDrunkLevel(i, 0);
- }
- }
- if(GetPlayerSurfingVehicleID(i) != INVALID_VEHICLE_ID) {
- if(GetVehicleSpeedByVehicleID(GetPlayerSurfingVehicleID(i)) > 7) {
- if(GetPVarType(i, "DistortAim") == 0) {
- switch(GetVehicleModel(GetPlayerSurfingVehicleID(i))) {
- case 422, 478, 543, 554, 600, 605, 607, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454: {
- SetPVarInt(i, "DistortAim", 1);
- SetPlayerDrunkLevel(i, 35000);
- }
- default: {
- GetPlayerPos(i, PlayerInfo[i][pPos_x], PlayerInfo[i][pPos_y], PlayerInfo[i][pPos_z]);
- SetPlayerPos(i, PlayerInfo[i][pPos_x], PlayerInfo[i][pPos_y]+1.5, PlayerInfo[i][pPos_z]);
- GameTextForPlayer(i, "~r~ You slipped off!", 1500, 3);
- }
- }
- }
- }
- }
- if(PlayerInfo[i][pJailed] > 0)
- {
- if(PlayerInfo[i][pJailTime] > 0)
- {
- if(playerTabbed[i] != 1)
- {
- PlayerInfo[i][pJailTime]--;
- }
- }
- if(PlayerInfo[i][pJailTime] <= 0)
- {
- PlayerInfo[i][pJailTime] = 0;
- if(PlayerInfo[i][pJailed] == 1)
- {
- SetPlayerInterior(i, 6);
- PlayerInfo[i][pInt] = 6;
- SetPlayerPos(i, 268.420379, 78.474227, 1001.039062);
- SetPlayerVirtualWorld(i, 20002);
- PlayerInfo[i][pVW] = 20002;
- SetPlayerFacingAngle(i,0.68);
- }
- else if(PlayerInfo[i][pJailed] == 2)
- {
- SetPlayerInterior(i, 0);
- PlayerInfo[i][pInt] = 0;
- SetPlayerVirtualWorld(i, 0);
- PlayerInfo[i][pVW] = 0;
- SetPlayerPos(i,343.1081,-1521.4404,33.2985);
- }
- else if(PlayerInfo[i][pJailed] == 3)
- {
- SetPlayerInterior(i, 0);
- PlayerInfo[i][pInt] = 0;
- SetPlayerVirtualWorld(i, 0);
- PlayerInfo[i][pVW] = 0;
- SetPlayerPos(i,1529.6,-1691.2,13.3);
- strcpy(PlayerInfo[i][pPrisonedBy], "Nobody", 64);
- strcpy(PlayerInfo[i][pPrisonReason], "None", 64);
- }
- else if(PlayerInfo[i][pJailed] == 4)
- {
- SetPlayerInterior(i, 0);
- PlayerInfo[i][pInt] = 0;
- SetPlayerVirtualWorld(i, 0);
- PlayerInfo[i][pVW] = 0;
- SetPlayerPos(i,1529.6,-1691.2,13.3);
- }
- PlayerInfo[i][pJailed] = 0;
- PhoneOnline[i] = 0;
- SendClientMessage(i, COLOR_GRAD1," You have paid your debt to society.");
- GameTextForPlayer(i, "~g~Freedom~n~~w~Try to be a better citizen", 5000, 1);
- ClearCrime(i);
- SetPlayerToTeamColor(i);
- }
- }
- if(IsPlayerInAnyVehicle(i))
- {
- new newcar = GetPlayerVehicleID(i);
- new strings[128];
- new Float:vhp;
- GetVehicleHealth(newcar, vhp);
- format(strings, sizeof(strings), "HEALTH: %.0f SPEED: %.0f MPH", vhp, player_get_speed(i));
- PlayerTextDrawSetString(i, Textdraw0[i], strings);
- format(strings, sizeof(strings), "%s", GetVehicleName(newcar));
- PlayerTextDrawSetString(i, Textdraw1[i], strings);
- }
- if(CommandSpamTimes[i] != 0)
- {
- CommandSpamTimes[i]--;
- }
- if(TextSpamTimes[i] != 0)
- {
- TextSpamTimes[i]--;
- }
-
- if(PlayerDragged[i] == 1) {
- if (PlayerDraggedBy[i] != INVALID_PLAYER_ID && IsCopDragging[PlayerDraggedBy[i]] == i) {
- if (!IsPlayerInAnyVehicle(i) && !IsPlayerInAnyVehicle(PlayerDraggedBy[i])) {
- new Float:gx,Float:gy,Float:gz;
- GetPlayerPos(PlayerDraggedBy[i], gx, gy, gz);
- Streamer_UpdateEx(i, gx, gy, gz);
- if (GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(PlayerDraggedBy[i])) {
- SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(PlayerDraggedBy[i]));
- PlayerInfo[i][pVW] = GetPlayerVirtualWorld(PlayerDraggedBy[i]);
- }
- if (GetPlayerInterior(i) != GetPlayerInterior(PlayerDraggedBy[i])) {
- SetPlayerInterior(i,GetPlayerInterior(PlayerDraggedBy[i]));
- PlayerInfo[i][pInt] = GetPlayerInterior(PlayerDraggedBy[i]);
- }
- SetPlayerPos(i, gx, gy+1, gz);
- GameTextForPlayer(i, "BEING DRAGGED...", 5000, 3);
- } else PlayerDragged[i] = 0;
- } else PlayerDragged[i] = 0;
- }
- if(IsPlayerInAnyVehicle(i))
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(i, 0);
- else if(PlayerInfo[i][pGuns][4] == 0) SetPlayerArmedWeapon(i, 0);
- else SetPlayerArmedWeapon(i, 29);
- }
- if(InsideMainMenu[i] == 1) {
- new string[128];
- format(string, sizeof(string), "Players online: %d", Iter_Count(Player));
- TextDrawSetString(MainMenuTxtdraw[11], string);
- }
- if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && JetPack[i] == 0 && AdminDuty[i] != 1) {
- new string[74 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be jetpack hacking.", GetPlayerNameEx(i), i);
- ABroadCast(COLOR_YELLOW, string, 2);
- SetPVarInt(i, "jphW", GetPVarInt(i, "jphW")+1);
- if(GetPVarInt(i, "jphW") >= 3) {
- format(string, sizeof(string), "%s may possibly have jetpack hacked.", GetPlayerNameEx(i));
- AddAutomatedFlag(i, string);
- format(string, sizeof(string), "%s (ID %d) may possibly be jetpack hacking.", GetPlayerNameEx(i), i);
- Log("logs/hack.log", string);
- }
- }
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER && AdminDuty[i] != 1 && !IsAPlane(GetPlayerVehicleID(i))) {
- new Float:fCurrentSpeed;
- fCurrentSpeed = player_get_speed(i);
- fVehSpeed[i] = fCurrentSpeed;
- if(fCurrentSpeed > 200) {
- new string[74 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be speed hacking (%.0f MPH).", GetPlayerNameEx(i), i, fCurrentSpeed);
- ABroadCast(COLOR_YELLOW, string, 2);
- SetPVarInt(i, "shW", GetPVarInt(i, "shW")+1);
- if(GetPVarInt(i, "shW") >= 3) {
- format(string, sizeof(string), "%s may possibly have speed hacked (speeds of %.0f MPH).", GetPlayerNameEx(i), fCurrentSpeed);
- AddAutomatedFlag(i, string);
- }
- }
- }
- if(UsedFind[i] >= 1)
- --UsedFind[i];
- if(FindTime[i] >= 1) {
- if(FindTime[i] == FindTimePoints[i]) { FindTime[i] = 0; FindTimePoints[i] = 0; SetPlayerMarkerForPlayer(i, FindingPlayer[i], 0xFFFFFF00); FindingPlayer[i] = -1; PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- new string[32];
- format(string, sizeof(string), "%d", FindTimePoints[i] - FindTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- FindTime[i] += 1;
- }
- }
- if(CalledCops[i] >= 1)
- {
- if(CopsCallTime[i] < 1) { CopsCallTime[i] = 0; HidePlayerBeaconForCops(i); CalledCops[i] = 0; }
- else
- {
- CopsCallTime[i]--;
- }
- }
- if(CalledMedics[i] >= 1)
- {
- if(MedicsCallTime[i] < 1) { MedicsCallTime[i] = 0; HidePlayerBeaconForMedics(i); CalledMedics[i] = 0; }
- else
- {
- MedicsCallTime[i]--;
- }
- }
-
- if(PlayerSweeping[i] == 1)
- {
- if (!IsASweeper(GetPlayerVehicleID(i)))
- {
- PlayerSweeping[i] = 0;
- SweeperTime[i] = 0;
- SendClientMessage(i, COLOR_LIGHTBLUE, "You are no longer Street Sweeping as you've exited the vehicle.");
- }
- SweeperTime[i] ++;
- if (SweeperTime[i] > 1) {
- new Float:creward = GetDistanceBetweenPlayerToPoint(i, fSweeperPos[i][0], fSweeperPos[i][1], fSweeperPos[i][2]);
- new cash = floatround(creward);
- SweeperDistance[i] += cash;
- GetPlayerPos(i, fSweeperPos[i][0], fSweeperPos[i][1], fSweeperPos[i][2]);
- }
- if (SweeperTime[i] == 60) {
- SweeperTime[i] = 0;
- new payout = SweeperDistance[i]/5,
- szMessage[128];
- if(payout > 150) payout = 150;
- GivePlayerCash(i, payout);
- format(szMessage, sizeof(szMessage), "You have earned $%d for your Street Sweeping duties.", payout);
- SendClientMessage(i, COLOR_LIGHTBLUE, szMessage);
- SweeperDistance[i] = 0;
- }
- }
-
- if(NewbieTimer[i] > 0)
- {
- NewbieTimer[i]--;
- }
- if(GlobalChatTimer[i] > 0)
- {
- GlobalChatTimer[i]--;
- }
- if(JustReported[i] > 0)
- {
- JustReported[i]--;
- }
- if(TaxiCallTime[i] > 0)
- {
- if(TaxiAccepted[i] < 999)
- {
- if(IsPlayerConnected(TaxiAccepted[i]))
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(TaxiAccepted[i], X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
-
- if(EMSCallTime[i] > 0)
- {
- if(EMSAccepted[i] < 999)
- {
- if(IsPlayerConnected(EMSAccepted[i]))
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(EMSAccepted[i], X, Y, Z);
- new zone[MAX_ZONE_NAME];
- Get3DZone(X, Y, Z, zone, sizeof(zone));
- new string[128];
- format(string, sizeof(string), "Your patient is located in %s.", zone);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- if(BusCallTime[i] > 0)
- {
- if(BusAccepted[i] < 999)
- {
- if(IsPlayerConnected(BusAccepted[i]))
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(BusAccepted[i], X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- }
- }
- }
- if(MedicCallTime[i] > 0)
- {
- if(MedicCallTime[i] == 45) { MedicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- new string[128];
- format(string, sizeof(string), "%d", 45 - MedicCallTime[i]);
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(MedicAccepted[i], X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5);
- GameTextForPlayer(i, string, 1500, 6);
- MedicCallTime[i] += 1;
- }
- }
- if(MechanicCallTime[i] > 0)
- {
- if(MechanicCallTime[i] == 30) { MechanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
- else
- {
- new string[128];
- format(string, sizeof(string), "%d", 30 - MechanicCallTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- MechanicCallTime[i] += 1;
- }
- }
- if(PlayerInfo[i][pMechTime] > 0) PlayerInfo[i][pMechTime]--;
- if(PlayerInfo[i][pLawyerTime] > 0) PlayerInfo[i][pLawyerTime]--;
- if(PlayerInfo[i][pLawyerFreeTime] > 0) PlayerInfo[i][pLawyerFreeTime]--;
- if(PlayerInfo[i][pDrugsTime] > 0) PlayerInfo[i][pDrugsTime]--;
- if(PlayerInfo[i][pGCMuted] == 2 && PlayerInfo[i][pGCMutedTime] < 1)
- {
- PlayerInfo[i][pGCMuted] = 0;
- }
- if(PlayerInfo[i][pGCMuted] > 1) PlayerInfo[i][pGCMutedTime]--;
- if(PlayerInfo[i][pRMuted] == 2 && PlayerInfo[i][pRMutedTime] < 1)
- {
- PlayerInfo[i][pRMuted] = 0;
- }
- if(PlayerInfo[i][pRMuted] > 1) PlayerInfo[i][pRMutedTime]--;
- if(PlayerInfo[i][pCarTime] > 0)
- {
- if(PlayerInfo[i][pCarTime] <= 0)
- {
- PlayerInfo[i][pCarTime] = 0;
- }
- else
- {
- PlayerInfo[i][pCarTime] -= 1;
- }
- }
- if(PlayerInfo[i][pSexTime] > 0)
- {
- if(PlayerInfo[i][pSexTime] <= 0)
- {
- PlayerInfo[i][pSexTime] = 0;
- }
- else
- {
- PlayerInfo[i][pSexTime] -= 1;
- }
- }
- if(WantLawyer[i] >= 1)
- {
- CallLawyer[i] = 111;
- if(WantLawyer[i] == 1)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
- }
- WantLawyer[i] ++;
- if(WantLawyer[i] == 8)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
- }
- if(WantLawyer[i] == 15)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Do you want a Lawyer? (Type yes or no)");
- }
- if(WantLawyer[i] == 20)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "There is no Lawyer available to you anymore.");
- WantLawyer[i] = 0;
- CallLawyer[i] = 0;
- }
- }
- if(PlayerStoned[i] >= 3)
- {
- PlayerStoned[i] += 1;
- SetPlayerDrunkLevel(i, 40000);
- if(PlayerStoned[i] == 50)
- {
- PlayerStoned[i] = 0;
- SetPlayerDrunkLevel(i, 0);
- SendClientMessage(i, COLOR_GRAD1, "You're no longer stoned!");
- }
- }
- if(BoxWaitTime[i] > 0)
- {
- if(BoxWaitTime[i] >= BoxDelay)
- {
- BoxDelay = 0;
- BoxWaitTime[i] = 0;
- PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
- GameTextForPlayer(i, "~g~Match Started", 5000, 1);
- TogglePlayerControllable(i, 1);
- RoundStarted = 1;
- }
- else
- {
- new string[32];
- format(string, sizeof(string), "%d", BoxDelay - BoxWaitTime[i]);
- GameTextForPlayer(i, string, 1500, 6);
- BoxWaitTime[i] += 1;
- }
- }
- if(RoundStarted > 0)
- {
- if(PlayerBoxing[i] > 0)
- {
- new trigger = 0;
- new Lost = 0;
- new Float:angle;
- new Float:health;
- GetPlayerHealth(i, health);
- if(health < 12)
- {
- if(i == Boxer1) { Lost = 1; trigger = 1; }
- else if(i == Boxer2) { Lost = 2; trigger = 1; }
- }
- if(health < 28) { GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 85); }
- if(trigger)
- {
- new string[128];
- new winner[MAX_PLAYER_NAME];
- new loser[MAX_PLAYER_NAME];
- if(Lost == 1)
- {
- if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
- {
- if(IsPlayerInRangeOfPoint(Boxer1,25.0,765.952270, 4.167977, 1000.719238) || IsPlayerInRangeOfPoint(Boxer2,25.0,765.952270, 4.167977, 1000.719238))
- {
- SetPlayerPos(Boxer1, 765.952270, 4.167977, 1000.719238); SetPlayerPos(Boxer2, 765.952270, 4.167977, 1000.719238);
- SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
- GetPlayerName(Boxer1, loser, sizeof(loser));
- GetPlayerName(Boxer2, winner, sizeof(winner));
- SetPlayerWeapons(Boxer1);
- SetPlayerWeapons(Boxer2);
- if(PlayerInfo[Boxer1][pJob] == 12 || PlayerInfo[Boxer1][pJob2] == 12) { PlayerInfo[Boxer1][pLoses] += 1; }
- if(PlayerInfo[Boxer2][pJob] == 12 || PlayerInfo[Boxer1][pJob2] == 12) { PlayerInfo[Boxer2][pWins] += 1; }
- format(string, sizeof(string), "* You have Lost the Fight against %s.", winner);
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer1, "~r~You lost", 3500, 1);
- format(string, sizeof(string), "* You have Won the Fight against %s.", loser);
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer2, "~r~You won", 3500, 1);
- if(GetPlayerHealth(Boxer1, health) < 20)
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer1, 30.0);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer1, 50.0);
- }
- if(GetPlayerHealth(Boxer2, health) < 20)
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer2, 30.0);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer2, 50.0);
- }
- GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
- if(PlayerInfo[Boxer2][pJob] == 12 || PlayerInfo[Boxer2][pJob2] == 12) {
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour))
- {
- PlayerInfo[Boxer2][pBoxSkill] += 2;
- SendClientMessage(Boxer2, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else
- {
- SendClientMessage(Boxer2, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[Boxer2][pBoxSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[Boxer2][pBoxSkill]++;
- }
- }
- PlayerBoxing[Boxer1] = 0;
- PlayerBoxing[Boxer2] = 0;
- }
- }
- }
- else if(Lost == 2)
- {
- if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
- {
- if(IsPlayerInRangeOfPoint(Boxer1,25.0,765.952270, 4.167977, 1000.719238) || IsPlayerInRangeOfPoint(Boxer2,25.0, 765.952270, 4.167977, 1000.719238))
- {
- SetPlayerPos(Boxer1, 765.952270, 4.167977, 1000.719238); SetPlayerPos(Boxer2, 765.952270, 4.167977, 1000.719238);
- SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
- GetPlayerName(Boxer1, winner, sizeof(winner));
- GetPlayerName(Boxer2, loser, sizeof(loser));
- SetPlayerWeapons(Boxer1);
- SetPlayerWeapons(Boxer2);
- if(PlayerInfo[Boxer2][pJob] == 12 || PlayerInfo[Boxer2][pJob2] == 12) { PlayerInfo[Boxer2][pLoses] += 1; }
- if(PlayerInfo[Boxer1][pJob] == 12 || PlayerInfo[Boxer1][pJob2] == 12) { PlayerInfo[Boxer1][pWins] += 1; }
- format(string, sizeof(string), "* You have Lost the Fight against %s.", winner);
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer2, "~r~You lost", 3500, 1);
- format(string, sizeof(string), "* You have Won the Fight against %s.", loser);
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
- GameTextForPlayer(Boxer1, "~g~You won", 3500, 1);
- if(GetPlayerHealth(Boxer1, health) < 20)
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer1, 30.0);
- }
- else
- {
- SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer1, 50.0);
- }
- if(GetPlayerHealth(Boxer2, health) < 20)
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel exhausted from the Fight, go eat somewhere.");
- SetPlayerHealth(Boxer2, 30.0);
- }
- else
- {
- SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* You feel perfect, even after the Fight.");
- SetPlayerHealth(Boxer2, 50.0);
- }
- GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Match Over", 5000, 1);
- if(DoubleXP == 1)
- {
- new hour,minuite,second;
- gettime(hour,minuite,second);
- if(DoubleEXPcheck(hour)){
- PlayerInfo[Boxer1][pBoxSkill] += 2;
- SendClientMessage(Boxer2, COLOR_YELLOW, "* You have gained two skill points for this job due to double experience.");
- }
- /*else {
- SendClientMessage(Boxer2, COLOR_YELLOW, "* You have only gained one skill point for this job since it's not within the double experience hours.");
- PlayerInfo[Boxer1][pBoxSkill]++;
- }*/
- }
- else
- {
- PlayerInfo[Boxer1][pBoxSkill]++;
- }
- PlayerBoxing[Boxer1] = 0;
- PlayerBoxing[Boxer2] = 0;
- }
- }
- }
- InRing = 0;
- RoundStarted = 0;
- Boxer1 = INVALID_PLAYER_ID;
- Boxer2 = INVALID_PLAYER_ID;
- trigger = 0;
- }
- }
- }
- if(PlayerCuffed[i] == 1)
- {
- if(PlayerCuffedTime[i] <= 0)
- {
- //Frozen[i] = 0;
- SetPVarInt(i, "IsFrozen", 0);
- TogglePlayerControllable(i, 1);
- PlayerCuffed[i] = 0;
- SetPVarInt(i, "PlayerCuffed", 0);
- PlayerCuffedTime[i] = 0;
- ClearAnimations(i);
- SetPlayerSkin(i, GetPlayerSkin(i));
- SetPlayerSpecialAction(i, SPECIAL_ACTION_NONE);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(i, X, Y, Z);
- SetPlayerPos(i, X, Y, Z);
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- if(PlayerCuffed[i] == 2)
- {
- if(PlayerCuffedTime[i] <= 0)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(i, X, Y, Z);
- new copinrange;
- foreach(Player, j)
- {
- if(IsPlayerInRangeOfPoint(j, 30, X, Y, Z) && IsACop(j))
- {
- copinrange = 1;
- }
- }
- if(copinrange == 0)
- {
- //Frozen[i] = 0;
- DeletePVar(i, "IsFrozen");
- GameTextForPlayer(i, "~r~You broke the cuffs, you're free!", 2500, 3);
- TogglePlayerControllable(i, 1);
- PlayerCuffed[i] = 0;
- DeletePVar(i, "PlayerCuffed");
- PlayerCuffedTime[i] = 0;
- }
- else
- {
- PlayerCuffedTime[i] = 60;
- }
- }
- else
- {
- PlayerCuffedTime[i] -= 1;
- }
- }
- if(TransportDriver[i] < 999)
- {
- if(GetPlayerVehicleID(i) != GetPlayerVehicleID(TransportDriver[i]) || !TransportDuty[TransportDriver[i]])
- {
- if(IsPlayerConnected(TransportDriver[i]))
- {
- TransportMoney[TransportDriver[i]] += TransportCost[i];
- TransportTime[TransportDriver[i]] = 0;
- TransportCost[TransportDriver[i]] = 0;
- new string[36];
- format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[i]);
- GameTextForPlayer(TransportDriver[i], string, 5000, 1);
- TransportDriver[i] = 999;
- }
- }
- else if(TransportTime[i] >= 16)
- {
- TransportTime[i] = 1;
- if(TransportDriver[i] < 999)
- {
- if(IsPlayerConnected(TransportDriver[i]))
- {
- TransportCost[i] += TransportValue[TransportDriver[i]];
- TransportCost[TransportDriver[i]] = TransportCost[i];
- }
- }
- }
- TransportTime[i] += 1;
- new string[24];
- format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
- GameTextForPlayer(i, string, 15000, 6);
- if(TransportCost[i] > GetPlayerCash(i))
- {
- RemovePlayerFromVehicle(i);
- new Float:slx, Float:sly, Float:slz;
- GetPlayerPos(i, slx, sly, slz);
- SetPlayerPos(i, slx, sly, slz + 2);
- GameTextForPlayer(i, "~r~You're flat out of cash!", 4000, 4);
- }
- }
- // end
- }
- }
- // Timer Name: ServerHeartbeatTwo()
- // TickRate: 1 secs.
- Timer:ServerHeartbeatTwo[1000]()
- {
- foreach(Player, i)
- {
- if(CellTime[i] > 0)
- {
- if(CellTime[i] == cchargetime)
- {
- CellTime[i] = 1;
- if(Mobile[Mobile[i]] == i)
- {
- CallCost[i] += callcost;
- }
- }
- CellTime[i]++;
- if(Mobile[Mobile[i]] == INVALID_PLAYER_ID && CellTime[i] == 5)
- {
- if(IsPlayerConnected(Mobile[i]))
- {
- new Float:rX, Float:rY, Float:rZ;
- GetPlayerPos(i, rX, rY, rZ);
- new string[18 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "* %s's phone rings.", GetPlayerNameEx(Mobile[i]));
- ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- }
- if(CellTime[i] == 0 && CallCost[i] > 0)
- {
- new string[28];
- format(string, sizeof(string), "~w~The call cost~n~~r~$%d",CallCost[i]);
- GivePlayerCash(i, -CallCost[i]);
- GameTextForPlayer(i, string, 5000, 1);
- CallCost[i] = 0;
- }
- if(GetPVarType(i, "Injured"))
- {
- SetPlayerArmedWeapon(i, 0);
- if(GetPVarInt(i, "EMSAttempt") == -1 || GetPVarInt(i, "EMSAttempt") == 1 || GetPVarInt(i, "EMSAttempt") == 2)
- {
- if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
- {
- SendClientMessage(i, COLOR_WHITE, "You fell unconscious, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- }
- }
- if(GetPVarInt(i, "rccam") == 0)
- {
- if(GetVehicleModel(GetPlayerVehicleID(i)) != 594)
- {
- DestroyVehicle(GetPVarInt(i, "rcveh"));
- VehicleRadioStation[GetPVarInt(i, "rcveh")] = 0;
- KillTimer(GetPVarInt(i, "rccamtimer"));
- }
- }
- if(IsPlayerInRangeOfPoint(i,2.0,1544.2,-1353.4,329.4))
- { // Startower parachute
- if(PlayerInfo[i][pGuns][11] != 46)
- {
- GivePlayerValidWeapon(i, 46, 99999);
- }
- }
- if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) for(new h = 0; h < sizeof(FamilyInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(i, 2.0, FamilyInfo[h][FamilySafe][0], FamilyInfo[h][FamilySafe][1], FamilyInfo[h][FamilySafe][2]))
- {
- if(FamilyInfo[h][FamilyUSafe] == 1)
- {
- GameTextForPlayer(i, "~y~gang safe~w~~n~Type ~r~/safehelp~w~ for more information", 5000, 3);
- }
- }
- }
- for(new h = 0; h < sizeof(Points); h++)
- {
- if(IsPlayerInRangeOfPoint(i, 2.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
- {
- if(Points[h][Type] == 1 && GetPVarInt(i, "Packages") == 0)
- {
- GameTextForPlayer(i, "~w~Type /getmats to purchase a ~n~~r~materials package", 5000, 5);
- }
- else if(Points[h][Type] == 3 && PlayerInfo[i][pPot] < 3)
- {
- GameTextForPlayer(i, "~w~Type /getseeds to purchase some ~r~pot seeds", 5000, 5);
- }
- else if(Points[h][Type] == 4)
- {
- GameTextForPlayer(i, "~w~Type /getcrack to purchase some ~r~crack", 5000, 5);
- }
- else if(Points[h][Type] == 5)
- {
- GameTextForPlayer(i, "~w~Type /getcrate to purchase a ~r~crate", 5000, 5);
- }
- }
- }
- }
- }
- // Timer Name: playerTabbedLoop()
- // TickRate: 1 secs.
- Timer:playerTabbedLoop[1000]()
- {
- foreach(Player, x)
- {
- playerConnectedS[x]++;
- if(playerSeconds[x] < gettime()-1 && playerTabbed[x] != 1 && playerConnectedS[x] >= 5 && 1 <= GetPlayerState(x) <= 3)
- {
- playerTabbed[x] = 1;
- SetTimerEx("AFKick",1000,false,"d", x);
- }
- playerLastTyped[x]++;
- GetPlayerPos(x, PlayerPos[x][0], PlayerPos[x][1], PlayerPos[x][2]);
- if(PlayerPos[x][0] == PlayerPos[x][3] && PlayerPos[x][1] == PlayerPos[x][4] && PlayerPos[x][2] == PlayerPos[x][5] && playerTabbed[x] != 1)
- {
- if(playerLastTyped[x] < playerAFKTime[x]) playerAFKTime[x] = playerLastTyped[x];
- if(playerAFK[x] != 0) playerAFKTime[x]++;
- else playerAFK[x] = 1;
- if(playerAFKTime[x] >= 900 && PlayerInfo[x][pAdmin] < 5)
- {
- SendClientMessage(x, COLOR_WHITE, "You have been kicked for being AFK for more than 15 minutes.");
- Kick(x);
- }
- }
- else
- {
- if(playerAFK[x] != 0) playerAFK[x] = 0, playerAFKTime[x] = 0;
- }
- PlayerPos[x][3] = PlayerPos[x][0];
- PlayerPos[x][4] = PlayerPos[x][1];
- PlayerPos[x][5] = PlayerPos[x][2];
- }
- }
- // Timer Name: EMSUpdate()
- // TickRate: 5 secs.
- Timer:EMSUpdate[5000]()
- {
- foreach(Player, i)
- {
- new Float:posX, Float:posY, Float:posZ;
- GetPlayerPos(i, posX, posY, posZ);
- if(GetPlayerInterior(i) == 0 && !IsPlayerInAnyVehicle(i) && MP3Station[i] == 0)
- {
- StopAudioStreamForPlayer(i);
- }
- new Float:iArmor;
- GetPlayerArmour(i, iArmor);
- if(iArmor > ValidArmor[i] && AdminDuty[i] == 0)
- {
- new string[128];
- format(string, sizeof(string), "%s may have hacked their armor.", GetPlayerNameEx(i));
- AddAutomatedFlag(i, string);
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be armor hacking.", GetPlayerNameEx(i), i);
- ABroadCast(COLOR_YELLOW, string, 2);
- }
- if(GetPVarType(i, "Injured"))
- {
- if(GetPVarInt(i, "EMSAttempt") != 0)
- {
- new Float:health;
- GetPlayerHealth(i,health);
- SetPlayerHealth(i, health-1);
- if(GetPVarInt(i, "EMSAttempt") == -1)
- {
- if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
- {
- SendClientMessage(i, COLOR_WHITE, "You fell unconscious, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- GameTextForPlayer(i, "~r~Injured~n~~w~/accept death or /service ems", 5000, 3);
- }
- if(GetPVarInt(i, "EMSAttempt") == 1)
- {
- if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
- {
- SendClientMessage(i, COLOR_WHITE, "You fell unconscious, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- GameTextForPlayer(i, "~r~Injured~n~~w~Waiting for EMS to Arrive...", 5000, 3);
- }
- if(GetPVarInt(i, "EMSAttempt") == 2)
- {
- if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
- {
- SendClientMessage(i, COLOR_WHITE, "You fell unconscious, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- GameTextForPlayer(i, "~g~Rescued~n~~w~Awaiting Treatment...", 5000, 3);
- }
- if(GetPVarInt(i, "EMSAttempt") == 3)
- {
- if(IsPlayerInAnyVehicle(i))
- {
- new ambmodel = GetPlayerVehicleID(i);
- if(IsAnAmbulance(ambmodel))
- {
- GameTextForPlayer(i, "~g~Rescued~n~~w~Waiting for EMS to take to Hospital...", 5000, 3);
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "You fell unconscious due to no life support, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- }
- else
- {
- SendClientMessage(i, COLOR_WHITE, "You fell out of the vehicle, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- }
- GetPlayerHealth(i, health);
- if(health <= 5)
- {
- SendClientMessage(i, COLOR_WHITE, "You fell unconscious, you were immediately sent to the hospital.");
- KillEMSQueue(i);
- SpawnPlayer(i);
- }
- }
- }
- }
- }
- // Timer Name: ProductionUpdate()
- // TickRate: 5 Minutes.
- Timer:ProductionUpdate[300000]()
- {
- foreach(Player, i)
- {
- if(playerTabbed[i] != 1)
- {
- if(PlayerInfo[i][pPayReady] < 6) { PlayerInfo[i][pPayReady] += 1; } //+ 5 min to PayDay anti-abuse
- }
- if(PlayerInfo[i][pFishes] >= 5) {
- if(FishCount[i] >= 3) PlayerInfo[i][pFishes] = 0;
- else ++FishCount[i];
- }
- }
- SaveFamilies();
- }
- // Timer Name: SyncUp()
- // TickRate: 1 Minute.
- Timer:SyncUp[60000]()
- {
- new string[128];
- new hour,minuite,second;
- SyncTime();
- SyncMinTime();
- ScoreUpdate();
- gettime(hour,minuite,second);
- FixHour(hour);
- hour = shifthour;
- if(minuite < 10)
- {
- format(string, sizeof(string), "%d:0%d", hour, minuite);
- }
- else
- {
- format(string, sizeof(string), "%d:%d", hour, minuite);
- }
- TextDrawSetString(WristWatch, string);
- foreach(Player, i)
- {
- if(IsValidDynamicObject(PlayerInfo[i][pWeedObject]) && PlayerInfo[i][pWeedGrowth] < 45) switch(PlayerInfo[i][pDrugsSkill])
- {
- case 0 .. 50: PlayerInfo[i][pWeedGrowth] += 1;
- case 51 .. 100: PlayerInfo[i][pWeedGrowth] += 2;
- case 101 .. 200: PlayerInfo[i][pWeedGrowth] += 3;
- case 201 .. 400: PlayerInfo[i][pWeedGrowth] += 4;
- default: PlayerInfo[i][pWeedGrowth] += 5;
- }
- switch(GetPVarInt(i, "STD"))
- {
- case 1:
- {
- new Float: health;
- GetPlayerHealth(i, health);
- SetPlayerHealth(i, health - 5.0);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Lost 4 health due to STD.");
- }
- case 2:
- {
- new Float: health;
- GetPlayerHealth(i, health);
- SetPlayerHealth(i, health - 12.0);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Lost 8 health due to STD.");
- }
- case 3:
- {
- new Float: health;
- GetPlayerHealth(i, health);
- SetPlayerHealth(i, health - 20.0);
- SendClientMessage(i, COLOR_LIGHTBLUE, "* Lost 12 health due to STD.");
- }
- }
- if(GetPlayerCash(i) < 0)
- {
- if(!GetPVarType(i, "debtMsg"))
- {
- format(string, sizeof(string), "You're now in debt; you must repay the debt of $%d. If not, you will be arrested.", GetPlayerCash(i));
- SendClientMessage(i, COLOR_LIGHTRED, string);
- SetPVarInt(i, "debtMsg", 1);
- }
- }
- else DeletePVar(i, "debtMsg");
- }
- }
- // Timer Name: MoneyUpdate()
- // Tickrate: 1 secs.
- Timer:MoneyUpdate[1000]()
- {
- new
- iTempVar;
- if(iAdverTimer >= 1)
- --iAdverTimer;
- new hour,minuite,second;
- gettime(hour,minuite,second);
- FixHour(hour);
- hour = shifthour;
- new tstring[7];
- if(minuite < 10)
- {
- format(tstring, sizeof(tstring), "%d:0%d", hour, minuite);
- }
- else
- {
- format(tstring, sizeof(tstring), "%d:%d", hour, minuite);
- }
- TextDrawSetString(WristWatch, tstring);
- foreach(Player, i)
- {
- SyncPlayerTime(i);
- if(PlayerInfo[i][pCash] != GetPlayerMoney(i))
- {
- ResetPlayerMoney(i);
- GivePlayerMoney(i, PlayerInfo[i][pCash]);
- }
- if((iTempVar = GetPVarInt(i, "adT")) != 0)
- {
- if(--iTempVar <= 0) DeletePVar(i, "adT");
- else SetPVarInt(i, "adT", iTempVar);
- }
- if(PlayerInfo[i][pTriageTime] != 0)
- {
- PlayerInfo[i][pTriageTime]--;
- }
- if(PlayerInfo[i][pTicketTime] != 0)
- {
- PlayerInfo[i][pTicketTime]--;
- }
- if(ServiceTime[i] != 0)
- {
- ServiceTime[i]--;
- }
- if(PlayerInfo[i][pGPS] > 0 && GetPVarType(i, "gpsonoff"))
- {
- new zone[28];
- GetPlayer2DZone(i, zone, MAX_ZONE_NAME);
- TextDrawSetString(GPS[i], zone);
- }
- }
- }
- // Timer Name: SpecUpdate()
- // TickRate: 3 secs.
- Timer:SpecUpdate[3000]()
- {
- foreach(Player, i)
- {
- if(PlayerInfo[i][pAdmin] >= 2)
- {
- if(Spectating[i] >= 1)
- {
- if(Spectate[i] < 553)
- {
- new targetid = Spectate[i];
- if(!IsPlayerConnected(targetid))
- {
- SendClientMessage(i, COLOR_WHITE, "The player you were spectating has left the server.");
- GettingSpectated[Spectate[i]] = 999;
- Spectating[i] = 0;
- Spectate[i] = 999;
- SetPVarInt(i, "SpecOff", 1);
- TogglePlayerSpectating(i, false);
- SetCameraBehindPlayer(i);
- }
- }
- if(Spectate[i] == 553)
- {
- TogglePlayerControllable(i, 1);
- TogglePlayerSpectating(i, 0);
- DeletePVar(i, "MedicBill");
- SpawnPlayer(i);
- Spectate[i] = 999;
- Spectating[i] = 0;
- }
- if(Spectate[i] == 556)
- {
- SetPlayerToTeamColor(i);
- Spectate[i] = 999;
- }
- }
- }
- }
- }
- // Timer Name: SaveUpdate()
- // Tickrate: 3 Minutes.
- Timer:SaveUpdate[180000]()
- {
- foreach(Player, i)
- {
- if(GetPVarInt(i, "TempName") != 1 && gPlayerLogged[i])
- {
- PlayerInfo[i][pInt] = GetPlayerInterior(i);
- PlayerInfo[i][pVW] = GetPlayerVirtualWorld(i);
- GetPlayerIp(i, PlayerInfo[i][pIP], 32);
- GetPlayerPos(i, PlayerInfo[i][pPos_x], PlayerInfo[i][pPos_y], PlayerInfo[i][pPos_z]);
- GetPlayerFacingAngle(i, PlayerInfo[i][pPos_r]);
- OnPlayerStatsUpdate(i);
- }
- }
- SaveFamilies();
- SaveFamiliesHQ();
- SaveHouses();
- }
- stock ShowInteriorDialog(playerid)
- {
- new dialog_string[2600];
- for(new i = 0; i < sizeof(InteriorDialogNames); i++) {
- if(!i) {
- format(dialog_string, sizeof(dialog_string), InteriorDialogNames[i]);
- }
- else {
- format(dialog_string, sizeof(dialog_string), "%s\n%s", dialog_string, InteriorDialogNames[i]);
- }
- }
- return ShowPlayerDialogEx(playerid, DIALOG_INTERIOR_MENU, DIALOG_STYLE_LIST, "Interiors Teleport Dialog", dialog_string, "Select", "Cancel");
- }
- stock MysteryEggGift(playerid, giveplayerid)
- {
- new string[128];
- if(PlayerInfo[playerid][pAdmin] >= 2 || playerid == MAX_PLAYERS)
- {
- new randgift = Random(1, 100);
- if(randgift >= 1 && randgift <= 83)
- {
- new egg = Random(1, 8);
- if(egg == 1)
- {
- if(PlayerInfo[giveplayerid][pConnectTime] < 2) return MysteryEggGift(playerid, giveplayerid);
- GivePlayerValidWeapon(giveplayerid, 27, 60000);
- GivePlayerValidWeapon(giveplayerid, 24, 60000);
- GivePlayerValidWeapon(giveplayerid, 31, 60000);
- GivePlayerValidWeapon(giveplayerid, 34, 60000);
- GivePlayerValidWeapon(giveplayerid, 29, 60000);
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations! - You won Full Weapon Set");
- format(string, sizeof(string), "* %s was just given a reward a full weapon set, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 2)
- {
- PlayerInfo[giveplayerid][pFirstaid]++;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won a first aid kit!");
- format(string, sizeof(string), "* %s was just given a reward a first aid kit, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 3)
- {
- PlayerInfo[giveplayerid][pMats] += 2000;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won 2,000 materials!");
- format(string, sizeof(string), "* %s was just given a reward 2,000 materials, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 4)
- {
- if(PlayerInfo[giveplayerid][pWarns] != 0)
- {
- PlayerInfo[giveplayerid][pWarns]--;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won a single warning removal!");
- format(string, sizeof(string), "* %s was just given a reward a single warning removal, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "Random Reward ended up in a removal of one warning - let's try again!");
- MysteryEggGift(playerid, giveplayerid);
- return 1;
- }
- }
- else if(egg == 5)
- {
- PlayerInfo[giveplayerid][pPot] += 50;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won 50 grams of pot!");
- format(string, sizeof(string), "* %s was just given a reward 50 grams of pot, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 6)
- {
- PlayerInfo[giveplayerid][pCrack] += 25;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won 25 grams of crack!");
- format(string, sizeof(string), "* %s was just given a reward 25 grams of crack, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 7)
- {
- GivePlayerCash(giveplayerid, 20000);
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won $20,000!");
- format(string, sizeof(string), "* %s was just given a reward $20,000, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- }
- else if(randgift > 83 && randgift <= 98)
- {
- new egg = Random(1, 5);
- if(egg == 1)
- {
- GivePlayerCash(giveplayerid, 15000);
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won $15000!");
- format(string, sizeof(string), "* %s was just given a reward $150,000, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 2)
- {
- PlayerInfo[giveplayerid][pMats] += 15000;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won 15,000 materials!");
- format(string, sizeof(string), "* %s was just given a reward 15,000 materials, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 3)
- {
- PlayerInfo[giveplayerid][pRespect] += 10;
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won 10 respect points!");
- format(string, sizeof(string), "* %s was just given a reward 10 respect points, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- /*else if(egg == 4)
- {
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won a free car!");
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Note: This rare reward may take up to 48 hours to be rewarded, contact Shop Techs.");
- format(PlayerInfo[giveplayerid][pFlag], 128, "Free Car (Reward)");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just won %s and he won a free car.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_ORANGE, string, 4);
- new year,month,day,log[128];
- getdate(year, month, day);
- format(log, sizeof(log), "AdmCP: %s has just won %s and he won a free car(%d-%d-%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), month, day, year);
- Log("logs/gifts.log", log);
- format(string, sizeof(string), "* %s was just given a reward a free car, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }*/
- }
- else if(randgift > 98 && randgift <= 100)
- {
- new egg = Random(1, 4);
- /*if(egg == 1 && PlayerInfo[giveplayerid][pDonator] <= 2) // Emerald VIP can get it extended, I suppose
- {
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won one month of Emerald VIP!");
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Note: This rare reward may take up to 48 hours to be rewarded.");
- format(PlayerInfo[giveplayerid][pFlag], 128, "Free Emerald VIP (Reward)");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just won %s and he won one month of Emerald VIP.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_ORANGE, string, 2);
- new year,month,day,log[128];
- getdate(year, month, day);
- format(log, sizeof(log), "AdmCP: %s has just won %s and he won one month of Emerald VIP(%d-%d-%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), month, day, year);
- Log("logs/gifts.log", log);
- format(string, sizeof(string), "* %s was just given a reward one month of Emerald VIP, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }*/
- /*if(egg == 1)
- {
- new year,month,day,log[128];
- getdate(year, month, day);
- format(log, sizeof(log), "AdmCP: %s has just won %s and he won a free house(%d-%d-%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), month, day, year);
- Log("logs/gifts.log", log);
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won a free house!");
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Note: This rare reward may take up to 48 hours to be rewarded.");
- format(PlayerInfo[giveplayerid][pFlag], 128, "Free House (Reward)");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just won %s and he won a free house.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_ORANGE, string, 2);
- format(string, sizeof(string), "* %s was just given a reward a free house, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }*/
- if(egg == 2)
- {
- new year,month,day,log[128];
- getdate(year, month, day);
- format(log, sizeof(log), "AdmCP: %s has just won %s and he won $500,000. (%d-%d-%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), month, day, year);
- Log("logs/gifts.log", log);
- GivePlayerCash(giveplayerid, 10000);
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won $10000!");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just won %s and he won $10000.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_ORANGE, string, 2);
- format(string, sizeof(string), "* %s was just given a reward $500,000, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- else if(egg == 3)
- {
- new year,month,day,log[128];
- getdate(year, month, day);
- format(log, sizeof(log), "AdmCP: %s has just won %s and he won $500,000. (%d-%d-%d)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), month, day, year);
- Log("logs/gifts.log", log);
- new nxtlevel = PlayerInfo[playerid][pLevel]+1;
- format(string, sizeof(string), "~g~LEVEL UP~n~~w~You're Now Level %d", nxtlevel);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pLevel]++;
- PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
- GameTextForPlayer(playerid, string, 5000, 1);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won +1 Level Up");
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has just won %s and he won +1 Level Up.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
- ABroadCast(COLOR_ORANGE, string, 2);
- format(string, sizeof(string), "* %s was just given a reward +1 Level Up, enjoy!", GetPlayerNameEx(giveplayerid));
- ProxDetector(30.0, giveplayerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE);
- }
- }
- }
- return 1;
- }
- RandomPrize(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- new string[128];
- new prize = random(10)+1;
- if(prize==1)
- {
- PlayerInfo[playerid][pCrack] += 11;
- PlayerInfo[playerid][pMats] += 6600;
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won 11 crack and 6600 materials.");
- format(string, sizeof(string), "%s has killed the hunted, and won 11 crack & 6600 materials.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==2)
- {
- PlayerInfo[playerid][pPot] += 36;
- SetPlayerArmourEx(playerid, 140);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won 36 pot and a bullet proof vest (140 armor).");
- format(string, sizeof(string), "%s has killed the hunted, and won 36 port and a bullet proof vest (140 armor).", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==3)
- {
- GivePlayerValidWeapon(playerid,24,50000);
- GivePlayerValidWeapon(playerid,27,50000);
- GivePlayerValidWeapon(playerid,29,50000);
- GivePlayerValidWeapon(playerid,31,50000);
- GivePlayerValidWeapon(playerid,34,50000);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won a full weapon set (spas, sniper, m4, mp5 & deagle).");
- format(string, sizeof(string), "%s has killed the hunted, and won a full weapon set (spas, sniper, m4, mp5 & deagle).", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==4)
- {
- GivePlayerValidWeapon(playerid,24,50000);
- GivePlayerValidWeapon(playerid,34,50000);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won a deagle and sniper.");
- format(string, sizeof(string), "%s has killed the hunted, and won sniper and deagle.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==5)
- {
- PlayerInfo[playerid][pCrack] += 27;
- PlayerInfo[playerid][pPot] += 27;
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won 27 grams of crack and pot.");
- format(string, sizeof(string), "%s has killed the hunted, and won 27 grams of crack and pot.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==6)
- {
- PlayerInfo[playerid][pCrack] += 27;
- PlayerInfo[playerid][pPot] += 27;
- PlayerInfo[playerid][pMats] += 1789;
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won 1789 materials and 27 crack and pot.");
- format(string, sizeof(string), "%s has killed the hunted, and won 27 grams of crack and pot.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==7)
- {
- GivePlayerValidWeapon(playerid,29,50000);
- GivePlayerValidWeapon(playerid,24,50000);
- SetPlayerArmourEx(playerid, 100);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won mp5, deagle and vest.");
- format(string, sizeof(string), "%s has killed the hunted, and won mp5, deagle and vest.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==8)
- {
- GivePlayerValidWeapon(playerid,24,50000);
- GivePlayerValidWeapon(playerid,27,50000);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won a spas and deagle.");
- format(string, sizeof(string), "%s has killed the hunted, and won spas and deagle.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==9)
- {
- GivePlayerValidWeapon(playerid,34,50000);
- GivePlayerValidWeapon(playerid,27,50000);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won a sniper and spas.");
- format(string, sizeof(string), "%s has killed the hunted, and won sniper and spas.", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- else if(prize==10)
- {
- GivePlayerValidWeapon(playerid,31,50000);
- GivePlayerValidWeapon(playerid,27,50000);
- SetPlayerArmourEx(playerid, 100);
- SendClientMessage(playerid, COLOR_YELLOW, "Congratulations, you have won spas, m4 and a vest.");
- format(string, sizeof(string), "%s has killed the hunted, and won spas, m4 and a vest (100 armor).", GetPlayerNameEx(playerid));
- ABroadCast(COLOR_YELLOW, string, 1);
- }
- }
- return 1;
- }
- /*stock GetHealthDots(playerid)
- {
- new dots[64];
- new Float:HP;
- GetPlayerHealth(playerid, HP);
- if(HP == 100)
- dots = "••••••••••";
- else if(HP >= 90 && HP < 100)
- dots = "•••••••••{660000}•";
- else if(HP >= 80 && HP < 90)
- dots = "••••••••{660000}••";
- else if(HP >= 70 && HP < 80)
- dots = "•••••••{660000}•••";
- else if(HP >= 60 && HP < 70)
- dots = "••••••{660000}••••";
- else if(HP >= 50 && HP < 60)
- dots = "•••••{660000}•••••";
- else if(HP >= 40 && HP < 50)
- dots = "••••{660000}••••••";
- else if(HP >= 30 && HP < 40)
- dots = "•••{660000}•••••••";
- else if(HP >= 20 && HP < 30)
- dots = "••{660000}••••••••";
- else if(HP >= 10 && HP < 20)
- dots = "••{660000}••••••••";
- else if(HP >= 0 && HP < 10)
- dots = "{660000}••••••••••";
- return dots;
- }
- stock GetArmorDots(playerid)
- {
- new dots[64];
- new Float:AR;
- GetPlayerArmour(playerid, AR);
- if(AR == 100)
- dots = "••••••••••";
- else if(AR >= 90 && AR < 100)
- dots = "•••••••••{666666}•";
- else if(AR >= 80 && AR < 90)
- dots = "••••••••{666666}••";
- else if(AR >= 70 && AR < 80)
- dots = "•••••••{666666}•••";
- else if(AR >= 60 && AR < 70)
- dots = "••••••{666666}••••";
- else if(AR >= 50 && AR < 60)
- dots = "•••••{666666}•••••";
- else if(AR >= 40 && AR < 50)
- dots = "••••{666666}••••••";
- else if(AR >= 30 && AR < 40)
- dots = "•••{666666}•••••••";
- else if(AR >= 20 && AR < 30)
- dots = "••{666666}••••••••";
- else if(AR >= 10 && AR < 20)
- dots = "••{666666}••••••••";
- else if(AR >= 0 && AR < 10)
- dots = "{666666}••••••••••";
- return dots;
- }
- forward UpdateNametag();
- public UpdateNametag()
- {
- foreach(Player, i)
- {
- if(IsPlayerConnected(i))
- {
- new nametag[128], playername[MAX_PLAYER_NAME], Float:armour;
- GetPlayerArmour(i, armour);
- GetPlayerName(i, playername, sizeof(playername));
- if(armour > 1.0)
- {
- format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FFFFFF}%s\n{FF0000}%s", GetPlayerColor(i) >>> 8, playername, i, GetArmorDots(i), GetHealthDots(i));
- }
- else
- {
- format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF0000}%s", GetPlayerColor(i) >>> 8, playername, i, GetHealthDots(i));
- }
- UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFF, nametag);
- }
- }
- }*/
- stock WelcomePlayer(playerid)
- {
- new string[3500];
- strcat(string, "\n");
- strcat(string, ". {FFFFFF}Use {FFA500}/newb{FFFFFF} to ask your questions or {FFA500}/gethelp{FFFFFF} if you need more help.\n");
- strcat(string, ". {FFFFFF}Use {FFA500}/findjob{FFFFFF} to a find a job and {FFA500}/jobhelp{FFFFFF} for more information about the available jobs.\n");
- strcat(string, ". {FF0606}Do not hack.{FFFFFF} It is pointless as we have an extensive anti-cheat againts hacks and admins that monitor the server 24/7.\n");
- strcat(string, ". {FFFFFF}Use {FFA500}/report{FFFFFF} if you see any rule-breakers.\n");
- strcat(string, ". {FFFFFF}Check {FFA500}/rules{FFFFFF} for a basic list of server rules.\n");
- strcat(string, ". {FFFFFF}Check {FFA500}/help{FFFFFF} to see available commands.\n");
- strcat(string, ". {FFFFFF}Be sure to also check out {FFA500}/refshop{FFFFFF} and {FFA500}/refhelp{FFFFFF} for refferal rewards.\n");
- strcat(string, "\n");
- strcat(string, "Be sure to check out our website at {FFA500}www.Serenity{FFFFFF} and our forums at {FFA500}blastroleplay.boards.net{FFFFFF}\n");
- strcat(string, "\n");
- strcat(string, "You can also join us on Discord at {FFA500}Serenity/discord{FFFFFF}\n");
- strcat(string, "\n");
- strcat(string, "{FFFFFF}Have fun!");
- ShowPlayerDialogEx(playerid, 4356, DIALOG_STYLE_MSGBOX, "Welcome to {FFA500}Sleepless Roleplay", string, "Close", "");
- return 1;
- }
- public TimerGiveMiner(playerid)
- {
- RemovePlayerAttachedObject(playerid, 3);
- SendClientMessage(playerid, -1, "{FFA500}Average {FFFFFF}metal produced. Take it to the refinery.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
- SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
- SetPlayerCheckpoint(playerid, -1866.611328, -1609.435546, 21.757812, 3.0);
- ExtraMetall[playerid] = 0;
- return 1;
- }
- public TimerGiveMinerEx(playerid)
- {
- RemovePlayerAttachedObject(playerid, 3);
- SendClientMessage(playerid, -1, "{FFFF00}Quality {FFFFFF}metal produced. Take it to the refinery.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
- SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
- SetPlayerCheckpoint(playerid, -1866.611328, -1609.435546, 21.757812, 3.0);
- ExtraMetall[playerid] = 1;
- return 1;
- }
- forward TimerGiveMinerEx2(playerid);
- public TimerGiveMinerEx2(playerid)
- {
- new number = random(10) + 1;
- if(1 <= number <= 7)
- {
- PlayerInfo[playerid][pMiningRock] = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You have dug up an ordinary stone. Drop it off at the marker.");
- }
- else
- {
- PlayerInfo[playerid][pMiningRock] = 2;
- SendClientMessage(playerid, COLOR_WHITE, "You have dug up a quality stone. Drop it off at the marker.");
- }
- RemovePlayerAttachedObject(playerid, 9);
- SetPlayerAttachedObject(playerid, 9, 3929, 1, 0.242999, 0.324000, 0.012000, -17.200078, 20.699993, 9.800034, 0.579999, 0.617999, 0.676999);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- ApplyAnimation(playerid, "CARRY", "liftup", 4.1, 0, 0, 0, 0, 0, 1);
- SetPlayerCheckpoint(playerid, 1278.2404,-1258.6906,13.7365, 2.0);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_MINER;
- return 1;
- }
- stock IsPlayerNearMiningArea(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2, 1250.1315,-1251.8857,13.6803)) return 1;
- else if(IsPlayerInRangeOfPoint(playerid, 2, 1244.8136,-1267.3768,14.0674)) return 1;
- else if(IsPlayerInRangeOfPoint(playerid, 2, 1242.2014,-1251.1252,14.1024)) return 1;
- else if(IsPlayerInRangeOfPoint(playerid, 2, 1235.3142,-1250.9010,19.2036)) return 1;
- return 0;
- }
- forward unknowncommand(playerid);
- public unknowncommand(playerid)
- {
- TextDrawHideForPlayer(playerid, Textdraw0z);
- TextDrawHideForPlayer(playerid, Textdraw1z);
- TextDrawHideForPlayer(playerid, Textdraw2z);
- TextDrawHideForPlayer(playerid, Textdraw3z);
- return 1;
- }
- new AaF_cache[MAX_PLAYERS] = { -1, ... };
- new AaF_cacheTime[MAX_PLAYERS];
- stock Aiming_at_Flame(playerid)
- {
- if(gettime() - AaF_cacheTime[playerid] < 1)
- {
- return AaF_cache[playerid];
- }
- AaF_cacheTime[playerid] = gettime();
- new id = -1;
- new Float:dis = 99999.99;
- new Float:dis2;
- new Float:x, Float:y, Float:z, Float:a;
- GetXYInFrontOfPlayer(playerid, x, y, z, a, 1);
- z -= Z_DIFFERENCE;
- new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
- GetPlayerCameraPos(playerid, cx, cy, cz);
- GetPlayerCameraFrontVector(playerid, fx, fy, fz);
- if(id != -1) { return id-MAX_PLAYERS; }
- for(new i; i < MAX_FLAMES; i++)
- {
- if(Flame[i][Flame_Exists])
- {
- if(IsInWaterCar(playerid) || HasExtinguisher(playerid) || GetPlayerWeapon(playerid) == 41 )
- {
- if((IsPlayerInAnyVehicle(playerid) && dis2 < CAR_RADIUS && dis2 < dis) || (!IsPlayerInAnyVehicle(playerid) && ((dis2 < ONFOOT_RADIUS && dis2 < dis))))
- {
- dis = dis2;
- id = i;
- }
- }
- }
- }
- if(id != -1)
- {
- if
- (
- (
- IsPlayerInAnyVehicle(playerid) && !IsPlayerInRangeOfPoint(playerid, 50, Flame[id][Flame_pos][0], Flame[id][Flame_pos][1], Flame[id][Flame_pos][2])
- )
- ||
- (
- !IsPlayerInAnyVehicle(playerid) && !IsPlayerInRangeOfPoint(playerid, 5, Flame[id][Flame_pos][0], Flame[id][Flame_pos][1], Flame[id][Flame_pos][2])
- )
- )
- { id = -1; }
- }
- AaF_cache[playerid] = id;
- return id;
- }
- stock IsAtFlame(playerid)
- {
- for(new i; i < MAX_FLAMES; i++)
- {
- if(Flame[i][Flame_Exists])
- {
- if(!IsPlayerInAnyVehicle(playerid) && (IsPlayerInRangeOfPoint(playerid, FLAME_ZONE, Flame[i][Flame_pos][0], Flame[i][Flame_pos][1], Flame[i][Flame_pos][2]+Z_DIFFERENCE) ||
- IsPlayerInRangeOfPoint(playerid, FLAME_ZONE, Flame[i][Flame_pos][0], Flame[i][Flame_pos][1], Flame[i][Flame_pos][2]+Z_DIFFERENCE-1)))
- {
- return 1;
- }
- }
- }
- return 0;
- }
- stock GetFlameSlot()
- {
- for(new i = 0; i < MAX_FLAMES; i++)
- {
- if(!Flame[i][Flame_Exists]) { return i; }
- }
- return -1;
- }
- stock GetFireID(Float:x, Float:y, Float:z, &Float:dist)
- {
- new id = -1;
- dist = 99999.99;
- for(new i; i < MAX_FLAMES; i++)
- {
- if(GetDistanceBetweenPoints(x,y,z,Flame[i][Flame_pos][0],Flame[i][Flame_pos][1],Flame[i][Flame_pos][2]) < dist)
- {
- dist = GetDistanceBetweenPoints(x,y,z,Flame[i][Flame_pos][0],Flame[i][Flame_pos][1],Flame[i][Flame_pos][2]);
- id = i;
- }
- }
- return id;
- }
- stock IsPlayerInWater(playerid)
- {
- new Float:X, Float:Y, Float:Z, an = GetPlayerAnimationIndex(playerid);
- GetPlayerPos(playerid, X, Y, Z);
- if((1544 >= an >= 1538 || an == 1062 || an == 1250) && (Z <= 0 || (Z <= 41.0 && IsPlayerInArea(playerid, -1387, -473, 2025, 2824))) ||
- (1544 >= an >= 1538 || an == 1062 || an == 1250) && (Z <= 2 || (Z <= 39.0 && IsPlayerInArea(playerid, -1387, -473, 2025, 2824))))
- {
- return 1;
- }
- return 0;
- }
- stock IsPlayerInArea(playerid, Float:MinX, Float:MaxX, Float:MinY, Float:MaxY)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- #pragma unused z
- if(x >= MinX && x <= MaxX && y >= MinY && y <= MaxY) { return 1; }
- return 0;
- }
- stock CanPlayerBurn(playerid, val = 0)
- {
- if(CallRemoteFunction("CanBurn", "d", playerid) >= 0 && !IsPlayerInWater(playerid) && GetPlayerSkin(playerid) != 277 && GetPlayerSkin(playerid) != 278 && GetPlayerSkin(playerid) != 279 && ((!val && !PlayerOnFire[playerid]) || (val && PlayerOnFire[playerid]))) { return 1; }
- return 0;
- }
- //===================== stocks ====================
- stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, &Float:z, &Float:a, Float:distance)
- {
- GetPlayerPos(playerid, x, y ,z);
- if(IsPlayerInAnyVehicle(playerid))
- {
- GetVehicleZAngle(GetPlayerVehicleID(playerid),a);
- }
- else
- {
- GetPlayerFacingAngle(playerid, a);
- }
- x += (distance * floatsin(-a, degrees));
- y += (distance * floatcos(-a, degrees));
- return 0;
- }
- stock Float:GetDistanceBetweenPoints(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
- {
- return floatadd(floatadd(floatsqroot(floatpower(floatsub(x1,x2),2)),floatsqroot(floatpower(floatsub(y1,y2),2))),floatsqroot(floatpower(floatsub(z1,z2),2)));
- }
- //===================== Own Publics ====================
- public AddFire(Float:x, Float:y, Float:z)
- {
- new slot = GetFlameSlot();
- if(slot == -1) {return slot;}
- Flame[slot][Flame_Exists] = 1;
- Flame[slot][Flame_pos][0] = x;
- Flame[slot][Flame_pos][1] = y;
- Flame[slot][Flame_pos][2] = z - Z_DIFFERENCE;
- Flame[slot][Flame_id] = CreateObject(18689, Flame[slot][Flame_pos][0], Flame[slot][Flame_pos][1], Flame[slot][Flame_pos][2], 0.0, 0.0, 0.0);
- return slot;
- }
- public KillFire(id)
- {
- DestroyObject(Flame[id][Flame_id]);
- Flame[id][Flame_Exists] = 0;
- Flame[id][Flame_pos][0] = 0.0;
- Flame[id][Flame_pos][1] = 0.0;
- Flame[id][Flame_pos][2] = 0.0;
- DestroyTheSmokeFromFlame(id);
- }
- public AddSmoke(Float:x, Float:y, Float:z)
- {
- return CreateObject(18727, x, y, z, 0.0, 0.0, 0.0);
- }
- public KillSmoke(id)
- {
- DestroyObject(id);
- }
- // Destroys extinguishing-smoke
- public DestroyTheSmokeFromFlame(id)
- {
- for(new i; i < 5; i++) { DestroyObject(Flame[id][Smoke][i]); }
- }
- public FireTimer(playerid, id)
- {
- if(id < -1 && (Aiming_at_Flame(playerid) == id)) { StopPlayerBurning(id+MAX_PLAYERS); }
- else if(Flame[id][Flame_Exists] && ((Pressing(playerid) & KEY_FIRE && Aiming_at_Flame(playerid) == id)))
- {
- KillFire(id);
- #if defined EarnMoney
- GivePlayerMoney(playerid, 500);
- #endif
- }
- KillTimer(ExtTimer[playerid]);
- ExtTimer[playerid] = -1;
- }
- forward burning1(playerid);
- public burning1(playerid)
- {
- if(GetPVarInt(playerid, "burning") == 1)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(health < 101.0)
- {
- if((health-5.0) <= 101.0)
- {
- SetPlayerHealth(playerid, health-5.0);
- }
- }
- }
- }
- public SetPlayerBurn(playerid)
- {
- SetPlayerAttachedObject(playerid, FIRE_OBJECT_SLOT, 18690, 2, -1, 0, -1.9, 0, 0);
- PlayerOnFire[playerid] = 1;
- SetPVarInt(playerid, "burning1", SetTimerEx("burning1", 1000, 1, "d", playerid));
- SetPVarInt(playerid, "burning", 1);
- KillTimer(PlayerOnFireTimer[playerid]); KillTimer(PlayerOnFireTimer2[playerid]);
- PlayerOnFireTimer[playerid] = SetTimerEx("BurningTimer", 91, 1, "d", playerid);
- PlayerOnFireTimer2[playerid] = SetTimerEx("StopPlayerBurning", 7000, 0, "d", playerid);
- return 1;
- }
- public BurningTimer(playerid)
- {
- if(PlayerOnFire[playerid])
- {
- /* new Float:hp;
- GetPlayerHealth(playerid, hp);
- if(hp < PlayerOnFireHP[playerid])
- {
- PlayerOnFireHP[playerid] = hp;
- }
- CallRemoteFunction("SetPlayerHealth", "dd", playerid, PlayerOnFireHP[playerid]-10.0);*/
- PlayerOnFireHP[playerid] -= 10.0;
- }
- else { KillTimer(PlayerOnFireTimer[playerid]); KillTimer(PlayerOnFireTimer2[playerid]); }
- }
- public StopPlayerBurning(playerid)
- {
- KillTimer(PlayerOnFireTimer[playerid]);
- PlayerOnFire[playerid] = 0;
- KillTimer(GetPVarInt(playerid, "burning1"));
- SetPVarInt(playerid, "burning", 0);
- RemovePlayerAttachedObject(playerid, FIRE_OBJECT_SLOT);
- }
- stock IsInWaterCar(playerid)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 601) { return 1; }
- return 0;
- }
- stock Pressing(playerid)
- {
- new keys, updown, leftright;
- GetPlayerKeys(playerid, keys, updown, leftright);
- return keys;
- }
- stock HasExtinguisher(playerid)
- {
- if(GetPlayerWeapon(playerid) == 42 && !IsPlayerInAnyVehicle(playerid)) { return 1; }
- return 0;
- }
- ShowBlood(playerid, time)
- {
- for(new i = 0; i < 8;i++)
- {
- if(PlayerInfo[playerid][pLevel] >= 1 && AdminDuty[playerid] != 1 && Hunted[playerid] == 1)
- {
- TextDrawShowForPlayer(playerid, Blood[i]);
- }
- }
- Timer[playerid] = SetTimerEx("RemoveBlood", time*1000, false, "i", playerid);
- return 1;
- }
- forward RemoveBlood(playerid);
- public RemoveBlood(playerid)
- {
- for(new i = 0; i < 8;i++)
- {
- TextDrawHideForPlayer(playerid, Blood[i]);
- }
- pBlood[playerid] = false;
- return 1;
- }
|