help please
#2

I don't know what commands are you using but I'll give you an example with dcmd:

pawn Код:
dcmd_cr(playerid, params[])
{
  if(strlen(params) < 1) return SendClientMessage(playerid, COLOR, "Syntax: /cr <text>");
  else
  {
    new
      pName[24],
      string[128];

    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "Officer %s: %s", pName, params);

    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
      if(Level[i] == COPS_LEVEL) SendClientMessage(i, 0x2641FEAA, string);
    }
  }
  return 1;
}
Reply


Messages In This Thread
help please - by bartje01 - 13.02.2010, 15:50
Re: help please - by Miguel - 13.02.2010, 16:11
Re: help please - by bartje01 - 13.02.2010, 16:22
Re: help please - by LuxurioN™ - 13.02.2010, 16:25
Re: help please - by bartje01 - 13.02.2010, 16:31

Forum Jump:


Users browsing this thread: 5 Guest(s)