Mobile Phone System
#1

How would I go about making it?
I know how to make it so that it lets you phone a number (use a for loop, see which player has that number, initiate the call) but I do not know how to make it so that if you talk, they get the message as well.
Reply
#2

Explain Better!
Reply
#3

Just do this in onplayertext:

Код:
if(HasCalledSomeone[playerid] == 1)
{
new string[256];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"%s says (on phone): %s",pname,text);
SendClientMessage(otherguysid,color,string);
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)