Jump to content

INFECCION DUDA


NodZen

Recommended Posts

dentro del script de zombies en serverside me parece, busca donde esta la funcion que quita health al golpearte

setElementHealth( player , health - 5 ) algo asi creo que es, hay mismo podrias usar lo que dise Alexs y lo demas ya es facil.

Mira Yakuza , hasta ahora voy asi...

teamzombie = createTeam ( "Zombie", 255, 0 , 0 )-- Crear Team-- 
  
function rewardOnWasted ( attacker, attackerweapon, bodypart, loss ) 
  
     if (attackerweapon == 0) and getElementData(attacker,"zombie") then 
if not getElementData (source,"zombie") then 
         getPlayerMoney ( attacker, 100 ) 
         setElementData ( source, "zombie", true ) 
             setPlayerTeam ( source, teamzombie ) 
             setTimer(setElementModel,300000,1,player,25) 
         end 
end end 
addEventHandler ( "rewarOnWasted", getRootElement(), rewarOnWasted ) 

Pero lo demas nose :S

Link to comment

eso lo isiste tu?

intenta asi

teamzombie = createTeam ( "Zombie", 255, 0 , 0 )-- Crear Team-- 
  
function rewardOnWasted ( attacker, attackerweapon, bodypart, loss ) 
 if (attackerweapon == 0) and getElementData(attacker,"zombie") then 
if not getElementData (source,"zombie") then 
         getPlayerMoney ( attacker, 100 ) 
         setElementData ( source, "zombie", true ) 
             setPlayerTeam ( source, teamzombie ) 
             setTimer(setElementModel,300000,1,source,25) 
         end 
end end 
addEventHandler ( "onPlayerDamage", getRootElement(), rewarOnWasted ) 

prueba y di si hay errores en el debugscript

Link to comment

sacame una duda tu.

en tu script en ocaciones usaste atacker, source y player

if (attackerweapon == 0) and getElementData(attacker,"zombie") then

if not getElementData (source,"zombie") then

getPlayerMoney ( attacker, 100 )

setElementData ( source, "zombie", true )

setPlayerTeam ( source, teamzombie )

setTimer(setElementModel,300000,1,player,25)

Link to comment
sacame una duda tu.

en tu script en ocaciones usaste atacker, source y player

if (attackerweapon == 0) and getElementData(attacker,"zombie") then

if not getElementData (source,"zombie") then

getPlayerMoney ( attacker, 100 )

setElementData ( source, "zombie", true )

setPlayerTeam ( source, teamzombie )

setTimer(setElementModel,300000,1,player,25)

Si lo use asi , porque me guiaba de un script. Y como Alex me dijo que me obtenga quien lo ataco puse eso. Pero igual no funciona :/ Me dice "bad argument @ - addEventHandler expected function at argument 3 , got nil

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...