There are multiple tutorials you can find in the scripting-tutorials sub forum and on the SA:MP Wiki. There are also released scripts you could use, or simply use the search function and look at how others who had the same question as you resolved their problem. If you're having problems finding things with VB search (as I must agree, it does suck), use ******: