Help fixing locker command
#1

I am making a custom faction and I want to make lockers for it , my faction is called LSED and I want it to have same locker items as LSPD. I already have LSPD lockers and all other factions because it came with the script i got, but how would I make a new locker for the new custom faction?
Код:
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;
}
Thats the lockers for lspd
Reply
#2

Change the name of the dialog, change equipment, change pMember and pLeader and change the XYZ of the lockers.
Reply
#3

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
Change the name of the dialog, change equipment, change pMember and pLeader and change the XYZ of the lockers.
I'm not exactly sure what Dialog you mean to be changed. And they is so many xyz's, which one do I change?
Reply
#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
#5

Rep to ya both
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)