Fix Fehler bei Punktevergabe
This commit is contained in:
@@ -524,6 +524,11 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
foreach (var copPlayer in NAPI.Pools.GetAllPlayers())
|
foreach (var copPlayer in NAPI.Pools.GetAllPlayers())
|
||||||
{
|
{
|
||||||
User copUser = copPlayer.GetUser();
|
User copUser = copPlayer.GetUser();
|
||||||
|
if (copUser == null)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (copUser.FactionId == 1 || copUser.FactionId == 3)
|
if (copUser.FactionId == 1 || copUser.FactionId == 3)
|
||||||
{
|
{
|
||||||
if (copUser.GetData<bool>("duty") == true)
|
if (copUser.GetData<bool>("duty") == true)
|
||||||
|
|||||||
Reference in New Issue
Block a user