CMD:lspd(playerid, params[]) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if (IsPlayerInRangeOfPoint(playerid,3,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid,3,-1616.1294,681.1594,7.1875) || IsPlayerInRangeOfPoint(playerid,3,327.05, 306.81, 999.14) || IsPlayerInRangeOfPoint(playerid,3,264.29, 109.84, 1004.62)) { ShowPlayerDialog(playerid, DUTYMENU, DIALOG_STYLE_LIST, "LSPD Menu","Duty\nEquipment\nSWAT\nUniform\nUndercover\nClear Suspect", "Select", "Cancel"); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your LSPD lockers."); } } return 1; }
Change the name of the dialog, change equipment, change pMember and pLeader and change the XYZ of the lockers.
|
CMD:lsed(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//change pmember and pleader to the LESD member and leader defines
{
if (IsPlayerInRangeOfPoint(playerid,3,X, Y, Z) || IsPlayerInRangeOfPoint(playerid,3,X, Y, Z) || IsPlayerInRangeOfPoint(playerid,3,X, Y, Z) || IsPlayerInRangeOfPoint(playerid,3,X, Y, Z))//here x, y, z will be ur co-ords for the LESD faction lokcer places
{
ShowPlayerDialog(playerid, LESD_DIALOG_ID, DIALOG_STYLE_LIST, "LSPD Menu","Duty\nEquipment\nSWAT\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");//LESD_DIALOG_ID define this or change it
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your LSPD lockers.");
}
}
return 1;
}