Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gate()
- x1,y1,z1 = getElementPosition (object (wrongs-gate)(1))
- x2,y2,z2 = x1+5,y1+5,z1+5
- x4,y4,z4 = getElementPosition source
- if (x4<=x2) and (y4<=y2) and (z4<=z2) then
- then
- z3=z1+3
- MoveObject (object (wrongs-gate)(1), x1,y1,z3)
- sleep(5)
- MoveObject (object (wrongs-gate)(1), x1,y1,z1)
- end
- function spawn()
- TeamLess=createTeam(TeamLess,0,300,0)
- spawnPlayer(source,2791,-2456,14)
- fadeCamera(source,true)
- setCameraTarget(source,source)
- outputChatBox("NanoBob's testserver", source)
- outputChatBox("Type /login [PASSWORD] to login or /register[PASSWORD] to register")
- giveWeapon(source,31,4000)
- setPlayerTeam(source,TeamLess)
- end
- addEventHandler("onPlayerJoin", getRootElement(), spawn)
- addEventHandler("OpenGate",gate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement