PDA

View Full Version : Problem with teleporting (Help and get a REP)


Jaber_Brown
02/03/2013, 11:49 AM
I got this


if(newkeys & KEY_FIRE)
{
if(GetPVarInt(playerid, "UsingBuyMenu") > 0)
{
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);

SetPlayerPos( playerid, 2130.2168,-1144.6903,24.7485); //the teleport function
SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][Clothesw]);
SetPlayerInterior(playerid,PlayerInfo[playerid][Clothesi]);

TogglePlayerSpectating(playerid, 0);
SendClientMessage(playerid,COLOR_WHITE,"Vehicle Menu Exit.");
DestroyVehicle(GetPVarInt(playerid, "VehicleID"));
SetPVarInt(playerid, "UsingBuyMenu", 0);
TextDrawHideForPlayer(playerid,VehicleBuy[playerid]);
}

}


But when A player clicks the left mouse, instead of teleporting him to (2130.2168,-1144.6903,24.7485) it sends him back to the last Saved player coordinates .. can anyone help me ?

Jaber_Brown
02/03/2013, 01:31 PM
Anyone ?