Jump to content

racevoting_server.lua


SuleymanM

Recommended Posts

Posted

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 ?

Posted

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 .

Posted

I told you that , the function has a check for admin's "there is a check if the player is admin or not , if you remove that".... I told you very clear if you REMOVE that check then every player can use it from your buymap GUI

Posted

bandi , pls stop your help . YOu dont understant ...

PROBLEM : When players/admins BUY AN MAP FROM USERPANEL , not set nextmap! , not add to map queuqe

Posted

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 .

Posted

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?

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

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