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

Nem elérhető scripter01

  • 1035
  • Ex Moderálisan Globális
    • Profil megtekintése
CheckForWalkingTeleport
« Dátum: 2012. május 29. - 14:48:00 »
0 Show voters
Üdvözletem!
Nos hát szerintem mindenki tudja ez a \"CheckForWalkingTeleport\" fügvény mire is szolgál!
Nos ha nem el mondom arra szolgál hogy egy addot pozról egy másik adot pozra dobjon be! Parancs nélkül!
Nos én neki is álltam ennek szépen!
 
forward CheckForWalkingTeleport(playerid);

 
Jó mentem tovább!
 

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,91.3648, 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
if(GetPlayerVirtualWorld(playerid) == 0)
{
   GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid,2019.1548,1916.4747,12.3414,91.3648);
   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;
}

 
Tudtommal ennyi elég!
Nos amikor szépen meg csináltam be raktam le konvertáltam 26 erorr várt a végén ami nem állt másból mint GiveCash, és egy ilyen kis szaro*
!!!!!
Aki ebben segíteni tudni mi a halálom a baja megy a + és a köszönöm!

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
CheckForWalkingTeleport
« Válasz #1 Dátum: 2012. május 29. - 15:06:14 »
+1 Show voters
Zárási hiba
Tessék:
 
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,91.3648, 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
if(GetPlayerVirtualWorld(playerid) == 0)
{
   GameTextForPlayer(playerid, \"~w~Las Venturas\", 5000, 1);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid,2019.1548,1916.4747,12.3414,91.3648);
   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ő scripter01

  • 1035
  • Ex Moderálisan Globális
    • Profil megtekintése
CheckForWalkingTeleport
« Válasz #2 Dátum: 2012. május 29. - 15:20:26 »
0 Show voters
Nos köszönöm szépen de volt benne így is error vagy te vagy én ,, raktunk egymás mellé :D!
De meg van oldva :D köszönöm szépen megy a +!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal