Jump to content

samt2497

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by samt2497

  1. Yes my resource can load map mods using ide and ipl files and any model that is necessary, if you got a working code to do this conversion from quaternion you can post it please?
  2. Hi, im working on a resource that loads ipl and ide files in mta, usefull for map mods and such, my problem is converting quaternions from ipl objets, here is my converting code function QuaternionsToAngles(rX,rY,rZ,rW) if rW > 1 then rX = math.sqrt(x*x) rY = math.sqrt(y*y) rZ = math.sqrt(z*z) rW = math.sqrt(w*w) end sqx = rX^2 sqy = rY^2 sqz = rZ^2 sqw = rW^2 unit = sqx + sqy + sqz + sqw test = rX*rY+rZ*rW; if(test > 0.4999999999999 * unit) then RX = 2 * math.atan2(rX,rW); RZ = PI/2; RY = 0; elseif(test < -0.4999999999999 * unit) then RX = -2 * math.atan2(rX,rW); RZ = -PI/2; RY = 0; else tmp = (2*rY*rW)-(2*rX*rZ); RX = math.atan2(tmp,sqx-sqy-sqz+sqw); RZ = math.asin(2 * test/unit); tmp = (2*rX*rW)-(2*rY*rZ); RY = math.atan2(tmp,-sqx+sqy-sqy+sqw); end RX = math.deg(RX) RY = math.deg(RY) RZ = math.deg(RZ) return RX,RY,RZ end It works for some objets only, another objets shows wrong angles, if someone got quaternions knowledges thanks This is the only thing that i need to fix, i made possible to read ipl files and these things.
  3. Same was happening to me sometime ago with [bOSS]Resident evil, only happens on linux Now im using windows and that problem is gone, maybe the crash is related to zombos, I think.... Microsoft are the real Zombos maker they dont like linux. maybe is an issue with Linux+PED or something You can try running it using wine
  4. Download my Script https://forum.multitheftauto.com/viewtopic.php?f=108&t=32912 there you can find an alternative function to copyResources ;D search in General_S.lua for function sx_ResCopy(resource,destination)
  5. I have to say, i agree with solidsnake this is kinda stupid, i update and compile scripts everydays, and when i compile scripts are like 500 files im compiling, i use a batch thing i did, what you offerings seems like a new way to steal scripts. And a way to make a script hard to decompile just put in lua first line a table, on next line a table like tableasd = {2,{{{{anothertable,1}}}}} For some reasons all decompilers for AMX and Lua Doesn't like tables.
  6. samt2497

    smx Extension

    SMX Extension.... i used that Extension sometime ago for my compiled scripts, is just an extension, inside the file you see the compiled code.
  7. I did that for custom horn in this way: you create the sound then on a "onClientRender" event handler, u get all sounds and changes their positions using setSoundPosition.
  8. This Resource started from my old mapDeleter in game, but now this can edit,remove,copy any resource and its files in game, you can open alot of script editor windows, and editors are resizable with bytes count, you can see file listing and file size, for the moments only are supported text files, file type are recognized by it extension, file sizing in Binary and Normal mode and using scale, and includes a resource searchbox. If you got any idea to implement new features just tell me. Features: - Edit xml,map and lua files in game. - Download system integrated. - Able to play media files. - Can open not stored files in media player. - Allows you to open alot of windows at same time. for install it only give it the rights on ACL Example: open ACL.XML add after the line and save it. https://community.multitheftauto.com/index.php?p=resources&s=details&id=2091
  9. samt2497

    Server list spam

    There is alot of Fake Boss Servers, only the real ones are [bOSS]
  10. This is a simple resource created to remove the current running map is very usefull if you are playing and find a map you dont like and isnt working properly With this resource you only use the command /deletemap (With admin rights) and the map will be removed. for install it only give it the rights on ACL Example: open ACL.XML add after the line and save it. The easiest way to delete a map from the game without go to resources find the map and delete it, only a simple command https://community.multitheftauto.com/index.php?p=resources&s=details&id=861
  11. Im working on a new Gamemode based on race, but it will be exactly like mario kart ( pickups, boost, items, weapons, karts, maps, etc...) If anyone want to help me in this project add me to [email protected] i need: Mappers. 3D modelers. Graphics Designer. I think it is a great idea for a Gamemode, im working actually on the basic system and items You will be able to launch bananas, bombs, rockets... all items from the mario kart game will be on this gamemode.
  12. it dont work on FTP better u know how the resource from the current map? for use the function removeResourceFile ( resource theResource, string fileName ) this will disable the entire map
  13. when u have 2000 maps you will just remember maps names and know the resources to erase?... and the server is on a VPS, i need to load FTP everytime i want to remove map -.-
  14. i think it should be possible or maybe desactivating the script editing the xml. Any idea?
  15. sometimes i want to delete a map from the same server with a commands there is a way to delete or disable the current map?
  16. i writting a code and i have a problem with a command for send money to another player the code is it function dardinero ( thePlayer, commandName, destplayer, monto ) local dinerojugador = getPlayerMoney(thePlayer) local recibidor = getPlayerFromName ( destplayer ) if dinerojugador > monto then takePlayerMoney ( thePlayer, tonumber(monto) ) givePlayerMoney ( recibidor, tonumber(monto) ) end end addCommandHandler ( "dar", dardinero ) but it not work if anyone can help me very much thanks
  17. i was searching fuel system i tryed cvehiclefuel and slrfuel but no-one works, where i can got a working fuel system
  18. i only want all cars to initial state off when cars spawns they turned OFF automatic
  19. i want to make all cars OFF by default and when a player is into car he will turn on please i want yours replys
  20. all is placed in mta.xml and try place all functions in the same function dont work
  21. i maked a code for replace some models and they textures but car shows without textures (WHITE) I cant make to load TXD i dont know why, i think my code is great but in game textures dont show function ReplaceTexture ( ) txd = engineLoadTXD( "modelos/copcarla.txd" ) engineImportTXD( txd, 596 ) txd = engineLoadTXD( "modelos/patriot.txd" ) engineImportTXD( txd, 470 ) end addEventHandler("onClientResourceStart", getRootElement(), ReplaceTexture) function ReplaceObject ( ) dff = engineLoadDFF( "modelos/hummer.dff", 470 ) --modelid is everytime 0, when you replace no vehicle engineReplaceModel( dff, 470 )-- replace the model at least dff = engineLoadDFF( "modelos/copcarla.dff", 596 ) --modelid is everytime 0, when you replace no vehicle engineReplaceModel( dff, 596 )-- replace the model at least dff = engineLoadDFF( "modelos/infernus.dff", 411 ) --modelid is everytime 0, when you replace no vehicle engineReplaceModel( dff, 411 )-- replace the model at least end addEventHandler("onClientResourceStart", getRootElement(), ReplaceObject)
  22. ok i done the script like the examples but it dont save the team i used get team fuction and when player quit and setsteam when join but dont save nothing to accounts.xml
  23. ok i done the script like the examples but it dont save the team i used get team fuction and when player quit and setsteam when join but dont save nothing to accounts.xml
  24. Please Help me i cant do that i fail PLEASE who can make this little code for me
  25. Please Help me i cant do that i fail PLEASE who can make this little code for me
×
×
  • Create New...