Jump to content

racevoting_server.lua


SuleymanM

Recommended Posts

Hi all,

To can buy nextmap in 8Q Dashboard , i add this line to racevoting_server:

function race_voting_8q (...) 
  local query = #{...}>0 and table.concat({...},' ') or nil 
  local map, errormsg = findMap( query ) 
  if not map then 
   outputRace( errormsg, source ) 
   return 
  end 
 g_ForcedNextMap = map 
  
end 
addEvent("race_voting_8q",true) 
addEventHandler( "race_voting_8q", getRootElement(), race_voting_8q) 

and to Xiti Dashboard what add ?

Link to comment

buy next map can be done with the command you found in admin panel.

Open admin panel search the function in the map tab "set next map" , there will be a call.

Search that call in race gamemode , and edit it. (there is a check if the player is admin or not , if you remove that) then you can use the same call as admin panel , in your script .

Link to comment

i already told you how could work , if you don't like it then make it how you wan't.

in usser panel you take player's money and call the set next map command = it will set the buyed map as next map =>> that player buyed his map , and will start after the current one .

Link to comment

Far as I know , xiti's userpanel was leaked, soooo....

Suleyman needs the code from the xiti's race gm...cuz his userpanel is stoled and he can't set maps without that code.

Off-Topic: Suleyman , now u aren't a scripter anymore? U can't fix this little bug now?

Link to comment
buy next map can be done with the command you found in admin panel.

Open admin panel search the function in the map tab "set next map" , there will be a call.

Search that call in race gamemode , and edit it. (there is a check if the player is admin or not , if you remove that) then you can use the same call as admin panel , in your script .

Says everything.

The code is somewhere in race/racevoting_server.lua

Search for it.

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