Bazim Posted June 5, 2011 Share Posted June 5, 2011 Hi i search resource for map rate like /rate 1-10 with ratings saving. Does anyone know anything? Link to comment
Castillo Posted June 5, 2011 Share Posted June 5, 2011 https://community.multitheftauto.com/index.php?p= ... ils&id=468 https://community.multitheftauto.com/index.php?p= ... ils&id=467 Link to comment
Bazim Posted June 5, 2011 Author Share Posted June 5, 2011 Dont work i download maprating in mtaserver.conf i edit <resource src="mapratings" startup="1" protected="0" /> <resource src="mapratings_report" startup="1" protected="0" /> <resource src="race_toptimes" startup="1" protected="0" /> And after map start no see map rating. Only in server is mapratings_report\server.lua:18: addEventHandler: This handle already exists Link to comment
myyusuf Posted June 15, 2011 Share Posted June 15, 2011 addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function (mapInfo) local map = exports.mapmanager:getRunningGamemodeMap() local mapname = getResourceName(map) rate = exports.mapratings:getMapRating(mapname) if rate then ortalamaoy = rate.average toplamkisi = rate.count setTimer(outputChatBox,50,1,"#c0c0c0It has average rating "..tostring(ortalamaoy).."#c0c0c0/#00ff0010 #c0c0c0(by "..tostring(toplamkisi).." players)",getRootElement(),255,255,255,true) end end ) change race_mapratings name to mapratings. its server-side. 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