12.10.2010, 17:13
pawn Код:
if(!strcmp(cmdtext, "/lspdup", true)) // elevator up
{
if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
{
MoveObject(lspde1, 1571.968628, -1636.526367, 28.596808, 269.7592, 4.2972, 274.0564);
MoveObject(lspde2, 1572.700073, -1636.526978, 29.371974, 179.5180, 0.0000, 269.7592);
MoveObject(lspde3, 1570.435547, -1636.531982, 28.549574, 90.2408, 0.0000, 269.7592);
MoveObject(lspde4, 1569.718628, -1636.520386, 29.370650, 179.5180, 0.8594, 268.8998);
MoveObject(lspde5, 1570.494263, -1636.041260, 28.123169, 179.5180, 90.2408, 180.3774);
MoveObject(lspde6, 1571.930420, -1637.144653, 29.187997, 180.3774, 89.3814, 178.6585);
MoveObject(lspde7, 1570.491455, -1636.524048, 30.903868, 90.9960, 358.2811, 271.4781);
MoveObject(lspde8, 1571.941284, -1636.530884, 30.945877, 270.6186, 3.4377, 273.1970);
MoveObject(lspde9, 1571.919067, -1637.158813, 30.324759, 179.5180, 90.2408, 178.6585);
MoveObject(lspde10, 1570.507324, -1636.043945, 30.298540, 179.5180, 90.2408, 180.3774);
MoveObject(lspde11, 1569.740479, -1636.516479, 30.158154, 179.5180, 0.8594, 268.8998);
MoveObject(lspde12, 1572.697510, -1636.494873, 30.191472, 179.5180, 0.0000, 269.7592);
SendClientMessage(playerid, COLOR_BLUE,"The elevator is going up, Please Wait!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and puts a key.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
}
return 1;
}