Reflex# Posted April 1, 2012 Share 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? Link to comment
Reflex# Posted April 1, 2012 Author Share Posted April 1, 2012 I try this: addEventHandler('onGamemodeMapStart',root, function() local name = getMapName() setGameType(name) end ) Link to comment
X-SHADOW Posted April 1, 2012 Share 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) Link to comment
Reflex# Posted April 1, 2012 Author Share 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 Link to comment
drk Posted April 1, 2012 Share 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. Link to comment
Kenix Posted April 1, 2012 Share Posted April 1, 2012 X-SHADOW, viewtopic.php?f=148&t=40809 Link to comment
X-SHADOW Posted April 1, 2012 Share 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 Link to comment
drk Posted April 1, 2012 Share Posted April 1, 2012 He want to put map name on gamemode column in server browser. Link to comment
X-SHADOW Posted April 1, 2012 Share 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 Link to comment
Reflex# Posted April 1, 2012 Author Share 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 Link to comment
X-SHADOW Posted April 1, 2012 Share Posted April 1, 2012 (edited) Try Server addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) getMapName ( getResourceName( uMapStart ) ) end ) Edited April 1, 2012 by Guest Link to comment
Kenix Posted April 1, 2012 Share Posted April 1, 2012 Try Server addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceName( uMapStart ) ) end ) Updated again. Link to comment
Reflex# Posted April 1, 2012 Author Share 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 Link to comment
Kenix Posted April 1, 2012 Share Posted April 1, 2012 Ok. addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceInfo( uMapStart, 'name' ) ) end ) Try My Post Updated. Copy paste Link to comment
X-SHADOW Posted April 1, 2012 Share Posted April 1, 2012 Kenix my post well work or not if not tell me why please . Link to comment
Reflex# Posted April 1, 2012 Author Share 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 Link to comment
TwiX! Posted April 1, 2012 Share 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 ._. Link to comment
Reflex# Posted April 2, 2012 Author Share 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. Link to comment
TwiX! Posted April 2, 2012 Share 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 Link to comment
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