Jump to content

glowdemon1

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by glowdemon1

  1. Try replacing line 36 with addCommandHandler("hsl-tarkasta", tarkastaLippu,target )
  2. It's really simple, math.floor(5.4212) would turn 5.4212 in simply 5. Math.ceil(5.4212) would turn 5.4212 into 6. It just rounds the numbers. Math.ceil goes to the first upper integer, math.floor goes to the first lower integer. Feel free to ask me again if you still don't understand.
  3. HEY MAN I HAVE FINALY FOUND SOMEONE WHO I CAN RELATE TO, MY CAPS LOCK BROKE OFF YEARS AGO AND I COULDNT TURN IT OFF. THINGS HAVE CHANGED, MY LIFE HAS NEVER BEEN THE SAME AGAIN AND PEOPLE THOUGHT I WAS RAGING SO I MADE A SERVER ABOUT IT.
  4. https://community.multitheftauto.com/ind ... ls&id=1557 Perhaps you could use this as a login panel.
  5. You could create a variable : texpos = 0 and then it add a value to that variable each time the client renders a frame.
  6. Agreed, I truly support this, not only leaked vG gamemodes but also uG. I'm not a gypsy but I predict that a wild Castilo will pop up posting a link about stolen resources accusations. It's not about the stolen resources, its about the people abusing these to get their own wallets filled, something needs to be done before the last batch of MTA roleplayers go to SAMP. And that would be dissapointing as MTA clearly has more features for roleplay servers than SAMP.And don't give me that "it's impossible to create your own RP gamemode" because that's utter bs.
  7. https://wiki.multitheftauto.com/wiki/GuiSetEnabled The problem is that when you click a GUI, it puts the GUI into the foreground. Therefore you use guiSetEnabled to freeze a GUI so you cannot put it in the foreground. https://wiki.multitheftauto.com/wiki/GuiMoveToBack Would move a GUI to the back incase its needed, but if you create the background before any other GUI, it will be auto-set to the back.
  8. Did you put anything in the server that wasn't made by you?
  9. https://wiki.multitheftauto.com/wiki/Se ... spawnDelay https://wiki.multitheftauto.com/wiki/To ... cleRespawn
  10. Yeah, I forgot to mention that this is fixed already. Thaks anyhow.
  11. If you want to create the vehicle by code, yo'ull have to use createVehicle instead of vehicle.
  12. Did you shut down your server whilst adding the resource to the ACL ? If not, shut it down before you edit it, as aparently it rollbacks the edits if your server is on.(Happened to myself)
  13. Thanks both of you, my guess would be to use PS and let images act like buttons.
  14. Hi, I'm looking to turn my buttons into something more stylish, I have tried using guiSetProperty to make them rectangular and change the colour, unfortunately this didn't go as expected. Anyone kind enough to explain this or even give an example ? Also would I be able to set padding around buttons and editfields ? Like in CSS ( padding:15px 45px; )
  15. Thanks Castilo, I used that until I found a solution to onClientJoin, but forgot to remove it after it was found.
  16. No errors at all, it does show the edit box but it doesn't get rid of all the windows, AKA guiSetVisible doesn't seem to work, I tried bypassing it couple of times for bugtesting but i was unable to solve this bug.
  17. This tutorial is not aimed for the community of advanced scripters, this is more of a tutorial for people who are new and do not know what to do. This tutorial will be really short. If you rather wish to skip this, head down to find the final code. If you're an advanced scripter, don't bother commenting with hate, people who are unknown to scripting and willing to get deeper into this could be helped by this. Please note that I did not made the centerWindow at first, credits go to laserlaser. Lets take the original code from https://wiki.multitheftauto.com/wiki/CenterWindow function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end If I were to do centerWindow(myGUI), the GUI would be completely centered, but that's not what we want, what we want to do is center the window and then add x/y values to it. Lets first change the function's arguments first, simply add addX and addY to it. Like this : function centerWindow(center_window,addX,addY) After we're done with that we'll go and do our next step. simply add the arguments "addX, addY" to guiSetPosition so that the script knows we have to add these values. guiSetPosition(center_window,x+addX,y+addY,false) This was the final step to complete the script, congratulations. The syntax of this function : string centerWindow( element TheElement int addX int addY) For instance : centerWindow(yourWindow,0,50) Would center the window and then add a value of 50 to the Y axis, resulting in a centered window, yet the GUI would be 50 "units" down. Could come in handy for stuff like this : http://puu.sh/4HiK7.jpg Final code. function centerWindow(center_window,addX,addY) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x+addX,y+addY,false) end
  18. Mh, could be something good for a beginner server like mine. Perhaps I should be able to upgrade this later to my own mysql-based system ?
  19. Mh, thanks again to both of you, just the information I needed. Any news on the account system ? Could anyone at the MTA team or even any scripter confirm the amount of max. registered users with the current mta acc system ? And would it get slower by time ?
  20. Thanks. + Good for semi-big data saving and managing What are the aprox. numbers of semi-big ?
  21. Hi, I'm looking to work on an account system, but my question is ; Will the MTA account system be better than a custom made one ? Does the MTA acc system have limits or does it work slow ? Any more information about the MTA acc. system would be helpful and apreciated. Thanks in advance. -Another question I had was the about sqlite and mysql. Which one would be better ? I'm mainly striving for a server with a community of around 50 active users around the day, maybe more in the future, I'm going to store a lot of data however ; Houses, vehicles, player info, vehicle info, house info, ...
  22. https://developers.google.com/translate ... cing?hl=nl - I'm sure this API could possibly solve you having to write each word. However, this comes with a price.
  23. glowdemon1

    Site

    If you created your own you should be experienced enough to run it. If it comes with PHP, which I assume, then you'll need to set it up using xamp or any other hosting solution.
  24. glowdemon1

    F11

    You mean re-texture it, or what do you specificaly mean ?
  25. givePlayerMoney(player, "1000") - I don't think you should put strings around an int value.
×
×
  • Create New...