Guest User

Comando

a guest
Sep 11th, 2019
133
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:allbzoff(playerid,params[])
  2. {
  3. new cantidad,string[128];
  4. if(PlayerInfo[playerid][pAdmin] < 6) return 0;
  5. if(!sscanf(params,"d",cantidad))
  6. {
  7. foreach(Player,i)
  8. {
  9. if(IsPlayerConnected(i) && !IsPlayerNPC(i))
  10. {
  11. format(string,128,"Acabas de comprar {00ccff}%d "SERVER_COIN"",cantidad);
  12. format(query, 200, "UPDATE usuarios SET Monedas`='%s' WHEREUsername`='%s'",cantidad);
  13. mysql_function_query(Conecction, query, true, "OnQueryFinish", "ii", 0, playerid);
  14. }
  15. SendClientMessage(i,0x00cc00ff,string);
  16. PlayerInfo[i][Moneda] += cantidad;
  17. }
  18. }
  19. }
  20. else return SendClientMessage(playerid, COLOR_WHITE, "Escribe {DBED16}/allmoneda {FFFFFF}<Cantidad>");
  21. return 1;
  22. }
RAW Paste Data