spownpoints problem
Posted: Sat Feb 14, 2009 2:50 pm
this is the script I've made:
it seems not works..
however I've got the map divided into 2 parts (one allied, one axis).
the line that cannot be crossed is ( -1329 359 405 ).
I've already made the trigger that do not allow you to cross from a side to the other, but now I have spownpoints problems.
there are a lot of axis spownpoints that are in allied side too, and vice-versa. I've made this script to respown axis players in axis side and allied players in allied side, but do not works..why?
Code: Select all
local.dm_teleax = ( 5826.08 -2580.43 245.45 )::( -1817.17 -4229.18 206.21 )
local.dm_teleal = ( 3305.79 5284.85 192.35 )::( -1921.29 6269.79 249.59 )
if (local.player.origin[2] > 359)
{
if (local.player.dmteam == "axis")
{
if ($player[local.i].origin = local.dm_teleax[1])
{
local.player tele local.dm_teleax[2]
}
else
{
local.player tele local.dm_teleax[1]
}
}
}
if (local.player.origin[2] < 359)
{
if (local.player.dmteam == "allied")
{
if ($player[local.i].origin = local.dm_teleal[1])
{
local.player tele local.dm_teleal[2]
}
else
{
local.player tele local.dm_teleal[1]
}
}
}
end
local.trig1 = spawn trigger_multiple
local.trig1.origin = local.dm_teleax[1]
local.trig1 setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig1 setthread Trigg1
local.trig1 message "Please change spot, you're in a spownpoint!!"
local.trig1 wait 0
local.trig1 delay 0
Trigg1:
local.player=parm.other
if (local.player.isTrigg1==1)
local.player.isTrigg1=1
goto trigg1
local.player.isTrigg1=0
end
local.trig2 = spawn trigger_multiple
local.trig2.origin = local.dm_teleax[2]
local.trig2 setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig2 setthread Trigg2
local.trig2 message "Please change spot, you're in a spownpoint!!"
local.trig2 wait 0
local.trig2 delay 0
Trigg2:
local.player=parm.other
if (local.player.isTrigg2==1)
local.player.isTrigg2=1
goto trigg2
local.player.isTrigg2=0
end
local.trig3 = spawn trigger_multiple
local.trig3.origin = local.dm_teleal[1]
local.trig3 setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig3 setthread Trigg3
local.trig3 message "Please change spot, you're in a spownpoint!!"
local.trig3 wait 0
local.trig3 delay 0
Trigg3:
local.player=parm.other
if (local.player.isTrigg3==1)
local.player.isTrigg3=1
goto trigg3
local.player.isTrigg3=0
end
local.trig4 = spawn trigger_multiple
local.trig4.origin = local.dm_teleal[2]
local.trig4 setsize ( -10 -10 -10 ) ( 10 10 10 )
local.trig4 setthread Trigg4
local.trig4 message "Please change spot, you're in a spownpoint!!"
local.trig4 wait 0
local.trig4 delay 0
Trigg4:
local.player=parm.other
if (local.player.isTrigg4==1)
local.player.isTrigg4=1
goto trigg4
local.player.isTrigg4=0
end
however I've got the map divided into 2 parts (one allied, one axis).
the line that cannot be crossed is ( -1329 359 405 ).
I've already made the trigger that do not allow you to cross from a side to the other, but now I have spownpoints problems.
there are a lot of axis spownpoints that are in allied side too, and vice-versa. I've made this script to respown axis players in axis side and allied players in allied side, but do not works..why?