Jump to content

manve1

Retired Staff
  • Posts

    1,283
  • Joined

  • Last visited

Everything posted by manve1

  1. I know i can use Dx functions, but i'm not sure how to make it to move up and down when player increases/decreases his health
  2. Yeh something like it shows how much person has health with an image
  3. How can i make that when player health changes, an image file that has been expanded changes, something like vehicle health in race gamemode but with ped health (( i looked into race gamemode but couldn't figure out how to make it myself )).
  4. manve1

    Help

    Actually if u would look, u messed up the OutputChatBox, and the '(source)' plus the '..'s were outside into the say chat thing so i would output them and would cause an error
  5. manve1

    Help

    addEvent("Car", true) addEventHandler("Car", root, function() local mapName = getMapName(source) if mapName ~= "Arena-1" then local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= 50000 then takePlayerMoney(source, 50000) x, y, z = getElementPosition(source), source, 50000 Vehicle = createVehicle(id, x, y, z) warpPedIntoVehicle(source, Vehicle) setVehicleLocked(Vehicle, true) setTimer(function() destroyElement(source, Vehicle) end, 300000, 1 ) outputChatBox("#FF0000 ".. getPlayerName(source) .."Has Bought A Rhino !", root, 255, 255, 0, true) else outputChatBox("You Dont Have Money to Buy a Rhino", source, 255, 0, 0, false) end else outputChatBox("Round is not started!", source, 255, 0, 0, false) end end )
  6. manve1

    Gui problem

    It makes it as ':O' because MTA doesn't allow words like F*ck
  7. manve1

    Gui problem

    replace: local IsWindowVisible = guiGetVisible(window) TO: local IsWindowVisible = guiGetVisible(Window)
  8. manve1

    Gui problem

    SERVER: local myMarker = createMarker(-2615, 2262, 7.3, 'cylinder', 1.0, 255, 0, 0, 150) -- create myMarker function MarkerHit( hitElement, matchingDimension ) -- define MarkerHit function for the handler triggerClientEvent(hitElement, "open", hitElement) end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) -- attach onMarkerHit event to MarkerHit function
  9. Server: function oncolehit (p, hitElement) pname = getPlayerName (p) if ( getElementType ( p ) == "player" ) then veh = getPedOccupiedVehicle (p) seat = getPedOccupiedVehicleSeat (p) if (veh) and (seat == 0) then local result = mysql_query( handler2, "SELECT * FROM accounts WHERE Name = '"..pname.."'" ) local row = mysql_fetch_assoc(result) if row then if (row["Wert"] == "1") then outputChatBox ("Danke das du das Parkhaus besuchst!", p, 0,255,0) eschrankefunc () end mysql_free_result(result) else if ( getElementType ( p ) == "player" ) then veh = getPedOccupiedVehicle (p) seat = getPedOccupiedVehicleSeat (p) if (veh) and (seat == 0) then triggerClientEvent (hitElement, "openGUI", hitElement) end end end end end end addEventHandler ("onColShapeHit", cole, oncolehit) try this
  10. manve1

    Objects samp

    I'm not sure if it is possible but you could try having a go at replacing it via client side ONLY for 1 person, not everyone
  11. manve1

    Objects samp

    if you got a dff model and a txd file replace it using engine functions from mta wiki
  12. manve1

    Help - XML

    Thank you Castro and Solidsnake14
  13. Just try making the scripts, if u got anything wrong, post it here and we can help with scripts u get wrong/errors on/bugged
  14. manve1

    Help - XML

    It didn't change the xml file, any ideas why it didn't?
  15. manve1

    Help - XML

    I have tried to make it to work, but as i am new to the xml functions, i need some help: LUA: addEventHandler('onResourceStart', resourceRoot, function( ) saveS = xmlLoadFile( 'save.xml' ) local save_info = xmlFindChild(saveS, 'turf', 0) xmlNodeSetAttribute( save_info, 'turf', 'nothing new' ) end ) META: SAVE.XML: "No" />
  16. manve1

    Help - XML

    I mean which function do i use
  17. manve1

    Help - XML

    Is there a way of changing .xml file while you are in game? For example: If the .xml file had inside: 'here type anything' how could i change the 'here type anything' to anything a player wants to type inside?
  18. You forgot to close the event handler
  19. Thanx for the info, but i needed when a person hits the object, but i got other ideas in my mind right now.
  20. Is there a function which recognizes when a player hits a certain object so he gets money when he hits it (( without any col shapes ))
  21. I found a few bugs, don't know why, but the column name was set to 'med_kit', i done minor changes and fixed it: addEventHandler ( "onResourceStart", resourceRoot, function ( ) exports [ "scoreboard" ]:scoreboardAddColumn ( "Medic Kit", 100, "med_kit" ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do setElementData ( thePlayer, 'Medic Kit', 'No' ) end end ) thanx for helping.
  22. how do i do it now, because i'm not sure what to use right now
  23. try adding this script to ACL.xml
×
×
  • Create New...