03.04.2016, 08:17
Hello, I have a camera system, but unfortunately when I "in camera" can not use "camdialog" does anyone know how I can do in my camera could use the command / camdialog?
Here, when I can not use the camera /camdialog, because I'm condition prohibits.
Код:
command(camdialog, playerid, params[]) { if (IsPlayerInRangeOfPoint(playerid, 3.0, 1480.8682, -1770.2883, 18.7958)) { ShowPlayerDialog(playerid, DIALOG_CAMERA, DIALOG_STYLE_TABLIST_HEADERS, "System", "Lokace\tID\n\ Goverment\tCAM: (ID:1)\n\ Loca2\tCAM: (ID:1)\n\ Loca3\tCAM: (ID:1)\n\ Loca4\tCAM: (ID:1)\n\ Loca5\tCAM: (ID:1)\n\ Loca6\tCAM: (ID:1)\n\ Lokace7\tCAM: (ID:1)\n\ Close System", "Select", "Cancel"); } else { SendClientMessage(playerid, -1, "[ CAM-DIALOG ] You're close enough /camdialog !"); } return 1; }
Код:
if(dialogid == DIALOG_CAMERA) { if(response == 1) { switch(listitem) { case 0: { new Objeto = CreateObject(19178, 1513.24, -1737.71, 18.67, 0.0, 0.0, 0.0); AttachCameraToObject(playerid, Objeto); SetPlayerPos(playerid, 1513.24, -1737.71, 18.67); TextDrawShowForPlayer(playerid,TVCAM_CornerTopLeft); TextDrawShowForPlayer(playerid,TVCAM_CornerTopRight); TextDrawShowForPlayer(playerid,TVCAM_CornerBottomLeft); TextDrawShowForPlayer(playerid,TVCAM_CornerBottomRight); SetPlayerVirtualWorld(playerid, 1); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, -1, "Budova GOV"); } case 1: { new Objeto = CreateObject(19178, 1524.10, -1605.94, 18.72, 0.0, 0.0, 0.0); AttachCameraToObject(playerid, Objeto); SetPlayerPos(playerid, 1513.24, -1737.71, 18.67); TextDrawShowForPlayer(playerid,TVCAM_CornerTopLeft); TextDrawShowForPlayer(playerid,TVCAM_CornerTopRight); TextDrawShowForPlayer(playerid,TVCAM_CornerBottomLeft); TextDrawShowForPlayer(playerid,TVCAM_CornerBottomRight); } case 2: { ...........etc