Setpos
5 replies



11.07.18 05:53:03 am
Hello, i'm trying to change some spawns for an event editing a script
New Spawns: TT = 29/243, CT = 56/225..
But i don't know how to do it here.. can anyone do it for me?
I think the first setpos is for the terrorist team, idk, this is confusing
New Spawns: TT = 29/243, CT = 56/225..
But i don't know how to do it here.. can anyone do it for me?
Code:
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
parse('trigger '..triggers.warzone[i])
end
for k,v in pairs (player(0,"tableliving")) do
if player(v,"team") == 1 then
parse("setpos "..v.." 5520 "..math.random(54,65)*32+16)
else
parse("setpos "..v.." 6384 "..math.random(54,65)*32+16)
end
end
end
end
end
for k,v in pairs (player(0,"tableliving")) do
if player(v,"team") == 1 then
parse("setpos "..v.." 5520 "..math.random(54,65)*32+16)
else
parse("setpos "..v.." 6384 "..math.random(54,65)*32+16)
end
end
end
end
I think the first setpos is for the terrorist team, idk, this is confusing

I think the first setpos is for the terrorist team
You are right. The second is for the CTs (since Spectators are considered dead and therefore not in the
player(0,"tableliving")
table)
TT = 29/243, CT = 56/225
Is that the X and Y coordinates?


@
Cure Pikachu: Hey there, thanks for your answer. Yes exactly
X/Y

X/Y
OK, at this point it's quite easy, calculator and
setpos are your friends here:
Replace your line 3-9 with that.

Code:
1
2
3
4
5
6
7
2
3
4
5
6
7
for k,v in pairs(player(0,"tableliving")) do
if player(v,"team") == 1 then
parse("setpos "..v.." 944 7792")
else
parse("setpos "..v.." 1808 7216")
end
end
if player(v,"team") == 1 then
parse("setpos "..v.." 944 7792")
else
parse("setpos "..v.." 1808 7216")
end
end
Replace your line 3-9 with that.
edited 2×, last 25.07.18 04:36:10 pm


@
Cure Pikachu: Oh wow you made it look so simple, i'm surprised lol.
It's working, thanks alot
By the way, would you mind if i ask you something in PM?

It's working, thanks alot

By the way, would you mind if i ask you something in PM?

By the way, would you mind if i ask you something in PM?
Sure. Don't count on me being able to fulfill things though.





