Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. Try putting this: triggerClientEvent ( source, "hpnotclient", source)
  2. If you want something better, you're going to have to learn how to make it, or pay someone.
  3. xXMADEXx

    Move object

    Timers aren't really a great thing to use... I'd recommend using onClientPreRender, and besides that, the makeRotate function is doing absolutely nothing...
  4. Actually, it would mostly just be math... Not really scripting.
  5. xXMADEXx

    Zone events

    You can just add it to your server using Lua. local playerData = { } setTimer ( function ( ) local checkedPlayers = { } for _, v in pairs ( getElementsByType ( "player" ) ) do local x, y, z = getElementPosition ( v ) local zone = getZoneName ( x, y, z ) checkedPlayers[v] = true if ( not playerData [ v ] ) then if x and y and z then playerData [ v ] = zone end else if ( zone ~= playerData [ v ] ) then triggerEvent ( "onZoneChange", v, zone, playerData [ v ] ) playerData [ v ] = zone end end end -- this is to remove the event from triggering if the player reconnects or something for i, v in pairs ( playerData ) do if ( not checkedPlayers [ i ] ) then playerData [ i ] = nil end end end, 200, 0 ) -- exmaple addEvent ( "onZoneChange", true ) addEventHandler ( "onZoneChange", root, function ( new, old ) outputChatBox ( getPlayerName ( source ).." went from "..old.." to "..new ) end )
  6. xXMADEXx

    Question

    Yes, you should learn SQL.
  7. xXMADEXx

    help :(

    try using this: groups = { "|USS|", "|BSAA|", "|TwP|" } addEvent("Moderator1",true) function Moderator(player, groupname) local account = getPlayerAccount ( player ) local group = aclGetGroup ( "|BSAA|" ) if ( group ) then local allowed = false for i, v in pairs ( groups ) do if ( isObjectInACLGroup("user."..getAccountName(account),aclGetGroup(v)) ) then allowed = true break end end if (not allowed ) then aclGroupAddObject ( group, "user.".. getAccountName ( account )) outputChatBox ( "#ff0000[bSAA]#ffffff El user #a5d9f2^("..getAccountName(getPlayerAccount(player))..") #ffffff Fue Reclutado al clan ", source, 255, 255 ,255, true) else outputChatBox ( "error ", source, 255, 255 ,255, true) end end end addEventHandler("Moderator1", getRootElement(), Moderator)
  8. It's a horrible idea to compile an anti-cheat script...
  9. xXMADEXx

    SOLVED

    Is it really that hard to search the community? https://community.multitheftauto.com/index.php?p=resources
  10. xXMADEXx

    [help] Edit

    You could use something like this: local str = "" addEventHandler ( "onClientKey", root, function ( b, s ) if s then if ( b == 'backspace' ) then str = str:sub ( 0, str:len() - 1 ) else str = str .. b end end end )
  11. There's nothing that we can do about it here.
  12. Nobody's going to make these scripts for free.
  13. Use the flashlight shader script: https://community.multitheftauto.com/ind ... ls&id=6858
  14. xXMADEXx

    Question

    Read this SQL tutorial: http://www.w3schools.com/sql/default.as ... beebb8869c Create your database using the MTA SQL functions: https://wiki.multitheftauto.com/wiki/Se ... _functions
  15. As far as I know, this would work, and I see no reason why not. Maybe you can try making custom functions that slightly modify the file, so it is corrupted when the user loads it. When you want to read the file, load a custom function. You can try the code below, but I'm at school right now so I cannot test it. function compileThisFile ( file ) local f = fileRead ( file, fileGetSize ( file ) ) fileWrite ( file, "__"..tostring(f).."__" ) end function decompileScript ( file ) local text = fileRead ( file, fileGetSize ( file ) ) return text:sub ( 3, text:len ( ) - 3 ) end
  16. Is this happening for all servers or just a specific server?
  17. Wow! That would be fantastic for zombie or some type of survival servers. Nice job.
  18. I think that you should actually use this for the function/event handler: function takeHisMoney(thePlayer) if ( thePlayer == localPlayre ) then triggerServerEvent("ReduceMoneyTrigger",thePlayer) end end addEventHandler("onClientMarkerHit", marker_00, takeHisMoney) addEventHandler("onClientMarkerHit", marker_01, takeHisMoney) addEventHandler("onClientMarkerHit", marker_02, takeHisMoney) addEventHandler("onClientMarkerHit", marker_03, takeHisMoney) addEventHandler("onClientMarkerHit", marker_04, takeHisMoney) addEventHandler("onClientMarkerHit", marker_05, takeHisMoney) addEventHandler("onClientMarkerHit", marker_06, takeHisMoney) addEventHandler("onClientMarkerHit", marker_07, takeHisMoney) addEventHandler("onClientMarkerHit", marker_08, takeHisMoney) You forgot to check if the player is the localPlayer.
  19. https://wiki.multitheftauto.com/wiki/Meta.xml study more, my friend NOOB Why are you calling people noobs? After all, we all know you can't script anything. My recommendation for this is to just worry about it, because you can't compile the file. The only other way would be to delete the file when the resource is loaded, but then the client would have to download it everytime.
  20. Use something like this local hash = md5 ( fileRead ( "meta.xml", fileGetSize( "meta.xml" ) ) )
  21. You can use the editor resource to get the ID.
×
×
  • Create New...