Jump to content

Gamemode map name


Reflex#

Recommended Posts

Posted

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

Posted

I try this:

  
addEventHandler('onGamemodeMapStart',root, 
 function() 
 local name = getMapName() 
 setGameType(name) 
 end 
 ) 
  

Scripting in lua

Posted

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%

Posted
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

Posted

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 xD

Posted

Kenix God I love Your Subject :lol:

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 :D

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted

He want to put map name on gamemode column in server browser.

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted
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%

Posted
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

Posted (edited)

Try

Server

addEventHandler ( 'onGamemodeMapStart', root, 
    function ( uMapStart )     
        getMapName ( getResourceName( uMapStart ) ) 
    end 
) 

Edited by Guest

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted

Try

Server

  
  
addEventHandler ( 'onGamemodeMapStart', root, 
    function ( uMapStart )     
        setGameType ( getResourceName( uMapStart ) ) 
    end 
) 

Updated again.

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted
Try

Server

  
  
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 :D

Scripting in lua

Posted

Ok.

addEventHandler ( 'onGamemodeMapStart', root, 
    function ( uMapStart )     
        setGameType ( getResourceInfo( uMapStart, 'name' ) ) 
    end 
) 

Try My Post Updated.

Copy paste :mrgreen:

http://vk.com/the_kenix

Вопросы задавайте на форуме, не пишите мне в личку.

Please don't pm me.

Posted
Ok.
addEventHandler ( 'onGamemodeMapStart', root, 
    function ( uMapStart )     
        setGameType ( getResourceInfo( uMapStart, 'name' ) ) 
    end 
) 

Try My Post Updated.

Copy paste :mrgreen:

Thx you Kenix,all work :wink:

Scripting in lua

Posted
Ok.
addEventHandler ( 'onGamemodeMapStart', root, 
    function ( uMapStart )     
        setGameType ( getResourceInfo( uMapStart, 'name' ) ) 
    end 
) 

Try My Post Updated.

Copy paste :mrgreen:

why all new servers try to copy 'TG' Idea about this gamemode map name?

it doesn't make you more popular ._.

357ac0078264.jpg

- Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]

Posted
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

Posted
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

357ac0078264.jpg

- Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...