public void CMD_UnCuff(Client client, Client player) { PlayerInfo clientInfo = PlayerHelper.GetPlayerStats(client); PlayerInfo playerInfo = PlayerHelper.GetPlayerStats(player); if (!FraktionSystem.HasRank(client, 1)) { client.SendNotification("Vous n'avez aucune autorisation!"); return; } if (!player.HasData("onduty")) { client.SendNotification("~r~Vous n'êtes pas en service!"); return; } if (!player.HasData("cuff")) { client.SendNotification("[~b~LSPD~w~]: Ce joueur n'a pas de menottes!"); return; } if (player.Position.DistanceTo2D(client.Position) < 5) { NAPI.Player.StopPlayerAnimation(player); client.SendNotification("[~b~LSPD~w~]:Vous avez libéré: " + player.Name); LSPD.uncuff(player); } else { client.SendNotification("Le joueur n'est pas à portée de main!"); } }
public void CMD_UnCuff(Client client, Client player) { PlayerInfo clientInfo = PlayerHelper.GetPlayerStats(client); PlayerInfo playerInfo = PlayerHelper.GetPlayerStats(player); if (!FraktionSystem.HasRank(client, 1)) { client.SendNotification("Du hast dazu keine Berechtigung!"); return; } if (!player.HasData("onduty")) { client.SendNotification("~r~Du bist nicht im Dienst!"); return; } if (!player.HasData("cuff")) { client.SendNotification("[~b~LSPD~w~]: Dieser Spieler besitzt keine Handschellen!"); return; } if (player.Position.DistanceTo2D(client.Position) < 5) { NAPI.Player.StopPlayerAnimation(player); client.SendNotification("[~b~LSPD~w~]: Du hast diese Person freigelassen: " + player.Name); LSPD.uncuff(player); } else { client.SendNotification("Spieler ist nicht in Reichweite!"); } }
public void CMD_Cuff(Client client, Client player) { PlayerInfo clientInfo = PlayerHelper.GetPlayerStats(client); PlayerInfo playerInfo = PlayerHelper.GetPlayerStats(player); if (!FraktionSystem.HasRank(client, 1)) { client.SendNotification("Vous n'avez aucune autorisation!"); return; } if (!client.HasData("onduty")) { client.SendNotification("~r~Vous n'êtes pas en service!"); return; } if (player.HasData("cuff")) { client.SendNotification("Ce joueur a déjà des menottes!"); return; } if (playerInfo.jail == 1) { client.SendNotification("Ce joueur ne peut pas être menotté en prison!"); return; } if (player.Position.DistanceTo2D(client.Position) < 5) { NAPI.Player.PlayPlayerAnimation(player, (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl), "mp_arresting", "idle"); client.SendNotification("[~b~LSPD~w~]:~w~ Vous avez arrêté : " + player.Name); LSPD.cuff(player); } else { client.SendNotification("Le joueur n'est pas à portée de main!"); } }
public void CMD_Cuff(Client client, Client player) { PlayerInfo clientInfo = PlayerHelper.GetPlayerStats(client); PlayerInfo playerInfo = PlayerHelper.GetPlayerStats(player); if (!FraktionSystem.HasRank(client, 1)) { client.SendNotification("Du hast dazu keine Berechtigung!"); return; } if (!client.HasData("onduty")) { client.SendNotification("~r~Du bist nicht im Dienst!"); return; } if (player.HasData("cuff")) { client.SendNotification("Dieser Spieler besitzt bereits Handschellen!"); return; } if (playerInfo.jail == 1) { client.SendNotification("Dieser Spieler kann im Gefängnis keine Handschellen tragen!"); return; } if (player.Position.DistanceTo2D(client.Position) < 5) { NAPI.Player.PlayPlayerAnimation(player, (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl), "mp_arresting", "idle"); client.SendNotification("[~b~LSPD~w~]:~w~ Du hast diese Person festgenommen: " + player.Name); LSPD.cuff(player); } else { client.SendNotification("Spieler ist nicht in Reichweite!"); } }