Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
Hello,
I want to know how can I make a system where it creates a random 4 or 5 digit phone number for each person who joins? Thanks
Posts: 166
Threads: 0
Joined: Apr 2008
Reputation:
0
Well you can use this from one of the many rp gm's:
new randphone = 100000 + random(899999);
It will give you 6 random numbers..
Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
Bump okay and when the person does /call [Number] How can I check if the players online have this number or not and then call them?
Posts: 166
Threads: 0
Joined: Apr 2008
Reputation:
0
Well you have to create a system man..you would store randphone into a players file..yea the best thing for you, i guess, is to look over a rp gm to understand how its put together.
Posts: 273
Threads: 58
Joined: Jun 2009
Reputation:
0
Yeah I understand the number making part but okay say I have 3 players on... and someone dials one of their numbers, how do I make the system look for that number and see if its online? I can then do the whole calling part.