/(an)nounce command. Help please.
#5

Use dcmd, its faster.

pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
pawn Код:
dcmd_an(playerid,params[]) {
  if(!IsPlayerAdmin(playerid)) return 0;
  if(!strlen(params)) return SendClientMessage(playerid,0xFF0000AA,"USAGE: /an <text>");
  return GameTextForAll(params,4000,3);
}
Under OnPlayerCommandText:

pawn Код:
dcmd(an,2,cmdtext);
Reply


Messages In This Thread
/(an)nounce command. Help please. - by ownboy - 22.02.2010, 22:52
Re: /(an)nounce command. Help please. - by Fedee! - 22.02.2010, 22:54
Re: /(an)nounce command. Help please. - by silvan - 22.02.2010, 22:56
Re: /(an)nounce command. Help please. - by ownboy - 22.02.2010, 23:01
Re: /(an)nounce command. Help please. - by CJ101 - 22.02.2010, 23:05
Re: /(an)nounce command. Help please. - by Sfrcr - 22.07.2010, 15:31

Forum Jump:


Users browsing this thread: 2 Guest(s)