11.03.2011, 12:50
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
sry for bad english im from croatia
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;
}