Problem(error/warning): /
Deo skripte:
}
else {
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
PlayerInfo[ xSpawn ] = SPAWN_OBICAN_LS_1;
}
}
else if( PlayerInfo[ xSpawn ] == SPAWN_OBICAN_LS_1 ) {
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
}
else if( PlayerInfo[ xSpawn ] == SPAWN_BAZA ) {
ac_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 = OrgID;
}
else if( PlayerInfo[ xSpawn ] == SPAWN_IMOVINA_1 ) {
if( PlayerInfo[ xProperty ][ 0 ] != -1 ) {
new i = PlayerInfo[ xProperty ][ 0 ];
ac_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 = i;
}
else {
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
PlayerInfo[ xSpawn ] = SPAWN_OBICAN_LS_1;
}
}
else if( PlayerInfo[ xSpawn ] == SPAWN_IMOVINA_2 ) {
if( PlayerInfo[ xProperty ][ 1 ] != -1 ) {
new i = PlayerInfo[ xProperty ][ 1 ];
ac_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 = i;
}
else {
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
PlayerInfo[ xSpawn ] = SPAWN_OBICAN_LS_1;
}
}
else if( PlayerInfo[ xSpawn ] == SPAWN_IMOVINA_3 ) {
if( PlayerInfo[ xProperty ][ 2 ] != -1 ) {
new i = PlayerInfo[ xProperty ][ 2 ];
ac_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 = i;
}
else {
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
PlayerInfo[ xSpawn ] = SPAWN_OBICAN_LS_1;
}
}
else if( PlayerInfo[ xSpawn ] == SPAWN_ALEBAKUCA ) {
ac_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[ xSpawn ] == SPAWN_OBICAN_LS_2 ) {
new rand = random( sizeof( RandomLSSpawn2 ) );
ac_SetPlayerPos( playerid, 1213.5996, -1747.0599, 13.5946 );
SetPlayerFacingAngle( playerid, RandomLSSpawn2[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
}
else if( PlayerInfo[ xSpawn ] == SPAWN_RENTHOTEL ) {
if( PlayerInfo[ xHotelRoom ] != -1 ) {
new i = PlayerInfo[ xHotelRoom ];
if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_1 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2246.6826, -1160.8252, 1029.7969 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_2 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2235.9670, -1158.5640, 1029.7969 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_3 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2235.7524, -1169.7406, 1029.8043 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_4 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2227.1511, -1182.9784, 1029.8043 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_5 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2207.9285, -1194.5630, 1029.7969 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_6 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2198.8984, -1174.5468, 1029.8043 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_7 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2188.1833, -1155.7197, 1029.7969 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_8 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2198.7791, -1158.6515, 1029.7969 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_9 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2188.1833, -1155.7197, 1029.7969 );
}
else if( strcmp( ImeIgraca( playerid ), hotelInfo[ i ][ hGuest_10 ], true ) == 0) {
ac_SetPlayerPos( playerid, 2198.7791, -1158.6515, 1029.7969 );
}
else {
PlayerInfo[ xHotelRoom ] = -1;
SCM( playerid, LIGHTBLUE, " Iseljeni ste iz hotela!");
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ],RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
PlayerInfo[ 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 = i;
}
else {
new rand = random( sizeof( RandomLSSpawn1 ) );
ac_SetPlayerPos( playerid, RandomLSSpawn1[ rand ][ 0 ], RandomLSSpawn1[ rand ][ 1 ], RandomLSSpawn1[ rand ][ 2 ] );
SetPlayerFacingAngle( playerid, RandomLSSpawn1[ rand ][ 3 ] );
SetTimerEx( "SlobodnoSada", 4000, false, "i", playerid );
GameTextForPlayer( playerid, "Ucitavanje...", 1000, 4 );
TogglePlayerControllable( playerid, false );
SetCameraBehindPlayer( playerid );
SetPlayerInterior( playerid, 0 );
PlayerInfo[ xSpawn ] = SPAWN_OBICAN_LS_1;