#define DIALOGID 1000if (strcmp(\"/tele\", cmdtext, true, 10) == 0){ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportmenu\", \"Valami\\nValami2\\nValami3\", \"Kiválasztás\", \"Mégse\");//ha még akarsz akkor mondjuk \\nTeszt\\nTeszt2 return 1;} if(dialogid == DIALOGID){if(response){ if(listitem == 0) // Teleport1 { ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Teleport1\", \"Teszt\\nteszt2\\nteszt3\\nstb........\", \"Kiválasztás\", \"Mégse\"); } if(listitem == 1) // Nfs pályák {return 1;} if(dialogid == DIALOGID+1) //Teleport1{if(response){ if(listitem == 0)//Ls { SetVehiclePos(GetPlayerVehicleID(playerid), 1482.7450,-1615.9506,14.0393); SetPlayerPos(playerid,1482.7450,-1615.9506,14.0393);//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(0x00FFFFAA, string); }}return 1;}
public OnPlayerCommandText(playerid, cmdtext[])
public OnPlayerCommandText(playerid, cmdtext[]){new string[256];new playermoney;new sendername[MAX_PLAYER_NAME];new giveplayer[MAX_PLAYER_NAME];new cmd[256];new giveplayerid, moneys, idx;cmd = strtok(cmdtext, idx);#define CAR_AMOUNT 2000if (strcmp(\"/tele\", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,DIALOGID,DIALOG_STYLE_LIST,\"Teleportok\",\"San Fierro\\nLas Venturas\\nLos Santos\\nSan Fierro Reptér\\n\",\"Teleport!\",\"Mégse\"); return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == DIALOGID && response) { switch(listitem) { case 0: { SetPlayerPos(playerid,-1979.1636,258.5023,35.1719);// 0. teleport helye } case 1: { SetPlayerPos(playerid,2320.2126,1391.0054,42.8203);// 1. teleport helye } case 2: { SetPlayerPos(playerid,2779.6001,-2010.3522,13.5547); // 2. teleport helye } case 3: { SetPlayerPos(playerid,-1357.8843,-231.6015,14.1440); // 3. teleport helye } } } return 1;}