Phone System
#1

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
Reply
#2

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..
Reply
#3

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?
Reply
#4

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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)