Need help with spawn
#7

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;
}
Reply


Messages In This Thread
Need help with spawn - by Juockis - 20.09.2016, 17:47
Re: Need help with spawn - by ArianGubetini - 22.09.2016, 21:57
Re: Need help with spawn - by Threshold - 23.09.2016, 02:01
Re: Need help with spawn - by Dayrion - 23.09.2016, 11:42
Re: Need help with spawn - by JaKe Elite - 23.09.2016, 12:58
Re: Need help with spawn - by Juockis - 23.09.2016, 13:00
Re: Need help with spawn - by Juockis - 23.09.2016, 13:50
Re: Need help with spawn - by JaKe Elite - 23.09.2016, 14:24
Re: Need help with spawn - by Juockis - 23.09.2016, 14:26
Re: Need help with spawn - by Juockis - 23.09.2016, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)