OnAddonFrame does not use ServerClient
So don't use clientnums inside it
use
CSHARP Code
ServerSay("^6[^7NOTICE^6]^7 message here",true);
and
CSHARP Code
iPrintLnBold(null, "^6[^7NOTICE^6]^7 message here");
to message all players
(07-04-2012, 10:43)Ich1994 Wrote: [ -> ]or just get all Clients.
Code:
foreach(ServerClient it in GetClients())
{
TellClient(it.ClientNum, "derpherp", true);
}
yes it is that just too tired to think right
Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
namespace derp
{
public class derp : CPlugin
{
int jerp = 0;
public override void OnAddonFrame()
{
jerp++;
if (jerp == timeyouwant*4) /*onserveraddon works every 250 ms that means 4 times every second*/
{
foreach(ServerClient it in GetClients())
{
TellClient(it.ClientNum, "derpherp", true);
}
jerp = 0;
}
}
}
}
in the current addon version, i'd ignore the clients