KE

[Duvida] No Script Arma No Sv De Gta

Por kevin2010, 07 de mai. de 2012 em Scripts

script
5
1.4k
kevin2010K
07 de maio de 2012 às 20:01

[Duvida] No Script Arma No Sv De Gta

Quando Eu Mato o bixo atirano com armar nao ganha level me ajude

Me Ajuda Valeno 2 rep um cada dia por favor me ajudeeeeeeeeeeeee

 

ESse Script e nas Spells

<rune name="AK-47" id="2394" allowfaruse="1" charges="no" lvl="8" exhaustion="500" maglv="0" range="5" needtarget="0" blocktype="solid" event="script" value="ak47.lua"/>

Script \/

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)
local attackmin, attackmax = 300, 340 -- attack minimo, attack maximo

function onCastSpell(cid, var)

if doPlayerRemoveItem(cid, 2543, 1) then -- troque pelo id da bolt
target = getCreatureTarget(cid)
if (target <= 0) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Selecione um target.")
return false
end
hit = (math.random(attackmin,attackmax) + getPlayerSkillLevel(cid, SKILL_DISTANCE) / 3)
doCreatureAddHealth(target, -hit)
doSendAnimatedText(getCreaturePosition(target), math.floor(hit), 144)
return doCombat(cid, combat, var)
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não possui balas.")
return false
end

DantarrixD
07 de maio de 2012 às 23:24

Are you using it with god? In that case, why are you wishing to get exp?, try with normal player... -.-!

kevin2010K
08 de maio de 2012 às 00:31

Are you using it with god? In that case, why are you wishing to get exp?, try with normal player... -.-!

I am not so dumb it clear that player was using

 

Traduçao

nao sou tao burro assim claro que tava usando player

DantarrixD
08 de maio de 2012 às 07:48

Try replacing this function:

doCreatureAddhealth(target, -hit)

 

For this function:

doTarggetCombatHealth(cid, target, type, min, max, effect)

 

If you know how to.... If you dont know, please response to make the script.... (At the moment I dont have too much time, but later I will have it :) )

kevin2010K
08 de maio de 2012 às 09:56

Try replacing this function:

doCreatureAddhealth(target, -hit)

 

For this function:

doTarggetCombatHealth(cid, target, type, min, max, effect)

 

If you know how to.... If you dont know, please response to make the script.... (At the moment I dont have too much time, but later I will have it :) )

if not now not hita hita not have to see if upa please help me

 

Traduçao

agora nao hita se nao hita nao tem como ver se upa por favor me ajude