pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == enterh)
{
SetPlayerWeather(playerid, 45);
SetPlayerPos(playerid, 2295.00, -1121.17, 817.82);
return 1;
}
if(pickupid == opene)
{
new string[50];
new movetime = MoveObject(obj, 0, 10, 0, 2.00);
new movetime2 = MoveObject(obj2, 0, -10, 0, 2.00);
format(string, sizeof(string), "", movetime);
format(string, sizeof(string), "", movetime2);
SendClientMessage(playerid, 0xFF000000, string);
SetTimer("close", 5000, 0);
return 1;
}
return 1;
}