Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. there are more than enough unused object ids (by unused i mean objects that you don't find anywhere anyways) yeah, but ppl that creates resources with custom models idk why uses actually used objects..
  2. there are more than enough unused object ids (by unused i mean objects that you don't find anywhere anyways) yeah, but ppl that creates resources with custom models idk why uses actually used objects..
  3. OK, i don't know a solution, but could you tell me for WHAT you need all that space? ~16km^2.. I'm curious about this
  4. OK, i don't know a solution, but could you tell me for WHAT you need all that space? ~16km^2.. I'm curious about this
  5. ive just copied this line, thinking its ok
  6. ive just copied this line, thinking its ok
  7. replace getPlayerName with getPlayerAccount and ... read? i`ve told you to put lua code in [lua] [/lua] tags..
  8. replace getPlayerName with getPlayerAccount and ... read? i`ve told you to put lua code in [lua] [/lua] tags..
  9. paste here config file you have messed up something
  10. paste here config file you have messed up something
  11. in openGate just check if playerSource is an admin. look at wiki for accounts functions and when pasting your code, use [lua] --your code [/lua] tags
  12. in openGate just check if playerSource is an admin. look at wiki for accounts functions and when pasting your code, use [lua] --your code [/lua] tags
  13. wow, a messy code.. try to get basics of Lua, its probably your 1st script and its too hard, i think you dont know any progamming logic function HideWindow() guiSetVisible(wdwLogin,false) showCursor (false) -- you forgeet about this end function createWindow ( res ) -- this function creates a login window and show the cursor wdwLogin = guiCreateWindow(226,146,372,233,"[Admin Login System]",false) guiWindowSetMovable(wdwLogin,false) guiWindowSetSizable(wdwLogin,false) tabpanel = guiCreateTabPanel(0.0242,0.0858,0.9489,0.8755,true,wdwLogin) tab1 = guiCreateTab("Login",tabpanel) login = guiCreateButton(0.1000,0.8611,0.2436,0.1167,"Login",true,tab1) username = guiCreateLabel(0.0113,0.1167,0.3768,0.15,"UserName:",true,tab1) guiLabelSetColor(username,255,255,255) guiLabelSetVerticalAlign(username,"top") guiLabelSetHorizontalAlign(username,"left",false) guiSetFont(username,"default-bold-small") password = guiCreateLabel(0.0113,0.2889,0.3768,0.15,"Password:",true,tab1) guiLabelSetColor(password,255,255,255) guiLabelSetVerticalAlign(password,"top") guiLabelSetHorizontalAlign(password,"left",false) guiSetFont(password,"default-bold-small") username = guiCreateEdit(0.2266,0.1,0.3598,0.1389,localPlayerName,true,tab1) password = guiCreateEdit(0.2266,0.2611,0.3598,0.1389,"",true,tab1) Canel = guiCreateButton( 0.4, 0.85, 0.20, 0.15, "Cancel", true,tab1 ) guiEditSetMasked(password,true) tab2 = guiCreateTab("Info",tabpanel) showCursor (true) -- you forgot about this addEventHandler("onClientGUIClick",Cancel,HideWindow,false) -- "HideWindow" will be fired when somebody hits cancel end addEventHandler ( "onResourceStart", getRootElement(), createWindow ) -- "createWindow" will be fired when resource starts/player join that is better, right? download MTA Script Editor, it will help you a lot, really and dont forget about https://wiki.multitheftauto.com/wiki/Main_Page (on the menu on the left, there are useful lists of Events/Functions) good luck ps. SCRIPT ABOVE NOT TESTED, if you messed something more than i think, try to fix it by yourself
  14. wow, a messy code.. try to get basics of Lua, its probably your 1st script and its too hard, i think you dont know any progamming logic function HideWindow() guiSetVisible(wdwLogin,false) showCursor (false) -- you forgeet about this end function createWindow ( res ) -- this function creates a login window and show the cursor wdwLogin = guiCreateWindow(226,146,372,233,"[Admin Login System]",false) guiWindowSetMovable(wdwLogin,false) guiWindowSetSizable(wdwLogin,false) tabpanel = guiCreateTabPanel(0.0242,0.0858,0.9489,0.8755,true,wdwLogin) tab1 = guiCreateTab("Login",tabpanel) login = guiCreateButton(0.1000,0.8611,0.2436,0.1167,"Login",true,tab1) username = guiCreateLabel(0.0113,0.1167,0.3768,0.15,"UserName:",true,tab1) guiLabelSetColor(username,255,255,255) guiLabelSetVerticalAlign(username,"top") guiLabelSetHorizontalAlign(username,"left",false) guiSetFont(username,"default-bold-small") password = guiCreateLabel(0.0113,0.2889,0.3768,0.15,"Password:",true,tab1) guiLabelSetColor(password,255,255,255) guiLabelSetVerticalAlign(password,"top") guiLabelSetHorizontalAlign(password,"left",false) guiSetFont(password,"default-bold-small") username = guiCreateEdit(0.2266,0.1,0.3598,0.1389,localPlayerName,true,tab1) password = guiCreateEdit(0.2266,0.2611,0.3598,0.1389,"",true,tab1) Canel = guiCreateButton( 0.4, 0.85, 0.20, 0.15, "Cancel", true,tab1 ) guiEditSetMasked(password,true) tab2 = guiCreateTab("Info",tabpanel) showCursor (true) -- you forgot about this addEventHandler("onClientGUIClick",Cancel,HideWindow,false) -- "HideWindow" will be fired when somebody hits cancel end addEventHandler ( "onResourceStart", getRootElement(), createWindow ) -- "createWindow" will be fired when resource starts/player join that is better, right? download MTA Script Editor, it will help you a lot, really and dont forget about https://wiki.multitheftauto.com/wiki/Main_Page (on the menu on the left, there are useful lists of Events/Functions) good luck ps. SCRIPT ABOVE NOT TESTED, if you messed something more than i think, try to fix it by yourself
  15. i think its impossible to explain all those things in just one single post.. you have two ways: first get the MTA Script Editor - it will help you a lot then: - download some resources (starting from really simple! you must know the basics) and read & analize them - or getting through tutorials. Wiki is very helpful too. Good luck
  16. i think its impossible to explain all those things in just one single post.. you have two ways: first get the MTA Script Editor - it will help you a lot then: - download some resources (starting from really simple! you must know the basics) and read & analize them - or getting through tutorials. Wiki is very helpful too. Good luck
  17. i was thinking about it too.. as i dont want to create whole new map, just change some part.. and im sad that you cannot import custom objects instead of replacing
  18. i was thinking about it too.. as i dont want to create whole new map, just change some part.. and im sad that you cannot import custom objects instead of replacing
  19. hehe funny my server is up for about month (excluding the times i've restarted it), no problems with it at all
  20. hehe funny my server is up for about month (excluding the times i've restarted it), no problems with it at all
  21. theres another "bug" in GTA (not only MTA). if you get player too far from center (i dunno how far), when your player are chaning its position it.. shakes.. in vehicle/on foot, no difference.. and about "Z" limits. I was unable to set Z position to 70 000 000, but 700 000 works ok. however, this fits my needs (few hours of player free falling)
  22. theres another "bug" in GTA (not only MTA). if you get player too far from center (i dunno how far), when your player are chaning its position it.. shakes.. in vehicle/on foot, no difference.. and about "Z" limits. I was unable to set Z position to 70 000 000, but 700 000 works ok. however, this fits my needs (few hours of player free falling)
×
×
  • Create New...