Jump to content

zzx

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by zzx

  1. zzx

    Vote redo problem

    Please give me the entire code.
  2. zzx

    Vote redo problem

    Thanks you, how can i set the votes as much as players in the server, example, 10 players in the server, then the goal of the votes to restart the map is 10, and like that.
  3. zzx

    Vote redo problem

    When i write /vr it shows in the chat: [REDO]: You have already voted [REDO]: zeldak voted for redo! [1/3], I want to remove the [REDO]: You have already voted when i type it for the first time, and when i re-type /vr it says [REDO]: You have already voted twice. what should i do ?
  4. You have to ask someone who is from china.
  5. hi guys, the map doesn't restart, and i'm testing it on the default race, any help? playerVotes = {} local i = 0 addCommandHandler( "vr", function(source) if(playerVotes[source] == true) then return outputChatBox("#ff8800[REDO]: #ffffffYou have already voted", getRootElement(), 255,0,0, true, source) end if not i then i = 0 end if i >= 4 then outputChatBox("", getRootElement(), 255,0,0, true) outputChatBox("#ff8800[REDO]: #ffffffThe map will be restarted!", getRootElement(), 255,0,0, true) else playerVotes[source] = true i = i + 1 end if i == 3 then outputChatBox("", getRootElement(), 255,0,0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(source).."#ffffff voted for redo! ["..i.."/3]", getRootElement(), 255,0,0, true) outputChatBox("", getRootElement(), 255,0,0, true) outputChatBox("#ff8800[REDO]: #ffffffThis map will be restarted by vote!", getRootElement(), 255,0,0, true) g_ForcedNextMap = currentMap setTimer(function() i = 0 end, 150*1000,1) playerVotes = {3} elseif i <= 2 then outputChatBox("", getRootElement(), 255,0,0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(source).." #ffffffvoted for redo! ["..i.."/3]", getRootElement(), 255,0,0, true) end end)
  6. zzx

    Vote redo problem

    hypex, No it's not in the race resource, is there any mistake in the script? And pls write me the steps how to install it, and you know...
  7. zzx

    Vote redo problem

    Nothing happened, or i don't know the command. Do i have to put client side as well? i only use server side and meta.xml to this script.
  8. Hey guys, I just ahve a code that makes the map restart itself by voting when everybody die. find me the problem guys please. addCommandHandler("redo", function() if not i then i = 0 end if i >= 4 then outputChatBox("[REDO]: Die Map wird bereits wiederholt!", root,0,125,0) else i = i + 1 end if i == 3 then outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) outputChatBox("[REDO]: Map will be restarted!",root,0,125,0) g_ForcedNextMap = currentMap setTimer(function() i = 0 end, 150*1000,1) elseif i <= 2 then outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) end end)
  9. zzx

    Need some help!

    I don't know how to create a meta.xml file and LUA document,gimme some tips how to implement that?
  10. zzx

    Need some help!

    please just help me if you know how.
  11. zzx

    Need some help!

    I'm a beginner scripter, so i want you guys to help me create a meta.xml and .lua file. when i create a new text and rename it to meta.xml document and server.lua nothing happens, thanks.
×
×
  • Create New...