10.11.2017, 14:57
(
Последний раз редактировалось reddoxx; 10.11.2017 в 15:35.
)
i want help with this locker command
when i compile this command, i can't use, i got an error message in game
when i remove this line
, i use everywhere the command.
like, the position is in the lspd hq, and i can use the command in my house.
Код:
COMMAND:locker(playerid, params[]) { if(PlayerInfo[playerid][pFaction] != 2) return SCM(playerid, COLOR_LIGHTRED, "Nem vagy rendvйdelmi szerv tagja."); if(IsPlayerInRangeOfPoint(playerid, 6.0, 2074.8101,-1719.7982,13.5469,195.8301) || PlayerInfo[playerid][pFaction] == 2) { ShowPlayerDialog(playerid, DIALOG_LOCKER, DIALOG_STYLE_LIST, "LSPD", "Golyубllу mellйny\nGumibot\nPaprikaspray\nDesert Eagle\nShotgun\nMP5\nM4\nSniper\nTazer\nRuhбzat", "Vбlaszt", "Bezбr"); } if(IsPlayerInRangeOfPoint(playerid, 6.0, 2074.8101,-1719.7982,13.5469,195.8301) || PlayerInfo[playerid][pFaction] == 6) { ShowPlayerDialog(playerid, DIALOG_SDLOCKER, DIALOG_STYLE_LIST, "SASD", "Golyубllу mellйny\nGumibot\nPaprikaspray\nDesert Eagle\nShotgun\nMP5\nM4\nSniper\nTazer\nRuhбzat", "Vбlaszt", "Bezбr"); } else return SCM(playerid, COLOR_LIGHTRED, "Nem vagy a szekrйnyek kцzelйben!"); return 1; }
Код:
"if(PlayerInfo[playerid][pFaction] != 2) return SCM(playerid, COLOR_LIGHTRED, "Nem vagy rendvйdelmi szerv tagja.");"
Код:
"if(PlayerInfo[playerid][pFaction] != 2) return SCM(playerid, COLOR_LIGHTRED, "Nem vagy rendvйdelmi szerv tagja.");"
like, the position is in the lspd hq, and i can use the command in my house.