public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/teles\", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportmenu\", \"Stuntok\\nParkour\\nDriftek\\nFunok\\nDm-ek\", \"Kiválasztás\", \"Mégse\"); } return 0;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == DIALOGID) { if(response) { if(listitem == 0) // Teleport1 { ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Stuntok\", \"LS-Airport\\nSivatag\\nLv-Airport\", \"Kiválasztás\", \"Mégse\"); } if(listitem == 1) // Parkour pályák { ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Parkourok\", \"Monsterparkour\\nNrgparkour\\nNrgparkour2\", \"Kiválasztás\", \"Mégse\"); } if(listitem == 2)// Drift pályák { ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDriftsuli1\\nDrag\", \"Kiválasztás\", \"Mégse\"); } if(listitem == 3)// Fun pályák { ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Funok\", \"Villamos\\nSECTION\\nBigjump1\\nChilliad\", \"Kiválasztás\", \"Mégse\"); } if(listitem == 4)// DM pályák { ShowPlayerDialog(playerid, DIALOGID+5, DIALOG_STYLE_LIST, \"DM\", \"DM1\\nDM2\\nDM3\\nDM4\", \"Kiválasztás\", \"Mégse\"); } } return 1; } if(dialogid == DIALOGID+1) //Stuntok { if(response) { if(listitem == 0) { SetPlayerPos(playerid,2100.3843,-2607.9788,13.5469);//gyalog ide fogja teleportálni SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Los Santosi Airporton!\");//amikor elteleportél ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a LS-i Reptérre(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 1) { SetPlayerPos(playerid,379.9749,2496.0762,16.4844);//gyalog ide fogja teleportálni SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Sivatagban!\");//amikor elteleportél ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a Sivatagba(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 2) { SetPlayerPos(playerid,1530.6293,1370.3448,10.8703);//gyalog ide fogja teleportálni SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Las Venturas reptéren!\");//amikor elteleportél ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a LV-i reptérre(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } } return 1; if(dialogid == DIALOGID+2) // parkour { if(response) { if(listitem == 0)// { SetPlayerPos(playerid,491.0144,-1871.2750,3.6965);//ide csak leírtam egy kordinátát azt neked kell kicserélni majd ide fog telézni az ember SendClientMessage(playerid, COLOR_BLUE, \"Üdv a MonsterParkour-on\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a MonsterParkour-ra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 1)// { SetPlayerPos(playerid,2704.9949,-1431.7947,54.8802); SendClientMessage(playerid, COLOR_BLUE, \"Üdv az NRG Parkour-on\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált az NRG-Parkourra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 2)// { SetPlayerPos(playerid,2603.1882324219, 1510.1703,-2495.1458,13.5547); SendClientMessage(playerid, COLOR_BLUE, \"Üdv az NRG Parkour2-õn\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált az NRG-Parkour2-re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } } return 1; } if(dialogid == DIALOGID+3) // driftek { if(response) { if(listitem == 0) { SetVehiclePos(GetPlayerVehicleID(playerid),-300.9857,1531.6140,75.3594);//ez kocsival SetPlayerPos(playerid, -300.9857,1531.6140,75.3594);//ez gyalog SendClientMessage(playerid, COLOR_BLUE, \"Üdv Drift1 -en!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált Drift1 -re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 1) { SetVehiclePos(GetPlayerVehicleID(playerid),1263.8298,-2036.0483,59.3105);//kocsival SetPlayerPos(playerid, 1263.8298,-2036.0483,59.3105);//gyalog SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Drift2 -n!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a Drift2 -re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 2) { SetVehiclePos(GetPlayerVehicleID(playerid),-1304.3220,32.0584,14.1484);//kocsival SetPlayerPos(playerid, -1304.3220,32.0584,14.1484);//gyalog SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Driftsuli -n!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a Driftsuli -ra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 3) { SetVehiclePos(GetPlayerVehicleID(playerid),-1304.3220,32.0584,14.1484);//kocsival SetPlayerPos(playerid, -1304.3220,32.0584,14.1484);//gyalog SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Drag -on!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a Drag -ra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } } return 1;} if(dialogid == DIALOGID+4) // funok { if(response) { if(listitem == 0)// { SetPlayerPos(playerid,-1956.9685,136.4987,27.6940); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Villamosoknál!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elment villamosozni! xD(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 1)// { SetPlayerPos(playerid,1511.2690,2518.0115,405.0062); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a SECTION -on!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a SECTION -ra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 2)// { SetPlayerPos(playerid,1483.4749,507.5159,748.6556); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Bigjump1 -en!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a Bigjump1 -re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 3)// { SetPlayerPos(playerid,-2245.7100,-1725.3068,480.2827); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a Chilliad -on!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a Chilliad -ra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } } return 1; } if(dialogid == DIALOGID+5) // DM-ek { if(response) { if(listitem == 0)// { SetPlayerPos(playerid,2430.3062,-1888.6216,24.4694); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a DM1 -en!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elment a DM1 -re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 1)// { SetPlayerPos(playerid,71.9465,-234.0397,1.5781); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a DM2 -n!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a DM2 -re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 2)// { SetPlayerPos(playerid,-1298.6606,2516.8135,87.1702); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a DM3 -on!\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a DM3 -ra(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } if(listitem == 3)// { SetPlayerPos(playerid,-853.1971,2754.4963,45.8516); SendClientMessage(playerid, COLOR_BLUE, \"Üdv a DM4 -en\");//amikor elteleportál ide ezt fogja kiirni neki new string [ 128 ], pName [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, pName, sizeof ( pName ) ); format ( string, sizeof ( string ), \"%s elteleportált a DM4 -re(/teles)\", pName ); SendClientMessageToAll ( 0x9ACD32FF, string ); } } return 1; } return 0;}}