myyusuf Posted April 6, 2012 Posted April 6, 2012 can you say me the all mapInfo functions like mapInfo.playedCount.
Jaysds1 Posted April 6, 2012 Posted April 6, 2012 I think your looking for this: loadMapData My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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 EPT Team Server Development: 0% Learning C++ | C++ is amazing
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