Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerSpawn( playerid ) {
- if(ShowedRegisterMain[playerid]) return 1;
- if(PI[playerid][xVIPLevel] >= 2)
- {
- SetPlayerHealth(playerid, 100);
- return true;
- }
- if(PI[playerid][xVIPLevel] >= 3)
- {
- SetPlayerArmour(playerid, 100);
- return true;
- }
- if(PI[playerid][xVIPLevel] >= 6)
- {
- PI[playerid][xZastitnaKaciga] = 1;
- ZastitnaKaciga[playerid] = true;
- ZastitnaKacigaNosenje[playerid] = false;
- }
- if (!isAltChatToggled(playerid)) toggleAltChat(playerid, true);
- SetPlayerColor( playerid, 0xFFFFFF00 );
- for( new i = 0; i < 13; i++ ) {
- antiCheatCS[ playerid ][ Weapon ][ i ] = 0;
- antiCheatCS[ playerid ][ Ammo ][ i ] = 0;
- }
- CancelSelectTextDraw( playerid );
- SetPlayerTDStats( playerid );
- PocetniNovac( playerid, PI[ playerid ][ xNovac ] );
- SetPlayerScore( playerid, PI[ playerid ][ xLevel ] );
- SetPlayerSkin( playerid, PI[ playerid ][ xSkin ] );
- SetPlayerInterior( playerid, 0 );
- PI[ playerid ][ xUbijen ] = 0;
- SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][xSkills][0]);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][xSkills][1]);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][xSkills][2]);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][xSkills][3]);
- SetPlayerVirtualWorld( playerid, 0 );
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- antiCheatCS[ playerid ][ WeaponDetect ] = 4;
- antiCheatCS[ playerid ][ EnteredVehicle ] = INVALID_VEHICLE_ID;
- if( AdminVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( AdminVozilo[ playerid ] ), AdminVozilo[ playerid ] = -1;
- if( TrkaVozilo[ playerid ] != -1 ) Papy_DestroyVehicle( TrkaVozilo[ playerid ] ), TrkaVozilo[ playerid ] = -1;
- DonatorBoja( playerid );
- for( new id = 1; id < MAX_GZONE; id++ ) {
- new filename[ 32 ], stringic[ 24 ];
- format( filename, sizeof( filename ), F_GZONE, id );
- if( fexist( filename ) ) {
- format( stringic, sizeof( stringic ), "0x%s66", gZoneInfo[ id ][ gZoneColor ] );
- GangZoneShowForPlayer( playerid, gZoneInfo[ id ][ gZoneID ], HexToInt( stringic ) );
- }
- }
- if( WARPInfo[ playerid ][ WARIgrac ] != -1 )
- {
- new w = WARPInfo[ playerid ][ WARIgrac ];
- SetPlayerVirtualWorld( playerid, w );
- ac_SetPlayerHealth( playerid, 100 );
- ac_SetPlayerArmour( playerid, 100 );
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- antiCheatCS[ playerid ][ WeaponDetect ] = 4;
- if( WARInfo[ w ][ WARMapa ] == 1 ) {
- new rand1 = random( sizeof( RandomWARMapa11 ) );
- new rand2 = random( sizeof( RandomWARMapa12 ) );
- if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa11[ rand1 ][ 0 ], RandomWARMapa11[ rand1 ][ 1 ],RandomWARMapa11[ rand1 ][ 2 ] ); }
- else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa12[ rand2 ][ 0 ], RandomWARMapa12[ rand2 ][ 1 ],RandomWARMapa12[ rand2 ][ 2 ] ); }
- SetPlayerInterior( playerid, 0 );
- }
- else if( WARInfo[ w ][ WARMapa ] == 2 ) {
- new rand1 = random( sizeof( RandomWARMapa21 ) );
- new rand2 = random( sizeof( RandomWARMapa22 ) );
- if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa21[ rand1 ][ 0 ], RandomWARMapa21[ rand1 ][ 1 ],RandomWARMapa21[ rand1 ][ 2 ] ); }
- else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa22[ rand2 ][ 0 ], RandomWARMapa22[ rand2 ][ 1 ],RandomWARMapa22[ rand2 ][ 2 ] ); }
- SetPlayerInterior( playerid, 10 );
- }
- else if( WARInfo[ w ][ WARMapa ] == 3 ) {
- new rand1 = random( sizeof( RandomWARMapa31 ) );
- new rand2 = random( sizeof( RandomWARMapa32 ) );
- if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa31[ rand1 ][ 0 ], RandomWARMapa31[ rand1 ][ 1 ],RandomWARMapa31[ rand1 ][ 2 ] ); }
- else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa32[ rand2 ][ 0 ], RandomWARMapa32[ rand2 ][ 1 ],RandomWARMapa32[ rand2 ][ 2 ] ); }
- SetPlayerInterior( playerid, 0 );
- }
- else if( WARInfo[ w ][ WARMapa ] == 4 ) {
- new rand1 = random( sizeof( RandomWARMapa41 ) );
- new rand2 = random( sizeof( RandomWARMapa42 ) );
- if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa41[ rand1 ][ 0 ], RandomWARMapa41[ rand1 ][ 1 ], RandomWARMapa41[ rand1 ][ 2 ] ); }
- else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa42[ rand2 ][ 0 ], RandomWARMapa42[ rand2 ][ 1 ], RandomWARMapa42[ rand2 ][ 2 ] ); }
- SetPlayerInterior( playerid, 0 );
- }
- else if( WARInfo[ w ][ WARMapa ] == 5 ) {
- new rand1 = random( sizeof( RandomWARMapa51 ) );
- new rand2 = random( sizeof( RandomWARMapa52 ) );
- if( WARPInfo[ playerid ][ WARTim ][ 0 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa51[ rand1 ][ 0 ], RandomWARMapa51[ rand1 ][ 1 ],RandomWARMapa51[ rand1 ][ 2 ] ); }
- else if( WARPInfo[ playerid ][ WARTim ][ 1 ] == true ) { Papy_SetPlayerPos( playerid, RandomWARMapa52[ rand2 ][ 0 ], RandomWARMapa52[ rand2 ][ 1 ],RandomWARMapa52[ rand2 ][ 2 ] ); }
- SetPlayerInterior( playerid, 0 );
- }
- GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 0 ], 300 );
- GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 1 ], 300 );
- GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 2 ], 300 );
- GiveWeaponToPlayer( playerid, WARInfo[ w ][ WAROruzje ][ 3 ], 300 );
- PI[ playerid ][ xSpawned ] = 1;
- return true;
- }
- else if( NaDmEventu[ playerid ] == true )
- {
- new rand = random( sizeof( RandomDMPos ) );
- Papy_SetPlayerPos( playerid, RandomDMPos[ rand ][ 0 ], RandomDMPos[ rand ][ 1 ],RandomDMPos[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- SetPlayerVirtualWorld( playerid, 10 );
- PI[ playerid ][ xSpawned ] = 1;
- if( PI[ playerid ][ xDMEventUbistva ] >= 4500 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 150 );
- SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
- SetPlayerSkillLevel( playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 4000 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 150 );
- SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 3500 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 150 );
- SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 3000 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 150 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 2500 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 150 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 2000 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 150 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 1500 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 100 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 1000 ) {
- GiveWeaponToPlayer( playerid, 24, 150 );
- GiveWeaponToPlayer( playerid, 26, 100 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 500 ) {
- GiveWeaponToPlayer( playerid, 25, 200 );
- GiveWeaponToPlayer( playerid, 26, 100 );
- }
- else if( PI[ playerid ][ xDMEventUbistva ] >= 0 ) {
- GiveWeaponToPlayer( playerid, 24, 200 );
- GiveWeaponToPlayer( playerid, 26, 100 );
- }
- ac_SetPlayerHealth( playerid, 100 );
- ac_SetPlayerArmour( playerid, 100 );
- return true;
- }
- else if(Bolnica_Timer[playerid] > 0)
- {
- Papy_SetPlayerPos(playerid, 1990.0701,240.4743,1234.0085);
- SetPlayerFacingAngle(playerid, 94.3155);
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- ac_TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- Bolnica_Spawn[playerid] = true;
- return 1;
- }
- else
- {
- PI[ playerid ][ xSpawned ] = 1;
- PostaviSpawn( playerid );
- }
- PI[ playerid ][ xSpawned ] = 1;
- if( PI[ playerid ][ xWanted ] != 0 ) {
- strmid( ZlocinInfo[ playerid ][ zPrijavio ], "Nepoznato", 0, strlen( "Nepoznato" ), 255);
- strmid( ZlocinInfo[ playerid ][ zPocinio ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), 255);
- strmid( ZlocinInfo[ playerid ][ zZlocin ], "Nepoznato", 0, strlen( "Nepoznato" ), 255);
- Papy_SetPlayerWantedLevel( playerid, PI[ playerid ][ xWanted ] );
- }
- if( PrviSpawn[ playerid ] == 1 ) {
- if( PlayerLogged[ playerid ] == true ) {
- new h,mi,sec;
- gettimeEx(h,mi,sec);
- FixHour( h );
- h = shifthour;
- StopAudioStreamForPlayer( playerid );
- TogglePlayerSpectating(playerid, false);
- SCM( playerid, -1, " ");
- SCM( playerid, -1, " ");
- SCM( playerid, -1, " ");
- SCM( playerid, -1, " ");
- SCM( playerid, -1, " ");
- SCM( playerid, -1, " ");
- SCM( playerid, -1, "||===================================================================================||" );
- format( globalstring, sizeof( globalstring ), "{FFFFFF}Dobro nam dosli, Vasa Poslednja aktivnost - %s", PI[playerid][xLastLogin]);
- SendClientMessage( playerid, 0xFFFFFFF,globalstring );
- SCM( playerid, -1, "Aktiviran je zinski mod! Komande: /kapica, /sneg /ngmuzika (Credits: Mega(TD Count))");
- SCM( playerid, -1, "{3498DB}[AKTIVNA IGRA] Aktiviran je sistem aktivne igre, Vise o tome procitajte na /aktivaigra !");
- if( ServerInfo[ HappyHours ] == 1 ) {
- //SCM( playerid, BELA, "Happy Hours je ukljucen." );
- }
- if( ServerInfo[ HappyLVLHours ] == true ) {
- //if( PI[ playerid ][ xLevel ] < ServerInfo[ HLVLHours ] ) SendClientMessageEx( playerid,SERVERBOJA, "Happy Hours do levela %d je ukljucen.", ServerInfo[ HLVLHours ] );
- }
- if( PI[ playerid ][ xAdmin ] >= 1 ) {
- if( PI[ playerid ][ xAdmin ] < 7 ) {
- new adminstring[ 128 ];
- if( PI[ playerid ][ xSkriptaRank ] == 2 ) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao VODJA HELPERA." );
- format( adminstring, sizeof( adminstring ), "VODJA HELPERA %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xSkriptaRank ] == 3 ) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao DIREKTOR." );
- format( adminstring, sizeof( adminstring ), "MAPPER %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xSkriptaRank ] == 6 ) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP] "col_white"Ulogovan si kao SUVLASNIK." );
- format( adminstring, sizeof( adminstring ), "SUVLASNIK %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xSkriptaRank ] == 7) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao GLAVNI MAPPER." );
- format( adminstring, sizeof( adminstring ), "GLAVNI MAPPER %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xSkriptaRank ] == 8) {
- //SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao PREDSEDNIK." );
- format( adminstring, sizeof( adminstring ), "PREDSEDNIK %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xAdmin ] == 6 ) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao DIREKTOR." );
- format( adminstring, sizeof( adminstring ), "DIREKTOR %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xAdmin ] == 5 ) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao GLAVNI ADMIN." );
- format( adminstring, sizeof( adminstring ), "GLAVNI ADMIN %s je usao na server.", ImeIgraca( playerid ) );
- }
- else if( PI[ playerid ][ xAdmin ] >= 1 && PI[ playerid ][ xAdmin ] <= 4 ) {
- SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao ADMIN." );
- format( adminstring, sizeof( adminstring ), "ADMIN %d "col_white" %s je usao na server.", PI[ playerid ][ xAdmin ], ImeIgraca( playerid ) );
- }
- AdminPoruka( 0x6495EDAA, adminstring );
- }
- else if( PI[ playerid ][ xAdmin ] >= 7 ) {
- // SCM( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao VLASNIK." );
- foreach(new i:Player) {
- if( PI[ i ][ xAdmin ] >= 7 ) {
- format( globalstring, sizeof( globalstring ), "VLASNIK "col_white"%s je usao na server.", ImeIgraca( playerid ) );
- SCM( i, 0xFF6347AA, globalstring );
- }
- }
- }
- }
- if( PI[ playerid ][ xAdmin ] > 0 ) offAdminNeaktivnost( playerid );
- if( PI[ playerid ][ xSupporter ] > 0 ) offSupporterNeaktivnost( playerid );
- else if( PI[ playerid ][ xSupporter ] >= 1 ) {
- SendClientMessageEx( playerid, SERVERBOJA, " {0070D0}[B:RP]: "col_white"Ulogovan si kao Helper Level %d.", PI[ playerid ][ xSupporter ] );
- format( globalstring, sizeof( globalstring ), "- HELPER |%d| - %s usao na server.", PI[ playerid ][ xSupporter ], ImeIgraca( playerid ) );
- RPTChat( HELPER, globalstring );
- }
- if( PI[ playerid ][ xVoziloID ][ 0 ] != -1 ) {
- if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 0 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Vozilo 1 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xVoziloID ][ 0 ]=-1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xVoziloID ][ 1 ] != -1 ) {
- if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 1 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Vozilo 2 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xVoziloID ][ 1 ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xVoziloID ][ 2 ] != -1 ) {
- if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 2 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Vozilo 3 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xVoziloID ][ 2 ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xVoziloID ][ 3 ] != -1 ) {
- if(strcmp( VehicleInfo[ PI[ playerid ][ xVoziloID ][ 3 ] ][ vVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Vozilo 4 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xVoziloID ][ 3 ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xProperty ][ 0 ] != -1 ) {
- if( strcmp( II[ PI[ playerid ][ xProperty ][ 0 ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Kuca vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xProperty ][ 0 ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xProperty ][ 1 ] != -1 ) {
- if( strcmp( II[ PI[ playerid ][ xProperty ][ 1 ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Kuca 2 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xProperty ][ 1 ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xProperty ][ 2 ] != -1 ) {
- if( strcmp( II[ PI[ playerid ][ xProperty ][ 2 ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Kuca 3 vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xProperty ][ 2 ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xGarageID ] != -1 ) {
- if( strcmp( garageInfo[ PI[ playerid ][ xGarageID ] ][ garageVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Garaza vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xGarageID ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xFirmaID ] != -1 ) {
- if( strcmp( BussinesInfo[ PI[ playerid ][ xFirmaID ] ][ bVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Firma vise nije u vasem vlasnistvu, obratite se na forumu ako mislite je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h ili nedostatak faktura." );
- PI[ playerid ][ xFirmaID ] = -1;
- SavePlayer( playerid );
- }
- }
- if( PI[ playerid ][ xImanjeID ] != -1 ) {
- if( strcmp( ImanjeInfo[ PI[ playerid ][ xImanjeID ] ][ iVlasnik ], ImeIgraca( playerid ), true ) ) {
- SCM( playerid, BELA, "Imanje vise nije u vasem vlasnistvu, obratite se na forum ako mislite da je greska." );
- SCM( playerid, BELA, "Jedan od razloga moze biti i vasa neaktivnost od 500h." );
- PI[ playerid ][ xImanjeID ] = -1;
- SavePlayer( playerid );
- }
- }
- #if ZIMSKI_MOD == 0
- InfoMessage( playerid, "Balkan RolePlay Staff Tim vam zeli sretne Bozicne i novogodislje praznike. 'HAPPY NEW YEAR 2017' [ /sneg ]" );
- #endif
- // PostaviBojuTD(playerid);
- }
- PrviSpawn[ playerid ] = 0;
- }
- if( PI[ playerid ][ xBStil ] == 0) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_NORMAL); }
- else if( PI[ playerid ][ xBStil ] == 1) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_BOXING); }
- else if( PI[ playerid ][ xBStil ] == 2) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_KUNGFU); }
- else if( PI[ playerid ][ xBStil ] == 3) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_KNEEHEAD); }
- else if( PI[ playerid ][ xBStil ] == 4) { SetPlayerFightingStyle ( playerid, FIGHT_STYLE_GRABKICK); }
- SetPlayerSkillLevel( playerid, WEAPONSKILL_MP5, 999 );
- RemovePlayerAttachedObject( playerid, OBJECT_SLOT_RHAND );
- //RemovePlayerAttachedObject( playerid, OBJECT_SLOT_FREE );
- RemovePlayerAttachedObject( playerid, OBJECT_SLOT_LHAND );
- RemovePlayerAttachedObject( playerid, OBJECT_SLOT_HELMET );
- RemovePlayerAttachedObject( playerid, OBJECT_SLOT_MASK );
- RemovePlayerAttachedObject( playerid, OBJECT_SLOT_BADGE );
- RemovePlayerAttachedObject( playerid, OBJECT_SLOT_WINTERCAP );
- // -------------------------------------------------------------------------
- SK_Zastita[playerid] = gettime()+7;
- SendClientMessage(playerid, plavaboja, "[ANTI SK]: "col_white"Zasticeni ste 7 sekundi od Spawn Killa!");
- SetTimerEx("AntiSpawnKill", 7000, 0, "i", playerid);
- // -------------------------------------------------------------------------
- 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);
- if( SungOn[ playerid ] ) {
- 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);
- }
- 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);
- PlayerCuffed[ playerid ] = 0; PoliceDuty[ playerid ] = false; KillTimer(Cuff_Timer[playerid]);
- NosiObjekt[ playerid ][ 0 ] = false; NosiObjekt[ playerid ][ 1 ] = false; NosiObjekt[ playerid ][ 2 ] = false;
- UzeoPicu[ playerid ] = false;
- NosiPaketOruzja[ playerid ] = false; garbagemanInfo[ playerid ][ gmiHasGarbage ] = false;
- farmerInfo[ playerid ][ fiHaveBucket ] = false; RiotShield[ playerid ] = false;
- LaptopRuke[ playerid ] = false;
- PuniGorivo[ playerid ] = false; IgracZavezan[ playerid ] = false;
- if( PlayerBuyingAS[ playerid ] != -1 ) {
- AutoSalon[ PlayerBuyingAS[ playerid ] ][ AlreadyBuying ] = false;
- PlayerBuyingAS[ playerid ] = -1;
- }
- farmerInfo[ playerid ][ fiCowNumber ] = 0;
- if( farmerInfo[ playerid ][ fiVehicleBucket ] != -1 ) {
- new farmvehicle = farmerInfo[ playerid ][ fiVehicleBucket ];
- farmerVehicles[ farmvehicle ][ fvMilk ] = false;
- farmerVehicles[ farmvehicle ][ fvMilkpID ] = -1;
- }
- SetPlayerSkillLevel( playerid, WEAPONSKILL_PISTOL, 1 );
- SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 1 );
- ac_SetPlayerSpecialAction( playerid, SPECIAL_ACTION_NONE );
- Papy_KillTimer( atmrobTimer[ playerid ] );
- if( PI[ playerid ][ xRPLearn ] == 1 ) {
- TimerLearn[ playerid ] = SetTimerEx( "RolePlayTut", 3000, 0, "ii", playerid, 1);
- SCM( playerid, SVETLOCRVENA, "Nisi zavrsio tutorijal, pa si ponovno vracen da ga odgledas!" );
- }
- if( PI[ playerid ][ xZatvor ] == OBICAN_ZATVOR ) {
- if( PI[ playerid ][ xLeaveJail ] == true ) {
- 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) );
- SCM( playerid,SERVERBOJA, "JAIL:"col_white"{FFFFFF}Izalazak sa servera sa Wanted Levelom'");
- PI[ playerid ][ xLeaveJail ] = false;
- }
- }
- if( PI[ playerid ][ xZatvor ] == OBICAN_ZATVOR ) {
- if( strlen( PI[ playerid ][ xOffPJail ] ) > 2 ) {
- SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}%s je stavljen u jail na %d minuta od strane Admin tima!", ImeIgraca( playerid ), PI[ playerid ][ xZatvorVreme ] );
- SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}RAZLOG: '%s'", PI[ playerid ][ xOffPJail ] );
- strmid( PI[ playerid ][ xOffPJail ], "N", 0, strlen("N"), 2 );
- }
- }
- if( PI[ playerid ][ xMute ] > 0 ) {
- if( strlen( PI[ playerid ][ xOffPMute ] ) > 2 ) {
- SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF} %s je mutiran na %d minuta od strane Admin tima!", ImeIgraca( playerid ), PI[ playerid ][ xMute ]/60 );
- SendClientMessageEx( playerid,SERVERBOJA, "{FFFFFF}RAZLOG: '%s'", PI[ playerid ][ xOffPMute ] );
- strmid( PI[ playerid ][ xOffPMute ], "N", 0, strlen("N"), 2 );
- }
- }
- if( PI[ playerid ][ xZatvor ] == ALKATRAZ ) {
- if( strlen( PI[ playerid ][ xOffPPrison ] ) > 2 ) {
- SendClientMessageEx( playerid,SERVERBOJA, ""col_white" %s je stavljen u prison na %dh od strane Admin tima!", ImeIgraca( playerid ), PI[ playerid ][ xZatvorVreme ]/60 );
- SendClientMessageEx( playerid,SERVERBOJA, ""col_white" RAZLOG: '%s'", PI[ playerid ][ xOffPPrison ] );
- strmid( PI[ playerid ][ xOffPPrison ], "N", 0, strlen("N"), 2 );
- }
- }
- if( PI[ playerid ][ xMaraton ] > 0 )
- {
- SCM( playerid, -1, "Niste zavrsili lavirint kaznu, vracate se gde ste bili!" );
- Papy_SetPlayerPos( playerid, 852.8660,1753.9944,1373.1364 );
- SetPlayerFacingAngle( playerid, 317.1445 );
- SetCameraBehindPlayer( playerid );
- Papy_SetPlayerCheckpoint( playerid, 868.7183, 1769.6001, 1372.8619, 7.0 );
- Maratonac[ playerid ] = 1;
- pocspawn[ playerid ] = 1;
- return 1;
- }
- if( SpecPos[ playerid ][ 0 ] != 0.0 && SpecPos[ playerid ][ 1 ] != 0.0 ) {
- Papy_SetPlayerPos( playerid, SpecPos[ playerid ][ 0 ], SpecPos[ playerid ][ 1 ], SpecPos[ playerid ][ 2 ] );
- SetPlayerVirtualWorld( playerid, SpecVW[ playerid ] );
- SetPlayerInterior( playerid, SpecInt[ playerid ] );
- if( PI[ playerid ][ xAdmin ] > 0 && PI[ playerid ][ xAdmin ] < 7 && PI[ playerid ][ xPol ] == 1 ) {
- SetPlayerSkin( playerid, 294 );
- }
- else if( PI[ playerid ][ xSupporter ] > 0 && PI[ playerid ][ xPol ] == 1 ) {
- SetPlayerSkin( playerid, 59 );
- }
- SpecPos[ playerid ][ 0 ] = 0.0;
- SpecPos[ playerid ][ 1 ] = 0.0;
- SpecPos[ playerid ][ 2 ] = 0.0;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment