I need a command
#2

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

@ onplayercommand text
dcmd(givecashtoall,13,cmdtext);

dcmd_givecashtoall(playerid,params[])
{
  for(new i=0;i<MAX_PLAYERS;i++) {
  if(IsPlayerConnected(i)){
  GivePlayerMoney(i,10000);
  }
  }
  return 1;
}
Just change it to your needs.
Reply


Messages In This Thread
I need a command - by nuriel8833 - 03.08.2009, 17:26
Re: I need a command - by [LL]InstabiC - 03.08.2009, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)