Help /B and IC chat
#1

Can me somebody say how do I create IC chat and the OOC chater /b pleas i need it !
sry for bad english im from croatia
Reply
#2

with zcmd:
pawn Код:
COMMAND:b(playerid, params[])
{
    new Message[128], string[ 128 ];
    if( sscanf( params, "s", Message) )
    {
        SendClientMessage( playerid, COLOR_GREY, "SYNTAXE: /b <MESSAGE OOC>"  );
    }
    else
    {
        if(strlen(Message) < 1)
        {
            return true;
        }
        else
        {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format( string, sizeof( string ), "(( %s: %s))", sendername, Message);
                  NearbyMessage(playerid, COLOR_PURPLE, string); // or use proxdetector
        }
    }
    return 1;
}
Reply
#3

i have make now IC chat pleas can somebody create me OOC chat /B the mod is my own and i use Strcmd
Reply
#4

With strcmd, if you type /bxxxxxx, that result ((Your_Nick: xxxxxx))
because strcmp compares string ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)