Thanks for the tip, Mr_Sonny.
However i´m facing some issues when testing this code(including the examples from the badges). It´s looks like the event player_chat never occurs when i type t.
I have changed player_chat to player_move and i noticed the main function calling for my others functions, however i´m having trouble with the player_chat event.
I can´t tell why, but the event player_chat just never occurs, here my code so far...
Maybe i´m missing something, i don´t know... but i would love some advice.