Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. getPedOccupiedVehicle -- getting a ped's vehicle getPedOccupiedVehicleSeat -- getting a ped's seat getVehicleController -- getting vehicle's controller/driver
  2. Download the new version, https://community.multitheftauto.com/index.php?p= ... ils&id=347
  3. local x,y = guiGetScreenSize() function wasted (killer, weapon, bodypart) local sound = playSound("sounds/wasted.ogg") setSoundVolume(sound, 0.5) blood = guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) setTimer ( function() destroyElement ( blood ) end, 5000, 1 )
  4. setAccountData(playerAccount, "dollars", getAccountData ( playerAccount,"dollars" ) - 1) setVehicleLocked
  5. JR10

    Area scripting.

    --Collision shape functions createColCircle createColCuboid createColRectangle createColSphere createColTube createColPolygon
  6. JR10

    MTA:SA 1.1.1 Released!

    I tried it again, and I did crash. I reported it, along with the script, the mod, and reproduce steps.
  7. JR10

    MTA:SA 1.1.1 Released!

    I specified 0, just like what the wiki says. EDIT: It only happens when I "F12 >> Minimize >> Restore" Normally without taking a screenshot, I don't crash. Should I still report it?
  8. JR10

    MTA:SA 1.1.1 Released!

    Yes, in the latest, and it didn't happen to me before, just when I got to test replacing peds/weapons in 1.1.1.
  9. JR10

    MTA:SA 1.1.1 Released!

    When I take a screenshot, minimize, restore, I crash, (I had a skin mod) should I report that on mantis?
  10. setVehicleLocked /lock: addCommandHandler ( "lock", function(player) if not isPedInVehicle ( player ) then return end local veh = getPedOccupiedVehicle ( player ) setVehicleLocked ( veh , not isVehicleLocked ( veh ) ) end)
  11. Here comes my point, you don't even know how to outputChatBox to one player, that's what copy+paste every code does. outputChatBox("You Dont Have Money to buy weapon",source)
  12. JR10

    Some skins

    Looks awesome. Great job.
  13. JR10

    SAving Money?

    This example is wrong, onPlayerJoin will have a guest account. function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in local playermoney = getPlayerMoney ( source ) -- get the player money setAccountData ( playeraccount, "piraterpg.money", playermoney ) -- save it in his account end end function onPlayerLogin (_, playeraccount ) -- when a player logins, retrieve his money amount from his account data and set it if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "piraterpg.money" ) -- make sure there was actually a value saved under this key (check if playermoney is not false). -- this will for example not be the case when a player plays the gametype for the first time if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin)
  14. You must start scoreboard first, put it before countryid.
  15. You don't need to make a new topic. https://community.multitheftauto.com/index.php?p= ... ls&id=1995
  16. You're a f*ucking artist dude. Great job.
  17. JR10

    MTA:SA 1.1.1 Released!

    Stop being so f*cking negative, 1.1.0 has a lot of new awesome features, take a look at that long list of Changes in 1.1. [General] Replace weapon models (Cazomino05) - resolved. Replace weapon models added? Anyway, good job, thanks.
  18. May you PM me or post the full code?
  19. executeSQLInsert ( "Gangs", "'".. gangname .."', '"..sourcename.."'" )
  20. function creategang(source, commandName, gangname) isgang = getElementData(source,"gang") if isgang then outputChatBox("Your allready in a gang /quitgang first", source, 255, 0, 0) else sourcename = getPlayerName ( source ) local gang = executeSQLSelect ( "Gangs", "Gangname", "Gangname = '" .. gangname .. "'" ) if gang and #gang > 0 then outputChatBox("This Gang is allready created!", source, 255, 0, 0) else local money = getPlayerMoney(source) if (money > 3000) then takePlayerMoney(source, tonumber(3000)) executeSQLInsert ( "Gangs", "'Gangname','Leader'", "'".. gangname .."', '"..sourcename.."'" ) outputChatBox("You have created the "..gangname..".", source, 0, 255, 0) setElementData(source, "gang", gangname) setElementData(source, "Rank", "Leader") end end end end addCommandHandler("creategang", creategang, gangname)
  21. Some guy uploaded all shader resources, and uploaded coloured snow, I.E: he just stole snow resource, and changed the images. https://community.multitheftauto.com/index.php?p= ... ls&id=2889 https://community.multitheftauto.com/index.php?p= ... ls&id=2890 https://community.multitheftauto.com/index.php?p= ... ls&id=2891 https://community.multitheftauto.com/index.php?p= ... ls&id=2892 https://community.multitheftauto.com/index.php?p= ... ls&id=2893 https://community.multitheftauto.com/index.php?p= ... ls&id=2894 https://community.multitheftauto.com/index.php?p= ... ls&id=2895 https://community.multitheftauto.com/index.php?p= ... ls&id=2896 https://community.multitheftauto.com/index.php?p= ... ls&id=2897 https://community.multitheftauto.com/index.php?p= ... ls&id=2898
  22. Method of creation, saving, loading should be the same. EDIT: removeElementData
×
×
  • Create New...