Create classname.gml

This script isn't used in the game (yet) but will be useful for plugins.
I found myself needing a script like this many times.

Added this code to the Character's draw event to test: http://puu.sh/cxCli/9c1939b75b.png
if (hp > 0)
{
    draw_set_alpha(1);
    draw_set_halign(fa_center);
    draw_set_color(c_black);
    var classstring;
    classtring = classname(player.class);
    draw_text(x-1,y-31,classtring);
    draw_text(x+1,y-31,classtring);
    draw_text(x-1,y-33,classtring);
    draw_text(x+1,y-33,classtring);
    draw_set_color(c_yellow);
    draw_text(x,y-32,classtring);
    draw_set_color(c_black);
}