Jump to content

Daño!


MisterZ

Recommended Posts

  • 4 weeks later...

No funciona lo hice de todas las formas que se me ocurren y no anda :/

Mi codigo.

local s = {"pro","std","poor"} 
addEventHandler("onPlayerJoin", resourceRoot, function() 
    for _, sk in ipairs(s) do 
    setWeaponProperty(28, sk, "weapon_range", 4000) 
    setWeaponProperty(29, sk, "weapon_range", 4000) 
    setWeaponProperty(30, sk, "weapon_range", 4000) 
    setWeaponProperty(31, sk, "weapon_range", 4000) 
    setWeaponProperty(32, sk, "weapon_range", 4000) 
    setWeaponProperty(33, sk, "weapon_range", 4000) 
    setWeaponProperty(34, sk, "weapon_range", 4000) 
end 
end) 

Link to comment
local s = {"pro","std","poor"} 
  
addEventHandler("onResourceStart", resourceRoot,  
function() 
    for _, sk in ipairs(s) do 
        setWeaponProperty(28, sk, "weapon_range", 4000) 
        setWeaponProperty(29, sk, "weapon_range", 4000) 
        setWeaponProperty(30, sk, "weapon_range", 4000) 
        setWeaponProperty(31, sk, "weapon_range", 4000) 
        setWeaponProperty(32, sk, "weapon_range", 4000) 
        setWeaponProperty(33, sk, "weapon_range", 4000) 
        setWeaponProperty(34, sk, "weapon_range", 4000) 
    end 
end) 

Link to comment
local s = {"pro","std","poor"} 
  
addEventHandler("onResourceStart", resourceRoot,  
function() 
    for _, sk in ipairs(s) do 
        setWeaponProperty(28, sk, "weapon_range", 4000) 
        setWeaponProperty(29, sk, "weapon_range", 4000) 
        setWeaponProperty(30, sk, "weapon_range", 4000) 
        setWeaponProperty(31, sk, "weapon_range", 4000) 
        setWeaponProperty(32, sk, "weapon_range", 4000) 
        setWeaponProperty(33, sk, "weapon_range", 4000) 
        setWeaponProperty(34, sk, "weapon_range", 4000) 
    end 
end) 

Nada :cry:

Link to comment

Al parecer, el máximo valor que se le puede otorgar es 350. Lo comprobé ejecutando un mini-código que hize en el runcode:

i = 0  
repeat  
    i = i+1  
    test = setWeaponProperty(28, "pro", "weapon_range", i)  
    outputChatBox(tostring(test and i), root)  
until not test 

Link to comment
Al parecer, el máximo valor que se le puede otorgar es 350. Lo comprobé ejecutando un mini-código que hize en el runcode:
i = 0  
repeat  
    i = i+1  
    test = setWeaponProperty(28, "pro", "weapon_range", i)  
    outputChatBox(tostring(test and i), root)  
until not test 

*-* Gracias sasu!!! :D FUNCIONA!!!

Link to comment
  • Recently Browsing   0 members

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