Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. the best way will be to reinstall mta to clean, new folder, and start over. and the only thing you should change in acl is to add one line: <object name="user.Pro"/> don't try to touch something else. i just found more bugs in your old acl - its too messy to clean it up, better start with fresh one. think while you are doing anything, and make a backup copies before new "move"
  2. function and then else if (btw: its elseif in lua, without space)? or if its a part of code - post whole code. most ppl think they can show only part of code and we will know the bug, but mostly they are showing wrong part of code
  3. check Admin resource - there is such function and xml files with countries list assigned to ip's. i cant help you more, as we are not fullfilling request here, but helping others when they are stuck with scripting. you should get basic knowledge about resources, meta.xml, xml files and lua language
  4. dzek (varez)

    Wasted

    if you can't fix SYNTAX errors you shouldn't ask for help but keep reading tutorials:/ hospitals = { { 0, 0, 10 }, { 100, 100, 10 }, -- forgot about "," { 200, 400, 10 } } these are coords of hospitals, btw notice i forgot about one "," character also remove your spawning code, and be sure to fix all syntax errors made by me (i was writting this in browser, you can use Unofficial MTA Editor to see syntax errors before copying the script to server)
  5. I mean: you could try to uninstall it if you have this installed.
  6. function loginHandler() setTimer(function(connected_player) local veh = getPedOccupiedVehicle(connected_player) if (veh) then setVehicleColor(veh,0,0,0) else outputDebugString("something is wrong! car cannot be found!") end end, 50, 0, source) end addEventHandler("onPlayerLogin", root, loginHandler) but this way can be bandwidth (lags!) and cpu (even more lags) consuming! better change car color on pickup pick up (race resource is triggering some event on this), or just onPlayerVehicleEnter tip: arguments for handling function of this event are: vehicle theVehicle, int seat, player jacked
  7. i dont know what you mean..
  8. dzek (varez)

    Wasted

    dude, i gave you full script, you didnt use it, and asking why its not working??!!
  9. dzek (varez)

    Wasted

    post script, i written this in browser so maybe i did something wrong.. tell me which coords are in LS
  10. OFFTOPIC: dunno, see these topics: viewtopic.php?f=13&t=29330 viewtopic.php?f=13&t=29162
  11. dzek (varez)

    Wasted

    this will spawn in the nearest location, it's NOT based on areas, but distance to hispital! hospitals = { { 0, 0, 10 }, { 100, 100, 10 } { 200, 400, 10 } } function findNearestHostpital(thePlayer) local nearest = nil local min = 999999 for key,val in pairs(hospitals) do local xx,yy,zz=getElementPosition(thePlayer) local x1=val[1] local y1=val[2] local z1=val[3] local dist = getDistanceBetweenPoints2D(xx,yy,x1,y1) if dist nearest = val min = dist end end return nearest[1],nearest[2],nearest[3] end end addEventHandler("onPlayerWasted", getRootElement(), function() local xx,yy,zz = findNearestHostpital(source) spawnPlayer(source,xx,yy,zz) end) the way you are looking for is a bit different and is based on getZoneName() but the wiki is down, and i dont know the zones list and i KNOW they won't ;p getZoneName() is the best way - its something like getZoneName()
  12. dzek (varez)

    Wasted

    https://community.multitheftauto.com/ AFAIR there was such resource, i cant remember its name though
  13. yup, i think they are on same server as wiki - so they are both down
  14. If you bough a server you dont need to forward any ports! Just wait 24h to let game-monitor add it. Your accounts.xml file is invalid, that's one, and accounts.xml was replaced with internal.db since 1.0.4 version, and accounts.xml is no longer used. Add admin resource to autostart, register from ingame using "/register username password", and then stop server, add your username to ACL, start your server.
  15. can you tell name of that application? 6 years ago ive used Teleporter Pro to download few sites and it was pretty good. Dunno whats the best now. And afair - there was everyday database dumps of wiki somewhere here - if so - i can setup a wiki script with that database
  16. i'll try to make a html copy of wiki when it goes back up, and host it from own server - because our wiki is going down way too often...
  17. there is a little random to prevent spawning every player in exact same position. this random have very little range (afair 5-10 units) added to X, Y
  18. Some scripts you can download from: https://community.multitheftauto.com/ You can create your own, but you need to learn lua language. Unfortunately our wiki is down, but here's the link, you should try it when wiki goes back up again: https://wiki.multitheftauto.com/
  19. one guy in this post started having problems after installing .NET Framework. Do you have this thing installed?
  20. i just installed legal (not pirated) clean copy of WinXP SP3 and installed winamp, winrar, opera, downloaded msn install, then .net install, after restart everything became unusuable im rather experienced pc user, tried a lot before giving up and reinstalling again.
  21. and are you logging in into account named Pro?
  22. hmm, maybe im using wrong applications - but i really dont have to install .net to be happy. and last time upgrading to .net 3 only to install MSN (im using older version now) killed my just-installed system - and i will not forget it, never! and i think uninstalling this will be safe for cris12821 - probably .net was needed only during install.. he can re-install it anyway
  23. <object name="user.|H~9|#000000Pr#ffff00o"/> this shouldnt be your nickname but your username that you are using while logging in with "/login username password"
×
×
  • Create New...