Raised This Month: $ Target: $400
 0% 

Random numbers ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 04-26-2007 , 01:35   Re: Random numbers ?
Reply With Quote #9

ok i got that working now...but for some reason i cannot set the ammo defined for the weapon...
I.E.

Code:
    new rnd     rnd = random_num(0,100)       if( rnd <= 5)     {         give_item(id, "weapon_awp")     cs_set_user_bpammo(id, CSW_AWP, 0)     cs_set_weapon_ammo(id, 3)     }   else if( rnd > 5) { set_user_footsteps(id, 0) }

FOR SOME REASON...it give you awp...if number is in range...but gives it to you with 10 bullets and none in the pack.
bwgrubbs1 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 06:35.


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