Quote:
Originally Posted by AngelOwns
sv("huntaholic_point","-3000")
|
Thank you very much. Unfortunately it won't work. However, I solved the problem
Quote:
Originally Posted by wisp66
i dont have time right this min busy with development but send me skype in pm maybe i can help a bit
angel is correct with the syntex there telling u tho
|
I appreciate that you are trying to help me but I solved the problem. Thank you.
Quote:
Originally Posted by Stongx
I think that the update_huntaholic_poinst necessary
use the code that AngelOwns give for you and I think that it's will work
the problem that the code that you put unknown for the game
so delete it and put the code and try
I hope that I helped you
good luck
|
Thank you very much. I solved the problem
Quote:
Originally Posted by pprfds
try this
function hunterholic_point_buff()
dlg_text( "TEST" )
dlg_menu( "Get a GM Buff", "GM_Buff()" )
dlg_menu( "@90010002", '' )
dlg_show()
end
function GM_Buff()
local huntaholic_point = get_value("huntaholic_point")
if huntaholic_point >= 3000 then
set_huntaholic_point( huntaholic_point - 3000)
add_state(163448, 250, 360000)
else
dlg_text("@90010005")
dlg_menu( "@90010002", '' )
dlg_show()
end
end
|
I appreciate your help. I got the clue from your script. Like this...
local huntaholic_point = get_value("huntaholic_point")
local cost = 3000
if huntaholic_point >= cost then
sv( "huntaholic_point", huntaholic_point - cost )
set_huntaholic_point( huntaholic_point - cost )
Why I added 'sv( "huntaholic_point", huntaholic_point - cost )' is because the holic point won't reflect to the players' point if only add 'set_huntaholic_point'. Anyway thank you very much