zudokuxD Posted March 13, 2016 Share Posted March 13, 2016 addEvent("Invisible1 ",true) addEventHandler("Invisible1 ",root, function() local PlayerMoney = getPlayerMoney( source ) if ( PlayerMoney >=5000) then takePlayerMoney(source, 5000) setPlayerNametagShowing(source, false) setElementAlpha(source, 0) outputChatBox(" has bought invis $5000 !!!", 255, 255, 0, root) else outputChatBox("You Dont Have Money to buy invis",source) end end) Link to comment
Siriius Posted March 13, 2016 Share Posted March 13, 2016 addEvent("Invisible1 ",true) addEventHandler("Invisible1 ",root, function Invi () local PlayerMoney = getPlayerMoney( source ) if ( PlayerMoney >=5000) then takePlayerMoney(source, 5000) setPlayerNametagShowing(source, false) setElementAlpha(source, 0) outputChatBox(" has bought invis $5000 !!!", 255, 255, 0, root) setTimer(Invi, 1800000 ) else outputChatBox("You Dont Have Money to buy invis",source) end end) SetTimer (Function, Tiempo.) Puedes leer más sobre SetTimer en https://wiki.multitheftauto.com/wiki/SetTimer Link to comment
Recommended Posts