Jump to content

maky55

Members
  • Content Count

    57
  • Joined

  • Last visited

Community Reputation

0 Neutral

About maky55

  • Rank
    Snitch
  • Birthday 15/02/1998
  1. Thank you, I can't believe I didn't think to change the name of the command!
  2. Hello, scripting newb here! I'm trying to make a test script that output True or False depending if the user is on the specified account (2kjoe2k), here is the script: function getPlayerAccountName(playerSource, commandName) local accname = getAccountName(getPlayerAccount(playerSource)) if accname == "2kjoe2k" then outputChatBox("True") else outputChatBox("False") end end addCommandHandler("test", getPlayerAccountName) It's probably because I'm a newb but I can't get it to work. It doesn't post anything to chat and I get no e
  3. Neves768 no work Instaid of saying no work, give us the problem that happens..
  4. Yeah thats what I'm trying to do. Ill try your script, thanks. Edit: I've tested the script, and it works just as I wanted to. It looks alot easier then I was trying to do. Thank you.
  5. Hello again. Thinking I might change my name to scripting newb. I'm pretty slow at this. Heres my problem, I want to make it so that if a player logs in and has a certain account name (terminator), he will spawn in SF airpot. But if he has a different account name (maky55) then he spawns at ls docks. Here are the 3 scripts I have: Server 1: local thePlayer = source function registerHandler(username, password) local account = getAccount ( username ) if ( not account ) then local register = addAccount(username, password) if ( register ) then outp
  6. maky55

    Spawn player.

    Thank you! I didn't know == meant exactly equal to! Thanks again.
  7. maky55

    Spawn player.

    Hello . I'm wondering whats wrong with this section of the script I have: local posX2, posY2, posZ2 = -1370.1851806641, -205.50845336914, 6 function joinHandler2() local account = getPlayerAccount(source) if account("Terminator") then spawnPlayer(source, posX2, posY2, posZ2) fadeCamera(source, true) setCameraTarget(source, source) end addEventHandler("onPlayerWasted", getRootElement(), joinHandler2) end I suspect i've got this line wrong: if account("Terminator") then I've tried many different ways of using this but I'm too newb . Thi
  8. The video is private. Instaid of private, put it as unlisted
  9. I don't think bfbfbf00 is a colour code. If you want gray try "7c7c7c" for a darker gray, "7e7979" for an average gray or "aeaeae" for a lighter gray (If we are talking about colour codes).
  10. maky55

    Null

    Hey guys! Well, today this isn't a broken script, it's a broken ACL . I started the server file as usual, and it was loading. Almost straight away, it came up with 'Error parsing the ACL (Access Control List) file. Or something like that and the server closed. I thought this was odd because I hadn't edited the ACL file. I decided to open it, and this is what I saw: nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull and it went on for quite a while. (the null text was surrounded by a black box) I then went to see the backups of the
  11. Can I ask how you can delete accounts from the server? I created many when testing the script.
  12. Here is your problem, you are checking if the account already exists, then you add it, which makes no sense. Change these two lines to: local account = getAccount ( username ) if ( not account ) then Thank you at first, it didn't work, but I did some editing and got it to work!: At first, I did this: guiElements["register_button"] = guiCreateButton(0.715, 0.7, 0.25, 0.20, "Register", true, guiElements["login_window"]) guiElements["login_button"] = guiCreateButton(0.415, 0.7, 0.25, 0.20, "Log In", true, guiElements["login_window"]) addEventHandler("onClientGUIClick", guiEleme
  13. Well, the button came up with the word 'Register' on it, but it didn't register. What I added was probably wrong anyway. And the script was already ACL. And I'm getting no errors in debugscript 3
  14. That's wrong, the function name is outputChatBox Thanks for pointing that out for me , but that bit doesn't matter too much, cause it's the script that didn't work. I just need to know how to add a register button. Thanks anyway.
×
×
  • Create New...