911 message - 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: 911 message (
/showthread.php?tid=144839)
911 message -
Landon - 29.04.2010
Hi SAMP'ers.
I was editing my 911 system, when I noticed this bug; when you are calling 911, it should give the name and location, but somehow it only gives the location when someone calls 911.
Screen:
Script lines:
pawn Код:
format(string, sizeof(string), "________911 Call________", GetPlayerNameEx(playerid), text);
format(string, sizeof(string), "Name: %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "Incident and Location: %s", text);
SendEMTMessage(COLOR_SPRINGGREEN, string);
I would like to have it:
_____911 Call________
Name: (name)
Incident and Location: (location)
As you can see, now it only shows the Incident and Location, not the name.
Michael.
Re: 911 message -
westre - 29.04.2010
pawn Код:
format(string, sizeof(string), "________911 Call________", GetPlayerNameEx(playerid), text);
SendEMTMessage(COLOR_SPRINGGREEN, string);
format(string, sizeof(string), "Name: %s", GetPlayerNameEx(playerid));
SendEMTMessage(COLOR_SPRINGGREEN, string);
format(string, sizeof(string), "Incident and Location: %s", text);
SendEMTMessage(COLOR_SPRINGGREEN, string);
Re: 911 message -
Landon - 29.04.2010
Fixed!
Althrough I got another question.
Could I also add another line? Like:
Do you require Police or EMS?
- Police
What is your location?
- Persing Square
What is the situation? ------> Could this also be added?
- Man shot down, robbed. ------> Could this also be added?
When PD/EMS receives a 911 call:
____911 call____
Name:
Location:
Situation:
Thanks in advance.
Re: 911 message -
Landon - 29.04.2010
bump
Re: 911 message -
Lajko1 - 29.04.2010
it can be scripted,when he answer for ''location and incident'' than make an question,What do you need Police or EMS'' than you need to make a bit on OnPlayerText... thats all and you can make 1000 of questions in that way
Re: 911 message -
Landon - 29.04.2010
Quote:
Originally Posted by Lajko1
it can be scripted,when he answer for ''location and incident'' than make an question,What do you need Police or EMS'' than you need to make a bit on OnPlayerText... thats all and you can make 1000 of questions in that way
|
Yeah, that's what I want, but I do not know how to script it. Would be cool if you could help me.
Re: 911 message -
Landon - 30.04.2010
bump