Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDisconnect( playerid, reason ) {
- Pokupio[playerid] = 0;
- animacija[playerid] = 0;
- VehicleInfo[ Rentano[ playerid ] ][ Validv3DText ] = false;
- DestroyDynamic3DTextLabel(VehicleInfo[ Rentano[ playerid ] ][ v3DText ]);
- ResetVehicle( Rentano[ playerid ] );
- DestroyVehicle( Rentano[ playerid ] );
- ResetVehicle( playerid );
- Rentano[ playerid ] = -1;
- new lastid = playerid;
- if( IsValidDynamicMapIcon( PlayerGpsRadar[ playerid ][ _pgrIconId ] ) ) {
- DestroyDynamicMapIcon( PlayerGpsRadar[ playerid ][ _pgrIconId ] );
- }
- if( IsValidDynamicObject( PlayerGpsRadar[ playerid ][ _pgrObject ] ) ) {
- DestroyDynamicObject( PlayerGpsRadar[ playerid ][ _pgrObject ] );
- }
- if( IsValidDynamicCP( PlayerGpsRadar[ playerid ][ _pgrCheckPointId ] ) ) {
- DestroyDynamicCP( PlayerGpsRadar[ playerid ][ _pgrCheckPointId ] );
- }
- ExitPlayerFromSlotMachine( playerid );
- if( Start[ playerid ] != PlayerText:INVALID_TEXT_DRAW ) {
- Delete_PokerTextDraw( playerid );
- }
- if(vreca[playerid] != 0)
- {
- Kreiraj_Vreca_PTD(playerid, 0);
- vreca[playerid] = 0;
- }
- // eto // hvalaaaaa
- if(Uzeo_Vrecu[playerid] == 1)
- {
- VrecaDropan(playerid);
- }
- if(Uzeo_Kofer[playerid] == 1)
- {
- KoferDropan(playerid);
- }
- TextDrawHideForPlayer( playerid, Digit1[ 0 ]);
- TextDrawHideForPlayer( playerid, Digit2[ 0 ]);
- TextDrawHideForPlayer( playerid, Digit3[ 0 ]);
- TextDrawHideForPlayer( playerid, Digit1[ 1 ]);
- TextDrawHideForPlayer( playerid, Digit2[ 1 ]);
- TextDrawHideForPlayer( playerid, Digit3[ 1 ]);
- TextDrawHideForPlayer( playerid, Digit1[ 2 ]);
- TextDrawHideForPlayer( playerid, Digit2[ 2 ]);
- TextDrawHideForPlayer( playerid, Digit3[ 2 ]);
- TextDrawHideForPlayer( playerid, Digit1[3]);
- TextDrawHideForPlayer( playerid, Digit2[3]);
- TextDrawHideForPlayer( playerid, Digit3[3]);
- TextDrawHideForPlayer( playerid, Digit1[4]);
- TextDrawHideForPlayer( playerid, Digit2[4]);
- TextDrawHideForPlayer( playerid, Digit3[4]);
- TextDrawHideForPlayer( playerid, Digit1[5]);
- TextDrawHideForPlayer( playerid, Digit2[5]);
- TextDrawHideForPlayer( playerid, Digit3[5]);
- TextDrawHideForPlayer(playerid,Box);
- TextDrawHideForPlayer(playerid,ReadyText);
- if(SlotTimer[ playerid ] != -1) KillTimer(SlotTimer[ playerid ]);
- if(IsValidPlayerObject(playerid, a_streljana[playerid])) DestroyPlayerObject(playerid, a_streljana[playerid]);
- DeletePVar(playerid, "k_listitem");
- if( IsPlayerInAnyVehicle( playerid ) ) {
- new Float:x,Float:y,Float:z,vehicleid = GetPlayerVehicleID(playerid);
- GetVehiclePos( vehicleid,x, y, z );
- RealVehiclePositions[ vehicleid ][ 0 ] = x;
- RealVehiclePositions[ vehicleid ][ 1 ] = y;
- RealVehiclePositions[ vehicleid ][ 2 ] = z;
- }
- antiCheatCS[ playerid ][ CPSCount ] = 0;
- antiCheatCS[ playerid ][ CPSTick ] = 0;
- antiCheatCS[ playerid ][ CWTime ] = 0;
- antiCheatCS[ playerid ][ CWVehID ] = -1;
- if( IsValidPlayerObject( playerid, farmerInfo[ playerid ][ fiBucketObject ] ) )
- DestroyPlayerObject( playerid, farmerInfo[ playerid ][ fiBucketObject ] );
- if( farmerInfo[ playerid ][ fiVehicleBucket ] != -1 ) {
- new farmvehicle = farmerInfo[ playerid ][ fiVehicleBucket ];
- farmerVehicles[ farmvehicle ][ fvMilk ] = false;
- farmerVehicles[ farmvehicle ][ fvMilkpID ] = -1;
- }
- if( SearchNadji[ playerid ] != -1 ) {
- SearchNadji[ playerid ] = -1;
- Papy_DisablePlayerCheckpoint( playerid);
- }
- if(PI[ playerid ][ xWanted ])
- {
- PI[ playerid ][ xZatvor ] = 1;
- PI[ playerid ][ xZatvorVreme ] = 30;
- PI[ playerid ][ xWanted ] = 0;
- strmid( ZlocinInfo[ playerid ][ zPrijavio ], "Nema", 0, strlen("Nema"), 255 );
- strmid( ZlocinInfo[ playerid ][ zPocinio ], "Nema", 0, strlen("Nema"), 255 );
- strmid( ZlocinInfo[ playerid ][ zZlocin ], "Nema", 0, strlen("Nema"), 255 );
- }
- #if ZIMSKI_MOD == 1
- if( Snow[ playerid ] ) DestroyPlayerObject( playerid, SnowObject[ playerid ] );
- #endif
- if( ListaPrikazana[ playerid ] ) {
- KladionicaTDControl( playerid, false );
- }
- if( MojListicPrikazan[ playerid ] ) {
- KladionicaListicTDControl( playerid, false );
- }
- if( RezultatiPrikazana[ playerid ] ) {
- RezultatiTDControl( playerid, false );
- }
- if( PlayerInBlowJob[ playerid ] != 0 ) {
- switch( PlayerInBlowJob[ playerid ] ) {
- case 1: {
- DestroyActor( Sex_Lisa );
- WhoreLisa = false;
- }
- case 2: {
- DestroyActor( Sex_Angelina );
- WhoreAngelina = false;
- }
- case 3: {
- DestroyActor( Sex_Mia );
- WhoreMia = false;
- }
- case 4: {
- DestroyActor( Sex_Sendy );
- WhoreSendy = false;
- }
- }
- StopAudioStreamForPlayer( playerid );
- SetCameraBehindPlayer( playerid );
- PlayerInBlowJob[ playerid ] = 0;
- SexTDControl( playerid, false );
- BlowJobCount[ playerid ] = 0;
- TogPlayerHud( playerid );
- ac_TogglePlayerControllable( playerid, ( true ) );
- ClearAnimations( playerid );
- Papy_KillTimer( PusenjeTimer[ playerid ] );
- }
- switch( reason ) {
- case 0: {
- format( globalstring, sizeof( globalstring ), "[B:RP] %s[%d] je napustio server, Razlog:Crash", ImeIgraca( playerid ), playerid );
- AdminPoruka( BELA, globalstring );
- format( globalstring, sizeof( globalstring ), "(( Igrac %s je napustio server , razlog - crash ))", ImeIgraca( playerid ) );
- PorukaRadius( 60.0 , playerid, globalstring, ZUTA );
- }
- case 1: {
- format( globalstring, sizeof( globalstring ), "[B:RP] %s[%d] je napustio server, Razlog:Svojevoljno", ImeIgraca( playerid ), playerid );
- AdminPoruka( BELA, globalstring );
- format( globalstring, sizeof( globalstring ), "(( Igrac %s je napustio server ))", ImeIgraca( playerid ) );
- PorukaRadius( 60.0 , playerid, globalstring, ZUTA );
- }
- }
- if( GetPVarInt( playerid, "Computer" ) == 1 ) {
- Police_TVTDControl( playerid, false );
- SetPVarInt( playerid, "Computer", 0 );
- }
- DestroyPlayerTextDraws( playerid );
- if( IgracSeRegistruje[ playerid ] == true ) RegisterTDControlMain( playerid, false );
- if( AdminVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( AdminVozilo[ playerid ] ), AdminVozilo[ playerid ] = -1;
- if( TrkaVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( TrkaVozilo[ playerid ] ), TrkaVozilo[ playerid ] = -1;
- if( HitmanInfo[ playerid ][ GotHit ] > 0) {
- if( HitmanInfo[ playerid ][ GetChased ] < 999 ) {
- if( IsPlayerConnected( HitmanInfo[ playerid ][ GetChased ] ) ){
- SCM( HitmanInfo[ playerid ][ GetChased ], ZUTA, "Vasa meta je izasla sa servera." );
- HitmanInfo[ HitmanInfo[ playerid ][ GetChased ] ][ GoChase ] = 999;
- }
- }
- }
- if( garbagemanInfo[ playerid ][ gmiJob ] == true ) {
- new vehicleid = garbagemanInfo[ playerid ][ gmiVehicleID ];
- garbagemanVehicles[ vehicleid ][ gGarbages ] = 0;
- garbagemanVehicles[ vehicleid ][ gPlayerID ] = -1;
- ac_SetVehicleToRespawn( vehicleid );
- }
- if( PlayerCement[ playerid ] != -1 ) VehCement[ PlayerCement[ playerid ] ] = false;
- if( DeliverCar[ playerid ] != -1 ) KamionUsed[ DeliverCar[ playerid ] ] = -1, StateBox[ DeliverCar[ playerid ] ] = 0;
- if( IDVozilaKojimSverca[ playerid ] != -1 ) KutijaMatsa[ IDVozilaKojimSverca[ playerid ] ] = false;
- if( PlayerPrevozNovca[ playerid ] != -1 ) VehNovac[ PlayerPrevozNovca[ playerid ] ] = false;
- if( PljackaVreme[ playerid ] > 0 ) Papy_KillTimer( PljackanjeBankeTimer[ playerid ] ), PljackaUToku = false;
- PljackaVreme[ playerid ] = 0;
- if( ZlatoVreme[ playerid ] > 0 ) Papy_KillTimer( PljackanjeZlatareTimer[ playerid ] ), ZlataraUToku = false;
- ZlatoVreme[ playerid ] = 0;
- if( DragedPlayerID[ playerid ] != -1 ) {
- format( globalstring, sizeof( globalstring ), "%s je napustio server, pusteni ste.", ImeIgraca( playerid ) );
- SCM( DragedPlayerID[ playerid ], -1, globalstring );
- ac_TogglePlayerControllable( DragedPlayerID[ playerid ], 1 );
- Draged[ DragedPlayerID[ playerid ] ] = -1;
- }
- if( farmerInfo[ playerid ][ fiFarmerPlantsPlanted ] != -1 ) {
- for( new plantid = 0; plantid < MAX_FARMS; plantid++ ) {
- if( plantInfo[ plantid ][ farmPlantCreated ] && plantInfo[ plantid ][ farmPlayerID ] == lastid ) {
- if( IsValidDynamic3DTextLabel( plantInfo[ plantid ][ farm3D ] ) )
- DestroyDynamic3DTextLabel( plantInfo[ plantid ][ farm3D ] );
- if( IsValidDynamicObject( plantInfo[ plantid ][ farmObject ] ) )
- DestroyDynamicObject( plantInfo[ plantid ][ farmObject ] );
- ResetFarmPlant( plantid );
- }
- }
- }
- PlayerTextDrawDestroy( playerid, PlayerGpsRadarText[ playerid ] );
- if( PitanjeBroj[ playerid ] != 0 ) Papy_KillTimer( TimerPitanje[ playerid ] );
- Papy_KillTimer( atmrobTimer[ playerid ] );
- if( PocetniTutorialStartovan[ playerid ] == true ) Papy_KillTimer( TimerTutorial[ playerid ] );
- Papy_KillTimer( FarbanjeTimer[ playerid ] );
- if( PI[ playerid ][ xUbijen ] == 1 ) Papy_KillTimer( BolnicaTimer[ playerid ] );
- if( IgracPosadio[ playerid ] != 0 ) {
- for( new plantid = 1; plantid < MAX_PLANTS; plantid++ ) {
- if( strcmp( ImeIgraca( playerid ), DrogaStab[ plantid ][ wVlasnik ], true ) == 0 ) {
- if( DrogaStab[ plantid ][ wPlanted ] == 1 ) {
- DrogaStab[ plantid ][ Plantx ] = 0;
- DrogaStab[ plantid ][ Planty ] = 0;
- DrogaStab[ plantid ][ Plantz ] = 0;
- DrogaStab[ plantid ][ wType ] = 0;
- DrogaStab[ plantid ][ wPlanted ] = 0;
- DrogaStab[ plantid ][ wHoursPassed ] = 0;
- strmid( DrogaStab[ plantid ][ wVlasnik ], "Niko", 0, strlen( "Niko" ), 255);
- DrogaStab[ plantid ][wViwo] = GetPlayerVirtualWorld( playerid );
- DestroyDynamicObject( DrogaStab[ plantid ][ wObjectID ] );
- }
- }
- }
- }
- if( PI[ playerid ][ xPosao ] == POSAO_MEHANICAR ) {
- if(GetPVarInt( playerid, "JobDuty") == 1) { Mechanics -= 1; }
- }
- if( PlayerBuyingAS[ playerid ] != -1 ) {
- AutoSalon[ PlayerBuyingAS[ playerid ] ][ AlreadyBuying ] = false;
- PlayerBuyingAS[ playerid ] = -1;
- }
- antiCheatCS[ playerid ][ ArmedWeapon ] = 0;
- if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) {
- format( globalstring, sizeof( globalstring ), ""col_blue"- WAR - {F81414}%s: "col_white"je napustio WAR.", ImeIgraca( playerid ) );
- WARPoruka( WARPInfo[ playerid ][ WARIgrac ], 0xFF9900AA, globalstring );
- WARInfo[ WARPInfo[ playerid ][ WARIgrac ] ][ WARTimClanovi ][ 0 ]--; }
- if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) {
- format( globalstring, sizeof( globalstring ), ""col_blue"- WAR - {0049FF}%s: "col_white"je napustio WAR.", ImeIgraca( playerid ) );
- WARPoruka( WARPInfo[ playerid ][ WARIgrac ], 0xFF9900AA, globalstring );
- WARInfo[ WARPInfo[ playerid ][ WARIgrac ] ][ WARTimClanovi ][ 1 ]--; }
- if( Rentano[ playerid ] != -1 ) {
- Papy_KillTimer( RentTimer[ playerid ] );
- VehicleObjectCheck( Rentano[ playerid ] );
- ac_SetVehicleToRespawn( Rentano[ playerid ] );
- LinkVehicleToInterior( Rentano[ playerid ], 0 );
- Rentano[ playerid ] = -1;
- }
- if( PlayerCuffed[ playerid ] >= 1 ) {
- if( PI[ playerid ][ xZatvor ] == 0 ) {
- PI[ playerid ][ xZatvor ] = OBICAN_ZATVOR;
- PI[ playerid ][ xZatvorVreme ] = 60;
- strmid( PI[ playerid ][ xOffPJail ], "LTA", 0, strlen("LTA"), 64 );
- KillTimer(Cuff_Timer[playerid]);
- }
- }
- GlobalProdaja[ playerid ] = -1;
- Ponudjeno[ playerid ] = -1;
- Trazio[ playerid ] = -1;
- GlobalCena[ playerid ] = -1;
- GlobalID[ playerid ] = -1;
- if( PI[ playerid ][ xWanted ] > 0 ) {
- if( PI[ playerid ][ xZatvor ] == 0 ) {
- foreach(new i:Player) {
- if( IsPlayerConnected( i ) ) {
- if( GetFactionType( i ) == ORG_TIP_PD && CrimInRange( 40.0, playerid, i ) ) {
- PI[ playerid ][ xLeaveJail ] = true;
- PI[ playerid ][ xZatvor ] = OBICAN_ZATVOR;
- PI[ playerid ][ xZatvorVreme ] = 6*PI[ playerid ][ xWanted ];
- new price = PI[ playerid ][ xWanted ]*500;
- PI[ playerid ][ xNovac ] -= price;
- PI[ playerid ][ xWanted ] = 0;
- }
- }
- }
- }
- }
- if( GetFactionType( playerid ) == ORG_TIP_MD ) {
- if( MedicDuty[ playerid ] == true ) { Medics -= 1; }
- }
- if( GetPVarInt(playerid, "BreakingLock") == 1 )
- {
- Papy_KillTimer( GetPVarInt( playerid, "BreakLockTimer" ) );
- }
- if( GetPVarInt( playerid, "ImmobTimerCalled") == 1 )
- {
- Papy_KillTimer( GetPVarInt( playerid, "immobcounttimer" ) );
- }
- if( GetPVarInt( playerid, "BreakLockTimerCalled" ) == 1 )
- {
- Papy_KillTimer( GetPVarInt( playerid, "breakcounttimer" ) );
- }
- if( BoomboxInfo[ playerid ][ boomboxPlaced ] ) {
- Boombox_Destroy( playerid );
- }
- if( antiCheatCS[ playerid ][ TakeVehicle ] != INVALID_VEHICLE_ID ) {
- BusyVehicle[ antiCheatCS[ playerid ][ TakeVehicle ] ] = -1;
- }
- if( PI[ playerid ][ xAdmin ] >= 1 ) SacuvajAdmina( playerid );
- if( PlayerLogged[ playerid ] == true ) {
- SavePlayer( playerid );
- }
- if( Uciskolu[ playerid ] == true ) { Papy_KillTimer( SkolaTimer[ playerid ] ); }
- if( CistacPosao[ playerid ] == true ) { Papy_KillTimer( CistacTimer[ playerid ] ); }
- if( TrashSearch[ playerid ] == 1 ) { Papy_KillTimer( TrashTimer[ playerid ] ); }
- if( GetPVarInt( playerid, "RequestingBackup" ) == 1 ) {
- Papy_KillTimer( backuptimer[ playerid ] );
- BackupClear( playerid, 0 );
- }
- if( offeredByCabbie[ playerid ] != INVALID_PLAYER_ID ) {
- TaximetarUkljucen[ offeredByCabbie[ playerid ] ] = false;
- PlayerTextDrawSetString( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 6 ], " " );
- PlayerTextDrawShow( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 6 ] );
- PlayerTextDrawSetString( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 9 ], " " );
- PlayerTextDrawShow( offeredByCabbie[ playerid ], TaxistaTD[ offeredByCabbie[ playerid ] ][ 9 ] );
- CenaVoznje[ offeredByCabbie[ playerid ] ] = 0;
- VoziIgracaID[ offeredByCabbie[ playerid ] ] = INVALID_PLAYER_ID;
- Papy_KillTimer( TaxiTimer[ offeredByCabbie[ playerid ] ] );
- offeredByCabbie[ playerid ] = INVALID_PLAYER_ID;
- }
- if( GetPVarInt( playerid, "CuffTimerCalled") == 1 ) {
- Papy_KillTimer( TazerTimer[ playerid ] );
- }
- if( AdminDuty[ playerid ] ) {
- AdminDuty[ playerid ] = false;
- }
- if( KrenuoKosenje[ playerid ] )
- for( new i = 0; i < 31; i++)
- if( IsValidPlayerObject( playerid, Grass[ i ][ playerid ] ) ) DestroyPlayerObject( playerid, Grass[ i ][ playerid ] );
- format( globalstring, sizeof( globalstring ), "(disconnect) - ID/Nick: %d | %s | - Level: %d | ", playerid, ImeIgraca( playerid ), PI[ playerid ][ xLevel ] );
- VlasnikPoruka( REDCOLOR, globalstring );
- return true;
- }
- /*UpdatePlataTD( playerid ) {
- new stringic[ 20 ];
- format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xPlatniRacun ] );
- PlayerTextDrawSetString( playerid, PlataIgraca[ playerid ], stringic );
- }*/
- UpdateBankTD( playerid ) {
- new stringic[ 40 ];
- if( PI[ playerid ][ xImaBRacun ] == false ) {
- PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], "~r~NEMATE RACUN" );
- }
- else {
- format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xBRacun ] );
- PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], stringic );
- }
- }
- UpdateZlatoTD( playerid ) {
- new stringic[ 20 ];
- format( stringic, sizeof( stringic ), "~w~%d~y~G", PI[ playerid ][ xZlato ] );
- PlayerTextDrawSetString( playerid, ZlatoIgraca[ playerid ], stringic );
- }
- SetPlayerTDStats( playerid ) {
- new stringic[ 40 ];
- if( PI[ playerid ][ xImaBRacun ] == false ) {
- PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], "~r~NEMATE RACUN" );
- }
- else {
- format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xBRacun ] );
- PlayerTextDrawSetString( playerid, BankaIgraca[ playerid ], stringic );
- }
- // format( stringic, sizeof( stringic ), "~w~%d~g~$", PI[ playerid ][ xPlatniRacun ] );
- // PlayerTextDrawSetString( playerid, PlataIgraca[ playerid ], stringic );
- format( stringic, sizeof( stringic ), "~w~%d~y~g", PI[ playerid ][ xZlato ] );
- PlayerTextDrawSetString( playerid, ZlatoIgraca[ playerid ], stringic );
- PlayerTextDrawShow( playerid, BankaIgraca[ playerid ] );
- // PlayerTextDrawShow( playerid, PlataIgraca[ playerid ] );
- PlayerTextDrawShow( playerid, ZlatoIgraca[ playerid ] );
- Papy_SetPlayerWantedLevel( playerid, PI[ playerid ][ xWanted ] );
- }
- RandomLogRegCamera(playerid)
- {
- new rand = random(13);
- switch(rand)
- {
- case 0: {
- InterpolateCameraPos(playerid, 290.931762, -2016.531738, 24.948770, 201.887344, -1926.881347, 21.057794, 5000);
- InterpolateCameraLookAt(playerid, 295.833892, -2016.460083, 23.966911, 202.117004, -1921.978759, 20.102762, 5000);
- }
- case 1: {
- InterpolateCameraPos(playerid, -2264.779296, -337.850921, 162.876296, -2801.481933, -332.071105, 116.269302, 7000);
- InterpolateCameraLookAt(playerid, -2268.126464, -341.183197, 161.235397, -2797.684570, -335.003936, 114.862762, 7000);
- }
- case 2: {
- InterpolateCameraPos(playerid, 1907.227905, -1935.384277, 53.194232, 1929.945190, -2160.790039, 53.194232, 5000);
- InterpolateCameraLookAt(playerid, 1905.791015, -1939.759643, 51.247138, 1927.414916, -2157.035644, 51.072311, 5000);
- }
- case 3: {
- InterpolateCameraPos(playerid, -2143.748535, 687.814758, 78.687278, -2141.798339, 554.921020, 106.170913, 5000);
- InterpolateCameraLookAt(playerid, -2143.680664, 692.669311, 77.491935, -2141.885498, 559.556823, 104.299636, 5000);
- }
- case 4: {
- InterpolateCameraPos(playerid, 2016.513671, 1085.248657, 120.629020, 2395.100097, 1043.011596, 123.497436, 5000);
- InterpolateCameraLookAt(playerid, 2020.625488, 1086.084472, 117.909851, 2390.736572, 1044.127685, 121.326126, 5000);
- }
- case 5: {
- InterpolateCameraPos(playerid, -2735.753173, 76.542404, 48.759040, -2678.423339, -100.963806, 48.759040, 5000);
- InterpolateCameraLookAt(playerid, -2732.265625, 73.357421, 47.118144, -2677.141845, -96.540359, 46.811950, 5000);
- }
- case 6: {
- InterpolateCameraPos(playerid, 725.109375, -1608.784545, 4.506652, 724.683166, -1903.700683, 2.979915, 6000);
- InterpolateCameraLookAt(playerid, 725.152038, -1603.785278, 4.584774, 724.780517, -1898.701660, 2.976010, 6000);
- }
- case 7: {
- InterpolateCameraPos(playerid, 2458.038330, -1659.399047, 16.309322, 2478.046386, -1707.313964, 19.770753, 5000);
- InterpolateCameraLookAt(playerid, 2462.718750, -1660.888183, 15.373470, 2478.627929, -1702.404418, 19.023565, 5000);
- }
- case 8: {
- InterpolateCameraPos(playerid, 1914.829956, -1151.819702, 33.096458, 1997.335937, -1085.388305, 40.900512, 5000);
- InterpolateCameraLookAt(playerid, 1911.689208, -1148.109008, 31.927684, 1992.515747, -1085.843261, 39.652141, 5000);
- }
- case 9: {
- InterpolateCameraPos(playerid, -1472.631103, 1318.891479, 34.535861, -1639.963745, 1482.267578, 34.535861, 5000);
- InterpolateCameraLookAt(playerid, -1477.528320, 1318.885864, 33.527206, -1639.478759, 1477.350585, 33.769363, 5000);
- }
- case 10: {
- InterpolateCameraPos(playerid, -951.467468, 2086.039062, 126.590110, -513.604431, 2141.357666, 109.498588, 5000);
- InterpolateCameraLookAt(playerid, -947.783203, 2083.158935, 124.820701, -516.955444, 2137.913085, 108.118309, 5000);
- }
- case 11: {
- InterpolateCameraPos(playerid, 821.658447, -1465.258789, 63.792320, 686.180358, -1540.037353, 30.938158, 5000);
- InterpolateCameraLookAt(playerid, 817.462402, -1464.474487, 61.188880, 688.801879, -1535.914306, 29.875997, 5000);
- }
- case 12: {
- InterpolateCameraPos(playerid, 2147.038574, 1459.496948, 75.380081, 2104.274658, 1156.146728, 73.524253, 5000);
- InterpolateCameraLookAt(playerid, 2150.894775, 1456.516235, 74.264549, 2107.592773, 1159.653564, 72.223007, 5000);
- }
- case 13: {
- InterpolateCameraPos(playerid, -2062.405029, -66.143203, 62.383296, -2061.821044, -279.076904, 69.367240, 5000);
- InterpolateCameraLookAt(playerid, -2066.716796, -68.282234, 61.029323, -2066.090576, -277.057342, 67.726348, 5000);
- }
- }
- return 1;
- }
- static stock DonatorBoja( playerid ) {
- if( PI[ playerid ][ xDBO ] ) {
- if( PI[ playerid ][ xDBoja ] == 0 ) {
- SetPlayerColor( playerid, 0xFFFFFF00 );
- }
- else if( PI[ playerid ][ xDBoja ] == 1 ) {
- SetPlayerColor(playerid, 0xFF000000 );
- }
- else if( PI[ playerid ][ xDBoja ] == 2 ) {
- SetPlayerColor(playerid, 0x80FFFF00 );
- }
- else if( PI[ playerid ][ xDBoja ] == 3 ) {
- SetPlayerColor(playerid, 0xFF804000 );
- }
- else if( PI[ playerid ][ xDBoja ] == 4 ) {
- SetPlayerColor(playerid, 0xFF62B000 );
- }
- else if( PI[ playerid ][ xDBoja ] == 5 ) {
- SetPlayerColor(playerid, 0x2e9cd100 );
- }
- else if( PI[ playerid ][ xDBoja ] == 6 ) {
- SetPlayerColor(playerid, 0x00FF0000 );
- }
- else if( PI[ playerid ][ xDBoja ] == 7 ) {
- SetPlayerColor(playerid, 0xFFFF0000 );
- }
- else if( PI[ playerid ][ xDBoja ] == 8 ) {
- SetPlayerColor(playerid, 0x00800000 );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement