sziasztok! még mindig teleport dolgokkal vagyok elfoglalva már a [TÖRÖLVE] ki van most innen töltöttem le egy menüt minden jó hibátlan mikor beírom /tele behozza \"telport1 vegyes\" de mikor belelépnék valamelyikbe kilép a menübõl mi az oka?
[pawn]#include <a_samp>
#define FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x00FFFFAA
#define DIALOGID 1000
public OnPlayerCommandText(playerid,cmdtext[])
{
if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportmenu\", \"Teleport1\\nVegyes\", \"Kiválasztás\", \"Mégse\");//ha még akarsz akkor mondjuk \\ndm után \\nDrift
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
if(listitem == 0) // Teleport1
{
ShowPlayerDialog(playerid, DIALOGID+0, DIALOG_STYLE_LIST, \"Teleport1\", \"Los Santos LS\\nLas Venturas LV\\nSan fierro SF\\nLos Santos_AirPort\\nLas Venturas_Airport\\nSan Fierro AirPort\\nAbandoned Airport\\nchililand\\nAREA51\\nJizzy\", \"Kiválasztás\", \"Mégse\");
}
if(listitem == 1) // Vegyes
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Vegyes\", \"SK Race\\nBumpyRide\\nJump\\nJump2\", \"Kiválasztás\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+0) //Teleport1
{
if(response)
{
if(listitem == 0)//Ls
{ SetVehiclePos(GetPlayerVehicleID(playerid), 1254.5507,-1132.6937,23.8281);//kocsival
SetPlayerPos(playerid,1254.5507,-1132.6937,23.8281);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Los Santos-ba! (/tele-LS)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 1)//lv
{ SetVehiclePos(GetPlayerVehicleID(playerid), 1956.5679,1343.0240,15.3746);
SetPlayerPos(playerid,1956.5679,1343.0240,15.3746);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Las Venturas-ba! (/tele-LV)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 2)//sf
{ SetVehiclePos(GetPlayerVehicleID(playerid), -1806.1584,907.8569,24.8906);
SetPlayerPos(playerid,-1806.1584,907.8569,24.8906);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált San Fierro-ba! (/tele-SF)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 3)//ls air
{ SetVehiclePos(GetPlayerVehicleID(playerid), 2005.9418,-2632.3440,13.5469);
SetPlayerPos(playerid,2005.9418,-2632.3440,13.5469);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Ls_AirPort-ra! (/tele-Teleport1)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 4)//Lv air
{ SetVehiclePos(GetPlayerVehicleID(playerid), 1317.2736,1283.0299,10.8203);
SetPlayerPos(playerid,1317.2736,1283.0299,10.8203);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Las Venturas_AirPort-ra! (/tele-Teleport1)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 5)//sf Air
{ SetVehiclePos(GetPlayerVehicleID(playerid), -1567.6731,-179.2296,14.1484);
SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált San Fierro Airport-ra! (/tele-Teleport1)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 6)//Abandoned Airport
{ SetVehiclePos(GetPlayerVehicleID(playerid), 372.7429,2471.6360,16.4844);
SetPlayerPos(playerid,372.7429,2471.6360,16.4844);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Abandoned Airport-ra! (/tele-Teleport1)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 7)//Chililand
{ SetVehiclePos(GetPlayerVehicleID(playerid), -2237.5947,-1711.1184,480.8754);
SetPlayerPos(playerid,-2237.5947,-1711.1184,480.8754);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Chililand-ra! (/tele-Teleport1)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem ==
//AREA51
{ SetVehiclePos(GetPlayerVehicleID(playerid), 129.2989,1925.2014,19.176);
SetPlayerPos(playerid,129.2989,1925.2014,19.176);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált AREA51-re (/area51)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 9)//Jizzy
{ SetVehiclePos(GetPlayerVehicleID(playerid), -2607.7407,1398.0295,7.1246);
SetPlayerPos(playerid,-2607.7407,1398.0295,7.1246);//gyalog ide fogja teleportálni
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Jizzy-hez (/jizzy)! (/tele-Teleport1)\", string);
SendClientMessageToAll(0x008000AA, string);
}
}
return 1;
}
if(dialogid == DIALOGID+1) //vegyes
{
if(response)
{
if(listitem == 0)//sk race
{
SetVehiclePos(GetPlayerVehicleID(playerid), 2195.1479,1161.5614,1181.4373);
SetPlayerPos(playerid, 2195.1479,1161.5614,1181.4373);//ide csak leírtam egy kordinátát azt neked kell kicserélni majd ide fog telézni az ember
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált SK Race-re (/skrace)\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 1)//BumpyRide
{
SetVehiclePos(GetPlayerVehicleID(playerid), 948.889771, 1121.829224, 1266.800659);
SetPlayerPos(playerid, 948.889771, 1121.829224, 1266.800659);//
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált BumpyRide-ra (/bumpyride\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 2)//Jump
{
SetVehiclePos(GetPlayerVehicleID(playerid), 750.874,532.736,462.400);
SetPlayerPos(playerid, 750.874,532.736,462.400);//
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Jump-ra (/jump)!\", string);
SendClientMessageToAll(0x008000AA, string);
}
if(listitem == 3)//Jump2
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1667.2266,-1425.7272,373.4667);
SetPlayerPos(playerid, 1667.2266,-1425.7272,373.4667);//
new string[128];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), \"%s Elteleportált Jump2-re (/jump)!\", string);
SendClientMessageToAll(0x008000AA, string);
}
}
return 1;
}
return 0;
}[/pawn]
[mod=Dream1990]Kulturáltabban![/mod]