SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 30/05/2010, 05:10 PM   #1
jameskmonger
High-roller
 
jameskmonger's Avatar
 
Join Date: Nov 2009
Location: London, England
Posts: 1,159
Reputation: 73
Default Mobile Phone System

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.
jameskmonger is offline  
Old 30/05/2010, 08:00 PM   #2
azzerking
Gangsta
 
azzerking's Avatar
 
Join Date: Dec 2009
Location: England, Leicestershire
Posts: 492
Reputation: 70
Default Re: Mobile Phone System

Explain Better!
__________________


Web Skill: PHP, HTML, CSS, JS, RUBY, NODE.js.

Programing Skill: Objective C, C#, C++, D#, Python, Java, MySQL.

OS Skill: Windows (95 - 10), Ubuntu/Debian, Raspbian, Kali, Arch, Unix, Mac (E-MACs - Current)

Scripting Skill: LUA, Pawn, C38*
azzerking is offline  
Old 30/05/2010, 09:05 PM   #3
coole210
High-roller
 
Join Date: Jul 2008
Location: Canada
Posts: 1,016
Reputation: 84
Default Re: Mobile Phone System

Just do this in onplayertext:

Code:
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;
}
coole210 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS]Phone System v1 _Tw1xEr_ Filterscripts 15 12/06/2011 09:17 PM
Help with my phone system Keeboo13 Help Archive 5 24/04/2010 09:22 PM
Mobile phone and pc (TextDraw) ft941 Screenshots and Videos 18 22/04/2010 11:38 PM
Mobile Phone System Drake_Peck Help Archive 4 13/11/2009 11:28 PM
Mobile Phone Directory UK only Fluxxy Everything and Nothing 2 09/07/2009 09:04 PM


All times are GMT. The time now is 04:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.