Test Busfahrer
This commit is contained in:
@@ -2598,7 +2598,26 @@ namespace ReallifeGamemode.Server.Commands
|
||||
player.TriggerEvent("manageFactionRanks", json);
|
||||
}
|
||||
}
|
||||
|
||||
[Command("aplaysound", "~m~Benutzung: ~s~/aplaysound [Dateiname] [mp3/wav] [volume 0.0 - 1.0]", Alias ="aps")]
|
||||
public void CmdAdminPlaySound(Player player, string sound, string typ, double volume = 100)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.TriggerEvent("CLIENT:PlaySound", sound, typ, volume);
|
||||
}
|
||||
[Command("astopsound", "~m~Benutzung: ~s~/astopsound", Alias="ass")]
|
||||
public void CmdAdminStopSound(Player player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.TriggerEvent("CLIENT:StopSound");
|
||||
}
|
||||
[Command("aspeed", "~m~Benutzung: ~s~/aspeed [Modifier]")] //TODO: Überarbeiten ?? SetPlayerVelocity ??
|
||||
public void CmdAdminAspeed(Player player, int modifier)
|
||||
{
|
||||
|
||||
@@ -156,6 +156,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
{
|
||||
CheckPointHandle.StartCheckPointRoute(player, RouteVeryLong, 3000, 1, 7, 5, "busDriverJob");
|
||||
}
|
||||
player.TriggerEvent("CLIENT:PlaySound", "jobs/busfahrer/StartJob", "wav", 50);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,15 @@ namespace ReallifeGamemode.Server.Util
|
||||
}
|
||||
}
|
||||
|
||||
[RemoteEvent("playerWaitsInCheckpoint")]
|
||||
public void PlayerWaitsInCheckpoint(Player user)
|
||||
{
|
||||
if (user.GetUser().JobId == 4)
|
||||
{
|
||||
user.TriggerEvent("CLIENT:PlaySound", "jobs/busfahrer/AnfahrtHaltestelle", "wav", 50);
|
||||
}
|
||||
}
|
||||
|
||||
[RemoteEvent("playerInCheckpoint")]
|
||||
public void PlayerInCheckpoint(Player user)
|
||||
{
|
||||
@@ -66,6 +75,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
if (user.GetUser().JobId == 4)
|
||||
{
|
||||
BusDriverJob.payWage(user, 100);
|
||||
user.TriggerEvent("CLIENT:PlaySound", "jobs/busfahrer/AbfahrtHaltestelle", "mp3", 50);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user