The way you coded it is wrong, you have it all mixed up and added the same thing multiple times. This should be the layout of your code:
Code:
public plugin_init()
{
/// Your registered (plugin, commands, cvars, etc. here)
}
public yourfunction(id)
{
// Your code for your function (command you registered above, cvar, etc. here )
}
That's basicly the simplified layout if your making a simple plugin like that.