03.05.2011, 18:32
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;
}