AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   random numbers? (https://forums.alliedmods.net/showthread.php?t=12526)

Bone 04-17-2005 13:03

random numbers?
 
I need to know how to make random numbers like

bob = randomnumber

i need the random number to be between 1 and 20, can someone PLEASE help

teame06 04-17-2005 13:05

bob = random_num(0, 20)

v3x 04-17-2005 13:22

That won't work! :P

Code:
new bob = random_num(0, 20)

Bone 04-17-2005 13:28

yeah v3x i knew i had put new i got it working perfect, now my plugin has lockpicking w00t.. to bad ava wont let em release it to public :-(

thanks tons again! v3x and you to teame06

XxAvalanchexX 04-17-2005 19:50

I already have a lockpick plugin, Bone. ;-)

Bone 04-18-2005 12:23

yeah, i know but i made mine like this

you buy lockpicks from stores
you increase lock picking skills dertimned by sucessfull lockpickings
you can break your lock pick


ill just continue using it on my server its fine, i dont want to start anything as it is your plugin i added onto so final decision is up to you ;-)

I am also adding in another feature ill tell you about later :-P

BioHazardousWaste 04-18-2005 15:32

sorry guys, i'm confused as hell... lockpick, means you need a locked door right? I've never seen a locked door in cs (or dod). um.. what's going on? lol custom maps or what?

XunTric 04-18-2005 15:44

Quote:

Originally Posted by BioHazardousWaste
sorry guys, i'm confused as hell... lockpick, means you need a locked door right? I've never seen a locked door in cs (or dod). um.. what's going on? lol custom maps or what?

The Specialists...


All times are GMT -4. The time now is 09:54.

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