Szerző Téma: Teleport  (Megtekintve 1107 alkalommal)

Nem elérhető TwisT3R

  • 576
  • Küklopsz
  • Discord: TwisT3R#7833
    • Profil megtekintése
    • Firing Squad Clan
Teleport
« Dátum: 2012. február 10. - 12:53:30 »
0 Show voters
Üdv!
Az lenne a kérdésem, hogy tudnám megcsinálni, hogy amikor teleportálok akkor a jármûvel együtt teleportáljak amiben ülök!
Köszönöm.
]Tw1$t99[

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Teleport
« Válasz #1 Dátum: 2012. február 10. - 12:58:56 »
0 Show voters
CMD:caligula(playerid, params[])
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    SetVehiclePos(tmpcar, 2186.6492,1681.2726,11.1010);
    LinkVehicleToInterior(tmpcar, 0);
    SetPlayerVirtualWorld(playerid, 0);
    }
    else
    {
    SetPlayerPos(playerid, 2186.6492,1681.2726,11.1010);
    }
    SendClientMessage(playerid, COLOR_YELLOW, \"Sikeresen elteleportáltál.!\");
    return 1;
    }

 
Tessék twitike :D XD A caligula helyére bármit írhatsz meg a kordináta helyére is!
« Utoljára szerkesztve: 2012. február 10. - 13:01:16 írta Gabor.. »

Teleport
« Válasz #2 Dátum: 2012. február 10. - 12:59:46 »
0 Show voters
[pawn]if(IsPlayerInAnyVehicle(playerid))//ha jármûben van,elteleportáljuk az autót
{
SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
}[/pawn]

Teleport
« Válasz #3 Dátum: 2012. február 10. - 19:24:18 »
0 Show voters
x,y,z helyére a teleport kordinátát másold majd
[pawn]CMD:teleport(playerid)
   {
 
   new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
   SetPlayerInterior(playerid, 0);
   {if(State!=PLAYER_STATE_DRIVER)
   {SetPlayerPos(playerid,x,y,z);}
   else if(IsPlayerInVehicle(playerid, cartype) == 1)
   {SetVehiclePos(cartype,x,y,z);
   SetVehicleZAngle(cartype,266.6323);}
   else
   {SetPlayerPos(playerid,x,y,z);}
   SendClientMessage(playerid, 0x21DD00FF,\"Sikeres Teleportálás!\");}
   return 1;}[/pawn]

Nem elérhető TwisT3R

  • 576
  • Küklopsz
  • Discord: TwisT3R#7833
    • Profil megtekintése
    • Firing Squad Clan
Teleport
« Válasz #4 Dátum: 2012. február 11. - 09:44:51 »
0 Show voters
hát ez nekem magas :D

Teleport
« Válasz #5 Dátum: 2012. február 11. - 09:53:51 »
0 Show voters
:) Sebaj..
nah ott van a teleport szal akkor az x,y,z helyett beirod a te Teleport Kódodat..

Fighter

  • Vendég
Teleport
« Válasz #6 Dátum: 2012. február 11. - 09:55:57 »
0 Show voters
Én igy tudom hogy a jármût is teleportáljon.
 
CMD:tele(playerid,params[])
{
        if(IsPlayerInAnyVehicle(playerid))
        {
        SetVehiclePos(GetPlayerVehicleID(playerid),2186.6492,1681.2726,11.1010);
        }
        else
        SetPlayerPos(playerid,2186.6492,1681.2726,11.1010);
        return 1;
}

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Teleport
« Válasz #7 Dátum: 2012. február 11. - 10:08:16 »
0 Show voters
Jah csak írd át kordinátákat , aztán tanulmányozd twitike :D

Nem elérhető TwisT3R

  • 576
  • Küklopsz
  • Discord: TwisT3R#7833
    • Profil megtekintése
    • Firing Squad Clan
Teleport
« Válasz #8 Dátum: 2012. február 11. - 14:37:41 »
0 Show voters
jelenleg lusta vok kb 25 telét átírni... :laugh:
deam már megértettem :D

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
Teleport
« Válasz #9 Dátum: 2012. február 11. - 15:38:45 »
0 Show voters
[mod]Ha megértetted, akkor zárom.[/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal