08.03.2019, 01:17
(
Последний раз редактировалось Jefff; 08.03.2019 в 17:00.
)
Just increase game text time and it should be outside loop
pawn Код:
forward StartMap(mode);
public StartMap(mode)
{
new string[4];
switch(mode)
{
case DM:
{
if( --Countdown[DM] > 0 ) valstr(string, Countdown[DM]);
else
{
string = "Go!";
Countdown[DM] = 4;
KillTimer(Vehicle_Freeze[DM]);
KillTimer(Start_Map[DM]);
}
for(new i = GetPlayerPoolSize(); i > -1; i--)
if(pMode[i] == DM && GameTextForPlayer(i, string, 2000, 4)) // mode == DM and player is connected
{
if(Countdown[DM] == 4) // start
TogglePlayerControllable(i, true);
}
}
}
return 1;
}