Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/08/20 in Status Updates

  1. WIKI Yesterday I added my first wiki page. Which is not necessary something you call 'news'. But it was a lot of fun figuring out how the interface actually works. It is to be honest not very beginner friendly, even though there is a lot of documentation added. documentation The page/function which I added to the useful functions list: https://wiki.multitheftauto.com/wiki/CheckPassiveTimer This useful function allows you to use passive timers in your conditions. For example you want to prevent players repeatedly using a command. I named the function 'checkPassiveTimer', not sure if that is the best name for it, since it it does SET, CHECK and UPDATE, (+ Clean up cycle), depending on the situation. Checking is what you expect it actually does, so I picked that one. addCommandHandler("candy", function (player) if checkPassiveTimer("candy timer", player, 5000) then outputChatBox("YES, EAT!", player) else outputChatBox("NO CANDY FOR YOU!", player) end end) Does anybody have any suggestions/idea's/?? Or more experience than me with the WIKI + suggestions or improvements for the format?
    3 points
×
×
  • Create New...