911 message
#1

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.
Reply
#2

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);
Reply
#3

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.
Reply
#4

bump
Reply
#5

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
Reply
#6

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.
Reply
#7

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)