Loveboy
1st January 2014, 20:01
Hello Guys!
I have got a map and I want to place there Killtriggers, because the players on my server glitch on some places everytime.
I had already got one Killtrigger, but they found another again :D
My script looked before so:
main()
{
maps\mp\_load::main();
if (getcvar("scr_remove_killtriggers") == "" || getcvarint("scr_remove_killtriggers") < 1)
{
level.killtriggers[0] = spawnstruct();
level.killtriggers[0].origin = (1593, -1960, -140);
level.killtriggers[0].radius = 140;
level.killtriggers[0].height = 12;
if (getcvar("g_gametype") != "strat")
thread maps\mp\_killtriggers::init();
}
}
This Killtrigger does work.
But as I added my second, the second doesn't work.
main()
{
maps\mp\_load::main();
if (getcvar("scr_remove_killtriggers") == "" || getcvarint("scr_remove_killtriggers") < 1)
{
level.killtriggers[0] = spawnstruct();
level.killtriggers[0].origin = (1593, -1960, -140);
level.killtriggers[0].radius = 140;
level.killtriggers[0].height = 12;
level.killtriggers[1] = spawnstruct();
level.killtriggers[1].origin = (38, -713, -27);
level.killtriggers[1].radius = 150;
level.killtriggers[1].height = 20;
if (getcvar("g_gametype") != "strat")
thread maps\mp\_killtriggers::init();
}
}
Can somebody help me please why the second doesn't work?
I have got a map and I want to place there Killtriggers, because the players on my server glitch on some places everytime.
I had already got one Killtrigger, but they found another again :D
My script looked before so:
main()
{
maps\mp\_load::main();
if (getcvar("scr_remove_killtriggers") == "" || getcvarint("scr_remove_killtriggers") < 1)
{
level.killtriggers[0] = spawnstruct();
level.killtriggers[0].origin = (1593, -1960, -140);
level.killtriggers[0].radius = 140;
level.killtriggers[0].height = 12;
if (getcvar("g_gametype") != "strat")
thread maps\mp\_killtriggers::init();
}
}
This Killtrigger does work.
But as I added my second, the second doesn't work.
main()
{
maps\mp\_load::main();
if (getcvar("scr_remove_killtriggers") == "" || getcvarint("scr_remove_killtriggers") < 1)
{
level.killtriggers[0] = spawnstruct();
level.killtriggers[0].origin = (1593, -1960, -140);
level.killtriggers[0].radius = 140;
level.killtriggers[0].height = 12;
level.killtriggers[1] = spawnstruct();
level.killtriggers[1].origin = (38, -713, -27);
level.killtriggers[1].radius = 150;
level.killtriggers[1].height = 20;
if (getcvar("g_gametype") != "strat")
thread maps\mp\_killtriggers::init();
}
}
Can somebody help me please why the second doesn't work?