View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-05-2019 , 19:36   Re: Return value for PrintToChatAll ?
Reply With Quote #3

...just use the version of PrintToChatAll that exists in the SourceMod API.

Edit: If you really want to know what the code for PrintToChatAll looks like:

PHP Code:
stock void PrintToChatAll(const char[] formatany ...)
{
    
char buffer[254];
    
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i))
        {
            
SetGlobalTransTarget(i);
            
VFormat(buffersizeof(buffer), format2);
            
PrintToChat(i"%s"buffer);
        }
    }

__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-05-2019 at 19:38.
Powerlord is offline