Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int g_iStamp;
- Game_Hide()
- {
- new hd_wait_time = GetConVarInt(FindConVar("hd_wait_time"));
- for (int i = 1; i <= MaxClients; ++i)
- {
- if(IsClientInGame(i) && IsPlayerAlive(i))
- {
- CGOPrintToChat(i, "\x03[Day Games] \x01Прятки начнутся через %d секунд", hd_wait_time);
- switch(GetClientTeam(i))
- {
- case 2:
- {
- CGOPrintToChat(i, "\x03[Day Games] \x01Найдите себе подходящие местечко.");
- CGOPrintToChat(i, "\x03[Day Games] {RED}Чтобы выбрать скин введите !mask");
- CGOPrintToChat(i, "\x03[Day Games] {GREEN}Через минуту, как вы спрячитесь, {RED}охрана начнет поиск.");
- g_PropsMenu.Display(i,20);
- TiB_SetThirdPerson(i, true);
- }
- case 3:
- {
- CGOPrintToChat(i, "\x03[Day Games] \x01Прятки начнутся через %d секунд", hd_wait_time);
- CGOPrintToChat(i, "\x03[Day Games] \x01Заключенные прячутся.");
- CGOPrintToChat(i, "\x03[Day Games] {GREEN}Через минуту вы снова будете видеть!");
- SetEntityMoveType(i, MOVETYPE_NONE);
- TeleportEntity(i, NULL_VECTOR, NULL_VECTOR, NULL_VELOCITY);
- ScreenFade(i, hd_wait_time, FFADE_IN|FFADE_PURGE);
- }
- }
- }
- }
- g_blackscreen = true;
- SwitchDiezelMode(true);
- OpenAllDoors();
- g_iStamp = GetTime()+hd_wait_time;
- g_hTerTimer = CreateTimer(5.0, Timer_HideStart, _, TIMER_REPEAT);
- }
- public Action Timer_HideStart(Handle timer)
- {
- if(GetConVarInt(FindConVar("hd_wait_time"))) > 0)
- {
- PrintCenterTextAll("До начала игры %d секунд", g_iStamp-GetTime());
- return Plugin_Continue;
- }
- for(int i = 1; i <= MaxClients; ++i)
- {
- switch(GetClientTeam(i))
- {
- case 2:
- {
- SetEntityHealth(i, 200);
- }
- case 3:
- {
- ScreenFade(i, 10, FFADE_OUT|FFADE_PURGE, -1, 0, 0, 0, 0);
- TeleportEntity(i, NULL_VECTOR, NULL_VECTOR, NULL_VELOCITY);
- SetEntityMoveType(i, MOVETYPE_WALK);
- SetEntityHealth(i, 100);
- }
- }
- }
- CGOPrintToChatAll("\x03[Day Games] {GREEN} GO! GO! GO! {RED}Прятки начались!");
- SwitchDiezelMode(false);
- g_blackscreen = false;
- g_hCtTimer = CreateTimer(5.0, Timer_ProcessHide, _, TIMER_REPEAT);
- g_hCtTimer = null;
- return Plugin_Stop;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement