Jump to content

KariiiM

Members
  • Posts

    1,312
  • Joined

  • Last visited

Everything posted by KariiiM

  1. Are you using this "fadeCamera" function somewhere? If yes, check if it has an argument with false bool then turn it to true
  2. Yeah it's the perfect way in my opinion in this case, that's what I do, notepad++ has alot of useful features, If I'm not wrong it can also search for a specific text in a compiled file and returns what line it has.
  3. function OnPlayerJoin ( ) spawnPlayer ( source, -2332.2952, -1641.4176, 483.7031 ) fadeCamera ( source, true ) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin", root, OnPlayerJoin ) You were using a undefined variable.
  4. [quote name=..&G:..]Is there an event like "onPlayerMove" or something like that? I want to make a player to player teleport system and when the player sends a request to another player, if they move the teleportation request cancels... Thank You There's no event triggering the player's movement, but it's possible to create a custom code for that, for example; get the player's current position and check if the floating number is changed, to do that you can set the position of a player in a element data and use onElementDataChange to check if the value is changed or no, if changed that means the player is moved.
  5. Just the same goes here, a week ago it was working fine for me and now the same problem goes with me. About me, I didn't try anything to solve it. Edit: It's weird, now it works fine again but sometimes doesn't work
  6. https://community.multitheftauto.com/in ... ils&id=419
  7. KariiiM

    Help

    What do you mean by "start mod" and "some players"?
  8. I already noted that
  9. Cars = {} --## CAR IDs ##-- Cars[429] = true bindKey("lshift","down", function() if (isPedInVehicle(localPlayer) and Cars[getElementModel(getPedOccupiedVehicle(localPlayer))]) then if (isDrifting == false) then isDrifting = true setVehicleHandling(v, "maxVelocity", 300.0) setVehicleHandling(v, "engineAcceleration", 90.0 ) setVehicleHandling(v, "engineInertia", -999) elseif (isDrifting == true) then isDrifting = false setVehicleHandling(v, "maxVelocity", 300.0) setVehicleHandling(v, "engineAcceleration", 30 ) setVehicleHandling(v, "engineInertia", 5) end end end) function isDriftingstatus (seat) if (Cars[getElementModel(getPedOccupiedVehicle(localPlayer))]) then isDrifting == false end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), isDriftingstatus ) Note: "v" isn't defined in this part of your code. Also, the pre defined variable "localPlayer" doesn't work in server side, use "source" instead
  10. It's not the right usage of getRootElement(), this function returns the root element (players, vehicles, peds, resources...etc) and also this function doesn't require any arguments. often, you mean "getElementData" as denny199 said
  11. KariiiM

    interior

    A mapped interior or SA interior's default ones
  12. KariiiM

    WareHouse

    Hmm, If I get what you mean, you meant if you typed the command ware house in a specified zone/area, script gonna work on this area where you typed the command at. Is that what you mean?
  13. KariiiM

    WareHouse

    I didn't get what you mean, try to be more clear
  14. Tested, it's easy to use but it seems you worked HARD on it, to build a resource like this it will take a while, as it has alot of features. Great job IIYAMA, you are helping the community alot, hope the MTA developers take a look at it after the release of this custom debug, I believe it'll be easy for any user. Continue..
  15. KariiiM

    TOP mysql

    Modules are too outdated, Instead use dbFunctions they're better
  16. KariiiM

    SOLVED

    Yes you're right, I am sorry I didn't take attention,I tought he used isElementWithinColShape ,it was 4 AM for me so yeah that's why
  17. KariiiM

    SOLVED

    Fight? no man I said that, because I know what I am talking about, Read the wiki: https://wiki.multitheftauto.com/wiki/Is ... inColShape this function requires two arguments What :~ are you talking? Your code is rather longer and my is shorter. Also my code's performence is better. You don't need to put so many ifs. Also he is NOT USING THAT FUNCTION RATHER THIS: getElementsWithinColShape /end Hey calm down, I didn't mean anything bad, I just said this function requires two arguments else it won't work as the wiki said: IsElementWithinColShape and sorry If you understood it by wrong, we are here to help and learn from our mistakes I'm gonna test it right now and see the result maybe I am wrong, I just followed the wiki's words.
  18. KariiiM

    SOLVED

    Fight? no man I said that, because I know what I am talking about, Read the wiki: https://wiki.multitheftauto.com/wiki/Is ... inColShape this function requires two arguments
  19. KariiiM

    SOLVED

    This code won't work, Try this: function onDie( ) if (eventName == "onPlayerWasted") then if ( isTimer( timing ) and #getElementsWithinColShape(getElementColShape(theShape), "player") == 0 ) then killTimer( timing ) end elseif (eventName == "onPlayerQuit") then if ( isTimer( timing ) and #getElementsWithinColShape(getElementColShape(theShape), "player") == 0 ) then killTimer( timing ) end elseif (eventName == "onMarkerLeave") then if ( isTimer( timing ) and #getElementsWithinColShape(getElementColShape(theShape), "player") == 0 ) then killTimer( timing ) end end end addEventHandler( "onPlayerWasted", root, onDie ) addEventHandler( "onPlayerQuit", root, onDie ) addEventHandler( "onMarkerLeave", root, onDie )
  20. KariiiM

    SOLVED

    Yeah Also, getElementsWithinColShape The type of this function Is a table, not number the check is false
  21. KariiiM

    SOLVED

    function onDie( ) if isTimer( timing ) and getElementsWithinColShape( theShape ) == 0 then killTimer( timing ) end end addEventHandler( "onPlayerWasted", root, onDie ) addEventHandler( "onPlayerQuit", root, onDie ) addEventHandler( "onMarkerLeave", root, onDie )
×
×
  • Create New...