myyusuf Posted April 6, 2012 Share Posted April 6, 2012 can you say me the all mapInfo functions like mapInfo.playedCount. Link to comment
Jaysds1 Posted April 6, 2012 Share Posted April 6, 2012 I think your looking for this: loadMapData Link to comment
myyusuf Posted April 6, 2012 Author Share Posted April 6, 2012 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
drk Posted April 6, 2012 Share Posted April 6, 2012 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? 1 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