TOSHIBA_Televizor |
Дата: Среда, 02.05.2012, 14:35 | Сообщение # 1
|
Боец
Сообщений: 124
Статус: Offline
|
В public OnPlayerCommandText: Code if(strcmp(cmd, "/camera", true) == 0) { if(PlayerToPoint(2,playerid,230.3330,72.9040,1005.0391)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2) { ShowPlayerDialog(playerid,1510,DIALOG_STYLE_LIST,"Камеры видеонаблюдения","Полицейский участок\nМэрия\nБольница\nФБР\nБанк\nСНН\nБар 'Десять зелёных бутылок'\nВокзал","Просмотр"," Выход"); return 1; } else { SendClientMessage(playerid,COLOR_GRAD1," У вас нет доступа к камерам видеонаблюдения "); return 1; } } return 1; } if(strcmp(cmd, "/cameraoff", true) == 0) { SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid, 1); SetPlayerPos(playerid,230.3330,72.9040,1005.0391); SetPlayerInterior(playerid,6); return 1; }
В OnDialogResponse: Code // ======= [ Камеры ] ========= if(dialogid == 1510)//если заменяете тут id в команде тоже не забудьте. { if(listitem == 0)// Мусарня { SetPlayerPos(playerid,1548.1624,-1711.9330,24.5689); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,1552.8424,-1651.0649,26.3802); SetPlayerCameraLookAt(playerid,1539.2563,-1676.5486,12.9310); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 1)// Мэрия { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,1548.1624,-1711.9330,24.5689); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,1488.2271,-1750.2025,28.8099); SetPlayerCameraLookAt(playerid,1482.8837,-1726.7638,13.9893); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 2)// Больница { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,1166.5586,-1312.1243,24.5689); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,1173.0354,-1322.1129,22.9523); SetPlayerCameraLookAt(playerid,1203.3212,-1325.7108,13.3984); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 3)// ФБР { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,1517.3224,-1425.1661,24.5689); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,1491.0154,-1432.7917,33.5849); SetPlayerCameraLookAt(playerid,1520.2252,-1449.5494,16.3539); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 4)// Банк { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,588.5749,-1194.1183,33.4972); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,595.7941,-1207.6226,29.8053); SetPlayerCameraLookAt(playerid,596.3458,-1236.9392,19.7242); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 5)// СНН { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,597.4597,-1375.1956,33.4972); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,607.4288,-1374.0558,30.3565); SetPlayerCameraLookAt(playerid,641.4461,-1360.5675,16.5620); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 6)// Бар { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,2267.1563,-1674.1484,15.7025); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,2264.2283,-1669.4615,19.6185); SetPlayerCameraLookAt(playerid,2298.1091,-1651.9199,15.3937); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } else if(listitem == 7)// Вокзал { TextDrawShowForPlayer(playerid, cam_help); SetPlayerPos(playerid,1750.2472,-1926.7418,24.5689); TogglePlayerControllable(playerid, 0); SetPlayerCameraPos(playerid,1752.4962,-1935.2390,27.8387); SetPlayerCameraLookAt(playerid,1782.1729,-1906.5847,18.0805); SetPlayerInterior(playerid,0); ShowPlayerDialog(playerid,555,DIALOG_STYLE_MSGBOX,"{FFFFFF}Для выхода из режима камеры, напишите /cameraoff, или нажмите пробел",string,"Ок",""); } }
|
|
|
|