Jump to content

LaCosTa

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by LaCosTa

  1. Hello, I've experienced such bug and from all I know it is related to libcef.dll that's what the module shows. I just did all the basic steps for when MTA is crashing but still not working. Also, I re-installed GTA and then MTA, same thing. I formated my computer, it worked for some days but now it is crashing again. Anyone have a solution?
  2. LaCosTa

    Sniper Crash

    When I use sniper continuously, MTA crashes. I want a solution on how to fix this if possible.
  3. LaCosTa

    Things about GTA:SA

    Guys can someone tell me why when I reinstall gta san andreas it doesn't delete the old files it always store the files even if I deinstall it , and nowadays I'm facing a problem that when I launch the game it took 2 minutes then it crashs same to MTA since gta doesn't work , any ideas about this problem?
  4. I guess this is what you're trying to find getElementsWithinColShape(colshape,"element")
  5. About fxAddWaterSplash it doesn't work , thank you Drakath I found the solution , thank you guys .
  6. Well Yeah I know about that function , just asking about that water splashing from the ped
  7. Hello Guys I wanted to know how I could make the piss anim look like this http://prikachi.com/images/288/7181288z.png PS : This is from MTA server not a SAMP one .
  8. Just simple click anywhere out of the window and hit output you'll get the gui codes in memo you have to copy them and paste it in your script .
  9. LaCosTa

    attach

    This will let it forever function fireRocks () local rock = createObject ( 3930, -2815.18, 470.16, 4.86, 0, 354.488, 0 ) local weapon = createWeapon ("Molotov", -2815.18, 470.16, 4.86 ) local fire = createFire ( -2815.18, 470.16, 4.86, 2) attachElements ( rock, weapon, 0, 0, 2 ) setTimer ( createFire, 99999999, 0,fire) end addCommandHandler ( "fire", fireRocks )
  10. LaCosTa

    attach

    function fireRocks () local rock = createObject ( 3930, -2815.18, 470.16, 4.86, 0, 354.488, 0 ) local weapon = createWeapon ("Molotov", -2815.18, 470.16, 4.86 ) local fire = createFire ( -2815.18, 470.16, 4.86, 2) attachElements ( rock, weapon, 0, 0, 2 ) setTimer ( createFire, 99999999, 1,fire) end addCommandHandler ( "fire", fireRocks )
  11. Maybe when you tried the script you were without money ?? an please state the errors from debugscript
  12. Make sure you use getDistanceBetweenPoints3D so you can know if the other player is next to him .
  13. You just opened your server with the name of his one just for a reason to bring its players to yours so basically that's totally unfair which you have to close yours when IAnnas opens his server again ..
  14. This could help you but I didn't test it, you should change the code to your code to be synced -- client side -- you should get the ID from the data , try to save data first with -- setElementData(element, "id", value) because I don't know your code function saveInformation() local text = guiGetText(memo) local id = getElementData(localPlayer, "id") triggerServerEvent("memoInfo", resourceRoot, text, id) end addEventHandler("onClientGUIClick",button,saveInformation) --server side , you should have table where you can store the text in it and with this function -- we can get it yourTable = { -- id , text {1, "This is your Text"}, } function memoInfo(text, id) for k, v in pairs(yourTable) do if v[1] == id then v[2] = text return end end end addEvent("memoInfo", true) addEventHandler("memoInfo", root, memoInfo)
  15. I don't know you can use --colShape functions as createColCircle createColRectangle -- you can find those in wiki as well as their events -- or simply use function authorizeCmd (thePlayer , cmd ) if getElementType(thePlayer) ~= "player" then return end local x, y, z = getElementPosition(thePlayer) zone = getZoneName(x, y, z, true) -- will output LS , LV, SF if (zone == "Las Venturas" ) and (cmd) then -- you can change Las Venturas to location you want -- do something end end -- Not tested though .
  16. here is a code allow you to create any car with typing : /create carID , type any car ID you wish and it'll be created to you vehicle = {} function spawncar( thePlayer ,_, model) if isElement(vehicle[thePlayer]) then destroyElement(vehicle[thePlayer])return end local pX, pY, pZ = getElementPosition(thePlayer) vehicle[thePlayer] = createVehicle(tonumber(model),pX,pY,pZ) if (isElement(vehicle[thePlayer])) then warpPedIntoVehicle ( thePlayer, vehicle[thePlayer] ) outputChatBox("You successfully created " ..tostring(getVehicleName(vehicle[thePlayer])),thePlayer,255,255,155) else outputChatBox("There is an error please type a valid vehicle number",thePlayer,255,0,0) end end addCommandHandler( "create", spawncar)
  17. Yah I agree with Lolman My idea is do that randomly like check the hitElement if he's player and he's standing on the colshape and create the peds there without using cancelEvent or even the event "onPlayerDamage" , I think it might work that way .
  18. I don't know but this thing happens to me alot when I use this function(thePlayer) if (getElementType(thePlayer)=="player") then -- it outputs a debug error : expect elemnt in argument 1 got number or sometimes string or nothing . Is there a solution for that?
  19. I think you need this script viewtopic.php?f=108&t=89443 the owner puts his script on sale try to contact him for more informations .
  20. LaCosTa

    marker

    Try this out . local markers = { {296.20737, -37.42688, 1001.51563, 1}, {312.10248, -165.32639, 999.60101, 6}, {288.38971, -106.55548, 1001.51563, 6}, {277.55972, -37.21804, 1001.60779, 1}, {292.98145, -103.60979, 1008.27344, 6}, {293.52847, -80.34721, 1001.51563, 4}, {293.24643, -115.71572, 1008.27344, 4}, {312.62921, -149.50658, 1007.67291, 6}, {308.24817, -140.86179, 999.60156, 7}, } ammowin = guiCreateWindow(351, 132, 590, 482, "Ammunations Shop", false) guiWindowSetSizable(ammowin, false) pistol = guiCreateButton(10, 27, 116, 40, "Pistol\n10,000 $", false, ammowin) pistolammo = guiCreateButton(162, 27, 116, 40, "Pistol Ammo\n5$ / ammo", false, ammowin) Desert = guiCreateButton(10, 77, 116, 40, "Desert Eagle\n25,000 $", false, ammowin) desertammo = guiCreateButton(162, 77, 116, 40, "Desert Eagle Ammo\n7$ / ammo", false, ammowin) shotgun = guiCreateButton(10, 126, 116, 40, "Shotgun\n40,000 $", false, ammowin) shotgunammo = guiCreateButton(162, 126, 116, 40, "Shotgun Ammo\n9$ / ammo", false, ammowin) sawnoffshotgun = guiCreateButton(10, 176, 116, 40, "Sawn-Off Shotgun\n35,000 $", false, ammowin) swanshotgunammo = guiCreateButton(162, 176, 116, 40, "Sawn-Off Ammo\n8$ / ammo", false, ammowin) combatshotgun = guiCreateButton(10, 226, 116, 40, "Combat Shotgun\n40,000 $", false, ammowin) combatammo = guiCreateButton(162, 226, 116, 40, "Combat Ammo\n9$ / ammo", false, ammowin) Uzi = guiCreateButton(10, 276, 116, 40, "Uzi\n30,000 $", false, ammowin) uziammo = guiCreateButton(162, 276, 116, 40, "Uzi Ammo\n6$ / ammo", false, ammowin) MP5 = guiCreateButton(10, 326, 116, 40, "MP5\n30,000 $", false, ammowin) tec9ammo = guiCreateButton(162, 376, 116, 40, "TEC-9 Ammo\n6$ / ammo", false, ammowin) TEC9 = guiCreateButton(10, 376, 116, 40, "TEC-9\n25,000 $", false, ammowin) ak47 = guiCreateButton(303, 27, 116, 40, "AK-47\n60,000 $", false, ammowin) m4 = guiCreateButton(303, 77, 116, 40, "M4\n60,000 $", false, ammowin) countryrifle = guiCreateButton(303, 127, 116, 40, "Country Rifle\n70,000 $", false, ammowin) sniperrifle = guiCreateButton(303, 176, 116, 40, "Sniper Rifle\n90,000 $", false, ammowin) miniigun = guiCreateButton(303, 226, 116, 40, "Minigun\n1,000,000 $", false, ammowin) MP5ammo = guiCreateButton(162, 326, 116, 40, "MP5 Ammo\n7$ / ammo", false, ammowin) ak47ammo = guiCreateButton(443, 27, 116, 40, "AK-47 Ammo\n11$ / ammo", false, ammowin) m4ammo = guiCreateButton(443, 76, 116, 40, "M4 Ammo\n11$ / ammo", false, ammowin) countryrifleammo = guiCreateButton(443, 127, 116, 40, "Country Rifle Ammo\n15$ / ammo", false, ammowin) sniperrifleammo = guiCreateButton(443, 177, 116, 40, "Sniper Rifle Ammo\n15$ / ammo", false, ammowin) minigunammo = guiCreateButton(443, 227, 116, 40, "Minigun Ammo\n3$ / ammo", false, ammowin) close = guiCreateButton(152, 426, 268, 34, "Close", false, ammowin) grenade = guiCreateButton(303, 326, 266, 40, "Grenade\n1,000$ / grenade", false, ammowin) teargas = guiCreateButton(303, 277, 266, 39, "Tear Gas\n1,100$ / tear gas", false, ammowin) satchel = guiCreateButton(303, 376, 266, 40, "Satchel\n1,000 $ / satchel", false, ammowin) guiSetVisible (ammowin, false) function markerscreate () for index, value in ipairs ( markers ) do local mx,my,mz,mi = unpack( markers[index] ) mar = createMarker (mx, my, mz-1, "cylinder", 1.5, 255, 255, 255, 180) setElementInterior (mar, mi, mx, my, mz-1) end end addEventHandler( "onClientResourceStart", resourceRoot, markerscreate ) function markerhit(hitElement) if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then guiSetVisible (ammowin, true) showCursor (true) end end addEventHandler( "onClientMarkerHit", mar, markerhit )
  21. It doesn't work like that , you should provide us something from your scripting experience you have to introduce yourself to the community thus they can communicate and trade with you, besides you're posting in the wrong section .
  22. is createObject function bugged?
  23. Oh in that case I don't , anyways good luck with selling those scripts but please have a little bit of humanity , they spent a lot of hours even days doing those scripts for their server and you just simply get them from a stealer and asking for a profit without making any effort ....
×
×
  • Create New...