Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.91 KB | None | 0 0
  1.  
  2. public OnPlayerDeath(playerid, killerid, reason)
  3. {
  4. SetPlayerArmour(playerid, 0);
  5. DisablePlayerCheckpoint(playerid);
  6. KillTimer(VuciTimer[playerid]);
  7. PosaoGPS[playerid] = 0;
  8. if(!Policajac(playerid))
  9. {
  10. new Float:Xx,Float:Yy,Float:Zz;
  11. GetPlayerPos(playerid, Xx, Yy, Zz);
  12. DropGun(playerid, GetPlayerWeapon(playerid),GetPlayerAmmo(playerid),Xx,Yy,Zz,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
  13. }
  14. if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
  15. {
  16. PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
  17. YokerResetPlayerWeapons(playerid); ResetujVar(playerid);
  18. }
  19. if(WarZapocet == 1)
  20. {
  21. if(PlayerInfo[playerid][pWar] == 1)
  22. {
  23. WarBrojanje2++;
  24. PlayerInfo[killerid][pTrazeniLevel] = 0;
  25. SetPlayerColor(killerid, BELA2);
  26. g_NovacPlus(playerid, 100);
  27. }
  28. else if(PlayerInfo[playerid][pWar] == 2)
  29. {
  30. WarBrojanje1++;
  31. PlayerInfo[killerid][pTrazeniLevel] = 0;
  32. SetPlayerColor(killerid, BELA2);
  33. g_NovacPlus(playerid, 100);
  34. }
  35. }
  36. ////////////////////////////////////////////////////////////
  37. if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
  38. {
  39. if(IgracPolicajac(killerid))
  40. {
  41. PlayerInfo[killerid][pTrazeniLevel] = 0;
  42. SetPlayerColor(playerid, 0x2641FEAA);
  43. }
  44. }
  45. ////////////////////////////////////////////////////////////
  46. if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
  47. {
  48. if(PlayerInfo[killerid][pWar] > 0) return 1;
  49. if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
  50. {
  51.  
  52. PostaviWanted(killerid, "Ubistvo", "Nepoznat", 3);
  53. }
  54. }
  55. ////////////////////////////////////////////////////////////
  56. if(PlayerInfo[killerid][pTrazeniLevel] > 1000)
  57. {
  58. PlayerInfo[killerid][pTrazeniLevel] = 1000;
  59. }
  60. if((!Policajac(killerid) && PlayerInfo[killerid][pUfbi] == 1) && Policajac(playerid))
  61. {
  62. new rand = random(sizeof(RandomZatvor));
  63. SetPlayerPos(killerid, RandomZatvor[rand][0], RandomZatvor[rand][1], RandomZatvor[rand][2]);
  64. SetPlayerInterior(killerid, 0);
  65. TogglePlayerControllable(killerid, 0);
  66. freeze[killerid] = SetTimerEx("Freeze",5000, false, "i", killerid);
  67. PlayerInfo[killerid][pZatvor] = 2;
  68. PlayerInfo[killerid][pZatvorenVreme] = 30*60;
  69. new string[256];
  70. format(string, sizeof(string), ""CRVENA"[SU:RP] Zatvoreni ste u zatvor na 30 minuta zbog SK!.");
  71. SCM(killerid, -1, string);
  72. format(string,sizeof(string), ""CRVENA"[SU:RP SK] "SIVA"Igrac %s (ID:%d) je uradio SK nad igracem %s (ID:%d) i zatvoren je na 30 minuta!", GetName(killerid), killerid, GetName(playerid), playerid);
  73. AdminHelper(-1, string);
  74. }
  75. ////////////////////////////////////////////////////////////
  76. if(PlayerInfo[playerid][pTrazeniLevel] > 0)
  77. {
  78. new string[256];
  79. g_NovacMinus(playerid, PlayerInfo[playerid][pTrazeniLevel]*1000);
  80. SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", PlayerInfo[playerid][pTrazeniLevel]*500, PlayerInfo[playerid][pTrazeniLevel]);
  81. PlayerInfo[playerid][pTrazeniLevel] = 0;
  82. format(string,sizeof(string),""CRVENA"[SU:RP] "BELA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
  83. CFBIPD(-1, string);
  84. SetPlayerColor(playerid, BELA2);
  85. }
  86. ////////////////////////////////////////////////////////////
  87. if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  88. {
  89. new string[256];
  90. format(string,sizeof(string), ""CRVENA"[SU:RP Anti DB] "SIVA"Igrac %s (ID:%d) je uradio Drive By nad igracem %s (ID:%d)!", GetName(killerid), killerid, GetName(playerid), playerid);
  91. AdminHelper(-1, string);
  92. SetPlayerColor(killerid, COLOR_RED);
  93. }
  94. ////////////////////////////////////////////////////////////
  95. if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
  96. {
  97. new string[256];
  98. format(string,sizeof(string), ""CRVENA"[SU:RP AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
  99. AdminHelper(-1, string);
  100. if(!Policajac(killerid))
  101. {
  102. SetPlayerColor(killerid, COLOR_RED);
  103. }
  104. if(PlayerInfo[playerid][pNarucen] == 1 && (PlayerInfo[killerid][pClan] == 10 || PlayerInfo[killerid][pLider] == 10))
  105. {
  106. g_NovacPlus(killerid, 10000);
  107. SCM(killerid,-1,""SPLAVA"[SU:RP]:"BELA"Ubili ste trazenog igraca i dobili 10 000 $!");
  108. PlayerInfo[killerid][pTrazeniLevel] = 0;
  109. SetPlayerColor(killerid, BELA2);
  110. PlayerInfo[playerid][pNarucen] = 0;
  111. format(string,sizeof(string),"[SU:RP] "ZUTA"Placeni ubica je ubio %s i izvrsio svoj zadatak!", GetName(playerid));
  112. SCMTA(-1,string);
  113. }
  114. }
  115. ////////////////////////////////////////////////////////////
  116. if(gPlayerUsingLoopingAnim[playerid])
  117. {
  118. gPlayerUsingLoopingAnim[playerid] = 0;
  119. }
  120.  
  121. if(InCP[playerid][Idlewood] == 1)
  122. {
  123. KillTimer(g_timer[playerid][Idlewood]);
  124. KillTimer(CountTime[playerid]);
  125. UnderAttack[Idlewood] = 0;
  126. }
  127. if(InCP[playerid][Hospital] == 1)
  128. {
  129. KillTimer(g_timer[playerid][Hospital]);
  130. KillTimer(CountTime[playerid]);
  131. UnderAttack[Hospital] = 0;
  132. }
  133. if(InCP[playerid][Ammunation] == 1)
  134. {
  135. KillTimer(g_timer[playerid][Ammunation]);
  136. KillTimer(CountTime[playerid]);
  137. UnderAttack[Ammunation] = 0;
  138. }
  139. if(InCP[playerid][Stadium] == 1)
  140. {
  141. KillTimer(g_timer[playerid][Stadium]);
  142. KillTimer(CountTime[playerid]);
  143. UnderAttack[Stadium] = 0;
  144. }
  145. ////////////////////////////////////////////////////////////
  146. if(reason == 22)
  147. {
  148. if(PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
  149. {
  150. PlayerInfo[killerid][pPistSkill] += 2;
  151. SetPlayerSkills(killerid);
  152. }
  153. }
  154. if(reason == 23)
  155. {
  156. if(PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
  157. {
  158. PlayerInfo[killerid][pSilenSkill] += 2;
  159. SetPlayerSkills(killerid);
  160. }
  161. }
  162. if(reason == 24)
  163. {
  164. if(PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
  165. {
  166. PlayerInfo[killerid][pDesertSkill] += 2;
  167. SetPlayerSkills(killerid);
  168. }
  169. }
  170. if(reason == 25)
  171. {
  172. if(PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
  173. {
  174. PlayerInfo[killerid][pShotgSkill] += 2;
  175. SetPlayerSkills(killerid);
  176. }
  177. }
  178. if(reason == 26)
  179. {
  180. if(PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 1000)
  181. {
  182. PlayerInfo[killerid][pSawnSkill] += 2;
  183. SetPlayerSkills(killerid);
  184. }
  185. }
  186. if(reason == 27)
  187. {
  188. if(PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
  189. {
  190. PlayerInfo[killerid][pCombSkill] += 2;
  191. SetPlayerSkills(killerid);
  192. }
  193. }
  194.  
  195. if(reason == 28 || reason == 32)
  196. {
  197. if(PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 1000)
  198. {
  199. PlayerInfo[killerid][pUziSkill] += 2;
  200. SetPlayerSkills(killerid);
  201. }
  202. }
  203.  
  204. if(reason == 29)
  205. {
  206. if(PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
  207. {
  208. PlayerInfo[killerid][pSmgSkill] += 2;
  209. SetPlayerSkills(killerid);
  210. }
  211. }
  212.  
  213. if(reason == 30)
  214. {
  215. if(PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
  216. {
  217. PlayerInfo[killerid][pAkSkill] += 2;
  218. SetPlayerSkills(killerid);
  219. }
  220. }
  221.  
  222. if(reason == 31)
  223. {
  224. if(PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
  225. {
  226. PlayerInfo[killerid][pM4Skill] += 2;
  227. SetPlayerSkills(killerid);
  228. }
  229. }
  230. return 1;
  231. }
  232.  
  233. encode_tires(tire1, tire2, tire3, tire4) return tire1 | (tire2 << 1) | (tire3 << 2) | (tire4 << 3);
  234. ////////////////////////////////////////////////////////////////////////////////////////////
  235. stock SpawnIgraca(playerid)
  236. {
  237. SetPlayerHealth(playerid, 99.0); vrataspawn[playerid] = false;
  238. SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
  239. SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  240. if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_BAZA)
  241. {
  242. if(PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pClan] == 1)
  243. {
  244. SetPlayerPos(playerid, 59.0056,2000.8918,-14.6925);
  245. SetPlayerInterior(playerid, 0);
  246. SetPlayerColor(playerid, 0x2641FEAA);
  247. PlayerInfo[playerid][pUfbi] = 1;
  248. TogglePlayerControllable(playerid, 0);
  249. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  250. }
  251. else if(PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pClan] == 2)
  252. {
  253. SetPlayerPos(playerid, 2125.8074,-2278.5754,20.6643);
  254. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  255. SetPlayerInterior(playerid, 0);
  256. }
  257. else if(PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pClan] == 3)
  258. {
  259. SetPlayerPos(playerid, -364.7427, -1629.7562, -70.6985);
  260. SetPlayerInterior(playerid, 0);
  261. TogglePlayerControllable(playerid, 0);
  262. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  263. }
  264. else if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pClan] == 4)
  265. {
  266. SetPlayerPos(playerid, 323.8689,1127.7897,1083.8828);
  267. SetPlayerInterior(playerid, 5);
  268. }
  269. else if(PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pClan] == 5)
  270. {
  271. SetPlayerPos(playerid, 2451.1052,-1688.5116,1013.5078);
  272. SetPlayerInterior(playerid, 2);
  273. }
  274. else if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pClan] == 6)
  275. {
  276. SetPlayerPos(playerid, 925.9526,-978.4263,-49.0295);
  277. SetPlayerInterior(playerid, 0);
  278. TogglePlayerControllable(playerid, 0);
  279. YokerGivePlayerWeapon(playerid, 43, 50);
  280. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  281. }
  282. else if(PlayerInfo[playerid][pLider] == 7 || PlayerInfo[playerid][pClan] == 7)
  283. {
  284. SetPlayerPos(playerid, 193.8936,295.6558,1007.3098);
  285. SetPlayerInterior(playerid, 0);
  286. SetPlayerColor(playerid, 0x2641FEAA);
  287. PlayerInfo[playerid][pUfbi] = 1;
  288. TogglePlayerControllable(playerid, 0);
  289. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  290. }
  291. else if(PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pClan] == 8)
  292. {
  293. SetPlayerPos(playerid, 1072.2762,-888.2515,43.3932);
  294. SetPlayerInterior(playerid, 0);
  295. TogglePlayerControllable(playerid, 0);
  296. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  297. }
  298. else if(PlayerInfo[playerid][pLider] == 9 || PlayerInfo[playerid][pClan] == 9)
  299. {
  300. SetPlayerPos(playerid, 1727.7302,-1668.0768,22.6094);
  301. SetPlayerInterior(playerid, 18);
  302. TogglePlayerControllable(playerid, 0);
  303. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  304. }
  305. else if(PlayerInfo[playerid][pLider] == 10 || PlayerInfo[playerid][pClan] == 10)
  306. {
  307. SetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
  308. SetPlayerInterior(playerid, 8);
  309. TogglePlayerControllable(playerid, 0);
  310. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  311. }
  312. else if(PlayerInfo[playerid][pLider] == 11 || PlayerInfo[playerid][pClan] == 11)
  313. {
  314. SetPlayerPos(playerid, -684.4458,939.9050,13.6328);
  315. SetPlayerInterior(playerid, 0);
  316. TogglePlayerControllable(playerid, 0);
  317. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  318. }
  319. else if(PlayerInfo[playerid][pLider] == 12 || PlayerInfo[playerid][pClan] == 12)
  320. {
  321. SetPlayerPos(playerid, 2779.5396,2720.2158,14.1059);
  322. SetPlayerInterior(playerid, 5);
  323. TogglePlayerControllable(playerid, 0);
  324. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  325. }
  326. else if(PlayerInfo[playerid][pLider] == 13 || PlayerInfo[playerid][pClan] == 13)
  327. {
  328. SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
  329. SetPlayerInterior(playerid, 6);
  330. TogglePlayerControllable(playerid, 0);
  331. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  332. }
  333. else if(PlayerInfo[playerid][pLider] == 14 || PlayerInfo[playerid][pClan] == 14)
  334. {
  335. SetPlayerPos(playerid, 2815.3779, -1686.7189, 664.5162);
  336. SetPlayerInterior(playerid, 0);
  337. TogglePlayerControllable(playerid, 0);
  338. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  339. }
  340. else if(PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pClan] == 15)
  341. {
  342. SetPlayerPos(playerid, 204.6440, -107.2588, 1014.4465);
  343. SetPlayerInterior(playerid, 0);
  344. TogglePlayerControllable(playerid, 0);
  345. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  346. }
  347. else if(PlayerInfo[playerid][pLider] == 16 || PlayerInfo[playerid][pClan] == 16)
  348. {
  349. SetPlayerPos(playerid, -1109.4250,-86.4950,2040.1669);
  350. SetPlayerInterior(playerid, 0);
  351. PlayerInfo[playerid][pUfbi] = 1;
  352. SetPlayerColor(playerid, 0x2641FEAA);
  353. TogglePlayerControllable(playerid, 0);
  354. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  355. }
  356. else if(PlayerInfo[playerid][pLider] == 17 || PlayerInfo[playerid][pClan] == 17)
  357. {
  358. SetPlayerPos(playerid, 104.6764,1822.0388,-50.1131);
  359. SetPlayerInterior(playerid, 0);
  360. TogglePlayerControllable(playerid, 0);
  361. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  362. }
  363. else if(PlayerInfo[playerid][pLider] == 18 || PlayerInfo[playerid][pClan] == 18)
  364. {
  365. SetPlayerPos(playerid, 2629.8142, -1088.9027, 1045.2133);
  366. SetPlayerInterior(playerid, 0);
  367. TogglePlayerControllable(playerid, 0);
  368. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  369. }
  370. else if(PlayerInfo[playerid][pLider] == 19 || PlayerInfo[playerid][pClan] == 19)
  371. {
  372. SetPlayerPos(playerid, -414.6654, 1300.5529, 2.5070);
  373. SetPlayerInterior(playerid, 0);
  374. TogglePlayerControllable(playerid, 0);
  375. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  376. }
  377. else if(PlayerInfo[playerid][pLider] == 20 || PlayerInfo[playerid][pClan] == 20)
  378. {
  379. SetPlayerPos(playerid, -558.46368, -509.58759, -38.86374);
  380. SetPlayerInterior(playerid, 0);
  381. TogglePlayerControllable(playerid, 0);
  382. freeze[playerid] = SetTimerEx("Freeze",3000, false, "i", playerid);
  383. }
  384. else
  385. {
  386. PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
  387. new rand = random(sizeof(RandomSpawn));
  388. SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
  389. SetPlayerInterior(playerid, 0);
  390. }
  391. }
  392. else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_NORMALV)
  393. {
  394. SetPlayerPos(playerid, 1674.1406,1448.3599,10.7834);
  395. SetPlayerInterior(playerid, 0);
  396. }
  397. else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_KUCA)
  398. {
  399. if(PlayerInfo[playerid][pPosedovanjeKuce] != -1)
  400. {
  401. new i = PlayerInfo[playerid][pPosedovanjeKuce];
  402. SetPlayerInterior(playerid, KucaInfo[i][kInt]); SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
  403. SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
  404. }
  405. else
  406. {
  407. PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
  408. new rand = random(sizeof(RandomSpawn));
  409. SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
  410. SetPlayerInterior(playerid, 0);
  411. }
  412. }
  413. else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_RENTKUCA)
  414. {
  415. if(PlayerInfo[playerid][pRent] != -1)
  416. {
  417. new i = PlayerInfo[playerid][pRent];
  418. SetPlayerInterior(playerid, KucaInfo[i][kInt]); SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
  419. SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
  420. }
  421. else
  422. {
  423. PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
  424. new rand = random(sizeof(RandomSpawn));
  425. SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
  426. SetPlayerInterior(playerid, 0);
  427. }
  428. }
  429. else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_STAN)
  430. {
  431. if(PlayerInfo[playerid][pPosedovanjeStana] != -1)
  432. {
  433. new i = PlayerInfo[playerid][pPosedovanjeStana];
  434. SetPlayerInterior(playerid, StanInfo[i][sInt]); SetPlayerVirtualWorld(playerid, StanInfo[i][sVW]);
  435. SetPlayerPos(playerid, StanInfo[i][sIzlazX], StanInfo[i][sIzlazY], StanInfo[i][sIzlazZ]);
  436. }
  437. else
  438. {
  439. PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
  440. new rand = random(sizeof(RandomSpawn));
  441. SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
  442. SetPlayerInterior(playerid, 0);
  443. }
  444. }
  445. else if(PlayerInfo[playerid][pProveraSpawna] == SPAWN_VIKENDICA)
  446. {
  447. if(PlayerInfo[playerid][pPosedovanjeVikendice] != -1)
  448. {
  449. new i = PlayerInfo[playerid][pPosedovanjeVikendice];
  450. SetPlayerInterior(playerid, VikendiceInfo[i][viInt]); SetPlayerVirtualWorld(playerid, VikendiceInfo[i][viVW]);
  451. SetPlayerPos(playerid, VikendiceInfo[i][viIzlazX], VikendiceInfo[i][viIzlazY], VikendiceInfo[i][viIzlazZ]);
  452. }
  453. else
  454. {
  455. PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
  456. new rand = random(sizeof(RandomSpawn));
  457. SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
  458. SetPlayerInterior(playerid, 0);
  459. }
  460. }
  461. return 1;
  462. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement