Hiding class selection
#1

Why does this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  if(!GetPVarInt(playerid, "Logged")) SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin"));
  SetPlayerCameraPos(playerid, 2335.43,1718.92,23);
  SetPlayerCameraLookAt(playerid, 2342.11,1724.43,23);
  SetPlayerPos(playerid, 2341.8713,1725.1122,25.2689);
  SetPlayerFacingAngle(playerid, 140);
  TogglePlayerSpectating(playerid, true);
  return 1;
}
Give me the 'beach screen'?

I HAVE searched, for over an hour, and all the results are noobs asking the same question, where people are telling them to search.
Reply
#2

I really need this sorting, as soon as possible.
Reply
#3

The beach screen?
Reply
#4

Because of

pawn Код:
TogglePlayerSpectating(playerid, true);
Since you aren't choosing anyone to spectate to, it just shows the default screen, the beach.

What is that meant to do anyway?
Reply
#5

You should use SetSpawnInfo + SpawnPlayer.
Reply
#6

Trying to hide the class selection buttons..
Reply
#7

You can't hide it like that. I guess your best bet is to spawn the player, freeze him, move him to a unique virtual world (the same as his player ID for example), and then set the camera.
Reply
#8

They do it in Grand Larceny.
Reply
#9

Probaly noob tip, but maybe you should make the player spectate himself?
Reply
#10

Quote:
Originally Posted by Mikep.
They do it in Grand Larceny.
I just checked and you are right. I didn't know it was possible. I don't know what's wrong with your code then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)