Forum

> > CS2D > Scripts > about minestrike
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch about minestrike

31 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: about minestrike

Yates
Reviewer Off Offline

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

alt Punish ...

sheeL
User Off Offline

Zitieren
user Yates hat geschrieben
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

alt Re: about minestrike

Yates
Reviewer Off Offline

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

Derp.

alt Re: about minestrike

DannyDeth
User Off Offline

Zitieren
@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.

alt Re: about minestrike

SilentDash
User Off Offline

Zitieren
user sheeL hat geschrieben
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!

alt Re: about minestrike

sheeL
User Off Offline

Zitieren
user DannyDeth hat geschrieben
@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 .... =/

alt Re: about minestrike

oxytamine
User Off Offline

Zitieren
user sheeL hat geschrieben
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.
5× editiert, zuletzt 11.12.11 03:01:08

alt Re: about minestrike

Obviously Exactly Myself
User Off Offline

Zitieren
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

alt Re: about minestrike

EngiN33R
Moderator Off Offline

Zitieren
@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
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht