Forum

> > CS2D > Scripts > @C for admin
Forums overviewCS2D overview Scripts overviewLog in to reply

English @C for admin

2 replies
To the start Previous 1 Next To the start

old @C for admin

Mora
User Off Offline

Quote
Hello!
Please,help me with this code
1
2
3
4
5
6
addhook("say","_center")
function _center(id,word)
if word=="@C" and player(id,"usgn") == 114940 then
msg("©244220200 ...@C x 320 y 240")
end
end
I want fix it.
Or just- if i say @C (<-last symbols) then massage display in center.
Im n**b in msg hooks
Thanks you.
And please sorry for my bad English

old Re: @C for admin

Cure Pikachu
User Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("say","_center")
function _center(id,word)
	if player(id,"usgn") == 114940 then
		msg("©244220200"..word)
		-- Say "Example@C" and "Example" will appear in the center
		return 1
	end
end
Just say something and end it with @C and it will be centered. You meant that, right?
edited 1×, last 02.08.13 11:23:25 pm

old Re: @C for admin

Mora
User Off Offline

Quote
Yeah,right.
Thanks you so much!
But need little correction
if i say in chat:

@:user Mora has written
Hello
Nyan_Cat<Mora-{RuS}:Hello

and i need remove this

with this blablabbal@C have not problems,but please,can this massagre display by me?:

@:user Mora has written
if i say this:
Hi all@C
then in center display this massage:
Nyan_Cat<Mora-{RuS}:Hi all


EDIT:
I fix this
just need writte this
return 1
and this
player(id,"name")

Thanks so much for help @:user Cure Pikachu
edited 1×, last 02.08.13 09:12:15 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview