• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Faster spectator mode & OnPlayerRequestClass
#2
Maybe you are doing something wrong, because currently I use InterpolateCameraPos and InterpolateCameraLookAt to create camera movement while the player is not logged in.

Every 50 seconds, if the player is still on the login screen, the camera continues to move in predefined random locations.



Here is an example of the system I use and works without problems:





PHP Code:
public OnPlayerConnect(playerid)

{

? ? 
TogglePlayerSpectating(playeridtrue);

? ? 
SetPlayerInterior(playerid0);

? ? 
SetPlayerVirtualWorld(playerid0);

? ? 
InterpolateCameraPos(playerid1315.031982, -1732.84899922.6300481813.086425, -1733.90136719.43346740000CAMERA_MOVE);

? ? 
InterpolateCameraLookAt(playerid1319.984375, -1732.78247021.9447111815.772827, -1729.68737719.5935951000CAMERA_MOVE);

? ? return 
1;

}



public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])

{??

? ? if(
dialogid == 8)

? ? {

? ? ? ? if(
responsenew_TogglePlayerSpectating(playeridfalse);//Spawn player after login and call OnPlayerRequestClass

? ? }

? ? return 
1;

}



public 
OnPlayerRequestClass(playeridclassid)

{

? ? 
SetTimerEx("SkipRequestClass",1,0,"d",playerid);//Disable buttons

? ? return 1;

}



forward SkipRequestClass(playerid);

public 
SkipRequestClass(playerid)

{

? ? 
SpawnPlayer(playerid);

? ? return 
1;


  Reply


Messages In This Thread
RE: Faster spectator mode & OnPlayerRequestClass - by JR_Junior - 2021-02-06, 02:25 PM

Forum Jump: