TadeoShakur Posted March 22, 2016 Share Posted March 22, 2016 Necesito ayuda con un problema que estoy teniendo. Ultimamente estuve buscando soluciones para mi error, el cual es que al crear un ''clan'' ''team'' con el panel de administrador (P) al reconnectar se borraba. Busque un script llamado ''teamsaverbynew'' el cual me funciono, pero al cerrar el servidor el clan se borra automaticamente, ¿alguna solución?, MUCHAS GRACIAS! ------------------------------------------------------------------------------------------------------------------------------------------------------ I need help with a problem I'm having. Lately I've been looking for solutions for my mistake, which i create a clan//team with the admin panel (P) but when i reconnect it's erased. A script called '' teamsaverbynew '' which worked for me, but when i close the server the clan is automatically deleted, any solution ?, THANK YOU! Link to comment
Captain Cody Posted March 22, 2016 Share Posted March 22, 2016 function createTeamsOnStart () teamAdmmin = createTeam ( "teamname", r, g, b) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) Change the variables, then add this script server side, it'll automaticly create your team. Link to comment
TadeoShakur Posted March 22, 2016 Author Share Posted March 22, 2016 Ok, it's work, although when i reconnect, i'm not into the clan ._. Sorry, i'm newbie on scripts//resources Link to comment
EstrategiaGTA Posted March 22, 2016 Share Posted March 22, 2016 Ok, it's work, although when i reconnect, i'm not into the clan ._.Sorry, i'm newbie on scripts//resources Add this to the script: function MoverteATuClan ( ) local myNick = "nick" ---pon ahí tu nick local myTeam = getTeamFromName("Nombre del Team") if getPlayerName(source) == myNick then setPlayerTeam(source,myTeam) end end addEventHandler("onPlayerJoin", root, MoverteATuClan) Link to comment
TadeoShakur Posted March 22, 2016 Author Share Posted March 22, 2016 I'm very thankful, it's work 4 me, but if another player create a team in my server, he will lost his clan when he reconnect? Link to comment
Captain Cody Posted March 22, 2016 Share Posted March 22, 2016 https://community.multitheftauto.com/in ... s&id=12315 Scan that, it'll give you an idea of what you'll need to do. Link to comment
TadeoShakur Posted March 22, 2016 Author Share Posted March 22, 2016 Download Error The requested file does not exist. Please contact an admin. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now