xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Try putting this: triggerClientEvent ( source, "hpnotclient", source)
-
If you want something better, you're going to have to learn how to make it, or pay someone.
-
Timers aren't really a great thing to use... I'd recommend using onClientPreRender, and besides that, the makeRotate function is doing absolutely nothing...
-
Actually, it would mostly just be math... Not really scripting.
-
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 )
-
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)
-
It's a horrible idea to compile an anti-cheat script...
-
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 )
-
There's nothing that we can do about it here.
-
Nobody's going to make these scripts for free.
-
Use the flashlight shader script: https://community.multitheftauto.com/ind ... ls&id=6858
-
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
-
Is this happening for all servers or just a specific server?
-
Wow! That would be fantastic for zombie or some type of survival servers. Nice job.
-
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.
-
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.
-
Use this event: onClientKey
-
Use something like this local hash = md5 ( fileRead ( "meta.xml", fileGetSize( "meta.xml" ) ) )
-
You can use the editor resource to get the ID.
