Guest User

Untitled

a guest
Dec 6th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. if(derbyStatus == 0) {
  2. if(derbyTime > 0) {
  3. derbyTime--;
  4. if(derbyTime == 0) {
  5. if(derbyPlayers < 1) { //sa pun < 2 dupa test
  6. foreach(Player, i) {
  7. if(inDerby[i] == 1) leave_derby(i), SCM(i, COLOR_YELLOW, "Nu sunt suficienti jucatori. (Minim 2)");
  8. }
  9. derbyStatus = 0;
  10. derbyTime = 30;
  11. }
  12. derbyStatus = 1;
  13. derbyTime = 120;
  14. SendDerby(COLOR_YELLOW, "Runda a inceput. Succes!");
  15. foreach(Player, i) {
  16. if(inDerby[i] == 1) TogglePlayerControllable(i, 1);
  17. }
  18. }
  19. }
  20. }
  21.  
  22. if(derbyStatus == 1) {
  23. if(derbyTime > 0) {
  24. derbyTime--;
  25. if(derbyTime == 0) {
  26. foreach(Player, i) {
  27. if(inDerby[i] == 1) leave_derby(i);
  28.  
  29. }
  30. derbyStatus = 0;
  31. derbyTime = 30;
  32. SendDerby(COLOR_YELLOW, "Runda s-a terminat! Nimeni nu a castigat.");
  33. }
  34. else {
  35. if(derbyPlayers == 0) { //sa pun 1 aici dupa test
  36. foreach(Player, i) {
  37. if(inDerby[i] == 1) leave_derby(i), SCM(i, COLOR_YELLOW, "Felicitari! Ai castigat.");
  38. }
  39. derbyStatus = 0;
  40. derbyTime = 30;
  41. }
  42. }
  43. }
  44. }
  45.  
  46. if(inDerby[i] == 1) {
  47. if(derbyStatus == 1) {
  48. new Float: Pos[3];
  49. GetPlayerPos(i, Pos[0], Pos[1], Pos[2]);
  50. if(Pos[2] < 283.5902) leave_derby(i);
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment