[HELP] ooc chat (/b)
#1

Hello how can I make when I type /b and one player is near me and see that what I type in white color and how can I know make when other player little further then he see that text in the grey color if you know what I mean? Thanks
Reply
#2

This might help you..
https://sampforum.blast.hk/showthread.php?tid=470093
Reply
#3

I want when two player are near each other then when someone of that two players type something then that text is white and when the other player is little further then he see text in the grey color
Reply
#4

pawn Код:
//cmd
{
new Float:pPOS[3];
GetPlayerPos(playerid,pPOS[0],pPOS[1],pPOS[2]);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0, pPOS[0],pPOS[1],pPOS[2])
    {
        SendClientMessage(i,COLOR,"message");//closer
     }else{
        SendClientMessage(i,COLOR,"message");//further
     }
}
}
Reply
#5

Godfather uses proxdetector, and most other servers...this is what I got in my script
pawn Код:
CMD:b(playerid, params[])
    {
    new string[128],
    bmessage[100];

    if(sscanf(params, "s[100]", bmessage))
        {
        SendClientMessage(playerid, -1, "USAGE: /b [OOC Message]");
        return 1;
        }
    else
        {
        format(string, sizeof(string), "(( OOC Chat %s [%d]: %s ))",GetName(playerid), playerid, bmessage);
        ProxDetector(50.0, playerid, string, 0xC0C0C0FF);
        }
    return 1;

    }
Reply
#6

do you read my post omg I need two colors not one I need when two players talking on /b near each other then the text is white but when the other player is little further he see that text in grey color
Reply
#7

"Kyance" Posted my tutorial for you and in there is what you need. It is the "ProxDetector" you are looking for. The text will fade the further away you are from the person talking but if a player is close it will display in white. Hope my tutorial helps
Reply
#8

I try like that and it isn't work I stand near player and type and I see white text which I wrote but he see fade color I mean fade text
Reply
#9

This is a post from 2012 that holds the answer..

http://forum.sa-mp.com/showpost.php?...50&postcount=2
Reply
#10

omg playerid that means like I say I only only see text white till other player see fade color or grey this is not it.Read
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)