Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FalloutCountDown()
- {
- new player, str[200];
- fInfo[FalloutMap][I_iCount]--;
- if(fInfo[FalloutMap][I_iCount] > 1)
- {
- format(str, sizeof(str), "~w~FALLOUT STARTING IN:~n~~r~~h~- %i -~n~~w~SECONDS.", fInfo[FalloutMap][I_iCount]);
- }
- foreach(new ii : Player)
- {
- if(InFallout[ii] == 1)
- {
- GameTextForPlayer(ii, str, 2000, 3);
- }
- }
- if(fInfo[FalloutMap][I_iCount] <= 0)
- {
- KillTimer(fInfo[FalloutMap][I_iTimer][1]);
- foreach(new ii : Player) if(InFallout[ii] == 1) player++;
- if(player <= 1)
- {
- Fallout_Cancel();
- foreach(new ii : Player)
- {
- if(InFallout[ii] == 1)
- {
- SendClientMessage(ii, COLOR_WHITEP, ""FALLOUT" Fallout has ended due to lack of contenders!");
- SpawnPlayer(ii);
- InFallout[ii] = 0;
- }
- }
- }
- else
- {
- SetTimer("StartFalling", 600, 0);
- g_FalloutStatus = e_Fallout_Running;
- format(str, sizeof(str), ""FALLOUT" Fallout has started with %d players!", CurrentFalloutPlayers);
- SendClientMessageToAll(COLOR_WHITEP, str);
- format(str, sizeof(str), "~g~~h~Start!");
- foreach(new ii : Player)
- {
- if(InFallout[ii] == 1)
- {
- GameTextForPlayer(ii, str, 2000, 3);
- PlayerPlaySound(ii, 3200, 0, 0, 0);
- SetPlayerPos(ii, 2482.1921 - random(39), -1660.4783 + random(47), 161.5000);
- SetPlayerFacingAngle(ii, random(360));
- SetCameraBehindPlayer(ii);
- TogglePlayerControllable(ii, true);
- FalloutLost[ii] = false;
- }
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment