Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. You can use getRealTime. "timestamp" returns the UNIX timestamp, and you can use getRealTime(timestamp) to get the details of the timestamp (seconds, minutes, hours, days, months, years, etc).
  2. Callum

    Patching 1.0

    From what I recall, it's a simple matter of replacing gta_sa.exe with the 1.0 version.
  3. Try reading the name of this forum board.
  4. Unless you use 0.5.1 nightly builds that support Lua scripting.
  5. Well we cannot see how your SQL is setup, but I'm guessing the data doesn't exist.
  6. Those errors are due to the fact that SQL can't retrieve the data correctly.
  7. Callum

    RPG vs Roleplay

    It's true people prefer to "relax" more (drive a car wrecklessly or flame other players, in most cases), but then when they actually setup a RP, it's always ruined by people that just want to do whatever the hell they want.
  8. Callum

    RPG vs Roleplay

    So, over the last few years the most common gamemodes by far have been RPG and Roleplay. Though some may argue they are "the same thing", I would describe RPG as a deathmatching arena, and Roleplay as bureaucracy at it's tightest. Which do you prefer to play, and why? If you don't like either gamemode genre, then simply do not reply or vote. I notice that dozens of new Roleplay servers open daily, but barely any of them actually make it anywhere. Whereas RPG servers are ever so slightly less common, and more inclined to become a success - however, it could be argued that this is because it is a lot easier for "noobs" to gain access to RPG servers.
  9. Callum

    [Help] scripts codes

    Because it's not exactly a secret. All computer code can be decompiled, even C. As long as MTA can understand LuaC code, It can be decompiled.
  10. You can use the PHP SDK to call functions that have been exported to HTTP, from PHP. You can make the function return a value. Use getPlayerSerial.
  11. MTA censors bad words yet the MTA port checker returns "Fuck yeah!" if the port is open.
  12. Theoretically infinite, though I imagine it can only store so much before imploding; probably 65535 columns (keys).
  13. This resource is a total copy of my resource, as shown by switching between this image and this image. The only difference is the function name. Another of xPiwel's resources clearly show his scripting style is totally different. Moreover, even the indentation mistake I made is exactly the same. Despite this, he claims he did not copy it...bullshit DONE
  14. You cannot edit the F11 map, but you can easily make it Los Santos only - you could map objects all around Los Santos, though that wouldn't be very efficient. You could check whether the player has exited a collision shape filling Los Santos. If so, use velocity to push them back in. You could also kill them if their zone name isn't "Los Santos".
  15. Could you provide an example of a topic that would be placed in this board?
  16. If you don't want to learn, it's your problem, we don't care. Also, the language which you mentioned is called C#/C++ not Cpp. Cpp is C#/C++ source files extension. C # (or C Sharp) is not the same as C and/or C++. C# is a lot more basic, and is like Visual Basic in many ways. Whereas C and C++ are the core fundamentals of computer programming.
  17. Should teach people not to use variables if they're only ever going to use them once.
  18. customblip = exports.customblips:createCustomBlip ( 2521.1252441406, -1290.2532958984, 16, 16, "pill.png" ) Consider reading some Lua tutorials.
  19. Callum

    Que esta mal?

    function deleteAllPlayerBlips(player) for i, element in ipairs(getAttachedElements(player)) do if isElement(element) and getElementType(element) == "blip" then destroyElement(element) end end local team = getPlayerTeam(player) if isElement(team) then print("Number of players in team: "..tostring(countPlayersInTeam(team))) end end
  20. >= means greater than or equal to > means greater than <= means less than or equal to < means less than == means equal to ~= means not equal to So, providing you have surpassed from the first year of primary school, you should be able to figure it out.
  21. Callum

    Not Installing!

    I presume you are installing Grand Theft Auto from a legally obtained copy of the disc?
×
×
  • Create New...