Advertisement
NanoBob

first gate

May 10th, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1.     gate1=
  2.     x1,y1,z1 = getElementPosition (gate1)
  3.     colisionsph = createColSphere ( x1, y1, Z1, 5.0 )
  4. function gate()
  5.     z3=z1+3
  6.     MoveObject (gate1,3000, x1,y1,z3)
  7.     sleep(5)
  8.     MoveObject (gate1,2000, x1,y1,z1)
  9. end
  10.  
  11. function spawn()
  12.     TeamLess=createTeam(TeamLess,0,300,0)
  13.     spawnPlayer(source,2791,-2456,14)
  14.     fadeCamera(source,true)
  15.     setCameraTarget(source,source)
  16.     outputChatBox("NanoBob's testserver", source)
  17.     outputChatBox("Type /login [PASSWORD] to login or /register[PASSWORD] to register")
  18.     giveWeapon(source,31,4000)
  19.     setPlayerTeam(source,TeamLess)
  20. end
  21. addEventHandler("onPlayerJoin", getRootElement(),spawn)
  22. addEventHandler ( "onColShapeHit",colisionsph(),gate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement