This is actually an include file that contains some macros that I
think can drastically improve the clarity and readabillity of AMXX
scripts. Consider the function for a console command:
Code:
public eat_player(id, level, cid) {
...Check permissions...
...Read in args...
...Eat the player...
}
so, I have a function that eats a player.... SO?
And just look at that boilerplate code!
With gunblade.inc you can also use:
Code:
concmd eat_player(...Put # of args here) {
...Eat the player...
}
You can access the arguments with args, args_len == # of args
id, level, and cid are implicitly defined.
Notice that this is much more clear:
Here we have a console command that eats a player and take x args
duh!.
Currently gunblade.inc includes concmd, clcmd, and task.
though I'm still learning amxx so I think clcmd and task need more in them.
Enjoy!