Jump to content

Entre cierta y cierta cantidad.


Alexs

Recommended Posts

porq no pruebas algo como esto

  
exports.Bio_Scoreboard:scoreboardAddColumn("Rangos") 
function setrange(player) 
      local account = getPlayerAccount(player) 
      local zombieKills = getAccountData(account,"Zombie kills") 
    local nuevo = "Nuevo" 
    local iniciado = "Iniciado" 
if (zombiekills > 0) and (zombieKills < 5) then 
setElementData ( player, "Rango", nuevo )  
elseif (zombiekills > 6) and (zombieKills < 99) then 
setElementData ( player, "Clan", iniciado ) 
end 
end 
  
  
function timer() 
setTimer( setrange, 1000, 1, source ) 
end 
addEventHandler("onPlayerLogin", getRootElement(), timer) 

nose si funcione, pero si funciona sige asi con los rangos susesivamente con los elseif y claro antes dejando claro que es zombiekill

Link to comment
porq no pruebas algo como esto
  
exports.Bio_Scoreboard:scoreboardAddColumn("Rangos") 
function setrange(player) 
      local account = getPlayerAccount(player) 
      local zombieKills = getAccountData(account,"Zombie kills") 
    local nuevo = "Nuevo" 
    local iniciado = "Iniciado" 
if (zombiekills > 0) and (zombieKills < 5) then 
setElementData ( player, "Rango", nuevo )  
elseif (zombiekills > 6) and (zombieKills < 99) then 
setElementData ( player, "Clan", iniciado ) 
end 
end 
  
  
function timer() 
setTimer( setrange, 1000, 1, source ) 
end 
addEventHandler("onPlayerLogin", getRootElement(), timer) 

nose si funcione, pero si funciona sige asi con los rangos susesivamente con los elseif y claro antes dejando claro que es zombiekill

Por que el mio ya funciono xD

Link to comment
  • Recently Browsing   0 members

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