Jump to content

Map Ratings


Bazim

Recommended Posts

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
  • 2 weeks later...

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

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...