-
Posts
130 -
Joined
-
Last visited
Everything posted by ~DarkRacer~
-
How can i do that ?
-
omg where did you get that infernus?!?
-
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
-
i want to get the money of the player who executed the command /spin.
-
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?
-
<meta> <script src="server.lua" type="server" /> </meta>
-
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)
-
i already did but it didn't work with me
-
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?
-
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
-
i just want one function could send images back or front.
-
Hi, i want to send a gui Static image behind a specific text this is a picture: what function should i use?
-
Yes i mean the alive player thanks. the for loop is really difficult to understand
-
is there a function returns an integer of the active players in the map(RACE)?
-
i know, but i found dxDrawColorText better.
-
Thanks all, i deleted the original map name from Race_client.lua and i made new script with dxDrawColorText.
-
Thanks Solidsnake14, but i need to color the name only maybe i can seperate the "Map : " and the map name?
-
how can i delete that text ? what's the file that i should edit?
-
Ok. but i will do it later cause there is a lot of players now.
-
anony# i can't edit the file it keep telling me that u have to refresh it. and everything goes back as it was.
-
Thank you all for help solved finally .
-
so setElementDimension (element, 0) make the element disappear. then how can i hide the player too Anony's code didn't work.
