Notes
Notes - notes.io |
timerCalc = 0
players={}
toDespawn={}
a=""
-- Speed, Fly and Presets
function eventNewPlayer(noun)
tfm.exec.setUIMapName("<J>Selam! <G>- @0 | <N>'Selam' <G>| <N>Tatlıses: <VP>Missdilan#3234 ")
ui.addTextArea(101,"<VP>Hızlanmak için [SHIFT] basın.<br><VP>Uçmak için [SPACE] basın.",nil,640,360,200,40,0x000000,0x000000,0.9,true)
ui.addTextArea(1,"<a href='event:rules'><j><p align='center'>Yardım",nil,3,28,85,20,0x31454F,0x858585,1,true)
ui.addTextArea(2,"<a href='event:crew'><j><p align='center'>Kadro",nil,97,28,85,20,0x31454F,0x858585,1,true)
for _,k in pairs({16,32}) do
tfm.exec.bindKeyboard(noun, k, true, true)
end
players[noun]={
timestamp=os.time()}
end
for n in pairs(tfm.get.room.playerList) do
system.bindMouse(n,true)
eventNewPlayer(n)
end
function eventKeyboard(noun, key, eglmemi, x, y)
if key==32 then
tfm.exec.movePlayer(noun,0,0,true,0,-50,false)
end
if key == 16 then
if players[noun].timestamp < os.time()-1000 then
local player = tfm.get.room.playerList[noun]
if player.isFacingRight then
tfm.exec.movePlayer(noun, 0, 0, false, 100, 0, false)
tfm.exec.displayParticle(26,x,y-3,0,0,0,0)
else
tfm.exec.displayParticle(26,x,y-3,0,0,0,0)
tfm.exec.movePlayer(noun, 0, 0, false, -100, 0, false)
end
players[noun].timestamp=os.time()
table.insert(toDespawn,{os.time(),id})
end
end
end
function eventMouse(n, x, y)
tfm.exec.movePlayer(n, x, y, false, 0, 1, false)
end
-- Kill (Admin Required) and Kiss
system.disableChatCommandDisplay("kill",true)
system.disableChatCommandDisplay("kiss",true)
admins = { ["Missdilan#3234"] = true, ["Nick#0000"] = true}
function eventChatCommand(noun,c)
local args={}
for arg in c:gmatch("%S+") do
table.insert(args,arg)
end
if admins[noun] then
if args[1]=="kill" and args[2] then
tfm.exec.killPlayer(args[2])
print(noun.." killed "..args[2]..".")
end
end
if args[1]=="kiss" and args[2] then
if args[2]==noun then
else
timer=5
for i=1,100 do
tfm.exec.displayParticle(5,math.random(400-300*4,400+300*4),math.random(200-200*2,200+200*2),0,0,0,0,args[2])
ui.addTextArea(802,"<font face='soopafresh' size='25'><p align='center'>Öptünüz "..args[2].." .</p></font>",noun,0,100,800,400,0x000000,0x000000,0,true)
ui.addTextArea(803,"<font face='soopafresh' size='25'><p align='center'>"..noun.."<br>tarafından öpüldünüz.</p></font>",args[2],0,100,800,400,0x000000,0x000000,0,true)
end
end
end
end
function eventLoop (timeC, timeR)
tfm.exec.setNameColor("Missdilan#3234", 0x00FFF9)
tfm.exec.setNameColor("Nick#0000", 0xFFB900)
tfm.exec.setNameColor("Nick#0000", 0xF700FF)
if timer == timerCalc then
timer=5
ui.removeTextArea(802,name,name,name,name)
ui.removeTextArea(803,name,name,name,name)
else
timer = timer - 1
end
end
playerss={}
function eventNewPlayer(name)
playerss[name]={size=1, kazanma=0, baba=0}
end
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
--particle and big/small
function eventEmotePlayed(name,emote)
if emote==4 then
if playerss[name].size>= 5 then
playerss[name]={size=5, kazanma=0, baba=0}
else
playerss[name].size=playerss[name].size+0.5
tfm.exec.changePlayerSize (name, playerss[name].size)
end
end
if emote==7 then
if playerss[name].size<= 0 then
playerss[name]={size=0, kazanma=0, baba=0}
else
playerss[name].size=playerss[name].size-0.5
tfm.exec.changePlayerSize (name, playerss[name].size)
end
end
if emote==0 then
tfm.exec.playEmote(name,24)
end
if emote==3 then
for i=1,100 do
tfm.exec.displayParticle(31,math.random(400-300*4,400+300*4),math.random(200-200*2,200+200*2),0,0,0,0,all)
end
end
end
-- Menus
function eventTextAreaCallback(id, name, action)
if action == "rules" then
ui.addTextArea(11,"<font face='soopafresh' size='15'><p align='center'><J>Kurallar</p></font><font face='Verdana' size='12'><br><T>» Yazı yazı yazı yazı yazı .<br>» Hile yapmayın, istisnai olarak kabile lideriniz yani Missdilan#3234 yapabilir.<br>» Adam olun.</font><br><font face='soopafresh' size='15'><p align='center'><J>Komutlar</p></font><font face='Verdana' size='12'><br><T>» !kiss [isim] = Birisini öpmenizi sağlar.<br><T>» !kiss [isim] = Kişiyi öldürür (sadece kabile adminler için)</font>",name,3,57,180,250,0x31454F,0x858585,1,true)
ui.addTextArea(99,"<a href='event:close'><p align='center'><R>[x]</p></a>",name,161,287,22,20,0x31454F,0x858585,0,true)
end
if action == "crew" then
ui.addTextArea(12,"<p align='center'><font face='soopafresh' size='15'><VI>Tatlıses:<br></font><font face='verdana' size='12'><J>Missdilan#3234<br><br></font><font face='soopafresh' size='15'><ROSE>Çiğköfte:</font><font face='verdana' size='12'><br><V>Missdilan#3234<br><V>Missdilan#3234<br><V>Missdilan#3234<br><br></font><font face='soopafresh' size='15'><CH>Marul:<br></font><font face='verdana' size='12'><V>Missdilan#3234<br></p>",name,3,57,180,250,0x31454F,0x858585,1,true)
ui.addTextArea(99,"<a href='event:close'><p align='center'><R>[x]</p></a>",name,161,287,22,20,0x31454F,0x858585,0,true)
end
if action =="close" then
ui.removeTextArea(11,name,name,name,name)
ui.removeTextArea(12,name,name,name,name)
ui.removeTextArea(99,name,name,name,name)
end
end
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team