Yes, here if you can read and understand this you can script, use the search plugin for ideas and such, at the bottom of some plugin theres something that says:
Get Source. This, downloads the code for the plugin you have selected; go to AMXX-Studio and open the file, this will give you the code to that certain plugin. Theres characters like:
<,
;,
" ",
(id) in plugins, You can't rip codes either you'll be banned. If you can read this and understand, you can call yourself a Starting Scripter:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Regain Armor"
#define VERSION "0.5"
#define AUTHOR "FormulaZero"
new p_ArmorBack
new p_HealthBack
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /armor","armorback",_,"Gives the client their armor back.")
register_clcmd("say /health","healthback",_,"Gives the client their health back.")
register_event("Damage","armorback","be")
register_event("Damage","healthback","be")
new Cvar[] = "amx_armorback"
register_cvar(Cvar,"50")
p_ArmorBack = get_cvar_pointer(Cvar)
}
public armorback(id)
{
if(!is_user_alive(id))
return
if(get_user_armor(id) < 1)
set_user_armor(id,clamp(get_pcvar_num(p_ArmorBack),0,100))
}
SOURCE: By me.