Freeze players for 20 seconds at rounderstart
Ok Guys, that not work, idk really why, i have set it in my mp_sad.gsc, i have run the map and it doesn't work.
Code:
main()
{
// Map name: mp_sad (test map)
maps\mp\_load::main();
maps\mp\_kiste1::main(); // Zufallskiste Nr.1
thread begin(); // Here if map starts then you have to wait 20 secounds
}
begin()
{
wait(1);
players = getentarray("player", "classname");
for (i = 0; i<players.size; i++)
{
players[i] freezecontrols(true);
wait 20;
players[i] freezecontrols(false);
}
}
If map started, then waiting 1 secound, then freeze, that doesnt work.
And i think because: If you are not in the map, in the exact second 29:59, then it should start but i come too late, and i will be not stuck.
Somebody know how else i can make it?