Jump to content

hutin123

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by hutin123

  1. Can someone help me with this script, please. It has a problem that when one of the clients start command 'vr', the map is just restarted in stead of checking all the clients if they have voted or not. I don't own this script, btw Many thanks. local color = "#FFFFFF" VoteRedo = true playersVoted = 0 mapRestarted = true addCommandHandler("turnVR", function( player, cmd) if isPlayerInACLGroup(player, g_GameOptions.admingroup) then if VoteRedo then VoteRedo = false outputChatBox("[SERVER] "..color.."Command [/vr] Vote Redo #FF4040DISABLED "..color.."by #ffffff"..getPlayerNametagText(player), root, 255, 99, 99, true) else VoteRedo = true outputChatBox("[SERVER] "..color.."Command [/vr] Vote Redo #adff2fENABLED "..color.."by #ffffff"..getPlayerNametagText(player), root, 255, 99, 99, true) end end end ) addEventHandler ( "onPlayerJoin",root, function () setElementData( source, "hasVoted", "nope" ) end ) function PlayerVoted(thePlayer) if VoteRedo then if not stateAllowsRandomMapVote() or g_CurrentRaceMode:getTimeRemaining() < 1000 then outputChatBox("[SERVER] "..color.."Command only enabled with game in process.", thePlayer, 255, 99, 99, true) return end if mapRestarted then if redo then outputChatBox("[SERVER] "..color.."The map now automatically restart.", thePlayer, 255, 99, 99, true) return end if (getElementData( thePlayer, "hasVoted" ) == "nope") then setElementData( thePlayer, "hasVoted", "voted" ) playersVoted = playersVoted + 1 outputChatBox("[SERVER] #ffffff("..playersVoted.."/".. math.floor(getPlayerCount() /2 + 0.5) ..")"..color.." The player #ffffff"..getPlayerNametagText(thePlayer).." "..color.."voted to restart this map.", root, 255, 99, 99, true) if playersVoted >= math.floor(getPlayerCount() /2 + 0.5) then redo = true outputChatBox ("[SERVER] "..color.."Voting finished, the map will be restarted.", root, 255, 99, 99, true) triggerClientEvent("onSetNextMapRedo",root,redo) triggerEvent("redoByRace",root,redo) end else outputChatBox("[SERVER] "..color.."You have already voted.", thePlayer, 255, 99, 99, true) end else outputChatBox("[SERVER] "..color.."Sorry, This map has been restarted.", thePlayer, 255, 99, 99, true) end else outputChatBox("[SERVER] "..color.."Sorry, Vote Redo is DISABLED", thePlayer, 255, 99, 99, true) end end addCommandHandler ( "vr", PlayerVoted )
  2. Yes, TOO LOW. lol When we racing and we meet a change-vehicle, it responses too fast that make the vehicle stucks with an object( tree, road, anything,...). Sounds ridiculous right?
  3. Hi guys, i know it is a dump question. But do we have a resource that can restrict the ping because it's too low. Actually it's too low that some maps when we change vehicles, it stucks with objects. Thanks so much. My gamemode is race so you know what i mean p/s: or something can delay the pickup :v
  4. I had buy host and i having a problem of data, can you tell me how to edit them, ex. Money, account, ... ?
  5. Hey, i'm going to buy 1 server with 12 slots, so can i add more slot later?
  6. I want to host 1 server with 32 slot, It's race server. What VPS should i choose? Money and knowledge about server is not my problem. Thanks!
  7. Problem 1 solve, anyway thank renkon.
  8. My points as column in scorebroad. So i can't save it. And when i replace spectators, the resource not work, i think the font don't allow. Help me
  9. Hi guys! Pls help me, i want save 1 value, it's "Điểm" with my language, mean Point on server race DM. I have 1 save system like this but only for Money: node = xmlLoadFile ("player.xml") function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount(source))) then local accountData = getAccountData (theCurrentAccount, "money") if (accountData) then local playerMoney = getAccountData(theCurrentAccount, "money") setPlayerMoney(source, playerMoney) end end end addEventHandler("onPlayerLogin", getRootElement(), playerLogin) function onQuit() if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData(account,"money", tostring(getPlayerMoney(source))) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) And the second, I have resource name Spectator, i want to translate word "Spectators:" to "Người:" but it not word. Can it work by another way? Pls help me, thank all. p/s: Sorry for my english
  10. I try this, thx but if i get many hunter same time, the money will be x2, x3,.... even x10 . OMG, can fix it?
  11. Sorry. I'm noob script lua ( and can u tell me how to edit the name of column (change language for it) pls.
  12. ok. show me pls show me the full code, like 1 resouce
  13. I had it and just call it's "Money" and "Points". What do I do next? And pls tell me how to win the race of get hunter too. Ty
  14. can you show me details, if i want this: Get hunter will earn 2000$ and 2 points Where i put that code?
  15. Hi guys! i'm new here. Anybody can help me this? If get hunter in Race DM will get money and points, i had column Money but no have a points column. Thank you.
  16. Hi guys! i'm new here. Anybody can help me this? If get hunter in Race DM will get money and points, i had column Money but no have a points column. Thank you.
×
×
  • Create New...