Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. forward cargarhora();
  2. public cargarhora()
  3. {
  4. for(new t = 0; t < MAX_TERRITORIOS; t++)
  5. {
  6. new str[256], zone[MAX_ZONE_NAME];
  7. if(GangInfo[t][gConquistarTime] > 0) GangInfo[t][gConquistarTime] --;
  8. else if(GangInfo[t][gConquistador] && GangInfo[t][gConquistarTime] == 0)
  9. {
  10. new flash_color, r, g, b, a;
  11. StopFlashDynamicZoneForAll(GangInfo[t][gZone]);
  12. GangsInfo[t][gsBanda] = GangInfo[t][gConquistador];
  13. GangsInfo[t][gsColor] = GetFactionColorHex(GangInfo[t][gConquistador]);
  14. GangInfo[t][gConquistador] = 0;
  15. HexToRGBA(GangsInfo[t][gsColor], r, g, b, a);
  16. flash_color = RGBAToHex(r, g, b, 135);
  17. SetDynamicZoneColor(GangInfo[t][gZone], flash_color);
  18. GuardarTerritorio(t);
  19. for(new i = 0; i <= GetPlayerPoolSize(); i++) if(IsPlayerConnected(i) && IsPlayerInDynamicZone(i, GangInfo[t][gZone])) GetPlayer2DZone(i, zone, 128);
  20.  
  21. for(new i = 0; i <= GetPlayerPoolSize(); i++)
  22. {
  23. if(IsPlayerConnected(i) && PlayerInfo[i][jMiembro] == GangInfo[t][gConquistador])
  24. {
  25. GangInfo[i][gFlash] = 0;
  26. GangInfo[i][gOleada] = 0;
  27. format(str, sizeof(str), "~w~Tu banda conquistó el barrio de %s.", zone);
  28. ShowAd(i, str);
  29. }
  30. }
  31. }
  32. }
  33.  
  34. new Float:vida;
  35. gettime(Hora, Minuto);
  36. for(new i=0;i<MAX_PLAYERS;i++)
  37. {
  38.  
  39.  
  40.  
  41. if(IsPlayerConnected(i))
  42. {
  43.  
  44.  
  45.  
  46. SetPlayerTime(i,Hora,Minuto);
  47. }
  48. if(PlayerInfo[i][pSed] == 100)
  49. {
  50.  
  51.  
  52.  
  53. GetPlayerHealth(i,vida);
  54. EstablecerVida(i,vida-3);
  55. }
  56. if(PlayerInfo[i][pHambre] == 100)
  57. {
  58.  
  59.  
  60.  
  61. GetPlayerHealth(i,vida);
  62. EstablecerVida(i,vida-3);
  63. }
  64. }
  65. return 1;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement