SphereCommunity

Full Version: Sprint event mass teleport needed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I have sprint event, Point - A = start pad , Point - B = finish pad
4 players gets unstoned while standing on point A , first player of thous 4 that steps on point B gets prize and triggers teleport for all thous 4 players out of event(including himself) Problem is i dont know how to do it. Can anyone please help me with this?

PHP Code:
//Point A
//more  = 4  amount of players
//more2 = 1 locked start

ON=@Step
  more 
-= 1
  
if <more> < 1
    more2 
1
  
endif
  
src.go <morep>
  
src.stone 0
  src
.move 0,-<more>
  
tag.char_<dmore> = <src.uid>
  return 
1

//Point B
ON=@Step
      
for 
        ref2 
= <uid.<ref1.tag0.start_pad>.tag0.char_<eval <local._for> +- 1>>
        if <
src.uid> != <ref2.uid>
          
ref2.go //XXXX,XXXX,XX
        
endif
      endfor
    endif 

Have set point A uid on point B but it doesnt work.
You can put them a tag when they are unfreeze
ex: tag.race=1

When the first one step on tiles B, you can use forclients

Code:
@step //tile B
ref1=<src.uid>
forclients 50
       if <ref1>==<uid> //winner
                //give the prize
       endif
       if <tag0.race> == 1
          tag.race=
          ref2.go //XXXX,XXXX,XX
       endif
endfor
Reference URL's