Help [ Error ]
#8

Код:
stock NormalTele( playerid, TeleName[ ], CMDName[ ], Float: VX, Float: VY, Float: VZ, Float: VA, Float: X, Float: Y, Float: Z, Float: A, interior )
{
	PlayerPlaySound( playerid, 1057, 0.0, 0.0, 10.0 );
	if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
	{
		SetVehiclePos( GetPlayerVehicleID( playerid ), VX, VY, VZ );
		SetVehicleZAngle( GetPlayerVehicleID( playerid ), VA );
		LinkVehicleToInterior( GetPlayerVehicleID( playerid ), interior );
		SetCameraBehindPlayer( playerid );
	}
	else
	{
		SetPlayerPos( playerid, Float:X, Float:Y, Float:Z );
		SetPlayerFacingAngle( playerid, Float:A );
		SetPlayerInterior( playerid, interior );
	}
	PlayerInfo[ playerid ][ ActionID ] = 0;
	TogglePlayerControllable( playerid, 1 );

	gsString[ 0 ] = EOS;
    format( gsString, sizeof( gsString ), "~r~~h~%s ~y~~h~has gone to ~b~~h~%s", PlayerName( playerid ), CMDName );
    ShowOnTextDraw( gsString );
    
	format( gsString, sizeof( gsString ), "~y~Teleported to~n~~r~%s", TeleName );
	Announce( playerid, gsString, 3000, 3 );
	
	SetPlayerVirtualWorld( playerid, 0 );
	SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), 0 );
	return 1;
}
Reply


Messages In This Thread
Help [ Error ] - by Slawiii - 27.05.2015, 21:20
Re: Help [ Error ] - by PepsiCola23 - 27.05.2015, 23:14
Re: Help [ Error ] - by !damo!spiderman - 28.05.2015, 00:04
Re : Help [ Error ] - by Slawiii - 28.05.2015, 07:52
Re: Help [ Error ] - by Dubya - 28.05.2015, 07:58
Re : Help [ Error ] - by Slawiii - 28.05.2015, 07:59
Re: Help [ Error ] - by Dubya - 28.05.2015, 08:06
Re : Help [ Error ] - by Slawiii - 28.05.2015, 08:11
Re: Help [ Error ] - by Konstantinos - 28.05.2015, 08:48
Re : Help [ Error ] - by Slawiii - 28.05.2015, 09:41

Forum Jump:


Users browsing this thread: 4 Guest(s)