SpawnPlayer(playerid);
SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z, cut = CAMERA_CUT);
// Put where you want them to spawn, and set their camera params.
public OnPlayerRequestClass(playerid, classid)
{
if(RegistrationStep[playerid] == 0)
{
if(PlayerInfo[playerid][pReg] == 1)
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,""ALB"Welcome.Please log-in.",""ALB"Type your password here to log-in","Log-in","Quit");
}
if(PlayerInfo[playerid][pReg] == 0)
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,""ALB"Please register!",""ALB"Type your password here to register.","Register","Quit");
}
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
}
else SpawnPlayer(playerid);
return 1;
}
Didn't worked bro ..
pawn Код:
|
public OnPlayerRequestClass(playerid, classid)
{
SpawnPlayer(playerid); //To avoid spawn class and redirect to spawn location.
if(RegistrationStep[playerid] == 0)
{
if(PlayerInfo[playerid][pReg] == 1)
{
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,""ALB"Welcome.Please log-in.",""ALB"Type your password here to log-in","Log-in","Quit");
}
if(PlayerInfo[playerid][pReg] == 0)
{
ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,""ALB"Please register!",""ALB"Type your password here to register.","Register","Quit");
}
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
}
}
return 1;
}
Or use my camera include: https://sampforum.blast.hk/showthread.php?pid=2362690#pid2362690
|
C:\Program Files\GTA - San Andreas\Server\gamemodes\Untitled.pwn(43) : error 025: function heading differs from prototype
C:\Program Files\GTA - San Andreas\Server\gamemodes\Untitled.pwn(390) : error 025: function heading differs from prototype
C:\Program Files\GTA - San Andreas\Server\gamemodes\Untitled.pwn(449) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
forward OnPlayerLogin(playerid,password[]);
public OnPlayerLogin(playerid,password[])
OnPlayerLogin(playerid, inputtext);