Plate Posted April 25, 2012 Posted April 25, 2012 https://community.multitheftauto.com/index.php?p= ... ls&id=2833 Necesito ayuda con este resoruce no anda porfavor ayuda Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted April 25, 2012 Posted April 25, 2012 https://community.multitheftauto.com/index.php?p=resources&s=details&id=2833Necesito ayuda con este resoruce no anda porfavor ayuda Especifica, hay mucho sobre este script que podria ser alterado o que necesite ayuda para ser optimizado... Developer @ MYVAL
Plate Posted April 25, 2012 Author Posted April 25, 2012 el resoruce no funciona con el grupo acl no crea los teams y tampoco une a la gente a ellos Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted April 25, 2012 Posted April 25, 2012 el resoruce no funciona con el grupo acl no crea los teams y tampoco une a la gente a ellos tienes a la gente en el ACL? Developer @ MYVAL
Plate Posted April 25, 2012 Author Posted April 25, 2012 cree un grupo y ese resource dice que creara un team para el grupo acl e unira a la gente de ese grupo a el cuand lo activo no pasa nada Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted April 25, 2012 Posted April 25, 2012 cree un grupo y ese resource dice que creara un team para el grupo acl e unira a la gente de ese grupo a el cuand lo activo no pasa nada pasame el script tuyo, ya editado y el ACL Group con su respectivo ACL Developer @ MYVAL
Plate Posted April 25, 2012 Author Posted April 25, 2012 ---------------do not change or touch this---------- Names={} Tags={} Colors={} ACL={} -------------------------------------------------------------- ---------------------------here put your clans read readme for instructions--------------------------------------- local names ={MarineForce} local tags ={"MarineForce"} local colors ={"#ff0000"} local acls={MarineForce} --- put the acl name if you wanna check ACL group or "none" if you don't wanna check -------- load------------ function loadTeams() for i,name in pairs(names) do Names[i]=name end for i,tag in pairs(tags) do Tags[i]=tag end for i,color in pairs(colors) do Colors[i] = color end for i,acl in pairs(acls) do ACL[i] = acl end end addEventHandler("onResourceStart",getRootElement(),loadTeams) --------------------------------------------------- ----- move on start------------------ function moveOnStart() for i,player in pairs(getElementsByType("player")) do check(player) end end addEventHandler("onResourceStart",getRootElement(),moveOnStart) ------------------------------------------------------------------------- -----------check---------------------------- function check (player) setPlayerTeam(player,nil) for i,tag in pairs(tags) do if string.find(getPlayerName(player),tag) then local account=getPlayerAccount(player) if ACL[i]~="none" and not isObjectInACLGroup ( "user." ..getAccountName(account) , aclGetGroup ( ACL[i] ) ) then return end local name = Names[i] local color = Colors[i] if not getTeamFromName(name) then createTeam(name,getColorFromString(color)) end local team = getTeamFromName(name) setPlayerTeam(player,team) end end end -------------------------------- ----------remove Empty Team ---------- function remove() for t,teams in pairs(names) do local team = getTeamFromName(teams) if team then if countPlayersInTeam ( team )==0 then destroyElement(team) end end end end ----------------------------------------------------- -------NickChange------------- function nick(old,new) setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerChangeNick",getRootElement(),nick) --------------------------------------------- -------Join-------------------------------- function join() setTimer(check,4000,1,source) end addEventHandler("onPlayerJoin",getRootElement(),join) ------------------------------- ---------Quit--------------------- function quit(player) setTimer(remove,1000,1) end addEventHandler("onPlayerQuit",getRootElement(),quit) ------------------------------------ ---------Login--------------------- function login() setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerLogin",getRootElement(),login) ------------------------------------ ---------Logout--------------------- function logout() setTimer(check,1000,1,source) setTimer(remove,1500,1) end addEventHandler("onPlayerLogout",getRootElement(),logout) ------------------------------------ el grupo es del cod4mw Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted April 25, 2012 Posted April 25, 2012 local acls={MarineForce} --- put the acl name if you wanna check ACL group or "none" if you don't wanna check en eso ponlo asi: local acls={"MarineForce"} son string, van entre comillas. Developer @ MYVAL
Plate Posted April 25, 2012 Author Posted April 25, 2012 sigue sin andar Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted April 25, 2012 Posted April 25, 2012 sigue sin andar dame tu IP (si es que peudo entrar) Developer @ MYVAL
Plate Posted April 25, 2012 Author Posted April 25, 2012 no tengo server osea si pero local que juego con mis amigos Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
BorderLine Posted April 26, 2012 Posted April 26, 2012 porq no haces uno tu solo, es facil te are un mini tutorial function teams() Admins = createTeam("Administradores",0,0,255) Mods = createTeam("Moderadores",0,255,0) end addEventHandler("onResourceStart", resourceRoot, teams) -- ya tenemos listos los teams, ahora a detectar si el jugador es admin o moderador function addthem (player) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player, Admins ) -- si el jugador es admin, lo pone al team cuya variable es Admin elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( player, Mods ) -- mismo pero al team de variable Mods end end function addtoteamtimer() setTimer(addthem,1000,1,source) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerSpawn", root, addtoteamtimer ) -- esto por si algien se remueve de las acl y al dar spawn sale del team o entra a otro team de otra acl 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
MrXz Posted April 26, 2012 Posted April 26, 2012 Intenta con esto local names ={"MarineForce"} local tags ={"MarineForce"} local colors ={"#ff0000"} local acls={"Everyone"} --- Sin Grupo en el ACL, Para todos los jugadores con el TAG, si en caso creaste un grupo en el ACL asegurate que sea el correcto
Recommended Posts