Jump to content

¿Por que no funciona?


Plate

Recommended Posts

Hola me podrian ayudar con este script es que no me funciona

function team(player) 
for i,v in ipairs(getElementsByType("faction")) do 
local f = " .. getElementData(v, "name") .." 
if (f == " .. getElementData(v, "name") ..") then  
setPlayerTeam(player, " .. getElementData(v, "name") ..") 
end 
end 
addEventHandler("onPlayerLogin",getRootElement(),team) 
addEventHandler("onResourceStart",getRootElement(),team) 
addEventHandler("onFactionInvite",getRootElement(),team) 

Link to comment
function team(player) 
for i,v in ipairs(getElementsByType("faction")) do 
local f =  getElementData(v, "name") 
if (f == getElementData(v, "name")) then 
setPlayerTeam(player, getElementData(v, "name")) 
end 
end 
addEventHandler("onPlayerLogin",getRootElement(),team) 
addEventHandler("onResourceStart",getRootElement(),team) 
addEventHandler("onFactionInvite",getRootElement(),team) 

Link to comment
  • Recently Browsing   0 members

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