View Full Version : Coordinats Wrong

08/03/2018, 05:14 PM
So as title says, i have problem with coordinats, let me tell you more:
When i login with my account it gets me to where i can switch my player skin
but look how it is on me:


How to fix it? If you can give me other custom coordinats for it or something like that
Also, its the same problem with the teleports, i use stock for my teleports
here it is the stock:

Teleport(playerid, Float:x, Float:y, Float:z, Float:angle, interior, virtualworld, bool:ignoreVehicle)
if(!ignoreVehicle && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid, x, y, z);
SetVehicleZAngle(vehicleid, angle);
LinkVehicleToInterior(vehicleid, interior);
SetVehicleVirtualWorld(vehicleid, virtualworld);
SetPlayerPos(playerid, x, y, z);
SetPlayerFacingAngle(playerid, angle);
SetPlayerInterior(playerid, interior);
SetPlayerVirtualWorld(playerid, virtualworld);

And my teleport command needs to look like this:

Teleport(playerid, 835.2564,-1999.7765,12.8672, 0, 0, 0, false);

I hope you know what they are, and when i launch my command it teleports me like this


Please help :P

08/03/2018, 08:34 PM
First answer is that your AddPlayerClass lines, and your OnPlayerRequestClass are the cause of this... You either turn his Rotation Z to face the camera, or you move the camera.

Your second issue is that you aren't setting their Rotation Z again, when you teleport. Looks like he needs to be facing on angle 90, as he's facing north and needing to face right.

Teleport(playerid, 835.2564,-1999.7765,12.8672, 0, 0, 0, false);

12.8672, 90, 0, 0, false);

The first 0 is angle, and because it's set to 0, the player will always teleport north facing.