Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(derbyStatus == 0) {
- if(derbyTime > 0) {
- derbyTime--;
- if(derbyTime == 0) {
- if(derbyPlayers < 1) { //sa pun < 2 dupa test
- foreach(Player, i) {
- if(inDerby[i] == 1) leave_derby(i), SCM(i, COLOR_YELLOW, "Nu sunt suficienti jucatori. (Minim 2)");
- }
- derbyStatus = 0;
- derbyTime = 30;
- }
- derbyStatus = 1;
- derbyTime = 120;
- SendDerby(COLOR_YELLOW, "Runda a inceput. Succes!");
- foreach(Player, i) {
- if(inDerby[i] == 1) TogglePlayerControllable(i, 1);
- }
- }
- }
- }
- if(derbyStatus == 1) {
- if(derbyTime > 0) {
- derbyTime--;
- if(derbyTime == 0) {
- foreach(Player, i) {
- if(inDerby[i] == 1) leave_derby(i);
- }
- derbyStatus = 0;
- derbyTime = 30;
- SendDerby(COLOR_YELLOW, "Runda s-a terminat! Nimeni nu a castigat.");
- }
- else {
- if(derbyPlayers == 0) { //sa pun 1 aici dupa test
- foreach(Player, i) {
- if(inDerby[i] == 1) leave_derby(i), SCM(i, COLOR_YELLOW, "Felicitari! Ai castigat.");
- }
- derbyStatus = 0;
- derbyTime = 30;
- }
- }
- }
- }
- if(inDerby[i] == 1) {
- if(derbyStatus == 1) {
- new Float: Pos[3];
- GetPlayerPos(i, Pos[0], Pos[1], Pos[2]);
- if(Pos[2] < 283.5902) leave_derby(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment