[Pedido] Dar dinheiro a todos
#3

pawn Код:
CMD:payforall(playerid, params[])
{
     // IF do Admin
     if(!strval(params)) return SendClientMessage(playerid, -1, "[INFO] /PayForAll [Quantia]");
     if(strval(params) < 0 || strval(params) > 9999999) return SendClientMessage(playerid, -1, "[ERRO] Quantia Invбlida.");
     for (new l = 0; l < MAX_PLAYERS; l++)
     {
          if (IsPlayerConnected(l))
          {
                 GivePlayerMoney(l, strval(params));
          }
      }
      SendClientMessageToAll(-1, " - Algum administrador setou dinheiro para todos.");
      return 1;
}
Espero que entenda.
Reply


Messages In This Thread
Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 17:55
Respuesta: Dar dinheiro a todos - by LoostGamer - 12.11.2012, 17:58
Re: Dar dinheiro a todos - by @FatalFormat - 12.11.2012, 18:00
Re: Dar dinheiro a todos - by BreakDriFT - 12.11.2012, 18:01
Re: Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 18:05
Respuesta: Dar dinheiro a todos - by LoostGamer - 12.11.2012, 18:06
Re: Dar dinheiro a todos - by rodrigooo - 12.11.2012, 18:08
Re: Dar dinheiro a todos - by @FatalFormat - 12.11.2012, 18:09
Re: Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 18:10
Re: Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 18:16

Forum Jump:


Users browsing this thread: 2 Guest(s)