16.08.2010, 18:48
Introduction
Eh, I forgot to release this. This is pretty much what the title says. This is a ingame shoutbox. A shoutbox is pretty much a global chat. Where you can chat with other users, and so on. This is very customizable and easy to use.
Features
[ame]http://www.youtube.com/watch?v=28GoBUUtVfA[/ame]
Custom Functions (List)
There's no need for a ClearShoutBox function example, it's self-explanatory.
Customization - C-Shoutbox.pwn
Editing the maximum messages
To edit the maximum messages shown on the shoutbox, edit this line to your desire:
The default was 20 obviously.
Editing the command name
Edit the command in this line below:
Editing the dialog id
To edit the dialog ID so it doesn't inflict with your GM's dialogs edit this line:
Log
The shouts sent by others are stored into Shoutbox.log.
Notes
The shoutbox doesn't auto-refresh when someone sends a shout and you're looking at the shoutbox.
Download
Click me
Eh, I forgot to release this. This is pretty much what the title says. This is a ingame shoutbox. A shoutbox is pretty much a global chat. Where you can chat with other users, and so on. This is very customizable and easy to use.
Features
- Ability to customize your shoutbox
- Easy to use
- Fun (Well personally it was fun)
- Chats are logged
[ame]http://www.youtube.com/watch?v=28GoBUUtVfA[/ame]
Custom Functions (List)
- native OnPlayerReadShouts(playerid);
- native OnPlayerSendShout(playerid, text[]);
- native ClearShoutBox();
pawn Код:
public OnPlayerReadShouts(playerid) {
new string[128];
GetPlayerName(playerid, string, 24);
format(string, 128, "%s is reading the shouts.", string);
SendClientMessageToAll(MY_COLOR, string);
return 1;
}
pawn Код:
public OnPlayerSendShout(playerid, text[]) {
new string[128];
GetPlayerName(playerid, string, 24);
format(string, 128, "%s send a message at the shoutbox.", string);
SendClientMessageToAll(MY_COLOR, string);
return 1;
}
Customization - C-Shoutbox.pwn
Editing the maximum messages
To edit the maximum messages shown on the shoutbox, edit this line to your desire:
pawn Код:
#define MAX_MESSAGES (20)
Editing the command name
Edit the command in this line below:
pawn Код:
#define SHOUTBOX_CMD "/shoutbox"
To edit the dialog ID so it doesn't inflict with your GM's dialogs edit this line:
pawn Код:
#define DIALOG_CHAT (99)
The shouts sent by others are stored into Shoutbox.log.
Notes
The shoutbox doesn't auto-refresh when someone sends a shout and you're looking at the shoutbox.
Download
Click me