05.05.2020, 06:59
Code:
forward duelstart(); public duelstart() { DuelCountdown --; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(InDuel[i] == true) { if(DuelCountdown == 5) { GameTextForPlayer(i, "~r~5", 1000, 3); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); } if(DuelCountdown == 4) { GameTextForPlayer(i, "~r~4", 1000, 3); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); } if(DuelCountdown == 3) { GameTextForPlayer(i, "~r~3", 1000, 3); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); } if(DuelCountdown == 2) { GameTextForPlayer(i, "~r~2", 1000, 3); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); } if(DuelCountdown == 1) { GameTextForPlayer(i, "~r~1", 1000, 3); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); } if(DuelCountdown == 0) { KillTimer(dueltimer); Duel = true; new string[128]; format(string, sizeof(string), "Boxing duel between %s and %s started!", Dueler1, Dueler2); SendClientMessageToAll(DUEL, string); TogglePlayerControllable(i, 1); GameTextForPlayer(i, "~g~BOX YOURSELF!", 2000, 3); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); } } } } return 1; }