English Setpos

5 replies
Goto Page
To the start Previous 1 Next To the start
11.07.18 05:53:03 am
Up
zAzz
User
Offline Off
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?
Code:
1
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


I think the first setpos is for the terrorist team, idk, this is confusing
IMG:http://i49.tinypic.com/fnn9w.png
IMG:http://i45.tinypic.com/23vf2q.png
11.07.18 05:57:40 am
Up
Cure Pikachu
User
Offline Off
user zAzz has written:
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)
user zAzz has written:
TT = 29/243, CT = 56/225

Is that the X and Y coordinates?
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
11.07.18 06:01:32 am
Up
zAzz
User
Offline Off
@user Cure Pikachu: Hey there, thanks for your answer. Yes exactly
X/Y
IMG:http://i49.tinypic.com/fnn9w.png
IMG:http://i45.tinypic.com/23vf2q.png
11.07.18 06:07:03 am
Up
Cure Pikachu
User
Offline Off
OK, at the point it's quite easy, calculator and cs2d cmd setpos are your friends here:
Code:
1
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

Replace your line 3-9 with that.
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
11.07.18 06:12:57 am
Up
zAzz
User
Offline Off
@user 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?
IMG:http://i49.tinypic.com/fnn9w.png
IMG:http://i45.tinypic.com/23vf2q.png
11.07.18 06:16:28 am
Up
Cure Pikachu
User
Offline Off
user zAzz has written:
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.
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
To the start Previous 1 Next To the start