How to create a simple phone system?
#6

Basically,if player has a phone,he would enter a number in the command (/call [NUMBER]) then the player who has that number would recieve a message he is beeing called,and that he needs to pick up to answer (/answer for example).Then whatever the player who called says it would be transfered to the person who answered.

Basically that's just the idea.
And about the random numbers,just make a random number . For example
Код:
new PhoneNum[MAX_PLAYERS]
new randomNumber = random(RANGE OF NUMBERS);
//When a player gets his phone,set the number value to something:
PhoneNum[playerid]=randomNumber;
//Also loop through players,and check if someone already has that number,to avoid bugs,just in case...
Reply


Messages In This Thread
How to create a simple phone system? - by Spydah - 01.11.2013, 10:02
Re: How to create a simple phone system? - by Tagathron - 01.11.2013, 10:03
Re: How to create a simple phone system? - by Spydah - 01.11.2013, 10:06
Re: How to create a simple phone system? - by Tagathron - 01.11.2013, 10:18
Re: How to create a simple phone system? - by Spydah - 01.11.2013, 10:20
Re: How to create a simple phone system? - by Tagathron - 01.11.2013, 10:31
Re: How to create a simple phone system? - by Spydah - 01.11.2013, 10:37
Re: How to create a simple phone system? - by Spydah - 02.11.2013, 17:50
Re: How to create a simple phone system? - by JohnRazer - 02.11.2013, 22:13
Re: How to create a simple phone system? - by Spydah - 03.11.2013, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)