Problem with teleporting (Help and get a REP)
#1

I got this

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]);
     }
     
}
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 ?
Reply
#2

Anyone ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)