Added prototype to ExpGamingCore.Role

This commit is contained in:
Cooldude2606
2018-09-21 23:11:54 +01:00
parent 38f647dd80
commit efab999356
2 changed files with 138 additions and 15 deletions

View File

@@ -1,10 +1,21 @@
Role.add_flag('is_default') -- this must be included in atleast one role
Role.add_flag('is_root',function(player,state) player.character.destructible = not state end)
Role.add_flag('is_admin',function(player,state) player.admin = state end)
Role.add_flag('is_spectator',function(player,state) player.spectator = state end)
Role.add_flag('is_jail',function(player,state) player.character.active = not state end)
Role{
name='Root',
short_hand='Root',
tag='[Root]',
group='Root',
colour={r=255,b=255,g=255},
is_root=true,
is_admin=true,
is_spectator=true,
base_afk_time=false
allow={}
}
Role.order = {
'Root'
}