| Autor |
|
|
|
| PLOOP-PLOOP-Verschachtelung |
|
|
|
|
Hm das GLOOP und PLOOP ineinander nicht gehn, kann ich mir vorstellen, aber es geht bei mir um eine PLOOP-PLOOP-Verschachtelung und bei der bin ich mir da nicht ganz so sicher. Hier mal der Code für 2 Spieler:
//v0-v60: SpielerIDs
//v100-v160: Teamvariable für den jeweiligen Spieler
//v97: Zählervariable für Teamlose Spieler
//v98: Zählervariable für PLOOPs
//v99: Ersatzvariable für player
if never then
v0=99
v1=99
fallmps=1000
endif
v98=0
PLOOP
if v98==0 and v0==99 then
v0=player
endif
if v98==1 and v1==99 then
v1=player
endif
//...
inc(v98)
END
PLOOP
v99=player
if ssnnearssn(player,blauerspawn,10) then
player=0
v98=0
PLOOP
if v98==0 and v0==v99 then
v100=1
endif
if v98==1 and v1==v99 then
v101=1
endif
//...
inc(v98)
END
endif
if ssnnearssn(player,roterspawn,10) then
player=0
v98=0
PLOOP
if v98==0 and v0==v99 then
v100=2
endif
if v98==1 and v1==v99 then
v101=2
endif
//...
inc(v98)
END
endif
player=v99
END
v97=0
//check for non-existing players teams and IDs
if past(0) then
if not ssnexists(v0) and v0!=99 then
v0=99
v100=0
else if ssnexists(v0) and v100==0 then
inc(v97)
if past(2) and elapse(10) then
text("Hinweis fuer Spieler 0: Fuer Teamzuweisung bei X spawnen!")
endif
endif
if not ssnexists(v1) and v1!=99 then
v1=99
v101=0
else if ssnexists(v1) and v101==0 then
inc(v97)
if past(2) and elapse(10) then
text("Hinweis fuer Spieler 1: Fuer Teamzuweisung bei X spawnen!")
endif
endif
//...
endif
if past(2) and elapse(10) then
consol("------------------------------")
consol#("Teamlose Spieler: ",v97)
consol("------------------------------")
endif
Ich muss aber gleich weg, also wenn ihr jetzt schon testen wollt, dann müsst ihr schnell ne eigene Map basteln, ich komm erst Spätnachmittag bis Abend wieder. 
Dieser Beitrag wurde 1 mal editiert, zuletzt von Dragonheart am 21.04.2007 - 13:51.
|
| Beitrag vom 21.04.2007 - 13:49 |
|
| Beiträge
| Autor
| Datum
|
|
|
Eraser-EMC2- |
17.04.2007 - 18:49 |
|
|
Eraser-EMC2- |
20.04.2007 - 20:02 |
|
|
MaBöse NOTAP |
21.04.2007 - 00:53 |
|
|
Eraser-EMC2- |
21.04.2007 - 11:02 |
|
|
KF DrAgon |
21.04.2007 - 11:39 |
|
|
Eraser-EMC2- |
21.04.2007 - 12:16 |
|
|
MaBöse NOTAP |
21.04.2007 - 13:20 |
|
|
KF DrAgon |
21.04.2007 - 13:20 |
|
|
KF DrAgon |
21.04.2007 - 13:32 |
|
|
KF DrAgon |
21.04.2007 - 13:49 |
|
|
OldMan |
21.04.2007 - 13:58 |
|
|
Eraser-EMC2- |
21.04.2007 - 14:52 |