Szerző Téma: Teleport help  (Megtekintve 1057 alkalommal)

Teleport help
« Dátum: 2011. december 02. - 15:05:55 »
0 Show voters
Sziastok letöltöttem egy telemenüt átalakítottam és csak adminok használhatják át tudjátok álakítani hogy mindenki tudja használni?
[pawn]
/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n  Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerAdmin(playerid))
{
   if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      return 1;
   }
   if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
      return 2;
   }
   return 1;
}
else
{
    SendClientMessage(playerid,0x33AA33AA, \"You have not logged in as reconned admin, do that before you can use the teleports\");
    return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
   if(response)
   {
            if(listitem == 0) // Általános teleportok
      {
         ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 1) // Driftek
      {
         ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 2) // Stuntok
      {
         ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
            if(listitem == 3) // Egyéb
      {
         ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
   }
   return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
   if(response)
   {
      if(listitem == 0) // SF
      {
         SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
                SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
      }
      if(listitem == 1) // LV
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
                SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
      }
      if(listitem == 2) // Air-lv
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
                SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
      }
      if(listitem == 3) // Air-sf
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
                SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
      }
      if(listitem == 4) // Jizzy
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
                SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
      }
      if(listitem == 5) // Chilliad
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
                SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
      }
      if(listitem == 6) // Tengerpart
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
                SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
      }
      if(listitem == 7) // Sivarag
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
                SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
      }
      if(listitem == 8) // Kezd
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
                SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
      }
      if(listitem == 9) // Getto
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
                SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
      }
      if(listitem == 10) // Vissza
           {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
   if(response)
   {
      if(listitem == 0) // Drift1
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
         SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
      }
      if(listitem == 1) // Drift2
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
         SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
      }
      if(listitem == 2) // Drift3
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
          SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
      }
            if(listitem == 3) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
   if(response)
   {
      if(listitem == 0) // Mcdonald
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
         SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
      }
      if(listitem == 1) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
   if(dialogid == DIALOGID+4) // Egyéb
{
   if(response)
   {
      if(listitem == 0) // Tuningolo
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
                SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
      }
      if(listitem == 1) // Back
      {
               ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
      }
   }
   return 1;
}
return 0;
 }
[/pawn]
[gmod]Témád neve ne csak \"segítség\" legyen.[/gmod]
« Utoljára szerkesztve: 2011. december 02. - 15:09:49 írta ɐʞzssǝlosz »

Teleport help
« Válasz #1 Dátum: 2011. december 02. - 15:07:47 »
0 Show voters
Szia.... Vedd ki belõle ezt a sort és jó lesz
[pawn]if(IsPlayerAdmin(playerid))[/pawn]

Teleport help
« Válasz #2 Dátum: 2011. december 02. - 15:15:30 »
0 Show voters
kivettem ezt írja erroros
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(39) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(42) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(45) : error 054: unmatched closing brace (\"}\")
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(193) : warning 225: unreachable code
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
3 Errors.

Teleport help
« Válasz #3 Dátum: 2011. december 02. - 15:29:37 »
0 Show voters
..
[pawn]/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n  Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext&#91;])
{
   if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      return 1;
   }
   if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
      return 2;
   }
   return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext&#91;])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
   if(response)
   {
            if(listitem == 0) // Általános teleportok
      {
         ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 1) // Driftek
      {
         ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 2) // Stuntok
      {
         ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
            if(listitem == 3) // Egyéb
      {
         ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
   }
   return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
   if(response)
   {
      if(listitem == 0) // SF
      {
         SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
                SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
      }
      if(listitem == 1) // LV
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
                SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
      }
      if(listitem == 2) // Air-lv
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
                SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
      }
      if(listitem == 3) // Air-sf
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
                SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
      }
      if(listitem == 4) // Jizzy
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
                SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
      }
      if(listitem == 5) // Chilliad
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
                SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
      }
      if(listitem == 6) // Tengerpart
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
                SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
      }
      if(listitem == 7) // Sivarag
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
                SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
      }
      if(listitem == 8) // Kezd
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
                SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
      }
      if(listitem == 9) // Getto
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
                SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
      }
      if(listitem == 10) // Vissza
           {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
   if(response)
   {
      if(listitem == 0) // Drift1
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
         SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
      }
      if(listitem == 1) // Drift2
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
         SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
      }
      if(listitem == 2) // Drift3
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
          SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
      }
            if(listitem == 3) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
   if(response)
   {
      if(listitem == 0) // Mcdonald
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
         SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
      }
      if(listitem == 1) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
   if(dialogid == DIALOGID+4) // Egyéb
{
   if(response)
   {
      if(listitem == 0) // Tuningolo
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
                SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
      }
      if(listitem == 1) // Back
      {
               ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
      }
   }
   return 1;
}
return 0;
 }
[/pawn]

Teleport help
« Válasz #4 Dátum: 2011. december 02. - 15:37:14 »
0 Show voters
Szia az elõzõt amit kijavítottál rosszul másoltam ki ezt kittod javítani?
[pawn]
/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n  Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerAdmin(playerid))
{
   if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      return 1;
   }
   if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
      return 2;
   }
   return 1;
}
else
{
    SendClientMessage(playerid,0x33AA33AA, \"You have not logged in as reconned admin, do that before you can use the teleports\");
    return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
   if(response)
   {
            if(listitem == 0) // Általános teleportok
      {
         ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 1) // Driftek
      {
         ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 2) // Stuntok
      {
         ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
            if(listitem == 3) // Egyéb
      {
         ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
   }
   return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
   if(response)
   {
      if(listitem == 0) // SF
      {
         SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
                SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
      }
      if(listitem == 1) // LV
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
                SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
      }
      if(listitem == 2) // Air-lv
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
                SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
      }
      if(listitem == 3) // Air-sf
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
                SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
      }
      if(listitem == 4) // Jizzy
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
                SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
      }
      if(listitem == 5) // Chilliad
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
                SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
      }
      if(listitem == 6) // Tengerpart
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
                SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
      }
      if(listitem == 7) // Sivarag
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
                SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
      }
      if(listitem == 8) // Kezd
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
                SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
      }
      if(listitem == 9) // Getto
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
                SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
      }
      if(listitem == 10) // Vissza
           {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
   if(response)
   {
      if(listitem == 0) // Drift1
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
         SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
      }
      if(listitem == 1) // Drift2
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
         SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
      }
      if(listitem == 2) // Drift3
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
          SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
      }
            if(listitem == 3) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
   if(response)
   {
      if(listitem == 0) // Mcdonald
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
         SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
      }
      if(listitem == 1) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
   if(dialogid == DIALOGID+4) // Egyéb
{
   if(response)
   {
      if(listitem == 0) // Tuningolo
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
                SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
      }
      if(listitem == 1) // Back
      {
               ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
      }
   }
   return 1;
}
return 0;
 }[/pawn]
« Utoljára szerkesztve: 2011. december 02. - 15:40:34 írta Sheet »

Teleport help
« Válasz #5 Dátum: 2011. december 02. - 16:50:35 »
0 Show voters
[pawn]/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n  Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext&#91;])
{
   if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      return 1;
   }
   if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
   {
      ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
      return 2;
   }
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext&#91;])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
   if(response)
   {
            if(listitem == 0) // Általános teleportok
      {
         ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 1) // Driftek
      {
         ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
      }
      if(listitem == 2) // Stuntok
      {
         ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
            if(listitem == 3) // Egyéb
      {
         ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
            }
   }
   return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
   if(response)
   {
      if(listitem == 0) // SF
      {
         SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
                SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
      }
      if(listitem == 1) // LV
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
                SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
      }
      if(listitem == 2) // Air-lv
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
                SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
      }
      if(listitem == 3) // Air-sf
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
                SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
      }
      if(listitem == 4) // Jizzy
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
                SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
      }
      if(listitem == 5) // Chilliad
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
                SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
      }
      if(listitem == 6) // Tengerpart
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
                SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
      }
      if(listitem == 7) // Sivarag
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
                SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
      }
      if(listitem == 8) // Kezd
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
                SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
      }
      if(listitem == 9) // Getto
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
                SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
      }
      if(listitem == 10) // Vissza
           {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
   if(response)
   {
      if(listitem == 0) // Drift1
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
         SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
      }
      if(listitem == 1) // Drift2
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
         SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
      }
      if(listitem == 2) // Drift3
      {
         SetPlayerInterior(playerid, 0);
          SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
          SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
      }
            if(listitem == 3) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
   if(response)
   {
      if(listitem == 0) // Mcdonald
      {
         SetPlayerInterior(playerid, 0);
         SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
         SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
      }
      if(listitem == 1) // Back
      {
                ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
   }
   return 1;
   if(dialogid == DIALOGID+4) // Egyéb
{
   if(response)
   {
      if(listitem == 0) // Tuningolo
      {
         SetPlayerInterior(playerid, 0);
                SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
                SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
      }
      if(listitem == 1) // Back
      {
               ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
      }
      }
   }
   return 1;
}
return 0;
 }[/pawn]

Teleport help
« Válasz #6 Dátum: 2011. december 03. - 17:12:41 »
0 Show voters
Amit írtál 26 erroros ???

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
Teleport help
« Válasz #7 Dátum: 2011. december 03. - 17:15:00 »
0 Show voters
Hibák?

Teleport help
« Válasz #8 Dátum: 2011. december 03. - 17:54:36 »
0 Show voters
[pawn]
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(24) : error 025: function heading differs from prototype
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(24) : error 029: invalid expression, assumed zero
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(26) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(29) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(31) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(34) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(38) : error 025: function heading differs from prototype
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(38) : error 029: invalid expression, assumed zero
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(40) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(42) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(44) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(48) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(52) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(56) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(61) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(64) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(66) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(68) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(74) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(80) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(86) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(92) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(98) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(104) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(110) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(117) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
[/pawn]
26 Errors
« Utoljára szerkesztve: 2011. december 03. - 20:28:19 írta ɐʞzssǝlosz »

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
Teleport help
« Válasz #9 Dátum: 2011. december 05. - 20:19:44 »
0 Show voters
[mod]Másik témában már másikat kérdezel. Valószínûleg megoldva, ha mégsem, nyisd újra. zárom.[/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal