02.03.2013, 11:49
I got this
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 ?
pawn Код:
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]);
}
}