Michi Posted October 12, 2010 Posted October 12, 2010 I get this error after a zombie attack me on my server!! i have never installed some hacks like s0beit ! pls help me sry for my bad english
dzek (varez) Posted October 12, 2010 Posted October 12, 2010 you have probably some kind of god mode/friendly fire etc turned on from another resource than zombie.
Michi Posted October 12, 2010 Author Posted October 12, 2010 Thanks works fine yet. it was an resource that have turned off friendly fire
CrazyDude Posted October 12, 2010 Posted October 12, 2010 Thanks works fine yet. it was an resource that have turned off friendly fire I had same problem on my server, when i used "setElementHealth" on client-side
nicangeles Posted January 24, 2011 Posted January 24, 2011 And how exactly i can do that? i have the same problem in one of my computers at home....
12p Posted January 24, 2011 Posted January 24, 2011 createTeam setTeamFriendlyFire setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam EDIT: WTF there is a bug on lua forum code containers!
Arran Posted January 24, 2011 Posted January 24, 2011 Yeah I had that lua code bug, perhaps somebody should look at it. There was a bug in AC detection (dont use setElementHealth inside onClientPlayerDamage) which ccw has now fixed.
nicangeles Posted January 24, 2011 Posted January 24, 2011 createTeam setTeamFriendlyFire setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam EDIT: WTF there is a bug on lua forum code containers! im sorry, that was an answer for me? if so, can you explain from zero? were i cand edit that lines?
nicangeles Posted January 26, 2011 Posted January 26, 2011 i mean, can anyone help me? this error is killing me.... i cant play the zomie server... can ou help me??? im going really crazy here
12p Posted January 26, 2011 Posted January 26, 2011 local t = createTeam ("Humans",0,255,0) --Creating team... setTeamFriendlyFire (f,false) --No DM in team... addEventHandler ("onPlayerJoin",getRootElement(), function () setPlayerTeam" class="kw6">setPlayerTeam (source,t) --When a player enters, set his team as the humans one. end) And it will work. PS: Delete the things between setPlayerTeam [1] and [2] and delete one of them. PS2: Fix that bug please!
Castillo Posted January 26, 2011 Posted January 26, 2011 You could just disable this anti cheat at mtaserver.conf, if i'm not wrong.
nicangeles Posted January 26, 2011 Posted January 26, 2011 local t = createTeam ("Humans",0,255,0) --Creating team... setTeamFriendlyFire (f,false) --No DM in team... addEventHandler ("onPlayerJoin",getRootElement(), function () setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam" class="kw6">setPlayerTeam (source,t) --When a player enters, set his team as the humans one. end) And it will work. PS: Delete the things between setPlayerTeam [1] and [2] and delete one of them. PS2: Fix that bug please!Sorry, i dont know were to edit that.I need you to be more especificYou could just disable this anti cheat at mtaserver.conf, if i'm not wrong.It didn't work 1Thanks for helping
12p Posted January 26, 2011 Posted January 26, 2011 Sorry, i dont know were to edit that.I need you to be more especific https://wiki.multitheftauto.com/wiki/Scripting_Introduction
nicangeles Posted January 26, 2011 Posted January 26, 2011 Sorry, i dont know were to edit that.I need you to be more especific https://wiki.multitheftauto.com/wiki/Scripting_Introduction thanks for the link, i have been reading the site for like an hour.. i actually program on AS3 (Flash) and the lenguaje its similar, but i work for 9 hours a day and just want to play a simple game.. I dont want to sound rude, but im not going to learn how to script mta only to Avoid Zombies Kicking me from server when there is people who write scripts all day long... i mean, if you (maybe one day) have a question about AS3 ill be glad to answer you, but i will not be giving you a link to a "Action script 3 bible". Again, dont want to sound rude but im really tired. Just want a file or an especified place to write what you recommend, thats all. I think that your lvl of scripting expertice is high so you will not need to expend so much time explaining it to me.. if so, im thankfull for your help anyway. Best regards. Nicolas ps: the server (not my server) kicks me of when a zombie attacks me (unfortunately im not the only one with this problem, you can check the server and ask if you want srv.justhost.lt , 22003)
12p Posted January 26, 2011 Posted January 26, 2011 I thought you were intelligent enough to notice WHERE TO PUT THE CODE I GAVE YOU in just 30 Minutes. Well, it's SOO simple ... Go to: MTA/server/mods/deathamatch/resources Then add a folder named "antidm", and get inside it. Then, add a file and name it "meta.xml". You must open it and copy this to it: <meta> <info name="Anti Deathmatch" version="1.0" /> <file src="script.lua" /> </meta> OK, now go again to "antidm" folder, add another file, and call it "script.lua". Then add the code I gave you. After all that, you should use "refresh" cmd on the server and then "start antidm" cmd. Then, delete anything you did before about preventing damage. And it should work. For your knowledge, the part you should check is just "Creating a working script", but applying what I told you.
LT Uranus Posted January 27, 2011 Posted January 27, 2011 maybe zombies hit u while u are in safe zone ? (probobly) thats why u get kicked (had same problem in my server) i wont try to figure why this hapens...,safe zone are extremly unsafe when it has no fences/gates ,thats why
12p Posted January 27, 2011 Posted January 27, 2011 No. This problem happens because people use scripts like this with zombies (of course it's just an idea of which kind of script): addEventHandler("onPlayerDamage",getRootElement(), function (attacker) if attacker and isElement(attacker) then cancelEvent() end end)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now