Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. To check if the ped is facing another you need to find the rotation, to check if the ped can see the other you have to check if the client player is some element so that the function doesn't get called for all because the function uses the local player. So, you would do this: if ( thePlayerElement == localPlayer ) then if ( isElementInPhotograph ( otherElement ) ) then --do something end end Be sure to copy the function to your file, it's not a built-in one.
  2. Anderl

    Alpha weapon

    Ok, so.. Read what guys said above
  3. Take a look at these functions: getElementRotation, findRotation, getPlayersInPhotograph / isElementInPhotograph.
  4. Anderl

    Alpha weapon

    Where are 'arme' and 'thePlayer' declared?
  5. I heard a MTA server can take up to 120MB with default MTA resources ages ago.. But I guess that's just too much. The recommended RAM would also depend on the amount of players on the server and the resources loaded, as you should know.
  6. Arabic is Arabic, you're talking in your native language. English is totally different from Arabic. Perhaps you need to come back to primary school to be able to read and understand a simple and small conversation?
  7. Use local variables instead whenever possible.
  8. Anderl

    need help

    There is no such "shell.exec" function in PHP AFAIK. Also, are you sure you're sending the data 'soft' with value 'toto'? The page URL would be something like this: "http://www.mypage.com/index.php?soft=toto".
  9. Do you have a problem in consideration for this post? Or what? If you do not know the meaning of reply, he says in Arabic: يمديك تسوية عادي ذذ I laughed with this for some reason, but I didn't understand your "Englarabic".. Perhaps it's my instinct saying your post makes no sense. Please, talk in a proper English when trying to act like you're the boss.
  10. I'm pretty sure that VPS is from VolumeDrive.. I've been with them for a long time, they have a good support but their servers aren't very good. I recommend domVPS, but it's more expensive.
  11. I know there is a software to remove all objects from the GTA world, I used it once or twice. Search for IV map for SA and you'll find the tool (since it's needed to replace the SA map).
  12. Do you at least have a basic Lua knowledge?
  13. You can, but as I said, there will ever be a way to by-pass it.
  14. Have you read what I said?
  15. You need to add the client files before the server files in the 'meta.xml' file. It is passed with triggerClientEvent.
  16. Anderl

    Acl events ^^

    Example: __aclGroupRemoveObject = aclGroupRemoveObject; aclGroupRemoveObject = function ( ... ) if ( __aclGroupRemoveObject ( ... ) ) then triggerEvent ( "onACLObjectRemove", root, ... ); else return false; end end
  17. Anderl

    global chat

    Re-read the page, there is a "Server - Syntax 2" box.
  18. Anderl

    global chat

    It isn't, re-read the page.
  19. The first parameter isn't the killer element.
  20. Anderl

    global chat

    Why do you even need code in both sides? You can do it all in the server side.
  21. Anderl

    Help

    Show 'meta.xml' file.
  22. I already explained you the possible problems, it's up to you to check, I don't guess things..
  23. Talk in a proper english then.
  24. You need to add 'end's. And it's giving that error because "hitPlayer" is either not an element (but that would give the error 'Bad ped pointer' @ 'getPedOccupiedVehicle' function) or "hitPlayer" is not inside a vehicle, so you're comparing a boolean value with a number.
×
×
  • Create New...