Raised This Month: $ Target: $400
 0% 

Help with random bool:[id]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dstopgunner
Senior Member
Join Date: Oct 2007
Old 05-23-2009 , 21:50   Help with random bool:[id]
Reply With Quote #1

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

dstopgunner is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode