Problem With PlayerRequestClass - 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: Problem With PlayerRequestClass (
/showthread.php?tid=90992)
Problem With PlayerRequestClass -
wilcock33 - 11.08.2009
hi,
i want to set my class selection at the Abandoned airport
the code looks like this:
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,414.3552,2530.1565,23.3113);
SetPlayerCameraPos(playerid,414.3552,2530.1565,23.3113);
SetPlayerFacingAngle(playerid,0.0)
PlayerPlaySound(playerid,1187 ,0, 0, 0);
ApplyAnimation(playerid,"COP_AMBIENT","Copbrowse_loop ",4.0,1,0,0,0,-1);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
PlayerPlaySound(playerid,1188 ,0, 0, 0);
return 1;
}
here is the saved position i used:
Код:
AddPlayerClass(0,414.3552,2530.1565,23.3113,180.0331,0,0,0,0,0,0); // rrequest class
the problem is it does not even look at the player, it looks like this:
please help
PS-it just stays at that screen till i press shift and spawn
Re: Problem With PlayerRequestClass -
Memoryz - 11.08.2009
Any warnings or errors that you get on compile?
Re: Problem With PlayerRequestClass -
wilcock33 - 11.08.2009
nope, no warings or errors it compiles fine
Re: Problem With PlayerRequestClass -
arnutisz - 11.08.2009
You've forgot
Код:
SetPlayerCameraLookAt
Camera doesn't know where to look.
Re: Problem With PlayerRequestClass -
wilcock33 - 11.08.2009
what do i put for it?
EDIT: dw i think i done it, im gonna test it