So, you need to register the command which you want to deal with:
PHP Code:
register_clcmd("slot1", "slot_handle") // use clcmd if you want to be a client console command
register_concmd("slot1", "slot_handle") // use concmd if you want the command to be executed from client console or server console.
When you registered the command, you need to create a public handle where to put the code in:
PHP Code:
public slot_handle( )
{
//inside the braces you put your code which you want to be executed when server/client type the command.
}
Good luck!
__________________