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?

Posted

I try this:

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

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) 

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

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.

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

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

Posted (edited)

Try

Server

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

Edited by Guest
Posted

Try

Server

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

Updated again.

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

Posted

Ok.

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

Try My Post Updated.

Copy paste :mrgreen:

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:

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 ._.

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.

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

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...