Reflex# Posted April 1, 2012 Posted April 1, 2012 How i can create like...when i write in search server...i see server Name Players and Gamemode In gamemode line i see the name of map that played on this server..how i can do this? Scripting in lua
Reflex# Posted April 1, 2012 Author Posted April 1, 2012 I try this: addEventHandler('onGamemodeMapStart',root, function() local name = getMapName() setGameType(name) end ) Scripting in lua
X-SHADOW Posted April 1, 2012 Posted April 1, 2012 this is just an example i think it wont work with you just to show you how addEventHandler('onResourceStart',root, function() local name - getMapName() local name 2 = 'here Your label' guiSetText(name2, name) end) My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Reflex# Posted April 1, 2012 Author Posted April 1, 2012 this is just an example i think it wont work with you just to show you how addEventHandler('onResourceStart',root, function() local name - getMapName() local name 2 = 'here Your label' guiSetText(name2, name) end) You dont know what i want. I want that in gamemode of server,show map what played in this time Scripting in lua
drk Posted April 1, 2012 Posted April 1, 2012 LOOL X-SHADOW, If you don't know how to script properly, why you keep posting bugged scripts? Here: addEvent ( 'onMapStarting', true ); addEventHandler ( 'onMapStarting', root, function ( ) setGameType ( getMapName ( ) ); end ) Idk if I'm using function correctly, try. EPT Team Server Development: 0% Learning C++ | C++ is amazing
Kenix Posted April 1, 2012 Posted April 1, 2012 X-SHADOW, viewtopic.php?f=148&t=40809 http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
X-SHADOW Posted April 1, 2012 Posted April 1, 2012 X-SHADOW, viewtopic.php?f=148&t=40809 Kenix God I love Your Subject and Darken he want the show the Map Name at same time not the map name with gameType lol like if i had BaseMode and i play Arena 20 F6 'info panle' Cruunet Map : Arena 20 not BaseMode My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
drk Posted April 1, 2012 Posted April 1, 2012 He want to put map name on gamemode column in server browser. EPT Team Server Development: 0% Learning C++ | C++ is amazing
X-SHADOW Posted April 1, 2012 Posted April 1, 2012 He want to put map name on gamemode column in server browser. oh sorry Man My Bad i repeat My Sorry Darken And Kenix i swear i tryed to Learn it but its Hard i can Make simples Scripts but iam bad on Tables and triggring i hope become like u guys My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Reflex# Posted April 1, 2012 Author Posted April 1, 2012 LOOL X-SHADOW, If you don't know how to script properly, why you keep posting bugged scripts?Here: addEvent ( 'onMapStarting', true ); addEventHandler ( 'onMapStarting', root, function ( ) setGameType ( getMapName ( ) ); end ) Idk if I'm using function correctly, try. Dont work Draken.. In this column write None Scripting in lua
X-SHADOW Posted April 1, 2012 Posted April 1, 2012 (edited) Try Server addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) getMapName ( getResourceName( uMapStart ) ) end ) Edited April 1, 2012 by Guest My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Kenix Posted April 1, 2012 Posted April 1, 2012 Try Server addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceName( uMapStart ) ) end ) Updated again. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Reflex# Posted April 1, 2012 Author Posted April 1, 2012 TryServer addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceName( uMapStart ) ) end ) Updated again. Thx Kenix script work..but showing not real name of map,only name of archive of this map Scripting in lua
X-SHADOW Posted April 1, 2012 Posted April 1, 2012 Try My Post Updated. My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Kenix Posted April 1, 2012 Posted April 1, 2012 Ok. addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceInfo( uMapStart, 'name' ) ) end ) Try My Post Updated. Copy paste http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
X-SHADOW Posted April 1, 2012 Posted April 1, 2012 Kenix my post well work or not if not tell me why please . My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
drk Posted April 1, 2012 Posted April 1, 2012 X-SHADOW, are you kidding us? EPT Team Server Development: 0% Learning C++ | C++ is amazing
Reflex# Posted April 1, 2012 Author Posted April 1, 2012 Ok. addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceInfo( uMapStart, 'name' ) ) end ) Try My Post Updated. Copy paste Thx you Kenix,all work Scripting in lua
Kenix Posted April 1, 2012 Posted April 1, 2012 No problem. http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
TwiX! Posted April 1, 2012 Posted April 1, 2012 Ok. addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceInfo( uMapStart, 'name' ) ) end ) Try My Post Updated. Copy paste why all new servers try to copy 'TG' Idea about this gamemode map name? it doesn't make you more popular ._. - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Kenix Posted April 2, 2012 Posted April 2, 2012 You said me? http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
TwiX! Posted April 2, 2012 Posted April 2, 2012 You said me? nope, to reflex - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Reflex# Posted April 2, 2012 Author Posted April 2, 2012 You said me? nope, to reflex -___- I dont play on TG,and dont looking on this server. And if i wanna to do this script,this is dont saying that i copy TG server. Scripting in lua
TwiX! Posted April 2, 2012 Posted April 2, 2012 You said me? nope, to reflex -___- I dont play on TG,and dont looking on this server. And if i wanna to do this script,this is dont saying that i copy TG server. liar - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now