if (strcmp(\"/sawndm\", cmdtext, true) == 0){dmid[playerid] = 0; SpawnPlayer(playerid); SendClientMessage(playerid,COLOR_ULTRARED,\"Csatlakoztál a Sawn DM Zónához! [ Kilépés /exitdm ]\");GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"%s Belépett a Sawn DM zónába! [ Belépés: /sawndm ]\", sendername); SendClientMessageToAll( 0xDDDD2357, string);return 1;}
if(dmid[playerid] == 0)
if (strcmp(\"/tele\", cmdtext, true, 5) == 0){ShowPlayerDialog(playerid,DIALOG_TELEPORT,DIALOG_STYLE_LIST,\"Teleportok\",\"Általános\\nStunt\\nDrift\\nDM\",\"Tovább\",\"Mégse\");return 1;}
if(dialogid == DIALOG_TELEPORT && response) {switch(listitem){ case 0: ShowPlayerDialog(playerid,DIALOG_ALTALANOS,DIALOG_STYLE_LIST,\"Teleportok / Általános\",\"/centrum\\n/ls\\n/sf\\n/lv\\n/lsair\\n/sfair\\n/lvair\",\"Tele\",\"Mégse\"); case 1: ShowPlayerDialog(playerid,DIALOG_STUNT,DIALOG_STYLE_LIST,\"Teleportok / Stunt\",\"/Stunt1\\n/---\\n/---\",\"Tele\",\"Mégse\"); case 2: ShowPlayerDialog(playerid,DIALOG_DRIFT,DIALOG_STYLE_LIST,\"Teleportok / Drift\",\"/drift1\\n/---\\n/---\",\"Tele\",\"Mégse\"); case 3: ShowPlayerDialog(playerid,DIALOG_DM,DIALOG_STYLE_LIST,\"Teleportok / DM\",\"/sawndm\\n/---\\n/---\",\"Tele\",\"Mégse\");} } if(dialogid == DIALOG_ALTALANOS && response) {switch(listitem){ case 0: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál a központra\"); SetPlayerPos(playerid,1480.8386,-1749.2299,15.4453); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 1: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál Los Santosba\"); SetPlayerPos(playerid,2782.1499,-2018.9701,13.5547); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 2: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál San Fierroba\"); SetPlayerPos(playerid,-1917.4771,287.2513,41.0469); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 3: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál Las Venturasba\"); SetPlayerPos(playerid,2085.9563,1337.6221,10.6204); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 4: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál a Los Santosi Airportra\"); SetPlayerPos(playerid,2111.9739,-2430.2219,13.1099); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 5: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál a San Fierro(i) Airportra\"); SetPlayerPos(playerid,-1234.6194,43.4471,14.1356); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 6: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál a Las Venturas(i) Airportra\"); SetPlayerPos(playerid,1412.2557,1748.7574,10.8203); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); }} } if(dialogid == DIALOG_STUNT && response) {switch(listitem){ case 0: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál Stunt1re\"); SetPlayerPos(playerid,1558.3611,-1354.5264,329.4609); PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 1: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 2: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); }} } if(dialogid == DIALOG_DRIFT && response) {switch(listitem){ case 0: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 1: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 2: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); }} } if(dialogid == DIALOG_DM && response) {switch(listitem){ case 0: { dmid[playerid] = 0; // Azonosítószám megadása FONTOS SpawnPlayer(playerid); // Játékos lespawnolása SendClientMessage(playerid,COLOR_ULTRARED,\"Csatlakoztál a Sawn DM Zónához! [ Kilépés /exitdm ]\"); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"%s Belépett a Sawn DM zónába! [ Belépés: /sawndm ]\", sendername); SendClientMessageToAll( 0xDDDD2357, string); } case 1: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); } case 2: { SendClientMessage(playerid,COLOR_YELLOW,\"Elteleportáltál \"); SetPlayerPos(playerid,958.3783,1343.1572,15.3746); // átírni PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0); }} }
if(strcmp(\"/tele\", cmdtext, true, 5) == 0){if(dmid[playerid] == 1) // Ha nem vagy DM-ben akkor mûködik a /tele parancs{ShowPlayerDialog(playerid,DIALOG_TELEPORT,DIALOG_STYLE_LIST,\"Teleportok\",\"Általános\\nStunt\\nDrift\\nDM\",\"Tovább\",\"Mégse\");} else { // Ha DM ben vagy akkor nemSendClientMessage(playerid, -1, \"DM ben nem mûködik!\");}return 1;}