Hi, I tried to do what you mentioned with spectating and good thing is that it helped me with flying to sky, but
there's now a new problem
(Look at attached thumbnails)
and here's the script of spawn:
Код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
if( !zINFO[ playerid ][ logged ] )
{
TogglePlayerSpectating( playerid, false );
new
Query[ 128 ];
format( Query, 128, "SELECT id FROM `zaidejai` WHERE Name = '%s' LIMIT 1", GET_NAME( playerid ) );
mysql_query( Query );
mysql_store_result( );
new idx = mysql_fetch_int();
if( mysql_num_rows( ) == 1 )
{
zINFO[ playerid ][ id ] = idx;
LOGIN_DIALOG( playerid );
}
else
REGISTER_DIALOG( playerid );
mysql_free_result( );
AC_SetPlayerPos(playerid, 1676.1924,1448.4390,10.7852);
SetPlayerCameraPos(playerid, 2274.3074,1562.6896,77.7907);
SetPlayerCameraLookAt(playerid,1734.9033,1450.4108,14.2906);
InterpolateCameraPos(playerid, 2274.3074,1562.6896,77.7907, 1734.9033,1450.4108,14.2906, 30000, CAMERA_MOVE);
ClearScreen( playerid );
SendClientMessage(playerid,-1,"{08DB07}« {FFFFFF}Sveiki prisijungж б {08DB07}Las-Vegasas.LT{FFFFFF} serveri!{08DB07} »");
SendClientMessage(playerid,-1,"{08DB07}« {FFFFFF}Бraрykite slaptaюodб kurб бraрлte registracijos metu, kad galлtumлme jus atpaюinti. {08DB07}»");
SendClientMessage(playerid,-1,"{08DB07}« {FF0000}PERKANT KREDITШ GAUNATE 40 PROC. DAUGIAU! {08DB07}»");
}
if( zINFO[ playerid ][ logged ] )
{
SendClientMessage(playerid, -1, "{b9d770}[ KICK ]{FFFFFF} Jыs iрmestas uю F4 naudojimа!");
Kick_( playerid );
}
return 1;
}