CMD:pduty(playerid,params[]) {
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
new string[64];
if(IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10)
if(IsPlayerInRangeOfPoint(playerid, 5, 1708.702026,-1669.956909,27.195312) && GetPlayerInterior(playerid) == 18) { // I know that this is wrong but how do I make it work on two ranges?
format(string, sizeof(string), "%s Menu", groupVariables[playerVariables[playerid][pGroup]][gGroupName]);
ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_LIST, string, "Equipment\nRelease Suspect\nClothing\nClear Suspect", "Select", "Cancel");
}
}
return 1;
}
CMD:pduty(playerid,params[])
{
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0)
{
new string[64];
if(IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1708.702026,-1669.956909,27.195312) && GetPlayerInterior(playerid) == 18)
{
format(string, sizeof(string), "%s Menu", groupVariables[playerVariables[playerid][pGroup]][gGroupName]);
ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_LIST, string, "Equipment\nRelease Suspect\nClothing\nClear Suspect", "Select", "Cancel");
}
}
}
return 1;
}
CMD:pduty(playerid,params[])
{
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0)
{
new string[64];
if(IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10)
{
format(string, sizeof(string), "%s Menu", groupVariables[playerVariables[playerid][pGroup]][gGroupName]);
ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_LIST, string, "Equipment\nRelease Suspect\nClothing\nClear Suspect", "Select", "Cancel");
}
if(IsPlayerInRangeOfPoint(playerid, 5, 1708.702026,-1669.956909,27.195312) && GetPlayerInterior(playerid) == 18)
{
format(string, sizeof(string), "%s Menu", groupVariables[playerVariables[playerid][pGroup]][gGroupName]);
ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_LIST, string, "Equipment\nRelease Suspect\nClothing\nClear Suspect", "Select", "Cancel");
}
}
return 1;
}
CMD:pduty(playerid,params[]) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) { new string[64]; if(IsPlayerInRangeOfPoint(playerid, 5, 1708.702026,-1669.956909,27.195312) && GetPlayerInterior(playerid) == 18 || IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10) { // I know that this is wrong but how do I make it work on two ranges? format(string, sizeof(string), "%s Menu", groupVariables[playerVariables[playerid][pGroup]][gGroupName]); ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_LIST, string, "Equipment\nRelease Suspect\nClothing\nClear Suspect", "Select", "Cancel"); } } return 1; }
Код:
CMD:pduty(playerid,params[]) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) { new string[64]; if(IsPlayerInRangeOfPoint(playerid, 5, 1708.702026,-1669.956909,27.195312) && GetPlayerInterior(playerid) == 18 || IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10) { // I know that this is wrong but how do I make it work on two ranges? format(string, sizeof(string), "%s Menu", groupVariables[playerVariables[playerid][pGroup]][gGroupName]); ShowPlayerDialog(playerid, DIALOG_LSPD, DIALOG_STYLE_LIST, string, "Equipment\nRelease Suspect\nClothing\nClear Suspect", "Select", "Cancel"); } } return 1; } |
EDIT: ^ Pretty sure this won't work. Reason: He would have to be at to 2 points at the same time. o_O
pawn Код:
|