Help!SendLSEMSMessage
#1

Hi All!
i want a SendLSEMSMessage for my game mode that every player has called 115 player connect to LSEMS faction for request help
i have call 911 in my game mode that its for cops SendCopsMessage
(SendFBIMessage & SendAdminMessage & ...) this are available in my game mod
but i just want SendLSEMSMessage for Los Santos emergency Service faction.
if its need i can put codes of /call 911 & /call 115


Plz Help for +rep
Reply
#2

- I'm kind confused, but i was thinking why you dont try make a message like SendCopMessage just to replace Cop with EMS.
or
- Find the currently faction id (example: EMS)
If player is in EMS faction "send client message to all EMS members" someone is calling for help. I hope you understand what i mean. Cause i didn't understand what do you mean :P
Reply
#3

Are you mean like this? This is from my gamemode functions..

If you mean like this, then just change it from
pawn Код:
format(string, sizeof(string), " Caller: %s             Number: %d", sender, PlayerInfo[playerid][phonenumber]);
        SendCopsMessage(playerid, string, COLOR_WHITE);
to

pawn Код:
format(string, sizeof(string), " Caller: %s             Number: %d", sender, PlayerInfo[playerid][phonenumber]);
        SendLSEMSMessage(playerid, string, COLOR_WHITE);
Btw, i don't understand at all, so you have to explains in better ways.
Reply
#4

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
- I'm kind confused, but i was thinking why you dont try make a message like SendCopMessage just to replace Cop with EMS.
or
- Find the currently faction id (example: EMS)
If player is in EMS faction "send client message to all EMS members" someone is calling for help. I hope you understand what i mean. Cause i didn't understand what do you mean :P
Exactly!

In real life it works this way..you call EMS
then it asks you what you need (cops,ambulance or fire)
then where it is and more info about you and the situation.
Reply
#5

Quote:
Originally Posted by AzaMx
Посмотреть сообщение
Are you mean like this? This is from my gamemode functions..

If you mean like this, then just change it from
pawn Код:
format(string, sizeof(string), " Caller: %s             Number: %d", sender, PlayerInfo[playerid][phonenumber]);
        SendCopsMessage(playerid, string, COLOR_WHITE);
to

pawn Код:
format(string, sizeof(string), " Caller: %s             Number: %d", sender, PlayerInfo[playerid][phonenumber]);
        SendLSEMSMessage(playerid, string, COLOR_WHITE);
Btw, i don't understand at all, so you have to explains in better ways.
i put SendLSEMSMessage but have error: undefined symbol "SendLSEMSMessage"
Reply
#6

Quote:
Originally Posted by Airblog
Посмотреть сообщение
i put SendLSEMSMessage but have error: undefined symbol "SendLSEMSMessage"
You have to actually create the function 'SendLSEMSMessage'...
Reply
#7

Quote:
Originally Posted by Jonesy96
Посмотреть сообщение
You have to actually create the function 'SendLSEMSMessage'...
but SendCopMessage is not defined too
and it has not any errors
Reply
#8

Then create the define and a function for it.
Reply
#9

Control F for SendCopMessage.
Reply
#10

Quote:
Originally Posted by AnthonyTimmers
Посмотреть сообщение
Control F for SendCopMessage.
yes i did it but i didn't find define of SendCopMessage it is something like SendClientMessage and i think it is in inclue :\
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)