SA-MP Forums Archive
sendJobMessage - 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)
+--- Thread: sendJobMessage (/showthread.php?tid=333086)



sendJobMessage - RaulSTARs - 10.04.2012

Hello , today I changed The Job Car mechanic I did it An Faction , but I have an problem , When I type /duty and somebody /call 555 doesen't appear nothing because he send (SendJobMessage) at iD 7 , and I don't know to do it to send at an Faction and i don't have something like sendFactionMessage... only SendJobMessage

Код:
forward SendJobMessage(job, color, string[]);
forward SendFamilyMessage(family, color, string[]);
forward SendNewFamilyMessage(family, color, string[]);
forward SendIRCMessage(channel, color, string[]);
forward SendTeamMessage(team, color, string[]);
forward SendRadioMessage(member, color, string[]);
forward SendAdminMessage(color, string[]);
forward SendModeratorMessage(color, string[]);
The /call 555 code is

Код:
  			if(phonenumb == 555)
   			{
   			    new mechanicworkers = 0;
			    for(new i=0; i<MAX_PLAYERS; i++)
			    {
			        if(IsPlayerConnected(i))
			        {
			            if(PlayerInfo[i][pLeader] == 15 || PlayerInfo[i][pMember] == 15 && JobDuty[i] == 1)
			            {
			                mechanicworkers++;
			            }
			        }
			    }
   			    if(mechanicworkers < 1)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "   They Picked up the call.");
		            SendClientMessage(playerid, 0xBBE1F2AA, "Men voice Says (cellphone): Sorry we have no mechanics available at the moment.");
		            SendClientMessage(playerid, COLOR_GREY, "   They hang up.");
		            return 1;
		        }
		        GetPlayerName(playerid, sendername, sizeof(sendername));
			    format(string, sizeof(string), "** %s is in need of a Car Mechanic. (use /accept mechanic to accept the call)", sendername);
		    	SendJobMessage(7, COLOR_WHITE, string);
		    	SendClientMessage(playerid, COLOR_GREY, "   They Picked up the call.");
       			SendClientMessage(playerid, 0xBBE1F2AA, "Men voice Says (cellphone): Hello, all mechanics at your area have been informed about your call.");
       			SendClientMessage(playerid, COLOR_GREY, "   They hang up.");
		    	MechanicCall = playerid;
		    	return 1;
   			}
How Can I make to sendClientMessage to the faction with id 15?


Re: sendJobMessage - johannes95 - 10.04.2012

you can do it with forward SendTeamMessage(team, color, string[]); but then with the faction color


Re: sendJobMessage - RaulSTARs - 10.04.2012

But I dont know the Team ID , The Faction have Team id? If they have , how can i know what teamID is?

I know now , i will try, i will come back with an edit


Re: sendJobMessage - johannes95 - 10.04.2012

You can always make SendFactionMessage


Re: sendJobMessage - RaulSTARs - 10.04.2012

I tryed but didn't work.


FIXED! thank you!


Re: sendJobMessage - [EuG]ZeRoGoD - 10.04.2012

Ops nvm u solved it :P


Re: sendJobMessage - RaulSTARs - 10.04.2012

Yea :d

anyway , thanks for helping me +rep