What wrong?
#4

pawn Код:
public OnPlayerText(playerid, text[])
{
/*Tag Colour*/
new nString[256];
    strcat(nString,text,256);
    new PlayerName2[ 26 + 1];
    GetPlayerName( playerid, PlayerName2, 26 + 1 );
    if ( strfind( PlayerName2 ,"[DSR]",false ) != -1 )
    {
        format( nString,sizeof nString,"%s: %s", PlayerName2, text );
        strins( nString,"{FFFFFF}",5,10 );//text..blablalbla
        strins( nString,"{06DAF7}",4,10 );//]
        strins( nString,"{CD020C}",3,10 );//R
        strins( nString,"{FFFFFF}",2,10 );//S
        strins( nString,"{32DD02}",1,10 );//D
        strins( nString,"{06DAF7}",0,10 );//[
        SendClientMessageToAll( 0xFF4040AA,nString );
        return 0;
    }
    return 0;
}
Ok work but.... The not DSR player cant write in chat
Reply


Messages In This Thread
What wrong? - by SamyRomafia - 03.05.2011, 15:29
Re: What wrong? - by SamyRomafia - 03.05.2011, 17:35
Re: What wrong? - by MadeMan - 03.05.2011, 17:51
Re: What wrong? - by SamyRomafia - 03.05.2011, 18:32
Re: What wrong? - by MadeMan - 03.05.2011, 19:42

Forum Jump:


Users browsing this thread: 3 Guest(s)