Jump to content

Sparrow

Members
  • Posts

    378
  • Joined

  • Last visited

Everything posted by Sparrow

  1. wa7da menhom: https://community.multitheftauto.com/ind ... ils&id=380 https://community.multitheftauto.com/ind ... ls&id=5645
  2. mta3 les fars/feu rouges mta3 el karhba fama menha script ready fil community
  3. dima 3andk "end" zyda addEventHandler("onResourceStart", resourceRoot, function(player) x, y, z = getElementPosition(player) exports.customblips:createCustomBlip(x, y, 20, 20, "imageName.png") end ) function check() if (x, y, z = true) then return true else return false end end setTimer(check, 1000, 0)
  4. maw 9oul akeka mil oul engineLoadTXD engineImportTXD engineLoadDFF engineReplaceModel
  5. telechargi: https://community.multitheftauto.com/index.php?p= ... ils&id=960 w a3ml exports: exports.customblips:createCustomBlip ( float worldX, float worldY, int imageWidth, int imageHeight, string imagePath, [float streamRadius = 500] ) EX: local x, y, z = getElementPosition(player) exports.customblips:createCustomBlip(x, y, imageWidth, imageHeight, "imageName.png", streamRadius)
  6. Sparrow

    Simple Help

    in which line is the problem? change source on line 5 to player to set your team to "STAFF"
  7. @hernandez, ken jina enajmou nektbou 3arbi, rana ma3malnech request lil board hedhi.
  8. ataw tchouf el kawereth mta3 el twnsa fil scripting
  9. I support this idea, maybe I (Sparrow) and Samer can handle this sub forum. and thanks for creating this sub forum
  10. also you can work with element data, get if a vehicle owned by a group/team and let players enter it. I guess this what you need: setElementData -- use this if you are going to add a function to set vehicle owned to a group getElementData outputChatBox cancelEvent "onClientVehicleEnter"
  11. change "accountName" on line 4 to getAccountName(getPlayerAccount(source)) or add local accountName = getAccountName(getPlayerAccount(source))
  12. I don't need to be moderator, but others wants me why not also if there is a topic that we want it to be sticked/locked, we don't like to wait for TAPL/JR10 to lock/stick it
  13. we will have our own moderators in section inside arabic board?
  14. all arabic countries uses arabic letters on writing, but we (tunisians) use french + numbers, also our keyboard doesn't contain arabic letters
  15. that takes alot of time, it's better if we post on a Tunisian Board, so we can understand each others
  16. vous avez besoin de scripter: viewtopic.php?f=148&t=40809 ça vous donne une gilet lorsque vous écrire: /gilet function donneMoiUneGilet() setPedArmor(source, 100) end addCommandHandler("gilet", donneMoiUneGilet) ça mettez votre santé au maximum lorque vous écrire: /vie function donneMoiUneNouvelleVie() setPedStat(source, 24, 1000) end addCommandHandler("vie", donneMoiUneNouvelleVie)
  17. 1) démarrer "realdriveby" resource 2) j'ai pas compris le question, désolé 3) setPedStat 4) createPed 5) -- Gilet par balle setPedArmor(element, 100) -- Santé au max. setPedStat(element, 24, 1000)
  18. Sparrow

    [TUT] SQLite

    there is a way to delete all rows in a table? like this: local account = getAccountName(getPlayerAccount(player)) executeSQLQuery("DELETE * FROM tableName WHERE accountName ='"..tostring(account).."'")
  19. it's almost the same, just you need: local vehicle = createVehicle(vehicleID, x, y, z) local trailer = createVehicle(trailerID, x, y+5, z) warpPedIntoVehicle(source, vehicle) attachTrailerToVehicle(trailer, vehicle) change (x, y, z) with coordonates where the vehicle will be spawned when you start a map, same for vehicleID and trailerID. also remeber to change 'source' with element that you use
  20. function attachTrailerToMyTruck() local x, y, z = getElementPosition(source) local vehicle = createVehicle(vehicleID, x, y, z) local trailer = createVehicle(trailerID, x, y+5, z) warpPedIntoVehicle(source, vehicle) attachTrailerToVehicle(trailer, vehicle) end addCommandHandler("createTruck", attachTrailerToMyTruck)
  21. the first 'givePlayerMoney' gives the player random money from $100 to $400 but the second, gives the player $50 only if his vehicle health more than 990 ----------- maybe the code will not work since 'delses' on line 8 not defined.
  22. that gives money to player when his vehicle health over 990 ------------ this one gives player money if his vehicle health equal or more that 990 if getElementHealth(vehicle) >= 990 then givePlayerMoney ( source, 50 )
  23. you mean when your vehicle health egal to 990 or higher you won money?
×
×
  • Create New...