Jump to content

LaCosTa

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by LaCosTa

  1. both are working good but the db functions are new , i advise you to use dbQuery , and this tutorial might help you viewtopic.php?f=148&t=38203
  2. doing this house system without databases is nothing , databases is 80% of the house system script .
  3. LaCosTa

    Zombie Mode

    you've just to learn or pay a scripter to do that for you
  4. i got this error too , but i followed those steps and it works . you were installing many mods on MTA?
  5. table -- الجدول، ويستخدم لتخزين سريال فيه serials = { ["serial1"] = true, ["serial2"] = true, } ------------------------ createMarker --خلق ماركر الذي عندما تلمسها يفتح البوابة أو إستعمل colShape event = "onMarkerHit" --إذا تريد أن تستعمل colshape إستعمل createColRectangle event = "onColShapeHit" "onColShapeLeave" getPlayerSerial -- التأكد إذا كن السيريال إلي وضعته فالجدول moveObject -- تحريك البوابة
  6. i don't know if this will help you but give it a try http://www.zenhosting.tn/
  7. LaCosTa

    Greenzone

    createColRectangle -- to create the green zone createRadarArea -- to create the area with a specific color in your radar isElementWithinColShape -- you can also use this to check if the element is standing on the greenzone events : onColShapeHit -- to detect if someone hitted the greenzone onColShapeLeave -- to detect if someone left the greenzone
  8. try this local cars = { {429}, {402}, {541}, {415}, {480}, {562}, {587}, {565}, {411}, {559}, {603}, {560}, {506}, {451}, {558}, {555}, {477} } carmarker = createMarker( -2670.2495117188,632.93334960938,13.5, "cylinder", 1.5, 0, 0, 255, 210, root ) createBlipAttachedTo(carmarker,25) theVehicle = {} function carmarkerhit(hitElement) if isElement(theVehicle[hitElement]) then return destroyElement(theVehicle[hitElement]) end if getElementType(hitElement) == "player" and not isPedInVehicle(hitElement) then randomcar = math.random(#cars) carid = cars[randomcar][1] theVehicle[hitElement] = createVehicle(carid, -2674.5383300781,630.00115966797,13.862801551819, 0, 0, 90) warpPedIntoVehicle(hitElement,theVehicle[hitElement]) end end addEventHandler("onMarkerHit", carmarker, carmarkerhit)
  9. i tested it and it works good but , it misses many things such as missions , events that will make it better
  10. i guess no one will visit it untill they see some screenshots , i don't think they'll waste their times for visiting a server that they have no idea about it .
  11. try this server DON'T FORGET IT WORKS ONLY WHEN YOU're ON PATRIOT CAR guns = { ["xPosOffset"] = 1.0, ["yPosOffset"] = 0, ["zPosOffset"] = 0, } function attachMod(playerSource, commandName) if isElement(playerSource) and getElementType(playerSource)=="player" then local vehicle = getPedOccupiedVehicle(playerSource) if (vehicle) then vehMod = getVehicleModel(vehicle) if (vehMod == 470) then attachElementToElement(createObject(2985, 0, 0, -100, 0, 0, 0), vehicle, guns.xPosOffset, guns.yPosOffset, guns.zPosOffset, 0, 0, 90) setElementData(vehicle, "toggleVehicleWeapon", true) end end end end function detachMod(playerSource, commandName) local vehicle = getPedOccupiedVehicle(playerSource) if (vehicle) then for _, element in ipairs(getAttachedElements(vehicle)) do destroyElement(element) end setElementData(vehicle, "toggleVehicleWeapon", false) end end addCommandHandler("attachmod", attachMod, false) addCommandHandler("detachmod", detachMod, false)
  12. Provide some Screenshots and tell us more details about this server , it'll be better
  13. i don't understand what you mean but i tried you want functions ??? , functions of what script ??
  14. i saw some videos about this and i think it's possible to do it
  15. And for more assistance and further informations about tables get yourself here
  16. i loved the idea and i'm so exciding to see some screenshots
  17. i got this problem and I fixed it , what you have to do is to uninstall both mta and gta , and when you install gta and mta again make sure you put them in D driver disk , I guess they were in C driver ,remove and install them to D driver . You got this problem because you kept changing mods several times . Try this solution cuz it worked for me .
  18. he meant the vehicle is defined above ?? , it should be like this function onClientPlayerWeaponFireFunc(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle == 601 then -- if source is a local player and he uses minigun... x,y,z = getElementPosition(getLocalPlayer()) if not createProjectile(getLocalPlayer(),19,x,y,z,200) then -- then we either create a projectile... outputChatBox ( "Rocket minigun overheated! Give it a rest pal!", source ) -- or if projectile limit is reached we output player a chat message end end end
  19. you have to use these functions setWeaponProperty isObjectInACLGroup
  20. Yep , it was all about that index thank you very much for your help it works now
×
×
  • Create New...