I need help - 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: I need help (
/showthread.php?tid=183917)
I need help -
Saitecx - 17.10.2010
Hello,
I have a problem with my Class selection.
Код:
public SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,1594.7581,1448.0330,33.8799); // da steht der skin
SetPlayerFacingAngle(playerid, 33.8799);// da guckt er hin (z coordinate)
SetPlayerCameraPos(playerid,1600.0800,1448.3456,33.6550); // da steht die kamera
SetPlayerCameraLookAt(playerid,1594.7581,1448.0330,33.8799); // coord von "da steht der skin"
return 1;
}
It works, but the skin don't look in the camera. why?
sorry for my bad english :S
Re: I need help -
Hash [NL-RP] - 17.10.2010
Change the coords of AddPlayerClass to.
Код:
AddPlayerClass(20, 1594.7581,1448.0330,33.8799, 0, 0, 0, 0, 0, 0, 0);
Under OnGameModeInit
Re: I need help -
TheXIII - 17.10.2010
Quote:
Originally Posted by Saitecx
Hello,
I have a problem with my Class selection.
Код:
public SetupPlayerForClassSelection(playerid)
{
SetPlayerPos(playerid,1594.7581,1448.0330,33.8799); // da steht der skin
SetPlayerFacingAngle(playerid, 33.8799);// da guckt er hin (z coordinate)
SetPlayerCameraPos(playerid,1600.0800,1448.3456,33.6550); // da steht die kamera
SetPlayerCameraLookAt(playerid,1594.7581,1448.0330,33.8799); // coord von "da steht der skin"
return 1;
}
It works, but the skin don't look in the camera. why?
sorry for my bad english :S
|
This is supposed to be ANGLE, not Z Coordinate.
Z Coordinate is already in SetPlayerPos function. SetPlayerPos parameters are as following (
Float:X Coord, Float:Y Coord, Float:Z Coord); . Also, don't do as Hash said - that will change your player spawn, instead of facing angle at class selection screen.
AW: I need help -
Saitecx - 17.10.2010
and what should I write into that now?
Re: AW: I need help -
TheXIII - 17.10.2010
Quote:
Originally Posted by Saitecx
and what should I write into that now?
|
Change it to whatever angle you wish it to be, from
0 to
360.
0 being the north.
If you got your coords with
/save command,
Angle is the 5th parameter in your "
savedpositions.txt" file.
Код:
AddPlayerClass(0,2037.6133,1343.8833,10.6719,276.0359,0,0,0,0,0,0); // comment
AW: I need help -
Saitecx - 17.10.2010
Thanks.. its work