raulrobi Posted May 8, 2010 Share Posted May 8, 2010 Hey i found a script and i edited it.But it doesent work pls help me local restriction = nil addCommandHandler("roll", function(thePlayer,comd) if restriction then outputChatBox( "your message", getRootElement(), 255, 0, 0) return false; end restriction = true local resetRestriction = setTimer( restrictionEnd, 30000,1) randomroll = math.random(1, 3000) roller = math.random(1, 4) if roller == 1 then givePlayerMoney(thePlayer, math.random(1,10000)) outputChatBox ( getPlayerName ( thePlayer ) .. ' roll and wins ' .. randomroll .. ' !', getRootElement(), 255, 255, 0) elseif roller == 2 then takePlayerMoney(thePlayer, math.random(1,10000)) outputChatBox ( getPlayerName ( thePlayer ) .. ' roll and losses ' .. randomroll .. ' !', getRootElement(), 255, 255, 0) elseif roller == 3 then setPlayerMuted(player, true) setTimer(setPlayerMuted, 30000, 1, player, false) outputChatBox (outputChatBox ( getPlayerName ( thePlayer ) .. ' roll and is now muted !', getRootElement(), 255, 255, 0) elseif roller == 4 then setSkyColour (math.random(1, 255) ,math.random(1, 255) ,math.random(1, 255) ,math.random(1, 255) ,math.random(1, 255) ,math.random(1, 255) ) outputChatBox( getPlayerName ( thePlayer ) .. ' roll and is now changed the sky colour !', getRootElement(), 255, 255, 0) end end ) function restrictionEnd() restriction = false; end Link to comment
Gamesnert Posted May 8, 2010 Share Posted May 8, 2010 https://forum.multitheftauto.com/viewtop ... 91&t=27552 Link to comment
Recommended Posts