Jump to content

~DarkRacer~

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by ~DarkRacer~

  1. ~DarkRacer~

    Help

    omg thank you Pres[T]ege.
  2. ~DarkRacer~

    Help

    Yes but it's not working for me i don't know why it output on chat "false"! local trueNumber = 0 local price = 0 local money = 0 addCommandHandler("spin", function(theplayer, command, number, amount) number = tonumber(number) amount = tonumber(amount) money = getPlayerMoney(thePlayer) if (number > 0) then if (amount >= 1000 and amount <= 1000000) then outputChatBox("#999999Your spin #ff5500("..number..") #999999is on the Wheel...", theplayer,255,255,255,true) trueNumber = math.random(1,65) outputChatBox(money, theplayer,255,255,255,true) -- Returns FALSE !! setTimer(checkspin,10000,1,number,trueNumber, amount, theplayer) else outputChatBox("Minimum spin amount is '1000' to '1000000'.", theplayer,255,0,0,true) end else outputChatBox("Minimum spin number is '1' to '65'.", theplayer,255,0,0,true) end end ) function checkspin(oldnumber, newnumber, amount, theplayer) if (oldnumber == newnumber) then price = amount * 100 outputChatBox("#0088ff"..getPlayerName(theplayer).." Spins #ff8800("..oldnumber..")#0088ff and wins #ff8800($"..price..")#0088ff!",getRootElement(),255,255,255,true) else outputChatBox("#0088ff"..getPlayerName(theplayer).." Spins #ff8800("..newnumber..")#0088ff and loses.",getRootElement(),255,255,255,true) end end
  3. ~DarkRacer~

    Help

    i want to get the money of the player who executed the command /spin.
  4. ~DarkRacer~

    Help

    lol the info line is not required in fact i won't waste my time filling up a stupid information that i won't need () so is there any solution for the get money function?
  5. ~DarkRacer~

    Help

    <meta> <script src="server.lua" type="server" /> </meta>
  6. ~DarkRacer~

    Help

    there is another problem i can't get the current player's money... i don't know why but it returns a false value!! i use this : local money = 0 addCommandHandler("spin", function(theplayer, command, number, amount) money = getPlayerMoney(theplayer) outputChatBox(money) end)
  7. ~DarkRacer~

    Help

    i already did but it didn't work with me
  8. ~DarkRacer~

    Help

    local trueNumber = 0 local price = 0 addCommandHandler("spin", function(theplayer, command, number, amount) number = tonumber(number) amount = tonumber(amount) if (number > 0) then if (amount >= 1000 and amount <= 1000000) then outputChatBox("#999999Your spin #ff5500("..number..") #999999is on the Wheel...", theplayer,255,255,255,true) trueNumber = math.random(1,65) outputChatBox(trueNumber) setTimer(checkspin,7000,1,number,trueNumber, amount, theplayer) spin = false setTime( function() spin = true end, 20000,1) else outputChatBox("Minimum spin amount is '1000' to '1000000'.", theplayer,255,0,0,true) end else outputChatBox("Minimum spin number is '1' to '65'.", theplayer,255,0,0,true) end end ) function checkspin(oldnumber, newnumber, amount, theplayer) if (oldnumber == newnumber) then price = amount * 100 outputChatBox("#0088ff"..getPlayerName(theplayer).." Spins #ff8800("..oldnumber..")#0088ff and wins #ff8800($"..price..")#0088ff!",getRootElement(),255,255,255,true) else outputChatBox("#0088ff"..getPlayerName(theplayer).." Spins #ff8800("..oldnumber..")#0088ff and loses.",getRootElement(),255,255,255,true) end end This is my spin system it's not finished yet but i need help i want to make that when the player execute the command /spin, i want him not to be able to spin again if a 20 sec. didn't passed. how would i do that?
  9. this is the dxText, where i should put false? timepassed = dxText:create('0:00:00', screenWidth/2+22.5, 27, false, 'default-bold', 1, 'right') the guiMoveToBack and guiBringToFront didn't work
  10. i just want one function could send images back or front.
  11. Hi, i want to send a gui Static image behind a specific text this is a picture: what function should i use?
  12. Yes i mean the alive player thanks. the for loop is really difficult to understand
  13. is there a function returns an integer of the active players in the map(RACE)?
  14. i know, but i found dxDrawColorText better.
  15. Thanks all, i deleted the original map name from Race_client.lua and i made new script with dxDrawColorText.
  16. Thanks Solidsnake14, but i need to color the name only maybe i can seperate the "Map : " and the map name?
  17. how can i delete that text ? what's the file that i should edit?
  18. ~DarkRacer~

    question

    How can i change the map's name color?
  19. Ok. but i will do it later cause there is a lot of players now.
  20. anony# i can't edit the file it keep telling me that u have to refresh it. and everything goes back as it was.
  21. Thank you all for help solved finally .
  22. so setElementDimension (element, 0) make the element disappear. then how can i hide the player too Anony's code didn't work.
×
×
  • Create New...