SA-MP Forums Archive
onplayerequestclass not working - 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: onplayerequestclass not working (/showthread.php?tid=351710)



onplayerequestclass not working - thefatshizms - 17.06.2012

hi my onplayerrequestclass is not working well ive been at it for like 1 hour and getting anoyed

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, -331.3924,1964.1808,132.5414);
    SetPlayerFacingAngle(playerid, 208.87);
    SetPlayerCameraPos(playerid, -324.6863,1950.3998,132.4141);
    SetPlayerCameraLookAt(playerid, -324.6863,1950.3998,132.4141);
    return 1;
}
basicly it puts the cam at the right pos and the player at right pos but not the view!


Re: onplayerequestclass not working - StrangeLove - 17.06.2012

https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt


Re: onplayerequestclass not working - thefatshizms - 17.06.2012

Isnt that what i did? lol


AW: onplayerequestclass not working - Nero_3D - 17.06.2012

The camera looks at the position the camera is
But the camera should look at the position the player is, shouldn't it ?