Jump to content

+[L]oS

Members
  • Posts

    3
  • Joined

  • Last visited

Details

  • Gang
    ND
  • Location
    Brasil
  • Occupation
    Streets
  • Interests
    Script

+[L]oS's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Sorry for my English, I'm using a translator ... anyway. I would like to know how I do to re-enable setTime because when it is destroyed by killTime, I can no longer check whether it is active or not by the "if not time [thePlayer] then". I am trying to mount the script for: When the player logs in, the script starts to give points to it, when it logs out (either because it left the server or unlogged) it stops giving points, understand?
  2. Thank you very much, I have another question. At the time that setTime is destroyed, it can not be connected again?
  3. Hi, I'm creating a SQL-based currency system script, I put a setTime to generate coins at a certain time for certain players, however, I need to destroy this setTime when the player clears, I already did something to do that, However, when the player clears and setTime is destroyed, everyone's time is destroyed, not just the user who logged out. I need that when certain user is logged off, only his setTime is canceled ... does anyone have any idea what I can do? Starting time: function startFunction(_,thePlayer) tempo = setTimer ( function() ...code... end, 2000, 0 ) end Destroy time: function playerOff(thePlayer) ...code... if isTimer ( tempo ) then killTimer ( tempo ) end end addEventHandler("onPlayerQuit", getRootElement(), playerOff) addEventHandler("onPlayerLogout", getRootElement(), playerOff)
×
×
  • Create New...