easier to learn if you dont ask for things every 20 minutesgimme hints please been working and researcing for hours nothing i can rely on
local health_needed = 100
function onCast(cid, variant)
if getPlayerhealth(cid) < health_needed then
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return doPlayerSendCancelMessage(cid, "You need more health to cast this spell!")
end
doPlayerRemoveHealth(cid, health_needed)
return doCombatExecute(cid, variant)
end
Code:local health_needed = 100 function onCast(cid, variant) if getPlayerhealth(cid) < health_needed then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return doPlayerSendCancelMessage(cid, "You need more health to cast this spell!") end doPlayerRemoveHealth(cid, health_needed) return doCombatExecute(cid, variant) end
Even bigger hint.
local health_needed = 100
function onCast(cid, variant)
if doPlayerRemoveHealth(cid, health_needed) then
return doCombatExecute(cid, variant)
end
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return doPlayerSendCancelMessage(cid, "You need more health to cast this spell!")
end
local health_needed = 100 function onCast(cid, variant) if doPlayerRemoveHealth(cid, health_needed) then return doCombatExecute(cid, variant) end doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return doPlayerSendCancelMessage(cid, "You need more health to cast this spell!") end
function onCast(cid, variant)
if doPlayerRemoveHealth(cid, 100) then return doCombatExecute(cid, variant) end
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return doPlayerSendCancelMessage(cid, "You need more health to cast this spell!")
end
Being rude or a wise ass is not going to improve your chances of getting help.See I can make useless changes too :>
Btw the code you posted is identical to what I posted.Plus, your code will kill the player mine wont.
Man you're amazing at coming up with excuses, I'll give you that. 7 years... honestly I believe that you're simply too lazy.i cant learn if no one even hint me , aswell been sitting on otland past 7 years its not going good for me with scripting... what can ido ? kill myself...
im working not for myself only i working on something realy great in my eyes and in 5-10 years you will see. anywya thanks for this motivation... realy motivating
https://vvvulcan.s-ul.eu/Q4cq9xnWMan you're amazing at coming up with excuses, I'll give you that. 7 years... honestly I believe that you're simply too lazy.
If I, just as many others on this forum can start from knowing nothing to becoming employed programmers/scripters just by learning through making ot projects (without any guidance) then sorry, I can't sympathize with your BS. Stop leeching, start learning & contribute something back to the community after you've been given so much for FREE. No more excuses seriously, stop thinking about only yourself and your project.
We are pathetic? Lolyou guys are pathetic you see people from your perspective. thats pathetic im sorry for you guys. go fight with your moms...
not from perspective but from all your posts begging from helpyou guys are pathetic you see people from your perspective. thats pathetic im sorry for you guys. go fight with your moms...