if tfm.get.room.xmlMapInfo.xml == map6 then
if players[name].win==1 then
if y>=20000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,20300)
players[name].x=150 players[name].y=20300
end
end
if players[name].win==2 then
print("hata nerde")
if y>=40000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,40300)
players[name].x=150 players[name].y=40300
end
end
if players[name].win==3 then
print("hata ananın amında")
if y>=60000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,60300)
players[name].x=150 players[name].y=60300
end
end
if players[name].win==4 then
if y>=80000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,80300)
players[name].x=150 players[name].y=80300
end
end
if players[name].win==5 then
if y>=100000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,100300)
players[name].x=150 players[name].y=100300
end
end
if players[name].win==6 then
if y>=120000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,120300)
players[name].x=150 players[name].y=120300
end
end
if players[name].win==7 then
if y>=140000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,140300)
players[name].x=150 players[name].y=140300
end
end
if players[name].win==8 then
if y>=160000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,160300)
players[name].x=150 players[name].y=160300
end
end
if players[name].win==9 then
if y>=180000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,180300)
players[name].x=150 players[name].y=180300
end
end
if players[name].win==10 then
if y>=200000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,200300)
players[name].x=150 players[name].y=200300
end
end
if players[name].win==11 then
if y>=220000 then
players[name].win=players[name].win+1
tfm.exec.movePlayer(name,150,220300)
players[name].x=150 players[name].y=220300
end
end
if players[name].win==12 then
if y>=22120 then
players[name].win=players[name].win+1
tfm.exec.giveCheese(name)
end
end
end
end
function eventPlayerGetCheese(name)
tfm.exec.playerVictory(name)
end
function eventPlayerWon(name)
players[name].x=nil
players[name].y=nil
players[name].id=nil
players[name].win=1
end