/** ---Teleport Script---* by: Edy (Zalakaka45)*/ #include <a_samp>public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Teleport Script[v2] by Edy\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/beach\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,331.8158,-1798.9175,4.6930);return 1;}if (strcmp(\"/tune1\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,2644.5596,-2016.4270,13.5540);return 1;}if (strcmp(\"/ls\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,2493.4578,-1667.7173,13.3438);return 1;}if (strcmp(\"/ls-air\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,1959.6447,-2282.0381,13.5469);return 1;} if (strcmp(\"/lv\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,2020.8652,1342.6591,10.8130);return 1;} if (strcmp(\"/lv-air\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,1320.8384,1277.9744,10.8594);return 1;}if (strcmp(\"/tune2\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,2392.5474,1021.2135,10.8203);return 1;}if (strcmp(\"/area51\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,208.4116,1907.2195,17.6406);return 1;}if (strcmp(\"/aa\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,432.9557,2502.4414,16.4922);return 1;}if (strcmp(\"/tune3\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,-1928.2428,228.4691,34.2788);return 1;}if (strcmp(\"/sf\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,-2027.2384,178.1375,28.8359);return 1;}if (strcmp(\"/tune4\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,-2702.1089,218.7926,4.1797);return 1;}if (strcmp(\"/sf-air\", cmdtext, true, 10) == 0)//{SetPlayerPos(playerid,-1500.5565,-201.9445,14.1484);return 1;}return 0;}
/** ---Teleport Script---* by: Edy (Zalakaka45)*/#include <a_samp>#define Teleportok 0public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Teleport Script[v2] by Edy\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/teleportok\", cmdtext, true, 10) == 0){ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST,\"Teleportok\",\"Beach\\nTune1\\nLS\\nLS-Air\\nLV\\nLV-Air\\nTune2\\nArea51\\nAA\\nTune3\\nSF\\nTune4\\nSF-Air\",\"Teleportálás\",\"Kilépés\");return 1;}return 1;}public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] ){if( dialogid == 0){if( listitem == 0){ SetPlayerPos(playerid,331.8158,-1798.9175,4.6930); return 1;}if( listitem == 1){ SetPlayerPos(playerid,2644.5596,-2016.4270,13.5540); return 1;} if( listitem == 2){ SetPlayerPos(playerid,2493.4578,-1667.7173,13.3438); return 1;}if( listitem == 3){ SetPlayerPos(playerid,1959.6447,-2282.0381,13.5469); return 1;} if( listitem == 4){ SetPlayerPos(playerid,2020.8652,1342.6591,10.8130); return 1;}if( listitem == 5){ SetPlayerPos(playerid,1320.8384,1277.9744,10.8594); return 1;}if( listitem == 6){ SetPlayerPos(playerid,2392.5474,1021.2135,10.8203); return 1;}if( listitem == 7){ SetPlayerPos(playerid,208.4116,1907.2195,17.6406); return 1;}if( listitem == { SetPlayerPos(playerid,432.9557,2502.4414,16.4922); return 1;}if( listitem == 9){ SetPlayerPos(playerid,-1928.2428,228.4691,34.2788); return 1;}if( listitem == 10){ SetPlayerPos(playerid,-2027.2384,178.1375,28.8359); return 1;}if( listitem == 11){ SetPlayerPos(playerid,-2702.1089,218.7926,4.1797); return 1;}if( listitem == 12){ SetPlayerPos(playerid,-1500.5565,-201.9445,14.1484); return 1;}return 1;}return 0;}
#include <zcmd> // Ez az Include kell hozzá ha kel elküldöm.CMD:vecsés(playerid, params[]) { // Vecsés helyére ird a parancsot PL /lv if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z); // X,Y,Z Helyére a koordinátát!SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Vecsésre xD\"); // COLO_GREEN helyére ird azt a színt amit akarsz. SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,X,Y,Z); // X,Y,Z Helyére a koordinátát! SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Vecsésre xD\"); // COLO_GREEN helyére ird azt SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,X,Y,Z); // X,Y,Z Helyére a koordinátát! SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Vecsésre xD\"); // COLO_GREEN helyére ird azt SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }
////////////////////////////////Teleportok//////////////////////////////////////CMD:lv(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),2326.9124,1395.6553,42.8203);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\"); SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,2326.9124,1395.6553,42.8203); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,2326.9124,1395.6553,42.8203); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:ls(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),2304.1643,-1642.7743,14.5374); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:sf(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),-1988.2336,178.8083,27.5391); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:lvair(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),1315.9454,1303.0953,10.8203); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,1315.9454,1303.0953,10.8203); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:lsair(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),1914.9293,-2251.8259,13.5469); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:sfair(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),-1553.7771,-240.2939,14.1484); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:pa(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),2408.2493,90.8666,26.4740); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,2408.2493,90.8666,26.4740); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,2408.2493,90.8666,26.4740); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:fc(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),-197.1303,1212.2777,19.7422);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,-197.1303,1212.2777,19.7422); SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:bb(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),214.1872,-146.6117,1.5859);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");SetPlayerPos(playerid,214.1872,-146.6117,1.5859); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,214.1872,-146.6117,1.5859);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1; }CMD:kezdohely(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),-342.9536,1514.7717,75.3594);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1;}CMD:dokk(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) == 1) { SetPlayerInterior(playerid, 0); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid),2608.9287,-2186.2026,13.2740);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Dokkok-hoz\");SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0); } else { RemovePlayerFromVehicle(playerid); SetPlayerPos(playerid,2592.6631,-2208.0359,17.3572);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Dokkok-hoz\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); } } else { SetPlayerPos(playerid,2592.6631,-2208.0359,17.3572);SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Dokkok-hoz\"); SetPlayerFacingAngle(playerid, 50.8647); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 0); } return 1;}