Englisch Setpos

5 Antworten
Gehe zu Seite
Zum Anfang Vorherige 1 Nächste Zum Anfang
11.07.18 05:53:03
Hoch
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
Hoch
Cure Pikachu
User
Offline Off
user zAzz hat geschrieben:
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 hat geschrieben:
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
Hoch
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
Hoch
Cure Pikachu
User
Offline Off
OK, at this 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.
2× editiert, zuletzt 25.07.18 16:36:10
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
11.07.18 06:12:57
Hoch
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
Hoch
Cure Pikachu
User
Offline Off
user zAzz hat geschrieben:
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
Zum Anfang Vorherige 1 Nächste Zum Anfang