![]() |
![]() ![]() « Censeur » 1401709920000
| 0 | ||
You need to type !respawn Name. |
0 | ||
Safwanrockz a dit : Thank You. |
![]() ![]() « Citoyen » 1401983340000
| 0 | ||
On many minigames, in which #prophunt & #deathmatch some graphics became invisible. In #deathmatch you can't see the canoon countdown, in #prophunt most of the props (you in which, at least for you) are invisible. Can someone tell me when this is going to get fixed? These minigames are part of my life :/ Sorry if posted in wrong place >.<' |
![]() « Citoyen » 1401994080000
| 0 | ||
Weirdeir a dit : this bug is Not only in minigames so i don't think they can do much |
![]() « Citoyen » 1402064220000
| 0 | ||
Dobrjik a dit : function eventChatCommand(name,cmd) local arg={} for argument in cmd:gmatch("[^%s]+") do table.insert(arg, argument); end if arg[1]=="respawn" then tfm.exec.respawnPlayer(arg[2] or name) end end !respawn Nick or !respawn |
![]() ![]() « Citoyen » 1402161900000
| 0 | ||
problem bur in domination we cant see the flags |
![]() ![]() « Consul » 1402164480000
| 0 | ||
Neonstrayzer a dit : tfm.exec.respawnPlayer() doesn't work >< |
![]() « Citoyen » 1402215120000
| 0 | ||
Bushmeister a dit : It works. |
![]() ![]() « Citoyen » 1402697400000
| 0 | ||
1.admins={Hotspotower=true, Neonstrayzer=true, Enomicefare=true} 2.function isAdmin(name) 3. return (admins[name] or false) 4.end 5.players={} 6.feed={text=""} 7.reports={reports=""} Problem is ## Init Error : For input string: "1.admins" ## [Cheetahkitty] Lua script loaded in 1 ms (4000 max) |
![]() ![]() « Censeur » 1402700700000
| 0 | ||
Remove the line numbers. |
0 | ||
when i type maps={5122295,0} it does not work :( Dernière modification le 1402756020000 |
![]() ![]() « Consul » 1402762440000
| 0 | ||
Ygtyk a dit : That code itself works fine, but doesn't do anything on its own without other code accompanying it. If you want your own map rotation, take a look at this tutorial. |
![]() « Citoyen » 1403717280000
| 0 | ||
When I try to run the code: a dit : I get Init Error : Ediz.lua:274: [string "Mellisme.lua"]:9: ')' expected (that's the 9th line btw) I checked that I've closed the parenthesis and I've also tried adding multiple ')' to the end of the line. |
![]() ![]() « Citoyen » 1403717760000
| 0 | ||
Mellisme a dit : Try with this: this a dit : Dernière modification le 1403717820000 |
![]() « Citoyen » 1403718120000
| 0 | ||
Eliaseeg a dit : Works now. Thanks |
![]() 1403884140000
| | ||
[Modéré par Travelingpik, raison : Ask in the utility thread or contact the creator directly. This is offtopic here.] |
![]() ![]() « Citoyen » 1404773040000
| 0 | ||
I am quite new to Lua, and it looks like a good time. I have an issue in which I have no idea what is wrong: function eventKeyboard(playerName, keyCode, down, x, y) keyCode = 32 if down == true then tfm.exec.giveCheese(playerName) end end This is to give cheese to a player when they press spacebar. No errors come up, but nothing happens when I press spacebar. ALSO: What does the player X and Y positions have to do with anything? |
![]() ![]() « Consul » 1404776940000
| 0 | ||
You need to bind the key to the player before any events will be called. Try adding this to the end of your script. tfm.exec.bindKeyboard("Scrollerkey",32,true,true) The X and Y positions are the co-ordinates on the map that the player is at when they press the key. This is useful if you want to do something like #deathmatch and how it spawns cannons relative to a player's position. Dernière modification le 1404777000000 |
![]() 1405508580000
| | ||
[Modéré par Travelingpik, raison : Old forums are gone, confusing post.] |
![]() 1407325320000
| | ||
[Modéré par Travelingpik] Dernière modification le 1407325500000 |