Jump to content

Problemas


Plate

Recommended Posts

Posted
function teams() 
SAS = createTeam("SAS",0,255,255) 
Umbrella = createTeam("Umbrella",0,255,255) 
end 
addEventHandler("onResourceStart", resourceRoot, teams) 
  
function addthem (player) 
    if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SAS" ) ) then 
    setPlayerTeam ( player, SAS ) 
    elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Umbrella" ) ) then 
    setPlayerTeam ( player, Umbrella )  
    end 
end 
  
function addtoteamtimer() 
    setTimer(addthem,1000,1,source) 
end 
addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) 
addEventHandler ( "onPlayerSpawn", root, addtoteamtimer ) 

tengo un problema con ese script que me paso Yakuza

1): cuando los agrego al acl les digo que reconnecten para que aparescan en el team y no aparecen hasta que los agrego con el panel admin

2): a los que saco del acl aparecen en el team

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted
function addtoteamtimer() 
    setTimer(addthem,1000,1) 
end 
addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) 
addEventHandler ( "onPlayerSpawn", root, addtoteamtimer ) 

reemplaza

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

emm no funciona u.u pero gracias por tu ayuda si sabes otro metodo porfavor dimelo

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted (edited)

no entiendo porq no te funciona, ami me funciona bien. ya no es primer script que no te funciona.

a este script le as puesto codificacion utf-8?

Edited by Guest

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

No es el segundo que no me funciona y no se lo que es uft8

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

cuando guardes un script debes cambiarle la codificacion, mta esta exigiendo esa codificacion

abre el script con el bloc de notas,

cuando vallas a guardar, abajo sale para poner el nombre del archivo y mas abajo dice codificacion dise ANSI

le cambias a utf-8

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

y estas seguro que agregaste los grupos de ACL con el mismo nombre que señalas en el script?

y supongo ke lo agregaste este script como serverside

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

sip pero ahora que veo me tira error el script mira

teams/auto.lua:8: attempt to concatenate a boolean valvue 

y esto de acl

<group name="SAS"> 
        <acl name="Default"></acl> 
        <object name="user.Plate"></object> 
    </group> 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Proba con esto:

function teams ( ) 
    SAS = createTeam ( "SAS", 0, 255, 255 ) 
    Umbrella = createTeam ( "Umbrella", 0, 255, 255 ) 
end 
addEventHandler ( "onResourceStart", resourceRoot, teams ) 
  
function addthem ( player ) 
    if ( not player ) then 
        return 
    end 
  
    local accountName = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "SAS" ) ) then 
        setPlayerTeam ( player, SAS ) 
    elseif isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Umbrella" ) ) then 
        setPlayerTeam ( player, Umbrella ) 
    end 
end 
  
function addtoteamtimer ( ) 
    setTimer ( addthem, 1000, 1, source ) 
end 
addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) 
addEventHandler ( "onPlayerSpawn", root, addtoteamtimer ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

are_you_kidding_me_rage_face_meme_flyer-p244937788706157944bfpe8_400.jpg

Lo testie y funciona bien.

Hay algo que estas haciendo mal.

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Mira yo hize esto

MTA San Andreas/server/mods/deathmatch/resources/teams 

hay cree esto

teams.lua 

function teams() 
SAS = createTeam("SAS",0,255,255) 
Umbrella = createTeam("Umbrella",0,255,255) 
end 
addEventHandler("onResourceStart", resourceRoot, teams) 
  
  
function addthem (player) 
    if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SAS" ) ) then 
    setPlayerTeam ( player, SAS )  
    elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Umbrella" ) ) then 
    setPlayerTeam ( player, Umbrella ) 
    end 
end 
  
function addtoteamtimer() 
    setTimer(addthem,1000,1) 
end 
addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) 
addEventHandler ( "onPlayerSpawn", root, addtoteamtimer ) 

primero prove el tuyo y despues el de solid y no los combierte en el team a los players

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

postea el meta

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
    "" version="" type="script" name="" description="" /> 
        

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

ya funciono es que tenia un problema por que tenia el resoruce 2 veces pero creaba 4 teams me dirian como hacer que el resoruce cree 4 teams

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • Recently Browsing   0 members

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