Jump to content

GhostXoP

Members
  • Posts

    402
  • Joined

  • Last visited

Everything posted by GhostXoP

  1. I wrote something big and thought out, but because there's an MTASA and multitheftauto used it then skipped and asked for me to log in. I'm done here. Ill leave it at, I do suppose that syncing does use bandwidth (ofcourse?) my point is, if the client has a slow computer and poor connection speed, why rely on them to host it? If the server could do it, you would only need a download speed to listen to the server, and send your reactions. Is what im getting at. Constant Internet speed, Constant Processing Performance. No, it isn't easy, If you have to go through an interpreter to get to the processor, there will be a speed decline.
  2. If i use clients, it can lag like most zombie scripts will because of the data transfer, it can also lag because of lesser powerful client hosts. The servers will always be a constant performance, never a different server per session. What i could do is have a client, log in and play the game directly at the server, while the server is hosting, so it uses its performance and host the zombies off the client at the server logged into the server. Do you see what im getting at? Using a client, but this clients computer IS the server. So the performance is still constant. But not hosting zombies off other players
  3. Ok what i really mean't then, was all events ped's have to also trigger on the server so we can act off them.
  4. triggerClientEvent is out of the question, i don't want all the work load to be done on the client, but on the server Do tell about the set element data, can you move them setting keys? or have a loop client side, checking and reading the keys to move zombies, if the loop then not that either.
  5. I've been working on a zombie system spec. It requires Multi theft auto to be able to control Peds from the server. This is so zombies travel around, and they don't just spawn around you like the typical little script does. This one spawns them in areas, and as you pass them they follow you, they make decisions, or group up and raid towns of lives. Id really like to do this, and make this a possibility, if there was some way the server could control peds from serverside. If its not available, it would be a pretty nice christmas present.
  6. Yes, it doesnt set the first one.
  7. wait, on client marker hit, if i set root to the second argument (addeventhandler). The source would still be the marker hit, correct? I do setElementData(Marker, "MarkerType", "frontdoor", true) setElementData(Marker, "ID", Building.ID, true) Only the Id gets set.
  8. I had set a markers data server side after creating it, but client side it seems the element data isnt there I had set the sync variable. Arent markers able to hold element data?
  9. Since its a client event, would the argument "hitPlayer" be necessary? If this event ever goes off its always the local player since its client side. Would i need to use this argument ever? I imagine only the source would ever be used to know what marker the client, "myself" hit?
  10. Id like to run an event handler when a marker is hit, any marker. Should i use getRootElement? Or Marker? Is there a parent Marker I can use?
  11. So your saying, if i just cancel the event client side it will not affect players, and players can be damaged?
  12. The timer would bog down a server, especially if i have hundreds of peds in businesses. Canceling ped damage, would keep the player from being damaged too correct? Or would they be classified as peds too?
  13. Theres nothing server side that will make an NPC non kill-able? What if i remove collision ?
  14. What function can i use to make a ped indestructible?
  15. If i create a marker server side, and a user walks into it, will the onMarkerHit event trigger client side?
  16. If i select data from a row using dbquery and dbpoll the handle with a -1 timeout, will it return false if the row doesnt exist?
  17. Regularly, sqlite is used to store user data from accounts, well what i would like to do is store data into a table. I dont want to add rows, because only one row would ever be used. new table -> new row -> DATA If i am only ever going to use one row, is there a way that i can just do new table -> data ? so i can just load the data from the table to memory? Rather than selecting from a row?
  18. So insert or ignore should work? it inserts just like insert if not exist?
  19. Is this possible? INSERT INTO ?? IF NOT EXISTS ?? (?,?) or INSERT INTO ?? (?,?) IF NOT EXISTS ?? or IF NOT EXISTS ?? INSERT INTO ?? (?,?)
×
×
  • Create New...