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

September 2017
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar


Two ideas for SaZ sparta: stoping the spawnkilling

View previous topic View next topic Go down

Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 30/8/2014, 10:03 am

Hello again! Very Happy

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

But the problem is who will make that script?  Sad

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

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.  Very Happy

Cheers and regards,
ZxC Cool
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Anonymous :D on 30/8/2014, 10:30 am

good description boy, you rocks Very Happy
avatar
Anonymous :D
Owner
Owner

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

http://saz-clan.tk/

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Guest on 30/8/2014, 11:48 am

ITS Really easy.
but currently i am working on my happy town

Guest
Guest


Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 30/8/2014, 12:21 pm

Ajmin wrote:ITS Really easy.
but currently i am working on my happy town

Good luck making the happy town then. Very Happy
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Guest on 31/8/2014, 5:29 pm

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 or if x== and y== (again do the same with different x and y (seperate the postions with 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 Very Happy


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 Smile )

HOPE everyone understood Very Happy

Guest
Guest


Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 31/8/2014, 5:52 pm

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

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. Very Happy
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Guest on 31/8/2014, 6:20 pm

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)

Guest
Guest


Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 31/8/2014, 8:18 pm

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

I will finish the script tommorow.
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Anonymous :D on 1/9/2014, 7:21 am

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

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

http://saz-clan.tk/

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 1/9/2014, 9:42 am

Script is finished. Very Happy

I have added the positions of the two spawn bases.

I hope is it good. Smile

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).  Wink

Now i wait what ajmin say. Wink


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

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 4/9/2014, 10:06 am

Still waiting. Sleep

avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Anonymous :D on 4/9/2014, 10:17 am

AJMIN, ADD THIS
avatar
Anonymous :D
Owner
Owner

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

http://saz-clan.tk/

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Guest on 4/9/2014, 12:54 pm

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.

Guest
Guest


Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 4/9/2014, 12:57 pm

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!!!? affraid

Really, are you on hospital? affraid affraid affraid

I'm sorry for that.

But what happened to you? Neutral

Fever,disease? Neutral
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Anonymous :D on 4/9/2014, 2:12 pm

his uncle idkk
avatar
Anonymous :D
Owner
Owner

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

http://saz-clan.tk/

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 4/9/2014, 2:14 pm

dice wrote:his uncle idkk

Maybe. Neutral
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by Guest on 8/9/2014, 6:58 pm

Zxc. ohhh u done everything wrong Sad.
See for == u typed =.

Guest
Guest


Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

Post by ZxC on 8/9/2014, 7:57 pm

Ajmin wrote:Zxc. ohhh u done everything wrong Sad.
See for == u typed =.

Oh, dammit my dumb brain. silent

I will fix right now, sorry for that.

(EDIT)

Fixed. Very Happy
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
avatar
ZxC
Owner
Owner

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

Back to top Go down

Re: Two ideas for SaZ sparta: stoping the spawnkilling

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