admin = "NICKNAME" tfm.exec.disableAutoShaman(true) tfm.exec.disableAutoNewGame(true) function eventNewPlayer(playerName) tfm.exec.respawnPlayer(playerName) end function eventPlayerDied(playerName) tfm.exec.respawnPlayer(playerName) end function eventPlayerWon(playerName) tfm.exec.respawnPlayer(playerName) end ui.addTextArea(1,"

Рыбалка : Водопад| Пляж| Джунгли| Небо| Скелет|

",admin,20,-25,765,20,nil,0x324650,0.5,true) function chooseHouse(event) if event=="montagne" then tfm.exec.newGame('

'); tfm.exec.setUIMapName("peche") elseif event=="plage" then tfm.exec.newGame('

') tfm.exec.setUIMapName("peche") elseif event=="jungle" then tfm.exec.newGame('

') tfm.exec.setUIMapName("peche") elseif event=="nuages" then tfm.exec.newGame('

'); tfm.exec.setUIMapName("peche") elseif event=="temple" then tfm.exec.newGame('

'); tfm.exec.setUIMapName("peche") end end function eventTextAreaCallback(id,playerName,event) if playerName==tostring(admin) then chooseHouse(event) end end