[HOTFIX] v0.0.3-h1
fix bug at LSED checkpoint fix Message for Cops
This commit is contained in:
@@ -76,15 +76,18 @@ namespace ReallifeGamemode.Server.Events
|
||||
|
||||
bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 200 * 200);
|
||||
|
||||
if (copNearby)
|
||||
if (user.Wanteds > 0)
|
||||
{
|
||||
user.SetJailTime(true);
|
||||
Jail.Check_PutBehindBars(user);
|
||||
ChatService.HQMessage(user.Name + " wurde ins Gefängnis eingeliefert.");
|
||||
}
|
||||
else
|
||||
{
|
||||
ChatService.HQMessage(user.Name + " wurde soeben ins Krankenhaus eingeliefert.");
|
||||
if (copNearby)
|
||||
{
|
||||
user.SetJailTime(true);
|
||||
Jail.Check_PutBehindBars(user);
|
||||
ChatService.HQMessage(user.Name + " wurde ins Gefängnis eingeliefert.");
|
||||
}
|
||||
else
|
||||
{
|
||||
ChatService.HQMessage(user.Name + " wurde soeben ins Krankenhaus eingeliefert.");
|
||||
}
|
||||
}
|
||||
|
||||
if (user.JailTime <= 0)
|
||||
|
||||
Reference in New Issue
Block a user