Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. case COLOR_BANDA:
  2. {
  3. if(response)
  4. {
  5. if(PlayerInfo[playerid][jMiembro])
  6. {
  7. if(PlayerInfo[playerid][pRango] == 8)
  8. {
  9. new bandaid = GetFactionID(PlayerInfo[playerid][jMiembro]), query[256];
  10. //if(!bandaid) return 1;
  11. BandasInfo[bandaid][BColor] = RandomColors[listitem];
  12.  
  13. format(string, sizeof(string), "El color de tu banda ahora será el color %d.", listitem+1);
  14. SendClientMessage(playerid,-1,string);
  15.  
  16. format(string, sizeof(string), "Banda: "#Celeste"%s {FFFFFF}cambió el color de la banda al {olor %d", NombreJugador(playerid), listitem+1);
  17. SendRadioMessage(PlayerInfo[playerid][jMiembro],-1,string,playerid);
  18. for(new t = 0; t < MAX_TERRITORIOS; t++)
  19. {
  20. if(GangsInfo[t][gsBanda] == PlayerInfo[playerid][jMiembro])
  21. {
  22. new flash_color, r, g, b, a;
  23. GangsInfo[t][gsColor] = BandasInfo[bandaid][BColor];
  24. HexToRGBA(GangsInfo[t][gsColor], r, g, b, a);
  25. flash_color = RGBAToHex(r, g, b, 135);
  26. SetDynamicZoneColor(GangInfo[t][gZone], flash_color);
  27. GuardarTerritorio(t);
  28. }
  29. }
  30. format(query, sizeof(query), "UPDATE `facciones` SET Color = '%d' WHERE id = '%d'", RandomColors[listitem], PlayerInfo[playerid][jMiembro]);
  31. mysql_function_query(Conecction, query, true, "","");
  32. } else return SendClientMessage(playerid, COLOR_WHITE, "Debes ser el jefe de la banda para cambiar su color.");
  33. } else return SendClientMessage(playerid, COLOR_WHITE, "Debes estar en una facción para hacer esto.");
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement