[Include] Chat Checker
#1

Chat Checker
V3
Feature:
- Chat will split to 2 lines
- Block chat from different Virtual World
- Remove '_' from player's name
- You can disable any range
- You can apply chat animation (The time depend on how long the chat)
- You can use chatbubble
- Now player have different chat in every seat inside vehicle.
- You can use /seat with chat anim

Bug Fixed
- Now every player in range can hear the chat.

This is a simple chat system. Just like Proxdetector, but more flexible.


Install
Download the include (V3)
Copy to your server folder /pawno/include

On your top of script
pawn Код:
#include <ChatChecker>
You can simply add this in your OnPlayerText
pawn Код:
public OnPlayerText(playerid, text[])
{
    ChatChecker(playerid,text,1,2,4,6,8,10,White1,Chat1,Chat2,Chat3,Chat4,0,0,0,0);
    return 0;
}
The chat can be visible depending with range(range1,range2,range3,range4,range5). And each range have their own color(color1,color2,color3,color4,color5)
Put 1 in anim to enable anim chat(The anim time is depend on chat lenght.
Put 1 in bubble to enable chat bubble (text above your head).bubblecolor for the color, bubblerange for the draw distance, bubbletime for the time for the bubble before dissapear.

For Example:
pawn Код:
ChatChecker(playerid,text,1,5,7,10,15,17,White1,Chat1,Chat2,Chat3,Chat4,1,Red,5000,5);
Player will see the chat with color Chat1 if they are in the range of 5 meters.
Player will see the chat with color Chat2 if they are in the range of 7 meters.
And so on.
This will use chat animation.
This will use chat bubble with color red(define it by your self), visible in 5 meters and in 5 seconds will dissapear.

With V2 you can disable certain range by put 0 in it.
For Example:
pawn Код:
ChatChecker(playerid,text,1,5,0,10,0,15,White1,Chat1,Chat2,0,0,1,Red,5000,5);
That will disable range2 and range 4.

With V3 now you can add this command:
pawn Код:
CMD:seat(playerid,params[])
{
    if(PlayerSeat[playerid] == true) ApplyAnimation(playerid,"PED","SEAT_UP",4,0,0,0,0,0,1),PlayerSeat[playerid] = false;
    else ApplyAnimation(playerid,"PED","SEAT_DOWN",4,0,0,0,1,0,1),PlayerSeat[playerid] = true;
    return 1;
}
That's for ZCMD.
You can use them in another command processor (With edit of course).

You can add this with your /me or /ame command:
pawn Код:
CMD:me(playerid,params[])
{
    new string[128],Float:X,Float:Y,Float:Z;
    if(sscanf(params,"s[128]",string)) return SendClientMessage(playerid,Yellow,"Usage: /me <text> ~To tell what you do.");
    else{   ChatChecker(playerid,text,1,5,7,10,15,17,White,Chat1,Chat2,Chat3,Chat4,1,Red,5000,5);
    return 1;
}
If you want to get player's name without using Chat Checker just simply do:
pawn Код:
NameUnder(playerid)
For example:
pawn Код:
format(string,sizeof(string),"%s flying through the sky asuwwjasy",NameUnder(playerid));
NOTE
You need to have foreach.inc (by ******) to use this include.
White1,Chat1,Chat2,Chat3,Chat4 laready defined inside include.

You have any suggestion? Put them here!!
Any question? Put here or add my MSN.

Okay folks have fun.
Reply


Messages In This Thread
Chat Checker - by =WoR=Varth - 25.06.2011, 02:27
Re: Chat Checker - by serman - 25.06.2011, 02:28
Re: Chat Checker - by Tachibana - 25.06.2011, 02:55
Re: Chat Checker - by BizzyD - 25.06.2011, 03:32
Re: Chat Checker - by [Ask]Terminator - 25.06.2011, 16:27
Re: Chat Checker - by =WoR=Varth - 25.06.2011, 23:29
Re: Chat Checker - by Calgon - 25.06.2011, 23:45
Re: Chat Checker - by =WoR=Varth - 25.06.2011, 23:50
Re: Chat Checker - by Tachibana - 26.06.2011, 00:08
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 00:11
Re: Chat Checker - by [BP]Tony - 26.06.2011, 00:45
Re: Chat Checker - by Tachibana - 26.06.2011, 01:12
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 01:17
Re: Chat Checker - by Tachibana - 26.06.2011, 01:26
Re: Chat Checker - by Luis- - 26.06.2011, 01:29
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 01:30
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 02:02
Re: Chat Checker - by Tachibana - 26.06.2011, 02:05
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 02:11
Re: Chat Checker - by Tachibana - 26.06.2011, 02:15
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 02:21
Re: Chat Checker - by Tachibana - 26.06.2011, 02:31
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 02:39
Re: Chat Checker - by Tachibana - 26.06.2011, 02:41
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 02:44
Re: Chat Checker - by Tachibana - 26.06.2011, 02:45
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 02:51
Re: Chat Checker - by Tachibana - 26.06.2011, 02:55
Re: Chat Checker - by =WoR=Varth - 26.06.2011, 03:10
Re: Chat Checker - by Tachibana - 26.06.2011, 03:15
Re: Chat Checker - by =WoR=Varth - 27.06.2011, 00:09
Re: Chat Checker - by ricardo178 - 27.06.2011, 07:39
Re: Chat Checker - by Tachibana - 27.06.2011, 10:57
Re: Chat Checker - by =WoR=Varth - 27.06.2011, 23:44
Re: Chat Checker - by Rickye - 28.06.2011, 04:08
Re: Chat Checker - by Tachibana - 28.06.2011, 04:10
Re: Chat Checker - by Rickye - 28.06.2011, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)