Jump to content

Gamemode map name


Reflex#

Recommended Posts

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

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

Link to comment
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 ._.

Link to comment

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