Szerző Téma: CheckForWalkingTeleport  (Megtekintve 938 alkalommal)

Nem elérhető scripter01

  • 1035
  • Ex Moderálisan Globális
    • Profil megtekintése
CheckForWalkingTeleport
« Dátum: 2012. május 29. - 15:47:47 »
0 Show voters
Az imént amit ki javítottunk nos hát nem jól!
Mivel oda állok a meg adott kordinátára és nem dob be az intibe!
 

public CheckForWalkingTeleport(playerid)
{
        new Float:cx, Float:cy, Float:cz;
        GetPlayerPos(playerid, cx, cy, cz);
        if(PlayerToPointStripped(1, playerid,2435.3452,1172.6711,10.8203, cx,cy,cz))
        {//Bank Be
                GameTextForPlayer(playerid, \"~w~Bank\", 5000, 1);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid,2319.714843,-14.838361,26.749565);
                PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1, playerid,2319.714843,-14.838361,26.749565, cx,cy,cz))
        {//Bank Ki
                GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid,2435.3452,1172.6711,10.8203);
                PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1, playerid,2090.4666,2223.6978,11.0234, cx,cy,cz))
        {//Bolt Be
                GameTextForPlayer(playerid, \"~w~24/7\", 5000, 1);
                SetPlayerInterior(playerid, 6);
                SetPlayerPos(playerid,-26.691598,-55.714897,1003.546875);
                PlayerInfo[playerid][pInt] = 6;
        }
        else if(PlayerToPointStripped(1, playerid,-26.691598,-55.714897,1003.546875, cx,cy,cz))
        {//Bolt Ki
                GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid,2090.4666,2223.6978,11.0234);
                PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1, playerid,2019.1548,1916.4747,12.3414, cx,cy,cz))
        {//Városháza Be
                GameTextForPlayer(playerid, \"~w~Városháza\", 5000, 1);
                SetPlayerInterior(playerid, 18);
                SetPlayerPos(playerid,1710.433715,-1669.379272,20.225049);
                PlayerInfo[playerid][pInt] = 18;
        }
        else if(PlayerToPointStripped(1, playerid,1710.433715,-1669.379272,20.225049, cx,cy,cz))
        {//Városháza Ki
              GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
              SetPlayerInterior(playerid, 0);
              SetPlayerPos(playerid,2019.1548,1916.4747,12.3414);
              PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1, playerid,1966.5010,1623.2279,12.8620, cx,cy,cz))
        {//Hotel Be
                GameTextForPlayer(playerid, \"~w~Hotel\", 5000, 1);
                SetPlayerInterior(playerid, 15);
                SetPlayerPos(playerid,2215.454833,-1147.475585,1025.796875);
                PlayerInfo[playerid][pInt] = 15;
        }
        else if(PlayerToPointStripped(1, playerid,2215.454833,-1147.475585,1025.796875, cx,cy,cz))
        {//Hotel Ki
                GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid,1966.5010,1623.2279,12.8620);
                PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1, playerid,1930.7368,1345.2798,9.9688, cx,cy,cz))
        {//Cassino Be
                GameTextForPlayer(playerid, \"~w~Cassino\", 5000, 1);
                SetPlayerInterior(playerid, 12);
                SetPlayerPos(playerid,1118.8878,-10.2737,1002.0859);
                PlayerInfo[playerid][pInt] = 12;
        }
        else if(PlayerToPointStripped(1, playerid,1118.8878,-10.2737,1002.0859, cx,cy,cz))
        {//Cassino Ki
                GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid,1930.7368,1345.2798,9.9688);
                PlayerInfo[playerid][pInt] = 0;
        }
   }

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
CheckForWalkingTeleport
« Válasz #1 Dátum: 2012. május 29. - 15:59:46 »
0 Show voters
A PlayerToPonitokat írd átt erre:
 

if(PlayerToPoint(8, playerid,KORDINÁTA!))

 
És nem kell cx,cy,cy mert az benne van a sima kornitában .. elég az x,y,z és anyi de nem kell ..
 

new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
« Utoljára szerkesztve: 2012. május 29. - 16:05:07 írta ZyZu »

Nem elérhető scripter01

  • 1035
  • Ex Moderálisan Globális
    • Profil megtekintése
CheckForWalkingTeleport
« Válasz #2 Dátum: 2012. május 29. - 16:59:37 »
0 Show voters
Nem lett jobb így sem :S

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal