SA-MP Forums Archive
Mobile Phone System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mobile Phone System (/showthread.php?tid=151484)



Mobile Phone System - jameskmonger - 30.05.2010

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.


Re: Mobile Phone System - azzerking - 30.05.2010

Explain Better!


Re: Mobile Phone System - coole210 - 30.05.2010

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;
}