Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. Oops, I found a bug. It was loading the mods as soon as the player spawned everytime. Fixed: *Cut *
  2. 1. *Cut * Hope that explanation was well enough to understand 2. And yes like that. The only thing you have to fill in: *Cut * You can the script even let read meta.xml and check for 'file' childs and then check or 'download' is set to false. And if so, get that file name and put it in a table. And yes, I like fully automatically systems.
  3. Try the exports in client-side. If that doesn't work, I'm afraid it's not possible to hide it for just one player. Or you have to edit scoreboard.
  4. Then or: It can't or: It's server-side, but I don't know what since I have no idea how db-codes work yet.
  5. Function? And where gets the date set and on what?
  6. Do that code (getElementData) in the 'playerQuit' function and send it withing the trigger.
  7. local id = getElementData(source,"id") The player left, so you can't do this.
  8. You have to change my files to your own files *Cut * You can enter it like this: *Cut * EDIT: You can put unlimited files.
  9. function checkVip() if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Vip"))) then triggerClientEvent(source, "pisvip", getRootElement(), "yes") else triggerClientEvent(source, "pisvip", getRootElement(), "no") end end addEvent("checkVip", true) addEventHandler("checkVip", getRootElement(), checkVip) add event onPlayerLogin That's all.
  10. But you can use that, it also returns the player who logged in. Just add if the eventName was onPlayerLogin source = thePlayer
  11. ... /refreshall And then see console to see errors... Or restart server.
  12. I totally don't understand it anymore now. Does it save or not? Does it set the attributes or not?
  13. Check console log in map 'logs' in map 'deathmatch' for any errors.
  14. xt = guiGetText(x) yt = guiGetText(y) zt = guiGetText(z) restrictedteamt = guiGetText(restrictedteam) spawnernamet = guiGetText(spawnername) rt = guiGetText(r) gt = guiGetText(g) bt = guiGetText(b) What does these return in outputChatBox(tostring(...)) ?
  15. spawnern = xmlNodeGetAttribute( child, "spawnername" ) Put this above: sa = xmlSaveFile( xml ) xmlUnloadFile( xml )
  16. Don't forget that +Max helped you too. --[[Event:]] onPlayerLogin
  17. Oki, so not supported. addEventHandler("onResourceStart",resourceRoot, function ( ) local gPlayersInGroup = {} for _, nMax in ipairs ( getElementsByType ( 'player' )) do local nAccount = getAccountName(getPlayerAccount(nMax)) if (nAccount) then if isObjectInACLGroup ( "user." .. nAccount, aclGetGroup ( "Admin" ) ) then blip1 = createBlip( 1586.1999511719, 1236.4000244141, 9.800000190735, 35, 2, 255, 0, 0, 255, 0, 99999, nMax) end end end end ) This works, don't understand why I didn't do this in first place, lol.
  18. addEventHandler("onResourceStart",resourceRoot, function ( ) local gPlayersInGroup = {} for _, nMax in ipairs ( getElementsByType ( 'player' )) do local nAccount = getAccountName(getPlayerAccount(nMax)) if (nAccount) then if isObjectInACLGroup ( "user." .. nAccount, aclGetGroup ( "Admin" ) ) then table.insert(gPlayersInGroup, nMax) end end end if (gPlayersInGroup[1] ~= nil) then blip1 = createBlip( 1586.1999511719, 1236.4000244141, 9.800000190735, 35, 2, 255, 0, 0, 255, 0, 99999, gPlayersInGroup ) end end ) I don't know or this works, just test it. All Admins should see it if 'visibleTo' supports tables.
  19. getPlayerFromName("Seba500PLK") To: nMax Or even better, make a table which puts all players into it who are Admin. Then create it with putting that table by 'visibleTo'. (Not really sure or it supports tables btw?)
  20. blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 99999.0, [b][u]visibleTo = getRootElement( )[/u][/b] ] )
  21. In-game press 't' and typ: /debugscript 3 Then start the resource again, and give all error's which are appearing, if any.
×
×
  • Create New...