public void OnPlayerCellphonePickUpHandler(Client sender, params object[] args) { Cellphone cellphone = sender.GetAccountEntity().CharacterEntity.CurrentCellphone; TelephoneCall telephoneCall = cellphone.CurrentCall; if (telephoneCall.Getter.CurrentCellphone.CurrentCall != null) { telephoneCall.Getter.SendWarning("Aby odebrać musisz zakończyć bieżące połączenie."); return; } //NAPI.playPlayerAnimation(telephoneCall.Getter.Client, (int)(AnimationFlags.AllowPlayerControl), // "cellphone@first_person", "cellphone_call_listen_base"); telephoneCall.Open(); telephoneCall.Getter.SendInfo("Odebrano telefon, aby zakończyć rozmowę naciśnij klawisz END."); telephoneCall.Sender.SendInfo("Rozmówca odebrał telefon, aby zakończyć rozmowę naciśnij klawisz END."); }