How to? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to? (
/showthread.php?tid=91982)
How to? -
Devine - 17.08.2009
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/
Re: How to? -
[nl]daplayer - 17.08.2009
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.
Re: How to? -
Devine - 17.08.2009
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
Re: How to? -
Badger(new) - 17.08.2009
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;
}