 |
|
New Member
|

10-08-2006
, 20:36
Re: Need help with making plugins
|
#4
|
Quote:
Originally Posted by stupok69
There is plenty of documentation to get a new user started. I was myself a new user only 1 short year ago.
|
exactly my point, there is too much documentation for someone to learn without Heaps of effort (at least it took a long time for me to find the information needed). what i am wanting to do is for someone to write/help me write a tutorial like this(note: i barely know how to do any scripting myself so thats why i at least need someone to help me with what i'm writing):
Basic Needs Of A Script:
#include <*****> = This is where you put the modules that you are going to use in your script, the modules are the things that contain all the different functions of your script.
the main one being amxmodx. 1.
public plugin_init(){ = this is where you register your plugins information to amxmodx.
register_plugin("1","2","3") 1=script name,2=vertion,3=author, note: leave the " 's in
register_concmd("4","5(do_this)",6,"7") 4=command typed in console,5=part of plugin
console command refers to(i just called it do_this so i could show u what it means further on in this tutorial), 6=admin level?(i dont know exactly), 7= what plugin does,
} = "{" and "}" are the things that contain a part of a script, if you place these in the wrong position or leave one extra in or leave one out then your plugin will not work
public do_this() { = this is where you put what happens when someone types what corrosponds to 4 further up in this script
1.If you want to look at the different functions you can have in youre script, then go into your amxmodx folder, go to scripting and look in the include folder, because there will be things that can be opened with notepad that contain all the functions.
this is what i mean, now im going to try to learn scripting the hard way, but if anyone wants to add on/suggest stuff for that then im perfectly happy.
Last edited by Trebork2005; 10-09-2006 at 19:35.
|
|
|
|