03.05.2011, 15:29
pawn Код:
public OnPlayerText(playerid, text[])
{
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,"{D3D3D3}",0,10 );//[
strins( nString,"{32DD02}",1,10 );//D
strins( nString,"{FFFFFF}",2,10 );//S
strins( nString,"{CD020C}",3,10 );//R
strins( nString,"{D3D3D3}",4,10 );//]
strins( nString,"{FFFFFF}",5,10 );//text..blablalbla
SendClientMessageToAll( 0xFF4040AA,nString );
return 0;
}
return 0;
}