Jump to content

denny199

Members
  • Posts

    877
  • Joined

  • Last visited

Everything posted by denny199

  1. You can always use elementdata storing on the vehicle, like this: setElementData ( vehicleElement, "car:owner1", getPlayerSerial ( playerElement ) ) setElementData ( vehicleElement, "car:owner2", getPlayerSerial ( playerElement ) ) setElementData ( vehicleElement, "car:owner3", getPlayerSerial ( playerElement ) ) --etc. For chekking: local serial = getPlayerSerial(playerElement) if not (serial == getElementData(vehicleElement, "car:owner1") or not (serial == vehicleElement, "car:owner2") or not (serial == vehicleElement, "car:owner3") then --excecute end Or if you prefer tables: local owner1 = {} local owner2 = {} local owner3 = {} --etc. owner1[vehicleElement] = getPlayerSerial(playerElement) owner2[vehicleElement] = getPlayerSerial(playerElement) owner3[vehicleElement] = getPlayerSerial(playerElement) --etc. and then for chekking: local serial = getPlayerSerial(playerElement) if not (serial == owner1[vehicleElement]) or not (serial == owner2[vehicleElement]) or not (serial == owner3[vehicleElement]) then --excecute end Good luck!
  2. I need to win this topic
  3. uh im trying to unzip a file that I made the resource download, I don't think that it would work.. You can always use your common sense for this, there are many different ways to change lua files. Like this method: --Check for updates on the resource(like you did on your resources). If there's a update then --Download the files from your website ( via fetchremote server side), and then use fileWrite for writing in the specificed updated file. And voila, profit. if there's not a update then --return end. PS. (off-topic btw, don't start a fight against me here, please use the PM if you want a discussion LOL)
  4. Thats a very nice idea, I'm still working on the costum vehicle physics system, and the mapping ofcourse, I saw how the DayZ changed everything, it became more KOS, indeed, I'm making soon a post for my choosen gamemode. Thanks everyone for the ideas!
  5. Take a look at this resource. https://community.multitheftauto.com/in ... ls&id=7417
  6. triggerEvent, will work. For example in login_c.lua is there a function for hiding the window, and you want to show the other windows while it hiding and you have on arenas_c.lua a eventhandler called "derp:polate", then you can use this: triggerEvent ( "derp:polate", localPlayer ) feel free to ask us more if you still can't figure out.
  7. Thats for setting the data, just convert the day that the player will be removed from the ACL, and then check everytime the date when the player is logging in. Let's take an example; I'm buying sMod on your server, the data will store on my account until 01/09/2013, and i'm directly added to the ACL group. I'm logging again in on 30/08/2013, the script will check and do nothing I'm logging again in on 02/09/2013, the script will check again and will remove me from the list. This function also might help you: https://wiki.multitheftauto.com/wiki/GetRealTime Good luck
  8. So, another one wants to re-make SAUR?
  9. LMAO, did you made that all up by yourself?
  10. It isn't, I was testing MTA:Eir and they implemented GTA:VC and GTA:III into the game, but if you want to play on a vice city map with friends, then you should download the gta VC mp client. I mean that,you replace all objects from vc in mta and then you have map it or convert map to mta. Exactly, the MTA:Eir developer made an GTA map reader, those would convert all the objects to the objects rigtly on the perfect location, pretty nice playing with the developers on MTA:Eir on a vice ciry map, we also tried the GTA:III map, that was pretty funny too.
  11. I saw that, I'm feeling with you.....
  12. https://wiki.multitheftauto.com/wiki/SetTeamFriendlyFire
  13. Are you good for nothing on these forums? rofl, atleast is someone carring about the mta communty
  14. Depends how you want to use it, The fast way for scripting is with elementData, but more bandwidth usage, but less updates needed to make for every player Or Tables, you need to update it, and if you want to get the table result on the client side you need to trigger the table to the client's pc, with elementData isn't this needed, you can with elementData loop trough all the players and then get their element data. So, it depends how you want your scripting way, fast with more bandwidth usage or tables with less bandwidth usage. I'm using for all my scripts tables for storage, since it's pretty easy(in my way atleast).
  15. The GTA textures have each an name, this is named in the .dff file. Let's say I'm having a costum car. There's one .dff file and one .txd file, in the .TXD file are all the images of the car (body,spoiler,hood,windows,sfeeringwheel,wheels) and the dff contains ofcourse the 3d model, if you are opening the 3d model with 3ds max for example and then select de texture editor, it will show you all the names for example: "car_hood", this is the texture name that is inside the .txd folder. If you are changing the .txd file with lets say better textures, it will still work. but if you are deleting one texture from the .txd file you won't see that texture on the object(white).
  16. denny199

    An Question

    Thats weird, "onPlayerQuit" is server side and it will check if a player quit, with these reasons: "Unknown" "Quit" "Kicked" "Banned" "Bad Connection" "Timed out" You should try to make a ticket at https://bugs.multitheftauto.com/my_view_page.php if it happens again, try to update your server first.
  17. denny199

    Table Dialogs

    No problem, and good luck with the scripts!
  18. denny199

    Table Dialogs

    dialogs = {} function createAttentionDialog ( text ) index = index + 1 if not dialogs[index] then dialogs[index] = {} else return createAttentionDialog ( text ) end local screenW, screenH = guiGetScreenSize() -- tabs = #dialogs[index] + 1 dialogs[index].window = guiCreateWindow((screenW - 386) / 2, (screenH - 185) / 2, 386, 185, "Attention!", false) -- guiWindowSetSizable(dialogs[1].window, false) dialogs[index].okbutton = guiCreateButton(87, 127, 89, 24, "OK", false, dialogs[index].window) dialogs[index].lbl = guiCreateLabel(15, 27, 355, 85, text, false, dialogs[index].window) guiSetFont(dialogs[index].lbl, "clear-normal") guiLabelSetHorizontalAlign(dialogs[index].lbl, "center", true) guiLabelSetVerticalAlign(dialogs[index].lbl, "center") dialogs[index].cancelbutton = guiCreateButton(198, 127, 89, 24, "Cancel", false, dialogs[index].window) dialogs[index].chk = guiCreateCheckBox(128, 156, 117, 15, "Disable requests", false, false, dialogs[index].window) guiSetFont( dialogs[index].chk, "default-bold-small") addEventHandler ( "onClientGUIClick", dialogs[index].okbutton, function ( ) _destroyElement ( getElementParent ( source ) ) end ,false ) end You don't need a costum destroyElement function btw, destroyElement itself is fine.
  19. Funny one... "race ones would take months of scripting but freeroam modes(by freeroam modes i mean everything that isn't race) are easier to make and it would be really a challenge for you :D" You are saying that my scripting skilz are poor, please, you don't know anything then about me, I already made a multi-lobby-race gamemode 50%, but then I quited. I had made my custom race client(synced countdown,costum map loader&script loader,Trainging arena,dd arena,dm arena, shooter arena,etc.) but then I was going to the mta forums and looked about multi-gamemode's, they where all complaining like the roleplay-server copy-ers, that's why I stopped making it, If I would finish it there only would be hate towards me. I started too once a freeroam multi-lobby but I stopped the project because personal reasons (someone died in my family). So a multi-gamemode should be fun to make, I will look into it when I got more gamemodes done . Good Idea when the original big gamemode is done, I guess you ment NFS:WORLD , I'll look into this after the original planned gamemode (when it's chosen). I already had something in mind because I was playing on a CnR server, it was pretty funny with friends, 1 robber and the rest of the players cops, buying spike mats, as police blockades, but sadly I had no good ideas for adding more functions.
  20. Never played LoL, nor DotA 2 (while i'm having dota2 [gift]) nor Max Payne ;p Never played this game, but watched serveral videos while enjoying it, should be fun to make those parkour things possible(I know an very-easy way:P), but the only thing is killing a player, this would be getting bored after some time. Thanks for your replys anyways. I was thinking of Deathrace-roleplay you would play a non-roleplay and roleplay at the same time, like you can make teams togheter and roleplay your life in the prison. But I don't know your opinions, I would be pleased to hear anything else Regards, Danny
  21. Ah sh*t, I forgot to add that:P
×
×
  • Create New...