Jump to content

Lordy

Members
  • Posts

    290
  • Joined

  • Last visited

Everything posted by Lordy

  1. MTA:SA isn't complete and I think you have asked this already gazillion times, why more?
  2. Lordy

    MTA is laggy

    You can contact the server administrators to fix their scripts
  3. Lordy

    MTA is laggy

    Also it might be dependant of the server you play on. If it has some clientside timer every 30 seconds which does a way big bunch of stuff for example, it might give you a lag. Also we have no idea what 'this server' were you talking about.
  4. Lordy

    99% Cant wait ?

    There are some IRC modules iirc, but I don't know much about them. Ask Sebas
  5. getElementsByType(elementType,getResourceMapRootElement(getThisResource(),mapName)) Will get exactly the wanted elements in specified map file, usually just getElementsByType(elementType,getResourceRootElement(getThisResource())) works too
  6. You need to pass the sourcePlayer argument to flash1/flash2 functions. You currently call the timer functions by command so change it to function flashl ( sourcePlayer ) local theVehicle = getPedOccupiedVehicle ( sourcePlayer ) if ( theVehicle ) then setVehicleLightState ( theVehicle, 3, 0 ) setVehicleLightState ( theVehicle, 3, 1 ) end end function flashr ( sourcePlayer ) local theVehicle = getPedOccupiedVehicle ( sourcePlayer ) if ( theVehicle ) then setVehicleLightState ( theVehicle, 2, 0 ) setVehicleLightState ( theVehicle, 2, 1 ) end end function carflashl (thePlayer) setTimer ( flashl, 1000, 10,thePlayer ) end function carflashr (thePlayer) setTimer ( flashr, 1000, 10 ,thePlayer) end addCommandHandler("lf", carflashl) addCommandHandler("rf", carflashr)
  7. If I recall correctly, I noticed that one in dp2.3 too and it indeed was about removing it from inside the handler, but later tested it in nightly and it was fixed.
  8. Only if it were server side script vercetti, but judging from the name, I think it's client side.
  9. As I know which spawn menu you have, I agree you could do with something else. For example you don't have to put huge buttons for each class, but use a gridlist and one spawn button. Or a tab panel which have all the classes as tabs or whatever, there are limitless ways to design a spawn menu so that it wouldn't take much room.
  10. String constructors/destructors shouldn't have to do anything with that I think. What there is though, have you defined server.outputChatBox function? It should give you attempt to call nil value and attempt to index a nil value or something like that. And if it's client side, it won't show on server console, so you need debugscript.
  11. Well I'm pretty sure nobody who has read your replies to 50p will answer to your threads with anything constructive anymore. You ask for help, he's trying to help you, you don't like seeing that he thinks somethings not right, you tell him to shut up. You have to understand nobody will ever try to help you if you act like this. For reference: https://forum.multitheftauto.com/viewtop ... 91&t=24604
  12. Did you really, really not understand that he means admin panel?
  13. Lordy

    Few questions.

    Umm what does Valhalla use them for? I can understand there already is a nice player identifying thing - the accounts. Also the serials etc. I wanted to say before that I can't think of a server which uses some third method of identifying people
  14. Lordy

    Skills

    Also there's that bug that explosions go through the walls, so you can attach satchels to the wrong side of wall and explode them in right time.
  15. Lordy

    Few questions.

    If you use command handlers' it automagically passes the player's argument to the function so you know who triggered it. I know of no server which needs to identify their players by assigning them IDs. Maybe you can be more specific what you want to do and we can give you a neater solution.
  16. Lordy

    getPlayerName

    getPlayerName is a 1.0 function, in dp2.3 you have to use getClientName.
  17. Just a note, it's hard to read With All Words Starting With Capital Letters.
  18. Yup, youtube sucks Estonians can't see it either
  19. Err. I didn't give you the new skin, now did I? The one that I did post wasn't the one at the last screenie.
  20. First, do you have that "koords.txt" in your resource folder? If you don't you need to createFile first. Also you wouldn't want to close it every time you call the function, rather use fileFlush to save it and close it on resource stop, or add more ways to open it.
  21. Lordy

    Few questions.

    Nope, if I just modify the script, you will not learn/understand anything and I'll have to come back tomorrow to modify even more of your scripts. setCameraTarget in wiki tells that you need to use a player as a second argument. If you want the camera to face west, you might want to use setCameraMatrix first and then toggle the fixed mode out. When declaring variables, by default all variables are declared globally. If you use local, it is defined only in that chunk of code. You should use it whereever you don't need a global variable. function omg() variable = "yay" -- global variable local localvar = "yat" -- local to the function end omg() -- and now if you try, variable is still "yay", but localvar is a nil value, as it's outside the chunk. Those chunks are basically everything starting from file to end of file, function declaration to end, do - end, then - end (or elseif) Vehicle limit should be about 65535, Coronas: 64, Checkpoints, Rings, Cylinders and Arrows combined: 32. There are more limits too like projectiles but I guess you shouldn't worry about them. Well you can put it into world with createVehicle, it will spawn to the nearest rail. Then I guess you could freeze it or lock or something. Or create it for all clients clientside (clientside vehicles can't be entered) I believe there was a function like setObjectStatic or something like that. Look for that in wiki You can't setVehicleOverrideLights,setVehicleHeadLightColor, I don't know about adding more lights. Handling is not about top speed, but anyway, to limit top speed you could onClientRender check for vehicle velocity and if it's bigger than limit, tone it down. Wiki IS the best explanation. It was made just for that we would not have to teach every and every person who wants to start scripting. All our explanations are based on wiki. If you can't understand it, you can't start scripting.
  22. better do: function logedin(thePlayer) -- Do something here you always want to do. end addEventHandler("onClientLogin", getResourceRootElement(getThisResource()), logedin) Tip use always English in a program file, it will be cleaner and better to understand. Why i'm using 'getResourceRootElement(getThisResource())' Easy, if you start up an other resource in game, it won't call the function of the event. Why o why. onClientLogin is totally irrelevant on which resource was it fired on. It's not onResourceStart there, it's onClientLogin.
  23. Err.. right. You want us to help you but are so keen on protecting the thing you want help with? That's not really a hard thing to do and I doubt anyone here would steal your script. Easier to make own. You make a gui window, hide it, when player joins, show it, it will have buttons grove and ballas. Then you use those event handlers, if clicked on grove, trigger a server event which spawn you to grove team and vice versa.
  24. Lordy

    Is there

    You mean like "Is there", "client and server", "I need help guys please help me", "client side", "does anyone know", "jump plus"? Others on the first page seemed okay
  25. Also there is a bug that says connection timed out when server is full. http://bugs.mtasa.com/view.php?id=4682
×
×
  • Create New...