SuleymanM Posted August 1, 2013 Posted August 1, 2013 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 ?
bandi94 Posted August 1, 2013 Posted August 1, 2013 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 .
SuleymanM Posted August 1, 2013 Author Posted August 1, 2013 .. i said for users ... not for admins. to users can buy nextmap
bandi94 Posted August 1, 2013 Posted August 1, 2013 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
SuleymanM Posted August 1, 2013 Author Posted August 1, 2013 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
bandi94 Posted August 1, 2013 Posted August 1, 2013 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 .
_sEEk_ Posted August 2, 2013 Posted August 2, 2013 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?
denny199 Posted August 3, 2013 Posted August 3, 2013 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.
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