Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Simple0x47

    Money

    Like Koragg said the player:money elementData is not being updated so expect the initial value.
  2. Cel mai sigur Advertisements-System din vG, OWL, UG sau vR. Asa ca mai bine lasam sa invete Lua inainte sa deschida un server.
  3. Because it doesn't have the handlers, you should add them by yourself... nvm. -- VARIABLES local spawns = { --x, y, z, rotZ { 2096.3, 1286.6, 10.82, 90 }, { 1928.8, 1469.5, 10.82, 90 }, { 2032.6,1429.3,10.82, 90 }, { 2019.8, 1545.5, 10.82, 90 }, { 2162.1, 1644.7, 11.2, 90 }, { 2121.3, 1493.9, 10.82, 90 }, { 2163.7, 1483.6, 24.1, 90 }, { 2114.1, 1483.8, 24.1, 90 }, { 1939.8, 1343.2, 9.2, 90 }, { 2025.5, 1623.7, 11.9, 90 } } local pvp_players = {} -- FUNCTIONS function startResource() removeCommandHandler( "pvp" ) -- JUST IN CASE end function startPVP( thePlayer ) if ( thePlayer ) then if not ( pvp_players[ thePlayer ] ) then local x, y, z = unpack( spawns[ math.random( 1, #spawns ) ] ) if ( getElementModel( thePlayer ) ) then setElementPosition( thePlayer, x, y, z ) else spawnPlayer( thePlayer, x, y, z, 0, math.random( 0, 275 ), 0, 0 ) end pvp_players[ thePlayer ] = true -- CHANGE TO FALSE pvp_players[ playerObject ] WHEN HE LEAVES THE PVP end else outputChatBox( "You are already playing in PVP", thePlayer, 255, 0, 0 ) end end -- UNINITIALIZE PLAYER FROM PVP function uninitPVP() if ( source ) then pvp_players[ source ] = nil end end -- COMMAND HANDLERS addCommandHandler( "pvp_check", startPVP ) -- JUST TO CHECK IF PVP_CHECK WORKS CORRECTLY AND IF IT WORKS CORRECTLY TRY TO CHANGE TO pvp AND CHECK THEN IF IT FAILS BECAUSE MAYBE IT'S DUE TO AN OVERWRITTEN COMMAND -- EVENT HANDLERS addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), startResource ) addEventHandler( "onPlayerWasted", root, uninitPVP ) addEventHandler( "onPlayerQuit", root, uninitPVP )
  4. Okay I understand your problem let me solve it. I'll be back with code in some minutes. -- VARIABLES local spawns = { --x, y, z, rotZ { 2096.3, 1286.6, 10.82, 90 }, { 1928.8, 1469.5, 10.82, 90 }, { 2032.6,1429.3,10.82, 90 }, { 2019.8, 1545.5, 10.82, 90 }, { 2162.1, 1644.7, 11.2, 90 }, { 2121.3, 1493.9, 10.82, 90 }, { 2163.7, 1483.6, 24.1, 90 }, { 2114.1, 1483.8, 24.1, 90 }, { 1939.8, 1343.2, 9.2, 90 }, { 2025.5, 1623.7, 11.9, 90 } } local pvp_players = {} -- FUNCTIONS function startResource() removeCommandHandler( "pvp" ) -- JUST IN CASE end function startPVP( thePlayer ) if ( thePlayer ) then if not ( pvp_players[ thePlayer ] ) then local x, y, z = unpack( spawns[ math.random( 1, #spawns ) ] ) if ( getElementModel( thePlayer ) ) then setElementPosition( thePlayer, x, y, z ) else spawnPlayer( thePlayer, x, y, z, 0, math.random( 0, 275 ), 0, 0 ) end pvp_players[ thePlayer ] = true -- CHANGE TO FALSE pvp_players[ playerObject ] WHEN HE LEAVES THE PVP end else outputChatBox( "You are already playing in PVP", thePlayer, 255, 0, 0 ) end end -- COMMAND HANDLERS addCommandHandler( "pvp_check", startPVP ) -- JUST TO CHECK IF PVP_CHECK WORKS CORRECTLY AND IF IT WORKS CORRECTLY TRY TO CHANGE TO pvp AND CHECK THEN IF IT FAILS BECAUSE MAYBE IT'S DUE TO AN OVERWRITTEN COMMAND -- EVENT HANDLERS addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), startResource )
  5. Okay so it shouldn't spawn any ammo when you type /pvp?
  6. @Shayan816 Please explain your problem with details so I can offer you the solution you are looking for.
  7. Mientras que los valores que tienen las tablas no superen el máximo de caracteres del TEXT no hay ningún problema en usarlo.
  8. De cate ori trebe sa ii se zica la lume ca aici e forum-ul MTA, si nu al unui server oarecare de roleplay. Mergi si posteaza pe forum la server-ul de RP in care joci.
  9. Hello there! I was checking around MTA SA source code and I've seen you guys made Renderware Engine look like if it was Open Source, the thing is I'm looking forward the method you guys have used to discover what does function addresses do in the game. Thanks.
  10. The 'problem' of the map editor is that it removes any createObject called from other resources.
  11. If you need it without body you could apply the circle shader to a shader mask and then you have it
  12. DxDrawCircle made with the community circle shader you can do a circle progress bar without any problem
  13. Hello, Contacted you on skype, if the message didn't arrive to your account add mine skype "killer.68x".
  14. If memory addresses changed then be sure there's no way MTA Team would make MTA for MacOS.
  15. SQLite se encuentra utilizado por el internal de MTA asi que no hay diferencia apreciable, siendo este un buen metodo para el almacenamiento de datos que disponen de una gran dinamica. El uso de XML lo recomiendo solo para el almacenamiento de datos reducidos y casi estaticos.
  16. Player bazic în upgradare, sa început dezvoltarea obiectelor ( item ) cu adăugarea unor obiecte bazice cu respectivele lor imagini.
  17. Noi funcțiunii or fost adăugate. Login funcționabil. Selectare de personaje. Adăugare de personaje. Spawn cu animație stil GTA V. Chat în progres. Design-ul o să fie schimbat această vară folosind un dxLib scris de mine. SQL liberat, dependență de Flarum ( forum ) sau cerețimi o modificare de SQL și backend dacă aveți nevoie.
  18. Bună ziua tuturor, Azi vreau sa anunț începutul primiului proiect SOpen ( Simple Open ) în cazu ăsta find un gamemode de roleplay. Gamemod-ul înca îi in dezvoltare și în constantă actualizare. În câteva ziile gamemod-ul o să fie jucabil. Intenția acestui proiect îi să fie folosit ca o alternativa la gamemod-uri leaked și făra optimizare. SQL o să fie liberat cănd o să se ajungă la jucabilitate. https://github.com/mrSimple01/MTA-SOpenRP
  19. Where's that map from?
  20. MONTHLY POST SERVICE STATUS: STARTED! MESSAGE: NONE! SENDING MESSAGE. MESSAGE STATUS: SENT!
  21. El renderTarget es necesario para no mostrar contenidos que no se quieren visualizar o que sobrepasan los tamaños definidos.
×
×
  • Create New...