How to?
#1

How can you change the view from when someone is logging in? Like it's usually the Vinewood sign, but when I went on another server I saw that it was the Las Venturas entrence sign, and as I'm scripting my server in Las Venturas, I'd like that too. Help please? Thanks/
Reply
#2

You can't change the view in connecting state but you can change the view when he's connected.

pawn Код:
public OnPlayerConnect(playerid)
{
  SetPlayerCameraPos(playerid, // camera pos);
  SetPlayerCameraLookAt(playerid, // camera lookat);
  // Your code here
}
Note: Not tested, so maybe it won't work

Hope this helped you out.
Reply
#3

Haven't really worked with CameraPos and stuff, but I'll mess around with it. Another question, how can I change this?

I want the two SERVER's to be AFTER the "Connected to Las Venturas Roleplay", but how do I do that? Thanks! :P
Reply
#4

Well "Connected to Las Venturas Roleplay" appears normally just before the class selection screen appears. So I would do:
pawn Код:
//Near the top of your script
new ConMessage[200];

public OnPlayerConnect(playerid)
{
  ConMessage[playerid]=1;
  return 1;
}
public OnPlayerRequestClass(playerid,classid)
{
  if((ConMessage[playerid]==1)&&(/*The part that checks if they are registered*/)){
    SendClientMessage(playerid,0xFFFFFFAA,"SERVER: You may now login by using /login <password>");
    ConMessage[playerid]=0;
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)