Im trying to give random people chainsaws to people when they spawned.
Somehow my random num's like not working becuase none of us got a chainsaw. HelpZ?
PHP Code:
public spawned(id)
{
chainsaw[id] = false
if(is_user_alive(id))
{
new rand = random_num(1,2)
switch(rand)
{
case 1: (chainsaw[id] = true)
case 2: (chainsaw[id] = false)
}
}
return PLUGIN_HANDLED
}