[Ajuda] SetPlayerPos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] SetPlayerPos (
/showthread.php?tid=674792)
SetPlayerPos -
pjfPedro - 28.04.2020
Boa noite , eu fiz um sistema que salva a posiзгo do player quando ele sai e coloca novamente quando ele reconecta.
isso nгo esta acontecendo, ele salva a posiзгo mas nгo o coloca novamente
PHP Code:
Player[ playerid ][ PosX ] =DOF2_GetFloat( GetPlayerArquivo( playerid ), "PosX");
Player[ playerid ][ PosY ] =DOF2_GetFloat( GetPlayerArquivo( playerid ), "PosY");
Player[ playerid ][ PosZ ] =DOF2_GetFloat( GetPlayerArquivo( playerid ), "PosZ");
Player[ playerid ][ Angle ] =DOF2_GetFloat( GetPlayerArquivo( playerid ), "Angle");
Player[ playerid ][ Interior ] =DOF2_GetInt( GetPlayerArquivo( playerid ), "Interior");
SetPlayerPos(playerid,Player[ playerid ][ PosX ],Player[ playerid ][ PosY ],Player[ playerid ][ PosZ]);
SetPlayerInterior(playerid,Player[ playerid ][ Interior ]);
SetPlayerFacingAngle(playerid,Player[ playerid ][ Angle ] );
SpawnPlayer(playerid);
ele comila direitinho mas nгo seta a posiзгo do player e nem spawna ele
Re: SetPlayerPos -
RiqueP - 28.04.2020
Deve usar a função SpawnPlayer antes do SetPlayerPos
Re: SetPlayerPos -
pjfPedro - 28.04.2020
Obrigado cara nгo sabia disso