Jump to content

zaticsergiu

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by zaticsergiu

  1. no error message from resource rrtaxi
  2. when i write /addPickup nothing happens ps. sorry for my bad english
  3. function addPickup ( playerSource ) local playerX, playerY, playerZ = getElementPosition( playerSource ) local playerR = getPedRotation ( playerSource ) local locationID = #taxiLocations + 1 local XMLTaxiLocations = xmlLoadFile ( "XML\\taxi_locations.xml" ) local addNode = xmlCreateChild(XMLTaxiLocations, "location") xmlSaveFile(XMLTaxiLocations) xmlNodeSetAttribute(addNode, "id", locationID) xmlNodeSetAttribute(addNode, "posX", playerX) xmlNodeSetAttribute(addNode, "posY", playerY) xmlNodeSetAttribute(addNode, "posZ", playerZ) xmlNodeSetAttribute(addNode, "rot", playerR) xmlSaveFile(XMLTaxiLocations) xmlUnloadFile ( XMLTaxiLocations ) taxiLocations[locationID] = {} taxiLocations[locationID]["x"] = playerX taxiLocations[locationID]["y"] = playerY taxiLocations[locationID]["z"] = playerZ taxiLocations[locationID]["r"] = playerR outputChatBox ( "Taxi location saved.", playerSource ); end addCommandHandler ("addPickup", addPickup, true)
  4. still not working, when i fighting unarmed health not decrease
  5. local positions= { { -3511.0622558594, 1745.8352050781, 75.607810974121 }, { -3507.8325195313, 1771.8107910156, 75.607810974121 }, { -3552.9904785156, 1773.0948486328, 75.607810974121 }, { -3555.6606445313, 1742.8951416016, 75.607810974121 }, } function oh(thePlayer) local azar = math.random ( #positions ) setPedArmor ( thePlayer, 0 ) takeAllWeapons (thePlayer) setElementPosition (thePlayer, unpack ( positions [ azar ] ) ) setElementHealth (thePlayer, 1) end addCommandHandler("oh", oh) player's health not decrease like he has godmode help Sorry for my bad english
  6. function onGuiClick (button, state, absoluteX, absoluteY) if (source == aw1) then triggerServerEvent ("aw1", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
  7. server addEvent( "aw1", true ) function aw1(player,command,id) local x,y,z = getElementPosition(player) veh = createVehicle(560,x,y,z) warpPedIntoVehicle(player,veh) outputChatBox ( "Car Taken", source, 255, 0, 0 ) end addEventHandler ( "aw1", getRootElement(), setaw1 ) client aw1 = guiCreateStaticImage(22,23,250,130,"tab3/aw1.png",false, tab3 ) aw1 = guiCreateButton(22,265,130,40,"Take",false, tab3 ) guiSetProperty(aw1,"NormalTextColour", "FF00FF00") function onGuiClick (button, state, absoluteX, absoluteY) if (source == aw1) then triggerServerEvent ("aw1", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) Help please
  8. function aa (playerSource) local vehicle = getPedOccupiedVehicle(playerSource) if vehicle then setElementVelocity(vehicle,0,0,0) setElementPosition (vehicle, 413.04974365234, 2502.2468261719, 16.484375) else setElementPosition (playerSource, 413.04974365234, 2502.2468261719, 16.484375) end outputChatBox ('#FFFFFF[ #00FF00Teleport#FFFFFF ]: #00FFFF' .. getPlayerName(thePlayer) .. ' #828282Teleported to Old Airport #FFFFFF(#00FF00 /aa #FFFFFF)', root, 255, 255, 255, true) end addCommandHandler ( "aa", aa ) not working outputChatBox help
  9. Hello guys! How to fix Couldn't parse config list.xml in resource gangwar Barrancas> help
×
×
  • Create New...