PaulCastellano

sss

Dec 13th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.83 KB | None | 0 0
  1. public PostaviSpawn( playerid )
  2. {
  3. new OrgID = PlayerInfo[ playerid ][ xClan ];
  4. if ( PlayerInfo[ playerid ][ xZatvor ] == OBICAN_ZATVOR )
  5. {
  6. new rand = random( sizeof( RandomZatvor ) );
  7. Emsad_SetPlayerPos( playerid, RandomZatvor[ rand ][ 0 ], RandomZatvor[ rand ][ 1 ],RandomZatvor[ rand ][ 2 ] );
  8. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  9. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  10. TogglePlayerControllable( playerid, false );
  11. SCM( playerid, CRVENA, "Nedovrsena zatvorska kazna, natrag u zatvor.");
  12. SetCameraBehindPlayer( playerid );
  13. SetPlayerInterior( playerid, 0 );
  14. SetPlayerVirtualWorld( playerid, 0 );
  15. ToggleCheckpoints( playerid );
  16.  
  17. }
  18. else if( PlayerInfo[ playerid ][ xZatvor ] == ALKATRAZ )
  19. {
  20. Emsad_SetPlayerPos( playerid, 268.5777, 1857.9351, 9.8133 );
  21. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  22. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  23. TogglePlayerControllable( playerid, false );
  24. SCM( playerid, CRVENA, "Nedovrsena zatvorska kazna, natrag u ALKATRAZ.");
  25. SetCameraBehindPlayer( playerid );
  26. SetPlayerInterior( playerid, 0 );
  27. SetPlayerVirtualWorld( playerid, 1 );
  28. SetPlayerWorldBounds( playerid, 337.5694, 101.5826, 1940.9759, 1798.7453 );
  29.  
  30. }
  31. else if( PlayerInfo[ playerid ][ xMaraton ] > 0 )
  32. {
  33. SCM( playerid, -1, "Niste zavrsili maratonsku kaznu, vracate se gde ste bili!" );
  34. Emsad_SetPlayerPos( playerid, 852.8660, 1753.9944, 1373.1364 );
  35. SetPlayerFacingAngle( playerid, 317.1445 );
  36. SetCameraBehindPlayer( playerid );
  37. Emsad_SetPlayerCheckpoint( playerid, 868.7183, 1769.6001, 1372.8619, 7.0 );
  38. Maratonac[ playerid ] = 1;
  39. return 1;
  40. }
  41. else
  42. {
  43. if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_ADMIN )
  44. {
  45. if( PlayerInfo[ playerid ][ xAdmin ] >= 1 )
  46. {
  47. Emsad_SetPlayerPos( playerid, -655.6210, 2107.0259, 1073.1508 );
  48. SetPlayerFacingAngle( playerid, 360.000 );
  49. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  50. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  51. TogglePlayerControllable( playerid, false );
  52. SetCameraBehindPlayer( playerid );
  53. SetPlayerVirtualWorld( playerid, 1 );
  54. SetPlayerInterior( playerid, 0 );
  55. }
  56. else
  57. {
  58. new rand = random( sizeof( RandomLSSpawn1 ) );
  59. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
  60. SetPlayerFacingAngle( playerid, 360.000 );
  61. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  62. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  63. TogglePlayerControllable( playerid, false );
  64. SetCameraBehindPlayer( playerid );
  65. SetPlayerInterior( playerid, 0 );
  66. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  67. }
  68. }
  69. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_SUPPORTER )
  70. {
  71. if( PlayerInfo[ playerid ][ xSupporter ] >= 1 )
  72. {
  73. Emsad_SetPlayerPos( playerid, -306.6592, 1771.7335, 43.0737 );
  74. SetPlayerFacingAngle( playerid, 180.000 );
  75. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  76. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  77. TogglePlayerControllable( playerid, false );
  78. SetCameraBehindPlayer( playerid );
  79. SetPlayerInterior( playerid, 0 );
  80. }
  81. else
  82. {
  83. new rand = random( sizeof( RandomLSSpawn1 ) );
  84. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
  85. SetPlayerFacingAngle( playerid, 90.000 );
  86. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  87. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  88. TogglePlayerControllable( playerid, false );
  89. SetCameraBehindPlayer( playerid );
  90. SetPlayerInterior( playerid, 0 );
  91. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  92. }
  93. }
  94. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_OBICAN_LS_1 )
  95. {
  96. new rand = random( sizeof( RandomLSSpawn1 ) );
  97. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
  98. SetPlayerFacingAngle( playerid, 90.000 );
  99. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  100. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  101. TogglePlayerControllable( playerid, false );
  102. SetCameraBehindPlayer( playerid );
  103. SetPlayerInterior( playerid, 0 );
  104. }
  105. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_BAZA )
  106. {
  107. Emsad_SetPlayerPos( playerid, OI[ OrgID ][ oPozIntX ], OI[ OrgID ][ oPozIntY ] , OI[ OrgID ][ oPozIntZ ] );
  108. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  109. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  110. TogglePlayerControllable( playerid, false );
  111. SetCameraBehindPlayer( playerid );
  112. SetPlayerInterior( playerid, OI[ OrgID ][ oInt ] );
  113. SetPlayerVirtualWorld( playerid, OI[ OrgID ][ oVw ] );
  114. inOrgInt[ playerid ] = OrgID;
  115. }
  116. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_IMOVINA_1 )
  117. {
  118. if( PlayerInfo[ playerid ][ xProperty ][ 0 ] != -1 )
  119. {
  120. new i = PlayerInfo[ playerid ][ xProperty ][ 0 ];
  121. Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
  122. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  123. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  124. SetCameraBehindPlayer( playerid );
  125. TogglePlayerControllable( playerid, false );
  126. SetPlayerInterior( playerid, II[ i ][ iInterior ] );
  127. SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
  128. inProperty[ playerid ] = i;
  129. }
  130. else
  131. {
  132. new rand = random( sizeof( RandomLSSpawn1 ) );
  133. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
  134. SetPlayerFacingAngle( playerid, 360.000 );
  135. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  136. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  137. TogglePlayerControllable( playerid, false );
  138. SetCameraBehindPlayer( playerid );
  139. SetPlayerInterior( playerid, 0 );
  140. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  141. }
  142.  
  143. }
  144. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_IMOVINA_2 )
  145. {
  146. if( PlayerInfo[ playerid ][ xProperty ][ 1 ] != -1 )
  147. {
  148. new i = PlayerInfo[ playerid ][ xProperty ][ 1 ];
  149.  
  150. Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
  151. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  152. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  153. SetCameraBehindPlayer( playerid );
  154. TogglePlayerControllable( playerid, false );
  155. SetPlayerInterior( playerid, II[ i ][ iInterior ] );
  156. SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
  157. inProperty[ playerid ] = i;
  158. }
  159. else
  160. {
  161. new rand = random( sizeof( RandomLSSpawn1 ) );
  162. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
  163. SetPlayerFacingAngle( playerid, 360.000 );
  164. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  165. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  166. TogglePlayerControllable( playerid, false );
  167. SetCameraBehindPlayer( playerid );
  168. SetPlayerInterior( playerid, 0 );
  169. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  170. }
  171.  
  172. }
  173. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_IMOVINA_3 )
  174. {
  175. if( PlayerInfo[ playerid ][ xProperty ][ 2 ] != -1 )
  176. {
  177. new i = PlayerInfo[ playerid ][ xProperty ][ 2 ];
  178.  
  179. Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
  180. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  181. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  182. SetCameraBehindPlayer( playerid );
  183. TogglePlayerControllable( playerid, false );
  184. SetPlayerInterior( playerid, II[ i ][ iInterior ] );
  185. SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
  186. inProperty[ playerid ] = i;
  187. }
  188. else
  189. {
  190. new rand = random( sizeof( RandomLSSpawn1 ) );
  191. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
  192. SetPlayerFacingAngle( playerid, 360.000 );
  193. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  194. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  195. TogglePlayerControllable( playerid, false );
  196. SetCameraBehindPlayer( playerid );
  197. SetPlayerInterior( playerid, 0 );
  198. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  199. }
  200.  
  201. }
  202. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_BELAKUCA )
  203. {
  204. Emsad_SetPlayerPos( playerid, 1292.5704, -832.4692, 1085.6328 );
  205. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  206. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  207. TogglePlayerControllable( playerid, false );
  208. SetCameraBehindPlayer( playerid );
  209. SetPlayerInterior( playerid, 5 );
  210. SetPlayerVirtualWorld( playerid, 0 );
  211. }
  212. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_OBICAN_LS_2 )
  213. {
  214. new rand = random( sizeof( RandomLSSpawn2 ) );
  215. Emsad_SetPlayerPos( playerid, RandomLSSpawn2[ rand ][ 0 ], RandomLSSpawn2[ rand ][ 1 ],RandomLSSpawn2[ rand ][ 2 ] );
  216. SetPlayerFacingAngle( playerid, 360.000 );
  217. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  218. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  219. TogglePlayerControllable( playerid, false );
  220. SetCameraBehindPlayer( playerid );
  221. SetPlayerInterior( playerid, 0 );
  222. }
  223. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_OBICAN_SF )
  224. {
  225. new rand = random( sizeof( RandomSFSpawn ) );
  226. Emsad_SetPlayerPos( playerid, RandomSFSpawn[ rand ][ 0 ], RandomSFSpawn[ rand ][ 1 ],RandomSFSpawn[ rand ][ 2 ] );
  227. SetPlayerFacingAngle( playerid, 360.000 );
  228. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  229. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  230. TogglePlayerControllable( playerid, false );
  231. SetCameraBehindPlayer( playerid );
  232. SetPlayerInterior( playerid, 0 );
  233. }
  234. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_RENTHOTEL )
  235. {
  236. if( PlayerInfo[ playerid ][ xHotelRoom ] != -1 )
  237. {
  238. new i = PlayerInfo[ playerid ][ xHotelRoom ];
  239.  
  240. if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_1 ], true ) == 0) {
  241. Emsad_SetPlayerPos( playerid, 2246.6826, -1160.8252, 1029.7969 );
  242. }
  243. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_2 ], true ) == 0) {
  244. Emsad_SetPlayerPos( playerid, 2235.9670, -1158.5640, 1029.7969 );
  245. }
  246. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_3 ], true ) == 0) {
  247. Emsad_SetPlayerPos( playerid, 2235.7524, -1169.7406, 1029.8043 );
  248. }
  249. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_4 ], true ) == 0) {
  250. Emsad_SetPlayerPos( playerid, 2227.1511, -1182.9784, 1029.8043 );
  251. }
  252. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_5 ], true ) == 0) {
  253. Emsad_SetPlayerPos( playerid, 2207.9285, -1194.5630, 1029.7969 );
  254. }
  255. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_6 ], true ) == 0) {
  256. Emsad_SetPlayerPos( playerid, 2198.8984, -1174.5468, 1029.8043 );
  257. }
  258. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_7 ], true ) == 0) {
  259. Emsad_SetPlayerPos( playerid, 2188.1833, -1155.7197, 1029.7969 );
  260. }
  261. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_8 ], true ) == 0) {
  262. Emsad_SetPlayerPos( playerid, 2198.7791, -1158.6515, 1029.7969 );
  263. }
  264. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_9 ], true ) == 0) {
  265. Emsad_SetPlayerPos( playerid, 2188.1833, -1155.7197, 1029.7969 );
  266. }
  267. else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_10 ], true ) == 0) {
  268. Emsad_SetPlayerPos( playerid, 2198.7791, -1158.6515, 1029.7969 );
  269. }
  270. else
  271. {
  272. PlayerInfo[ playerid ][ xHotelRoom ] = -1;
  273. SCM( playerid, SVETLOPLAVA, " Iseljeni ste iz hotela!");
  274. new rand = random( sizeof( RandomLSSpawn1 ) );
  275. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
  276. SetPlayerFacingAngle( playerid, 360.000 );
  277. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  278. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  279. TogglePlayerControllable( playerid, false );
  280. SetCameraBehindPlayer( playerid );
  281. SetPlayerInterior( playerid, 0 );
  282. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  283. return 1;
  284. }
  285.  
  286. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  287. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  288. SetCameraBehindPlayer( playerid );
  289. TogglePlayerControllable( playerid, false );
  290. SetPlayerInterior( playerid, hotelInfo[ i ][ hInterior ] );
  291. SetPlayerVirtualWorld( playerid, hotelInfo[ i ][ hVW ] );
  292. inHotel[ playerid ] = i;
  293. }
  294. else
  295. {
  296. new rand = random( sizeof( RandomLSSpawn1 ) );
  297. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
  298. SetPlayerFacingAngle( playerid, 360.000 );
  299. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  300. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  301. TogglePlayerControllable( playerid, false );
  302. SetCameraBehindPlayer( playerid );
  303. SetPlayerInterior( playerid, 0 );
  304. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  305. }
  306.  
  307. }
  308. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_PROMOTER )
  309. {
  310. if( PlayerInfo[ playerid ][ xPromoter ] >= 1 )
  311. {
  312. Emsad_SetPlayerPos( playerid, 1181.5559, -3095.5508, 14.3354 );
  313. SetPlayerFacingAngle( playerid, 360.000 );
  314. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  315. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  316. TogglePlayerControllable( playerid, false );
  317. SetCameraBehindPlayer( playerid );
  318. SetPlayerInterior( playerid, 0 );
  319. }
  320. else
  321. {
  322. new rand = random( sizeof( RandomLSSpawn1 ) );
  323. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
  324. SetPlayerFacingAngle( playerid, 360.000 );
  325. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  326. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  327. TogglePlayerControllable( playerid, false );
  328. SetCameraBehindPlayer( playerid );
  329. SetPlayerInterior( playerid, 0 );
  330. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  331. }
  332. }
  333. else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_RENT )
  334. {
  335. if( PlayerInfo[ playerid ][ xRentID ] != -1 )
  336. {
  337. new i = PlayerInfo[ playerid ][ xRentID ];
  338.  
  339. Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
  340. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  341. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  342. SetCameraBehindPlayer( playerid );
  343. TogglePlayerControllable( playerid, false );
  344. SetPlayerInterior( playerid, II[ i ][ iInterior ] );
  345. SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
  346. inProperty[ playerid ] = i;
  347. }
  348. else
  349. {
  350. new rand = random( sizeof( RandomLSSpawn1 ) );
  351. Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
  352. SetPlayerFacingAngle( playerid, 360.000 );
  353. SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
  354. GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
  355. TogglePlayerControllable( playerid, false );
  356. SetCameraBehindPlayer( playerid );
  357. SetPlayerInterior( playerid, 0 );
  358. PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
  359. }
  360. }
  361. }
  362. return true;
  363. }
Add Comment
Please, Sign In to add comment