Jump to content

TadeoShakur

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by TadeoShakur

  1. means meta.xml - client.lua - server.lua ??
  2. Hello, today i wanted make some resources only for administrators. Ok, i've 2 resources: ''fly'' (for car) and ''superman'' (for person) I write it in fly: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then i wanted to do same thing in superman resource. I put the same script ^. But still all players can fly, and always i get the next problem in console: [21:23:01] ERROR: Client triggered serverside event superman:stop, but event is not added serverside Solutions?? PLEASE GUYS
  3. --[[---------------------------------------------------- -- server script main -- @author Banex -- @update 25/03/2016 ----------------------------------------------------]]-- function PlayerLogin(username,password) if username == "" then return triggerClientEvent(source,"login_text",source,"error","Coloque seu nome de usuario!") end if password == "" then return triggerClientEvent(source,"login_text",source,"error","Coloque sua senha!") end local account = getAccount ( username, password ) if account == false then return triggerClientEvent(source,"login_text",source,"error","Nome de usuario ou senha incorretos!") end logIn(source, account, password) triggerClientEvent(source,"onLogin",source) triggerClientEvent(source,"saveLoginToXML",source,username) triggerClientEvent(source,"login_text",source,"sucess","Logado com sucesso!") end addEvent("onRequestLogin",true) addEventHandler("onRequestLogin",getRootElement(),PlayerLogin) function registerPlayer(username,password) if username == "" then return triggerClientEvent(source,"login_text",source,"error","Coloque seu nome de usuario!") end if password == "" then return triggerClientEvent(source,"login_text",source,"error","Coloque sua senha!") end local account = getAccount (username,password) if account then return triggerClientEvent(source,"login_text",source,"error","Este nome de usuario já esta sendo usado!") end local accountAdded = addAccount(tostring(username),tostring(password)) if not accountAdded then return triggerClientEvent(source,"login_text",source,"error","Erro! Tente novamente com um novo nome de usuario ou senha!") end outputChatBox ("[usuario: #FFFFFF" .. username .. " #00FF00| Senha: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true) triggerClientEvent(source,"onRegister",source) triggerClientEvent(source,"login_text",source,"sucess","Conta criada com sucesso!") end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer)
  4. That's my 3° post here My ask is: How to hide the chat while the people is in login panel?? I've a login panel in my server, my username start with ''t'' and always i press it, i write my username in mainchat I can hide the chat while the people is in login panel?? THANKS GUYS
  5. if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then It work in fly cars. But in ''superman'' resource i get the next error: [13:34:30] ERROR: Client <(NAME HERE)> triggered server side event superman:stop, but event is not added serverside what i should do?? thanks ^^
  6. Okey, i've a resource called ''flying_cars'', all players can use it ._. How to make that resource only for admins
  7. Download Error The requested file does not exist. Please contact an admin.
  8. 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?
  9. Ok, it's work, although when i reconnect, i'm not into the clan ._. Sorry, i'm newbie on scripts//resources
  10. 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!
×
×
  • Create New...