Camera help [ I'LL REP ! ] - 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)
+--- Thread: Camera help [ I'LL REP ! ] (
/showthread.php?tid=420631)
Camera help [ I'LL REP ! ] -
Jaber_Brown - 05.03.2013
I got this ,, I call this function OnPlayerRequestClass
pawn Код:
forward FixCamera(playerid);
public FixCamera(playerid)
{
if(GetPVarInt(playerid, "PlayerLogged") == 0)
{
InterpolateCameraPos(playerid, 2652.221435, 43.546924, 68.585899, 2136.362548, 42.028499, 34.926959, 60000);
InterpolateCameraLookAt(playerid, 2648.556640, 43.464473, 66.985389, 2132.563232, 42.066158, 33.676406, 60000);
/*SetPlayerCameraPos(playerid,1582.7234,-1432.5143,73.3952);
SetPlayerCameraLookAt(playerid,1594.2522,-1555.3414,28.5859);
CamSet[playerid][1] = 5;
CamSet[playerid][0] = 1;*/
}
return 1;
}
It works fine, but in registration When SEX dialog appears, the camera changes to the Beach (Default i guess ) camera
pawn Код:
new rand;
new playername[32];
new house = PlayerInfo[playerid][pHousekey];
GetPlayerName(playerid, playername, sizeof(playername));
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
SetPlayerFightingStyle(playerid,PlayerInfo[playerid][pFightSkill]);
if(PlayerInfo[playerid][pTut] == 0)
{
TogglePlayerSpectating(playerid,1);
SetPlayerScore(playerid,1);
SetPlayerToTeamColor(playerid);
TogglePlayerControllableEx(playerid, 0);
SetPVarInt(playerid, "RegistrationStep", 1);
PlayerInfo[playerid][pAdmin] = 0;
if(PlayerInfo[playerid][pCalledTutSay]==0) {
ShowPlayerDialog(playerid,300,DIALOG_STYLE_INPUT,"{0080FF} Sex","{FFFFFF}What is your gender? {0080FF}Male {FFFFFF}or {0080FF}Female ","Proceed","Cancel");
PlayerInfo[playerid][pCalledTutSay]=1;
}
SetPlayerVirtualWorld(playerid,playerid);
return 1;
}
Help me and i'll rep
Re: Camera help [ I'LL REP ! ] -
Mmartin - 06.03.2013
I'd remove the TogglePlayerSpectating from there, I don't see a point why should it even be there.
Also don't think "REP" in topic title is going to help you, it gives worse impression than you think it does.
Re: Camera help [ I'LL REP ! ] -
Jaber_Brown - 06.03.2013
I removed it, but still same problem
Re: Camera help [ I'LL REP ! ] -
L.Hudson - 06.03.2013
try SetCameraBehindPlayer(playerid); and I don't need your REP if it worked