-
Posts
1,283 -
Joined
-
Last visited
Everything posted by manve1
-
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
-
Yeh something like it shows how much person has health with an image
-
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 )).
-
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
-
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 )
-
It makes it as ':O' because MTA doesn't allow words like F*ck
-
replace: local IsWindowVisible = guiGetVisible(window) TO: local IsWindowVisible = guiGetVisible(Window)
-
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
-
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
-
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
-
if you got a dff model and a txd file replace it using engine functions from mta wiki
-
Thank you Castro and Solidsnake14
-
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
-
It didn't change the xml file, any ideas why it didn't?
-
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" />
-
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?
-
You forgot to close the event handler
-
Thanx for the info, but i needed when a person hits the object, but i got other ideas in my mind right now.
-
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 ))
-
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.
-
how do i do it now, because i'm not sure what to use right now
-
try adding this script to ACL.xml
