Advertisement
Guest User

Untitled

a guest
Apr 29th, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.90 KB | None | 0 0
  1. public OnPlayerDisconnect( playerid, reason ) {
  2.  
  3. Pokupio[playerid] = 0;
  4. animacija[playerid] = 0;
  5. VehicleInfo[ Rentano[ playerid ] ][ Validv3DText ] = false;
  6. DestroyDynamic3DTextLabel(VehicleInfo[ Rentano[ playerid ] ][ v3DText ]);
  7. ResetVehicle( Rentano[ playerid ] );
  8. DestroyVehicle( Rentano[ playerid ] );
  9. ResetVehicle( playerid );
  10. Rentano[ playerid ] = -1;
  11. new lastid = playerid;
  12. if( IsValidDynamicMapIcon( PlayerGpsRadar[ playerid ][ _pgrIconId ] ) ) {
  13. DestroyDynamicMapIcon( PlayerGpsRadar[ playerid ][ _pgrIconId ] );
  14. }
  15.  
  16. if( IsValidDynamicObject( PlayerGpsRadar[ playerid ][ _pgrObject ] ) ) {
  17. DestroyDynamicObject( PlayerGpsRadar[ playerid ][ _pgrObject ] );
  18. }
  19.  
  20. if( IsValidDynamicCP( PlayerGpsRadar[ playerid ][ _pgrCheckPointId ] ) ) {
  21. DestroyDynamicCP( PlayerGpsRadar[ playerid ][ _pgrCheckPointId ] );
  22. }
  23.  
  24. ExitPlayerFromSlotMachine( playerid );
  25. if( Start[ playerid ] != PlayerText:INVALID_TEXT_DRAW ) {
  26. Delete_PokerTextDraw( playerid );
  27. }
  28.  
  29. if(vreca[playerid] != 0)
  30. {
  31. Kreiraj_Vreca_PTD(playerid, 0);
  32. vreca[playerid] = 0;
  33. }
  34. // eto // hvalaaaaa
  35. if(Uzeo_Vrecu[playerid] == 1)
  36. {
  37. VrecaDropan(playerid);
  38. }
  39. if(Uzeo_Kofer[playerid] == 1)
  40. {
  41. KoferDropan(playerid);
  42. }
  43.  
  44. TextDrawHideForPlayer( playerid, Digit1[ 0 ]);
  45. TextDrawHideForPlayer( playerid, Digit2[ 0 ]);
  46. TextDrawHideForPlayer( playerid, Digit3[ 0 ]);
  47.  
  48. TextDrawHideForPlayer( playerid, Digit1[ 1 ]);
  49. TextDrawHideForPlayer( playerid, Digit2[ 1 ]);
  50. TextDrawHideForPlayer( playerid, Digit3[ 1 ]);
  51.  
  52. TextDrawHideForPlayer( playerid, Digit1[ 2 ]);
  53. TextDrawHideForPlayer( playerid, Digit2[ 2 ]);
  54. TextDrawHideForPlayer( playerid, Digit3[ 2 ]);
  55.  
  56. TextDrawHideForPlayer( playerid, Digit1[3]);
  57. TextDrawHideForPlayer( playerid, Digit2[3]);
  58. TextDrawHideForPlayer( playerid, Digit3[3]);
  59.  
  60. TextDrawHideForPlayer( playerid, Digit1[4]);
  61. TextDrawHideForPlayer( playerid, Digit2[4]);
  62. TextDrawHideForPlayer( playerid, Digit3[4]);
  63.  
  64. TextDrawHideForPlayer( playerid, Digit1[5]);
  65. TextDrawHideForPlayer( playerid, Digit2[5]);
  66. TextDrawHideForPlayer( playerid, Digit3[5]);
  67.  
  68. TextDrawHideForPlayer(playerid,Box);
  69. TextDrawHideForPlayer(playerid,ReadyText);
  70.  
  71. if(SlotTimer[ playerid ] != -1) KillTimer(SlotTimer[ playerid ]);
  72.  
  73. if(IsValidPlayerObject(playerid, a_streljana[playerid])) DestroyPlayerObject(playerid, a_streljana[playerid]);
  74. DeletePVar(playerid, "k_listitem");
  75.  
  76. if( IsPlayerInAnyVehicle( playerid ) ) {
  77. new Float:x,Float:y,Float:z,vehicleid = GetPlayerVehicleID(playerid);
  78. GetVehiclePos( vehicleid,x, y, z );
  79. RealVehiclePositions[ vehicleid ][ 0 ] = x;
  80. RealVehiclePositions[ vehicleid ][ 1 ] = y;
  81. RealVehiclePositions[ vehicleid ][ 2 ] = z;
  82. }
  83.  
  84. antiCheatCS[ playerid ][ CPSCount ] = 0;
  85. antiCheatCS[ playerid ][ CPSTick ] = 0;
  86. antiCheatCS[ playerid ][ CWTime ] = 0;
  87. antiCheatCS[ playerid ][ CWVehID ] = -1;
  88.  
  89. if( IsValidPlayerObject( playerid, farmerInfo[ playerid ][ fiBucketObject ] ) )
  90. DestroyPlayerObject( playerid, farmerInfo[ playerid ][ fiBucketObject ] );
  91.  
  92. if( farmerInfo[ playerid ][ fiVehicleBucket ] != -1 ) {
  93. new farmvehicle = farmerInfo[ playerid ][ fiVehicleBucket ];
  94.  
  95. farmerVehicles[ farmvehicle ][ fvMilk ] = false;
  96. farmerVehicles[ farmvehicle ][ fvMilkpID ] = -1;
  97. }
  98.  
  99. if( SearchNadji[ playerid ] != -1 ) {
  100. SearchNadji[ playerid ] = -1;
  101. Papy_DisablePlayerCheckpoint( playerid);
  102. }
  103. if(PI[ playerid ][ xWanted ])
  104. {
  105. PI[ playerid ][ xZatvor ] = 1;
  106. PI[ playerid ][ xZatvorVreme ] = 30;
  107. PI[ playerid ][ xWanted ] = 0;
  108. strmid( ZlocinInfo[ playerid ][ zPrijavio ], "Nema", 0, strlen("Nema"), 255 );
  109. strmid( ZlocinInfo[ playerid ][ zPocinio ], "Nema", 0, strlen("Nema"), 255 );
  110. strmid( ZlocinInfo[ playerid ][ zZlocin ], "Nema", 0, strlen("Nema"), 255 );
  111. }
  112.  
  113. #if ZIMSKI_MOD == 1
  114. if( Snow[ playerid ] ) DestroyPlayerObject( playerid, SnowObject[ playerid ] );
  115. #endif
  116.  
  117. if( ListaPrikazana[ playerid ] ) {
  118. KladionicaTDControl( playerid, false );
  119. }
  120. if( MojListicPrikazan[ playerid ] ) {
  121. KladionicaListicTDControl( playerid, false );
  122. }
  123. if( RezultatiPrikazana[ playerid ] ) {
  124. RezultatiTDControl( playerid, false );
  125. }
  126.  
  127. if( PlayerInBlowJob[ playerid ] != 0 ) {
  128.  
  129. switch( PlayerInBlowJob[ playerid ] ) {
  130.  
  131. case 1: {
  132.  
  133. DestroyActor( Sex_Lisa );
  134. WhoreLisa = false;
  135. }
  136. case 2: {
  137.  
  138. DestroyActor( Sex_Angelina );
  139. WhoreAngelina = false;
  140. }
  141. case 3: {
  142.  
  143. DestroyActor( Sex_Mia );
  144. WhoreMia = false;
  145. }
  146. case 4: {
  147.  
  148. DestroyActor( Sex_Sendy );
  149. WhoreSendy = false;
  150. }
  151. }
  152.  
  153. StopAudioStreamForPlayer( playerid );
  154. SetCameraBehindPlayer( playerid );
  155. PlayerInBlowJob[ playerid ] = 0;
  156. SexTDControl( playerid, false );
  157. BlowJobCount[ playerid ] = 0;
  158. TogPlayerHud( playerid );
  159. ac_TogglePlayerControllable( playerid, ( true ) );
  160. ClearAnimations( playerid );
  161. Papy_KillTimer( PusenjeTimer[ playerid ] );
  162. }
  163.  
  164. switch( reason ) {
  165. case 0: {
  166. format( globalstring, sizeof( globalstring ), "[B:RP] %s[%d] je napustio server, Razlog:Crash", ImeIgraca( playerid ), playerid );
  167. AdminPoruka( BELA, globalstring );
  168. format( globalstring, sizeof( globalstring ), "(( Igrac %s je napustio server , razlog - crash ))", ImeIgraca( playerid ) );
  169. PorukaRadius( 60.0 , playerid, globalstring, ZUTA );
  170. }
  171. case 1: {
  172. format( globalstring, sizeof( globalstring ), "[B:RP] %s[%d] je napustio server, Razlog:Svojevoljno", ImeIgraca( playerid ), playerid );
  173. AdminPoruka( BELA, globalstring );
  174. format( globalstring, sizeof( globalstring ), "(( Igrac %s je napustio server ))", ImeIgraca( playerid ) );
  175. PorukaRadius( 60.0 , playerid, globalstring, ZUTA );
  176. }
  177. }
  178.  
  179. if( GetPVarInt( playerid, "Computer" ) == 1 ) {
  180. Police_TVTDControl( playerid, false );
  181. SetPVarInt( playerid, "Computer", 0 );
  182. }
  183.  
  184. DestroyPlayerTextDraws( playerid );
  185.  
  186. if( IgracSeRegistruje[ playerid ] == true ) RegisterTDControlMain( playerid, false );
  187.  
  188. if( AdminVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( AdminVozilo[ playerid ] ), AdminVozilo[ playerid ] = -1;
  189.  
  190. if( TrkaVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( TrkaVozilo[ playerid ] ), TrkaVozilo[ playerid ] = -1;
  191.  
  192. if( HitmanInfo[ playerid ][ GotHit ] > 0) {
  193. if( HitmanInfo[ playerid ][ GetChased ] < 999 ) {
  194. if( IsPlayerConnected( HitmanInfo[ playerid ][ GetChased ] ) ){
  195. SCM( HitmanInfo[ playerid ][ GetChased ], ZUTA, "Vasa meta je izasla sa servera." );
  196. HitmanInfo[ HitmanInfo[ playerid ][ GetChased ] ][ GoChase ] = 999;
  197. }
  198. }
  199. }
  200.  
  201. if( garbagemanInfo[ playerid ][ gmiJob ] == true ) {
  202.  
  203. new vehicleid = garbagemanInfo[ playerid ][ gmiVehicleID ];
  204.  
  205. garbagemanVehicles[ vehicleid ][ gGarbages ] = 0;
  206. garbagemanVehicles[ vehicleid ][ gPlayerID ] = -1;
  207.  
  208. ac_SetVehicleToRespawn( vehicleid );
  209. }
  210.  
  211. if( PlayerCement[ playerid ] != -1 ) VehCement[ PlayerCement[ playerid ] ] = false;
  212.  
  213. if( DeliverCar[ playerid ] != -1 ) KamionUsed[ DeliverCar[ playerid ] ] = -1, StateBox[ DeliverCar[ playerid ] ] = 0;
  214.  
  215. if( IDVozilaKojimSverca[ playerid ] != -1 ) KutijaMatsa[ IDVozilaKojimSverca[ playerid ] ] = false;
  216.  
  217. if( PlayerPrevozNovca[ playerid ] != -1 ) VehNovac[ PlayerPrevozNovca[ playerid ] ] = false;
  218.  
  219. if( PljackaVreme[ playerid ] > 0 ) Papy_KillTimer( PljackanjeBankeTimer[ playerid ] ), PljackaUToku = false;
  220.  
  221. PljackaVreme[ playerid ] = 0;
  222.  
  223. if( ZlatoVreme[ playerid ] > 0 ) Papy_KillTimer( PljackanjeZlatareTimer[ playerid ] ), ZlataraUToku = false;
  224.  
  225. ZlatoVreme[ playerid ] = 0;
  226.  
  227. if( DragedPlayerID[ playerid ] != -1 ) {
  228.  
  229. format( globalstring, sizeof( globalstring ), "%s je napustio server, pusteni ste.", ImeIgraca( playerid ) );
  230. SCM( DragedPlayerID[ playerid ], -1, globalstring );
  231. ac_TogglePlayerControllable( DragedPlayerID[ playerid ], 1 );
  232. Draged[ DragedPlayerID[ playerid ] ] = -1;
  233. }
  234.  
  235. if( farmerInfo[ playerid ][ fiFarmerPlantsPlanted ] != -1 ) {
  236.  
  237. for( new plantid = 0; plantid < MAX_FARMS; plantid++ ) {
  238.  
  239. if( plantInfo[ plantid ][ farmPlantCreated ] && plantInfo[ plantid ][ farmPlayerID ] == lastid ) {
  240.  
  241. if( IsValidDynamic3DTextLabel( plantInfo[ plantid ][ farm3D ] ) )
  242. DestroyDynamic3DTextLabel( plantInfo[ plantid ][ farm3D ] );
  243.  
  244. if( IsValidDynamicObject( plantInfo[ plantid ][ farmObject ] ) )
  245. DestroyDynamicObject( plantInfo[ plantid ][ farmObject ] );
  246.  
  247. ResetFarmPlant( plantid );
  248. }
  249. }
  250. }
  251.  
  252. PlayerTextDrawDestroy( playerid, PlayerGpsRadarText[ playerid ] );
  253.  
  254. if( PitanjeBroj[ playerid ] != 0 ) Papy_KillTimer( TimerPitanje[ playerid ] );
  255.  
  256. Papy_KillTimer( atmrobTimer[ playerid ] );
  257.  
  258. if( PocetniTutorialStartovan[ playerid ] == true ) Papy_KillTimer( TimerTutorial[ playerid ] );
  259. Papy_KillTimer( FarbanjeTimer[ playerid ] );
  260.  
  261. if( PI[ playerid ][ xUbijen ] == 1 ) Papy_KillTimer( BolnicaTimer[ playerid ] );
  262.  
  263. if( IgracPosadio[ playerid ] != 0 ) {
  264. for( new plantid = 1; plantid < MAX_PLANTS; plantid++ ) {
  265. if( strcmp( ImeIgraca( playerid ), DrogaStab[ plantid ][ wVlasnik ], true ) == 0 ) {
  266. if( DrogaStab[ plantid ][ wPlanted ] == 1 ) {
  267. DrogaStab[ plantid ][ Plantx ] = 0;
  268. DrogaStab[ plantid ][ Planty ] = 0;
  269. DrogaStab[ plantid ][ Plantz ] = 0;
  270. DrogaStab[ plantid ][ wType ] = 0;
  271. DrogaStab[ plantid ][ wPlanted ] = 0;
  272. DrogaStab[ plantid ][ wHoursPassed ] = 0;
  273. strmid( DrogaStab[ plantid ][ wVlasnik ], "Niko", 0, strlen( "Niko" ), 255);
  274. DrogaStab[ plantid ][wViwo] = GetPlayerVirtualWorld( playerid );
  275. DestroyDynamicObject( DrogaStab[ plantid ][ wObjectID ] );
  276. }
  277. }
  278. }
  279. }
  280.  
  281. if( PI[ playerid ][ xPosao ] == POSAO_MEHANICAR ) {
  282. if(GetPVarInt( playerid, "JobDuty") == 1) { Mechanics -= 1; }
  283. }
  284.  
  285. if( PlayerBuyingAS[ playerid ] != -1 ) {
  286. AutoSalon[ PlayerBuyingAS[ playerid ] ][ AlreadyBuying ] = false;
  287. PlayerBuyingAS[ playerid ] = -1;
  288. }
  289.  
  290. antiCheatCS[ playerid ][ ArmedWeapon ] = 0;
  291.  
  292. if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) {
  293. format( globalstring, sizeof( globalstring ), ""col_blue"- WAR - {F81414}%s: "col_white"je napustio WAR.", ImeIgraca( playerid ) );
  294. WARPoruka( WARPInfo[ playerid ][ WARIgrac ], 0xFF9900AA, globalstring );
  295. WARInfo[ WARPInfo[ playerid ][ WARIgrac ] ][ WARTimClanovi ][ 0 ]--; }
  296.  
  297. if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) {
  298. format( globalstring, sizeof( globalstring ), ""col_blue"- WAR - {0049FF}%s: "col_white"je napustio WAR.", ImeIgraca( playerid ) );
  299. WARPoruka( WARPInfo[ playerid ][ WARIgrac ], 0xFF9900AA, globalstring );
  300. WARInfo[ WARPInfo[ playerid ][ WARIgrac ] ][ WARTimClanovi ][ 1 ]--; }
  301.  
  302. if( Rentano[ playerid ] != -1 ) {
  303. Papy_KillTimer( RentTimer[ playerid ] );
  304. VehicleObjectCheck( Rentano[ playerid ] );
  305. ac_SetVehicleToRespawn( Rentano[ playerid ] );
  306. LinkVehicleToInterior( Rentano[ playerid ], 0 );
  307. Rentano[ playerid ] = -1;
  308. }
  309.  
  310. if( PlayerCuffed[ playerid ] >= 1 ) {
  311. if( PI[ playerid ][ xZatvor ] == 0 ) {
  312. PI[ playerid ][ xZatvor ] = OBICAN_ZATVOR;
  313. PI[ playerid ][ xZatvorVreme ] = 60;
  314. strmid( PI[ playerid ][ xOffPJail ], "LTA", 0, strlen("LTA"), 64 );
  315. KillTimer(Cuff_Timer[playerid]);
  316. }
  317. }
  318.  
  319. GlobalProdaja[ playerid ] = -1;
  320. Ponudjeno[ playerid ] = -1;
  321. Trazio[ playerid ] = -1;
  322. GlobalCena[ playerid ] = -1;
  323. GlobalID[ playerid ] = -1;
  324.  
  325. if( PI[ playerid ][ xWanted ] > 0 ) {
  326. if( PI[ playerid ][ xZatvor ] == 0 ) {
  327. foreach(new i:Player) {
  328. if( IsPlayerConnected( i ) ) {
  329. if( GetFactionType( i ) == ORG_TIP_PD && CrimInRange( 40.0, playerid, i ) ) {
  330.  
  331. PI[ playerid ][ xLeaveJail ] = true;
  332. PI[ playerid ][ xZatvor ] = OBICAN_ZATVOR;
  333. PI[ playerid ][ xZatvorVreme ] = 6*PI[ playerid ][ xWanted ];
  334. new price = PI[ playerid ][ xWanted ]*500;
  335. PI[ playerid ][ xNovac ] -= price;
  336. PI[ playerid ][ xWanted ] = 0;
  337. }
  338. }
  339. }
  340. }
  341. }
  342.  
  343. if( GetFactionType( playerid ) == ORG_TIP_MD ) {
  344. if( MedicDuty[ playerid ] == true ) { Medics -= 1; }
  345. }
  346.  
  347. if( GetPVarInt(playerid, "BreakingLock") == 1 )
  348. {
  349. Papy_KillTimer( GetPVarInt( playerid, "BreakLockTimer" ) );
  350. }
  351.  
  352. if( GetPVarInt( playerid, "ImmobTimerCalled") == 1 )
  353. {
  354. Papy_KillTimer( GetPVarInt( playerid, "immobcounttimer" ) );
  355. }
  356.  
  357. if( GetPVarInt( playerid, "BreakLockTimerCalled" ) == 1 )
  358. {
  359. Papy_KillTimer( GetPVarInt( playerid, "breakcounttimer" ) );
  360. }
  361.  
  362.  
  363. if( BoomboxInfo[ playerid ][ boomboxPlaced ] ) {
  364. Boombox_Destroy( playerid );
  365. }
  366.  
  367. if( antiCheatCS[ playerid ][ TakeVehicle ] != INVALID_VEHICLE_ID ) {
  368. BusyVehicle[ antiCheatCS[ playerid ][ TakeVehicle ] ] = -1;
  369. }
  370.  
  371. if( PI[ playerid ][ xAdmin ] >= 1 ) SacuvajAdmina( playerid );
  372.  
  373. if( PlayerLogged[ playerid ] == true ) {
  374. SavePlayer( playerid );
  375. }
  376.  
  377. if( Uciskolu[ playerid ] == true ) { Papy_KillTimer( SkolaTimer[ playerid ] ); }
  378.  
  379. if( CistacPosao[ playerid ] == true ) { Papy_KillTimer( CistacTimer[ playerid ] ); }
  380.  
  381. if( TrashSearch[ playerid ] == 1 ) { Papy_KillTimer( TrashTimer[ playerid ] ); }
  382.  
  383. if( GetPVarInt( playerid, "RequestingBackup" ) == 1 ) {
  384. Papy_KillTimer( backuptimer[ playerid ] );
  385. BackupClear( playerid, 0 );
  386. }
  387. if( offeredByCabbie[ playerid ] != INVALID_PLAYER_ID ) {
  388. TaximetarUkljucen[ offeredByCabbie[ playerid ] ] = false;
  389.  
  390. PlayerTextDrawSetString( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 6 ], " " );
  391. PlayerTextDrawShow( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 6 ] );
  392. PlayerTextDrawSetString( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 9 ], " " );
  393. PlayerTextDrawShow( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 9 ] );
  394.  
  395. CenaVoznje[ offeredByCabbie[ playerid ] ] = 0;
  396. VoziIgracaID[ offeredByCabbie[ playerid ] ] = INVALID_PLAYER_ID;
  397. Papy_KillTimer( TaxiTimer[ offeredByCabbie[ playerid ] ] );
  398. offeredByCabbie[ playerid ] = INVALID_PLAYER_ID;
  399. }
  400.  
  401. if( GetPVarInt( playerid, "CuffTimerCalled") == 1 ) {
  402. Papy_KillTimer( TazerTimer[ playerid ] );
  403. }
  404.  
  405. if( AdminDuty[ playerid ] ) {
  406. AdminDuty[ playerid ] = false;
  407. }
  408.  
  409. if( KrenuoKosenje[ playerid ] )
  410. for( new i = 0; i < 31; i++)
  411. if( IsValidPlayerObject( playerid, Grass[ i ][ playerid ] ) ) DestroyPlayerObject( playerid, Grass[ i ][ playerid ] );
  412.  
  413. format( globalstring, sizeof( globalstring ), "(disconnect) - ID/Nick: %d | %s | - Level: %d | ", playerid, ImeIgraca( playerid ), PI[ playerid ][ xLevel ] );
  414. VlasnikPoruka( REDCOLOR, globalstring );
  415. return true;
  416. }
  417.  
  418. /*UpdatePlataTD( playerid ) {
  419. new stringic[ 20 ];
  420. format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xPlatniRacun ] );
  421. PlayerTextDrawSetString( playerid, PlataIgraca[ playerid ], stringic );
  422. }*/
  423.  
  424. UpdateBankTD( playerid ) {
  425. new stringic[ 40 ];
  426. if( PI[ playerid ][ xImaBRacun ] == false ) {
  427. PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], "~r~NEMATE RACUN" );
  428. }
  429. else {
  430. format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xBRacun ] );
  431. PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], stringic );
  432. }
  433. }
  434.  
  435. UpdateZlatoTD( playerid ) {
  436. new stringic[ 20 ];
  437. format( stringic, sizeof( stringic ), "~w~%d~y~G", PI[ playerid ][ xZlato ] );
  438. PlayerTextDrawSetString( playerid, ZlatoIgraca[ playerid ], stringic );
  439. }
  440.  
  441. SetPlayerTDStats( playerid ) {
  442.  
  443. new stringic[ 40 ];
  444.  
  445. if( PI[ playerid ][ xImaBRacun ] == false ) {
  446. PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], "~r~NEMATE RACUN" );
  447. }
  448. else {
  449. format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xBRacun ] );
  450. PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], stringic );
  451. }
  452.  
  453. // format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xPlatniRacun ] );
  454. // PlayerTextDrawSetString( playerid, PlataIgraca[ playerid ], stringic );
  455.  
  456. format( stringic, sizeof( stringic ), "~w~%d~y~g", PI[ playerid ][ xZlato ] );
  457. PlayerTextDrawSetString( playerid, ZlatoIgraca[ playerid ], stringic );
  458.  
  459. PlayerTextDrawShow( playerid, BankaIgraca[ playerid ] );
  460. // PlayerTextDrawShow( playerid, PlataIgraca[ playerid ] );
  461. PlayerTextDrawShow( playerid, ZlatoIgraca[ playerid ] );
  462.  
  463. Papy_SetPlayerWantedLevel( playerid, PI[ playerid ][ xWanted ] );
  464. }
  465. RandomLogRegCamera(playerid)
  466. {
  467. new rand = random(13);
  468. switch(rand)
  469. {
  470. case 0: {
  471. InterpolateCameraPos(playerid, 290.931762, -2016.531738, 24.948770, 201.887344, -1926.881347, 21.057794, 5000);
  472. InterpolateCameraLookAt(playerid, 295.833892, -2016.460083, 23.966911, 202.117004, -1921.978759, 20.102762, 5000);
  473. }
  474. case 1: {
  475. InterpolateCameraPos(playerid, -2264.779296, -337.850921, 162.876296, -2801.481933, -332.071105, 116.269302, 7000);
  476. InterpolateCameraLookAt(playerid, -2268.126464, -341.183197, 161.235397, -2797.684570, -335.003936, 114.862762, 7000);
  477. }
  478. case 2: {
  479. InterpolateCameraPos(playerid, 1907.227905, -1935.384277, 53.194232, 1929.945190, -2160.790039, 53.194232, 5000);
  480. InterpolateCameraLookAt(playerid, 1905.791015, -1939.759643, 51.247138, 1927.414916, -2157.035644, 51.072311, 5000);
  481. }
  482. case 3: {
  483. InterpolateCameraPos(playerid, -2143.748535, 687.814758, 78.687278, -2141.798339, 554.921020, 106.170913, 5000);
  484. InterpolateCameraLookAt(playerid, -2143.680664, 692.669311, 77.491935, -2141.885498, 559.556823, 104.299636, 5000);
  485. }
  486. case 4: {
  487. InterpolateCameraPos(playerid, 2016.513671, 1085.248657, 120.629020, 2395.100097, 1043.011596, 123.497436, 5000);
  488. InterpolateCameraLookAt(playerid, 2020.625488, 1086.084472, 117.909851, 2390.736572, 1044.127685, 121.326126, 5000);
  489. }
  490. case 5: {
  491. InterpolateCameraPos(playerid, -2735.753173, 76.542404, 48.759040, -2678.423339, -100.963806, 48.759040, 5000);
  492. InterpolateCameraLookAt(playerid, -2732.265625, 73.357421, 47.118144, -2677.141845, -96.540359, 46.811950, 5000);
  493. }
  494. case 6: {
  495. InterpolateCameraPos(playerid, 725.109375, -1608.784545, 4.506652, 724.683166, -1903.700683, 2.979915, 6000);
  496. InterpolateCameraLookAt(playerid, 725.152038, -1603.785278, 4.584774, 724.780517, -1898.701660, 2.976010, 6000);
  497. }
  498. case 7: {
  499. InterpolateCameraPos(playerid, 2458.038330, -1659.399047, 16.309322, 2478.046386, -1707.313964, 19.770753, 5000);
  500. InterpolateCameraLookAt(playerid, 2462.718750, -1660.888183, 15.373470, 2478.627929, -1702.404418, 19.023565, 5000);
  501. }
  502. case 8: {
  503. InterpolateCameraPos(playerid, 1914.829956, -1151.819702, 33.096458, 1997.335937, -1085.388305, 40.900512, 5000);
  504. InterpolateCameraLookAt(playerid, 1911.689208, -1148.109008, 31.927684, 1992.515747, -1085.843261, 39.652141, 5000);
  505. }
  506. case 9: {
  507. InterpolateCameraPos(playerid, -1472.631103, 1318.891479, 34.535861, -1639.963745, 1482.267578, 34.535861, 5000);
  508. InterpolateCameraLookAt(playerid, -1477.528320, 1318.885864, 33.527206, -1639.478759, 1477.350585, 33.769363, 5000);
  509. }
  510. case 10: {
  511. InterpolateCameraPos(playerid, -951.467468, 2086.039062, 126.590110, -513.604431, 2141.357666, 109.498588, 5000);
  512. InterpolateCameraLookAt(playerid, -947.783203, 2083.158935, 124.820701, -516.955444, 2137.913085, 108.118309, 5000);
  513. }
  514. case 11: {
  515. InterpolateCameraPos(playerid, 821.658447, -1465.258789, 63.792320, 686.180358, -1540.037353, 30.938158, 5000);
  516. InterpolateCameraLookAt(playerid, 817.462402, -1464.474487, 61.188880, 688.801879, -1535.914306, 29.875997, 5000);
  517. }
  518. case 12: {
  519. InterpolateCameraPos(playerid, 2147.038574, 1459.496948, 75.380081, 2104.274658, 1156.146728, 73.524253, 5000);
  520. InterpolateCameraLookAt(playerid, 2150.894775, 1456.516235, 74.264549, 2107.592773, 1159.653564, 72.223007, 5000);
  521. }
  522. case 13: {
  523. InterpolateCameraPos(playerid, -2062.405029, -66.143203, 62.383296, -2061.821044, -279.076904, 69.367240, 5000);
  524. InterpolateCameraLookAt(playerid, -2066.716796, -68.282234, 61.029323, -2066.090576, -277.057342, 67.726348, 5000);
  525. }
  526. }
  527. return 1;
  528. }
  529. static stock DonatorBoja( playerid ) {
  530.  
  531. if( PI[ playerid ][ xDBO ] ) {
  532.  
  533. if( PI[ playerid ][ xDBoja ] == 0 ) {
  534. SetPlayerColor( playerid, 0xFFFFFF00 );
  535. }
  536. else if( PI[ playerid ][ xDBoja ] == 1 ) {
  537. SetPlayerColor(playerid, 0xFF000000 );
  538. }
  539. else if( PI[ playerid ][ xDBoja ] == 2 ) {
  540. SetPlayerColor(playerid, 0x80FFFF00 );
  541. }
  542. else if( PI[ playerid ][ xDBoja ] == 3 ) {
  543. SetPlayerColor(playerid, 0xFF804000 );
  544. }
  545. else if( PI[ playerid ][ xDBoja ] == 4 ) {
  546. SetPlayerColor(playerid, 0xFF62B000 );
  547. }
  548. else if( PI[ playerid ][ xDBoja ] == 5 ) {
  549. SetPlayerColor(playerid, 0x2e9cd100 );
  550. }
  551. else if( PI[ playerid ][ xDBoja ] == 6 ) {
  552. SetPlayerColor(playerid, 0x00FF0000 );
  553. }
  554. else if( PI[ playerid ][ xDBoja ] == 7 ) {
  555. SetPlayerColor(playerid, 0xFFFF0000 );
  556. }
  557. else if( PI[ playerid ][ xDBoja ] == 8 ) {
  558. SetPlayerColor(playerid, 0x00800000 );
  559. }
  560. }
  561. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement