Hello, please help. Did auth and unauth not work. What is my error?
public static void AuthToCodeLock(object codeLock, BasePlayer toPlayer)
{
List<ulong> ulongList = (List<ulong>) whitelistLock.GetValue(codeLock);
if (ulongList.Contains(toPlayer.userID))
return;
ulongList.Add(toPlayer.userID);
}
public static void UnAuthToCodeLock(object codeLock, BasePlayer toPlayer)
{
List<ulong> ulongList = (List<ulong>) whitelistLock.GetValue(codeLock);
if (!ulongList.Contains(toPlayer.userID))
return;
ulongList.Remove(toPlayer.userID);
}
Solved AuthToCodeLock\UnAuthToCodeLock
Discussion in 'Rust Development' started by I AM SUPA MIDA, Jul 11, 2017.