also read some of hte other topics in this forum and it will help you, even just looking at source codes and trying things out will help you gain some knowledge.
something you could learn real fast is how to log actions in AMXX
read the topic "log_to_file to log_amx" it explains that just fine.