17.05.2013, 18:09
pawn Код:
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;
}