01.11.2013, 10:31
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
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...