Script Requests |
Shamousey « Consul » 1382224860000
| 0 | ||
Bethdacat a dit : function eventLoop(time,remaining) if time>=20000 and not cheese then for n,p in pairs(tfm.get.room.playerList) do tfm.exec.giveCheese(n) end cheese=true end end function eventNewGame() cheese=nil end |
1 | ||
Oh damn you. I was trying it as well but this is what I got. xD a dit : |
Eliaseeg « Citoyen » 1382226900000
| 0 | ||
I need the latest mouse left , get cheese q_q |
Safwanrockz « Censeur » 1382261460000
| 0 | ||
Eliaseeg a dit : Latest what? Please explain ty. |
Mymicemy « Citoyen » 1382263500000
| 0 | ||
Give cheese to player with command !cheese PlayerName e.e |
Safwanrockz « Censeur » 1382267220000
| 0 | ||
Mymicemy a dit : Here you go o/ a dit : |
0 | ||
Eliaseeg a dit : a dit : Not tested, ok? Ok. |
Safwanrockz « Censeur » 1382269920000
| 0 | ||
Issey a dit : You forgot the do's~ a dit : |
Eliaseeg « Citoyen » 1382287080000
| 0 | ||
Thanks to all .3. but... I found this on the server BR function getAlivePlayers() local alivePlayersInt = 0 local alivePlayers = {} for i, player in pairs(tfm.get.room.playerList) do if player.isDead == false then alivePlayersInt = alivePlayersInt + 1 table.insert(alivePlayers, player) end end return {alivePlayers, alivePlayersInt} end function eventPlayerDied(playerName) alivePlayers = getAlivePlayers() alivePlayersList = alivePlayers[1] alivePlayersNum = alivePlayers[2] if alivePlayersNum == 1 then winner = alivePlayersList[1].playerName tfm.exec.giveCheese(winner) tfm.exec.setPlayerScore(winner, 10, true) end end |
1 | ||
Someone know a callback to for example: [?] When i click the ? show a text of AddText and a botton to Close. I don't know how do and i want learn |
Mymicemy « Citoyen » 1382294760000
| 0 | ||
Safwanrockz a dit : EDIT2: Something terrible wrong with my pc |
Safwanrockz « Censeur » 1382295240000
| 0 | ||
Aritxy a dit : a dit : Mymicemy a dit : It's working fine for me you just need to type !cheese PlayerName. |
Doneky « Citoyen » 1382299080000
| 0 | ||
Somebody can help me with script? a dit : The command !add will added a player in table Jogadores. |
Safwanrockz « Censeur » 1382299740000
| 0 | ||
Doneky a dit : And what's wrong about it? |
Doneky « Citoyen » 1382302200000
| 0 | ||
Safwanrockz a dit : Don't is being added a player in table. |
Shamousey « Consul » 1382304120000
| 0 | ||
Doneky a dit : This adds things to the table just fine. What are you using to test it? |
Doneky « Citoyen » 1382306400000
| 0 | ||
Shamousey a dit : A command that only players that is in table can to use. |
Shamousey « Consul » 1382308980000
| 0 | ||
Doneky a dit : It must be that command that's wrong, because the code you posted above works fine. |
Doneky « Citoyen » 1382316660000
| 0 | ||
Shamousey a dit : hm.. Look this here: a dit : Why is wrong? |
0 | ||
Doneky a dit : replace table.insert(admins,answer) with admins[answer]=true |