fix admin status
This commit is contained in:
parent
19759b99e2
commit
771f6708f1
@ -842,6 +842,6 @@ event BeginState(Name N)
|
||||
defaultproperties
|
||||
{
|
||||
RespawnCounter=-1
|
||||
AdminType=255
|
||||
AdminType=AT_Player
|
||||
TaggedPlayerName="Player"
|
||||
}
|
@ -1518,7 +1518,7 @@ final function InitCustomChars(ExtPlayerReplicationInfo PRI)
|
||||
|
||||
final function bool HasPrivs(ExtPlayerReplicationInfo P)
|
||||
{
|
||||
return WorldInfo.NetMode==NM_StandAlone || (P!=None && P.ShowAdminName() && (P.AdminType<=1 || P.AdminType==255));
|
||||
return WorldInfo.NetMode==NM_StandAlone || (P != None && P.ShowAdminName() && (P.AdminType <= AT_Admin || P.AdminType == AT_Player));
|
||||
}
|
||||
|
||||
function AdminCommand(ExtPlayerController PC, int PlayerID, int Action)
|
||||
|
Loading…
x
Reference in New Issue
Block a user