Random Function
#1

Hello Samp'ers, I have a question:

Is it possible to use "random" function to pick a random public? Example: Player goes to a point, he uses /getgift command and he can receive one of those: a car(i have my own dealership, no problem with this), clear warns, clear faction punish or a random amount of money.

I don't want the whole code, I just want to know if it possible to do like so, if yes, how?
Reply
#2

of course.
you can make a random number being chosen from 1 to 5.
Then have the callback set up if for example number 3 hits a certain callback calls
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
of course.
you can make a random number being chosen from 1 to 5.
Then have the callback set up if for example number 3 hits a certain callback calls
Thanks, I have created what I've wanted.
+ rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)