Game Object Script "OnDestroyed" ?

Ive been struggling to simply send the player a message when an gameobject is destroyed by vehicle

class gates : public GameObjectScript
{
public:
gates() : GameObjectScript(“gates”) {}
void OnDestroyed(GameObject* go, Player* player) OVERRIDE
{
ChatHandler(player->GetSession()).PSendSysMessage(“You Have Destroyed an Object”);

};

};
Compiles but never has the message shown up! Any tips ?