Esempio n. 1
0
        public void OnPlayerConnected(GTANetworkAPI.Client client)
        {
            client.SetSharedData(SaltyShared.SharedData.Voice_TeamSpeakName, Guid.NewGuid().ToString());
            client.SetSharedData(SaltyShared.SharedData.Voice_VoiceRange, 10f);

            client.TriggerEvent(SaltyShared.Event.Voice_Initialize, Voice.MinimumPluginVersion, Voice.SoundPack, Voice.IngameChannel, Voice.IngameChannel);
        }
Esempio n. 2
0
 public void OnSetVoiceRange(GTANetworkAPI.Client client, float voiceRange)
 {
     client.SetSharedData(SaltyShared.SharedData.Voice_VoiceRange, voiceRange);
 }