Need a command 2
#1

someone gave me that code:
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;
}

I need it as a command (like /money) not in dcmd.
and i need that if the admin is doing /money 1 it will give all 10000$
if he is doing /money 2 it will give all 100000$
and if he is doing /money 3 it will give all 1000000$


tanks for helpers
Reply


Messages In This Thread
Need a command 2 - by nuriel8833 - 03.08.2009, 18:04
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 04:37
Re: Need a command 2 - by [LL]InstabiC - 04.08.2009, 04:55
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 05:02
Re: Need a command 2 - by [LL]InstabiC - 04.08.2009, 05:13
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 05:34
Re: Need a command 2 - by [LL]InstabiC - 04.08.2009, 05:39
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 05:48
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 11:22
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)