Search

Keywords

Latest topics

Similar topics

Most active topic starters

ZxC | ||||

>L.E.E< | ||||

NinjaAssasinX | ||||

Anonymous :D | ||||

halt drop or die | ||||

Street Workout | ||||

CrazyRussian | ||||

Flame Boy | ||||

COB®a | ||||

VeyroN <3 |

# Two ideas for SaZ sparta: stoping the spawnkilling

## Two ideas for SaZ sparta: stoping the spawnkilling

Hello again!

I have made this thread because i see still some players don't want to stop spawnkilling.

But first of all what is spawnkill?

Spawnkill-The spawnkill is someone want to build turrets in the spawn base to give fast and unfair score.

The spawn base of sparta map are:

This is the spawn base of CT.

This is the spawn base of T.

-----------------------------------------------------------------

Spawnkill rule

I see this server doesn't have the spawnkill rule in the serverinfo.

Well, this has been discussed in another thread (made by me of course) but i have edited the thread and i have put it here.

The spawnkill rule would be like this ---> DO NOT SPAWNKILL (BUILD TURRETS IN THE SPAWN BASE).

-------------------------------------------------------------------

Script that prevent the spawnkilling

You will find weird that idea, but i will tell you how it work this script.

If an player want to break the spawnkill rule and want to build turrets in the spawn base this script automatically kill the player but also the script destroy automatically the turrets that he built in the spawn base.

When the player is automatically killed, will appear a message like

'Name of the player' has been auto killed for spawnkilling.

NOTE THAT: Terrors and CTS can build buildings in their own base but a teror can't build buildings in the cts spawn base as for cts can't build buildings in the terrors spawn base.

I think you understand the function of this script.

----------------------------------------------------------------

But the problem is who will make that script?

I am not so expert to make scripts, coding in lua and something like that.

So Ajmin can you make this script or do you think is hard to make it?

I hope these ideas would be good against the spawnkill in the saz sparta.

Cheers and regards,

ZxC

I have made this thread because i see still some players don't want to stop spawnkilling.

But first of all what is spawnkill?

Spawnkill-The spawnkill is someone want to build turrets in the spawn base to give fast and unfair score.

The spawn base of sparta map are:

This is the spawn base of CT.

This is the spawn base of T.

-----------------------------------------------------------------

Spawnkill rule

I see this server doesn't have the spawnkill rule in the serverinfo.

Well, this has been discussed in another thread (made by me of course) but i have edited the thread and i have put it here.

The spawnkill rule would be like this ---> DO NOT SPAWNKILL (BUILD TURRETS IN THE SPAWN BASE).

-------------------------------------------------------------------

Script that prevent the spawnkilling

You will find weird that idea, but i will tell you how it work this script.

If an player want to break the spawnkill rule and want to build turrets in the spawn base this script automatically kill the player but also the script destroy automatically the turrets that he built in the spawn base.

When the player is automatically killed, will appear a message like

'Name of the player' has been auto killed for spawnkilling.

NOTE THAT: Terrors and CTS can build buildings in their own base but a teror can't build buildings in the cts spawn base as for cts can't build buildings in the terrors spawn base.

I think you understand the function of this script.

----------------------------------------------------------------

But the problem is who will make that script?

I am not so expert to make scripts, coding in lua and something like that.

So Ajmin can you make this script or do you think is hard to make it?

I hope these ideas would be good against the spawnkill in the saz sparta.

Cheers and regards,

ZxC

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

ITS Really easy.

but currently i am working on my happy town

but currently i am working on my happy town

**Guest**- Guest

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

@Ajmin wrote:ITS Really easy.

but currently i am working on my happy town

Good luck making the happy town then.

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

i made the lua but i need someones help.

i am busy so i cant add all the postions.

there is a simple method but i dont know how to use that method so i am using a complicated method.

what to do is:

i wrote in the code that if x==xxx and y ==xxx

modify xxx to the tile x and y this can be confirmed through the map editor.

1 postion will be added when u modify but u need to add more postions [all the tile x and y of spawn position of 300BC_Sparta4.

do it like this: if x==xxx and y==xxx

NOTE: IN the first x and y u have to add spawn points of terrorist and in second

x and y u have to add spawn point of counter terrorist.

see it : if played id team ==1 means: if terrorist is building on the x and y (spawn point of ct) then parse kill id means kill him.

same in the second too.

by reading this maybe u will get to know a small idea about lua

WELL this is lua.

so its not much possible to make u understand with typing (but easy to make u understand through practical activities )

HOPE everyone understood

i am busy so i cant add all the postions.

there is a simple method but i dont know how to use that method so i am using a complicated method.

what to do is:

i wrote in the code that if x==xxx and y ==xxx

modify xxx to the tile x and y this can be confirmed through the map editor.

1 postion will be added when u modify but u need to add more postions [all the tile x and y of spawn position of 300BC_Sparta4.

do it like this: if x==xxx and y==xxx

__if x== and y== (again do the same with different x and y (seperate the postions with__**or**__)__**or**NOTE: IN the first x and y u have to add spawn points of terrorist and in second

x and y u have to add spawn point of counter terrorist.

see it : if played id team ==1 means: if terrorist is building on the x and y (spawn point of ct) then parse kill id means kill him.

same in the second too.

by reading this maybe u will get to know a small idea about lua

- Code:
`addhook ("buildattempt","build")`

function build(id,type,x,y)

if player(id,"team")==1 then

if x==xxx and y ==xxx or x==xxx and y==xxx or x==xxx and y==xxx (do more until the spawn point is over) then

if type==8 then

msg(""..player(id,"name").." Violated a rule (build turret on enemy base) and therefore has been punished")

parse("kill "..id.."")

end

end

end

if player(id,"team")==2 then

(add same x and y of terrorist spawn point like i did in first eg: if x==xxx and y==xxx )

if type==8 then

msg(""..player(id,"name").." Violated a rule (build turret on enemy base) and therefore has been punished")

parse("kill "..id.."")

end

end

end

end

WELL this is lua.

so its not much possible to make u understand with typing (but easy to make u understand through practical activities )

HOPE everyone understood

**Guest**- Guest

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

Don't worry Ajmin i will help you in that.

Only thing that i need is to be patient and find all the positions of the two spawn bases.

When all positions are found i will add them to this lua script.

Also i will test this script with the sparta map on my server to see if it have bugs.

Thanks for this lua.

Only thing that i need is to be patient and find all the positions of the two spawn bases.

When all positions are found i will add them to this lua script.

Also i will test this script with the sparta map on my server to see if it have bugs.

Thanks for this lua.

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

THERE IS NO BUG but u need to add if on the second spawn postion cuz i added end in the last so if u didnt add if then it will say error: eof near end.

add if ==

if x== (x spwanpoint of terrorist) and y == (y vice versa)

add if ==

if x== (x spwanpoint of terrorist) and y == (y vice versa)

**Guest**- Guest

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

@Ajmin wrote:THERE IS NO BUG but u need to add if on the second spawn postion cuz i added end in the last so if u didnt add if then it will say error: eof near end.

add if ==

if x== (x spwanpoint of terrorist) and y == (y vice versa)

Ok.

I will finish the script tommorow.

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

dont kill, just display a msg not allow to build on enemy base and return the building to 0 (cancel action)

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

Script is finished.

I have added the positions of the two spawn bases.

I hope is it good.

See the code below:

Is not really hard to put the positions (x and y).

Now i wait what ajmin say.

I have added the positions of the two spawn bases.

I hope is it good.

See the code below:

- 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 then

if type==8 then

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 then

if type==8 then

msg(""..player(id,"name").."Violated a rule (build turrets on enemy base) therefore has been punished)

parse("kill "..id.."")

end

end

end

end

Is not really hard to put the positions (x and y).

Now i wait what ajmin say.

Last edited by ZxC on 8/9/2014, 8:04 pm; edited 1 time in total

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

Still waiting.

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

Huh

I already told u I am unable to access my PC.

Cuz I am in hospital.

Maybe I will get 1 or 2 hours in night but I am not sure if I can. Nw I am online in my phone.

I already told u I am unable to access my PC.

Cuz I am in hospital.

Maybe I will get 1 or 2 hours in night but I am not sure if I can. Nw I am online in my phone.

**Guest**- Guest

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

@Ajmin wrote:Huh

I already told u I am unable to access my PC.

Cuz I am in hospital.

Maybe I will get 1 or 2 hours in night but I am not sure if I can. Nw I am online in my phone.

Huuuuuuuh!!!?

Really, are you on hospital?

I'm sorry for that.

But what happened to you?

Fever,disease?

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

dice wrote:his uncle idkk

Maybe.

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

Zxc. ohhh u done everything wrong .

See for == u typed =.

See for == u typed =.

**Guest**- Guest

## Re: Two ideas for SaZ sparta: stoping the spawnkilling

@Ajmin wrote:Zxc. ohhh u done everything wrong .

See for == u typed =.

Oh, dammit my dumb brain.

I will fix right now, sorry for that.

(EDIT)

Fixed.

- 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 then

if type==8 then

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 then

if type==8 then

msg(""..player(id,"name").."Violated a rule (build turrets on enemy base) therefore has been punished)

parse("kill "..id.."")

end

end

end

end

**ZxC**- Owner
- Posts : 655

Thanks : 0

Join date : 2014-08-20

Location : Italy

Similar topics

» LEGO Storage/Organization Ideas

» Jork's chat - Ideas

» just two ideas about characters...

» Trueborn Modeling ideas

» My army - a collection of ideas; oppionions appreciated

» Jork's chat - Ideas

» just two ideas about characters...

» Trueborn Modeling ideas

» My army - a collection of ideas; oppionions appreciated

Page

**1**of**1****Permissions in this forum:**

**cannot**reply to topics in this forum

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