Code: Select all
*speclock [player] [time (secs)] [target_player]
*specleave [player]
new OSD types : OSDSPEC and OSDSPECLOWER
Heres a quick example showing how you can use that for a world where users are put in spec when they join and leave spec only when they select an option :
Code: Select all
Event( "OSDSelect", "SpecOSD:Join" )
{
*specleave %PLAYER%
}
Event( "PlayerLoginComplete", "" )
{
*speclock %PLAYER%
osdcreate(OSDSPECLOWER, "SpecOSD", "Welcome" )
osdSet( "BlockEscape" )
osdadditem(OSDMINHEIGHT, "", "200" )
osdaddat(OSDTEXT, 10, 0, 580,70, "", "Welcome to the world")
osdaddat(OSDTEXT, 10, 30,580,30, "", "Here we might give you options to do things like choose your character or whatever")
osdaddat(OSDEXITBUTTON, 150, 90,300,30, "Join", "Join Game")
osdactivate()
}