Jump to content

AC #1 : You were kicked from the game


Michi

Recommended Posts

  • 3 months later...
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?

Link to comment
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!
Link to comment
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 especific

You could just disable this anti cheat at mtaserver.conf, if i'm not wrong.

It didn't work :(

1

Thanks for helping

Link to comment
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)

Link to comment

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 xD...

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.

Link to comment

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) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...