Forum

> > CS2D > Scripts > Hide Text?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hide Text?

5 replies
To the start Previous 1 Next To the start

old Hide Text?

Jynxxx
User Off Offline

Quote
i want to know how to hide the text that pops up as in the screen shot

i just want to know how to remove the words that are pointed at with an arrow in the screenshot..
and just show "Name of Player" Used !ResetScore

1
2
3
4
5
6
7
8
addhook("say","reset")
function reset(id,txt)
     if(txt=="!resetscore") then
          parse ("setscore "..id.." 0")
          parse ("setdeaths "..id.." 0")
          parse ("sv_msg ©000000000"..player(id,"name").." used !ResetScore")
     end
end
IMG:https://img405.imageshack.us/img405/3613/previewvsg.jpg

old Re: Hide Text?

SilentDash
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
addhook("say","reset")
function reset(id,txt)
if(txt=="!resetscore") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg ©000000000"..player(id,"name").." used !ResetScore")
end
return 1
end
end

old Re: Hide Text?

Jynxxx
User Off Offline

Quote
user SilentDash has written
1
2
3
4
5
6
7
8
9
10
addhook("say","reset")
function reset(id,txt)
if(txt=="!resetscore") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg ©000000000"..player(id,"name").." used !ResetScore")
end
return 1
end
end


it worked but only the white lettered words is there its proly because of the other script thanks

old Re: Hide Text?

EngiN33R
Moderator Off Offline

Quote
user SilentDash has written
1
2
3
4
5
6
7
8
9
10
addhook("say","reset")
function reset(id,txt)
if(txt=="!resetscore") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg ©000000000"..player(id,"name").." used !ResetScore")
end
return 1
end
end


You're crazy, that would hide the whole bloody chat! Plus, you have an extra end.

1
2
3
4
5
6
7
8
addhook("say","reset")
function reset(id,txt)
if(txt=="!resetscore") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
return 1
end
end

That's all you need. It will hide the white text too.

old Re: Hide Text?

EngiN33R
Moderator Off Offline

Quote
Oops, my bad. You're right. Thank yo for pointing that out.

1
2
3
4
5
6
7
8
9
addhook("say","reset")
function reset(id,txt)
if(txt=="!resetscore") then
parse ("setscore "..id.." 0")
parse ("setdeaths "..id.." 0")
parse ("sv_msg ©000000000"..player(id,"name").." used !ResetScore")
return 1
end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview