Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward cargarhora();
- public cargarhora()
- {
- for(new t = 0; t < MAX_TERRITORIOS; t++)
- {
- new str[256], zone[MAX_ZONE_NAME];
- if(GangInfo[t][gConquistarTime] > 0) GangInfo[t][gConquistarTime] --;
- else if(GangInfo[t][gConquistador] && GangInfo[t][gConquistarTime] == 0)
- {
- new flash_color, r, g, b, a;
- StopFlashDynamicZoneForAll(GangInfo[t][gZone]);
- GangsInfo[t][gsBanda] = GangInfo[t][gConquistador];
- GangsInfo[t][gsColor] = GetFactionColorHex(GangInfo[t][gConquistador]);
- GangInfo[t][gConquistador] = 0;
- HexToRGBA(GangsInfo[t][gsColor], r, g, b, a);
- flash_color = RGBAToHex(r, g, b, 135);
- SetDynamicZoneColor(GangInfo[t][gZone], flash_color);
- GuardarTerritorio(t);
- for(new i = 0; i <= GetPlayerPoolSize(); i++) if(IsPlayerConnected(i) && IsPlayerInDynamicZone(i, GangInfo[t][gZone])) GetPlayer2DZone(i, zone, 128);
- for(new i = 0; i <= GetPlayerPoolSize(); i++)
- {
- if(IsPlayerConnected(i) && PlayerInfo[i][jMiembro] == GangInfo[t][gConquistador])
- {
- GangInfo[i][gFlash] = 0;
- GangInfo[i][gOleada] = 0;
- format(str, sizeof(str), "~w~Tu banda conquistó el barrio de %s.", zone);
- ShowAd(i, str);
- }
- }
- }
- }
- new Float:vida;
- gettime(Hora, Minuto);
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- SetPlayerTime(i,Hora,Minuto);
- }
- if(PlayerInfo[i][pSed] == 100)
- {
- GetPlayerHealth(i,vida);
- EstablecerVida(i,vida-3);
- }
- if(PlayerInfo[i][pHambre] == 100)
- {
- GetPlayerHealth(i,vida);
- EstablecerVida(i,vida-3);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement