Chaky Posted January 22, 2014 Posted January 22, 2014 Bueno arregle mi problema al editar el menu de spawns pero quiero saber como privatizar uno para admins que devo usar ?
0xCiBeR Posted January 22, 2014 Posted January 22, 2014 El spawn de @50p tiene una función para ello. Puedes asignarles contraseñas a cada grupo y sino editas el archivo s_main.lua con esto para que funcione con ACLs: Simplemente copia y reemplaza a partir de la linea 21 por esto: -- line 21: local classACL = aclGetGroup( class.name ); local plrAccount = getPlayerAccount( client ); if ( classACL ) then if ( not isGuestAccount( plrAccount ) ) and ( not isObjectInACLGroup( "user." .. getAccountName( plrAccount ), classACL ) ) then outputChatBox( "You are not member of this team/gang. Choose different team!", client, 200, 50, 50 ); requestMenu( client ); return; elseif isGuestAccount( plrAccount ) then outputChatBox( "If you are member of \"" .. class.name .. "\" then please log in before you proceed.", client, 200, 50, 50 ); requestMenu( client ); return; end end Tested it and it works. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Chaky Posted January 22, 2014 Author Posted January 22, 2014 El spawn de @50p tiene una función para ello. Puedes asignarles contraseñas a cada grupo y sino editas el archivo s_main.luacon esto: Simplemente copia y reemplaza a partir de la linea 21 por esto: -- line 21: local classACL = aclGetGroup( class.name ); local plrAccount = getPlayerAccount( client ); if ( classACL ) then if ( not isGuestAccount( plrAccount ) ) and ( not isObjectInACLGroup( "user." .. getAccountName( plrAccount ), classACL ) ) then outputChatBox( "You are not member of this team/gang. Choose different team!", client, 200, 50, 50 ); requestMenu( client ); return; elseif isGuestAccount( plrAccount ) then outputChatBox( "If you are member of \"" .. class.name .. "\" then please log in before you proceed.", client, 200, 50, 50 ); requestMenu( client ); return; end end Tested it and it works. Gracias probare y te aviso como me fue muchas gracias
0xCiBeR Posted January 22, 2014 Posted January 22, 2014 De nada. Avisa cualquier otra cosa que necesites. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Chaky Posted January 22, 2014 Author Posted January 22, 2014 De nada. Avisa cualquier otra cosa que necesites. jajaaja we seme jodio el spawn borre un grupo una class y se jodio :v
0xCiBeR Posted January 22, 2014 Posted January 22, 2014 Evita crear múltiples post sobre lo mismo. Y te recomiendo que te pases por estos dos temas: 1 2 DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
Recommended Posts