Help!SendLSEMSMessage -
Airblog - 26.11.2014
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
Re: Help!SendLSEMSMessage -
Alex Magaсa - 26.11.2014
- 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
Re: Help!SendLSEMSMessage -
AzaMx - 26.11.2014
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.
Re: Help!SendLSEMSMessage -
AIped - 26.11.2014
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.
Re: Help!SendLSEMSMessage -
Airblog - 26.11.2014
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"
Re: Help!SendLSEMSMessage -
Jonesy96 - 26.11.2014
Quote:
Originally Posted by Airblog
i put SendLSEMSMessage but have error: undefined symbol "SendLSEMSMessage"
|
You have to actually create the function 'SendLSEMSMessage'...
Re: Help!SendLSEMSMessage -
Airblog - 26.11.2014
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
Re: Help!SendLSEMSMessage -
AzaMx - 26.11.2014
Then create the define and a function for it.
Re: Help!SendLSEMSMessage -
AnthonyTimmers - 26.11.2014
Control F for SendCopMessage.
Re: Help!SendLSEMSMessage -
Airblog - 27.11.2014
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 :\