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!"); } }