Jump to content

Help with acl =(


Deadmau5

Recommended Posts

yes i know this probblem i have it to they can't bk in race script if a check on /spectate and next map how to fix it :

1. search for "onClientRequestSpectate" in racce_server.lua in that function you will find this line

"if not g_GameOptions.stealthspectate or not isPlayerInACLGroup(player, g_GameOptions.admingroup) then"

now ad 1 more check for your group name and you got

"if not g_GameOptions.stealthspectate or not isPlayerInACLGroup(player, g_GameOptions.admingroup) or not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Owner" ) ) then"

and now the "Owner" group can spectate

2. setNext map search for " addCommandHandler('nextmap', " in racevoting_server.lua you will find a function and this line

"if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) then"

now again ad 1 more check and you got

"if not _TESTING and not isPlayerInACLGroup(player, g_GameOptions.admingroup) and not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "Owner" ) ) then "

and now Owner group can set next map

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...