Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. I would use tables. If pY = 10, then do that *index. (Loops)
  2. Or set wordBreak value on true
  3. Posting the script would help everyone here to help you.
  4. Et-win

    check

    He wants to check or the player is using the Jetpack for the first time. If so, then give an achievement. If not, do nothing. You will have to store it somewhere, you know?
  5. And for the maps: exports --( exports.resourcename:codename(argumentsifneeded) ) getResourceInfo Check here for all codes to get maps and gamemodes: https://wiki.multitheftauto.com/wiki/Re ... Mapmanager TIP: Unpack the table of the maps serverside.
  6. Et-win

    check

    I made an achievement system, and i'm trying to give the player an award after first time using jetpack.. function checkWhoHaveJetpack() for index, thePlayer in ipairs(getElementsByType("player"))do if doesPedHaveJetPack(thePlayer) then -- Trigger Achievement end end end setTimer(checkWhoHaveJetpack, 1000, 0) lol? Does this check or you have it for the first time? No. So shhh
  7. There is a guest account on every server. You have to unpack the table anyway to check it. Otherwise, use set/getElement/AccountData
  8. vips = { "Anubhav", "esporta", } local gPlayers = getElementsByType("player") for placeNumber, playerData in ipairs(gPlayers) do local gAccount = getPlayerAccount(playerData) if (gAccount ~= false) and (isGuestAccount(playerData) == false) then local gAccountName = getAccountName(gAccount) if (gAccountName ~= false) then local isVip = false for placeNumber2, stringData in ipairs(vips) do if (gAccountName == stringData) then isVip = true end end if (isVip == true) then outputChatBox("You are a vip.", playerData) elseif (isVip == false) then outputChatBox("You are not a vip.", playerData) end end end end Serverside and for all players. If you want it for 1 player only, you can edit the script.
  9. 'paymarker' is a timer, won't work indeed. You need to give up a marker. Use the timer like this: setTimer(function () marker1 = createMarker(stuff) end, time, times)
  10. local marker1 = createMarker(stuff) function test1() if (source == marker1) then outputChatBox("Marker1 hitted!") end end addEventHandler("onClientMarkerHit, getRootElement(), test1) Like that you can do it.
  11. Et-win

    Gui position

    local sWidth, sHeight = guiGetScreenSize() local windowX, windowY = 500, 450 local pX, pY = (sWidth/2)-(windowX/2), (sHeight/2)-(windowY/2) --Lets say you want to create a button in the center of the window: local X, Y = 150, 25 local pX, pY = (windowX/2)-(X/2), (windowY/2)-(Y/2) Try to understand it because I can't explain it in English.
  12. Just use fileCreate and recreate the file
  13. You downloaded it, for free I guess, so why selling it for money?
  14. Wow, 1 single reply by 70 views. e.e Thanks lol. More opinions are also appreciated.
  15. playSound And maybe some XML functions+fetchRemote
  16. Check the script again, it's a own made function... bad arguments osv, thats the error i get up osv? There isn't any 'osv' text in this script? Are you even sure it's this script? Otherwise post the whole error.......
  17. stopSound(sound) Also DON'T make 'sound' local.
  18. Any debugscript 3 errors? Repost script?
  19. Reshow the script, doubt that it is correct to be honest. Also, restarted the server and checked or it is still in the ACL file?
  20. if isAclGroup(psource,group) then Did you change 'group' to the ACL name? Doubt it. Are you also in the ACL group which you gave up? Doubt it too.
  21. Nothing, just "user."..Deadusergroup EDIT: That code from Saml1er just works?
  22. Because you have "user.Mark" there.
×
×
  • Create New...