misha000811
Умник
Открывается дверь, но не закрывается
if(newkeys == 512)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 371.274688,166.608276,1007.402893))
{
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
MoveDynamicObject(DoorCityHall,372.774627,166.608276,1007.402893, 3.5);
timer[29] = SetTimer("DoorcityhallClose", 10000, 0);
SendClientMessage(playerid,0x15AAEAAA,"* Äâåðü Ìýðèè îòêðûòà íà 10 ñåêóíä, ïðîõîäèòå!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, " Ó Âàñ íåò êëþ÷åé îò ýòîé äâåðè !");
}
}
}
DoorCityHall = CreateDynamicObject(1569, 371.274688,166.608276,1007.402893, 0.000000,0.000000,0.000000,-1,-1,-1,200.0);
public DoorcityhallClose()
{
MoveDynamicObject(DoorCityHall,372.774627,166.608276,1007.402893, 2.0);
return 1;
}
Вот код
if(newkeys == 512)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 371.274688,166.608276,1007.402893))
{
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
MoveDynamicObject(DoorCityHall,372.774627,166.608276,1007.402893, 3.5);
timer[29] = SetTimer("DoorcityhallClose", 10000, 0);
SendClientMessage(playerid,0x15AAEAAA,"* Äâåðü Ìýðèè îòêðûòà íà 10 ñåêóíä, ïðîõîäèòå!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, " Ó Âàñ íåò êëþ÷åé îò ýòîé äâåðè !");
}
}
}
DoorCityHall = CreateDynamicObject(1569, 371.274688,166.608276,1007.402893, 0.000000,0.000000,0.000000,-1,-1,-1,200.0);
public DoorcityhallClose()
{
MoveDynamicObject(DoorCityHall,372.774627,166.608276,1007.402893, 2.0);
return 1;
}
Вот код
