SA-MP Forums Archive
Problem with teleporting (Help and get a REP) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with teleporting (Help and get a REP) (/showthread.php?tid=419791)



Problem with teleporting (Help and get a REP) - Jaber_Brown - 02.03.2013

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 ?


Re: Problem with teleporting (Help and get a REP) - Jaber_Brown - 02.03.2013

Anyone ?