a legújabb streamer van
#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\", \"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);
}
}
}
return 0;
}