[FS]Second Chatbox!! =>Version 1.0<= -
Sandra18[NL] - 30.03.2008
Second Chatbox!!
What is it:
This filterscript creates a total new chatbox in the bottom-right corner of the screen.
The chatbox will use 15 or 30 textdraws. (depending on the line-mode you're using)
Messages will scoll from down to top.
What's wrong with the normal one?
Basically nothing, but sometimes it's annoying when you want to view for example a /command pages
Such command sometimes takes up all 10 lines in the normal chat, and when someone else is typing a message, you already lost the first line
So this filterscript prevent players from chatting in the normal chat, and instead their messages will be shown in this new chatbox.
For some people it's very useless, but it may be usefull for some (busy) servers.
There are 2 diffrent modes:
- Single-lines
- Double-lines
I recomment you to use the Double-line-mode:
Why? Because it allows you to type much longer messsages:
With Single-line mode your messages can not be longer than about 30 characters.
With Double lines, messages can be around 90 characters long.
Only with singlelines,
30 messages will be shown, doublelines (only)
15 (normal chat has 10 lines).
If a player connects, he/she can see the last 15 or 30 messages!
How to instal:- Download Chatbox.pwn
- Place it in your 'filterscripts' folder
- Open it, optionally you can comment or delete the line "#define AllowDoubleLines"
- Compile it, run it as filterscript and you're ready to chat!
Commands:- /clearchat (rcon admin only)
Screenshots:
Double-Line-Mode:
Single-Line-Mode:
Download:
-
Chatbox.pwn (MediaFire)
-
Chatbox.pwn (MyFreeFilehosting.com)
Known Bugs:
- When you restart your gamemode (with gmx) you may crash
- When you type after a messages 2 (or more) spaces, the message will not be shows
I fixed 1 space, but more are still buged.
If someone knows how fix this, help would be appreciated
Notes:
- This is the very first release, had not very much time to test with multiple players so there may be more bugs
- I think i will release a new version soon, including more configuration.
- The small lettersize of the messages may be problematic for some users with bad eyes, you can eventually change the lettersize in the filterscript by yourself. (Search for: "
TextDrawLetterSize(Message[line], 0.20, 0.70);" (2x)
- I hope you will like this Filterscript, and if you're going to use this:
PLEASE GIVE ME CREDITS!!!!
- I also would like to receive comments about this Filterscript.
=>Sandra<=
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Killerkid - 30.03.2008
Very good, but you may want to remove ~n~ because it mess's up the chat .
Re: [FS]Second Chatbox!! =>Version 1.0<= -
ZeRo_Ldds - 30.03.2008
Very nice good work!!! xD
Re: [FS]Second Chatbox!! =>Version 1.0<= -
GenerationX - 30.03.2008
How can you do a like,
SendClientMessage(playerid,COLOR_BLUE,"You are Getting Hijacked Idiot");
How can you make any function Run in that Chat box :S
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Killerkid - 30.03.2008
pawn Code:
SendChatMessage(playerid, "You are Getting Hijacked Idiot");
Do that.
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Sandra18[NL] - 30.03.2008
Quote:
Originally Posted by GenerationX
How can you do a like,
SendClientMessage(playerid,COLOR_BLUE,"You are Getting Hijacked Idiot");
How can you make any function Run in that Chat box :S
|
Uhh, i made this Filterscript to
prevent such messages in the chat!
You can still use the normal chat,
but if you really really want it, use:
Code:
SendChatMessage(-1, "~b~You are Getting Hijacked Idiot");
But
everybody will see that message.
You can use this function
only inside this filterscript.
But if you're an
experienced scripter, you can implement this filterscript in your own gamemode.
But im not going to explain.
Quote:
Originally Posted by Killerkid.
Very good, but you may want to remove ~n~ because it mess's up the chat .
|
No possible yet, this fs has 15 diffrent textdraws, and each has it's own permanent position.
So if you're using double-lines mode and youre not typing 2 lines, it's inevitable to have space (~n~-like) between 2 lines.
Maybe i find a solution to this problem, till than....
Quote:
Originally Posted by ZeRo_Ldds
Very nice good work!!! xD
|
Thanks
Re: [FS]Second Chatbox!! =>Version 1.0<= -
FarePak - 30.03.2008
What key do you press to talk in that chat...?
Is it the same? pressing the key "T" to have the chat box thing come up?
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Sandra18[NL] - 30.03.2008
Quote:
Originally Posted by FarePak
What key do you press to talk in that chat...?
Is it the same? pressing the key "T" to have the chat box thing come up?
|
Yes, it's exactly like normal chatting, but now your message will not appear in normal chat, but in the second chat.
Quote:
Originally Posted by HAI GUYS!!!
OMFG WOOOOOOOOOHOOOOOOOOO nice sandra!!
PS: why did you blank some of the text in the chatbox? :P
|
Well, it contained some private info :P
Re: [FS]Second Chatbox!! =>Version 1.0<= -
[BG]MR.C - 30.03.2008
very cool will definitely try this out
thanks
Re: [FS]Second Chatbox!! =>Version 1.0<= -
sebihunter - 30.03.2008
WOW! Really nice, maybe I gonna use it
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Harry_Gaill - 30.03.2008
Quote:
Originally Posted by =>Sandra<=
Second Chatbox!!
Known Bugs:
- When you restart your gamemode (with gmx) you may crash
- When you type after a messages 2 (or more) spaces, the message will not be shows
I fixed 1 space, but more are still buged.
If someone knows how fix this, help would be appreciated
|
Well done, nice work. As for the highlighted part (effect that the server may crash on executing gmx), have you tried destroying textdraw on disconnecting yet? There was a sa-mp bug I believe, it might be that.
ps.: I haven't checked the source yet.
Edit: I just did, well try destroying the text draw under OnPlayerDisconnect. And/ or make a command which 1.) destroys text draw for everyone, 2.) calls GameModeExit();
Re: [FS]Second Chatbox!! =>Version 1.0<= -
[LDT]LuxurY - 30.03.2008
wow. nice one! :P
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Dark_Kostas - 30.03.2008
PERFECT Idea.NICE
:P
I want more happy emoticons.
Re: [FS]Second Chatbox!! =>Version 1.0<= -
aroma - 30.03.2008
How can i delete some lines like 2 or 3 so it doesnt cross the line with my death icons
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Rks25 - 30.03.2008
Quote:
Originally Posted by aroma
How can i delete some lines like 2 or 3 so it doesnt cross the line with my death icons
|
Yes, i also tested it, it crosses the death icons
And bummer of the bugs, i would i could fix it, but i can't
, cuz i tried some things which seemed me good, but didn't work out as it should be, but still i will try my best to do so!
Re: [FS]Second Chatbox!! =>Version 1.0<= -
aroma - 30.03.2008
And mute wont work anymore
Re: [FS]Second Chatbox!! =>Version 1.0<= -
P1nd3r - 30.03.2008
OMFG!! Sandra ownz all.
Re: [FS]Second Chatbox!! =>Version 1.0<= -
g@k - 30.03.2008
sandra you roxx, all your script are nice , i lov u
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Xzamer - 28.04.2008
This doenst work for me
1.I have downloaded the PWN File
2.I opened it and deleted the text#define AllowDoubleLines
3.I opened Server.cfg and wrote in filterscripts: chatbox
4.Yes I have the PWN File in the Filterscripts
But when I start samp-server.exe it says: Loading filter script 'chatbox.amx'...
Unable to load filter script 'chatbox.amx'.
Loaded 2 filter scripts Please help me
BTW Sorry for my bad english
Re: [FS]Second Chatbox!! =>Version 1.0<= -
Rks25 - 28.04.2008
Would love it, if someone could help try to solve the bugs, i tried, didn't succeed!
Rksss