Help fixing locker command
#4

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;
}
Looks like you are new to scripting. I would recommend not to learn by editing scripts. This will confuse you more.
Reply


Messages In This Thread
Help fixing locker command - by wertboi333 - 17.05.2013, 17:51
Re: Help fixing locker command - by dannyk0ed - 17.05.2013, 17:58
Re: Help fixing locker command - by wertboi333 - 17.05.2013, 18:01
Re: Help fixing locker command - by Faisal_khan - 17.05.2013, 18:09
Re: Help fixing locker command - by wertboi333 - 17.05.2013, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)