17.07.2013, 03:55
Ok ! im so sorry ![Cheesy](images/smilies/biggrin.png)
try!
![Cheesy](images/smilies/biggrin.png)
try!
pawn Код:
//===================================================dialogid's==========================================
if(dialogid == DIALOG_PRITVOROPENCELL)
{
new sendername[MAX_PLAYER_NAME], string[256];
if(response == 1)
{
switch (listitem)
{
case 0:
{
MoveDynamicObject(lspdcell1, 1491.50000000,-1595.59997559,30145.50000000,2.700000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* You opened cell-1!");
}
case 1:
{
MoveDynamicObject(lspdcell2, 1491.50000000,-1591.59997559,30145.50000000,2.700000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* You opened cell-2!!");
}
case 2:
{
MoveDynamicObject(lspdcell2, 1491.50000000,-1591.59997559,30145.50000000,2.700000);
MoveDynamicObject(lspdcell1, 1491.50000000,-1595.59997559,30145.50000000,2.700000);
SendClientMessage(playerid, COLOR_YELLOW, "You have opened all the cells.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s took the remote and opened all the cells.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
}
if(dialogid == DIALOG_PRITVORCLOSECELL)
{
new sendername[MAX_PLAYER_NAME], string[256];
if(response == 1)
{
switch (listitem)
{
case 0:
{
MoveDynamicObject(lspdcell1, 1491.59997559,-1593.90002441,30145.50000000,3.000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* You closed the cell-1!");
}
case 1:
{
MoveDynamicObject(lspdcell2, 1491.50000000,-1589.90002441,30145.50000000,3.000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* You closed the cell-2!");
}
case 2:
{
MoveDynamicObject(lspdcell1, 1491.59997559,-1593.90002441,30145.50000000,3.000000);
MoveDynamicObject(lspdcell2, 1491.50000000,-1589.90002441,30145.50000000,3.000000);
SendClientMessage(playerid, COLOR_YELLOW, "You have closed all the cells.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s jtook the remote and shut all cells.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
}
//===========================================================end dialogid's=========================================
return 0;
}