Dude, you really need to start making the effort to write plugins on your own before asking for help in the Scripting forum...
Oh, and you should refer to the API before you start asking all these basic questions that you will be able to answer for yourself by navigating through the API...
https://sm.alliedmods.net/new-api/
__________________