Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case COLOR_BANDA:
- {
- if(response)
- {
- if(PlayerInfo[playerid][jMiembro])
- {
- if(PlayerInfo[playerid][pRango] == 8)
- {
- new bandaid = GetFactionID(PlayerInfo[playerid][jMiembro]), query[256];
- //if(!bandaid) return 1;
- BandasInfo[bandaid][BColor] = RandomColors[listitem];
- format(string, sizeof(string), "El color de tu banda ahora será el color %d.", listitem+1);
- SendClientMessage(playerid,-1,string);
- format(string, sizeof(string), "Banda: "#Celeste"%s {FFFFFF}cambió el color de la banda al {olor %d", NombreJugador(playerid), listitem+1);
- SendRadioMessage(PlayerInfo[playerid][jMiembro],-1,string,playerid);
- for(new t = 0; t < MAX_TERRITORIOS; t++)
- {
- if(GangsInfo[t][gsBanda] == PlayerInfo[playerid][jMiembro])
- {
- new flash_color, r, g, b, a;
- GangsInfo[t][gsColor] = BandasInfo[bandaid][BColor];
- HexToRGBA(GangsInfo[t][gsColor], r, g, b, a);
- flash_color = RGBAToHex(r, g, b, 135);
- SetDynamicZoneColor(GangInfo[t][gZone], flash_color);
- GuardarTerritorio(t);
- }
- }
- format(query, sizeof(query), "UPDATE `facciones` SET Color = '%d' WHERE id = '%d'", RandomColors[listitem], PlayerInfo[playerid][jMiembro]);
- mysql_function_query(Conecction, query, true, "","");
- } else return SendClientMessage(playerid, COLOR_WHITE, "Debes ser el jefe de la banda para cambiar su color.");
- } else return SendClientMessage(playerid, COLOR_WHITE, "Debes estar en una facción para hacer esto.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement