myyusuf Posted April 6, 2012 Posted April 6, 2012 can you say me the all mapInfo functions like mapInfo.playedCount.
myyusuf Posted April 6, 2012 Author 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"
drk Posted April 6, 2012 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
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