OOC chat and Normal Chat
#7

pawn Code:
public OnGameModeInit()
{
  LimitGlobalChatRadius(10.0);
  return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
  if(!cmdtext[1])return 0;
  if(!strcmp(cmdtext[1],"ooc",true,3))
  {
    new tmp[192];
    GetPlayerName(playerid,tmp,24);
    format(tmp,192,"(( %s: %s ))",tmp,cmdtext[5]);
    SendClientMessageToAll(0xFF4444FF,tmp);
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread
OOC chat and Normal Chat - by RoneyRemington - 23.02.2010, 00:30
Re: OOC chat and Normal Chat - by Norn - 23.02.2010, 00:33
Re: OOC chat and Normal Chat - by Jawz - 23.02.2010, 00:34
Re: OOC chat and Normal Chat - by Onyx09 - 23.02.2010, 00:37
Re: OOC chat and Normal Chat - by Norn - 23.02.2010, 00:37
Re: OOC chat and Normal Chat - by RoneyRemington - 23.02.2010, 01:05
Re: OOC chat and Normal Chat - by Joe Staff - 23.02.2010, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)