Szerző Téma: Dialogos Teleport  (Megtekintve 575 alkalommal)

Dialogos Teleport
« Dátum: 2012. március 01. - 18:24:32 »
0 Show voters
Udv az lene a kerdesem miert nem mukodik ez? :tantrum: :@ :grrr: :noexpression: :hmmm: :sly: :-[
[pawn]#include <a_samp>
#define Tele 1
public OnPlayerCommandText ( playerid, cmdtext[ ] )
{
    if ( strcmp ( cmdtext,\"/tele\", true ) == 0 )
    {
        ShowPlayerDialog ( playerid, Tele,2, \"Szerver teleportjai:\",\"SanFiero\\nLasVenturas\\nLosSantos\\nSFAIR\\nLVAIR\\nLSAIR\\nSFPD\\nLVPD\\nLSPD\\nArea51\\nSivatagi Repter\\nJizzy\\nTengerpart\\nTuning1\\nTuning2\\nTuning3\\nOtto\'s Cars\\nKatonasag\", \"Teleport\", \"Bezár\" );
        return 1;
    }
    return 0;
}
public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] )
   { if(dialogid == Tele)
   {
   if(response)
   {
   if(listitem==0)
   {
   SetPlayerPos(playerid,-1981.810424,137.918487,27.687500);
   }
   if(listitem==1)
   {
   SetPlayerPos(playerid,2037.004394,1527.683593,10.820312);
   }
   if(listitem==2)
   {
   SetPlayerPos(playerid,2482.193359,-1688.578735,13.507812);
   }
   if(listitem==3)
   {
   SetPlayerPos(playerid,-1528.000000,-206.000000,14.148437);
   }
   if(listitem==4)
   {
   SetPlayerPos(playerid,1705.237915,1613.348022,10.153375);
   }
   if(listitem==5)
   {
   SetPlayerPos(playerid,2002.261840,-2421.807861,13.546875);
   }
   if(listitem==6)
   {
   SetPlayerPos(playerid,2281.907226,2428.223144,10.820312);
   }
   if(listitem==7)
   {
   SetPlayerPos(playerid,-1621.380859,681.851989,7.187500);
   }
   if(listitem==8)
   {
   SetPlayerPos(playerid,1545.197387,-1653.060913,13.558780);
   }
   if(listitem==9)
   {
   SetPlayerPos(playerid,207.059539,1921.919433,17.640625);
   }
   if(listitem==10)
   {
   SetPlayerPos(playerid,426.005279,2531.835693,16.604190);
   }
   if(listitem==11)
   {
   SetPlayerPos(playerid,-2231.365966,-1736.897705,480.848297);
   }
   if(listitem==12)
   {
   SetPlayerPos(playerid,-2624.357666,1412.801025,7.093750);
   }
   if(listitem==13)
   {
   SetPlayerPos(playerid,425.095153,-1815.636962,6.664062);
   }
   if(listitem==14)
   {
   SetPlayerPos(playerid,2379.872802,1038.182373,10.820312);
   }
   if(listitem==15)
   {
   SetPlayerPos(playerid,2644.983886,-2027.704101,13.546875);
   }
   if(listitem==16)
   {
   SetPlayerPos(playerid,-2714.336425,197.702850,4.328125);
   }
   if(listitem==17)
   {
   SetPlayerPos(playerid,-1667.816894,1209.025634,7.254645);
   }
   if(listitem==18)
   {
   SetPlayerPos(playerid,-1526.633544,489.181732,7.179687);
   }
   }
   }
   return 0;
}[/pawn]

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Dialogos Teleport
« Válasz #1 Dátum: 2012. március 01. - 19:51:13 »
+1 Show voters
A végére kell egy return 1; is.
 
#include <a_samp>
#define Tele 1
public OnPlayerCommandText ( playerid, cmdtext[ ] )
{
    if(strcmp(cmdtext,\"/tele\", true) == 0)
    {
        ShowPlayerDialog ( playerid, Tele,2, \"Szerver teleportjai:\",\"SanFiero\\nLasVenturas\\nLosSantos\\nSFAIR\\nLVAIR\\nLSAIR\\nSFPD\\nLVPD\\nLSPD\\nArea51\\nSivatagi Repter\\nJizzy\\nTengerpart\\nTuning1\\nTuning2\\nTuning3\\nOtto\'s Cars\\nKatonasag\", \"Teleport\", \"Bezár\" );
        return 1;
    }
    return 0;
}
public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] )
{
    if(dialogid == Tele)
    {
        if(response)
{
    if(listitem==0)
    {
        SetPlayerPos(playerid,-1981.810424,137.918487,27.687500);
    }
    if(listitem==1)
    {
        SetPlayerPos(playerid,2037.004394,1527.683593,10.820312);
    }
    if(listitem==2)
    {
        SetPlayerPos(playerid,2482.193359,-1688.578735,13.507812);
    }
    if(listitem==3)
    {
        SetPlayerPos(playerid,-1528.000000,-206.000000,14.148437);
    }
    if(listitem==4)
    {
SetPlayerPos(playerid,1705.237915,1613.348022,10.153375);
    }
    if(listitem==5)
    {
        SetPlayerPos(playerid,2002.261840,-2421.807861,13.546875);
    }
    if(listitem==6)
    {
        SetPlayerPos(playerid,2281.907226,2428.223144,10.820312);
    }
    if(listitem==7)
    {
        SetPlayerPos(playerid,-1621.380859,681.851989,7.187500);
    }
    if(listitem==8)
    {
        SetPlayerPos(playerid,1545.197387,-1653.060913,13.558780);
    }
    if(listitem==9)
    {
        SetPlayerPos(playerid,207.059539,1921.919433,17.640625);
    }
    if(listitem==10)
    {
        SetPlayerPos(playerid,426.005279,2531.835693,16.604190);
    }
    if(listitem==11)
    {
        SetPlayerPos(playerid,-2231.365966,-1736.897705,480.848297);
    }
    if(listitem==12)
    {
        SetPlayerPos(playerid,-2624.357666,1412.801025,7.093750);
    }
    if(listitem==13)
    {
SetPlayerPos(playerid,425.095153,-1815.636962,6.664062);
    }
    if(listitem==14)
    {
SetPlayerPos(playerid,2379.872802,1038.182373,10.820312);
    }
    if(listitem==15)
    {
        SetPlayerPos(playerid,2644.983886,-2027.704101,13.546875);
    }
    if(listitem==16)
    {
SetPlayerPos(playerid,-2714.336425,197.702850,4.328125);
    }
    if(listitem==17)
    {
SetPlayerPos(playerid,-1667.816894,1209.025634,7.254645);
    }
    if(listitem==18)
    {
SetPlayerPos(playerid,-1526.633544,489.181732,7.179687);
    }
        }
        return 1;
    }
    return 0;
}

Dialogos Teleport
« Válasz #2 Dátum: 2012. március 02. - 12:09:52 »
0 Show voters
Koszi,zarom +ment ;D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal