Jump to content

Scooby

MTA Contributors
  • Posts

    976
  • Joined

  • Last visited

Everything posted by Scooby

  1. The team details should be in a .map file, it should look like this (but with more teams etc): <map mod="deathmatch" version="1.0"> <respawn time="4500"/> <team name="Grove" red="0" green="255" blue="0"> <camera lookX="2494.59" lookY="-1673.18" lookZ="13.33" posX="2457.04" posY="-1647.96" posZ="48.25"/> <weapon model="32" ammo="900"/> <skin model="105"/> <skin model="106"/> <skin model="107"/> <spawnpoint posX="2495.1" posY="-1686.6" posZ="13.50" rot="3.45"/> <spawnpoint posX="2519.9" posY="-1678.9" posZ="14.87" rot="91.50"/> <spawnpoint posX="2509.6" posY="-1654.0" posZ="13.65" rot="135.68"/> <spawnpoint posX="2487.0" posY="-1647.6" posZ="14.07" rot="181.40"/> <spawnpoint posX="2471.8" posY="-1686.3" posZ="13.50" rot="325.80"/> <spawnpoint posX="2469.6" posY="-1650.4" posZ="13.47" rot="183.62"/> <spawnpoint posX="2452.4" posY="-1646.7" posZ="13.46" rot="178.92"/> </team> this is ran at the same time as the cdm resource but its usually within another resource, you should know what its called if u are starting it manually, if not check your config to see what ur loading on server startup.
  2. ok well it maybe something for me to look into in the near future then. thanks for ur replies.
  3. i have so many stats being saved i dont even think it would be possible to move now. also, i know nothing about MySQL.
  4. well i always lose data when the server crashes, from what i can gather think the sql db only saves on shutdown so if the dedi crashes or the server.exe crashes all new data since the server started is lost. luckily for me, after losing so much data time and time again, i moved a lot over to xml but with new scripts i find i want to save more stats and i think right now its on the limits... and i dont wanna risk adding any more to sql coz i keep losing data. i guess i'll have to carry on as it is for now. thx for the quick reply
  5. Is is possible to save a database manually? several times now ive had server crashes (its very rare nowdays) and lose all the data since the server was last started. so rather than me restarting the server to save the db is there a way to do this with a command?
  6. Hi, do any of u out there know how object/element rotations have changed since back in mta:race ? i have hundreds of race maps and wrote a script to convert a couple of them to the new format in DM, however it seems all the object rotations are all messed up. I guess something has changed over the years. this is an example of 1 object in the old format: <object name="object (264)"> <position>1920.987305 -4686.229004 29.226713</position> <rotation>1.373097 0.000000 0.000000</rotation> <model>18310</model> </object> i think the rotations arent 0 to 359 (maybe some other format?) does anyone know whats changed and/or if they can be converted to work in mta today.
  7. Scooby

    nametags gui

    all u need is ur gui with 1 gridlist containing ur text to show above the player and the select button, when u click select, get the selected info from the gridlist and store it to a table for that player. in ur dx function all u need is to check if the player has any stored data in the table, if so.. draw it. post back if u need more help.
  8. ahh sweet, thanks... i can do something about it now
  9. Hi, I have a few questions, maybe someone out there can help me with. I have DM server and Im told people are joining the server with modded/replaced player skins, (really small skins, half the size of normal) and im told these players cant be killed very easily since when u aim at their head, the just bullets go right over the top of them and they only take damage if u shoot them below the waist. just lately everyone is accusing everyone of cheating. so my questions are: 1) is there any way to detect who these people are? 2) is there any way to stop these people joining? If u have any ideas/suggestions please let me know. thanks.
  10. looking at ur pics, it looks like those arent the server files. maybe if u got a host now, you've uploaded them to the wrong place. server resources need to go in: \MTA San Andreas 1.3\server\mods\deathmatch\resources downloaded client resources will be in: \MTA San Andreas 1.3\mods\deathmatch\resources notice how yours doesnt have 'server' in the address bar.
  11. Hi, Ive spent the last few nights trying to figure this out without any luck. maybe someone else out there knows a fix for this.... so ive replaced a few car skins (4 in total) and changed the handling etc on each car with a script. they all work fine for most of the players but a few players dont seem to be able to download the files. the download progress bar stays at zero. we've tried the usual stuff like reinstalling mta and deleting the resource folder etc but still no luck. all other resources on the server download ok but they get the error when trying to download the new car skins and eventually get kicked. If anyone has any suggestions or ideas, it'd be great to hear them since i think ive tried everything i can think of.
  12. Scooby

    .edf - spawn

    If u have a look at cdm resource, it shows how u can get the info from the .map file and u should be able to do what u need from that.
  13. u need to get the coords a set distance in front of the player... theres a few calculations u can do to get this... sadly i dont have time to write it.. but theres already a community ramps script... u can look in there for how they get the position in front of the player... or just use the script/edit it to how u want it. https://community.multitheftauto.com/index.php?p=resources&s=details&id=92 sorry i dont have time to write it for u... although im sure if u get stuck, someone will have more time to help u.
  14. you cant make a gui with the editor and then expect it to work as a complete script, the editor only creates the code for the gui and its layout, you then need to write the functions that make each gui element work. after u create the button, use this to make the button work: addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], addTheBind, false ) -- addTheBind is your function name then make the handler function: function addTheBind() -- your code here (what do u want the function to do when u press the button) -- end u need the same again for the other button. then in each of these functions, u need to get the text added and the key used with: local key = guiGetText(bind) local words = guiGetText(word) if key and words then -- add ur bind here (bindkey / unbindKey) end hope this helps...
  15. ok, can anyone recommend one?
  16. Hi, so ive managed to delete a load of entries in an sql table by accident. i have backups of registry.db where its stored but this also contains other tables. what i want to know is: is there a way for me to copy the table from backup registry then store it somewhere else so i can add it back to the registry file it needs to be in? (ie is it possible to save the table to another database temporarily?) i cant just swap the files coz my backup is a week old and theres so much info in it in other tables thats changed. ive tried exporting the table with 'Lita' but it doesnt let me import it back, it just imports 1 line. i know i can fix this by writing a script to save the backup table to an xml, then swapping .db files and saving it back to sql but thats a lot of hassle i guess... im just curious if theres an easy fix for this. my sql skills arent great.
  17. thats because u didnt turn it off once they enter the vehicle. just add: setVehicleEngineState (source, false) before u output the text.
  18. soure is the source of the event... so onMarkerHit, if u want it to work for a player, use something like: function gaga(source, dim) -- source is the element that hit the marker (could be any element (car/player/object) if getElementType(source) == "player" and dim then -- if element that hit the marker is a player and if the player is in the same dimension as the marker then... triggerClientEvent(source,"guievent", source) -- trigger the client event 'guievent' end addEventHandler("onMarkerHit",policemarker, gaga) now in ur client file: addEvent("guievent", true) function mama() -- localPlayer isnt needed here since its clientside - nothing is needed, since its only triggered on this client and not all clients. guiSetVisible(window, true) showCursor ( true ) end addEventHandler("guievent", getRootElement(), mama) i take it u have ur window and marker defined elsewhere. everything else u might need to know explaining about the parameters and arguments etc can be found on the wiki.
  19. Scooby

    Error Codes

    ah nice thx.
  20. Scooby

    Error Codes

    Hi, im curios, is there a list anywhere of the error codes and descriptions given when a player joins your server and theyre kicked for various reasons as soon as they join. i see some being kicked for trainer usage which is good, but not all the errors have a description. eg: 'player' Was Kicked By Script. Reason: AC #11 EJLNK8
  21. not sure which you used, but make sure u have a check for: if tonumber(amount) > 0 then in it or people will be able to use the function to take money from other players.
  22. the dimension doesnt matter so much (unless like me, u want a specific dimension), its the interior thats 3. to send them in use: setElementInterior(player, 3, 390.76, 173.83, 1008.38) --(not sure if u meant this int but...) remember this exists in all dimensions so theres no need to specify a specific dimensions unless u need to.
  23. Scooby

    question

    just find the function in the resource u have that sets the health of the player and add it there. (admin panel? admin_server.lua - halfway down the script - add the line there)
  24. yeah but quite often people crash.. although i guess /reconnect will be a little faster for most. thx for the idea.. i'll have a play around with the times. Edit: Once again, thanks for the idea, ive managed to get something together and it seems to be working perfectly. good job
×
×
  • Create New...