#if defined _speech_included #endinput #endif #define _speech_included #include <admin> #include <core> #include <string> stock Speak(Target[], Msg[]) { if (streq(Msg,"x")) { return; } speakto(Target,Msg); } stock SpeakOther(Target[], Msg[]) { if (streq(Msg,"x")) { return; } new userid = 0; new wonid=0; new team=0; new dead=0; new AuthID[MAX_AUTHID_LENGTH]; new username[200]; new i=0; new x = 0; x = maxplayercount(); for(i=1; i<=x; i=i+1) { if(playerinfo(i, username, 200, userid, wonid,team,dead,AuthID)==1) { if (ishuman(AuthID) && (streq(Target,username)==0)) { speakto(username, Msg); } } } } stock SpeakAll(Msg[]) { new x[1]; x[0]=0; SpeakOther(x,Msg); }