pawn Код:
if(dialogid == 3207)
{
if(response)
{
new zone[MAX_ZONE_NAME];
new Float:x, Float:y, Float:z;
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
if(listitem == 0)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Repair");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 1)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Refuel");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 2)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Tow");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
}
else
{
DeletePVar(playerid, "ChoosingFix");
return 0;
}
}
The problem is when i /service rr the OnDialogresponse doesn't Show to the Rapid Faction
I'm basically trying to find out what's spoofing. The command itself, the dialog.
SPOOFING is not my problem my problem is when the player cmd /service rr, the Dialog not showing to the faction that should have the REPORT