15.09.2017, 11:43
Quote:
Код:
It was not working IG, when FD it would open the PD locker and send the "you are not a firefighter" line etc. CMD:locker(playerid, params[]) { if((PlayerInfo[playerid][pFaction] != 2) && (PlayerInfo[playerid][pFaction] != 3)) return SCM(playerid, COLOR_LIGHTRED, "You're not a Firefighter or police officer."); if(!(IsPlayerInRangeOfPoint(playerid, 6.0, -2655.7263, 2242.8054, 15.2350)) && !(IsPlayerInRangeOfPoint(playerid, 6.0, -2655.7263, 2242.8054, 15.2350))) return SCM(playerid, COLOR_LIGHTRED, "You're not by the lockers."); if((IsPlayerInRangeOfPoint(playerid, 6.0, -2655.7263, 2242.8054, 15.2350)) && (PlayerInfo[playerid][pFaction] == 2)) ShowPlayerDialog(playerid, DIALOG_SDLOCKER, DIALOG_STYLE_LIST, "PD locker", "Armour\nNightstick\nPepper-Spray\nDeagle\nShotgun\nMP5\nM4\nUniform", "Choose", "Cancel"); else if((IsPlayerInRangeOfPoint(playerid, 6.0, -2655.7263, 2242.8054, 15.2350)) && (PlayerInfo[playerid][pFaction] == 3)) ShowPlayerDialog(playerid, DIALOG_FDLOCKER, DIALOG_STYLE_LIST, "FD locker", "Armour\nFirst Aid\nShovel\nChainsaw\nUniform", "Choose", "Cancel"); return 1; } |