OOC /b
#6

Could you atleast show those lines please?

Anyway:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new
    idx,
    cmd[128];

  cmd = strtok(cmdtext, idx);
  if(strcmp(cmd, "/b", true) == 0)
  {
    new
      string[128],
      tmp[128];
   
    tmp = strtok(cmdtext, idx);
    if(strlen(tmp) < 1) return SendClientMessage(playerid, COLOR, "Usage: /b [local ooc chat]");
    else
    {
      new
        Name[24];
   
      GetPlayerName(playerid, Name, 24);
      format(string, sizeof(string), "((%s says: %s))", Name, string);
      SendClientMessageToAll(COLOR_OOC, string);
      printf(string);  
    }
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread
OOC /b - by `Robo - 28.02.2010, 00:15
Re: OOC /b - by Miguel - 28.02.2010, 00:55
Re: OOC /b - by `Robo - 28.02.2010, 00:59
Re: OOC /b - by Miguel - 28.02.2010, 01:15
Re: OOC /b - by `Robo - 28.02.2010, 01:31
Re: OOC /b - by Miguel - 28.02.2010, 01:32

Forum Jump:


Users browsing this thread: 1 Guest(s)