Jump to content

about mapInfo


myyusuf

Recommended Posts

I think your looking for this:
loadMapData 

no. like on this resource. i wanted client side functions.

    name            = mapInfo.name or "Unknown" 
    author          = mapInfo.author or "Unknown" 
    lastTimePlayed  = timestampToDate(mapInfo.lastTimePlayed) or "Unknown" 
    spawnPointCount = tostring(mapInfo.spawnPointCount or "Unknown") 
    playedCount     = tostring(mapInfo.playedCount or "Unknown") 
    modename        = mapInfo.modename ~= "Destruction derby" and mapInfo.modename or "DD / DM" 

Link to comment
addEvent ( 'onClientMapStarting', true ) 
addEventHandler ( 'onClientMapStarting', root, 
    function ( mapInfo ) 
        outputChatBox ( 'Map: ' .. mapInfo.name ) 
        outputChatBox ( 'Played: ' .. mapInfo.playedCount .. ' times' ) 
        outputChatBox ( 'Author: ' .. mapInfo.author ) 
        outputChatBox ( 'Last Time Played: ' .. mapInfo.lastTimePlayed ) 
        outputChatBox ( 'Mode: ' .. mapInfo.modename ) 
    end 
) 

Is that hard?

  • Like 1
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...