View Single Post
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 06-18-2010 , 14:37   Re: superhero in gun restricted map
Reply With Quote #9

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"0args1"a"1)
}

give_weapon(args)
{
    
sh_give_weapon(argsCSW_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.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle