Jump to content

Siml0x

Members
  • Posts

    4
  • Joined

  • Last visited

Siml0x's Achievements

Vic

Vic (3/54)

0

Reputation

  1. I'm not quite sure if I understood you correctly, but I think you are talking about problems with a multithreaded environment. As far as I know MTA handles the scripting part in one single thread. Therefore it would be (for the server): Global Var x = 2 Client A triggers the event. Client B triggers the event. Server Recognizes the Event of Client A Function is executed x is now 1 Server Recognizes the Event of Client B Function is executed x is now 0
  2. Hi there, I want to kill everyone who is AFK when a new race launches. So I created a simple function called "isPlayerAFKMode()" which is working fine. But it seems that I can't find the position in race_server.lua where the race launches so I can kill the player on start of a new race. Where is that position where I can integrate this snippet? if isPlayerAFKMode(player) == true then killPed(player) end
  3. Well I might need to add something: I'm a total newb to lua, but I'm working with php for a longer time now. Also I don't need returns or stuff like that. I just need something like game-monitor has. Just with a playerlist...
  4. Hi, currently I want to make a neat playerlist for our clan. So I searched around the net and this forum and found 3 php classes / tools to get information like playernames from the server. None of the scripts worked. Well my question is: Is there any working PHP Query Class for the current MTA Version? Or is there any documentation how to get this information by UDP?
×
×
  • Create New...