Search
 
 

Display results as :
 

 


Rechercher Advanced Search

Keywords

Latest topics
» Bus School Application to be VIP
10/7/2015, 9:22 pm by Bus School

» The main forum has been moved
21/6/2015, 10:38 pm by Anonymous :D

» Application to be mod on saz server
28/3/2015, 7:33 pm by Anonymous :D

» Aplication mod
6/2/2015, 8:12 am by Ajmin

» Refurbishing the forum
4/2/2015, 6:44 pm by ZxC

» Ban appeals request
4/2/2015, 6:32 pm by ZxC

» Suggesting ideas
4/2/2015, 6:23 pm by ZxC

» Rule violation and banning
4/2/2015, 6:01 pm by ZxC

» Server Rules
4/2/2015, 5:57 pm by ZxC

July 2017
MonTueWedThuFriSatSun
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar Calendar


Update for Anti-Spawnkill script

View previous topic View next topic Go down

Update for Anti-Spawnkill script

Post by ZxC on 4/10/2014, 3:43 pm

Hello there! Very Happy

In this thread, there is the anti-spawnkill script updated by me.

In general i added some tile positions and new forbidden buldings, you will see the changelog in the below:

-Version 1.1(updated)-

[+Added] New tile positions
[+Added]New forbidden buldings: Dispenser,Supply,Gate Field,Barbed Wire,Teleport Entrance,Teleport Exit,Mine and Laser Mine.


-Version 1.0(old)-

[Created] The script is created with some tile positions and forbidden building (Turret only).

Not a big deal, but the new version is coming with some useful updates to prevent the spawnkill.

Here is the code updated:

Code:
addhock ("buildattempt","build")
function build (id,type,x,y)
if player (id,"team")==1 then
if x==38 and y==29 or x==39 and y==29 or x==38 and y==30 or x==39 and y==30 or x==38 and y==31 or x==39 and y==31 or x==38 and y==32 or x==39 and y==32 or x==38 and y==33 or x==39 and y==33 or x==38 and y==34 or x==39 and y==34 or x==37 and y==35 or x==38 and y==35 or x==39 and y==35 or x==37 and y==36 or x==37 and y==37 or x==38 and y==37 or x==39 and y==37 or x==38 and y==38 or x==39 and y==38 or x==40 and y==38 or x==41 and y==38 or x==41 and y==38 or x==42 and y==38 or x==38 and y==39 or x==39 and y==39 or x==41 and y==39 or x==42 and y==39 or x==35 and y==35 or x==35 and y==36 or x==35 and y==37 or x==34 and y==37 or x==34 and y==36 or x==40 and y==39 or x==38 and y==28 or x==39 and y==28 or x==238 and y==27 or x==39 and y==27 or x==38 and y==26 or x==39 and y==25 or x==38 and y==25 or x==38 and y==24 or x==39 and y==24 or x==37 and y==23 or x==38 and y==23 or x==39 and y==23 then
if type==8 or if type==6 or if type==2
msg(""..player(id,"name").."Violated a rule (build turrets on enemy base) and therefore has been punished)
parse("kill "..id.."")
end
end
end
if player(id,"team")==2 then
if x==3 and y==17 or x==3 and y==16 or x==3 and y==15 or x==3 and y==14 or x==3 and y==13 or x==3 and y==12 or x==3 and y==11 or x==3 and y==10 or x==4 and y==10 or x==5 and y==10 or x==4 and y==11 or x==4 and y==12 or x==4 and y==13 or x==4 and y==14 or x==4 and y==15 or x==5 and y==11 or x==5 and y==12 or x==5 and y==13 or x==5 and y==14 or x==5 and y==15 or x==6 and y==11 or x==7 and y==11 or x==7 and y==10 or x==8 and y==10 or x==8 and y==11 or x==9 and y==11 or x==9 and y==10 or x==6 and y==10 or x==6 and y==10 or x==10 and y==10 or x==10 and y==11 or x==11 and y==10 or x==11 and y==9 or x==11 and y==8 or x==12 and y==9 or x==13 and y==9 or x==14 and y==9 or x==15 and y==9 or x==15 and y==10 or x==15 and y==11 or x==14 and y==11 or x==13 and y==11 or x==12 and y==11 or x==11 and y==12 or x==12 and y==12 or x==13 and y==12 or x==14 and y==12 or x==11 and y==13 or x==12 and y==13 or x==13 and y==13 or x==14 and y==13 or x==11 and y==14 or x==12 and y==14 or x==13 and y==14 or x==14 and y==14 or x==14 and y==15 or x==13 and y==15 or x==12 and y==15 or x==11 and y==15 or x==10 and y==15 or x==9 and y==15 or x==8 and y==15 or x==7 and y==15 or x==6 and y==15 or x==3 and y==18 or x==2 and y==18 or x==2 and y==19 or x==2 and y==20 or x==3 and y==20 or x==3 and y==19 or x==4 and y==20 or x==5 and y==20 or x==5 and y==19 or x==5 and y==18 or x==4 and y==18 or x==6 and y==18 or x==6 and y==19 or x==6 and y==20 or x==7 and y==19 or x==8 and y==19 or x==8 and y==18 or x==8 and y==17 or x==9 and y==18 or x==9 and y==19 or x==17 and y==10 or x==17 and y==9 or x==17 and y==8 or x==18 and y==8 or x==18 and y==9 or x==18 and y==10 or x==19 and y==10 or x==19 and y==9 or x==19 and y==8  then
if type==8 or if type==6 or if type==2
msg(""..player(id,"name").."Violated a rule (build turrets on enemy base) therefore has been punished)
parse("kill "..id.."")
end
end
end
end

However what about the "type" buildings id, i don't know exacly if i separated corectly the IDs of buildings (i separated with or).

-Credits-
Idea coming from ZxC
Lua made by Ajmin
Lua updated by ZxC


Regards,
ZxC Cool


Last edited by ZxC on 5/10/2014, 10:30 am; edited 3 times in total
avatar
ZxC
Owner
Owner

Posts : 655
Thanks : 0
Join date : 2014-08-20
Location : Italy

Back to top Go down

Re: Update for Anti-Spawnkill script

Post by Anonymous :D on 4/10/2014, 5:28 pm

nonononono, only turrets, dispenser and other allow
avatar
Anonymous :D
Owner
Owner

Posts : 1119
Thanks : 8
Join date : 2011-12-09

http://saz-clan.tk/

Back to top Go down

Re: Update for Anti-Spawnkill script

Post by ZxC on 4/10/2014, 6:01 pm

dice wrote:nonononono, only turrets, dispenser and other allow

Dice, you didn't realize that gate field combined with some buildings lke turrets and such will be (not 100%) a spawnkill and annoying for players.

Anyway don't be scared about new tile positions the cts can build a teleport entrance in the second enemy base or the red flag base to win easily i didn't put the tiles of those, so don't worry. Smile

Also don't think that i put all tile positions of the map -.-, i put some positions of enemy bases only. -_-'

(EDIT)

I talked with Ajmin about that and he dissagre same with Dice about that. -.-

Meh, anyway the gate field it will be still a forbidden to build in enemy base (if not teleports lasers and mines). >_<
avatar
ZxC
Owner
Owner

Posts : 655
Thanks : 0
Join date : 2014-08-20
Location : Italy

Back to top Go down

Re: Update for Anti-Spawnkill script

Post by ZxC on 5/10/2014, 9:01 am

Now i edited the script and some buildings are removed on the update and those are:Dispenser,Suply,Exit, Entrance, Lasers Mines and Mines.

But the gate field will still remain as for Barbed Wire as well.

Good now -.-?
avatar
ZxC
Owner
Owner

Posts : 655
Thanks : 0
Join date : 2014-08-20
Location : Italy

Back to top Go down

Re: Update for Anti-Spawnkill script

Post by Guest on 5/10/2014, 10:14 am

where is ur updated script?

u must use "if type == 1" (etc)
plse refer the old script/

Guest
Guest


Back to top Go down

Re: Update for Anti-Spawnkill script

Post by ZxC on 5/10/2014, 10:20 am

@Ajmin: Did you check the changelog? -.-

It said the old script has some tile positions and forbidden building to build (only turret).

But now i updated with some new tile positions and some forbidden buildings (which some of them are removed now because Dice and you don't like it -,-).

The old script is same like the new (but with new things like new tile positions).

You can edit if you want, but DO NOT EDIT THE TILE POSITIONS please. D:

I'm 100% sure you will not like the update. -.-
avatar
ZxC
Owner
Owner

Posts : 655
Thanks : 0
Join date : 2014-08-20
Location : Italy

Back to top Go down

Re: Update for Anti-Spawnkill script

Post by Guest on 5/10/2014, 10:24 am

HuH!

@Zxc wrote:Now i edited the script and some buildings are removed on the update and those are:Dispenser,Suply,Exit, Entrance, Lasers Mines and Mines.

What u mean by this?
u are telling that players are able to make Exit,Entrance etc.
But when i view the script it doesnt have that function.

It will not allow any building to take place.

Guest
Guest


Back to top Go down

Re: Update for Anti-Spawnkill script

Post by ZxC on 5/10/2014, 10:29 am

@Ajmin wrote:HuH!

@Zxc wrote:Now i edited the script and some buildings are removed on the update and those are:Dispenser,Suply,Exit, Entrance, Lasers Mines and Mines.

What u mean by this?
u are telling that players are able to make Exit,Entrance etc.
But when i view the script it doesnt have that function.

It will not allow any building to take place.

You go wrong. -.-

Did you saw the IDs type in the code?

Only turrets, gate fields and barbed wired aren't allowed to build but others yes are allowed to build.
avatar
ZxC
Owner
Owner

Posts : 655
Thanks : 0
Join date : 2014-08-20
Location : Italy

Back to top Go down

Re: Update for Anti-Spawnkill script

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum