Hey man, i'm a nub too, just wrote a healing script last night, so this SHOULD work, but again i'm a nub so forgive me if it doesn't, and please someone correct me if i'm wrong.. anyways, your code:
Code:
public medicheal(id) {
new health = get_user_health(id)
set_user_health(id,health + 50)
canheal = 0;
set_task(30.0, "healagain", id);
return 1;
}
hmm, obviously you've ripped this out of the middle of you code because you are missing variable and stuff. Nice idea btw with the timer, didn't know how that works, but i like it

OK, my code (ps, sorry I learned vb first so I still tend to use vb convieniences, which are a tad different then most):
Code:
//Include files
#include <amxmodx>
#include <fun>
new CanHeal[32]
//Initializing Plugin (main)
public plugin_init()
{
register_plugin("MedicHeal", "1.00", "Steve0")//Register plugin
register_concmd("S_MedicHeal", "MedicHeal") //S_Heal is a console command that calls the MedicHeal function.
for (new i=0; i<32; i++)
CanHeal[i] = 1
}
public MedicHeal(id) //passes in ID of player who called command
{
//vars
new OldHealth, NewHealth
//If player can heal
if(CanHeal[id])
{
//get old health, add 50, set new health
OldHealth = get_user_health(id)
NewHealth = OldHealth + 50
set_user_health(id, NewHealth)
//Make sure user doesn't have over 100 health
if(get_user_health(id) > 100)
set_user_health(id, 100)
//set heal as unusable, set timer to enable heal
CanHeal[id]=0
set_task(30.0, "SpawnHeal", id)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public SpawnHeal(id)
{
CanHeal[id] = 1//set heal as usuable
client_print(id, print_chat, "Healing ability now available!")//Alert user that heal is available
}
Should work as is, compiled fine.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.
-Friedrich Nietzsche