Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Public new EventCountDownTimer;
- Function EventStartenJetzt()
- {
- if(Event[EventActive] == 1)
- {
- Event[EventGestartet] = 1;
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][AktivImEvent] == 1 || PlayerInfo[i][pAdmin]>4)
- {
- Event[EvCountDown] = 10;
- EventCountDownTimer = SetTimer("EventCountDown",1000,true);
- SetTimer("EventFinalStart",10000,0); // läuft eh nur 10 sek aber egal
- }
- }
- }
- }
- forward EventCountDown();
- public EventCountDown()
- {
- new str[100];
- if(Event[EventActive] == 1)
- {
- Event[EvCountDown]--;
- if(Event[EvCountDown] > 0)
- {
- format(str, sizeof(str), "Count Down: %d",Event[EvCountDown]);
- SendEventGameText(str,1000);
- }
- else
- {
- SendEventGameText("~r~GO ~b~GO ~p~GO",1000);
- Event[EvCountDown] = 0;
- KillTimer(EventCountDownTimer); // keine weiteren publics ausgeführt, da man EventCountDown so allgemeiner und nicht nur für den start nutzen kann
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement