Raised This Month: $ Target: $400
 0% 

Help with random bool:[id]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-23-2009 , 22:36   Re: Help with random bool:[id]
Reply With Quote #1

Make sure your spawn hook is post spawn (so it will detect they are alive).
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-23-2009 , 23:18   Re: Help with random bool:[id]
Reply With Quote #2

Once you have checked what Emp` said, you can make this easy code optimization:
PHP Code:
public spawned(id)
{
chainsaw[id] = false
 
if(is_user_alive(id))
{
chainsaw[id] = bool:random(2)
}

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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