Guest User

Untitled

a guest
Apr 29th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.62 KB | None | 0 0
  1. public OnPlayerSpawn( playerid ) {
  2.  
  3. if(ShowedRegisterMain[playerid]) return 1;
  4.  
  5. if(PI[playerid][xVIPLevel] >= 2)
  6. {
  7. SetPlayerHealth(playerid, 100);
  8. return true;
  9. }
  10. if(PI[playerid][xVIPLevel] >= 3)
  11. {
  12. SetPlayerArmour(playerid, 100);
  13. return true;
  14. }
  15. if(PI[playerid][xVIPLevel] >= 6)
  16. {
  17. PI[playerid][xZastitnaKaciga] = 1;
  18. ZastitnaKaciga[playerid] = true;
  19. ZastitnaKacigaNosenje[playerid] = false;
  20. }
  21. if (!isAltChatToggled(playerid)) toggleAltChat(playerid, true);
  22. SetPlayerColor( playerid, 0xFFFFFF00 );
  23. for( new i = 0; i < 13; i++ ) {
  24. antiCheatCS[ playerid ][ Weapon ][ i ] = 0;
  25. antiCheatCS[ playerid ][ Ammo ][ i ] = 0;
  26. }
  27. CancelSelectTextDraw( playerid );
  28. SetPlayerTDStats( playerid );
  29. PocetniNovac( playerid, PI[ playerid ][ xNovac ] );
  30. SetPlayerScore( playerid, PI[ playerid ][ xLevel ] );
  31. SetPlayerSkin( playerid, PI[ playerid ][ xSkin ] );
  32. SetPlayerInterior( playerid, 0 );
  33. PI[ playerid ][ xUbijen ] = 0;
  34. SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][xSkills][0]);
  35. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][xSkills][1]);
  36. SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][xSkills][2]);
  37. SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][xSkills][3]);
  38. SetPlayerVirtualWorld( playerid, 0 );
  39.  
  40. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  41. antiCheatCS[ playerid ][ WeaponDetect ] = 4;
  42. antiCheatCS[ playerid ][ EnteredVehicle ] = INVALID_VEHICLE_ID;
  43.  
  44. if( AdminVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( AdminVozilo[ playerid ] ), AdminVozilo[ playerid ] = -1;
  45.  
  46. if( TrkaVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( TrkaVozilo[ playerid ] ), TrkaVozilo[ playerid ] = -1;
  47.  
  48. DonatorBoja( playerid );
  49.  
  50. for( new id = 1; id < MAX_GZONE; id++ ) {
  51.  
  52. new filename[ 32 ], stringic[ 24 ];
  53. format( filename, sizeof( filename ), F_GZONE, id );
  54.  
  55. if( fexist( filename ) ) {
  56.  
  57. format( stringic, sizeof( stringic ), "0x%s66", gZoneInfo[ id ][ gZoneColor ] );
  58. GangZoneShowForPlayer( playerid, gZoneInfo[ id ][ gZoneID ], HexToInt( stringic ) );
  59.  
  60. }
  61. }
  62.  
  63. if( WARPInfo[ playerid ][ WARIgrac ] != -1 )
  64. {
  65. new w = WARPInfo[ playerid ][ WARIgrac ];
  66.  
  67. SetPlayerVirtualWorld( playerid, w );
  68. ac_SetPlayerHealth( playerid, 100 );
  69. ac_SetPlayerArmour( playerid, 100 );
  70. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  71. antiCheatCS[ playerid ][ WeaponDetect ] = 4;
  72. if( WARInfo[ w ][ WARMapa ] == 1 ) {
  73. new rand1 = random( sizeof( RandomWARMapa11 ) );
  74. new rand2 = random( sizeof( RandomWARMapa12 ) );
  75. if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa11[ rand1 ][ 0 ], RandomWARMapa11[ rand1 ][ 1 ],RandomWARMapa11[ rand1 ][ 2 ] ); }
  76. else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa12[ rand2 ][ 0 ], RandomWARMapa12[ rand2 ][ 1 ],RandomWARMapa12[ rand2 ][ 2 ] ); }
  77. SetPlayerInterior( playerid, 0 );
  78. }
  79. else if( WARInfo[ w ][ WARMapa ] == 2 ) {
  80. new rand1 = random( sizeof( RandomWARMapa21 ) );
  81. new rand2 = random( sizeof( RandomWARMapa22 ) );
  82. if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa21[ rand1 ][ 0 ], RandomWARMapa21[ rand1 ][ 1 ],RandomWARMapa21[ rand1 ][ 2 ] ); }
  83. else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa22[ rand2 ][ 0 ], RandomWARMapa22[ rand2 ][ 1 ],RandomWARMapa22[ rand2 ][ 2 ] ); }
  84. SetPlayerInterior( playerid, 10 );
  85. }
  86. else if( WARInfo[ w ][ WARMapa ] == 3 ) {
  87. new rand1 = random( sizeof( RandomWARMapa31 ) );
  88. new rand2 = random( sizeof( RandomWARMapa32 ) );
  89. if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa31[ rand1 ][ 0 ], RandomWARMapa31[ rand1 ][ 1 ],RandomWARMapa31[ rand1 ][ 2 ] ); }
  90. else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa32[ rand2 ][ 0 ], RandomWARMapa32[ rand2 ][ 1 ],RandomWARMapa32[ rand2 ][ 2 ] ); }
  91. SetPlayerInterior( playerid, 0 );
  92. }
  93. else if( WARInfo[ w ][ WARMapa ] == 4 ) {
  94. new rand1 = random( sizeof( RandomWARMapa41 ) );
  95. new rand2 = random( sizeof( RandomWARMapa42 ) );
  96. if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa41[ rand1 ][ 0 ], RandomWARMapa41[ rand1 ][ 1 ], RandomWARMapa41[ rand1 ][ 2 ] ); }
  97. else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa42[ rand2 ][ 0 ], RandomWARMapa42[ rand2 ][ 1 ], RandomWARMapa42[ rand2 ][ 2 ] ); }
  98. SetPlayerInterior( playerid, 0 );
  99. }
  100. else if( WARInfo[ w ][ WARMapa ] == 5 ) {
  101. new rand1 = random( sizeof( RandomWARMapa51 ) );
  102. new rand2 = random( sizeof( RandomWARMapa52 ) );
  103. if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa51[ rand1 ][ 0 ], RandomWARMapa51[ rand1 ][ 1 ],RandomWARMapa51[ rand1 ][ 2 ] ); }
  104. else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa52[ rand2 ][ 0 ], RandomWARMapa52[ rand2 ][ 1 ],RandomWARMapa52[ rand2 ][ 2 ] ); }
  105. SetPlayerInterior( playerid, 0 );
  106. }
  107. GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 0 ], 300 );
  108. GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 1 ], 300 );
  109. GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 2 ], 300 );
  110. GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 3 ], 300 );
  111.  
  112. PI[ playerid ][ xSpawned ] = 1;
  113.  
  114. return true;
  115. }
  116. else if( NaDmEventu[ playerid ] == true )
  117. {
  118. new rand = random( sizeof( RandomDMPos ) );
  119. Papy_SetPlayerPos( playerid, RandomDMPos[ rand ][ 0 ], RandomDMPos[ rand ][ 1 ],RandomDMPos[ rand ][ 2 ] );
  120. SetPlayerFacingAngle( playerid, 360.000 );
  121. SetCameraBehindPlayer( playerid );
  122. SetPlayerInterior( playerid, 0 );
  123. SetPlayerVirtualWorld( playerid, 10 );
  124.  
  125. PI[ playerid ][ xSpawned ] = 1;
  126.  
  127. if( PI[ playerid ][ xDMEventUbistva ] >= 4500 ) {
  128. GiveWeaponToPlayer( playerid, 24, 150 );
  129. GiveWeaponToPlayer( playerid, 26, 150 );
  130. SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
  131. SetPlayerSkillLevel( playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999 );
  132. }
  133. else if( PI[ playerid ][ xDMEventUbistva ] >= 4000 ) {
  134. GiveWeaponToPlayer( playerid, 24, 150 );
  135. GiveWeaponToPlayer( playerid, 26, 150 );
  136. SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
  137. }
  138. else if( PI[ playerid ][ xDMEventUbistva ] >= 3500 ) {
  139. GiveWeaponToPlayer( playerid, 24, 150 );
  140. GiveWeaponToPlayer( playerid, 26, 150 );
  141. SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
  142. }
  143. else if( PI[ playerid ][ xDMEventUbistva ] >= 3000 ) {
  144. GiveWeaponToPlayer( playerid, 24, 150 );
  145. GiveWeaponToPlayer( playerid, 26, 150 );
  146. }
  147. else if( PI[ playerid ][ xDMEventUbistva ] >= 2500 ) {
  148. GiveWeaponToPlayer( playerid, 24, 150 );
  149. GiveWeaponToPlayer( playerid, 26, 150 );
  150. }
  151. else if( PI[ playerid ][ xDMEventUbistva ] >= 2000 ) {
  152. GiveWeaponToPlayer( playerid, 24, 150 );
  153. GiveWeaponToPlayer( playerid, 26, 150 );
  154. }
  155. else if( PI[ playerid ][ xDMEventUbistva ] >= 1500 ) {
  156. GiveWeaponToPlayer( playerid, 24, 150 );
  157. GiveWeaponToPlayer( playerid, 26, 100 );
  158. }
  159. else if( PI[ playerid ][ xDMEventUbistva ] >= 1000 ) {
  160. GiveWeaponToPlayer( playerid, 24, 150 );
  161. GiveWeaponToPlayer( playerid, 26, 100 );
  162. }
  163. else if( PI[ playerid ][ xDMEventUbistva ] >= 500 ) {
  164. GiveWeaponToPlayer( playerid, 25, 200 );
  165. GiveWeaponToPlayer( playerid, 26, 100 );
  166. }
  167. else if( PI[ playerid ][ xDMEventUbistva ] >= 0 ) {
  168. GiveWeaponToPlayer( playerid, 24, 200 );
  169. GiveWeaponToPlayer( playerid, 26, 100 );
  170. }
  171.  
  172. ac_SetPlayerHealth( playerid, 100 );
  173. ac_SetPlayerArmour( playerid, 100 );
  174. return true;
  175. }
  176. else if(Bolnica_Timer[playerid] > 0)
  177. {
  178. Papy_SetPlayerPos(playerid, 1990.0701,240.4743,1234.0085);
  179. SetPlayerFacingAngle(playerid, 94.3155);
  180. SetPlayerInterior(playerid, 0);
  181. SetPlayerVirtualWorld(playerid, 0);
  182. ac_TogglePlayerControllable(playerid, false);
  183. ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  184. Bolnica_Spawn[playerid] = true;
  185. return 1;
  186. }
  187. else
  188. {
  189. PI[ playerid ][ xSpawned ] = 1;
  190. PostaviSpawn( playerid );
  191. }
  192.  
  193. PI[ playerid ][ xSpawned ] = 1;
  194.  
  195. if( PI[ playerid ][ xWanted ] != 0 ) {
  196. strmid( ZlocinInfo[ playerid ][ zPrijavio ], "Nepoznato", 0, strlen( "Nepoznato" ), 255);
  197. strmid( ZlocinInfo[ playerid ][ zPocinio ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), 255);
  198. strmid( ZlocinInfo[ playerid ][ zZlocin ], "Nepoznato", 0, strlen( "Nepoznato" ), 255);
  199. Papy_SetPlayerWantedLevel( playerid, PI[ playerid ][ xWanted ] );
  200. }
  201. if( PrviSpawn[ playerid ] == 1 ) {
  202.  
  203. if( PlayerLogged[ playerid ] == true ) {
  204.  
  205. new h,mi,sec;
  206. gettimeEx(h,mi,sec);
  207. FixHour( h );
  208. h = shifthour;
  209. StopAudioStreamForPlayer( playerid );
  210. TogglePlayerSpectating(playerid, false);
  211. SCM( playerid, -1, " ");
  212. SCM( playerid, -1, " ");
  213. SCM( playerid, -1, " ");
  214. SCM( playerid, -1, " ");
  215. SCM( playerid, -1, " ");
  216. SCM( playerid, -1, " ");
  217. SCM( playerid, -1, "||===================================================================================||" );
  218. format( globalstring, sizeof( globalstring ), "{FFFFFF}Dobro nam dosli, Vasa Poslednja aktivnost - %s", PI[playerid][xLastLogin]);
  219. SendClientMessage( playerid, 0xFFFFFFF,globalstring );
  220. SCM( playerid, -1, "Aktiviran je zinski mod! Komande: /kapica, /sneg /ngmuzika (Credits: Mega(TD Count))");
  221. SCM( playerid, -1, "{3498DB}[AKTIVNA IGRA] Aktiviran je sistem aktivne igre, Vise o tome procitajte na /aktivaigra !");
  222. if( ServerInfo[ HappyHours ] == 1 ) {
  223. //SCM( playerid, BELA, "Happy Hours je ukljucen." );
  224. }
  225. if( ServerInfo[ HappyLVLHours ] == true ) {
  226. //if( PI[ playerid ][ xLevel ] < ServerInfo[ HLVLHours ] ) SendClientMessageEx( playerid,SERVERBOJA, "Happy Hours do levela %d je ukljucen.", ServerInfo[ HLVLHours ] );
  227. }
  228.  
  229. if( PI[ playerid ][ xAdmin ] >= 1 ) {
  230.  
  231. if( PI[ playerid ][ xAdmin ] < 7 ) {
  232.  
  233. new adminstring[ 128 ];
  234. if( PI[ playerid ][ xSkriptaRank ] == 2 ) {
  235.  
  236. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao VODJA HELPERA." );
  237. format( adminstring, sizeof( adminstring ), "VODJA HELPERA %s je usao na server.", ImeIgraca( playerid ) );
  238. }
  239. else if( PI[ playerid ][ xSkriptaRank ] == 3 ) {
  240.  
  241. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao DIREKTOR." );
  242. format( adminstring, sizeof( adminstring ), "MAPPER %s je usao na server.", ImeIgraca( playerid ) );
  243. }
  244. else if( PI[ playerid ][ xSkriptaRank ] == 6 ) {
  245.  
  246. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP] "col_white"Ulogovan si kao SUVLASNIK." );
  247. format( adminstring, sizeof( adminstring ), "SUVLASNIK %s je usao na server.", ImeIgraca( playerid ) );
  248. }
  249. else if( PI[ playerid ][ xSkriptaRank ] == 7) {
  250.  
  251. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao GLAVNI MAPPER." );
  252. format( adminstring, sizeof( adminstring ), "GLAVNI MAPPER %s je usao na server.", ImeIgraca( playerid ) );
  253. }
  254. else if( PI[ playerid ][ xSkriptaRank ] == 8) {
  255.  
  256. //SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao PREDSEDNIK." );
  257. format( adminstring, sizeof( adminstring ), "PREDSEDNIK %s je usao na server.", ImeIgraca( playerid ) );
  258. }
  259. else if( PI[ playerid ][ xAdmin ] == 6 ) {
  260.  
  261. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao DIREKTOR." );
  262. format( adminstring, sizeof( adminstring ), "DIREKTOR %s je usao na server.", ImeIgraca( playerid ) );
  263. }
  264. else if( PI[ playerid ][ xAdmin ] == 5 ) {
  265.  
  266. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao GLAVNI ADMIN." );
  267. format( adminstring, sizeof( adminstring ), "GLAVNI ADMIN %s je usao na server.", ImeIgraca( playerid ) );
  268. }
  269. else if( PI[ playerid ][ xAdmin ] >= 1 && PI[ playerid ][ xAdmin ] <= 4 ) {
  270.  
  271. SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao ADMIN." );
  272. format( adminstring, sizeof( adminstring ), "ADMIN %d "col_white" %s je usao na server.", PI[ playerid ][ xAdmin ], ImeIgraca( playerid ) );
  273. }
  274. AdminPoruka( 0x6495EDAA, adminstring );
  275.  
  276. }
  277. else if( PI[ playerid ][ xAdmin ] >= 7 ) {
  278.  
  279. // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao VLASNIK." );
  280. foreach(new i:Player) {
  281. if( PI[ i ][ xAdmin ] >= 7 ) {
  282. format( globalstring, sizeof( globalstring ), "VLASNIK "col_white"%s je usao na server.", ImeIgraca( playerid ) );
  283. SCM( i, 0xFF6347AA, globalstring );
  284. }
  285. }
  286. }
  287. }
  288.  
  289. if( PI[ playerid ][ xAdmin ] > 0 ) offAdminNeaktivnost( playerid );
  290. if( PI[ playerid ][ xSupporter ] > 0 ) offSupporterNeaktivnost( playerid );
  291.  
  292. else if( PI[ playerid ][ xSupporter ] >= 1 ) {
  293. SendClientMessageEx( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao Helper Level %d.", PI[ playerid ][ xSupporter ] );
  294. format( globalstring, sizeof( globalstring ), "- HELPER |%d| - %s usao na server.", PI[ playerid ][ xSupporter ], ImeIgraca( playerid ) );
  295. RPTChat( HELPER, globalstring );
  296. }
  297. if( PI[ playerid ][ xVoziloID ][ 0 ] != -1 ) {
  298.  
  299. if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 0 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
  300.  
  301. SCM( playerid, BELA, "Vozilo 1 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  302. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  303. PI[ playerid ][ xVoziloID ][ 0 ]=-1;
  304. SavePlayer( playerid );
  305. }
  306. }
  307. if( PI[ playerid ][ xVoziloID ][ 1 ] != -1 ) {
  308.  
  309. if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 1 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
  310.  
  311. SCM( playerid, BELA, "Vozilo 2 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  312. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  313. PI[ playerid ][ xVoziloID ][ 1 ] = -1;
  314. SavePlayer( playerid );
  315. }
  316. }
  317. if( PI[ playerid ][ xVoziloID ][ 2 ] != -1 ) {
  318.  
  319. if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 2 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
  320.  
  321. SCM( playerid, BELA, "Vozilo 3 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  322. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  323. PI[ playerid ][ xVoziloID ][ 2 ] = -1;
  324. SavePlayer( playerid );
  325. }
  326. }
  327. if( PI[ playerid ][ xVoziloID ][ 3 ] != -1 ) {
  328.  
  329. if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 3 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
  330.  
  331. SCM( playerid, BELA, "Vozilo 4 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  332. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  333. PI[ playerid ][ xVoziloID ][ 3 ] = -1;
  334. SavePlayer( playerid );
  335. }
  336. }
  337.  
  338. if( PI[ playerid ][ xProperty ][ 0 ] != -1 ) {
  339.  
  340. if( strcmp( II[ PI[ playerid ][ xProperty ][ 0 ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
  341.  
  342. SCM( playerid, BELA, "Kuca vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  343. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  344. PI[ playerid ][ xProperty ][ 0 ] = -1;
  345. SavePlayer( playerid );
  346. }
  347. }
  348. if( PI[ playerid ][ xProperty ][ 1 ] != -1 ) {
  349.  
  350. if( strcmp( II[ PI[ playerid ][ xProperty ][ 1 ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
  351.  
  352. SCM( playerid, BELA, "Kuca 2 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  353. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  354. PI[ playerid ][ xProperty ][ 1 ] = -1;
  355. SavePlayer( playerid );
  356. }
  357. }
  358. if( PI[ playerid ][ xProperty ][ 2 ] != -1 ) {
  359.  
  360. if( strcmp( II[ PI[ playerid ][ xProperty ][ 2 ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
  361.  
  362. SCM( playerid, BELA, "Kuca 3 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  363. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  364. PI[ playerid ][ xProperty ][ 2 ] = -1;
  365. SavePlayer( playerid );
  366. }
  367. }
  368. if( PI[ playerid ][ xGarageID ] != -1 ) {
  369.  
  370. if( strcmp( garageInfo[ PI[ playerid ][ xGarageID ] ][ garageVlasnik ], ImeIgraca( playerid ), true ) ) {
  371.  
  372. SCM( playerid, BELA, "Garaza vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  373. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  374. PI[ playerid ][ xGarageID ] = -1;
  375. SavePlayer( playerid );
  376. }
  377. }
  378. if( PI[ playerid ][ xFirmaID ] != -1 ) {
  379.  
  380. if( strcmp( BussinesInfo[ PI[ playerid ][ xFirmaID ] ][ bVlasnik ], ImeIgraca( playerid ), true ) ) {
  381.  
  382. SCM( playerid, BELA, "Firma vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
  383. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h ili nedostatak faktura." );
  384. PI[ playerid ][ xFirmaID ] = -1;
  385. SavePlayer( playerid );
  386. }
  387. }
  388. if( PI[ playerid ][ xImanjeID ] != -1 ) {
  389.  
  390. if( strcmp( ImanjeInfo[ PI[ playerid ][ xImanjeID ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
  391.  
  392. SCM( playerid, BELA, "Imanje vise nije u vasem vlasnistvu, obratite se na forum ako mislite da je greska." );
  393. SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
  394. PI[ playerid ][ xImanjeID ] = -1;
  395. SavePlayer( playerid );
  396. }
  397. }
  398. #if ZIMSKI_MOD == 0
  399. InfoMessage( playerid, "Balkan RolePlay Staff Tim vam zeli sretne Bozicne i novogodislje praznike. 'HAPPY NEW YEAR 2017' [ /sneg ]" );
  400. #endif
  401. // PostaviBojuTD(playerid);
  402. }
  403. PrviSpawn[ playerid ] = 0;
  404. }
  405. if( PI[ playerid ][ xBStil ] == 0) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_NORMAL); }
  406. else if( PI[ playerid ][ xBStil ] == 1) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_BOXING); }
  407. else if( PI[ playerid ][ xBStil ] == 2) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_KUNGFU); }
  408. else if( PI[ playerid ][ xBStil ] == 3) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_KNEEHEAD); }
  409. else if( PI[ playerid ][ xBStil ] == 4) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_GRABKICK); }
  410.  
  411. SetPlayerSkillLevel( playerid, WEAPONSKILL_MP5, 999 );
  412.  
  413. RemovePlayerAttachedObject( playerid, OBJECT_SLOT_RHAND );
  414. //RemovePlayerAttachedObject( playerid, OBJECT_SLOT_FREE );
  415. RemovePlayerAttachedObject( playerid, OBJECT_SLOT_LHAND );
  416. RemovePlayerAttachedObject( playerid, OBJECT_SLOT_HELMET );
  417. RemovePlayerAttachedObject( playerid, OBJECT_SLOT_MASK );
  418. RemovePlayerAttachedObject( playerid, OBJECT_SLOT_BADGE );
  419. RemovePlayerAttachedObject( playerid, OBJECT_SLOT_WINTERCAP );
  420.  
  421. // -------------------------------------------------------------------------
  422.  
  423. SK_Zastita[playerid] = gettime()+7;
  424. SendClientMessage(playerid, plavaboja, "[ANTI SK]: "col_white"Zasticeni ste 7 sekundi od Spawn Killa!");
  425. SetTimerEx("AntiSpawnKill", 7000, 0, "i", playerid);
  426.  
  427. // -------------------------------------------------------------------------
  428.  
  429. if( HeadOn[ playerid ] ) SetPlayerAttachedObject( playerid, OBJECT_SLOT_HEAD, PI[ playerid ][ xHead ],2,PI[ playerid ][ xHeadPos ][ 0 ],PI[ playerid ][ xHeadPos ][ 1 ],PI[ playerid ][ xHeadPos ][ 2 ],PI[ playerid ][ xHeadPos ][ 3 ],PI[ playerid ][ xHeadPos ][ 4 ],PI[ playerid ][ xHeadPos ][ 5 ],PI[ playerid ][ xHeadPos ][ 6 ],PI[ playerid ][ xHeadPos ][ 7 ],PI[ playerid ][ xHeadPos ][ 8 ], 0, 0);
  430. if( SungOn[ playerid ] ) {
  431. SetPlayerAttachedObject( playerid, OBJECT_SLOT_MASKSUNGL, PI[ playerid ][ xSungMask ],2,PI[ playerid ][ xSungMaskPos ][ 0 ],PI[ playerid ][ xSungMaskPos ][ 1 ],PI[ playerid ][ xSungMaskPos ][ 2 ],PI[ playerid ][ xSungMaskPos ][ 3 ],PI[ playerid ][ xSungMaskPos ][ 4 ],PI[ playerid ][ xSungMaskPos ][ 5 ],PI[ playerid ][ xSungMaskPos ][ 6 ],PI[ playerid ][ xSungMaskPos ][ 7 ],PI[ playerid ][ xSungMaskPos ][ 8 ], 0, 0);
  432. }
  433. if( FaceOn[ playerid ] ) SetPlayerAttachedObject( playerid, OBJECT_SLOT_BANDANA, PI[ playerid ][ xFace ],2,PI[ playerid ][ xFacePos ][ 0 ],PI[ playerid ][ xFacePos ][ 1 ],PI[ playerid ][ xFacePos ][ 2 ],PI[ playerid ][ xFacePos ][ 3 ],PI[ playerid ][ xFacePos ][ 4 ],PI[ playerid ][ xFacePos ][ 5 ],PI[ playerid ][ xFacePos ][ 6 ],PI[ playerid ][ xFacePos ][ 7 ],PI[ playerid ][ xFacePos ][ 8 ], 0, 0);
  434.  
  435. PlayerCuffed[ playerid ] = 0; PoliceDuty[ playerid ] = false; KillTimer(Cuff_Timer[playerid]);
  436. NosiObjekt[ playerid ][ 0 ] = false; NosiObjekt[ playerid ][ 1 ] = false; NosiObjekt[ playerid ][ 2 ] = false;
  437.  
  438. UzeoPicu[ playerid ] = false;
  439. NosiPaketOruzja[ playerid ] = false; garbagemanInfo[ playerid ][ gmiHasGarbage ] = false;
  440. farmerInfo[ playerid ][ fiHaveBucket ] = false; RiotShield[ playerid ] = false;
  441. LaptopRuke[ playerid ] = false;
  442. PuniGorivo[ playerid ] = false; IgracZavezan[ playerid ] = false;
  443.  
  444. if( PlayerBuyingAS[ playerid ] != -1 ) {
  445. AutoSalon[ PlayerBuyingAS[ playerid ] ][ AlreadyBuying ] = false;
  446. PlayerBuyingAS[ playerid ] = -1;
  447. }
  448.  
  449. farmerInfo[ playerid ][ fiCowNumber ] = 0;
  450. if( farmerInfo[ playerid ][ fiVehicleBucket ] != -1 ) {
  451. new farmvehicle = farmerInfo[ playerid ][ fiVehicleBucket ];
  452.  
  453. farmerVehicles[ farmvehicle ][ fvMilk ] = false;
  454. farmerVehicles[ farmvehicle ][ fvMilkpID ] = -1;
  455. }
  456.  
  457. SetPlayerSkillLevel( playerid, WEAPONSKILL_PISTOL, 1 );
  458. SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 1 );
  459.  
  460. ac_SetPlayerSpecialAction( playerid, SPECIAL_ACTION_NONE );
  461.  
  462. Papy_KillTimer( atmrobTimer[ playerid ] );
  463.  
  464. if( PI[ playerid ][ xRPLearn ] == 1 ) {
  465. TimerLearn[ playerid ] = SetTimerEx( "RolePlayTut", 3000, 0, "ii", playerid, 1);
  466. SCM( playerid, SVETLOCRVENA, "Nisi zavrsio tutorijal, pa si ponovno vracen da ga odgledas!" );
  467. }
  468.  
  469. if( PI[ playerid ][ xZatvor ] == OBICAN_ZATVOR ) {
  470. if( PI[ playerid ][ xLeaveJail ] == true ) {
  471. SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}%s stavljen si u jail na %d minuta i izgubio si %d$!", ImeIgraca( playerid ), PI[ playerid ][ xZatvorVreme ], ((PI[ playerid ][ xZatvorVreme ]/10)*1000) );
  472. SCM( playerid,SERVERBOJA, "JAIL:"col_white"{FFFFFF}Izalazak sa servera sa Wanted Levelom'");
  473. PI[ playerid ][ xLeaveJail ] = false;
  474. }
  475. }
  476.  
  477. if( PI[ playerid ][ xZatvor ] == OBICAN_ZATVOR ) {
  478. if( strlen( PI[ playerid ][ xOffPJail ] ) > 2 ) {
  479. SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}%s je stavljen u jail na %d minuta od strane Admin tima!", ImeIgraca( playerid ), PI[ playerid ][ xZatvorVreme ] );
  480. SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}RAZLOG: '%s'", PI[ playerid ][ xOffPJail ] );
  481. strmid( PI[ playerid ][ xOffPJail ], "N", 0, strlen("N"), 2 );
  482. }
  483. }
  484. if( PI[ playerid ][ xMute ] > 0 ) {
  485. if( strlen( PI[ playerid ][ xOffPMute ] ) > 2 ) {
  486. SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF} %s je mutiran na %d minuta od strane Admin tima!", ImeIgraca( playerid ), PI[ playerid ][ xMute ]/60 );
  487. SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}RAZLOG: '%s'", PI[ playerid ][ xOffPMute ] );
  488. strmid( PI[ playerid ][ xOffPMute ], "N", 0, strlen("N"), 2 );
  489. }
  490. }
  491. if( PI[ playerid ][ xZatvor ] == ALKATRAZ ) {
  492. if( strlen( PI[ playerid ][ xOffPPrison ] ) > 2 ) {
  493. SendClientMessageEx( playerid,SERVERBOJA, ""col_white" %s je stavljen u prison na %dh od strane Admin tima!", ImeIgraca( playerid ), PI[ playerid ][ xZatvorVreme ]/60 );
  494. SendClientMessageEx( playerid,SERVERBOJA, ""col_white" RAZLOG: '%s'", PI[ playerid ][ xOffPPrison ] );
  495. strmid( PI[ playerid ][ xOffPPrison ], "N", 0, strlen("N"), 2 );
  496. }
  497. }
  498. if( PI[ playerid ][ xMaraton ] > 0 )
  499. {
  500. SCM( playerid, -1, "Niste zavrsili lavirint kaznu, vracate se gde ste bili!" );
  501. Papy_SetPlayerPos( playerid, 852.8660,1753.9944,1373.1364 );
  502. SetPlayerFacingAngle( playerid, 317.1445 );
  503. SetCameraBehindPlayer( playerid );
  504. Papy_SetPlayerCheckpoint( playerid, 868.7183, 1769.6001, 1372.8619, 7.0 );
  505. Maratonac[ playerid ] = 1;
  506. pocspawn[ playerid ] = 1;
  507. return 1;
  508. }
  509. if( SpecPos[ playerid ][ 0 ] != 0.0 && SpecPos[ playerid ][ 1 ] != 0.0 ) {
  510. Papy_SetPlayerPos( playerid, SpecPos[ playerid ][ 0 ], SpecPos[ playerid ][ 1 ], SpecPos[ playerid ][ 2 ] );
  511. SetPlayerVirtualWorld( playerid, SpecVW[ playerid ] );
  512. SetPlayerInterior( playerid, SpecInt[ playerid ] );
  513.  
  514. if( PI[ playerid ][ xAdmin ] > 0 && PI[ playerid ][ xAdmin ] < 7 && PI[ playerid ][ xPol ] == 1 ) {
  515. SetPlayerSkin( playerid, 294 );
  516. }
  517. else if( PI[ playerid ][ xSupporter ] > 0 && PI[ playerid ][ xPol ] == 1 ) {
  518. SetPlayerSkin( playerid, 59 );
  519. }
  520.  
  521. SpecPos[ playerid ][ 0 ] = 0.0;
  522. SpecPos[ playerid ][ 1 ] = 0.0;
  523. SpecPos[ playerid ][ 2 ] = 0.0;
  524. }
  525.  
  526. return true;
  527. }
Advertisement
Add Comment
Please, Sign In to add comment