Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public PostaviSpawn( playerid )
- {
- new OrgID = PlayerInfo[ playerid ][ xClan ];
- if ( PlayerInfo[ playerid ][ xZatvor ] == OBICAN_ZATVOR )
- {
- new rand = random( sizeof( RandomZatvor ) );
- Emsad_SetPlayerPos( playerid, RandomZatvor[ rand ][ 0 ], RandomZatvor[ rand ][ 1 ],RandomZatvor[ rand ][ 2 ] );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SCM( playerid, CRVENA, "Nedovrsena zatvorska kazna, natrag u zatvor.");
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- SetPlayerVirtualWorld( playerid, 0 );
- ToggleCheckpoints( playerid );
- }
- else if( PlayerInfo[ playerid ][ xZatvor ] == ALKATRAZ )
- {
- Emsad_SetPlayerPos( playerid, 268.5777, 1857.9351, 9.8133 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SCM( playerid, CRVENA, "Nedovrsena zatvorska kazna, natrag u ALKATRAZ.");
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- SetPlayerVirtualWorld( playerid, 1 );
- SetPlayerWorldBounds( playerid, 337.5694, 101.5826, 1940.9759, 1798.7453 );
- }
- else if( PlayerInfo[ playerid ][ xMaraton ] > 0 )
- {
- SCM( playerid, -1, "Niste zavrsili maratonsku kaznu, vracate se gde ste bili!" );
- Emsad_SetPlayerPos( playerid, 852.8660, 1753.9944, 1373.1364 );
- SetPlayerFacingAngle( playerid, 317.1445 );
- SetCameraBehindPlayer( playerid );
- Emsad_SetPlayerCheckpoint( playerid, 868.7183, 1769.6001, 1372.8619, 7.0 );
- Maratonac[ playerid ] = 1;
- return 1;
- }
- else
- {
- if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_ADMIN )
- {
- if( PlayerInfo[ playerid ][ xAdmin ] >= 1 )
- {
- Emsad_SetPlayerPos( playerid, -655.6210, 2107.0259, 1073.1508 );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerVirtualWorld( playerid, 1 );
- SetPlayerInterior( playerid, 0 );
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_SUPPORTER )
- {
- if( PlayerInfo[ playerid ][ xSupporter ] >= 1 )
- {
- Emsad_SetPlayerPos( playerid, -306.6592, 1771.7335, 43.0737 );
- SetPlayerFacingAngle( playerid, 180.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 90.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_OBICAN_LS_1 )
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 90.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_BAZA )
- {
- Emsad_SetPlayerPos( playerid, OI[ OrgID ][ oPozIntX ], OI[ OrgID ][ oPozIntY ] , OI[ OrgID ][ oPozIntZ ] );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, OI[ OrgID ][ oInt ] );
- SetPlayerVirtualWorld( playerid, OI[ OrgID ][ oVw ] );
- inOrgInt[ playerid ] = OrgID;
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_IMOVINA_1 )
- {
- if( PlayerInfo[ playerid ][ xProperty ][ 0 ] != -1 )
- {
- new i = PlayerInfo[ playerid ][ xProperty ][ 0 ];
- Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- SetCameraBehindPlayer( playerid );
- TogglePlayerControllable( playerid, false );
- SetPlayerInterior( playerid, II[ i ][ iInterior ] );
- SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
- inProperty[ playerid ] = i;
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_IMOVINA_2 )
- {
- if( PlayerInfo[ playerid ][ xProperty ][ 1 ] != -1 )
- {
- new i = PlayerInfo[ playerid ][ xProperty ][ 1 ];
- Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- SetCameraBehindPlayer( playerid );
- TogglePlayerControllable( playerid, false );
- SetPlayerInterior( playerid, II[ i ][ iInterior ] );
- SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
- inProperty[ playerid ] = i;
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_IMOVINA_3 )
- {
- if( PlayerInfo[ playerid ][ xProperty ][ 2 ] != -1 )
- {
- new i = PlayerInfo[ playerid ][ xProperty ][ 2 ];
- Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- SetCameraBehindPlayer( playerid );
- TogglePlayerControllable( playerid, false );
- SetPlayerInterior( playerid, II[ i ][ iInterior ] );
- SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
- inProperty[ playerid ] = i;
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_BELAKUCA )
- {
- Emsad_SetPlayerPos( playerid, 1292.5704, -832.4692, 1085.6328 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 5 );
- SetPlayerVirtualWorld( playerid, 0 );
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_OBICAN_LS_2 )
- {
- new rand = random( sizeof( RandomLSSpawn2 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn2[ rand ][ 0 ], RandomLSSpawn2[ rand ][ 1 ],RandomLSSpawn2[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_OBICAN_SF )
- {
- new rand = random( sizeof( RandomSFSpawn ) );
- Emsad_SetPlayerPos( playerid, RandomSFSpawn[ rand ][ 0 ], RandomSFSpawn[ rand ][ 1 ],RandomSFSpawn[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_RENTHOTEL )
- {
- if( PlayerInfo[ playerid ][ xHotelRoom ] != -1 )
- {
- new i = PlayerInfo[ playerid ][ xHotelRoom ];
- if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_1 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2246.6826, -1160.8252, 1029.7969 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_2 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2235.9670, -1158.5640, 1029.7969 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_3 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2235.7524, -1169.7406, 1029.8043 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_4 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2227.1511, -1182.9784, 1029.8043 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_5 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2207.9285, -1194.5630, 1029.7969 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_6 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2198.8984, -1174.5468, 1029.8043 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_7 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2188.1833, -1155.7197, 1029.7969 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_8 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2198.7791, -1158.6515, 1029.7969 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_9 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2188.1833, -1155.7197, 1029.7969 );
- }
- else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_10 ], true ) == 0) {
- Emsad_SetPlayerPos( playerid, 2198.7791, -1158.6515, 1029.7969 );
- }
- else
- {
- PlayerInfo[ playerid ][ xHotelRoom ] = -1;
- SCM( playerid, SVETLOPLAVA, " Iseljeni ste iz hotela!");
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- return 1;
- }
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- SetCameraBehindPlayer( playerid );
- TogglePlayerControllable( playerid, false );
- SetPlayerInterior( playerid, hotelInfo[ i ][ hInterior ] );
- SetPlayerVirtualWorld( playerid, hotelInfo[ i ][ hVW ] );
- inHotel[ playerid ] = i;
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_PROMOTER )
- {
- if( PlayerInfo[ playerid ][ xPromoter ] >= 1 )
- {
- Emsad_SetPlayerPos( playerid, 1181.5559, -3095.5508, 14.3354 );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- else if( PlayerInfo[ playerid ][ xSpawn ] == SPAWN_RENT )
- {
- if( PlayerInfo[ playerid ][ xRentID ] != -1 )
- {
- new i = PlayerInfo[ playerid ][ xRentID ];
- Emsad_SetPlayerPos( playerid, II[ i ][ iExit ][ 0 ], II[ i ][ iExit ][ 1 ], II[ i ][ iExit ][ 2 ] );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- SetCameraBehindPlayer( playerid );
- TogglePlayerControllable( playerid, false );
- SetPlayerInterior( playerid, II[ i ][ iInterior ] );
- SetPlayerVirtualWorld( playerid, II[ i ][ iVW ] );
- inProperty[ playerid ] = i;
- }
- else
- {
- new rand = random( sizeof( RandomLSSpawn1 ) );
- Emsad_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
- SetPlayerFacingAngle( playerid, 360.000 );
- SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
- GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
- TogglePlayerControllable( playerid, false );
- SetCameraBehindPlayer( playerid );
- SetPlayerInterior( playerid, 0 );
- PlayerInfo[ playerid ][ xSpawn ] = SPAWN_OBICAN_LS_1;
- }
- }
- }
- return true;
- }
Add Comment
Please, Sign In to add comment