Raised This Month: $12 Target: $400
 3% 

[NL] voice speech


  
 
 
Thread Tools Display Modes
Author Message
MichielM
Member
Join Date: Aug 2005
Old 09-08-2005 , 11:42   [NL] voice speech
#1

ik ben opzoek naar iets een plugin of wat code wat met de voice/speech kan werken in TS. Ik wil namelijk uitschakelen dat iemand dit kan gebruiken, en alleen als er iemand gebruik maakt van een bepaalde functie dan wel.
MichielM is offline
MichielM
Member
Join Date: Aug 2005
Old 09-08-2005 , 15:08  
#2

ik heb dit volgende script:
Code:
public plugin_init(){     register_plugin("All Talk Channel", "1.0", "VanillA Ice") ;     register_clcmd("say /alltalkme", "all_talk") ;     register_clcmd("say /unalltalkme", "no_talk") ;     register_concmd("amx_listen", "Nosy_Admin", ADMIN_KICK,"Allowes You to Listen In on the Other Teams Converstaions on MIC!");     register_clcmd("amx_ptalk", "Private_Talk_All", ADMIN_KICK, "Allowes Admins to talk to each other privately!");     register_clcmd("amx_pstalk", "Private_Talk_One", ADMIN_KICK, "Allowes Admins to talk to a specific admin privately!");     set_task(300.0,"notify",0,"",0,"b")  ;                                 } public all_talk(id){     set_speak(id,SPEAK_ALL) ;     new name[32] ;     get_user_name(id,name,31) ;     if(get_speak(id) == SPEAK_ALL){         client_print(id, print_chat, "All Talk Channel Entered")   ;                                                     client_print(0, print_chat, "%s Has Gone In The all Talk Channel!",name) ;                             }             else{         client_print(id, print_chat, "Transfer To All Talk Channel Faild!"); // Ooops!     } } public no_talk(id){     set_speak(id,SPEAK_NORMAL) ;     new name[32] ;     get_user_name(id,name,31) ;     if(get_speak(id) == SPEAK_NORMAL){         client_print (id, print_chat, "Normal Channel Entered!")  ;                                                 client_print (0, print_chat, "%s Has Gone Into Normal Speak Channel",name) ;     }     else{         client_print (id, print_chat, "Transfer To Normal Channel Failed!");     } } public Nosy_Admin(id,level,cid){     if (!cmd_access(id,level,cid,1)){         return PLUGIN_HANDLED     }     set_speak(id, SPEAK_LISTENALL) ;     if(get_speak(id) == SPEAK_LISTENALL){         client_print (id, print_chat, "You can now listen to other peoples conversations") ;                     }     else{         client_print(id, print_chat, "Sorry Command Faild! Please Try Again")                                               }     return PLUGIN_HANDLED } public Private_Talk_All(id, level, cid){     if (!cmd_access(id,level,cid,1)){         return PLUGIN_HANDLED     }           new admin     new Players[32]     new playerCount, i     get_players(Players, playerCount, "c")     for (i=0; i<playerCount; i++)     admin = is_user_admin(i)           if(is_user_admin(i) == 1){         set_client_listen(admin, id, 1);         set_client_listen(id, admin, 1);         set_client_listen(admin, admin, 1);         client_print(admin, print_chat, "[AMXX] You are now in a private talk session with all other admins!");         client_print(admin, print_chat, "[AMXX] To exit say /alltalkme or /untalkme");     }     return PLUGIN_HANDLED } public Private_Talk_One(id,level,cid){     if (!cmd_access(id, level, cid, 1)){         return PLUGIN_HANDLED     }           new name[32];     new arg[32];                 read_argv(1, arg, 31);                       new admin = cmd_target(id,arg,1);     new admin_name = get_user_name(admin,name,31);                       set_client_listen(0,0,1);     set_client_listen(admin, id, 1);     set_client_listen(id, admin, 1);           client_print(id, print_chat, "[AMXX] You are in a private talk session with %s", admin_name);     client_print(admin, print_chat, "[AMXX] You are in a private talk session with %s", id);           return PLUGIN_HANDLED } public notify(){   // just lets user know the commands     client_print(0, print_chat, "Say /alltalkme to go into all talk channel") ;           client_print(0, print_chat, "Say /untalkme to go out of all talk channel");

hiervan wil ik de functie gebruiken (public Private_Talk_One) dat je met elkaar kan praten zonder dat iemand het kan horen.
kan iemand mij helpen?
ik wil het graag laten werken met deze 2 handelingen:
Code:
// If user answers phone COMPANY[ID] Callers ID, Normal ID is answerers public answer(id) {     g_phone[id] = g_company[id]     g_phone[g_company[id]] = id     g_company[g_phone[id]] = 0     remove_task(g_company[id]+5)     g_company[id] = 0     client_print(g_phone[id],print_chat,"[Phone Mod] Player has answered the call!^n")     client_print(id,print_chat,"[Phone Mod] You have answered the call!^n")     emit_sound(id, CHAN_ITEM, "phone/ring.wav", 0.0, ATTN_NORM, 0, PITCH_NORM)     emit_sound(g_phone[id], CHAN_ITEM, "phone/ring.wav", 0.0, ATTN_NORM, 0, PITCH_NORM)     remove_task(id+5)     return PLUGIN_HANDLED } // If player hangs up public hangup(id,msg) {     remove_task(id+5)     remove_task(g_company[id]+5)     if(g_phone[id] == 0) return PLUGIN_HANDLED     if(msg == 1)client_print(id,print_chat,"[Phone Mod] You have hungup the call..^n")     client_print(g_phone[id],print_chat,"[Phone Mod] Your call was hungup on..^n")     g_caller[id] = 0     g_caller[g_phone[id]] = 0     g_phone[g_phone[id]] = 0     g_phone[id] = 0     g_company[g_company[id]] = 0     g_company[id] = 0     set_task(0.2,"Phonemenu",id)     return PLUGIN_HANDLED }
MichielM is offline
Old 12-31-2009, 19:41
Hasler10
This message has been deleted by Alucard^. Reason: who care?
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode