There really is no correlation between filesize and "lag", which comes more from design. To decrease the dll size and get a slight performance (execution speed) increase, build your plugins on Release mode instead of Debug.
Oh sorry, that needs to be p->team. You should put the freq check/setfreq inside one of these blocks: http://wiki.minegoboom.com/index.php/MERVB...through_players
Donk, yours breaks if you supply a pixel number that isn't the boundary of a tile. Do you really need a completely new program just to multiply and divide by 16 though?
Something like this ought to do the trick if (c->check("stopball"))
{
//using the same variable as before is an easy way to reset it
i = 1;
//for each player, do this:
{
if(freq >= 100)
sendPrivate(p, "*setfreq " + String(i ^= 1);
}
}