Szia! Dialog menü nem hiszem hogy lehetséges ! Mert az egy 0.3 Újítása!
Maximum más féle sima menüs teleport... [/quote]http://wiki.sa-mp.com/wiki/AddMenuItem
#include <a_samp>new Menu:Teleport;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Teleport menu FS ChuckNorristol Adamnak\");print(\"--------------------------------------\\n\");Teleport = CreateMenu(\"~b~Teleport Menu\", 1, 50.0, 180.0, 200.0, 200.0);AddMenuItem(Teleport, 0, \"Teleport1\");AddMenuItem(Teleport, 0, \"Teleport2\");AddMenuItem(Teleport, 0, \"Teleport3\");AddMenuItem(Teleport, 0, \"Teleport4\");AddMenuItem(Teleport, 0, \"Teleport5\");return 1;}public OnFilterScriptExit() return print(\" Teleport Menu Unloaded\");public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/teleportmenu\", cmdtext, true, 10) == 0){ShowMenuForPlayer(Teleport,playerid);return TogglePlayerControllable(playerid,false);}return 0;}public OnPlayerSelectedMenuRow(playerid, row){ new Menu:Current = GetPlayerMenu(playerid); if(Current == Teleport) { switch(row){ case 0: SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 1: SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 2: SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 3: SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 4:SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 5:SetPlayerPos(playerid,1353.407,2188.155,11.02344);} return TogglePlayerControllable(playerid,true);}return 1;}public OnPlayerExitedMenu(playerid) return TogglePlayerControllable(playerid,true);
http://wiki.sa-mp.com/wiki/AddMenuItem [/quote]Minek linkelni wikit?Mire megkeresed a linket,fele anyi idő alatt meg lehet írni ezt a könyű szkriptet
#include <a_samp>new Menu:Teleport;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Teleport menu FS ChuckNorristol Adamnak\");print(\"--------------------------------------\\n\");Teleport = CreateMenu(\"~b~Teleport Menu\", 1, 50.0, 180.0, 200.0, 200.0);AddMenuItem(Teleport, 0, \"Teleport1\");AddMenuItem(Teleport, 0, \"Teleport2\");AddMenuItem(Teleport, 0, \"Teleport3\");AddMenuItem(Teleport, 0, \"Teleport4\");AddMenuItem(Teleport, 0, \"Teleport5\");AddMenuItem(Teleport, 0, \"Teleport6\");AddMenuItem(Teleport, 0, \"Teleport7\");AddMenuItem(Teleport, 0, \"Teleport8\");AddMenuItem(Teleport, 0, \"Teleport9\");AddMenuItem(Teleport, 0, \"Teleport10\");AddMenuItem(Teleport, 0, \"Teleport11\");return 1;}public OnFilterScriptExit() return print(\" Teleport Menu Unloaded\");public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/teleportmenu\", cmdtext, true, 10) == 0){ShowMenuForPlayer(Teleport,playerid);return TogglePlayerControllable(playerid,false);}return 0;}public OnPlayerSelectedMenuRow(playerid, row){ new Menu:Current = GetPlayerMenu(playerid); if(Current == Teleport) { switch(row){ case 0: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 1: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 2: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 3: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 4: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 5: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 6: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 7: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 8: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 9: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344); case 10: if(IsPlayerInAnyVehicle(playerid)) return SetVehiclePos(GetPlayerVehicleID(playerid),1353.407,2188.155,11.02344); else return SetPlayerPos(playerid,1353.407,2188.155,11.02344);} return TogglePlayerControllable(playerid,true);}return 1;}public OnPlayerExitedMenu(playerid) return TogglePlayerControllable(playerid,true);
public OnPlayerSelectedMenuRow(playerid, row){ new Menu:Current = GetPlayerMenu(playerid); if(Current == Teleport) { switch(row){ case 0: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),2326.8379,1399.0316,42.8203); else SetPlayerPos(playerid,2326.8379,1399.0316,42.8203); case 1: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),1289.2866,1273.6595,10.8203); else SetPlayerPos(playerid,1289.2866,1273.6595,10.8203); case 2: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),2227.1877,2453.0334,10.8906); else SetPlayerPos(playerid,2227.1877,2453.0334,10.8906); case 3: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),-660.1227,2325.0205,138.6686); else SetPlayerPos(playerid,-660.1227,2325.0205,138.6686); case 4: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),2387.1909,1013.0453,10.5474); else SetPlayerPos(playerid,2387.1909,1013.0453,10.5474); case 5: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),2828.1616,1291.3162,10.7696); else SetPlayerPos(playerid,2828.1616,1291.3162,10.7696); case 6: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),-1917.7473,288.0388,41.0469); else SetPlayerPos(playerid,-1917.7473,288.0388,41.0469); case 7: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),-1681.4441,-186.5604,13.8710); else SetPlayerPos(playerid,-1681.4441,-186.5604,13.8710); case 8: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),-2695.7969,217.8229,4.1797); else SetPlayerPos(playerid,-2695.7969,217.8229,4.1797); case 9: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),418.0805,2503.8511,16.4844); else SetPlayerPos(playerid,418.0805,2503.8511,16.4844); case 10: if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),286.0735,1928.6907,17.6406); else SetPlayerPos(playerid,286.0735,1928.6907,17.6406);} return TogglePlayerControllable(playerid,true);}return 1;}
public OnPlayerExitedMenu(playerid){return 1;}
TogglePlayerControllable(playerid,true);
ez kell neked : public OnPlayerExitedMenu(playerid){return 1;} Ide szúrd be ezt : TogglePlayerControllable(playerid,true);