SA-MP Forums Archive
I need a command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need a command (/showthread.php?tid=89684)



I need a command - nuriel8833 - 03.08.2009

I need /money commands.
to give money for all
the prices will be 10000 100000 and 1000000
tanks for helpers


Re: I need a command - [LL]InstabiC - 03.08.2009

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.