Streamer_Update(playerid);
Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z);
You mean your objects not appearing when you TogglePlayerSpectate?
well if yes then you have to use Streamer Update. you can use this after setting player pos PHP код:
PHP код:
|
switch( classid ) { case 0..55: { SetPlayerTime( playerid, 0, 0 ); SetPlayerInterior( playerid, 0 ); if( GetPlayerVirtualWorld( playerid ) != 11 ) SetPlayerVirtualWorld( playerid, 11 ); SetPlayerPos( playerid, 1929.6469,-2818.9055,5.7799 ); SetPlayerFacingAngle( playerid, 178.9658 ); ApplyAnimation( playerid, "DANCING", "DAN_Loop_A", 4.0, 1, 0, 0, 0, 0 ); ApplyAnimation( playerid, "DANCING", "DAN_Loop_A", 4.0, 1, 0, 0, 0, 0 ); SetPlayerAttachedObject( playerid, 0, 19079, 1, 0.330000, -0.079999, 0.150000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject( playerid, 1, 18693, 5, -0.100000, 0.000000, -1.750000, 0.000000, 0.000000, 0.000000, 100.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject( playerid, 2, 18693, 6, 0.000000, 0.000000, 1.750000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerCameraPos( playerid, 1928.8866, -2825.4265, 6.5730 ); SetPlayerCameraLookAt( playerid, 1929.1681, -2824.4680, 6.5030 ); Streamer_UpdateEx( playerid, 1931.51624, -2832.97754, 5.74180, 11 ); } }
forward OnPlayerRequestClass( playerid, classid ); public OnPlayerRequestClass( playerid, classid ) { HideIntroTextdraws( playerid ); HideSpawnTextdraws( playerid ); gPlayerSpawned[ playerid ] = false; gTeamSelection[ playerid ] = true; TextDrawHideForPlayer( playerid, TextAfk1 ); TextDrawHideForPlayer( playerid, TextAfk2 ); TextDrawHideForPlayer( playerid, Name_Intro ); TextDrawHideForPlayer( playerid, Reaction_TD ); PlayerTextDrawHide( playerid, gTerswarTD[ playerid ] ); PlayerTextDrawHide( playerid, gTerswarBarTD[ playerid ] ); HidePlayerProgressBar( playerid, gTerswarBar[ playerid ] ); switch( classid ) { case 0..55: { SetPlayerTime( playerid, 0, 0 ); SetPlayerInterior( playerid, 0 ); if( GetPlayerVirtualWorld( playerid ) != 11 ) SetPlayerVirtualWorld( playerid, 11 ); SetPlayerPos( playerid, 1929.6469,-2818.9055,5.7799 ); SetPlayerFacingAngle( playerid, 178.9658 ); ApplyAnimation( playerid, "DANCING", "DAN_Loop_A", 4.0, 1, 0, 0, 0, 0 ); ApplyAnimation( playerid, "DANCING", "DAN_Loop_A", 4.0, 1, 0, 0, 0, 0 ); SetPlayerAttachedObject( playerid, 0, 19079, 1, 0.330000, -0.079999, 0.150000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject( playerid, 1, 18693, 5, -0.100000, 0.000000, -1.750000, 0.000000, 0.000000, 0.000000, 100.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject( playerid, 2, 18693, 6, 0.000000, 0.000000, 1.750000, 180.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerCameraPos( playerid, 1928.8866, -2825.4265, 6.5730 ); SetPlayerCameraLookAt( playerid, 1929.1681, -2824.4680, 6.5030 ); Streamer_UpdateEx( playerid, 1931.51624, -2832.97754, 5.74180, 11 ); } } return 1; }