Quote:
Originally Posted by iFiras
pawn Код:
format(string, sizeof(string), "____________ TAXI DISPATCH PANEL _____________", PlayerInfo[playerid][pPnumber]); SendJobMessage(17, COLOR_YELLOW, string); format(string, sizeof(string), "REQUESTING: {FFFFFF}Taxi Services"); SendJobMessage(17, COLOR_YELLOW, string); format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone); SendJobMessage(17, COLOR_YELLOW, string); format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pPnumber]); SendJobMessage(17, COLOR_YELLOW, string); format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pPnumber]); SendJobMessage(17, COLOR_YELLOW, string); format(string, sizeof(string), "To accept this service request; (type /ataxi %d)", playerid); SendJobMessage(17, COLOR_WHITE, string);
What's that 17?
|
that's the message which should be sent to the taxi drivers instead of
pawn Код:
format(string, sizeof(string), "** %s is in need of a taxi driver - click Accept to accept the call.", GetPlayerNameEx(playerid));
foreach(Player, i)
{
if(TransportDuty[i] > 0 && (PlayerInfo[i][pJob] == 17 || PlayerInfo[i][pJob2] == 17 || PlayerInfo[i][pTaxiLicense] == 1 ))
{
ShowPlayerDialog(i, DIALOG_ACCEPTDIALOG, DIALOG_STYLE_MSGBOX, "{FFFFFF}Taxi Call", string, "Accept", "Reject");
PlayerInfo[i][pAcceptID] =12;
}
}
and the "17" thing is the taxi job's id
the player id is defined as [playerid]