SA-MP Forums Archive
[HELP] Teleport cmd - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Teleport cmd (/showthread.php?tid=187668)



Fixed, delete please. - joeri55 - 04.11.2010

This problem is fixed.


Re: [HELP] Teleport cmd - Miguel - 04.11.2010

Try this:
pawn Код:
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
    if (PlayerToPoint(2.0, playerid,1836.0175,-1665.8116,-13.6735))
    {
        GameTextForPlayer(playerid, "~w~Diner Room", 5000, 1);
        SetPlayerPos(playerid,1727.9573974609,-1781.5504150391,-22.784780502319);
    }
    else if (PlayerToPoint(2.0, playerid,1772.3770,-1548.2623,9.9063))
    {
        GameTextForPlayer(playerid, "~w~Prison Hall", 5000, 1);
        SetPlayerPos(playerid,1798.2151,-1674.7482,-13.6735);
    }
    else if (PlayerToPoint(2.0, playerid,1830.8729,-1666.1912,-13.6735))
    {
        GameTextForPlayer(playerid, "~w~Clothing Room", 5000, 1);
        SetPlayerPos(playerid,1526.0093,-1491.6381,4.7180);
    }
    else if (PlayerToPoint(2.0, playerid,1833.5308,-1665.9100,-13.6735))
    {
        GameTextForPlayer(playerid, "~w~Slaughterhouse", 5000, 1);
        SetPlayerPos(playerid,1714.3527,-1824.3061,-21.8133);
    }
    else if (PlayerToPoint(2.0, playerid,1836.1042,-1660.9308,-13.6735))
    {
        GameTextForPlayer(playerid, "~w~Small room", 5000, 1); //vierkant
        SetPlayerPos(playerid,1837.9089,-1661.1136,-13.6735);
    }
    else if (PlayerToPoint(2.0, playerid,1843.3695,-1665.9357,-13.6735))
    {
        GameTextForPlayer(playerid, "~w~Locker room", 5000, 1); //locker
        SetPlayerPos(playerid,249.3547,75.8773,1003.6406);
        SetPlayerInterior(playerid, 6)
    }
}
else SendClientMessage(playerid, COLOR_GRAD1, "You're not a cop!");



Re: [HELP] Teleport cmd - joeri55 - 04.11.2010

Problem solved, thanks for your help.