Jump to content
  • 0

Teleport fara comanda.


Question

Posted

Salutari tuturor. Am si eu o nelamurire. Cum pot face un teleport fara comanda?

As vrea ca de aici

285.9558,-30.1434,1001.5156,355.6969

sa ma dea aici:

285.6994,-28.8683,1001.5156,347.8868

Iar de aici

286.0985,-25.0336,1001.5156,355.0935

Sa ma dea aici

286.4063,-23.6110,1001.5229,7.7720

6 answers to this question

Recommended Posts

Posted

mda, nu stiu daca are rost sa te mai chinui cu teleportul, deoarece cred ca stiu unde te teleporteaza, si am vrut si eu sa fac unul la fel, dar am aflat un bug...teleportul parca este intr-un bar, si vrei sa te teleportezi dincolo de o usa, intr-o camera, daca te teleportezi dincolo, pe podeaua poti sa stai, dar daca te atingi de peretele din stanga o sa cazi in gol (poate poti sa treci prin toti peretii, aia nu mai stiu), deci cred ca nu mai are rost teleportul din moment ce cazi in gol...

BannerZdupp.png

Posted

mda, nu stiu daca are rost sa te mai chinui cu teleportul, deoarece cred ca stiu unde te teleporteaza, si am vrut si eu sa fac unul la fel, dar am aflat un bug...teleportul parca este intr-un bar, si vrei sa te teleportezi dincolo de o usa, intr-o camera, daca te teleportezi dincolo, pe podeaua poti sa stai, dar daca te atingi de peretele din stanga o sa cazi in gol (poate poti sa treci prin toti peretii, aia nu mai stiu), deci cred ca nu mai are rost teleportul din moment ce cazi in gol...

Defapt este vorba despre GunShop.

As vrea ca din acest punct

285.9558,-30.1434,1001.5156,355.6969
sa ajung aici
285.6994,-28.8683,1001.5156,347.8868
Iar de aici
286.0985,-25.0336,1001.5156,355.0935
Sa ma dea aici
286.4063,-23.6110,1001.5229,7.7720

Posted

Cauta daca ai in mod CheckForWalkingTeleport(playerid)  si daca gasesti asta pui sub acel public asta:

[pawn]    else if (PlayerToPointStripped(2.0, playerid,285.9558,-30.1434,1001.5156,355.6969 , cx,cy,cz))// aici pui coordonatele unde vrei sa fie intrarea,  adica : 285.9558,-30.1434,1001.5156,355.6969

{

    //INTRARE

SetPlayerPos(playerid,285.6994,-28.8683,1001.5156,347.8868 );// iar aici coordonatele unde vrei sa te teleporteze, adica : 285.6994,-28.8683,1001.5156,347.8868

GameTextForPlayer(playerid, "~w~Exemplu 1 Intrare", 5000, 3);

}

else if (PlayerToPointStripped(2.0, playerid,285.6994,-28.8683,1001.5156,347.8868 , cx,cy,cz))// aici pui coordonatele unde ai vrut sa fie player-ul teleportat , adica cele de la SetPlayerPos : 285.6994,-28.8683,1001.5156,347.8868

{

//IESIRE

SetPlayerPos(playerid, 1776.0689697266,-1571.2266845703,1744.9672851563);// Iar aici coordonatele  de la intrare, adica cele de la PlayerToPointStripped : 285.9558,-30.1434,1001.5156,355.6969

GameTextForPlayer(playerid, "~r~EXEMPLU 1 IESIRE",5000,3);

}[/pawn]

Ti-am facut un exemplu pe al 2-lea il faci tu

Posted

[pawn] else if (PlayerToPointStripped(1, playerid,285.9558,-30.1434,1001.5156,355.6969, cx,cy,cz))

{

//Gun Shop

SetPlayerPos(playerid, 285.6994,-28.8683,1001.5156,347.8868);

GameTextForPlayer(playerid, "~w~City Hall",5000,1);

SetPlayerInterior(playerid,3);

SetPlayerFacingAngle(playerid, 0);

PlayerInfo[playerid][pInt] = 3;

}

else if (PlayerToPointStripped(1, playerid,286.0985,-25.0336,1001.5156,355.0935, cx,cy,cz))

{

//Gun Shop

SetPlayerPos(playerid, 286.4063,-23.6110,1001.5229,7.7720);

GameTextForPlayer(playerid, "~w~Los Santos",5000,1);

SetPlayerInterior(playerid,0);

SetPlayerFacingAngle(playerid, 0);

PlayerInfo[playerid][pInt] = 0;

}

[/pawn]

//-------------------------------------------

te duci la AddStaticPickup ,si bagi asta .si in loc de coordonata aia bagii care vrei

AddStaticPickup(1318, 2, 1481.0842,-1772.3140,18.7958); //Gun shop afara

AddStaticPickup(1318, 2, 1481.0842,-1772.3140,18.7958); //Gun Shop

Astea leam zis la vrajeala

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.