PHP Code:
new args[1]
public sh_client_spawn(id)
{
//first you check if the guy has the hero or not. If you do not do this, every person will get the weapon
args[0] = id
set_task(2, "give_weapon", 0, args, 1, "a", 1)
}
give_weapon(args)
{
sh_give_weapon(args, CSW_M4A1)
}
I believe this is how you use the set_task, and moves the ID along with it. I have never really used set_task so much, and I actually forgot how to use it a bit.
If anyone sees an error in this, please correct it.
__________________