#define ClearChat(%1) for(new cc=0; cc < 100; cc++) SendClientMessage(%1, -1, " ");
public OnPlayerConnect(playerid){ ClearChat(playerid); //continue your stuff. return 1;}