Unity3d how to create custom game modes

Hello, i have been wondering how can you allow players to create their own scripted game modes, using native functions from the game and allowing them to create new functions, like PAWN does.

check out this hope it helps How can you store a reference to something that you don't know the type of yet? - Questions & Answers - Unity Discussions