Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. Te cito lo que dice de la wiki. Está en inglés y te da el porqué.
  2. De nada amigo.
  3. Asegúrate que ese sea el modelo correcto, pues sí, debería funcionar Lee: https://wiki.multitheftauto.com/wiki/removeWorldModel
  4. El radio es el tamaño del circulo que se genera desde el punto x, y, z. Se borrarán los objetos cuyo modelo es el que insertaste en el radio establecido desde x, y, y z
  5. No hay ninguno. La recomendación que te doy es cargar en un gridList los mapas, y cuando sean seleccionados crear una Dimension con los objetos creados mediante la lectura del XML del .map
  6. Okay, I will take that into consideration
  7. Fixed english mistakes so the thread looks more "professional"
  8. fadeCamera
  9. Notice that you need two arguments for givePlayerMoney Argument #1: Player who will get the money Argument #2: Positive quantity givePlayerMoney(getPlayerFromName("Solidsnake14"), 1000) would give Solidsnake14 $1000
  10. givePlayerMoney (thePlayer, 99999)
  11. Renkon

    Radio Gui

    Noticed the reason. You are using onClientGUIClick, and for stopping, DoubleClick. So whenever you use a click it reproduces again, and after the second click, first one stops, but there is another one enabled My recommendation: create a GUI Button so you don't have these kind of problems. If you set them both to GUIClick or DoubleClick, no sound will be heard. So, another posible way is the following Remove EventHandler for stopping Radio add in start radio function: addEventHandler("onClientGUIDoubleClick", StationsGridList, StopRadio ) removeEventHandler("onClientGUIClick", StationsGridList, StartRadio ) add in Stop radio function: removeEventHandler("onClientGUIDoubleClick", StationsGridList, StopRadio ) addEventHandler("onClientGUIClick", StationsGridList, StartRadio )
  12. Renkon

    Radio Gui

    Define at the beginning: local sound = nil And modify this addEventHandler("onClientGUIDoubleClick", radioItem, StopRadio ) --line 65 to addEventHandler("onClientGUIDoubleClick", StationsGridList, StopRadio )
  13. Renkon

    Radio Gui

    Paste again, I modified something
  14. Renkon

    Radio Gui

    addEventHandler("onClientGUIClick", radioItem, Start ) -- Line53 to addEventHandler("onClientGUIClick", StationsGridList, StartRadio )
  15. This could be useful to make something like GIFs, right?
  16. Renkon

    Admin Panel

    May this resource be helpful I guess. viewtopic.php?f=108&t=43639
  17. Dear community members, It has been a while since I firstly joined this forum. It was almost two years ago. Since then, I have been inactive for more than a year, and finally came back some months ago. I have improved my LUA skills and now I believe I am able to make basic systems/scripts for money. That is the main reason about this post. I am, since today, able to script for money. I do know that many people cannot afford paid scripters (the same happens to me), so, if somebody needs help, I can try to help you for free (which doesn't mean I will do it for you). Remember that Scripting forum is the place where you should post your issue. So well, if you are searching for a scripter, do not hesitate to contact me. Just remember to have a PayPal account and money in it . Now some info about me : I am sixteen years old. Currently studying in a secondary school specialist in Programming (C#, SQL, etc) I am playing MTA since 2009. I have been scammed once . So, in order not to be scammed anymore, I will request you the 50% of the price, and after I give you the script, you give me the other 50%. After testing your resource in my server, if you like it, you will be able to pay me on PayPal, and after that, you will receive the resource. (this can be changed) I am also quite fluent in C#. Soon, I will also be learning Java I have started coding in LUA in March, 2012. Ok, if you are interested in this, send me a private message HERE, and I will try to respond you as soon as posible. The more information you write about what you want, the better. Further contact: Skype: renk0n Msn: [email protected] Thank you for reading, and sorry for wasting your time. Feedback is also welcome The aim of this post is to present me as a paid scripter and well, also to present me, cause maybe people is interested in, and they do not know me well.
  18. https://wiki.multitheftauto.com/wiki/SetTeamFriendlyFire
  19. Renkon

    Radio Gui

    local sTations ={ ["Power 181"] = "http://www.181.fm/asx.php?station=181-uktop40&style=&a..scription="; } function CreateRadioGui ( ) if ( guiGetVisible ( RadioGui ) == true ) then guiSetVisible ( RadioGui, false ) showCursor ( false ) guiSetInputEnabled ( false ) else guiSetVisible ( RadioGui, true ) showCursor ( true ) guiSetInputEnabled ( true ) end end RadioGui = guiCreateWindow ( 0.75, 0.65, 0.25, 0.35, "ASDF - Radio Gui", true ) guiSetAlpha ( RadioGui, 0.9 ) guiSetVisible ( RadioGui, false ) RadioCloseButton = guiCreateButton ( 0.0, 0.85, 1.0, 0.25, "Close", true, RadioGui ) StationsGridList = guiCreateGridList ( 0.0, 0.1, 1.0, 0.70, true, RadioGui ) StationsList = guiGridListAddColumn( StationsGridList, "Stations List", 0.9 ) addCommandHandler ( "radio", CreateRadioGui ) function CloseRadioGui ( ) if ( source == RadioCloseButton ) then guiSetVisible ( RadioGui, false ) showCursor ( false ) guiSetInputEnabled ( false ) end end addEventHandler ( "onClientGUIClick", RadioCloseButton, CloseRadioGui ) addEventHandler( "onClientResourceStart", getRootElement( ), function () for StationName, StationAdress in pairs ( sTations ) do local row = guiGridListAddRow ( StationsGridList ) guiGridListSetItemText ( StationsGridList, row, 1, StationName, false, false ) end end ) function StartRadio() if source == StationsGridList then local row, col = guiGridListGetSelectedItem ( StationsGridList ) if ( row and col and row ~= -1 and col ~= -1 ) then local statioN = guiGridListGetItemText ( StationsGridList, row, 1 ) radio = playSound( sTations[statioN] ) end end end addEventHandler("onClientGUIClick", getRootElement( ), StartRadio ) function StopRadio() if source == StationsGridList then local row, col = guiGridListGetSelectedItem ( StationsGridList ) if ( row and col and row ~= -1 and col ~= -1 ) then local statioN = guiGridListGetItemText ( StationsGridList, row, 1 ) stopSound( radio ) end end end addEventHandler("onClientDoubleClick", getRootElement( ), StopRadio )
  20. Pues deberás usar las funciones built-in de scripteo del MTA setVehicleHandling setModelHandling getModelHandling getVehicleHandling
  21. function use ( ) local hRow = guiGridListGetSelectedItem ( gridDuty ) if ( hRow ) then if ( isElement ( aObjects ) ) then triggerServerEvent("onSkinChanging", localPlayer, localPlayer, "in") end guiSetVisible( windowDuty, false ) showCursor( false ) end end addEventHandler ( "onClientGUIDoubleClick", gridDuty, use, false ) addEventHandler('onClientGUIClick', yesOut, function() triggerServerEvent("onSkinChanging", localPlayer, localPlayer, "out") guiSetVisible( windowOffDuty, false ) showCursor( false ) end ) addEvent("onSkinChanging", true) addEventHandler("onSkinChanging", root, function(p, t) if t == "in" then playerSkin = getElementModel( p ) setElementData( p, "skinSave", playerSkin ) setElementModel( p, 16 ) elseif t == "out" then skinBack = getElementData( p, "skinSave" ) setElementModel( p, skinBack ) end end )
  22. --Server Side function openMyGate (p) moveObject (myGate, 500, -781.20001220703, 2624.8000488281, 104.09999847412, 0, 0, 0) triggerClientEvent ( "onGateOpening", p) end addCommandHandler ("opengate", openMyGate) --Client Side addEvent( "onGateOpening", true ) function sound() sound = playSound ("sounds/opengate.mp3") end addEventHandler( "onGateOpening", getRootElement(),sound )
  23. Somehow that will throw warnings. Instead of setTimer(Wasted, 1000, 1, source) use: local pVar = source setTimer(Wasted, 1000, 1, pVar)
  24. And what? Problem?
  25. Well, as you might now, Counter Strike 1.6 has got a radio which you can open by pressing Z, X or C. I have done something really similar in MTA. Sounds are exactly the same as the ones from original Counter Strike You can download it here: https://community.multitheftauto.com/ind ... ls&id=5855 I hope you guys like it and, despite not being such a really good resource, it can be fun when playing with friends or when playing basemode, or team-playing
×
×
  • Create New...