Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. getLocalPlayer can be used only when using triggerServerEvent as it's client-sided. What you can use is MTA-var 'client'
  2. Yes, you can do it. The easiest way to do that is to fileRead and pass the file as a string. Once client-side you create the file with that string. The other way (in 1.4) is to use fileDownload.
  3. Weapon may be undefined, or theWL. One of them
  4. Weapon may be undefined, or theWL. One of them
  5. Then it may be my mistake. I was pretty sure it used PHP
  6. Doing that is not easy.... having to parse it into PHP so that PHP creates the image and then resends it back to LUA must have been a hard job. However, I find it quite 'ugly' (excuse the word) because the image looks quite bored. Maybe try adding some color palettes or something similar to make it better, or jsut make it in text. It's impressive though.
  7. local ratio = 1000 -- Not sure, but please write here the maximum oxygen, whether its 10 100 or 1000. local oxygen = math.floor(getPedOxygenLevel(getLocalPlayer())/ratio) dxDrawRectangle(900, 94, 266, 20, tocolor(0, 0, 0, 255), true) dxDrawRectangle(901, 95, 264*(oxygen), 18, tocolor(8, 154, 246, 255), true)
  8. en vez weap en el outputChatBox usa getWeaponNameFromID con weap
  9. rekon foi voce que criou o addon_dayzGive ? tem outro resource para dayz ? Please speak English here. Yes, I did DayZGIP but I didn't make any other resources for DayZ
  10. onPlayerLogin is serverSide. Those functions you are using are clientSide. What you can do is to trigger a clientEvent from serverside like this: addEventHandler("onPlayerLogin",root, function() triggerClientEvent(source, "onClientPlayerLogin", source) end ) And then, clientSide addEvent("onClientPlayerLogin", true) addEventHandler("onClientPlayerLogin", root, function() spawnwnd = guiCreateWindow(528, 8, 488, 591, "SPAWN MENU", false) guiWindowSetMovable(spawnwnd, true) guiWindowSetSizable(spawnwnd, false) tabSpawn = guiCreateTabPanel(9, 24, 470, 558, false, spawnwnd) basemode = guiCreateTab("Gangs", tabSpawn) --Gangs-- red = guiCreateButton(8, 9, 139, 163, "Grove Street Family", false, basemode) blue = guiCreateButton(242, 8, 139, 163, "Ballas Family", false, basemode) showCursor (true) --Gangs-- addEventHandler ("onClientGUIClick", red, spawnRed, false) addEventHandler ("onClientGUIClick", blue, spawnBlue, false) end )
  11. setElementData se pierde cuando se destruye el elemento, es decir, cuando se desconecta el jugador. PD: un segundo... ese script es mio
  12. Please, could you order it alphabetically on the useful functions template? Evenmore, would you mind translating alto and ancho into height and width please? And one more thing, you have practically copy pasted the code twice, as on the usage example you are writing exactly the same. Nonetheless, good function and keep up developing new ones.
  13. En realidad, lo que debes ahcer es simplemente esto: (ignora lo de CiBeR pues como siempre está mal ._.. En este caso te tiraría error en la línea del outputChatBox, vah, no error, si no que mostraría userdata) Cambia en serverside, esta línea: kickPlayer ( Kicked, source, reason ) por kickPlayer ( getPlayerFromName(Kicked), source, reason )
  14. Whenever you are using elementData, you must know that elementData is lost whenever the vehicle is destroyed (I mean, destroyElement, not blowVehicle). So that makes dbid get lost. So whenever you do a query, you'll have the wrong dbid. What you should do then is to find the way to make some sort of vehicles system where the IDs are stored even after the server is shut down. That will probably do.
  15. Ya con poner esto Tus argumentos son inválidos onZombieWasted o onPedWasted es serverside.. o eso creo al menos
  16. Ignora lo que puso ciber, está mal. Lo que puedes intentar hacer es que cuando el zombie sea asesinado (onZombieWasted creo que es o onPedWasted), hacer un tiggerClientEvent y ahí stopSoundeas el sonido. Espero haberme explicado!
  17. Hello ladies and gentlemen, Renkon is back with his scripting services. If you don't know me, please check further information about me in this old thread. ABOUT ME For those that don't know me, I'm a seventeen-year-old guy who enjoys playing sandbox games like GTA SA and Just Cause 2. In addition, I'm a huge fan of zombie games (like DayZ or Infestation: Survivor Stories) and fancy playing games like Simcity 4 or Cities In Motion 2. I'm currently studying at a secondary school (or college) and I'm on my final year (I'll have started university by 2015). By some years, I hope I'll have become a software engineer or a system analyst (I'm currently in doubt between them). Related to programming, these are the languages I currently have knowledge: C# Java Lua HTML C/C++ (not that fluent, though) SQL (for databases, I am experienced in using SQL Server, MySQL and SQLite) BUYING SCRIPTS In order to make my customers comfortable with my services, I can let them test the scripts I make on my server until they make sure the script is what they in fact want. Once that is done, they will be able to pay me on PAYPAL and then I will send them a .RAR file containing the resource. That's not all. Once it's given to the customers, I will fix any bugs that can be found after the installation. It's pretty straight-forward. I make the script, you test it, you pay me and you get it. Please notice, I won't accept any request asking for whole gamemodes. I just do scripts (in other words, small parts from a gamemode) SCRIPTS SHOW-OFF Sold scripts (if allowed by customer) will be shown here so that you can trust me. By now, I'm afraid I can't show anything. CONTACT If you require any further information, or to request my scripting services please don't hesitate to contact me on Skype (my username there is renk0n). FEEDBACK Any feedback is welcome on this topic. No matter whether it's positive or negative, it helps me to become a better person and scripter, so please don't mind replying to this topic.
  18. YESSSSSSSSSSSSSS!!! EXPECTED THIS FOR SO LONG. I LOVE YA.
  19. Renkon

    Need SQL help

    If you want to use UPDATE You can use WHERE statement WHERE name = 'John' WHERE id = 1
  20. Probably the script that generates the website also generates or requests an user and a password. What you can do is to modify the plugin/script so as not to request it
  21. GMT time is equal for EVERYBODY
  22. Renkon

    Sorting table

    You can try by bubble sorting. Let's say you got a table called racers what holds playerVar = checkpointNumber. So, moving into code: racers = { somebody = 10, else = 17, pete = 5, randomPlayerVar = 25, } for i = 1, #racers do for j = #racers, 1, -1 do -- not sure if this line is ok though if racers[i] < racers[j] then local temp = racers[i] racers[i] = racers[j] racers[j] = temp end end end
  23. Try to end gta_sa.exe process in Processes tab, in Task MAnager
×
×
  • Create New...