müllmann kein driveby
This commit is contained in:
@@ -199,6 +199,11 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
[RemoteEvent("CLIENT:MuellmannImShape")]
|
[RemoteEvent("CLIENT:MuellmannImShape")]
|
||||||
public void MuellmannImShape(Player player, int colshapeIndex)
|
public void MuellmannImShape(Player player, int colshapeIndex)
|
||||||
{
|
{
|
||||||
|
if (player.IsInVehicle)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var data in muellmanData)
|
foreach (var data in muellmanData)
|
||||||
{
|
{
|
||||||
if (data.getDataFromClient(player) == null) continue;
|
if (data.getDataFromClient(player) == null) continue;
|
||||||
@@ -213,6 +218,11 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
[RemoteEvent("CLIENT:MuellmannAddSack")]
|
[RemoteEvent("CLIENT:MuellmannAddSack")]
|
||||||
public void MuellmannAddSack(Player player)
|
public void MuellmannAddSack(Player player)
|
||||||
{
|
{
|
||||||
|
if (player.IsInVehicle)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var data in muellmanData)
|
foreach (var data in muellmanData)
|
||||||
{
|
{
|
||||||
if (data.getDataFromClient(player) == null) continue;
|
if (data.getDataFromClient(player) == null) continue;
|
||||||
@@ -225,7 +235,8 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
user2 = target.GetUser(dbContext);
|
user2 = target.GetUser(dbContext);
|
||||||
user1.trashcount += 1;
|
user1.trashcount += 1;
|
||||||
player.SendNotification("Müllsack: " + user1.trashcount + " von 20.");
|
player.SendNotification("Müllsack: " + user1.trashcount + " von 20.");
|
||||||
if (target != null) {
|
if (target != null)
|
||||||
|
{
|
||||||
target.SendNotification("Müllsack: " + user2.trashcount + " von 20.");
|
target.SendNotification("Müllsack: " + user2.trashcount + " von 20.");
|
||||||
user2.trashcount += 1;
|
user2.trashcount += 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user