Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2012
743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.43 KB | None | 0 0
  1. /* 2012 unknownMode.
  2. developer: TOMĖJUS.
  3. additional: GTAonline Team.
  4.  
  5. 2012-01-02 - present.
  6. http://gta-online.lt 2012.
  7.  
  8. CONTACT ME!
  9. SKYPE ID: tomejus.
  10. */
  11.  
  12. #include <a_samp>
  13. #include <a_mysql>
  14. #include <sscanf2>
  15.  
  16. #define SQL_HOST "localhost"
  17. #define SQL_USER "root"
  18. #define SQL_DB "perfect"
  19. #define SQL_PASS "rootas"
  20.  
  21. enum PlayerInfo
  22. {
  23. id,
  24. job,
  25. skin,
  26. money,
  27. admin,
  28. wanted,
  29. interior,
  30. virtualworld,
  31. bool:spawned,
  32. bool:gender,
  33. bool:security,
  34. bool:regin,
  35. bool:logged
  36. }
  37. new
  38. pInfo[ MAX_PLAYERS ][ PlayerInfo ];
  39.  
  40. main( )
  41. {
  42. print( "unknownMode 2012, http://gta-online.lt" );
  43. print( "developer - TOMĖJUS" );
  44. }
  45.  
  46. public OnGameModeInit( )
  47. {
  48. mysql_debug( 1 );
  49. mysql_connect( SQL_HOST, SQL_USER, SQL_DB, SQL_PASS );
  50. AddPlayerClass( 0, -2641.0, 650.0, 50.4, 269.1425, 0, 0, 0, 0, 0, 0 );
  51. SETUP( );
  52. OBJECTS( );
  53. return true;
  54. }
  55.  
  56. public OnGameModeExit( )
  57. {
  58. mysql_close( );
  59. return true;
  60. }
  61.  
  62. public OnPlayerRequestClass( playerid, classid )
  63. {
  64. if( !pInfo[ playerid ][ logged ] )
  65. {
  66. TogglePlayerSpectating( playerid, true );
  67.  
  68. new
  69. Query[ 256 ];
  70.  
  71. format( Query, 256, "SELECT id FROM `profiliai` WHERE Name = '%s' LIMIT 1", GET_NAME( playerid ) );
  72. mysql_query( Query );
  73. mysql_store_result( );
  74.  
  75. if( mysql_num_rows( ) == 1 )
  76. {
  77. new
  78. idx = mysql_fetch_int( );
  79.  
  80. format( Query, 256, "SELECT Security FROM `profiliai` WHERE Name = '%s' LIMIT 1", GET_NAME( playerid ) );
  81. mysql_query( Query );
  82. mysql_store_result( );
  83. if( mysql_fetch_int( ) == 1 )
  84. {
  85. format( Query, 256, "SELECT IP from `profiliai` WHERE Name = '%s' LIMIT 1", GET_NAME( playerid ) );
  86. mysql_query( Query );
  87. mysql_store_result( );
  88. new
  89. opIP[ 17 ],
  90. pIP[ 17 ];
  91.  
  92. mysql_fetch_row_format( opIP );
  93. GetPlayerIp( playerid, pIP, 17 );
  94. if( !strcmp( opIP, pIP, true ) )
  95. {
  96. pInfo[ playerid ][ id ] = idx;
  97. LOGIN_DIALOG( playerid );
  98. }
  99. else
  100. {
  101. ShowPlayerDialog( playerid, 4, DIALOG_STYLE_MSGBOX, "{42D4FC}perfect{00B6E8}Life {FF0000}• KLAIDA", "{FF0000}IP APSAUGA!\n \n\
  102. {FFFFFF}Atsiprašome, bet jūs {FF0000}negalite{FFFFFF} prisijungti prie šito profilio su šituo IP.\n\
  103. Šis vartotojas savo profilyje yra aktyvavęs {F0F719}IP apsaugos{FFFFFF} galimybę.\n \n{DBDBDB}Jei jūs esate šio profilio savininkas prašome jūsų prisijungti\n\
  104. iš kompiuterio kuris buvo naudotas užregistruojant šį profilį.", "Išeiti", "" );
  105. }
  106. }
  107. else
  108. {
  109. pInfo[ playerid ][ id ] = idx;
  110. LOGIN_DIALOG( playerid );
  111. }
  112. }
  113. else
  114. REGISTER_DIALOG( playerid );
  115.  
  116. mysql_free_result( );
  117.  
  118. SetPlayerPos( playerid, 1958.3783, 1343.1572, 15.3746 );
  119. SetPlayerCameraPos( playerid, 1958.3783, 1343.1572, 15.3746 );
  120. SetPlayerCameraLookAt( playerid, 1958.3783, 1343.1572, 15.3746 );
  121. }
  122. return true;
  123. }
  124.  
  125. public OnPlayerConnect(playerid)
  126. {
  127. REMOVE_OBJECTS( playerid );
  128. NULL( playerid );
  129. return 1;
  130. }
  131.  
  132. public OnPlayerDisconnect( playerid, reason )
  133. {
  134. SaveProfile( playerid );
  135. return true;
  136. }
  137.  
  138. public OnPlayerSpawn( playerid )
  139. {
  140. TogglePlayerSpectating( playerid, false );
  141. pInfo[ playerid ][ spawned ] = true;
  142. if( !pInfo[ playerid ][ regin ] ) LoadProfile( playerid );
  143. return true;
  144. }
  145.  
  146. public OnPlayerDeath(playerid, killerid, reason)
  147. {
  148. pInfo[ playerid ][ spawned ] = false;
  149. return 1;
  150. }
  151.  
  152. public OnVehicleSpawn(vehicleid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnVehicleDeath(vehicleid, killerid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnPlayerText( playerid, text[ ] )
  163. {
  164. SetPlayerChatBubble( playerid, text, 0xFF0000FF, 5.0, 10000 );
  165. return 1;
  166. }
  167.  
  168. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerExitVehicle(playerid, vehicleid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnPlayerStateChange(playerid, newstate, oldstate)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerEnterCheckpoint(playerid)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerLeaveCheckpoint(playerid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerEnterRaceCheckpoint(playerid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerLeaveRaceCheckpoint(playerid)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnRconCommand(cmd[])
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerRequestSpawn(playerid)
  209. {
  210. return true;
  211. }
  212.  
  213. public OnObjectMoved(objectid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnPlayerObjectMoved(playerid, objectid)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnPlayerPickUpPickup(playerid, pickupid)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnVehicleMod(playerid, vehicleid, componentid)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  234. {
  235. return 1;
  236. }
  237.  
  238. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  239. {
  240. return 1;
  241. }
  242.  
  243. public OnPlayerSelectedMenuRow(playerid, row)
  244. {
  245. return 1;
  246. }
  247.  
  248. public OnPlayerExitedMenu(playerid)
  249. {
  250. return 1;
  251. }
  252.  
  253. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  254. {
  255. return 1;
  256. }
  257.  
  258. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  259. {
  260. return 1;
  261. }
  262.  
  263. public OnRconLoginAttempt(ip[], password[], success)
  264. {
  265. return 1;
  266. }
  267.  
  268. public OnPlayerUpdate(playerid)
  269. {
  270. return 1;
  271. }
  272.  
  273. public OnPlayerStreamIn(playerid, forplayerid)
  274. {
  275. return 1;
  276. }
  277.  
  278. public OnPlayerStreamOut(playerid, forplayerid)
  279. {
  280. return 1;
  281. }
  282.  
  283. public OnVehicleStreamIn(vehicleid, forplayerid)
  284. {
  285. return 1;
  286. }
  287.  
  288. public OnVehicleStreamOut(vehicleid, forplayerid)
  289. {
  290. return 1;
  291. }
  292.  
  293. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  294. {
  295. switch( dialogid )
  296. {
  297. case 0:
  298. {
  299. if( response )
  300. {
  301. new
  302. Query[ 256 ],
  303. Password[ 128 ],
  304. pIP[ 17 ];
  305.  
  306. GetPlayerIp( playerid, pIP, 17 );
  307. sscanf( inputtext, "s[128]", Password );
  308. mysql_real_escape_string( GET_NAME( playerid ), GET_NAME( playerid ) );
  309. mysql_real_escape_string( Password, Password );
  310.  
  311. format( Query, 256, "INSERT INTO `profiliai` ( Name, Password, IP, PosX, PosY, PosZ ) VALUES ( '%s', '%s', '%s', '-1957.5405', '138.1025', '27.6940' )", GET_NAME( playerid ), Password, pIP );
  312. mysql_query( Query );
  313.  
  314. format( Query, 256, "SELECT id FROM `profiliai` WHERE Name = '%s'", GET_NAME( playerid ) );
  315. mysql_query( Query );
  316. mysql_store_result( );
  317.  
  318. pInfo[ playerid ][ id ] = mysql_fetch_int( );
  319. mysql_free_result( );
  320.  
  321. pInfo[ playerid ][ logged ] = true;
  322. pInfo[ playerid ][ regin ] = true;
  323. GENDER_DIALOG( playerid );
  324. }
  325. else
  326. {
  327. Kick( playerid );
  328. }
  329. }
  330. case 1:
  331. {
  332. if( response )
  333. {
  334. new
  335. Query[ 256 ];
  336.  
  337. mysql_real_escape_string( GET_NAME( playerid ), GET_NAME( playerid ) );
  338. mysql_real_escape_string( inputtext, inputtext );
  339.  
  340. format( Query, 256, "SELECT * FROM `profiliai` WHERE Name = '%s' AND Password = '%s' LIMIT 1", GET_NAME( playerid ), inputtext );
  341. mysql_query( Query );
  342. mysql_store_result( );
  343.  
  344. if( mysql_num_rows( ) == 1 )
  345. {
  346. pInfo[ playerid ][ logged ] = true;
  347. SpawnPlayer( playerid );
  348. }
  349. else
  350. {
  351. // not logged.
  352. }
  353. mysql_free_result( );
  354. }
  355. else
  356. {
  357. Kick( playerid );
  358. }
  359. }
  360. case 2:
  361. {
  362. if( response )
  363. {
  364.  
  365. }
  366. else
  367. {
  368. pInfo[ playerid ][ gender ] = true;
  369. }
  370. SECURITY_DIALOG( playerid );
  371. }
  372. case 3:
  373. {
  374. if( response )
  375. {
  376. pInfo[ playerid ][ security ] = true;
  377. }
  378. CHARACTER_DIALOG( playerid );
  379. }
  380. case 4:
  381. {
  382. if( response )
  383. {
  384. Kick( playerid );
  385. }
  386. }
  387. }
  388. return true;
  389. }
  390.  
  391. public OnPlayerClickPlayer( playerid, clickedplayerid, source )
  392. {
  393. return 1;
  394. }
  395.  
  396. stock SaveProfile( playerid )
  397. {
  398. if( pInfo[ playerid ][ logged ] )
  399. {
  400. new
  401. Query[ 256 ],
  402. idx = pInfo[ playerid ][ id ];
  403.  
  404. if( pInfo[ playerid ][ spawned ] )
  405. {
  406. new
  407. Float:pPos[ 3 ];
  408.  
  409. GetPlayerPos( playerid, pPos[ 0 ], pPos[ 1 ], pPos[ 2 ] );
  410. format( Query, 256, "UPDATE `profiliai` SET `PosX` = '%f', `PosY` = '%f', `PosZ` = '%f' WHERE ( `id` = '%i' )", pPos[ 0 ], pPos[ 1 ], pPos[ 2 ], idx );
  411. }
  412. else
  413. {
  414. format( Query, 256, "UPDATE `profiliai` SET `PosX` = '-2641.0', `PosY` = '650.0', `PosZ` = '50.4', WHERE ( `id` = '%i' )", idx );
  415. }
  416. mysql_query( Query );
  417.  
  418. AC_GivePlayerMoney( playerid, 0 );
  419. format( Query, 256, "UPDATE `profiliai` SET `Security` = '%i', `Money` = '%i', `Job` = '%i', `Gender` = '%i' WHERE ( `id` = '%i' )", pInfo[ playerid ][ security ], AC_GetPlayerMoney( playerid ), pInfo[ playerid ][ job ], pInfo[ playerid ][ gender ], idx );
  420. mysql_query( Query );
  421. }
  422. }
  423.  
  424. stock LoadProfile( playerid )
  425. {
  426. new
  427. Query[ 256 ],
  428. fetch[ 9 ],
  429. Float:pPos[ 3 ],
  430. tempInt;
  431.  
  432. format( Query, 256, "SELECT * FROM `profiliai` WHERE `id` = '%i'", pInfo[ playerid ][ id ] );
  433. mysql_query( Query );
  434. mysql_store_result( );
  435. mysql_retrieve_row( );
  436.  
  437. mysql_fetch_field_row( fetch, "PosX" );
  438. pPos[ 0 ] = floatstr( fetch );
  439. mysql_fetch_field_row( fetch, "PosY" );
  440. pPos[ 1 ] = floatstr( fetch );
  441. mysql_fetch_field_row( fetch, "PosZ" );
  442. pPos[ 2 ] = floatstr( fetch );
  443. mysql_fetch_field_row( fetch, "Money" ); tempInt = strval( fetch );
  444. AC_GivePlayerMoney( playerid, tempInt );
  445. mysql_fetch_field_row( fetch, "Job" ); tempInt = strval( fetch );
  446. pInfo[ playerid ][ job ] = tempInt;
  447. mysql_fetch_field_row( fetch, "Gender" ); tempInt = strval( fetch );
  448. if( tempInt ) pInfo[ playerid ][ gender ] = true;
  449. mysql_fetch_field_row( fetch, "Security" ); tempInt = strval( fetch );
  450. if( tempInt ) pInfo[ playerid ][ security ] = true;
  451.  
  452. SetPlayerPos( playerid, pPos[ 0 ], pPos[ 1 ], pPos[ 2 ] + 0.50 );
  453. }
  454.  
  455. stock REGISTER_DIALOG( playerid )
  456. {
  457. ShowPlayerDialog( playerid, 0, DIALOG_STYLE_PASSWORD, "{42D4FC}perfect{00B6E8}Life {FF0000}• REGISTRACIJA", "{FFFFFF}Labas,\n \n\
  458. Malonu, kad pasirinkai {42D4FC}perfect{00B6E8}Life {FFFFFF}serverį.\nTačiau, norėdamas(-a) čia žaisti jūs turite užsiregistruoti.\n \n\
  459. {DBDBDB}Žemiau įveskite savo sugalvotą slaptažodį:", "Tęsti", "Ačiū, ne" );
  460. }
  461.  
  462. stock LOGIN_DIALOG( playerid )
  463. {
  464. ShowPlayerDialog( playerid, 1, DIALOG_STYLE_PASSWORD, "{42D4FC}perfect{00B6E8}Life {FF0000}• PRISIJUNGIMAS", "{FFFFFF}Sveikas sugrįžes(-usi),\n \n\
  465. Tikimės, kad laikas serveryje neprailgs,\no bus kupinas nuotykių, bet prieš tai turite prisijungti.\n \n\
  466. {DBDBDB}Žemiau įveskite savo profilio slaptažodį:", "Tęsti", "Ačiū, ne" );
  467. }
  468.  
  469. stock GENDER_DIALOG( playerid )
  470. {
  471. ShowPlayerDialog( playerid, 2, DIALOG_STYLE_MSGBOX, "{42D4FC}perfect{00B6E8}Life {FF0000}• KONFIGURACIJA", "{FFFFFF}Sėkmingai užsiregistravote!\n \n\
  472. Sėkmingai užsiregistravote {42D4FC}perfect{00B6E8}Life{FFFFFF} serveryje,\nDabar susikonfiguruokite savo profilį. (a.k.a „account“).\n \n\
  473. {DBDBDB}Žemiau pasirinkite savo lytį:", "Vyras", "Moteris" );
  474. }
  475.  
  476. stock SECURITY_DIALOG( playerid )
  477. {
  478. ShowPlayerDialog( playerid, 3, DIALOG_STYLE_MSGBOX, "{42D4FC}perfect{00B6E8}Life {FF0000}• KONFIGURACIJA", "{FFFFFF}Lytis pasirinkta!\n \n\
  479. {42D4FC}perfect{00B6E8}Life{FFFFFF} serveriui labai rūpi saugumas, todėl serveryje galima įjungti IP apsaugą.\n{FF0000}Kas ta „IP“ apsauga?:\n\
  480. {FFFFFF}IP apsauga leis prisijungti prie serverio tik su tuo IP kuris buvo panaudotas užsiregistruojant.\n \n\
  481. {DBDBDB}Žemiau pasirinkite ar norite įjungti IP apsaugą:", "Taip", "Ne" );
  482. }
  483.  
  484. stock CHARACTER_DIALOG( playerid )
  485. {
  486. SpawnPlayer( playerid );
  487. }
  488.  
  489. stock NULL( playerid )
  490. {
  491. pInfo[ playerid ][ id ] = 0;
  492. pInfo[ playerid ][ job ] = 0;
  493. pInfo[ playerid ][ regin ] = false;
  494. pInfo[ playerid ][ logged ] = false;
  495. pInfo[ playerid ][ gender ] = false;
  496. pInfo[ playerid ][ spawned ] = false;
  497. pInfo[ playerid ][ security ] = false;
  498. }
  499.  
  500. stock GET_NAME( playerid )
  501. {
  502. new
  503. playerName[ MAX_PLAYER_NAME ];
  504.  
  505. GetPlayerName( playerid, playerName, MAX_PLAYER_NAME );
  506. return playerName;
  507. }
  508.  
  509. stock AC_GetPlayerMoney( playerid )
  510. {
  511. return pInfo[ playerid ][ money ];
  512. }
  513.  
  514. stock AC_ResetPlayerMoney( playerid )
  515. {
  516. pInfo[ playerid ][ money ] = 0;
  517. ResetPlayerMoney( playerid );
  518. }
  519.  
  520. stock AC_GivePlayerMoney( playerid, gmoney )
  521. {
  522. new
  523. rmoney = GetPlayerMoney( playerid );
  524.  
  525. if( rmoney < pInfo[ playerid ][ money ] && rmoney > -1 )
  526. {
  527. pInfo[ playerid ][ money ] = rmoney;
  528. }
  529.  
  530. pInfo[ playerid ][ money ] += gmoney;
  531. ResetPlayerMoney( playerid );
  532. GivePlayerMoney( playerid, pInfo[ playerid ][ money ] );
  533. }
  534.  
  535. stock SETUP( )
  536. {
  537. SetGameModeText ( "unknownMode 0.1 alpha" );
  538. DisableInteriorEnterExits ( );
  539. EnableStuntBonusForAll ( false );
  540. ManualVehicleEngineAndLights( );
  541. ShowPlayerMarkers ( 0 );
  542. SetNameTagDrawDistance ( 12.0 );
  543. }
  544.  
  545. stock REMOVE_OBJECTS( playerid )
  546. {
  547. //Los Santos
  548. RemoveBuildingForPlayer(playerid, 956, 1634.1487,-2238.2810,13.5077, 20.0); //Snack vender @ LS Airport
  549. RemoveBuildingForPlayer(playerid, 956, 2480.9885,-1958.5117,13.5831, 20.0); //Snack vender @ Sushi Shop in Willowfield
  550. RemoveBuildingForPlayer(playerid, 955, 1729.7935,-1944.0087,13.5682, 20.0); //Sprunk machine @ Unity Station
  551. RemoveBuildingForPlayer(playerid, 955, 2060.1099,-1898.4543,13.5538, 20.0); //Sprunk machine opposite Tony's Liqour in Willowfield
  552. RemoveBuildingForPlayer(playerid, 955, 2325.8708,-1645.9584,14.8270, 20.0); //Sprunk machine @ Ten Green Bottles
  553. RemoveBuildingForPlayer(playerid, 955, 1153.9130,-1460.8893,15.7969, 20.0); //Sprunk machine @ Market
  554. RemoveBuildingForPlayer(playerid, 955,1788.3965,-1369.2336,15.7578, 20.0); //Sprunk machine in Downtown Los Santos
  555. RemoveBuildingForPlayer(playerid, 955, 2352.9939,-1357.1105,24.3984, 20.0); //Sprunk machine @ Liquour shop in East Los Santos
  556. RemoveBuildingForPlayer(playerid, 1775, 2224.3235,-1153.0692,1025.7969, 20.0); //Sprunk machine @ Jefferson Motel
  557. RemoveBuildingForPlayer(playerid, 956, 2140.2566,-1161.7568,23.9922, 20.0); //Snack machine @ pick'n'go market in Jefferson
  558. RemoveBuildingForPlayer(playerid, 956, 2154.1199,-1015.7635,62.8840, 20.0); //Snach machine @ Carniceria El Pueblo in Las Colinas
  559. RemoveBuildingForPlayer(playerid, 956, 662.5665,-551.4142,16.3359, 20.0); //Snack vender at Dillimore Gas Station
  560. RemoveBuildingForPlayer(playerid, 955, 200.2010,-107.6401,1.5513, 20.0); //Sprunk machine @ Blueberry Safe House
  561. RemoveBuildingForPlayer(playerid, 956, 2271.4666,-77.2104,26.5824, 20.0); //Snack machine @ Palomino Creek Library
  562. RemoveBuildingForPlayer(playerid, 955, 1278.5421,372.1057,19.5547, 20.0); //Sprunk machine @ Papercuts in Montgomery
  563. RemoveBuildingForPlayer(playerid, 955, 1929.5527,-1772.3136,13.5469, 20.0); //Sprunk machine @ Idlewood Gas Station
  564. //San Fierro
  565. RemoveBuildingForPlayer(playerid, 1302, -2419.5835,984.4185,45.2969, 20.0); //Soda machine 1 @ Juniper Hollow Gas Station
  566. RemoveBuildingForPlayer(playerid, 1209, -2419.5835,984.4185,45.2969, 20.0); //Soda machine 2 @ Juniper Hollow Gas Station
  567. RemoveBuildingForPlayer(playerid, 956, -2229.2075,287.2937,35.3203, 20.0); //Snack vender @ King's Car Park
  568. RemoveBuildingForPlayer(playerid, 955, -1349.3947,493.1277,11.1953, 20.0); //Sprunk machine @ SF Aircraft Carrier
  569. RemoveBuildingForPlayer(playerid, 956, -1349.3947,493.1277,11.1953, 20.0); //Snack vender @ SF Aircraft Carrier
  570. RemoveBuildingForPlayer(playerid, 955, -1981.6029,142.7232,27.6875, 20.0); //Sprunk machine @ Cranberry Station
  571. RemoveBuildingForPlayer(playerid, 955, -2119.6245,-422.9411,35.5313, 20.0); //Sprunk machine 1/2 @ SF Stadium
  572. RemoveBuildingForPlayer(playerid, 955, -2097.3696,-397.5220,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  573. RemoveBuildingForPlayer(playerid, 955, -2068.5593,-397.5223,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  574. RemoveBuildingForPlayer(playerid, 955, -2039.8802,-397.5214,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  575. RemoveBuildingForPlayer(playerid, 955, -2011.1403,-397.5225,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  576. RemoveBuildingForPlayer(playerid, 955, -2005.7861,-490.8688,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  577. RemoveBuildingForPlayer(playerid, 955, -2034.5267,-490.8681,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  578. RemoveBuildingForPlayer(playerid, 955, -2063.1875,-490.8687,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  579. RemoveBuildingForPlayer(playerid, 955, -2091.9780,-490.8684,35.5313, 20.0); //Sprunk machine 3 @ SF Stadium
  580. //Las Venturas
  581. RemoveBuildingForPlayer(playerid, 956, -1455.1298,2592.4138,55.8359, 20.0); //Snack vender @ El Quebrados GONE
  582. RemoveBuildingForPlayer(playerid, 955, -252.9574,2598.9048,62.8582, 20.0); //Sprunk machine @ Las Payasadas GONE
  583. RemoveBuildingForPlayer(playerid, 956, -252.9574,2598.9048,62.8582, 20.0); //Snack vender @ Las Payasadas GONE
  584. RemoveBuildingForPlayer(playerid, 956, 1398.7617,2223.3606,11.0234, 20.0); //Snack vender @ Redsands West GONE
  585. RemoveBuildingForPlayer(playerid, 955, -862.9229,1537.4246,22.5870, 20.0); //Sprunk machine @ The Smokin' Beef Grill in Las Barrancas GONE
  586. RemoveBuildingForPlayer(playerid, 955, -14.6146,1176.1738,19.5634, 20.0); //Sprunk machine @ Fort Carson GONE
  587. RemoveBuildingForPlayer(playerid, 956, -75.2839,1227.5978,19.7360, 20.0); //Snack vender @ Fort Carson GONE
  588. RemoveBuildingForPlayer(playerid, 955, 1519.3328,1055.2075,10.8203, 20.0); //Sprunk machine @ LVA Freight Department GONE
  589. RemoveBuildingForPlayer(playerid, 956, 1659.5096,1722.1096,10.8281, 20.0); //Snack vender near Binco @ LV Airport GONE
  590. RemoveBuildingForPlayer(playerid, 955, 2086.5872,2071.4958,11.0579, 20.0); //Sprunk machine @ Sex Shop on The Strip
  591. RemoveBuildingForPlayer(playerid, 955, 2319.9001,2532.0376,10.8203, 20.0); //Sprunk machine @ Pizza co by Julius Thruway (North)
  592. RemoveBuildingForPlayer(playerid, 955, 2503.2061,1244.5095,10.8203, 20.0); //Sprunk machine @ Club in the Camels Toe
  593. RemoveBuildingForPlayer(playerid, 956, 2845.9919,1294.2975,11.3906, 20.0); //Snack vender @ Linden Station
  594. //Interiors: 24/7 and Clubs
  595. RemoveBuildingForPlayer(playerid, 1775, 496.0843,-23.5310,1000.6797, 20.0); //Sprunk machine 1 @ Club in Camels Toe
  596. RemoveBuildingForPlayer(playerid, 1775, 501.1219,-2.1968,1000.6797, 20.0); //Sprunk machine 2 @ Club in Camels Toe
  597. RemoveBuildingForPlayer(playerid, 1776, 501.1219,-2.1968,1000.6797, 20.0); //Snack vender @ Club in Camels Toe
  598. RemoveBuildingForPlayer(playerid, 1775, -19.2299,-57.0460,1003.5469, 20.0); //Sprunk machine @ Roboi's type 24/7 stores
  599. RemoveBuildingForPlayer(playerid, 1776, -35.9012,-57.1345,1003.5469, 20.0); //Snack vender @ Roboi's type 24/7 stores
  600. RemoveBuildingForPlayer(playerid, 1775, -17.0036,-90.9709,1003.5469, 20.0); //Sprunk machine @ Other 24/7 stores
  601. RemoveBuildingForPlayer(playerid, 1776, -17.0036,-90.9709,1003.5469, 20.0); //Snach vender @ Others 24/7 stores
  602. }
  603.  
  604. stock OBJECTS( )
  605. {
  606. /*
  607. Hospital,
  608. Author - Audiophr3a
  609. */
  610. CreateObject(18030,-2636.16,660,52.6,0.0,0.0,0.0); // Hospital
  611. CreateObject(3851,-2643.2,649.6,52.24,0.0,0.0,0.0); // Hospital glass wall 1
  612. CreateObject(3851,-2649.16,655.55,52.24,0.0,0.0,90.0); // Hospital glass wall 2
  613. CreateObject(16500,-2653.02,655.55,52.23,90.0,0.0,270.0); // Hospital wall dinning room 1
  614. CreateObject(16500,-2658.52,655.55,52.23,90.0,0.0,270.0); // Hospital wall dinning room 2
  615. CreateObject(3851,-2659.31,655.55,54.74,0.0,0.0,90.0); // Hospital dinning room door window
  616. CreateObject(1523,-2656.55,655.516,50.23,0.0,0.0,0.0); // Hospital dinning room door
  617. CreateObject(1808,-2652.3,655.86,50.23,0.0,0.0,180.0); // Hospital water cooler
  618. CreateObject(1649,-2619.61,655.52,52,0.0,0.0,270.0); // Hospital window
  619. CreateObject(1500,-2641.98,646.12,50.226,0.0,0.0,0.0); // Hospital main door
  620. CreateObject(2949,-2621.93,657.5,50.33,0.0,0.0,90.0); // Hospital locked door
  621. CreateObject(1523,-2621.98,653.51,50.442,0.0,0.0,0.0); // Hospital toilet door
  622. CreateObject(2528,-2623.02,653,50.452,0.0,0.0,90.0); // Hospital toilet
  623. CreateObject(2517,-2622.024,651.06,50.446,0.0,0.0,90.0); // Hospital shower
  624. CreateObject(2523,-2620.126,651.67,50.448,0.0,0.0,270.0); // Hospital sink
  625. CreateObject(16500,-2659.04,664.89,52.23,0.0,0.0,90.0); // Hospital wall 1
  626. CreateObject(16500,-2652.53,664.89,52.23,0.0,0.0,90.0); // Hospital wall 2
  627. CreateObject(16500,-2646.03,664.89,52.23,0.0,0.0,90.0); // Hospital wall 3
  628. CreateObject(16500,-2636.39,664.89,52.23,0.0,0.0,90.0); // Hospital wall 4
  629. CreateObject(16500,-2629.9,664.89,52.23,0.0,0.0,90.0); // Hospital wall 5
  630. CreateObject(16500,-2623.4,664.89,52.23,0.0,0.0,90.0); // Hospital wall 6
  631. CreateObject(16500,-2637.42,655.55,52.23,90.0,0.0,270.0); // Hospital surgery wall 1
  632. CreateObject(16500,-2633.42,655.55,52.23,90.0,0.0,270.0); // Hospital surgery wall 2
  633. CreateObject(16500,-2631.48,653.2,50.246,90.0,0.0,180.0); // Hospital surgery wall 3
  634. CreateObject(16500,-2631.48,647.688,52.48,90.0,0.0,180.0); // Hospital surgery wall 4
  635. CreateObject(16500,-2631.48,652.19,56.238,0.0,0.0,180.0); // Hospital surgery wall 5
  636. CreateObject(16500,-2639.232,652.7,52.23,0.0,0.0,0.0); // Hospital surgery wall 6
  637. CreateObject(16500,-2639.232,652.7,56.23,0.0,0.0,0.0); // Hospital surgery wall 7
  638. CreateObject(16500,-2639.232,647.7,52.23,0.0,0.0,0.0); // Hospital surgery wall 8
  639. CreateObject(16500,-2639.232,647.7,56.23,0.0,0.0,0.0); // Hospital surgery wall 9
  640. CreateObject(3851,-2631.48,649.74,54.74,0.0,0.0,0.0); // Hospital surgery window
  641. CreateObject(16500,-2650.92,667.742,52.23,0.0,0.0,0.0); // Hospital wall 1a
  642. CreateObject(16500,-2650.92,672.742,52.23,0.0,0.0,0.0); // Hospital wall 1b
  643. CreateObject(16500,-2643.176,667.742,52.23,0.0,0.0,180.0); // Hospital wall 2a
  644. CreateObject(16500,-2643.176,672.742,52.23,0.0,0.0,180.0); // Hospital wall 2b
  645. CreateObject(16500,-2639.232,667.742,52.23,0.0,0.0,0.0); // Hospital wall 3a
  646. CreateObject(16500,-2639.232,672.742,52.23,0.0,0.0,0.0); // Hospital wall 3b
  647. CreateObject(16500,-2631.48,667.742,52.23,0.0,0.0,180.0); // Hospital wall 4a
  648. CreateObject(16500,-2631.48,672.742,52.23,0.0,0.0,180.0); // Hospital wall 4b
  649. CreateObject(3851,-2650.92,671.34,56.23,0.0,0.0,0.0); // Hospital wall window 1
  650. CreateObject(3851,-2643.18,671.34,56.23,0.0,0.0,0.0); // Hospital wall window 2
  651. CreateObject(3851,-2639.22,671.34,56.23,0.0,0.0,0.0); // Hospital wall window 3
  652. CreateObject(3851,-2631.48,671.34,56.23,0.0,0.0,0.0); // Hospital wall window 4
  653. CreateObject(1812,-2656.8,671.46,50.22,0.0,0.0,0.0); // Hospital bed 1
  654. CreateObject(1812,-2652.6,671.46,50.22,0.0,0.0,0.0); // Hospital bed 2
  655. CreateObject(1812,-2649.23,671.46,50.22,0.0,0.0,0.0); // Hospital bed 3
  656. CreateObject(1812,-2644.6,671.46,50.22,0.0,0.0,0.0); // Hospital bed 4
  657. CreateObject(1812,-2637.86,671.46,50.22,0.0,0.0,0.0); // Hospital bed 5
  658. CreateObject(1812,-2632.8,671.46,50.22,0.0,0.0,0.0); // Hospital bed 6
  659. CreateObject(1812,-2629.84,671.46,50.22,0.0,0.0,0.0); // Hospital bed 7
  660. CreateObject(1812,-2625.62,671.46,50.22,0.0,0.0,0.0); // Hospital bed 8
  661. CreateObject(2134,-2655.46,673.45,50.23,0.0,0.0,0.0); // Hospital bed table1
  662. CreateObject(2134,-2653.96,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 2
  663. CreateObject(2134,-2647.9,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 3
  664. CreateObject(2134,-2645.93,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 4
  665. CreateObject(2134,-2636.5,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 5
  666. CreateObject(2134,-2634.17,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 6
  667. CreateObject(2134,-2628.5,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 7
  668. CreateObject(2134,-2626.97,673.45,50.23,0.0,0.0,0.0); // Hospital bed table 8
  669. CreateObject(1726,-2634.34,656.2,50.22,0.0,0.0,180.0); // Hospital couch 1
  670. CreateObject(1726,-2624.9,662.2,50.22,0.0,0.0,270.0); // Hospital couch 2
  671. CreateObject(1726,-2657.5,660.1,50.22,0.0,0.0,90.0); // Hospital couch 3
  672. CreateObject(1703,-2654,654.92,50.23,0.0,0.0,0.0); // Hospital dinning couch 1
  673. CreateObject(1703,-2657.5,648.82,50.23,0.0,0.0,90.0); // Hospital dinning couch 2
  674. CreateObject(1704,-2654.88,647.76,50.23,0.0,0.0,180.0); // Hospital dinning chair
  675. CreateObject(2596,-2650.894,647.16,53,0.0,0.0,180.0); // Hospital dinning TV
  676. CreateObject(1727,-2653.82,664.2,50.22,0.0,0.0,0.0); // Hospital chair 1
  677. CreateObject(1727,-2629.59,664.2,50.22,0.0,0.0,0.0); // Hospital chair 2
  678. CreateObject(3851,-2656.5,664.895,54.74,0.0,0.0,90.0); // Hospital door windows 1
  679. CreateObject(3851,-2648.57,664.895,54.74,0.0,0.0,90.0); // Hospital door windows 2
  680. CreateObject(3851,-2633.84,664.895,54.74,0.0,0.0,90.0); // Hospital door windows 3
  681. CreateObject(3851,-2625.92,664.895,54.74,0.0,0.0,90.0); // Hospital door windows 4
  682. CreateObject(1523,-2655.01,664.924,50.23,0.0,0.0,180.0); // Hospital door 1
  683. CreateObject(1523,-2648.51,664.924,50.23,0.0,0.0,180.0); // Hospital door 2
  684. CreateObject(1523,-2632.36,664.924,50.23,0.0,0.0,180.0); // Hospital door 3
  685. CreateObject(1523,-2625.87,664.924,50.23,0.0,0.0,180.0); // Hospital door 3
  686. CreateObject(1523,-2631.51,651.226,50.23,0.0,0.0,270.0); // Hospital surgery door
  687. CreateObject(1997,-2635.36,652.5,50.23,0.0,0.0,0.0); // Hospital surgery bed
  688. CreateObject(3383,-2635.35,647.9,50.23,0.0,0.0,0.0); // Hospital surgery table
  689. CreateObject(3396,-2638.53,653.3,50.23,0.0,0.0,180.0); // Hospital surgery computer
  690. CreateObject(1671,-2637.4,653.9,50.7,0.0,0.0,300.0); // Hospital surgery chair
  691. CreateObject(3394,-2632.17,653.13,50.23,0.0,0.0,0.0); // Hospital surgery table 2
  692. CreateObject(3388,-2635.36,654.94,50.23,0.0,0.0,90.0); // Hospital surgery machine
  693. CreateObject(2146,-2629.4,647.8,50.72,0.0,0.0,270.0); // Hospital roller table 1
  694. CreateObject(2146,-2630.8,653.2,50.72,0.0,0.0,0.0); // Hospital roller table 2
  695. CreateObject(2146,-2625.5,648.2,50.72,0.0,0.0,135.0); // Hospital roller table 3
  696. CreateObject(1369,-2625,652.8,50.84,0.0,0.0,270.0); // Hospital wheel chair
  697. CreateObject(2266,-2635.36,656.14,52.74,0.0,0.0,180.0); // Hospital picture 1
  698. CreateObject(2258,-2624.362,661.16,53.2,0.0,0.0,270.0); // Hospital picture 2
  699. CreateObject(2276,-2657.55,661.15,52.8,0.0,0.0,90.0); // Hospital picture 3
  700. CreateObject(2263,-2641.21,673.46,52.64,0.0,0.0,0.0); // Hospital picture 4
  701. CreateObject(2011,-2645.43,664.2,50.23,0.0,0.0,0.0); // Hospital palm 1
  702. CreateObject(2011,-2637,664.2,50.23,0.0,0.0,0.0); // Hospital palm 2
  703. CreateObject(2684,-2639.24,664.5,52,0.0,0.0,0.0); // Hospital paper
  704. CreateObject(2009,-2640.1,666,50.23,0.0,0.0,180.0); // Hospital CPU
  705. CreateObject(1671,-2641.07,666.3,50.7,0.0,0.0,0.0); // Hospital cabinet chair
  706. CreateObject(2608,-2642.85,666.32,51.68,0.0,0.0,90.0); // Hospital docs
  707. CreateObject(2024,-2655.86,650.35,50.23,0.0,0.0,270.0); // Hospital dinning table
  708. CreateObject(2826,-2655.6,649.8,50.764,0.0,0.0,0.0); // Hospital magazines
  709. CreateObject(2251,-2657.7,647.4,51.08,0.0,0.0,180.0); // Hospital dinning room flower
  710. CreateObject(2010,-2657.5,664.2,50.23,0.0,0.0,0.0); // Hospital flower 1
  711. CreateObject(2010,-2625.04,664.2,50.23,0.0,0.0,0.0); // Hospital flower 2
  712. CreateObject(2670,-2620.9,652.8,50.54,0.0,0.0,0.0); // Hospital toilet trash
  713. CreateObject(16500,-2643.19,652.7,56.23,0.0,0.0,180.0); // Hospital dinning wall 1b
  714. CreateObject(16500,-2643.19,647.7,56.23,0.0,0.0,180.0); // Hospital dinning wall 2b
  715. CreateObject(1432,-2645.2,649.2,50.34,0.0,0.0,180.0); // Hospital dinning table 1
  716. CreateObject(1432,-2649,649.2,50.34,0.0,0.0,180.0); // Hospital dinning table 2
  717. CreateObject(1432,-2645.2,653.5,50.34,0.0,0.0,0.0); // Hospital dinning table 3
  718. CreateObject(1432,-2649,653.5,50.34,0.0,0.0,0.0); // Hospital dinning table 4
  719. CreateObject(2267,-2658.02,649.85,53.2,0.0,0.0,90.0); // Hospital dinning picture
  720. CreateObject(2834,-2641.71,646.9,50.23,0.0,0.0,0.0); // Hospital carpet
  721. CreateObject(2007,-2641.21,673.42,50.23,0.0,0.0,0.0); // Hospital wardrobe
  722. CreateObject(2887,-2635.36,652.08,55.6,264.0,0.0,0.0); // Hospital surgery lamp
  723. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement