Jump to content

megaman54

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by megaman54

  1. When i first started thinking about this, i thought i should use getTickCount() but now, i know it can also done with a timer. As eAi said, timer is unaccurate in this kind of use, then i will try to use getTickCount() as a replacement. Thanks.
  2. Well, i already made a simple command but yours looks only a bit different. My code: local uptime = 0 setTimer(function() uptime = uptime + 1 end, 1000, 0) function showUptime(player) outputChatBox("Server uptime: " ..uptime.. " seconds", player, 0, 255, 0) end addCommandHandler("uptime", showUptime) EDIT: How to convert the seconds into days, months, years... etc ?
  3. Both, command and real counter are OK. But i dont really understand your code EDIT: Lol now i get it! Thanks for the fast reply I thought this would be more complicated than this but it wasn't Nice! Thanks again !
  4. What functions i should use to make server uptime counter that is viewable in-game?
  5. why dont you just put your mta in full screen? Because its more easy to use MSN and other programs while playing without the need to alt + tab.
  6. I need it because when i use the ingame camera to take pictures in windowed mode but then it captures my whole screen not just the MTA window, and i want to use the camera.
  7. Yea that would be catastrophic but it would be useful too, if used right. But anyway thanks for the fast answer.
  8. Can the F12 screenshot be triggered with event or something from scripts?
  9. So true solidsnake14 and Static-X and big thanks for Beluga for this code piece
  10. Hi! I have made a anticheat that kicks players if they equip a minigun or something and if they enter a rhino. But, i want this anticheat to ignore admins and moderators, how to do this? And in another script i found a function like isPlayerAdmin() is this function hardcoded? I dint found it at wiki But anyway here is the anticheat script: function illegalweapon ( previousWeaponID, currentWeaponID ) if currentWeaponID == 38 or currentWeaponID == 35 or currentWeaponID == 36 then local weapon = getWeaponNameFromID ( currentWeaponID ) kickPlayer ( source, " AC detected ".. weapon) outputChatBox("Cheater/Bug Abuser kicked!", getRootElement(), 255, 0, 0) outputServerLog("ANTICHEAT: kicked abuser/cheater.") end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), illegalweapon ) function kickCheat ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 432 ) then kickPlayer ( source, " AntiCheat detected a Rhino. " ) outputChatBox("Cheater/Bug Abuser kicked!", getRootElement(), 255, 0, 0) outputServerLog("ANTICHEAT: kicked abuser/cheater.") end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), kickCheat )
  11. Send me the full source code at: [email protected] and i will translate it to english!
  12. Well, i'm making a smaller admin/moderator panel because some of my admins and moderators got a slow computer so the big admin panel lags for them. Only basic things in my panel
  13. Thanks!! Now i got it I tried this a month ago and failed, but now, i will success thanks to you
  14. Ok thanks i'm making a moderator panel so this was needed. EDIT: When data is in server side, transferred with event, how to handle it server side? Like this: i have a edit box and a button. I write someones name to the edit box and press the button. Event gets triggerded and data went to server side script, and now the server should kick that player with the name i typed in the edit box. How to make this happen?
  15. How to send data from a GUI edit box to a server? Or any GUI data, like memos, edit boxes and all.
  16. Ohh, thanks alot man! Couldn't find those commands anywhere. Some of them were in ACL But BIG thanks for the full command list! MORE RESPECT
  17. because is not id's!, interiorpositions.lua - here you have all id's , names example /createinterior bar 1000 0 Ufo Bar in LV Ok thanks. This really helped me RESPECT
  18. I already have this part. Where i could see the shop cnfig codes and all? And another error: when creating interior with /createinterior [id] |price] [type....] [name] it says "interuor number (the id i put was here) does not exist." And with shops i get this "config number (config number that i put was here) is not confirgued"
  19. I need this settings.xml file for paradise roleplay gamemode because i cant create shops or anything because i dont know the "config" codes. Upload it somewhere and pm me the link or put it here, thanks.
  20. How to complie scripts? And with what program? I tried luac52 but when i run the script in server it says: "Cant load script, bad header in precomplied chunck" help please
  21. How i can use freecam resource? Like a command and it enables you to fly around with the freecam.
  22. I dint understand your fix at all. Tell me one thing, how to use "if" thing? I copied that one from another script...
  23. as i said - it won't work. velocity of players are limited by gta to rather LOW value - setting it to 999 will have not result. And your code won't work if player is in car. I wont write next 500 lines of code to this script because it doesn't need it. Maybe i just need to change the nice GUI to a boring command, thats all.
×
×
  • Create New...