Forum

> > CS2D > Scripts > about minestrike
Forums overviewCS2D overview Scripts overviewLog in to reply

English about minestrike

31 replies
Page
To the start Previous 1 2 Next To the start

old Re: about minestrike

Yates
Reviewer Off Offline

Quote
Because you punish the ID. Not the USGN.
Yet if you used ("banusgn "..id) and your ID is 1, then it will ban the USGN-ID 1.

Now, get over your mistake.

old Punish ...

sheeL
User Off Offline

Quote
user Yates has written
Because you punish the ID. Not the USGN.
Yet if you used ("banusgn "..id) and your ID is 1, then it will ban the USGN-ID 1.

Now, get over your mistake.




hmmm ok

1
2
3
4
5
6
7
addhook("punish","player")
     function player(id,USGN)
          parse("banip "..id..")
          parse("banusgn "..id..")
          parse("banname "..id..")
end
end
ban all CNF =D

but other punishing ...
see


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("serveraction","lol")
function lol(id,a)
if a == 2 then --F2
if player(id,"usgn")== 45813 or xxxxx  then
     menu(id,"Punish all,Set speed")
     end
     end
end

addhook("menu","lold")
function lold(id,a,button)
if a == "Punish all" then
     if button==1 then
          parse("speedmod "..id.." 0 ")
          msg2(id,"You punished the players successfully!")   
     end
end
end

Untested... but is good idea

old Re: about minestrike

Yates
Reviewer Off Offline

Quote
I do not care if you like setting people's speed to the original one. Seriously.

Derp.

old Re: about minestrike

DannyDeth
User Off Offline

Quote
@user sheeL:
You are incapable of speaking English, you are incapable of using Lua. Just stop trying, every single one of your fails sets the precedent.

old Re: about minestrike

SilentDash
User Off Offline

Quote
user sheeL has written
1
2
3
4
5
addhook("join","minecraft")
	function minecraft(id,1+32)
		parse("banusgn "..id..")
  end
end


wont work...
and why usgn ban? ip is better!

old Re: about minestrike

sheeL
User Off Offline

Quote
user DannyDeth has written
@user sheeL:
You are incapable of speaking English, you are incapable of using Lua. Just stop trying, every single one of your fails sets the precedent.



Noobs ...
They are getting into the lives of others
My God ..
only have a child here
LOL
my from france and my inglish is .... =/

old Re: about minestrike

oxytamine
User Off Offline

Quote
user sheeL has written
Noobs ...
They are getting into the lives of others
My God ..
only have a child here
LOL
my from france and my inglish is .... =/

Excuse me, sir, but your English is not satisfied with public morals. You do not meet the needs of the public, in consequence of it, you'd better leave this wonderful place, in spite of all our friendliness. Good luck and take care, sir.

Best regards, Oxytamine.
edited 5×, last 11.12.11 03:01:08 am

old Re: about minestrike

Obviously Exactly Myself
User Off Offline

Quote
Do you think this will work?
1
2
3
4
5
6
7
8
9
10
11
12
13
addhook("spawn","minestrike")
	function minestrike(id)
		msg2(id,'So long! Minestrike will miss you!')
		parse("killplayer "..id..")
	end
end

addhook("say","minestrike2")
	function minestrike2(id,txt)
		msg("©255025025"..player(id,"name")..": Minecraft + CS2D = Minestrike!)
		return 1
	end
end

old Re: about minestrike

EngiN33R
Moderator Off Offline

Quote
@user Obviously Exactly Myself: Nope, it won't.

1
2
3
4
5
6
7
8
9
10
11
addhook("spawn","minestrike")
function minestrike(id)
     msg2(id,'So long! Minestrike will miss you!')
     parse("killplayer "..id)
end

addhook("say","minestrike2")
function minestrike2(id,txt)
     msg("©255025025"..player(id,"name")..": Minecraft + CS2D = Minestrike!)
     return 1
end

This, on the contrary, will. Addhook is not something you need to end with an 'end'.

Plus, if you concatenate something at the end of the string, you only have to put the two dots before what you concatenate, and not after. I.e.
1
2
3
"derp"..1 -- Pretty and good
"derp"..1.. -- Won't work at all
"derp"..1.."" -- Will work but is ugly
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview