CMD:locker(playerid, params[]) { if(PlayerInfo[playerid][pDuty] == 0) SendClientMessageEx(playerid, COLOR_WHITE, " you need on Duty for do that!"); { if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pDuty] == 1) { if(IsPlayerInRangeOfPoint(playerid, 4.0, 293.5988, 188.5015, 1007.1719+0.6) || IsPlayerInRangeOfPoint(playerid, 3.0, 321.43, 303.96, 999.14) && PlayerInfo[playerid][pVW] == 2112 || IsPlayerInRangeOfPoint(playerid, 5.0, -2043.527832, -189.208435, 985.183105) || IsPlayerInRangeOfPoint(playerid,3,264.29, 109.84, 1004.62) && PlayerInfo[playerid][pVW] == 1818 || IsPlayerInRangeOfPoint(playerid, 4, -1625.9365,719.1707,19995.8594) || IsPlayerInRangeOfPoint(playerid, 5.0, 1112.7, -2055.8, 1409.7)) { ShowPlayerDialog(playerid, DIALOG_SFPD, DIALOG_STYLE_LIST, "SFPD: Lockers", "Toggle Duty\nEquipment\nClothing Selection\nClear Suspect", "Proceed", "Cancel"); } else { SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your SFPD lockers."); } } } return 1; } |
CMD:locker(playerid, params[])
{
if(PlayerInfo[playerid][pDuty] == 0) return SendClientMessageEx(playerid,COLOR_WHITE, "You can't use the locker when off duty.");
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pDuty] == 1)
if(IsPlayerInRangeOfPoint(playerid, 4.0, 293.5988, 188.5015, 1007.1719+0.6) || IsPlayerInRangeOfPoint(playerid, 3.0, 321.43, 303.96, 999.14) && PlayerInfo[playerid][pVW] == 2112 || IsPlayerInRangeOfPoint(playerid, 5.0, -2043.527832, -189.208435, 985.183105) || IsPlayerInRangeOfPoint(playerid,3,264.29, 109.84, 1004.62) && PlayerInfo[playerid][pVW] == 1818 || IsPlayerInRangeOfPoint(playerid, 4, -1625.9365,719.1707,19995.8594) || IsPlayerInRangeOfPoint(playerid, 5.0, 1112.7, -2055.8, 1409.7))
{
ShowPlayerDialog(playerid, DIALOG_SFPD, DIALOG_STYLE_LIST, "SFPD: Lockers", "Toggle Duty\nEquipment\nClothing Selection\nClear Suspect", "Proceed", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your SFPD lockers.");
}
return 1;
}
CMD:locker(playerid, params[])
{
if(PlayerInfo[playerid][pDuty] == 0) return SendClientMessageEx(playerid,COLOR_WHITE, "You can't use the locker when off duty.");
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pDuty] == 1)
if(IsPlayerInRangeOfPoint(playerid, 4.0, 293.5988, 188.5015, 1007.1719+0.6) || IsPlayerInRangeOfPoint(playerid, 3.0, 321.43, 303.96, 999.14) && PlayerInfo[playerid][pVW] == 2112 || IsPlayerInRangeOfPoint(playerid, 5.0, -2043.527832, -189.208435, 985.183105) || IsPlayerInRangeOfPoint(playerid,3,264.29, 109.84, 1004.62) && PlayerInfo[playerid][pVW] == 1818 || IsPlayerInRangeOfPoint(playerid, 4, -1625.9365,719.1707,19995.8594) || IsPlayerInRangeOfPoint(playerid, 5.0, 1112.7, -2055.8, 1409.7))
{
ShowPlayerDialog(playerid, DIALOG_SFPD, DIALOG_STYLE_LIST, "SFPD: Lockers", "Toggle Duty\nEquipment\nClothing Selection\nClear Suspect", "Proceed", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your SFPD lockers.");
}
return 1;
}
Hm, this may work. If not, respond back with the errors.
pawn Код:
|