well like
PHP Code:
function onCreated()
{
if( foobar )
goto blub;
player.chat = "d";
}
function onPlayerChats()
{
Label blub;
player.chat = "c";
}
and it will go to the script part where the label blub is and continue there, so if foobar is true the player will say c @ onCreated
else he will say d, but when foobar is true he wont say d at any time